Equipment disassembly and assembly knowledge recommendation method based on knowledge graph
By constructing a knowledge graph during the equipment disassembly and assembly process and using the Doc2Vec model for semantic vector training, combined with real-time query in the Cypher language, the problem of low efficiency in equipment disassembly and assembly in the traditional industrial field is solved, intelligent assisted disassembly and assembly is realized, and efficiency is improved. and flexibility, reducing costs.
Patent Information
- Application Number
- CN202410739310.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology is inefficient in the process of equipment disassembly and assembly. Paper manuals are cumbersome and easy to misunderstand, resulting in irregular operations and increased disassembly and assembly costs. Knowledge graphs are rarely used in traditional industrial fields and lack contextual semantic information. Excavation and flexibility make it difficult to meet the disassembly and assembly requirements of complex equipment.
A knowledge graph-based equipment disassembly and assembly knowledge recommendation method is adopted. By constructing a graph of entity types and relationship types, the Doc2Vec model is used to train semantic vectors, and the Cypher language is used for real-time query and recommendation to achieve intelligent assistance for disassembly and assembly behaviors.
It improves the efficiency of the equipment disassembly and assembly process, provides more prompt information, reduces labor costs, improves the intelligent operation and maintenance level of equipment, and can more accurately handle the disassembly and assembly requirements of complex equipment.
Smart Images

Figure CN118760697A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the disassembly and assembly process of equipment, and more specifically, to a method for recommending equipment disassembly and assembly knowledge based on a knowledge graph. Background Art
[0002] At present, the continuous improvement of equipment performance has made its disassembly and assembly process more complicated and cumbersome, and has higher precision requirements. Taking a hydroelectric generator as an example, it involves thousands of parts, disassembly and assembly tools, etc.
[0003] , any small misoperation may seriously affect the overall disassembly and assembly efficiency. However, currently a large number of disassembly and assembly instruction documents are still stored in paper form, and operators need to manually consult them, which is inefficient and does not match the actual operation. In addition, the information in the paper manual is easily misunderstood, resulting in irregular operations, which in turn causes damage to parts and increases disassembly and assembly costs. Therefore, a more efficient knowledge organization and storage method is urgently needed.
[0004] The knowledge graph has injected new inspiration into solving this problem. The knowledge graph is stored and queried in a graph structure, describing and storing various entities, concepts and their relationships in a structured form such as entity-relationship-entity or concept-attribute-attribute value. The disassembly and assembly logic of complex equipment can be presented in a more direct and natural way, and it makes it possible to quickly query multiple hops and explore the connections between knowledge to complete recommendations.
[0005] So far, knowledge graphs have been widely used in encyclopedias, e-commerce, news and other fields, but in the traditional industrial field, there is little research on combining the recommendation of industry disassembly and assembly knowledge with knowledge graphs. This results in the need to manually consult the specification manual when disassembly and assembly problems arise during the disassembly and assembly process, greatly increasing the time and labor costs of disassembly and assembly work.
[0006] In terms of information retrieval based on knowledge graphs, Guo Heng et al. performed keyword analysis on query statements and mapped them to ontology concepts and entities in the KG, realizing high-speed train maintenance knowledge retrieval through relationships; Xing Xueqi et al. used the fusion method of the term frequency-inverse document frequency (TF-IDF) algorithm and named entity recognition to perform text matching on user questions, calculated the similarity using the edit distance between nodes and entities, and finally recommended maintenance solutions in the field of commercial aircraft.
[0007] Knowledge recommendation based on knowledge graphs has been widely used in different task scenarios, but most of them still rely on pre-set keywords, fixed parsing modes, or processing query statements through named entity recognition. The former is inefficient and has poor accuracy; the latter relies on the accuracy of entity recognition algorithms and has limited ability to process unpopular words outside the knowledge base. At the same time, both lack the mining of contextual semantic information, rely too much on manually maintained synonym libraries, and lack flexibility. At the same time, the accuracy of knowledge recommendation algorithms is highly dependent on domain characteristics, so their scalability in different application fields is average.
[0008] During the disassembly and assembly operation, workers perform operations step by step according to the disassembly and assembly sequence. By positioning the current operation behavior in the disassembly and assembly process, recommending the next operation to be performed can speed up the disassembly and assembly process and improve efficiency. However, the knowledge graph structure of the hydro-turbine generator is complex, the disassembly and assembly process is highly real-time, and under the condition of limited length of the recommendation list, simply recommending downstream steps cannot meet complex needs.
[0009] Related Literature:
[0010] [1] Guo Heng, Li Rong, Zhang Haizhu, et al. Construction of knowledge graph for high-speed train maintainability design based on multi-domain integration[J]. China Mechanical Engineering, 2022, 33(24): 3015-3023.
[0011] [2] Xing Xueqi, Ding Yutong, Xia Tangbin, et al. Integrated modeling of commercial aircraft maintenance plan recommendation system based on knowledge graph[J]. Journal of Zhejiang University (Engineering Edition), 2023, 57(03): 512-521. Summary of the invention
[0012] Based on the above problems, the present invention proposes a method for recommending equipment disassembly and assembly knowledge based on knowledge graph. Through knowledge recommendation based on current behavior and information retrieval based on real-time needs, more prompt information is provided to disassembly and assembly personnel, assisting workers in disassembly and assembly operations, improving the efficiency of the disassembly and assembly process, and playing an important role in improving the level of intelligent operation and maintenance of equipment. The technical solution is as follows:
[0013] A method for recommending equipment disassembly and assembly knowledge based on knowledge graph includes the following steps:
[0014] Step 1: Build an equipment disassembly and assembly knowledge graph, including entity types, and define the relationship types between entities to store and describe the disassembly and assembly process; use a graph database to store the equipment disassembly and assembly knowledge graph.
[0015] Step 2: Based on the equipment disassembly and assembly knowledge graph, the head and tail nodes, relationship information, and label content are spliced, fused, and preprocessed to generate a data set for Doc2Vec model training;
[0016] Step 3: Train the Doc2Vec model;
[0017] Step 4: Based on the equipment disassembly and assembly knowledge graph, map the current disassembly and assembly behavior to the disassembly and assembly knowledge node in the knowledge graph;
[0018] Step 5: Based on the current disassembly and assembly knowledge node, recommend downstream node knowledge according to the knowledge graph relationship;
[0019] Step 6: Use the Doc2Vec model to generate a semantic vector of the query statement, the knowledge graph head node, and the relationship combination information;
[0020] Using the trained Doc2Vec model, the query sentence is taken as input, and the model outputs the semantic embedding of the query text; the node and relationship combination information is taken as input, and the model outputs the semantic embedding of the combination information, which is used as the root vector;
[0021] Step 7: Calculate the similarity between the query statement and the semantic vector of the head node and relationship combination information, select the head node and relationship combination information with the highest similarity, and return the corresponding tail node content as the recommendation result.
[0022] Furthermore, the equipment disassembly and assembly knowledge graph includes nine entity types: component name, part name, assembly process name, assembly process standard, disassembly process name, disassembly and assembly tools, disassembly and assembly resources, and disassembly and assembly process constraints.
[0023] Furthermore, the relationships between entities and their main meanings are shown in Table 1;
[0024] Table 1 Relationships between entities and their meanings
[0025]
[0026] Furthermore, in the fifth step, the query statement is executed in Neo4j through the Cypher language to recommend the subsequent disassembly and assembly knowledge nodes based on the relationship "next step"; the recommendation of the next disassembly and assembly step is realized.
[0027] Furthermore, in the first step, Neo4j is used as a knowledge storage, update and visualization tool.
[0028] Furthermore, in the third step, the training mode is selected as the PV-DM mode.
[0029] Furthermore, in the fourth step, query statements are executed in Neo4j through the Cypher language to locate the relevant steps.
[0030] The Doc2Vec model adopted in the present invention introduces the paragraph theme to participate in iterative training, which can learn the semantic information of disassembling and assembling knowledge, semantically vectorize the query sentence and the graph head node and their relationship information, complete the retrieval of the knowledge base through the similarity comparison of the vectors, and solve the problems of limited deep information mining and poor flexibility of the keyword recognition method. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 : Schematic diagram of part of the Neo4j knowledge graph.
[0032] Figure 2 : Doc2Vec model training method.
[0033] Figure 3 : Query localization of stator assembly steps in Neo4j.
[0034] Figure 4 : Comparison of text matching results of different models.
[0035] Figure 5 : Visualization of the disassembly and assembly process of the stator parts in Neo4j.
[0036] Figure 6 : Flowchart of the present invention. DETAILED DESCRIPTION
[0037] The technical route of the present invention is:
[0038] S1: Preprocess the data of nodes and relationship contents in the equipment disassembly and assembly knowledge graph; S2: Train the Doc2Vec model based on the preprocessed data; S3: Map the current disassembly and assembly behavior to the disassembly and assembly knowledge node in the knowledge graph based on the equipment disassembly and assembly knowledge graph; S4: Based on the current node, recommend downstream node knowledge according to the knowledge graph relationship; S5: Use the trained Doc2Vec model to generate the semantic vector of the user query statement and the knowledge graph head node and relationship combination information; S6: Calculate the similarity between the query statement and the semantic vector of the head node and relationship combination information, select the head node and relationship combination information with the highest similarity, and return the corresponding tail node content.
[0039] The present invention is described below in conjunction with the accompanying drawings and embodiments.
[0040] Step 1: Build a knowledge graph for equipment disassembly and assembly
[0041] The recommendation of hydro-turbine generator disassembly and assembly knowledge is based on the existing disassembly and assembly knowledge. It has been constructed according to the disassembly and assembly process manual of a bulb-type hydro-turbine generator in my country. It mainly includes nine entity types: component name, part name, assembly process name, assembly process standard, disassembly process name, disassembly and assembly tools, disassembly and assembly resources, and disassembly and assembly process constraints. It covers rich knowledge content about the disassembly and assembly of hydro-turbine generators. At the same time, the relationship type between entities is defined to store and describe the disassembly and assembly process in detail. After the construction is completed, there are 511 entities and 7 relationships in total.
[0042] The relationships between entities and their main meanings are shown in Table 1.
[0043] Table 1 Relationships between entities and their meanings
[0044]
[0045]
[0046] A graph database is used to store the knowledge graph of disassembly and assembly of hydro-generators. The present invention uses Neo4j, which is simple to operate and has a fast query speed, as a knowledge storage, update and visualization tool. Figure 1 This is the visualization result of some knowledge graph content in Neo4j. Figure a shows some assembly steps and assembly standards of the stator component. Figure b shows some disassembly steps, parts, and the use of disassembly resources and tools for the collector ring. Among them, light pink nodes are assembly steps, blue nodes are assembly standards, green nodes are parts, orange nodes are disassembly steps, and pink nodes are disassembly resources.
[0047] Step 2: Perform data preprocessing on the nodes and relationship contents in the equipment disassembly and assembly knowledge graph.
[0048] Based on the knowledge graph of the disassembly and assembly of hydro-turbine generators, the head and tail nodes, relationship information and label content are spliced, fused and preprocessed to generate a data set for Doc2Vec model training. After splicing and processing, the word order is reasonably adjusted, invalid data is removed and some disassembly and assembly information content is supplemented, and 1,154 training data for the Doc2Vec model are obtained. At the same time, the combination of the head node and the relationship is similar to a pointer, which can locate the corresponding tail node. The content of the head node and the relationship is string spliced and the word order is adjusted as the pointer data of the knowledge graph.
[0049] Step 3: Train the Doc2Vec model based on the preprocessed data.
[0050] As an unsupervised learning algorithm, the Doc2Vec method can learn the distribution vectors of texts of arbitrary length. In each iteration, the paragraph id vector is used as part of the input and is regarded as the main idea of the sentence. As the main idea of the sentence is continuously refined with each iteration, the global semantics is taken into account during the training process, so the ability to grasp semantic information is stronger.
[0051] Doc2Vec includes two training methods: Figure 2 As shown in the figure. Figure a is the Distributed Bag of Words Version of Paragraph Vector (PV-DBOW), which inputs the paragraph id and maps it to a vector. Each iteration samples a text window and randomly extracts a word from it for prediction; Figure b is the Distributed Memory Model of Paragraph Vectors (PV-DM), which slides the window from the sentence in each iteration, takes one word as the output prediction, and accumulates or averages the word vectors of other words and the paragraph theme vector as input. During the prediction process, the word vector and model parameters no longer change, and only the paragraph vector is iteratively updated, which improves the operating efficiency. When the query request contains unfamiliar words, the paragraph theme will also be iterated as input, and the matching process uses the full sentence vector, so the matching accuracy is improved.
[0052] Train the Doc2Vec model to generate semantic embeddings for nodes. The model hyperparameters are set to: vector dimension 80, minimum word frequency min_count 1, sliding window size 5, iterations 200, mode dm_concat 1, that is, the paragraph id vector and the word vector are concatenated as the input of the neural network, and the training method is selected as PV-DM to achieve better results. The principle of the Doc2Vec model is as follows Figure 2 shown.
[0053] Step 4: Based on the equipment disassembly and assembly knowledge graph, map the current disassembly and assembly behavior to the disassembly and assembly knowledge node in the knowledge graph.
[0054] By executing query statements in Neo4j using the Cypher language, you can locate the relevant steps. For example, by matching p = (n:`:component`{name:'stator'})-[r:`assembly step`]->(e), m = (e:`:assembly step`{name:"insert eccentric pin"}), return p,m, you can locate a certain assembly step of the component stator. The result is as follows: Figure 3 As shown, the pink nodes are the assembly process and the orange nodes are the component stators.
[0055] Step 5: Based on the current disassembly and assembly knowledge node, recommend downstream node knowledge according to the knowledge graph relationship. In actual disassembly and assembly operations, subsequent disassembly and assembly knowledge nodes are usually recommended based on the relationship "next step". Recommendations can be achieved by executing query statements in Neo4j through the Cypher language. For example: by match k = (e2:`: assembly step`{name:"put in eccentric pin"})-[r2{name:'next step'}]->(p2)return p2, the next disassembly and assembly step can be recommended.
[0056] Step 6: Use the Doc2Vec model to generate a semantic vector of the query statement, knowledge graph head node, and relationship combination information.
[0057] Using the trained Doc2Vec model, the query sentence is taken as input, and the model outputs the semantic embedding of the query text. The node and relationship combination information is taken as input, and the model outputs the semantic embedding of the combination information as the root vector.
[0058] Step 7: Calculate the similarity between the query statement and the semantic vector of the head node and relationship combination information, select the head node and relationship combination information with the highest similarity, and return the corresponding tail node content as the recommendation result. The similarity calculation formula is as follows:
[0059]
[0060] S and θ represent the similarity and angle between the embedding vectors A and B, respectively. i and B i Represents the components of vectors A and B, and n represents the total number of components.
[0061] Implementation effect analysis
[0062] The content of the combined information of the head node and the relationship part is complex, and synonymous expressions with different vocabulary and word order are more likely to appear in real-time queries. Therefore, it is necessary to verify the generalization ability and matching accuracy of the model in this case. Keeping the semantics unchanged, the combined information is replaced by synonyms and word order to generate questions, and 423 test data are generated. The replacement process is shown in Table 2 as an example.
[0063] Table 2 Semantic transformation process
[0064]
[0065] Information retrieval results analysis
[0066] The text matching effects of TF-IDF, LSI, Word2Vec, and Doc2Vec models were evaluated and compared. The test data was randomly sampled five times, 30% was selected each time for testing, and the average of the five test results was used as the final verification result to observe the generalization ability of the model. It mainly includes two evaluation indicators: the vector similarity between the test data and the correct corresponding text and the probability that the correct answer is included in the most similar TopN results recommended for the test data. The similarity calculation uses formula (1) and sets TopN=3. The results are as follows: Figure 4 shown.
[0067] The average hit rate is an important indicator to measure the accuracy of information retrieval. The text similarity index can observe the processing ability of different models on semantic information. Figure 4 As shown in a, the Doc2Vec model achieves the best results when TopN=1, 2, and 3, and the probability that the first option is the correct answer is 81.7%, which is better than other models. Since there are many low-frequency rare words in the disassembly and assembly process of the hydro-turbine generator, the TF-IDF and LSI models rely on keyword matching and perform well when TopN=3, but the accuracy of the first matching result is low; Figure 3 As shown in (b), in terms of text similarity, the Doc2Vec model performs best because it incorporates global subject information, followed by the Word2Vec model, which incorporates local context information. The TF-IDF and LSI models perform worse. The experimental comparison results prove the effectiveness of using the Doc2Vec model for information retrieval.
[0068] The following is an example to illustrate the recommended algorithm. A record from the stator disassembly and assembly process is selected for analysis. The specific content is: remove the stator assembly surface bolts, then lift out the stator, conduct a comprehensive inspection of the stator lifting equipment and tools, clean the stator turning area in the installation room, hang a ring rope on the overhead crane hook, tie a hemp rope on the upstream side of the stator to start the formal lifting, the bridge crane carries the stator, and the four special hoists for horizontal lifting of the stator are lifted to the top of the stator with an electric hoist. After installing the turning tool, lift the stator, set the stator, adjust the stator assembly surface bolts, adjust the upper and lower air gaps and tighten the bolts, insert the eccentric pin, and perform a pressure test on the stator assembly surface. This process has been included in the model training set after preprocessing. Visualization in Neo4j is as follows: Figure 5 As shown, the yellow nodes represent disassembly and assembly tools, the blue nodes represent the assembly process standards, the pink nodes represent the assembly processes, the pink nodes represent disassembly and assembly resources, and the orange nodes represent the disassembly steps.
[0069] The node types involved in this disassembly and assembly record include: disassembly and assembly process, assembly process, assembly process standards, disassembly and assembly tools, disassembly and assembly resources and components. The current scenario is set as the user is in the process of disassembling and assembling the stator. The user has completed the preparatory work such as lifting out the stator and checking the equipment. The user is ready to start the formal lifting of the stator and wait for the subsequent work to be carried out. The current disassembly and assembly behavior is located at the node in the knowledge graph: the stator begins to be formally lifted. Through recommendations based on the current behavior, the system recommends the downstream assembly process node: carrying the stator through the bridge crane.
[0070] Taking the user query "What tool is used to lift the stator special hoist to the top" as an example, the query text is preprocessed and input into the trained Doc2Vec model to obtain the vector representation R of the current query. Formula (1) is used to calculate R and the root vector R used to describe the head node and relationship information in the knowledge base. o , sort them in descending order by similarity, return the head node and the tail node corresponding to the relationship, that is, the disassembly and assembly resource node: electric hoist, to achieve recommendations based on real-time needs, and finally merge the two parts of content into an output.
Claims
1. A method for recommending equipment disassembly and assembly knowledge based on knowledge graph, comprising the following steps: Step 1: Build an equipment disassembly and assembly knowledge graph, including entity types, and define the relationship types between entities to store and describe the disassembly and assembly process; use a graph database to store the equipment disassembly and assembly knowledge graph. Step 2: Based on the equipment disassembly and assembly knowledge graph, the head and tail nodes, relationship information, and label content are spliced, fused, and preprocessed to generate a data set for Doc2Vec model training; Step 3: Train the Doc2Vec model; Step 4: Based on the equipment disassembly and assembly knowledge graph, map the current disassembly and assembly behavior to the disassembly and assembly knowledge node in the knowledge graph; Step 5: Based on the current disassembly and assembly knowledge node, recommend downstream node knowledge according to the knowledge graph relationship; Step 6: Use the Doc2Vec model to generate a semantic vector of the query statement, the knowledge graph head node, and the relationship combination information; Using the trained Doc2Vec model, the query sentence is taken as input, and the model outputs the semantic embedding of the query text; the node and relationship combination information is taken as input, and the model outputs the semantic embedding of the combination information, which is used as the root vector; Step 7: Calculate the similarity between the query statement and the semantic vector of the head node and relationship combination information, select the head node and relationship combination information with the highest similarity, and return the corresponding tail node content as the recommendation result.
2. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 1 is characterized in that: The equipment disassembly and assembly knowledge graph includes nine entity types: component name, part name, assembly process name, assembly process standard, disassembly process name, disassembly and assembly tools, disassembly and assembly resources, and disassembly and assembly process constraints.
3. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 2 is characterized in that: The relationships between entities and their main meanings are shown in Table 1; Table 1 Relationships between entities and their meanings 4. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 3 is characterized in that: In the fifth step, query statements are executed in Neo4j through the Cypher language to recommend subsequent disassembly and assembly knowledge nodes based on the relationship "next step"; the recommendation of the next disassembly and assembly step is realized.
5. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 1 is characterized in that: In the first step, Neo4j is used as a knowledge storage, update and visualization tool.
6. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 1 is characterized in that: In the third step, select the PV-DM mode as the training method.
7. The equipment disassembly and assembly knowledge recommendation method based on knowledge graph according to claim 5 is characterized in that: In the fourth step, the query statement is executed in Neo4j through the Cypher language to locate the relevant steps.
Citation Information
Patent Citations
Personalized literature recommendation method combining Doc2vec and Faiiss
CN115905695A
Manufacturing resource recommendation method based on knowledge graph
CN116645129A
Construction method and system of equipment maintenance disassembly and assembly process knowledge graph
CN117194671A
Employment recommendation system based on multi-modal knowledge graph and pre-training large model fusion
CN117541202A
Associated recommendation method, smart device and service device
WO2022012234A1
Cited By
Large-scale engineering equipment recommendation method based on knowledge graph in complex environment
CN119918898A
Visual setting calculation system and method thereof
CN120494072A
