The disclosure relates in general to artificial intelligence and machine learning techniques, and more specifically to use of machine learning based models combined with knowledge models for accurate predictions.
Artificial intelligence (AI) techniques are useful for several industrial systems. For example, machine learning based models are used for making predictions used in industrial processes. There are several challenges in developing artificial intelligence techniques for industrial systems. For example, training of machine learning models such as neural networks requires training data set that handles various situations including failure cases. However, industrial systems are often designed to avoid failures. As a result, it is difficult to obtain a complete training data set for training such models. Machine learning models that are training using incomplete training datasets are likely to fail in practice. For example, if a rare failure situation is encountered by the system, the machine learning model is unlikely to be trained to handle the situation and very likely to make inaccurate predictions leading to further failure of the systems.
A system makes predictions using a machine learning model combined with a knowledge model. The system receives a request for making a prediction based on input data. The system provides the input data to a knowledge model. The knowledge model is a rule-based model. The system provides the input data to a machine learning based model. The machine learning based model is trained to make predictions based on input data. The system executes the knowledge model to generate a first output representing a first prediction for the input data. The system further executes the machine learning based model to generate a second output representing a second prediction for the input data. The system provides the first output and the second output to an ensemble model configured to combine results of the knowledge model and the machine learning based model. The system executes the ensemble model to determine a final output based on a combination of the first output and the second output. The system provides the final output as the prediction based on the input data.
According to an embodiment, the ensemble model selects the category of the input text based on a measure of accuracy of the machine learning model and the knowledge model. For example, if the accuracy of the machine learning model is below a threshold, the ensemble model uses the output of the knowledge model as the final output.
If the system uses the output of the knowledge model as the final output, the system uses the input data and the output of the knowledge model as training data for the machine learning model. The system may generate synthetic data based on the input data and the output of the knowledge model as additional training data for the machine learning model.
A system performs fault detection using a machine learning model and a knowledge model. The system receives time series data including a sequence of data points. The system identifies a data point (referred to as the anomaly data point) of the time series data that represents an anomaly. The system provides information describing the anomaly data point to a knowledge model. The knowledge model is a rule-based model. The system further provides information describing the anomaly data point to a machine learning based model. The system executes the knowledge model to generate a first output indicating whether the data point represents a fault. The system executes the machine learning based model to generate a second output indicating whether the data point represents a fault. The system provides the first output and the second output to an ensemble model. The ensemble model is configured to combine results of the knowledge model and the machine learning based model. The system executes the ensemble model to determine a final output based on a combination of the first output and the second output. The final output indicates whether the anomaly data point represents a fault. The system provides the final output to a requestor, for example, a client device.
According to an embodiment, the ensemble model selects the final output based on a measure of accuracy of the machine learning model and the knowledge model. For example, if the accuracy of the machine learning model is below a threshold, the ensemble model uses the first output by the knowledge model as the final output.
If the system uses the first output of the knowledge model as the final output, the system uses the input data and the first output of the knowledge model as training data for the machine learning model. The system may generate synthetic data based on the category determined by the knowledge model as the input data and the first output of the knowledge model as additional training data for the machine learning model.
A system performs classified text inputs using a machine learning model combined with a knowledge model. The system receives an input text for classification based on a hierarchy of categories. The system provides the input text to a knowledge model. The knowledge model is a rule-based model comprising rules for classifying text. The system provides the input text to a machine learning based model is trained to classify text. The system executes the knowledge model to generate a first output representing a first category for the input text. The system executes the machine learning based model to generate a second output representing a second category for the input text. The system provides the first output and the second output to an ensemble model configured to combine results of the knowledge model and the machine learning based model. The ensemble model is executed to determine a category for the input text based on the first category and the second category. The system sends the category for the input text determined by the ensemble model to a client device.
According to an embodiment, the ensemble model selects the category of the input text based on a measure of accuracy of the machine learning model and the knowledge model. For example, if the accuracy of the machine learning model is below a threshold, the ensemble model uses the category determined by the knowledge model as the category of the input text.
If the system uses the category determined by the knowledge model as the category of the input text, the system uses the input text as training data for the machine learning model. The system may generate synthetic data based on the category determined by the knowledge model as the category of the input text as additional training data for the machine learning model.
Embodiments perform steps of the methods disclosed hereon. Embodiments include computer readable storage media storing instructions for performing the steps of the above method. Embodiments include computer systems that comprise one or more computer processors and a computer readable storage medium store instructions for performing the steps of the above method.
The features and advantages described in this summary and the following detailed description are not all-inclusive. Many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims hereof.
The disclosed embodiments have other advantages and features which will be more readily apparent from the detailed description, the appended claims, and the accompanying figures (or drawings). A brief introduction of the figures is below.
The features and advantages described in the specification are not all inclusive and in particular, many additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, specification, and claims. Moreover, it should be noted that the language used in the specification has been principally selected for readability and instructional purposes, and may not have been selected to delineate or circumscribe the disclosed subject matter.
A system according to an embodiment, implements a knowledge-first architecture that allows knowledge of an expert, for example, a domain expert to be incorporated into the development and use of an AI system. The system is referred to as a knowledge based AI system or as a knowledge first system. An AI system includes one or more predictive nodes, each node representing a computational system that receives input data and makes one or more predictions that may be used for system functions. For example, the input data may be sensor data generated by an industrial system and the prediction may indicate whether there is a fault in the industrial system.
According to an embodiment, the knowledge based AI system comprises a predictive unit that uses a knowledge model both to provide training labels for a generalized ML model and to provide predictive output for a functional system even in absence of a well trained ML model. The system also contains an ensemble model which aggregates the outputs of both the expert-made knowledge model and the generalized (ML) model and outputs a final decision. This ensemble model can combine these outputs in a number of ways. According to an embodiment, the ensemble model combines the outputs using a logical AND or OR between the prior model outputs. According to other embodiments, the ensemble model inspects the model accuracy of the ML model and prioritizes the knowledge model output if ML model accuracy is low. According to an embodiment, the ensemble model is implemented as an ML model, learning to optimally use both ML and knowledge outputs to generate a final decision for system operation.
The knowledge model can also have many forms and be adapted to suit many use-cases. The simplest implementations are logical operations on the input data to either output a boolean classification or more detailed categorical labels. In the case of predictive maintenance and fault prediction use cases, unsupervised anomaly detection is done on the input dataset before passing the data for anomaly points on to the Oracle. In this case the knowledge model incorporates the expertise of someone with years of experience in maintaining the system in question. The expert users specify rules related to the original sensor variables such as ‘If sensor A>threshold A and sensor B<threshold B then output error C’. In this way a knowledge model classifies the anomalous data point as a specific type of error. Early on this aids in system operation, but as data is accumulated and labelled by the knowledge model, the associated ML model becomes more accurate and functional until both models contribute valuable output and the ensemble model utilizes insight from both to draw a final conclusion.
When applying AI to physical industrial use-cases, there is often a lack of the necessary raw data for adequately training the required machine learning algorithms. Furthermore, there are special considerations or regulations that must be taken into account in order to properly serve the use-case. As such, these systems often require the integration of human domain expertise into the system in order to improve machine-learning training efficacy, improve system trustability or adherence of the system to the strict requirements and regulations in industrial applications. The difficulties in this process for data scientists and AI engineers are (A) communicating with domain experts and extracting their knowledge for use in AI systems, and (B) combining that extracted knowledge with ML to produce working models.
The system implements a knowledge translator (referred to as a K-Translator) that helps AI engineers develop AI models which combine machine-learning and human knowledge. The K-Translator is a tool that uses natural language processing to extract useful domain knowledge from conversational text and translate that knowledge into a form that can then be used to build both logical and K1st models in a semi-automated fashion. This form is a knowledge language, a domain-specific language (DSL) for capturing, storing and managing expert knowledge. The knowledge language may also be referred to herein as a rules language. Some embodiments may use a suite of domain specific languages to support different types of knowledge (e.g., for different domains) and or models. Once in this structured format, users (data scientists and AI engineers) are able to edit, curate and refine the extracted knowledge bits, and work with the K-Translator application in order to form directed questions for domain experts in order to fill in missing pieces of knowledge. This improves the efficiency of the process of knowledge extraction by saving a huge amount of time in parsing and extracting knowledge. The system further helps the AI engineer better understand and communicate with the domain experts.
The knowledge based artificial intelligence system 150 allows experts to configure rules for making predictions related to a system. The knowledge based artificial intelligence system 150 further generates models, for example, machine learning models for making predictions. The knowledge based artificial intelligence system 150 combines results of the rule based system and machine learning base system to make predictions. Further details of the knowledge based artificial intelligence system 150 are illustrated in
A device can be any physical device, for example, a device connected to other devices or systems via Internet of things (IoT). The IoT represents a network of physical devices, vehicles, home appliances and other items embedded with electronics, software, sensors, actuators, and connectivity which enables these objects to connect and exchange data. A device can be a sensor that sends sequence of data sensed over time. The sequence of data received from a device may represent data that was generated by the device, for example, sensor data or data that is obtained by further processing of the data generated by the device. Further processing of data generated by a device may include scaling the data, applying a function to the data, or determining a moving aggregate value based on a plurality of values generated by the device, for example, a moving average.
In an embodiment, the devices 130 are client devices used by users to interact with the system 150. The users of the devices 130 include experts that configure the knowledge based artificial intelligence system 150. In an embodiment, the device 130 executes an application 135 that allows users to interact with the knowledge based artificial intelligence system 150. For example, the application 135 executing on the device 130 may be an internet browser that interacts with web servers executing on knowledge based artificial intelligence system 150.
Systems and applications shown in
The interactions between the devices 130 and the knowledge based artificial intelligence system 150 are typically performed via a network 110, for example, via the internet. In one embodiment, the network uses standard communications technologies and/or protocols. In another embodiment, the various entities interacting with each other, for example, the knowledge based artificial intelligence system 150 and the devices 130 can use custom and/or dedicated data communications technologies instead of, or in addition to, the ones described above. Depending upon the embodiment, the network can also include links to other networks such as the Internet.
The knowledge model 210 stores rules based on domain expertise. In an embodiment, the knowledge model 210 is a rule-based system. The rules may be provided by a domain expert. The rules may incorporate thresholds specified by experts that may be used to predict values or take actions. For example, if certain input is above a predetermined threshold value, certain action should be performed.
The generalized model 220 is a trained machine learning based model that makes predictions based on input data. The generalized model 220 may be incrementally trained as new training data is available. Accordingly, the generalized model 220 is evolving. For example, the generalized model 220 may be initialized using parameters that are obtained from a machine learning model trained using small training dataset. Periodically the generalized model 220 is trained using larger and better training dataset. Accordingly, the parameters of the generalized model 220 are updated using better trained models.
Each of the knowledge model 210 and the generalized model 220 makes a prediction and also outputs a measure of accuracy (or confidence score) associated with the predicted output. The measure of accuracy of each model is used to determine how the final output is determined based on the outputs of each of the models, i.e., the knowledge model 210 and the generalized model 220. The accuracy of the generalized model 220 may be determined during a model evaluation phase and provided with the model, for example, as a function (or set of instructions) that calculates the model accuracy. In an embodiment, the knowledge model 210 uses boolean rules, for example, rules specified as if-then-else statements that compare input data with thresholds to determine the result. In another embodiment, the knowledge model 210 uses fuzzy logic that has multi-valued variable (compared to boolean variables that can take only two values). For example, the knowledge model 210 may receive some data and determine statistics describing the data to generate fuzzy logic.
The ensembled oracle 230 determines whether to use the prediction of the generalized model 220 or to use the prediction based on knowledge model 210. Accordingly, if the ensembled oracle 230 determines that the prediction of the generalized model 220 is less accurate (having accuracy below a threshold value or having a confidence score below a threshold value), the ensembled oracle 230 uses the prediction of the knowledge model 210. If the ensembled oracle 230 determines that the prediction of the generalized model 220 is accurate (having accuracy above a threshold value or having a confidence score above a threshold value), the ensembled oracle 230 uses the prediction of the generalized model 220.
In an embodiment, the ensembled oracle 230 determines a result by combining the results of the generalized model 220 and the knowledge model 210. For example, if the output of each of the knowledge model 210 and the generalized model 220 is boolean, the ensembled oracle 230 performs an AND operation on the outputs of the knowledge model 210 and the generalized model 220 and returns the result of the AND operation as the overall prediction. In an embodiment, the ensembled oracle 230 determines the final result by taking a weighted aggregate of the outputs of the knowledge model 210 and the generalized model 220. The weights assigned to each output may be determined based on a measure of accuracy of the corresponding models executed for determining the output.
In an embodiment, the ensembled oracle 230 compares the accuracy of the knowledge model 210 and the generalized model 220 and selects the output of the model that has higher accuracy. In an embodiment, the ensembled oracle 230 itself is a machine learning based model.
The result of the ensembled oracle 230 is used by a production system for operation. The results are also stored (e.g., logged) and used later for evaluation of the models, for example, knowledge model 210 and generalized model 220. For example, the execution results may be provided by the system to an expert user. The expert user may revise the rules or threshold values used by rules for subsequent execution based on the past execution results. Accordingly, the system receives revised rules subsequent to presentation of the execution results.
The knowledge model 210 is also used for generating training data, for example, for labelling data used for training the generalized model 220. However, the knowledge model 210 is also used at execution time for making predictions when the results of the generalized model are determined to have low accuracy.
The data synthesizer 240 includes a model used for automatically generating data relevant for a system, for example, industrial system. The data synthesizer 240 may include a mathematical model that may be provided by experts. The data synthesizer 240 may include representations of noise that can be added to data generated using mathematical models to determine realistic data that may be used as initial training data set. The training data set generated by the data synthesizer 240 is used for training of the generalized model 220. The model used by the data synthesizer 240 for generating may be domain specific. However, the data synthesizer 240 may use generic techniques such as Monte Carlo techniques to generate data.
In an embodiment, each of the knowledge model 210 and the generalized model 220 can be configured to perform preprocessing of the input data. In an embodiment, the outputs of each of the knowledge model 210 and the generalized model 220 are in the same format, structure, and type so that the ensembled oracle 230 can combine the two outputs to generate the final output. The same raw data is provided as input to both the knowledge model 210 and the generalized model 220, however, the preprocessing of the two models may be different.
The knowledge modeler 250 allows an expert to configure the knowledge model 210. In an embodiment, the knowledge modeler 250 configures a user interface and send it for presentation to an expert user. The expert user can use the user interface to perform operations such as setting thresholds, creating polygons and shapes to create boundaries to mark subsets of data that are associated with specific semantics or for labelling the data, and so on.
The system receives 310 input data that needs to be processed for making certain prediction. The input data may be sensor data, event data generated by a system, user data, or any other type of data that may be provided as input to a model for making predictions. The system executes 320 the knowledge model 210 using the input data to generate an output, for example, O1. The system executes 330 the generalized model 210 using the input data to generate another output, for example, O2. The system determines 340 the accuracy of each of the knowledge model 210 and the generalized model 220. The system determines 350 a final prediction, for example, O3 based on the combination of the output O2 of the knowledge model 210 and the output O2 of the generalized model 220. The system stores the final prediction O3 and also uses it for taking further downstream actions.
The knowledge first system 120 can be used for various applications, for example, applications in industrial systems. An example of an application where the knowledge first system 120 can be used is predictive maintenance and fault prediction of equipment.
The figures illustrate an application of an architecture referred to herein as the K1st Oracle architecture. This is a generalized application for predictive maintenance where first data passes through an unsupervised anomaly detection process and then through the k-Oracle. The Oracle is a node where a user provides the knowledge model (Teacher) and then the system creates the generalized ML model (student) and default Ensembler (which can be customized). The Teacher model comprises a collection of rules laid out by a domain expert, for example, rules dictating the type of faults associated with certain patterns in the data. For example, an expert could say ‘If the Outlet temperature is higher than the inlet temperature by 40 deg C. then you're experiencing a coolant leak’. Accordingly, the Teacher model would include a rule ‘If data[“outlet_temp”]−data[“inlet_temp”]>40: return “coolant_leak”’. During the training process all of the data goes through the teacher model to create the labels used to train the Student model (in one embodiment, the student model uses a Naive Bayes classifier at its base, however other embodiments may use deep neural network models). The advantage of this architecture is that ML models are more flexible and perform better on edge cases where the hardline Teacher model might become inaccurate. Finally, the outputs of both models are passed to the Ensemble models which decides how to determine the final result based on both predictions. In one embodiment, the Ensemble model simply combines the 2 inputs (for example if the Student and Teacher output boolean classification then an AND or OR gate might suffice), but the Ensemble could also receive evaluation metrics from the 2 models and decide which output to trust based on that. In an embodiment, if the outputs are numeric values the system uses the accuracy of each output to weight and average the outputs. All of these choices may be use case specific.
If there is sufficient labelled training data, the ensemble can be implemented as an ML model and learn on its own how to best leverage both model predictions to generate a decision. While most users with small data start out with a logical Ensemble, over time the system labels their data for the users and occasional expert evaluation/feedback is used to edit and modify that dataset, which over time becomes large enough to support training of an ML ensemble. The architecture uses the k-Oracle component and its varied possible implementations/uses. The system supports an expandable architecture that can be slotted into many use cases and serves as a simple method of integrating domain expertise into AI and leveraging it to overcome the hurdle of having little to no training data or labels. The system may also train and run without any data at all. In such embodiments, the ML model effectively gives a random output and the ensemble only uses the Teacher output, until sufficient data is available to train the Student.
The K-Translator captures and translates rules and heuristics from experts. The K-translator also supports various other forms of explicit expert knowledge such as physical equations and groupings, trends and similarities. These are essential to various K1st modeling architectures and solutions. Various components of the system according to an embodiment include:
Knowledge Translator: Takes in natural language and output knowledge in a form processable by a teacher pipeline (Fuzzy pipeline, Boolean pipeline, etc.) to create a teacher model. The knowledge translator includes components such as a user interface, APIs, and knowledge storage.
Model Builder: Uses provided translated knowledge to build Teacher model or uses data and translated knowledge, or a Teacher, to build K1st model. The model builder includes various subcomponents including modules implementing processes for model creation, classes to support models, a user interface component, APIs, CLI (command line interface), and storage for storing models.
Model Manager implements an interface to view, evaluate & deploy models
Knowledge Manager implements an interface to view, revise and access raw & translated knowledge
Data Manager implements an interface to view & upload or create datasets or data descriptions. Data manager includes sub-components such as a user interface and data storage.
Model Serving System to run K1st models and access them for inference
Web Application: Overarching K1st web application containing the above UIs.
The system includes an execute component that allows deployment and execution of generated models and applications based on the generated models. This allows project managers or AI engineers to manage multiple deployed applications and models. The components within the execute component include the following.
A Model Management component (Web UI & CLI) that provides a User interface for viewing constructed K1st models within an application, viewing model evaluation results, assigning tags to models (soft versioning to support changing the model used in an app without needing to redeploy the app, for use in load on inference situations [most useful for dev]) and upgrading models to production deployment (dedicated deployment of a model with consistent endpoint for use in production applications)
A Model Serving component (Web API) that allows all models to be easily accessed through a web API via usage of the model name, model version and an API Access Token. This component allows users to be able to easily use/test all models built; publish production level models that can reliably execute quickly; For cases in which latency or high inference volume are concerns, the system allows users to deploy models to production level environments to run in their own container to remove the overhead for model loading. The K1st Execute UI allows users to change which model version is deployed in this manner so that models can be updated without need for application redeployment.
An application management component (Web UI & CLI) provides a user interface to provide users an overview of their running applications on the system. The component allows users to: start & stop applications; view application logs; perform resource monitoring; monitor application usage; re-deploy applications; and connect to user code. The system also includes an application hosting component.
Following is the description of a domain specific language according to an embodiment. The system uses artificial intelligence techniques to identify features. Each feature specifies one or more membership classes. Each membership class may specify ranges of values or threshold values to define the categories for the feature. The system performs natural language processing to identify potential features for a model based on the expert knowledge. The system performs natural language processing to identify upper and lower limits of features. The features represent attributes specified by the knowledge text. The features may map to columns or attributes in a dataset. The system extracts rules based on the features. The system further extracts conclusions based on the knowledge text. A conclusion may infer information based on specific rules or combination of rules. For example, if a set of rules evaluate to true, then there is leakage in the system or there is a particular type of problem in the system. The information extracted by the system can be used to generate a model, for example, a fuzzy model, a boolean model, or any other kind of model based on the knowledge provided by the domain expert.
An example of knowledge text that may be obtained from a domain expert is the following paragraph: “So we have 3 showcases, these showcases all have temperatures below 7.5 degrees in normal operation. Now if all of those temperatures are above 7.5 degrees then I'll check the condensing pressure and the evaporation pressure. If both are low for more than 3 hours then you're probably looking at a refrigerant leakage. But if both are high then the condenser is not clean. And if the condensing pressure is low, like below 8, and the evaporation pressure is high, like over 1.5, for more than 5 hours then it's an expansion valve leakage. Finally, if any of the showcases have a temperature above 7.1 degrees then look at the return gas temperature. when that is below 0 then you're facing an evaporation frost problem.”
The knowledge translator extracts knowledge including variables, conclusions, and definitions.
The system uses the extracted information for building models.
The knowledge first architecture can be applied to various applications. These include text classification, fault detection in time series data, and various applications in industrial processes. Some of the processes are illustrated in
The system receives 1410 an input text for classification. The input text may represent articles retrieved from a website. The classification may map the text to a category selected from a hierarchy of categories. Although the process is described in connection with classification of text, the process can be used for classifying any type of input including images, videos, audio signals, and so on.
The system provides the input text to the knowledge model 210. The knowledge model 210 is a rule-based model comprising rules for classifying input data such as text. The system further provides the input text to a generalized model 220, for example, a machine learning based model trained for classifying input data such as text.
The system executes 1430 the knowledge model to generate a first output representing a first category for the input. The system executes 1440 the machine learning based model to generate a second output representing a second category for the input text. The system may determine a measure of accuracy of the category determined by the knowledge model and the ML model.
The system provides the first output and the second output to an ensemble model configured to combine results of the knowledge model and the machine learning based model. The system executes the ensemble model to determine 1450 a final category for the input text based on the first category determined by the knowledge model and the second category determined by the ML model.
The system sends 1460 the final category for the input text determined by the ensemble model to a client device. The final category may be used for taking any kind of action, for example, for redirecting messages based on the category of input text.
The system receives 1510 time series data comprising a sequence of data points. Each data point is associated with a time value. The time series data may be represent sensor data received from sensors. The system identifies a data point of the time series data that represents an anomaly. The data point may be referred to herein as an anomaly data point. The system may determine that a data point is an anomaly by executing a variational autoencoder.
The system provides information describing the data point representing the anomaly to a knowledge model. The knowledge model is a rule-based model that includes rules for determining whether an anomaly data pint represents a fault. For example, experts may determine based on various criteria whether the anomaly data point is a fault and these criteria may be coded as rules of the knowledge model. The system provides information describing the data point representing the anomaly to a machine learning based model. The system executes 1520 the knowledge model to generate a first output indicating whether the data point represents a fault. The system executes 1530 the machine learning based model to generate a second output indicating whether the data point represents a fault.
The system may determine 1540 a measure of accuracy of prediction for each of the knowledge model and the ML model. The system provides the first output and the second output to an ensemble model configured to combine results of the knowledge model and the machine learning based model. The system executes the ensemble model to determine 1550 a final output based on a combination of the first output and the second output, the final output indicating whether the data point represents a fault. The system sends 1560 the final output, for example, to a client device fort display or as an alert to an operator of an industrial equipment.
According to an embodiment, the knowledge model is extended as new type of input is encountered. The system receives a new set of inputs, for example, new set of time series data generated by a particular sensor or equipment or new set of texts or images for classifying. The system determines that the machine learning based model has low accuracy of classification for inputs from the new set of inputs. Alternatively, the system may analyze the accuracy of the predictions for different input datasets and identify a particular input dataset that has low measure of accuracy. The system may send a message may to users such as experts identifying the low accuracy of the input dataset. The system receives additional rules for the knowledge model that apply to the new set of data received. The system adds one or more rules to the knowledge model for processing the new set of inputs, for example, the new rules may classify text in the new set or detect faults in a set of time series data.
The ensemble model determines the final output from the predictions made by the knowledge model for input from the new set of data. For example, the ensemble model may determine the category of an input text from the new set of text inputs if the accuracy of classification of the machine learning based model for the input text from the new set of text inputs is below a threshold value. Similarly, the ensemble model may determine whether an anomaly data point from the new set of inputs is a fault if the accuracy of fault detection for the input anomaly data point selected from the new set of time series data is below a threshold value.
The system uses the input from the new set of inputs and the prediction determined for the input by the ensemble model as training data for training the machine learning based model.
The system may generate synthetic data based on the input data from the new set of inputs and the predictions determined for the input by the ensemble model as additional training data for the machine learning based model.
According to an embodiment, the system receives a measure m1 of accuracy of the output generated by the knowledge model and a measure m2 of accuracy of the output generated by the machine learning based model and determines the prediction for the input based on the outputs of the knowledge model and the ML model based on at least one of the measure m1 of accuracy or the measure m2 of accuracy.
The system may select the output of the model that has higher accuracy. For example, the ensemble model uses output of the knowledge model if the knowledge model has higher accuracy compared to the machine learning based model.
The storage device 1608 is a non-transitory computer-readable storage medium such as a hard drive, compact disk read-only memory (CD-ROM), DVD, or a solid-state memory device. The memory 1606 holds instructions and data used by the processor 1602. The pointing device 1614 is a mouse, track ball, or other type of pointing device, and is used in combination with the keyboard 1610 to input data into the computer system 1600. The graphics adapter 1612 displays images and other information on the display 1618. The network adapter 1616 couples the computer system 1600 to one or more computer networks.
The computer 1600 is adapted to execute computer program modules for providing functionality described herein. As used herein, the term “module” refers to computer program logic used to provide the specified functionality. Thus, a module can be implemented in hardware, firmware, and/or software. In one embodiment, program modules are stored on the storage device 1608, loaded into the memory 1606, and executed by the processor 1602. The types of computers 1600 used can vary depending upon the embodiment and requirements. For example, a computer may lack displays, keyboards, and/or other devices shown in
The disclosed embodiments increase the efficiency of storage of time series data and also the efficiency of computation of the time series data. The neural network helps convert arbitrary size sequences of data into fixed size feature vectors. In particular the input sequence data (or time series data) can be significantly larger than the feature vector representation generated by the hidden layer of neural network. For example, an input time series may comprise several thousand elements whereas the feature vector representation of the sequence data may comprise a few hundred elements. Accordingly, large sequences of data are converted into fixed size and significantly small feature vectors. This provides for efficient storage representation of the sequence data. The storage representation may be for secondary storage, for example, efficient storage on disk or for or used for in-memory processing. For example, for processing the sequence data, a system with a given memory can process a large number of feature vector representations of sequences (as compared to the raw sequence data). Since large number of sequences can be loaded at the same time in memory, the processing of the sequences is more efficient since data does not have to be written to secondary storage often.
Furthermore, the process of clustering sequences of data is significantly more efficient when performed based on the feature vector representation of the sequences as compared to processing of the sequence data itself. This is so because the number of elements in the sequence data can be significantly higher than the number of elements in the feature vector representation of a sequence. Accordingly, a comparison of raw data of two sequences requires significantly more computations than comparison of two feature vector representations. Furthermore, since each sequence can be of different size, comparison of data of two sequences would require additional processing to extract individual features.
Embodiments can performs processing of the neural network in parallel, for example using a parallel/distributed architecture. For example, computation of each node of the neural network can be performed in parallel followed by a step of communication of data between nodes. Parallel processing of the neural networks provides additional efficiency of computation of the overall process described herein, for example, in
It is to be understood that the Figures and descriptions of the present invention have been simplified to illustrate elements that are relevant for a clear understanding of the present invention, while eliminating, for the purpose of clarity, many other elements found in a typical distributed system. Those of ordinary skill in the art may recognize that other elements and/or steps are desirable and/or required in implementing the embodiments. However, because such elements and steps are well known in the art, and because they do not facilitate a better understanding of the embodiments, a discussion of such elements and steps is not provided herein. The disclosure herein is directed to all such variations and modifications to such elements and methods known to those skilled in the art.
Some portions of above description describe the embodiments in terms of algorithms and symbolic representations of operations on information. These algorithmic descriptions and representations are commonly used by those skilled in the data processing arts to convey the substance of their work effectively to others skilled in the art. These operations, while described functionally, computationally, or logically, are understood to be implemented by computer programs or equivalent electrical circuits, microcode, or the like. Furthermore, it has also proven convenient at times, to refer to these arrangements of operations as modules, without loss of generality. The described operations and their associated modules may be embodied in software, firmware, hardware, or any combinations thereof.
As used herein any reference to “one embodiment” or “an embodiment” means that a particular element, feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment.
Some embodiments may be described using the expression “coupled” and “connected” along with their derivatives. It should be understood that these terms are not intended as synonyms for each other. For example, some embodiments may be described using the term “connected” to indicate that two or more elements are in direct physical or electrical contact with each other. In another example, some embodiments may be described using the term “coupled” to indicate that two or more elements are in direct physical or electrical contact. The term “coupled,” however, may also mean that two or more elements are not in direct contact with each other, but yet still co-operate or interact with each other. The embodiments are not limited in this context.
As used herein, the terms “comprises,” “comprising,” “includes,” “including,” “has,” “having” or any other variation thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, article, or apparatus that comprises a list of elements is not necessarily limited to only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Further, unless expressly stated to the contrary, “or” refers to an inclusive or and not to an exclusive or. For example, a condition A or B is satisfied by any one of the following: A is true (or present) and B is false (or not present), A is false (or not present) and B is true (or present), and both A and B are true (or present).
In addition, use of the “a” or “an” are employed to describe elements and components of the embodiments herein. This is done merely for convenience and to give a general sense of the invention. This description should be read to include one or at least one and the singular also includes the plural unless it is obvious that it is meant otherwise.
Upon reading this disclosure, those of skill in the art will appreciate still additional alternative structural and functional designs for a system and a process for displaying charts using a distortion region through the disclosed principles herein. Thus, while particular embodiments and applications have been illustrated and described, it is to be understood that the disclosed embodiments are not limited to the precise construction and components disclosed herein. Various modifications, changes and variations, which will be apparent to those skilled in the art, may be made in the arrangement, operation and details of the method and apparatus disclosed herein without departing from the spirit and scope defined in the appended claims.
This application claims priority to U.S. Provisional Patent Application Ser. No. 63/326,767, entitled “KNOWLEDGE BASED ARTIFICIAL INTELLIGENCE ARCHITECTURE FOR INDUSTRIAL SYSTEMS,” filed Apr. 1, 2022, and also claims priority to U.S. Provisional Patent Application Ser. No. 63/425,578, entitled “TRANSLATING FROM NATURAL LANGUAGE TO DOMAIN SPECIFIC LANGUAGE FOR REPRESENTING EXPERT KNOWLEDGE,” filed Nov. 15, 2022, each of which is incorporated by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
63425578 | Nov 2022 | US | |
63326767 | Apr 2022 | US |