Method, device and electronic equipment for constructing operation and maintenance knowledge graph

The pre-trained twin-tower model is used to encode fault data and solutions to build an operation and maintenance knowledge graph, which solves the problem of failure data correlation in equipment operation and maintenance, realizes efficient and accurate fault resolution suggestions, and improves operation and maintenance. efficiency.

CN118333155BActive Publication Date: 2024-09-03江苏中天互联科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410751121.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-03
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

During the equipment operation and maintenance process, existing technologies fail to effectively consider the correlation between fault data and the correlation between fault data and solutions, resulting in low operation and maintenance efficiency and accuracy.

Method used

Use the twin-tower model pre-trained to the convergence state to encode historical fault data and solutions, determine the correlation between fault coding and solution coding, and build an operation and maintenance knowledge graph to represent the relationship between fault data and solutions through node and edge weights. relationships to improve operation and maintenance efficiency.

Benefits of technology

By quantifying the correlation between fault data and solutions, we can improve the accuracy of the operation and maintenance knowledge map, provide accurate fault solution suggestions, and improve the efficiency of equipment operation and maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118333155B
    Figure CN118333155B
Patent Text Reader

Abstract

The present application proposes a method, device and electronic device for constructing an operation and maintenance knowledge graph, and the operation and maintenance knowledge graph construction method includes: using a double-tower model to encode historical fault data and solutions to obtain fault codes and solution codes; determining the first correlation between historical fault data and each solution according to the fault code and solution code; determining the fault code and solution code as nodes in the knowledge graph; classifying the historical fault data to obtain the category of each historical fault and the probability value of each historical fault belonging to the corresponding category; determining the second correlation between historical faults of the same category according to the probability value; determining the first correlation as the first edge weight between the fault code and the solution code, and determining the second correlation as the second edge weight between the fault codes; determining the knowledge graph according to the node, the first edge weight and the second edge weight. The present application relates to the field of equipment operation and maintenance technology, and can improve the efficiency of equipment operation and maintenance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent manufacturing technology, specifically to the field of equipment operation and maintenance technology, and in particular to a method, device and electronic device for constructing an operation and maintenance knowledge graph. Background Art

[0002] At present, with the continuous development of industrialization and manufacturing, in order to improve the production efficiency of manufacturing, the maintenance of industrial equipment has also received more and more attention. In the process of maintaining industrial equipment, it is usually necessary to determine the corresponding solution for the data related to equipment failure. Some organizations or individuals tend to record equipment failure data and corresponding solutions in order to improve the efficiency of equipment operation and maintenance. However, this method does not consider the correlation between fault data and the correlation between fault data and solutions, resulting in low efficiency and accuracy in determining solutions during equipment operation and maintenance. Summary of the invention

[0003] In view of the above content, it is necessary to propose a method, device and electronic device for constructing an operation and maintenance knowledge graph to solve the technical problem of low efficiency of equipment operation and maintenance.

[0004] The present application provides a method for constructing an operation and maintenance knowledge graph, which is applied to electronic equipment, and the method includes: obtaining historical fault data and a solution corresponding to each type of the historical fault data; encoding the historical fault data and the solution using a dual-tower model pre-trained to a convergent state to obtain a fault code and a solution code; determining a first correlation between the historical fault data and each solution according to the fault code and the solution code; determining the fault code and the solution code as nodes in a knowledge graph; classifying the historical fault data to obtain a category of each historical fault and a probability value that each historical fault belongs to a corresponding category; determining a second correlation between any two historical faults of the same category according to the probability value; determining the first correlation as a first edge weight between the fault code and the solution code in the knowledge graph; determining the second correlation as a second edge weight between any two fault codes of the same category in the knowledge graph; and determining the knowledge graph according to the node, the first edge weight, and the second edge weight.

[0005] In some embodiments, the method also includes the step of training the dual-tower model, and the step of training the dual-tower model includes: constructing sample data and label data based on the historical fault data and the corresponding solution; inputting the historical fault data in the sample data into a pre-constructed initial model to obtain an initial first code corresponding to the historical fault data; inputting the solution in the sample data into the pre-constructed initial model to obtain an initial second code corresponding to the solution; determining the predicted similarity between the first code and the second code; determining a first loss value of the initial model based on the predicted similarity and the label data; when the first loss value is greater than a preset termination threshold, updating the initial model based on a back-propagation algorithm until the first loss value is less than or equal to the preset termination threshold, stopping the update and obtaining a dual-tower model trained to a convergent state.

[0006] In some embodiments, determining the first loss value of the initial model according to the predicted similarity and the label data includes: determining the difference between the label data and the predicted similarity as the first loss value.

[0007] In some embodiments, determining the second correlation between any two historical faults of the same category according to the probability value includes: determining the similarity between the historical fault data corresponding to the any two historical faults of the same category; determining the second correlation between the any two historical faults of the same category according to the probability value and the similarity includes:

[0008] ; Wherein, R2 represents the second correlation; A and B respectively represent the probability values ​​that any two historical faults of the same category belong to the corresponding category; S represents the similarity between the historical fault data corresponding to any two historical faults of the same category.

[0009] In some embodiments, the method also includes a step of querying a fault solution based on the knowledge graph, and the step of querying a fault solution based on the knowledge graph includes: using the dual-tower model to encode the current fault data acquired in real time to obtain a code to be identified; querying the corresponding candidate fault code from the knowledge graph based on the code to be identified; determining a candidate solution code based on the candidate fault code, the first edge weight, and the second edge weight; and determining the fault solution corresponding to the current fault data based on the candidate solution code.

[0010] In some embodiments, querying the corresponding candidate fault code from the knowledge graph based on the code to be identified includes: traversing the fault codes in the knowledge graph, determining the third similarity between the code to be identified and the traversed fault code; determining the fault code corresponding to the highest third similarity as the initial candidate fault code; and determining the fault code of the same category as the initial candidate fault code as the candidate fault code.

[0011] In some embodiments, determining the candidate solution coding based on the candidate fault coding, the first edge weight and the second edge weight includes: determining the second edge weight between any one of the candidate fault coding and the initial candidate fault coding; determining the first edge weight between any one of the solution coding and the candidate fault coding; determining the product of the first edge weight and the second edge weight as the priority of the solution coding; and determining the candidate solution coding from the solution coding corresponding to the candidate fault coding according to the priority.

[0012] In some embodiments, determining the candidate solution code from the solution codes corresponding to the candidate fault codes according to the priority includes: determining the standard deviation of all the priorities; when the priority of any one of the solution codes is greater than the standard deviation, determining the solution code as the candidate solution code.

[0013] The embodiment of the present application also provides an operation and maintenance knowledge graph construction device, the device comprising: an acquisition module, used to acquire historical fault data, and a solution corresponding to each of the historical fault data; an encoding module, used to encode the historical fault data and the solution using a dual-tower model pre-trained to a convergent state to obtain a fault code and a solution code; a determination module, used to determine a first correlation between the historical fault data and each solution according to the fault code and the solution code; determine the fault code and the solution code as nodes in the knowledge graph; the determination module is also used to classify the historical fault data to obtain the category of each historical fault and the probability value that each historical fault belongs to the corresponding category; the determination module is also used to determine a second correlation between any two historical faults of the same category according to the probability value; the determination module is also used to determine the first correlation as a first edge weight between the fault code and the solution code in the knowledge graph; the determination module is also used to determine the second correlation as a second edge weight between any two fault codes of the same category in the knowledge graph; the determination module is also used to determine the knowledge graph according to the node, the first edge weight and the second edge weight.

[0014] An embodiment of the present application also provides an electronic device, comprising: a memory storing at least one instruction; and a processor executing the instructions stored in the memory to implement the method for constructing an operation and maintenance knowledge graph.

[0015] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the method for constructing an operation and maintenance knowledge graph.

[0016] It can be seen from the above technical solutions that the embodiment of the present application uses a dual-tower model that has been pre-trained to a convergent state to encode the historical fault data and corresponding solutions of the equipment to be operated and maintained, obtain fault codes and solution codes, and determine the first correlation between the historical fault data and each solution based on the fault codes and solution codes, thereby using quantitative data to characterize the degree of correlation between the fault data and the solution, which can improve the accuracy of the subsequent construction of the operation and maintenance knowledge graph. The fault codes and solution codes are then determined as nodes in the knowledge graph, and the second correlation between historical faults is determined. Finally, the first correlation and the second correlation are used as edge weights in the knowledge graph, and the operation and maintenance knowledge graph of the equipment to be operated and maintained is determined. Based on the quantitative characterization of the degree of correlation between the fault data and the solution, accurate solution suggestions can be provided for the fault conditions of the equipment to be operated and maintained, thereby improving the efficiency of equipment operation and maintenance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is an application scenario diagram of an operation and maintenance knowledge graph construction method provided in one embodiment of the present application.

[0018] Figure 2 It is a flowchart of a method for constructing an operation and maintenance knowledge graph provided in one embodiment of the present application.

[0019] Figure 3 It is a functional module diagram of an operation and maintenance knowledge graph construction device provided in one embodiment of the present application.

[0020] Figure 4 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0021] In order to more clearly understand the purpose, features and advantages of the present application, the present application is described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that, in the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other. In the following description, many specific details are set forth to facilitate a full understanding of the present application, and the embodiments described are only a part of the embodiments of the present application, rather than all of the embodiments.

[0022] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art to which the present application belongs. The terms used herein in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. The term "and / or" used herein includes any and all combinations of one or more of the related listed items.

[0024] The embodiment of the present application provides a method for constructing an operation and maintenance knowledge graph, which can be applied to one or more electronic devices. The electronic device is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application specific integrated circuits (Application Specific Integrated Circuit, ASIC), programmable gate arrays (Field-Programmable Gate Array, FPGA), digital processors (Digital Signal Processor, DSP), embedded devices, etc.

[0025] An electronic device can be any electronic product that can interact with customers, such as personal computers, tablet computers, smart phones, personal digital assistants (PDAs), game consoles, Internet Protocol Television (IPTV), smart wearable devices, etc.

[0026] The electronic device may also include a network device and / or a client device, wherein the network device includes, but is not limited to, a single network server, a server group consisting of multiple network servers, or a cloud consisting of a large number of hosts or network servers based on cloud computing.

[0027] The networks where electronic devices are located include but are not limited to the Internet, wide area network, metropolitan area network, local area network, virtual private network (VPN), etc.

[0028] like Figure 1As shown, a method for constructing an operation and maintenance knowledge graph provided by the present application can be applied to an electronic device 100, and the electronic device 100 is connected to a server 200 in communication. The electronic device 100 is used to obtain historical fault data from the server 200, and a solution corresponding to each of the historical fault data; the historical fault data and the solution are encoded using a dual-tower model pre-trained to a convergent state to obtain a fault code and a solution code; the first correlation between the historical fault data and each solution is determined according to the fault code and the solution code; the fault code and the solution code are determined as nodes in the knowledge graph; the historical fault data are classified to obtain the category of each historical fault and the probability value that each historical fault belongs to the corresponding category; the second correlation between any two historical faults of the same category is determined according to the probability value; the first correlation is determined as the first edge weight between the fault code and the solution code in the knowledge graph; the second correlation is determined as the second edge weight between any two fault codes of the same category in the knowledge graph; the knowledge graph is determined according to the node, the first edge weight and the second edge weight.

[0029] like Figure 2 As shown, it is a flowchart of a method for constructing an operation and maintenance knowledge graph provided by an embodiment of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. A method for constructing an operation and maintenance knowledge graph provided by an embodiment of the present application includes the following steps.

[0030] S20, obtaining historical fault data and a solution corresponding to each type of the historical fault data.

[0031] In one embodiment of the present application, in order to quantitatively characterize the fault data of the equipment to be maintained and the corresponding solutions, and to establish an operation and maintenance knowledge graph for the operation and maintenance process of the equipment to be maintained, thereby improving the operation and maintenance efficiency of the equipment to be maintained, the historical fault data of the equipment to be maintained and the solutions corresponding to each type of historical fault data can be obtained.

[0032] The historical fault data is used to represent the equipment operation data collected by each sensor in the equipment to be maintained when the equipment to be maintained has a historical fault. For example, the historical fault data can be the current value, voltage value or temperature value collected by a sensor when the equipment to be maintained has a historical fault, and this application does not limit this.

[0033] The solution is used to represent a solution for solving a certain historical fault of the device to be maintained. Specifically, the solution may be text data, which is used to represent a strategy for maintaining the device to be maintained.

[0034] S21, using the dual-tower model that has been pre-trained to a convergent state to encode the historical fault data and the solution to obtain a fault code and a solution code.

[0035] In one embodiment of the present application, in order to improve the accuracy of encoding historical fault data and corresponding solutions, a dual-tower model may be trained based on the historical fault data and the corresponding solutions.

[0036] In one embodiment of the present application, the step of training the dual-tower model includes: constructing sample data and label data based on the historical fault data and the corresponding solutions; inputting the historical fault data in the sample data into a pre-constructed initial model to obtain an initial first code corresponding to the historical fault data; inputting the solution in the sample data into the pre-constructed initial model to obtain an initial second code corresponding to the solution; determining the predicted similarity between the first code and the second code; determining a first loss value of the initial model based on the predicted similarity and the label data; when the first loss value is greater than a preset termination threshold, updating the initial model based on a back-propagation algorithm until the first loss value is less than or equal to the preset termination threshold, stopping the update and obtaining a dual-tower model trained to a convergent state.

[0037] Among them, each sample data includes a historical fault data and a solution. When the historical fault data and the solution in the sample data correspond, the label data corresponding to the sample data can be 1, which is used to represent the association between the historical fault data and the solution in the sample data; when the historical fault data and the solution in the sample data do not correspond, the label data corresponding to the sample data can be 0, which is used to represent that there is no mutual association between the historical fault data and the solution in the sample data.

[0038] Among them, the prediction similarity is used to characterize the degree of correlation between the historical fault data and the solution in the sample data predicted by the initial model. The higher the prediction similarity, the higher the degree of correlation between the historical fault data and the solution in the sample data.

[0039] In an embodiment of the present application, determining the first loss value of the initial model according to the predicted similarity and the label data includes: determining the difference between the label data and the predicted similarity as the first loss value.

[0040] S22, determining a first correlation between historical fault data and each solution according to the fault code and the solution code; and determining the fault code and the solution code as nodes in a knowledge graph.

[0041] In an embodiment of the present application, the reciprocal of the Euclidean distance between the fault code and the solution code may be determined, and the reciprocal may be determined as the first correlation between the fault code and the solution code; or the cosine similarity between the fault code and the solution code may be determined as the first correlation between the fault code and the solution code. The present application does not limit the method for determining the first similarity.

[0042] S23, classifying the historical fault data to obtain a category of each historical fault and a probability value of each historical fault belonging to a corresponding category.

[0043] In one embodiment of the present application, a pre-trained classification model can be used to classify historical fault data to obtain the category of historical faults and the probability of belonging to the category. Among them, the pre-trained classification model can be a decision tree model, a random forest model, a multi-layer perceptron model, etc., which has data classification function models, and the present application does not limit this. Exemplarily, the fault categories include wear type, aging type, operation type, maintenance type, etc., and the present application does not limit the specific classification method of the fault category.

[0044] S24, determining a second correlation between any two historical faults of the same category according to the probability value.

[0045] In an embodiment of the present application, determining the second correlation between any two historical faults of the same category according to the probability value includes: determining the similarity between the historical fault data corresponding to the any two historical faults of the same category; determining the second correlation between the any two historical faults of the same category according to the probability value and the similarity includes:

[0046] ; Wherein, R2 represents the second correlation; A and B respectively represent the probability values ​​that any two historical faults of the same category belong to the corresponding category; S represents the similarity between the historical fault data corresponding to any two historical faults of the same category.

[0047] S25, determining the first correlation as the first edge weight between the fault code and the solution code in the knowledge graph.

[0048] S26, determining the second correlation as the second edge weight between any two fault codes of the same category in the knowledge graph.

[0049] In one embodiment of the present application, when the fault data corresponding to any two fault codes have the same category, it can be determined that there is a correlation between the any two fault codes, and the second correlation can be determined as the second edge weight between any two fault codes of the same category in the knowledge graph.

[0050] S27, determining the knowledge graph according to the node, the first edge weight and the second edge weight.

[0051] In one embodiment of the present application, the knowledge graph of the equipment to be maintained can be determined based on the nodes in the determined knowledge graph, and the first edge weight and the second edge weight between the nodes. Specifically, the knowledge graph is used to store the historical failures and corresponding solutions of the equipment to be maintained using quantitative data, and can characterize the correlation between historical failures, and the correlation between historical failures and solutions. In this way, the solution corresponding to the failure of the equipment to be maintained can be queried through the knowledge graph later, thereby improving the efficiency of equipment maintenance.

[0052] In one embodiment of the present application, the step of querying a fault solution based on the knowledge graph includes: using the dual-tower model to encode the current fault data acquired in real time to obtain a code to be identified; querying the corresponding candidate fault code from the knowledge graph according to the code to be identified; determining a candidate solution code according to the candidate fault code, the first edge weight, and the second edge weight; and determining the fault solution corresponding to the current fault data according to the candidate solution code.

[0053] In one embodiment of the present application, querying the corresponding candidate fault code from the knowledge graph based on the code to be identified includes: traversing the fault codes in the knowledge graph, determining the third similarity between the code to be identified and the traversed fault code; determining the fault code corresponding to the highest third similarity as the initial candidate fault code; and determining a fault code of the same category as the initial candidate fault code as a candidate fault code.

[0054] In one embodiment of the present application, determining the candidate solution coding based on the candidate fault coding, the first edge weight and the second edge weight includes: determining the second edge weight between any one of the candidate fault coding and the initial candidate fault coding; determining the first edge weight between any one of the solution coding and the candidate fault coding; determining the product of the first edge weight and the second edge weight as the priority of the solution coding; and determining the candidate solution coding from the solution coding corresponding to the candidate fault coding according to the priority.

[0055] In one embodiment of the present application, determining a candidate solution code from the solution codes corresponding to the candidate fault codes according to the priority includes: determining the standard deviation of all the priorities; when the priority of any one of the solution codes is greater than the standard deviation, determining the solution code as a candidate solution code.

[0056] It can be seen from the above technical solutions that the embodiment of the present application uses a dual-tower model that has been pre-trained to a convergent state to encode the historical fault data and corresponding solutions of the equipment to be operated and maintained, obtain fault codes and solution codes, and determine the first correlation between the historical fault data and each solution based on the fault codes and solution codes, thereby using quantitative data to characterize the degree of correlation between the fault data and the solution, which can improve the accuracy of the subsequent construction of the operation and maintenance knowledge graph. The fault codes and solution codes are then determined as nodes in the knowledge graph, and the second correlation between historical faults is determined. Finally, the first correlation and the second correlation are used as edge weights in the knowledge graph, and the operation and maintenance knowledge graph of the equipment to be operated and maintained is determined. Based on the quantitative characterization of the degree of correlation between the fault data and the solution, accurate solution suggestions can be provided for the fault conditions of the equipment to be operated and maintained, thereby improving the efficiency of equipment operation and maintenance.

[0057] See also Figure 3 , Figure 3 It is a functional module diagram of an operation and maintenance knowledge graph construction device provided in an embodiment of the present application. An operation and maintenance knowledge graph construction device 31 includes an acquisition module 310, an encoding module 311 and a determination module 312. The module / unit referred to in this application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can complete fixed functions, which are stored in the memory 12. In this embodiment, the functions of each module / unit will be described in detail in subsequent embodiments.

[0058] The acquisition module 310 is used to acquire historical fault data and a solution corresponding to each type of the historical fault data.

[0059] The encoding module 311 is used to encode the historical fault data and the solution using the dual-tower model that has been pre-trained to a convergent state to obtain a fault code and a solution code.

[0060] The determination module 312 is used to determine the first correlation between the historical fault data and each solution according to the fault code and the solution code; and determine the fault code and the solution code as nodes in the knowledge graph.

[0061] The determination module 312 is further configured to classify the historical fault data to obtain a category of each historical fault and a probability value of each historical fault belonging to a corresponding category.

[0062] The determination module 312 is further configured to determine a second correlation between any two historical faults of the same category according to the probability value.

[0063] The determination module 312 is further used to determine that the first correlation is a first edge weight between the fault code and the solution code in the knowledge graph.

[0064] The determination module 312 is further configured to determine that the second correlation is a second edge weight between any two fault codes of the same category in the knowledge graph.

[0065] The determination module 312 is further used to determine the knowledge graph according to the node, the first edge weight and the second edge weight.

[0066] The encoding module 311 is also used to train the dual-tower model, including: constructing sample data and label data based on the historical fault data and the corresponding solutions; inputting the historical fault data in the sample data into a pre-constructed initial model to obtain an initial first encoding corresponding to the historical fault data; inputting the solution in the sample data into the pre-constructed initial model to obtain an initial second encoding corresponding to the solution; determining the predicted similarity between the first encoding and the second encoding; determining a first loss value of the initial model based on the predicted similarity and the label data; when the first loss value is greater than a preset termination threshold, updating the initial model based on a back-propagation algorithm until the first loss value is less than or equal to the preset termination threshold, stopping the update and obtaining a dual-tower model trained to a convergent state.

[0067] The encoding module 311 is further configured to determine the difference between the label data and the predicted similarity as the first loss value.

[0068] The determination module 312 is further configured to determine the similarity between the historical fault data corresponding to any two historical faults of the same category; and to determine the second correlation between the any two historical faults of the same category according to the probability value and the similarity, including:

[0069] ; Wherein, R2 represents the second correlation; A and B respectively represent the probability values ​​that any two historical faults of the same category belong to the corresponding category; S represents the similarity between the historical fault data corresponding to any two historical faults of the same category.

[0070] The determination module 312 is also used to use the dual-tower model to encode the current fault data obtained in real time to obtain the code to be identified; query the corresponding candidate fault code from the knowledge graph according to the code to be identified; determine the candidate solution code according to the candidate fault code, the first edge weight and the second edge weight; determine the fault solution corresponding to the current fault data according to the candidate solution code.

[0071] The determination module 312 is further used to traverse the fault codes in the knowledge graph, determine the third similarity between the code to be identified and the traversed fault code; determine the fault code corresponding to the highest third similarity as the initial candidate fault code; and determine the fault code of the same category as the initial candidate fault code as the candidate fault code.

[0072] The determination module 312 is also used to determine the second edge weight between any one of the candidate fault codes and the initial candidate fault code; determine the first edge weight between any one of the scheme codes and the candidate fault code; determine the product of the first edge weight and the second edge weight as the priority of the scheme code; and determine the candidate scheme code from the scheme codes corresponding to the candidate fault code according to the priority.

[0073] The determination module 312 is further configured to determine a standard deviation of all the priorities; when the priority of any one of the scheme codes is greater than the standard deviation, the scheme code is determined to be a candidate scheme code.

[0074] See also Figure 4 , is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 100 includes a memory 12 and a processor 13. The memory 12 is used to store computer-readable instructions, and the processor 13 is used to execute the computer-readable instructions stored in the memory to implement a method for constructing an operation and maintenance knowledge graph described in any of the above embodiments.

[0075] In one embodiment of the present application, the electronic device 100 also includes a bus, a computer program stored in the memory 12 and executable on the processor 13, such as a maintenance knowledge graph construction program.

[0076] Figure 4 Only the electronic device 100 having the memory 12 and the processor 13 is shown, and those skilled in the art can understand that Figure 4 The structure shown does not constitute a limitation on the electronic device 100 , and the electronic device 100 may include fewer or more components than shown in the figure, or combine some components, or arrange the components differently.

[0077] Combination Figure 2The memory 12 in the electronic device 100 stores a plurality of computer-readable instructions to implement a method for constructing an operation and maintenance knowledge graph, and the processor 13 can execute the plurality of instructions to implement: obtaining historical fault data and a solution corresponding to each of the historical fault data; encoding the historical fault data and the solution using a dual-tower model pre-trained to a convergent state to obtain a fault code and a solution code; determining a first correlation between the historical fault data and each solution according to the fault code and the solution code; determining the fault code and the solution code as nodes in the knowledge graph; classifying the historical fault data to obtain a category of each historical fault and a probability value that each historical fault belongs to a corresponding category; determining a second correlation between any two historical faults of the same category according to the probability value; determining the first correlation as a first edge weight between the fault code and the solution code in the knowledge graph; determining the second correlation as a second edge weight between any two fault codes of the same category in the knowledge graph; determining the knowledge graph according to the node, the first edge weight, and the second edge weight.

[0078] Specifically, the specific implementation method of the processor 13 for the above instructions can refer to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0079] Those skilled in the art will appreciate that the schematic diagram is merely an example of the electronic device 100 and does not constitute a limitation on the electronic device 100. The electronic device 100 may be a bus-type structure or a star-type structure. The electronic device 100 may also include more or less other hardware or software than shown in the diagram, or a different arrangement of components. For example, the electronic device 100 may also include input and output devices, network access devices, etc.

[0080] It should be noted that the electronic device 100 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.

[0081] Among them, the memory 12 includes at least one type of readable storage medium, and the readable storage medium can be non-volatile or volatile. The readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, disk, optical disk, etc. In some embodiments, the memory 12 can be an internal storage unit of the electronic device 100, such as a mobile hard disk of the electronic device 100. In other embodiments, the memory 12 can also be an external storage device of the electronic device 100, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (FlashCard), etc. equipped on the electronic device 100. The memory 12 can not only be used to store application software and various types of data installed in the electronic device 100, such as a code of an operation and maintenance knowledge graph construction program, but also can be used to temporarily store data that has been output or is to be output.

[0082] In some embodiments, the processor 13 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and a combination of various control chips. The processor 13 is the control core (Control Unit) of the electronic device 100, and uses various interfaces and lines to connect the various components of the entire electronic device 100, and executes or executes the programs or modules stored in the memory 12 (for example, executes a maintenance knowledge graph construction program, etc.), and calls the data stored in the memory 12 to execute various functions of the electronic device 100 and process data.

[0083] The processor 13 executes the operating system of the electronic device 100 and various installed applications. The processor 13 executes the applications to implement the steps in each of the above-mentioned embodiments of the method for constructing an operation and maintenance knowledge graph, for example Figure 2 Steps shown.

[0084] Exemplarily, the computer program may be divided into one or more modules / units, which are stored in the memory 12 and executed by the processor 13 to complete the present application. The one or more modules / units may be a series of computer-readable instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the electronic device 100. For example, the computer program may be divided into an acquisition module 310, an encoding module 311, and a determination module 312.

[0085] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a processor to execute a part of a method for constructing an operation and maintenance knowledge graph described in each embodiment of the present application.

[0086] If the module / unit integrated in the electronic device 100 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also instruct the relevant hardware devices to complete through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above-mentioned method embodiments can be implemented.

[0087] The computer program includes computer program code, which may be in source code form, object code form, executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory and other memory, etc.

[0088] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the blockchain node, etc.

[0089] The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. Figure 4 Only one arrow is used in the figure, but it does not mean that there is only one bus or one type of bus. The bus is configured to realize the connection and communication between the memory 12 and at least one processor 13, etc.

[0090] An embodiment of the present application also provides a computer-readable storage medium (not shown), in which computer-readable storage medium is stored computer-readable instructions, and the computer-readable instructions are executed by a processor in an electronic device to implement a method for constructing an operation and maintenance knowledge graph as described in any of the above embodiments.

[0091] In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0092] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0093] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0094] In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any specific order.

[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. A method for constructing an operation and maintenance knowledge graph, applied to electronic equipment, characterized in that: The method comprises: Obtaining historical fault data and a solution corresponding to each of the historical fault data; Encoding the historical fault data and the solution using a dual-tower model that has been pre-trained to a convergent state to obtain a fault code and a solution code; Determine a first correlation between historical fault data and each solution according to the fault code and the solution code; determine the fault code and the solution code as nodes in a knowledge graph; Classifying the historical fault data to obtain a category of each historical fault and a probability value of each historical fault belonging to a corresponding category; Determining the second correlation between any two historical faults of the same category according to the probability value, including: determining the similarity between the historical fault data corresponding to the any two historical faults of the same category; determining the second correlation between the any two historical faults of the same category according to the probability value and the similarity, including: R2=A*S+B*S; wherein R2 represents the second correlation; A and B respectively represent the probability values ​​that the any two historical faults of the same category belong to the corresponding category; S represents the similarity between the historical fault data corresponding to the any two historical faults of the same category; Determining the first correlation as a first edge weight between the fault code and the solution code in the knowledge graph; Determine the second correlation as a second edge weight between any two fault codes of the same category in the knowledge graph; The knowledge graph is determined according to the node, the first edge weight, and the second edge weight.

2. The operation and maintenance knowledge graph construction method according to claim 1, characterized in that: The method further comprises the step of training the twin-tower model, wherein the step of training the twin-tower model comprises: Constructing sample data and label data according to the historical fault data and the corresponding solution; Inputting historical fault data in the sample data into a pre-built initial model to obtain an initial first code corresponding to the historical fault data; Inputting the solution in the sample data into the pre-built initial model to obtain an initial second code corresponding to the solution; Determining a predicted similarity between the first encoding and the second encoding; Determine a first loss value of the initial model according to the predicted similarity and the label data; When the first loss value is greater than a preset termination threshold, the initial model is updated based on the back propagation algorithm until the first loss value is less than or equal to the preset termination threshold, and the updating is stopped to obtain a dual-tower model trained to a convergent state.

3. The operation and maintenance knowledge graph construction method according to claim 2, characterized in that: Determining the first loss value of the initial model according to the predicted similarity and the label data includes: The difference between the label data and the predicted similarity is determined as the first loss value.

4. The operation and maintenance knowledge graph construction method according to claim 1, characterized in that: The method further comprises the step of querying a fault solution according to the knowledge graph, wherein the step of querying a fault solution according to the knowledge graph comprises: The dual-tower model is used to encode the current fault data acquired in real time to obtain a code to be identified; According to the code to be identified, query the corresponding candidate fault code from the knowledge graph; Determine a candidate solution code according to the candidate fault code, the first edge weight, and the second edge weight; A fault solution corresponding to the current fault data is determined according to the candidate solution code.

5. The method for constructing an operation and maintenance knowledge graph according to claim 4, characterized in that: The querying of the corresponding candidate fault code from the knowledge graph according to the code to be identified includes: Traversing the fault codes in the knowledge graph, and determining a third similarity between the code to be identified and the traversed fault code; Determine the fault code corresponding to the highest third similarity as the initial candidate fault code; A fault code of the same category as the initial candidate fault code is determined as a candidate fault code.

6. The method for constructing an operation and maintenance knowledge graph according to claim 5, characterized in that: Determining a candidate solution code according to the candidate fault code, the first edge weight, and the second edge weight includes: Determine a second edge weight between any one of the candidate fault codes and the initial candidate fault code; Determine a first edge weight between any one of the solution codes and the candidate fault code; Determine the product of the first edge weight and the second edge weight as the priority of the scheme encoding; A candidate solution code is determined from the solution codes corresponding to the candidate fault codes according to the priority.

7. The method for constructing an operation and maintenance knowledge graph according to claim 6, characterized in that: Determining the candidate solution code from the solution codes corresponding to the candidate fault codes according to the priority comprises: determining the standard deviation of all said priorities; When the priority of any one of the scheme codes is greater than the standard deviation, the scheme code is determined to be a candidate scheme code.

8. A device for constructing an operation and maintenance knowledge graph, characterized in that: The device includes a module for implementing the operation and maintenance knowledge graph construction method according to any one of claims 1 to 7, and the device includes: An acquisition module, used to acquire historical fault data and a solution corresponding to each of the historical fault data; An encoding module, used for encoding the historical fault data and the solution using a dual-tower model pre-trained to a convergence state to obtain a fault code and a solution code; A determination module, configured to determine a first correlation between historical fault data and each solution according to the fault code and the solution code; and determine the fault code and the solution code as nodes in a knowledge graph; The determination module is further used to classify the historical fault data to obtain the category of each historical fault and the probability value of each historical fault belonging to the corresponding category; The determination module is further used to determine a second correlation between any two historical faults of the same category according to the probability value; The determination module is further configured to determine that the first correlation is a first edge weight between the fault code and the solution code in the knowledge graph; The determination module is further used to determine that the second correlation is a second edge weight between any two fault codes of the same category in the knowledge graph; The determination module is also used to determine the knowledge graph based on the node, the first edge weight and the second edge weight.

9. An electronic device, characterized in that: The electronic device includes a processor and a memory, and the processor is used to implement the operation and maintenance knowledge graph construction method as described in any one of claims 1 to 7 when executing the computer program stored in the memory.