Auxiliary decision-making method and system based on industrial knowledge graph and Bayesian network

Through methods based on industrial knowledge graphs and Bayesian networks, the problem of industrial fault diagnosis relying on expert experience and rule bases is solved, real-time and efficient fault diagnosis and decision-making in complex environments are achieved, and diagnosis efficiency and accuracy are improved. Enhanced security and reliability of production systems.

CN118586742BActive Publication Date: 2024-10-18LUCULENT SMART TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411054071.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-10-18
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

Existing industrial fault diagnosis and decision-making methods rely on expert experience and rule libraries, are subjective and inconsistent, and are difficult to meet the needs for real-time, efficient and accurate diagnosis in complex and changing production environments.

Method used

An auxiliary decision-making method based on industrial knowledge graphs and Bayesian networks, by collecting and clustering features, constructing a dependency matrix, and using Bayesian networks for fault diagnosis and decision-making, combining dynamic Bayesian networks and deep learning models to optimize Decision path to provide intelligent support.

Benefits of technology

Reduce reliance on expert experience, improve diagnostic efficiency and accuracy, achieve automated and intelligent decision support, quickly respond to complex environmental needs, enhance robustness and adaptability, and improve the safety and reliability of production systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118586742B_ABST
    Figure CN118586742B_ABST
Patent Text Reader

Abstract

The present invention discloses an auxiliary decision-making method and system based on industrial knowledge graph and Bayesian network, which relates to the fields of computer software and artificial intelligence technology, including: collecting industrial knowledge vocabulary, generating a custom word library, and constructing an industrial knowledge graph; extracting features based on the industrial knowledge graph, classifying the features into discrete features and descriptive features, and clustering the descriptive features; determining feature relationships, and constructing a dependency matrix; constructing a Bayesian network, and performing auxiliary decision-making based on the knowledge data in the knowledge graph. The auxiliary decision-making method based on industrial knowledge graph and Bayesian network provided by the present invention reduces the reliance on expert experience, improves diagnostic efficiency and accuracy, quickly responds to complex and changeable production environment requirements, ensures the significance and accuracy of feature relationships, and enhances robustness and adaptability under different environments and conditions. Recommend defect elimination teams to comprehensively improve the safety and reliability of production systems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer software and artificial intelligence technology, and specifically to an auxiliary decision-making method and system based on industrial knowledge graph and Bayesian network. Background Art

[0002] In the management of heavy industrial process enterprises, there have always been many difficulties and challenges. There are several main reasons: the equipment is complex and diverse, and the structures and operating principles of each equipment are different, requiring different maintenance skills and methods; the harsh working environment has high requirements for materials, and the wear and corrosion of the equipment are also relatively serious, requiring regular inspection and replacement; the equipment needs to be running all the time, and the downtime for maintenance is very limited. Therefore, as much necessary maintenance work as possible should be completed during the downtime, which puts great pressure on maintenance personnel; professional and technical requirements are high, and the equipment and systems involve multiple fields such as machinery, thermal engineering, electrical engineering, and automation. Maintenance personnel need to have a wide range of professional knowledge and skills; at the same time, different enterprises also have some of their own problems, such as high safety risks and many old equipment.

[0003] At present, traditional industrial fault diagnosis and decision-making methods mainly rely on expert experience and rule bases, but this method has some obvious limitations:

[0004] Traditional methods are highly dependent on the experience and knowledge of experts. Expert resources are limited and expensive, and there are differences in knowledge and experience levels among different experts, which can easily lead to subjectivity and inconsistency in diagnostic results.

[0005] The rule-base-based approach requires the pre-definition of a large number of rules. The construction and maintenance of the rule base requires a lot of manpower and time. In addition, the coverage of the rule base is limited, making it difficult to cope with complex and changing production environments.

[0006] Traditional methods often take a long time to analyze and diagnose complex problems, and are unable to meet the real-time and high-efficiency requirements of modern industrial production. Summary of the invention

[0007] In view of the above-mentioned problems, the present invention is proposed.

[0008] Therefore, the technical problem solved by the present invention is: the existing industrial fault diagnosis and decision-making methods have the problems of reliance on expert experience, rule base limitations and slow response speed, as well as how to achieve balanced optimization of real-time, efficient and accurate fault diagnosis and auxiliary decision-making in a complex and changeable production environment.

[0009] In order to solve the above technical problems, the present invention provides the following technical solutions: an auxiliary decision-making method based on industrial knowledge graph and Bayesian network, comprising:

[0010] Collect industrial knowledge vocabulary, generate custom vocabulary, and build industrial knowledge graph;

[0011] Extract features based on industrial knowledge graph, classify features into discrete features and descriptive features, and cluster descriptive features;

[0012] Determine feature relationships and build a dependency matrix;

[0013] Build a Bayesian network to assist decision making based on the knowledge data in the knowledge graph.

[0014] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, wherein: the clustering of descriptive features includes using hidden Markov model HMM algorithm to extract entities, optimizing based on conditional random field CRF and long short-term memory network LSTM algorithm, and the extracted entities are descriptive features stored in an entity array;

[0015] Assign an index value to each descriptive feature, select different numbers of feature words according to the content length of the descriptive feature. When 80% of the descriptive features are within 30 words, select the 5 non-repeating entities with the highest index value as feature words; when 80% of the descriptive features are longer than 200 words, select the 20 non-repeating entities with the highest index value as feature words; when the number or length of the descriptive features does not meet the preset requirements, select the 10 non-repeating entities with the highest index value as feature words;

[0016] The selected feature phrases are converted into weighted space vectors, each word that appears is added to the phrase, and numbered, and the index value of the word is recorded, where the number is used as the dimension coordinate and the index value is used as the attribute to generate the corresponding relationship of the feature words;

[0017] The G-Means algorithm is used to cluster the coordinates of each feature word, and the final clustering category is used as the feature value to describe the feature.

[0018] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, wherein: the assigning of index value to each descriptive feature includes calculating the TF-IDF value of each feature word, converting the feature word into a contextual semantic vector using the Word2Vec model, and combining the TF-IDF value and the semantic vector to form a comprehensive vector representation;

[0019] The comprehensive vector is input into the self-attention mechanism of the Transformer model to calculate the importance of the feature word in the context and adjust the TF-IDF value to obtain the optimized intermediate index value;

[0020] The optimized intermediate index value and context semantic vector are input into the deep learning model, the index value of the feature word is optimized through training, and the index value is finally output.

[0021] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, the determining feature relationship includes collecting the extracted discrete features and descriptive features, pairing the features with the corresponding classification labels and calculating the conditional mutual information, which is expressed as:

[0022] ,

[0023] in, Representation characteristics and In the conditions The mutual information under Represents the classification label The value is The probability of Indicates that the condition Next, Features and The value is and The joint conditional probability of Indicates that the condition Next, Features The value is The conditional probability of Indicates that the condition Next, Features The value is The conditional probability of Representation characteristics and classification labels The specific value of

[0024] Perform a permutation test to randomly shuffle the relationship between features X and Y for a preset number of times, keeping condition Z unchanged; after each shuffling, recalculate the conditional mutual information value to obtain a random CMI value distribution, compare the original conditional mutual information value with the random CMI value distribution, and calculate the significance value ,like Less than 0.1, the conditional mutual information value of the feature pair is judged to be significant;

[0025] The significance is expressed as,

[0026] ,

[0027] in, represents the significance value, represents the conditional mutual information value after random shuffling, represents the original conditional mutual information value, Indicates the total number of random shuffles;

[0028] The construction of the dependency matrix includes initializing the dependency matrix, the matrix size is ,in is the total number of features, and all elements of the matrix are initialized to 0;

[0029] Traverse all feature pairs and fill the matrix. If the conditional mutual information value of the feature pair is significant, set the value of the corresponding position in the matrix to 1, otherwise keep it as 0. If the dependency relationship between one feature and multiple features is significant, select the relationship with the largest conditional mutual information value and set it to 1, and set the rest to 0.

[0030] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, wherein: the construction of the Bayesian network includes extracting all discrete features and descriptive features from the knowledge graph as nodes of the Bayesian network, and traversing each pair of features in the matrix according to the dependency matrix. If the values ​​of the two features in the dependency matrix are 1, an edge is added to the Bayesian network, and the related nodes are used as child nodes; if the values ​​of the two features in the dependency matrix are 0, the feature nodes are used as independent nodes to construct the preliminary structure of the Bayesian network;

[0031] Based on the dynamic Bayesian network DBN method, adjust and optimize the node and edge relationships in the Bayesian network; apply all adjusted and optimized feature relationships to the Bayesian network to form the final Bayesian network structure;

[0032] The posterior probability of each path is calculated using Bayes' theorem, expressed as,

[0033] ,

[0034] in, represents the prior probability, represents the conditional probability, represents marginal probability;

[0035] Enumerate all paths in the Bayesian network and calculate the total posterior probability of each path, expressed as,

[0036] ,

[0037] in, represents the total posterior probability of the path, Indicates from 1 to The product of the posterior probabilities of all nodes, Indicates the path The posterior probability of a node is Indicates the total number of nodes on the path;

[0038] According to the calculated total posterior probability of the path, different decision paths are analyzed, the path with the highest total posterior probability is selected as the optimal decision path, and auxiliary decision suggestions are provided.

[0039] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, wherein: the adjustment and optimization of the node and edge relationship in the Bayesian network includes constructing a dynamic Bayesian network, defining the size of the sliding window, and gradually moving the window on the historical data. Each time the window moves, the conditional probability in the window is calculated, which is expressed as,

[0040] ,

[0041] For each sliding window, calculate the conditional probability changes;

[0042] Record the conditional probability value of each time window and convert the conditional probability of each time window into Input the Kalman filter algorithm to obtain the smoothed conditional probability curve , the smoothed conditional probability of the current time window with the smoothed conditional probability of the previous time window For comparison, if , add the corresponding edge in the Bayesian network, if , delete the corresponding edge in the Bayesian network, where Indicates a significant increase in the threshold, Indicates a significant reduction in the threshold.

[0043] As a preferred solution of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in the present invention, wherein: the provision of auxiliary decision-making suggestions includes analyzing and determining the cause of the defect through the key nodes and features displayed in the optimal path; providing treatment measures suggestions based on the cause of the defect, adjusting equipment parameters, performing maintenance or replacing components; providing safety measures prompts based on the risk characteristics in the optimal path, using protective equipment, and setting safety warning signs; identifying the hazardous source nodes in the optimal path, providing corresponding prompt information, identifying high-risk equipment and marking it; and recommending a defect elimination team to solve the defect based on the defect type and treatment measures.

[0044] Another object of the present invention is to provide an auxiliary decision-making system based on industrial knowledge graphs and Bayesian networks, which can solve the problems of strong fault diagnosis dependence, limited rule base coverage and slow response speed in existing industrial production systems by constructing an intelligent fault diagnosis and decision support system, and realize automated, intelligent and efficient decision support.

[0045] To solve the above technical problems, the present invention provides the following technical solutions: an auxiliary decision system based on industrial knowledge graph and Bayesian network, comprising: a data acquisition module, a feature extraction module, a network construction module and an auxiliary decision module; the data acquisition module is used to collect industrial knowledge vocabulary, generate a custom vocabulary, and construct an industrial knowledge graph; the feature extraction module is used to extract features based on the industrial knowledge graph, classify the features into discrete features and descriptive features, and cluster the descriptive features; the network construction module is used to determine feature relationships and construct a dependency matrix; the auxiliary decision module is used to construct a Bayesian network to make auxiliary decisions based on the knowledge data in the knowledge graph.

[0046] A computer device includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network are implemented as described above.

[0047] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network as described above.

[0048] Beneficial effects of the present invention: The auxiliary decision-making method based on industrial knowledge graph and Bayesian network provided by the present invention constructs an industrial knowledge graph, automatically extracts and clusters features, constructs a dependency matrix, and realizes the automation of fault diagnosis based on the Bayesian network, thereby reducing reliance on expert experience and improving diagnostic efficiency and accuracy. Combined with dynamic Bayesian networks and deep learning models, feature relationships are analyzed and adjusted in real time, the Bayesian network structure is optimized, and intelligent decision support is provided based on posterior probability to quickly respond to complex and changing production environment requirements. Through permutation tests and conditional mutual information, the significance and accuracy of feature relationships are ensured, and the robustness and adaptability in different environments and conditions are enhanced. Specific processing measures, safety measures and risk warnings are provided, and defect elimination teams are recommended to comprehensively improve the safety and reliability of the production system. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0050] Figure 1 An overall flow chart of an auxiliary decision-making method based on industrial knowledge graph and Bayesian network provided for one embodiment of the present invention.

[0051] Figure 2The overall structural diagram of the auxiliary decision-making system based on industrial knowledge graph and Bayesian network provided for each embodiment of the present invention.

[0052] Figure 3 A comparison chart of experimental results of auxiliary decision-making methods based on industrial knowledge graph and Bayesian network provided for each embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.

[0054] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0055] Example 1

[0056] Reference Figure 1 , which is an embodiment of the present invention, provides an auxiliary decision-making method based on industrial knowledge graph and Bayesian network, including:

[0057] Collect industrial knowledge vocabulary, generate custom vocabulary, and build industrial knowledge graph;

[0058] Extract features based on industrial knowledge graph, classify features into discrete features and descriptive features, and cluster descriptive features;

[0059] Determine feature relationships and build a dependency matrix;

[0060] Build a Bayesian network to assist decision making based on the knowledge data in the knowledge graph.

[0061] The clustering of the descriptive features includes extracting entities using a hidden Markov model HMM algorithm, optimizing based on a conditional random field CRF and a long short-term memory network LSTM algorithm, and the extracted entities are stored as descriptive features in an entity array;

[0062] Assign an index value to each descriptive feature, select different numbers of feature words according to the content length of the descriptive feature. When 80% of the descriptive features are within 30 words, select the 5 non-repeating entities with the highest index value as feature words; when 80% of the descriptive features are longer than 200 words, select the 20 non-repeating entities with the highest index value as feature words; when the number or length of the descriptive features does not meet the preset requirements, select the 10 non-repeating entities with the highest index value as feature words;

[0063] The selected feature phrases are converted into weighted space vectors, each word that appears is added to the phrase, and numbered, and the index value of the word is recorded, where the number is used as the dimension coordinate and the index value is used as the attribute to generate the corresponding relationship of the feature words;

[0064] The G-Means algorithm is used to cluster the coordinates of each feature word, and the final clustering category is used as the feature value to describe the feature.

[0065] The selected features are divided into two categories, namely discrete features and descriptive features. Discrete features refer to entity objects that can be listed, such as classifications and other entities. These features can be directly applied to subsequent classifications; descriptive features are generally inherent attributes of the entity itself, which are used to expand the description and explanation of the current entity. Descriptive features cannot be directly applied to classification decisions. Non-descriptive features can be divided into discrete features.

[0066] For each descriptive feature, the TF-IDF value of each feature word is first calculated. The specific steps are to first calculate the term frequency (TF), that is, the frequency of occurrence of a specific feature word in the descriptive feature, and then calculate the inverse document frequency (IDF), that is, the distribution of the feature word in all descriptive features, and finally combine the two to form the TF-IDF value, the formula is TF-IDF value = TF *IDF. Next, use the Word2Vec model to convert each feature word into a contextual semantic vector. To this end, it is necessary to train the Word2Vec model based on a large-scale corpus to obtain the semantic vector representation of the feature word, and then input each feature word into the trained Word2Vec model to obtain the corresponding contextual semantic vector. The TF-IDF value of the feature word and the semantic vector are combined to form a comprehensive vector representation. This step is to use the TF-IDF value as a weight and multiply it by each dimension of the semantic vector to form a comprehensive vector. The formula is comprehensive vector = TF-IDF value * semantic vector. Next, the comprehensive vector is input into the Transformer model, and the importance of the feature word in the context is calculated through the self-attention mechanism, and the TF-IDF value is adjusted. The specific steps are to pass the comprehensive vector as input to the Transformer model. The model calculates the importance score of each feature word in the context through the self-attention mechanism, and adjusts the original TF-IDF value according to the importance score to obtain the optimized intermediate index value. Finally, the optimized intermediate index value and the context semantic vector are input into the deep learning model, and the index value of the feature word is optimized through training, and the index value is finally output. The specific steps include using a suitable deep learning architecture (the present invention uses LSTM) to build a model, using the optimized intermediate index value and the context semantic vector as input, and training the model. After the model training is completed, the final feature word index value is output.

[0067] The determining of feature relationships includes collecting the extracted discrete features and descriptive features, and pairing the features with corresponding classification labels to calculate conditional mutual information, which is expressed as:

[0068] ,

[0069] in, Representation characteristics and In the conditions The mutual information under Represents the classification label The value is The probability of Indicates that the condition Next, Features and The value is and The joint conditional probability of Indicates that the condition Next, Features The value is The conditional probability of Indicates that the condition Next, Features The value is The conditional probability of Representation characteristics and classification labels The specific value of

[0070] Perform a permutation test to randomly shuffle the relationship between features X and Y for a preset number of times, keeping condition Z unchanged; after each shuffling, recalculate the conditional mutual information value to obtain a random CMI value distribution, compare the original conditional mutual information value with the random CMI value distribution, and calculate the significance value ,like Less than 0.1, the conditional mutual information value of the feature pair is judged to be significant;

[0071] The significance is expressed as,

[0072] ,

[0073] in, represents the significance value, represents the conditional mutual information value after random shuffling, represents the original conditional mutual information value, Indicates the total number of random shuffles;

[0074] The construction of the dependency matrix includes initializing the dependency matrix, the matrix size is ,in is the total number of features, and all elements of the matrix are initialized to 0;

[0075] Traverse all feature pairs and fill the matrix. If the conditional mutual information value of the feature pair is significant, set the value of the corresponding position in the matrix to 1, otherwise keep it as 0. If the dependency relationship between one feature and multiple features is significant, select the relationship with the largest conditional mutual information value and set it to 1, and set the rest to 0.

[0076] The construction of the Bayesian network includes extracting all discrete features and descriptive features from the knowledge graph as nodes of the Bayesian network, traversing each pair of features in the matrix according to the dependency matrix, and if the values ​​of the two features in the dependency matrix are 1, adding an edge in the Bayesian network and taking the related nodes as child nodes; if the values ​​of the two features in the dependency matrix are 0, taking the feature nodes as independent nodes, and constructing the preliminary structure of the Bayesian network;

[0077] Based on the dynamic Bayesian network DBN method, adjust and optimize the node and edge relationships in the Bayesian network; apply all adjusted and optimized feature relationships to the Bayesian network to ensure that there is a correct edge relationship between each feature node and its significantly dependent nodes, forming the final Bayesian network structure;

[0078] The posterior probability of each path is calculated using Bayes' theorem, expressed as,

[0079] ,

[0080] in, represents the prior probability, represents the conditional probability, represents marginal probability;

[0081] Enumerate all paths in the Bayesian network and calculate the total posterior probability of each path, expressed as,

[0082] ,

[0083] in, represents the total posterior probability of the path, Indicates from 1 to The product of the posterior probabilities of all nodes, Indicates the path The posterior probability of a node is Indicates the total number of nodes on the path;

[0084] According to the calculated total posterior probability of the path, different decision paths are analyzed, the path with the highest total posterior probability is selected as the optimal decision path, and auxiliary decision suggestions are provided.

[0085] The adjusting and optimizing of the node and edge relationships in the Bayesian network includes constructing a dynamic Bayesian network, including multiple time slices, each time slice including state variables and observation variables, representing state transitions through edge connections, defining the size of the sliding window, and gradually moving the window on the historical data. Each time the window moves, the conditional probability within the window is calculated, which is expressed as,

[0086] ,

[0087] For each sliding window, calculate the conditional probability changes;

[0088] Record the conditional probability value of each time window and convert the conditional probability of each time window into Input the Kalman filter algorithm to obtain the smoothed conditional probability curve , the smoothed conditional probability of the current time window with the smoothed conditional probability of the previous time window For comparison, if , add the corresponding edge in the Bayesian network, if , delete the corresponding edge in the Bayesian network, where Indicates a significant increase in the threshold, Indicates a significant reduction in the threshold.

[0089] Calculate the average of conditional probabilities using historical data and standard deviation . Set the significant increase threshold to . Set the significant reduction threshold to .

[0090] Providing auxiliary decision-making suggestions includes analyzing and determining the causes of defects through key nodes and features displayed in the optimal path; providing treatment measures based on the causes of defects, adjusting equipment parameters, performing maintenance or replacing components; providing safety measures prompts based on risk characteristics in the optimal path, using protective equipment, and setting safety warning signs; identifying hazardous source nodes in the optimal path, providing corresponding prompt information, identifying high-risk equipment and marking them; and recommending defect elimination teams to solve defects based on defect types and treatment measures.

[0091] The prior probability is expressed as,

[0092] ,

[0093] in, represents the prior probability, which means that in the absence of any other information, the event probability of occurrence, number of occurrences of Indicates an event The number of occurrences, totalnumberofrecords indicates the total number of records.

[0094] The conditional probability is expressed as,

[0095] ,

[0096] in, represents the conditional probability, which means that in the event Under the conditions of occurrence, the event The probability of occurrence, represents the joint probability and represents the event and events The probability of simultaneous occurrence, represents the prior probability and represents the event Probability of occurrence.

[0097] The posterior probability is expressed as,

[0098] ,

[0099] in, represents the posterior probability, which means that in the event Under the conditions of occurrence, the event The probability of occurrence, represents the conditional probability, which means that in the event Under the conditions of occurrence, the event The probability of occurrence, represents the prior probability and represents the event The probability of occurrence, represents the marginal probability (total probability), representing the event The total probability of occurrence.

[0100] The marginal probability is expressed as,

[0101] ,

[0102] in, represents the marginal probability, representing the event The total probability of occurrence, represents the conditional probability, which means that in the event Under the conditions of occurrence, the event The probability of occurrence, represents the prior probability and represents the event The probability of occurrence, For all possible events Perform the summation.

[0103] Example 2

[0104] Reference Figure 2 , which is an embodiment of the present invention, provides an auxiliary decision-making system based on industrial knowledge graph and Bayesian network, including:

[0105] Data acquisition module, feature extraction module, network construction module and auxiliary decision module;

[0106] The data collection module is used to collect industrial knowledge vocabulary, generate custom vocabulary, and build industrial knowledge graphs;

[0107] The feature extraction module is used to extract features based on the industrial knowledge graph, classify the features into discrete features and descriptive features, and cluster the descriptive features;

[0108] The network construction module is used to determine feature relationships and construct a dependency matrix;

[0109] The auxiliary decision-making module is used to build a Bayesian network and make auxiliary decisions based on the knowledge data in the knowledge graph.

[0110] Example 3

[0111] An embodiment of the present invention is different from the first two embodiments in that:

[0112] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.

[0113] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.

[0114] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.

[0115] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0116] Example 4

[0117] Reference Figure 3 , which is an embodiment of the present invention, provides an auxiliary decision-making method based on industrial knowledge graph and Bayesian network. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiments.

[0118] This embodiment is based on the defect data of a thermal power plant for analysis, and a total of 11,549 historical defect data are collected, of which 5,215 are available high-quality data after initial screening. In order to verify the decision-making effect of the present invention, a comparative analysis and simulation experiment with multiple classification decision algorithms such as Bayes, decision tree, and random forest are carried out for scientific demonstration.

[0119] Among them, the data that can be used for defect classification include multiple attribute characteristics such as equipment, profession, unit, fault, symptom, description, etc. During the experiment, 80% of the data was used for training and 20% of the data was used for testing for experimental verification. 80% of the data was randomly selected for training and imported into the development environment. The corresponding data was used to build a decision system through the method of the present invention. At the same time, Bayesian, decision tree, and random forest were used for training and model construction for comparative testing.

[0120] 20% of the test set was used to test the effect of each model. Finally, the accuracy of all algorithms is shown in Table 1.

[0121] Table 1 Comparison of accuracy of different algorithms

[0122] Decision-making systems use algorithms Accuracy Algorithm of the present invention 88.7% Decision Tree 79.5% Random Forest 65.7% Support Vector Machine 73.5% Naive Bayes 74.9%

[0123] From the analysis of the experimental results, it can be seen that the random forest has a low accuracy in construction due to the small amount of data; the decision tree, naive Bayes, and support vector machine have relatively high accuracy, but still have defects, so the accuracy is not ideal; the present invention can significantly improve the accuracy of decision data.

[0124] To further illustrate the effectiveness of the present invention, all models were pre-processed and pre-classified using the feature clustering method of the present invention for defect description data, and further tested. The accuracy of all algorithms is shown in Table 2.

[0125] Table 2 Comparison of the accuracy of defect description data algorithms

[0126] Decision-making systems use algorithms Accuracy Algorithm of the present invention 88.7% Decision Tree 83.6% Random Forest 69.7% Support Vector Machine 81.5% Naive Bayes 82.9%

[0127] Analysis of the experimental results shows that extracting features from descriptive data and using them for decision-making can greatly improve classification accuracy; at present, the overall algorithm is still superior to the mainstream algorithm and can improve the accuracy of auxiliary decision-making.

[0128] In the process of extracting attribute features using the feature clustering method, too few entities will result in the failure to extract key entities, resulting in reduced accuracy; too many entities will lead to the introduction of irrelevant entities, which will also result in reduced accuracy.

[0129] In order to optimize the feature entity extraction and judgment process for descriptive data, the feature extraction process is optimized according to different descriptions. Descriptions with different contents are selected to judge the impact of the content of descriptive features and the number of entities on the final decision results, and the thresholds under various conditions are determined.

[0130] Four types of descriptive data were mainly selected: defect records, with an average description of 21 words; safety measures records, with an average description of 68 words; hazard source records, with an average description of 98 words; and work ticket records, with an average description of 243 words.

[0131] In order to visually observe the impact of the number of feature entities on the probability of classification decision, other attribute features were discarded during the implementation process, so the overall accuracy is lower than the final algorithm accuracy.

[0132] Finally, the influence of the number of feature entities extracted from each descriptive data on the probability of classification decision is as follows: Figure 3 As shown. The experimental results show that the number of selected entities has a relatively large impact on the accuracy, and the more descriptive features there are, the more entities with the highest accuracy. After practicing multiple projects, it was finally determined that when 80% of the descriptive feature length is within 30 words, the 5 non-repeating entities with the largest weights are selected as feature words; when 80% of the descriptive feature length is greater than 200 words, the 20 non-repeating entities with the largest weights are selected as feature words; in other cases, the 10 non-repeating entities with the largest weights are selected as feature words.

[0133] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.

Claims

1. The auxiliary decision-making method based on industrial knowledge graph and Bayesian network is characterized by: include Collect industrial knowledge vocabulary, generate custom vocabulary, and build industrial knowledge graph; Extract features based on industrial knowledge graph, classify features into discrete features and descriptive features, and cluster descriptive features; Determine feature relationships and build a dependency matrix; Build a Bayesian network to assist decision making based on the knowledge data in the knowledge graph; The clustering of the descriptive features includes extracting entities using a hidden Markov model HMM algorithm, optimizing based on a conditional random field CRF and a long short-term memory network LSTM algorithm, and the extracted entities are stored as descriptive features in an entity array; Assign an index value to each descriptive feature, and select different numbers of feature words according to the content length of the descriptive feature. When 80% of the descriptive features are within 30 words, select the 5 non-repeating entities with the highest index value as feature words; when 80% of the descriptive features are longer than 200 words, select the 20 non-repeating entities with the highest index value as feature words; when the number or length of the descriptive features does not meet the preset requirements, select the 10 non-repeating entities with the highest index value as feature words; The selected feature phrases are converted into weighted space vectors, each word that appears is added to the phrase, and numbered, and the index value of the word is recorded, where the number is used as the dimension coordinate and the index value is used as the attribute to generate the corresponding relationship of the feature words; Use the G-Means algorithm to cluster the coordinates of each feature word, and use the final cluster category as the feature value to describe the feature; Assigning an index value to each descriptive feature includes calculating the TF-IDF value of each feature word, converting the feature word into a contextual semantic vector using a Word2Vec model, and combining the TF-IDF value and the semantic vector to form a comprehensive vector representation; The comprehensive vector is input into the self-attention mechanism of the Transformer model to calculate the importance of the feature word in the context and adjust the TF-IDF value to obtain the optimized intermediate index value; The optimized intermediate index value and context semantic vector are input into the deep learning model, the index value of the feature word is optimized through training, and the index value is finally output; The determining of feature relationships includes collecting the extracted discrete features and descriptive features, and pairing the features with corresponding classification labels to calculate conditional mutual information, which is expressed as: Among them, I(X; Y|Z) represents the mutual information between features X and Y under condition Z, p Z (z) represents the probability that the classification label Z takes the value z, p X,Y∣Z (x,y|z) represents the joint conditional probability that features X and Y take the values ​​of x and y under the condition Z=z, p X∣Z (x|z) represents the conditional probability that feature X takes the value x under the condition Z=z, p Y∣Z (y|z) represents the conditional probability that feature Y takes the value y under the condition Z=z, and x, y, z represent the specific values ​​of features X, Y and classification label Z; Perform a permutation test, randomly shuffle the relationship between features X and Y according to the preset number of times, and keep condition Z unchanged; after each shuffle, recalculate the conditional mutual information value to obtain a random CMI value distribution, compare the original conditional mutual information value with the random CMI value distribution, and calculate the significance value p. If p is less than 0.1, the conditional mutual information value of the feature pair is judged to be significant; The significance is expressed as, Among them, p represents the significance value, random CMI represents the conditional mutual information value after random shuffling, originalCMI represents the original conditional mutual information value, and totalnumber ofrandomizations represents the total number of random shuffling times; The constructing the dependency matrix includes initializing the dependency matrix, the matrix size is n×n, wherein n is the total number of features, and all elements of the initialization matrix are 0; Traverse all feature pairs and fill the matrix. If the conditional mutual information value of the feature pair is significant, set the value of the corresponding position in the matrix to 1, otherwise keep it as 0. If the dependency relationship between one feature and multiple features is significant, select the relationship with the largest conditional mutual information value and set it to 1, and the rest are set to 0; The construction of the Bayesian network includes extracting all discrete features and descriptive features from the knowledge graph as nodes of the Bayesian network, traversing each pair of features in the matrix according to the dependency matrix, and if the values ​​of the two features in the dependency matrix are 1, adding an edge in the Bayesian network and taking the related nodes as child nodes; if the values ​​of the two features in the dependency matrix are 0, taking the feature nodes as independent nodes, and constructing the preliminary structure of the Bayesian network; Based on the dynamic Bayesian network DBN method, adjust and optimize the node and edge relationships in the Bayesian network; apply all adjusted and optimized feature relationships to the Bayesian network to form the final Bayesian network structure; The posterior probability of each path is calculated using Bayes' theorem, expressed as, Among them, P(A) represents the prior probability, P(B|A) represents the conditional probability, and P(B) represents the marginal probability; Enumerate all paths in the Bayesian network and calculate the total posterior probability of each path, expressed as, Among them, P(Path) represents the total posterior probability of the path, represents the product of the posterior probabilities of all nodes from 1 to n, P(A i ∣B i ) represents the posterior probability of the i-th node on the path, and n represents the total number of nodes on the path; According to the calculated total posterior probability of the path, analyze different decision paths, select the path with the highest total posterior probability as the optimal decision path, and provide auxiliary decision suggestions; The adjusting and optimizing of the node and edge relationships in the Bayesian network includes constructing a dynamic Bayesian network, defining the size of the sliding window, gradually moving the window on the historical data, and calculating the conditional probability within the window each time the window moves, expressed as, For each sliding window, calculate the change in conditional probability P(B|A); Record the conditional probability value of each time window, input the conditional probability P(B|A) of each time window into the Kalman filter algorithm, and obtain the smoothed conditional probability curve The smoothed conditional probability of the current time window with the smoothed conditional probability of the previous time window For comparison, if Add the corresponding edge in the Bayesian network if Delete the corresponding edge in the Bayesian network, where δ + Indicates a significant increase in the threshold, δ - Indicates a significant reduction in the threshold.

2. The auxiliary decision-making method based on industrial knowledge graph and Bayesian network according to claim 1, characterized in that: Providing auxiliary decision suggestions includes analyzing and determining the cause of the defect through key nodes and features displayed in the optimal path; Provide treatment suggestions based on the cause of the defect, adjust equipment parameters, perform maintenance or replace components; provide safety measures based on the risk characteristics in the optimal path, use protective equipment, and set safety warning signs; Identify the hazardous source nodes in the optimal path, provide corresponding prompt information, identify high-risk equipment and mark them; based on the defect type and treatment measures, recommend defect elimination teams to solve the defects.

3. A system using the auxiliary decision-making method based on industrial knowledge graph and Bayesian network as described in any one of claims 1 to 2, characterized in that: include: Data acquisition module, feature extraction module, network construction module and auxiliary decision module; The data acquisition module is used to collect industrial knowledge vocabulary, generate a custom vocabulary, and construct an industrial knowledge graph; The feature extraction module is used to extract features based on the industrial knowledge graph, classify the features into discrete features and descriptive features, and cluster the descriptive features; The network construction module is used to determine feature relationships and construct a dependency matrix; The auxiliary decision module is used to construct a Bayesian network and perform auxiliary decision making based on the knowledge data in the knowledge graph.

4. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the auxiliary decision-making method based on industrial knowledge graph and Bayesian network described in any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Intelligent search engine system and method in material vertical field

    CN117171191A

  • Fusion networking method and system based on satellite communication and short-wave communication

    CN118233936A