Machine tool key fault code extraction method and device

By constructing a fault code knowledge graph and utilizing association rules and Bayesian causal analysis, machine tool fault codes are extracted and scored, addressing the shortcomings in machine tool fault code management and mining, and improving maintenance efficiency.

CN116300692BActive Publication Date: 2026-11-24CHINA ORDNANCE EQUIP GRP AUTOMATION RES INST CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310296373.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2026-11-24
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

In the machine tool industry, existing technologies lack management and mining of fault codes, fail to effectively extract key fault codes, and fail to establish actual correlations between fault codes, resulting in low maintenance efficiency.

Method used

By constructing a fault code knowledge graph, using association rule mining and Bayesian causal relationship analysis, the association relationships between fault codes are extracted, the importance score of the fault codes is calculated, and the fault codes are sorted by score to identify key fault codes.

Benefits of technology

It improves the efficiency of repair technicians in locating the cause of faults, enhances the effectiveness and ease of querying fault code knowledge management, makes up for the theoretical deficiencies of repair manuals, and improves repair efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116300692B_ABST
    Figure CN116300692B_ABST
Patent Text Reader

Abstract

This invention discloses a method and apparatus for extracting key fault codes from machine tools. By constructing a hierarchical structure of fault codes across different models and brands and establishing correlations, it solves the cold start problem when historical maintenance data for new equipment is insufficient, thus enhancing the applicability of the method. Through the extraction of correlations and causal relationship analysis from maintenance orders, the potential connections between fault codes are revealed, making knowledge simpler and easier to understand. Based on the correlations, causal relationships, faulty components, and fault knowledge from maintenance manuals, a fault code knowledge graph is constructed, modularizing and unifying fragmented knowledge, enabling effective knowledge management and efficient retrieval. Practical maintenance experience also compensates for the deficiencies in theoretical knowledge from maintenance manuals. A key fault code extraction model is constructed, allowing maintenance technicians to directly address the core issues when repairing equipment, resulting in higher maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of machining technology, and in particular to a method and apparatus for extracting critical fault codes from machine tools. Background Technology

[0002] Fault codes: also known as fault codes, are a set of self-diagnostic systems built into the equipment during the design process. When different faults occur in the equipment, the system will automatically record the corresponding fault number. By matching the fault code with the faulty component and cause, fault analysis can be achieved.

[0003] To facilitate subsequent equipment research and development and maintenance, equipment is designed with a self-diagnostic system that analyzes fault codes by identifying the faulty components and causes. However, when equipment malfunctions, a large number of fault codes are generated. Of these, only a small number are key to locating the fault. For inexperienced maintenance technicians, the large number of redundant fault codes severely impacts maintenance efficiency. This is especially true in CNC machine tools, where serious malfunctions or long-term fault accumulation can generate dozens to hundreds of fault codes. These fault codes are interconnected or causally related; identifying the cause or key fault code is crucial for efficient problem-solving. Therefore, exploring the relationships between fault codes and extracting key fault codes from individual fault codes helps maintenance technicians quickly pinpoint the cause of the fault and improve equipment maintenance efficiency.

[0004] Patent document No. 202110488970.0 describes a "fault code management method and apparatus," which discloses a fault code management method and apparatus. The method includes the following steps: Step 1: Obtaining historical fault information for a target device; wherein the historical fault information includes at least two fault codes, and each fault code corresponds to different fault information; Step 2: For each fault code, determining the faulty component corresponding to the fault code and determining the attribute of the faulty component according to a preset list of variable components; wherein the attribute of the faulty component includes whether the faulty component is a variable component or a fixed component; Step 3: Summarizing the fault codes corresponding to the same faulty component and having the attribute of a variable component to obtain a fault code set corresponding to the variable faulty component; Step 4: Sort the fault code set and the fault codes corresponding to the fixed components to obtain a sequence number corresponding to the at least two fault codes; wherein the sequence number of each fault code in the fault code set is the same; Step 5: Obtaining the fault value carried in the at least two fault codes; and statistically storing the at least two fault codes according to the fault value and the sequence number. However, the patent only manages fault codes and does not perform related processing such as fault code mining; when the equipment generates a large number of fault codes, it does not locate and sort the key fault codes.

[0005] Patent document No. 202110160755.8 describes a "method, device, and storage medium for acquiring vehicle fault warning information," disclosing a method, device, and storage medium for acquiring vehicle fault warning information. This includes: acquiring user description information, vehicle information, and diagnostic test data; extracting target keywords matching the user description information, and extracting target diagnostic fault codes and target vehicle models based on the user's vehicle information; analyzing the diagnostic test data to determine first anomaly data; determining candidate warning information based on the first anomaly data and preset warning information; matching the target warning information from the candidate warning information based on the target keywords, target diagnostic fault codes, and preset correspondences; the preset correspondences refer to the correspondences between multiple diagnostic fault codes, target vehicle models, and potential anomaly information; and sending the target warning information to the user's device, indicating the system, fault type, and corresponding fault handling method in the vehicle. However, while this patent locates the fault and sends warning information to the target user through the analysis of fault codes and corresponding devices, it does not provide a specific analysis method for the fault codes, does not solve the problem of extracting key fault codes from a large number of fault codes, and does not establish the correlation between fault codes.

[0006] As can be seen, the main drawbacks of the existing technology are as follows:

[0007] 1. In the machine tool field, there is a lack of management and mining of fault codes in maintenance reports;

[0008] 2. The existing correlation between fault codes is mainly based on theoretical research and does not consider the correlation between fault codes triggered by equipment in actual scenarios;

[0009] 3. For the large number of fault codes triggered by the equipment, key fault codes were not extracted;

[0010] 4. The importance of key fault codes was not ranked, and an importance score was not given. Summary of the Invention

[0011] In view of the above problems, the present invention provides a method and apparatus for extracting key fault codes of machine tools to overcome or at least partially solve the above problems. It can uncover the correlation between fault codes and extract key fault codes from a single fault code, which helps maintenance technicians quickly locate the cause of the fault and improve equipment maintenance efficiency.

[0012] This invention provides the following solution:

[0013] A method for extracting critical fault codes of machine tools, comprising:

[0014] Obtain historical equipment repair order information and equipment repair manual information from different manufacturers, including several fault codes;

[0015] Extract the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories;

[0016] Using the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories as edges, a fault code knowledge graph is constructed using fault codes, replacement part names, and fault code categories as nodes.

[0017] A key fault code model is constructed based on the fault code knowledge graph. The importance score of each fault code is calculated using the key fault code model, and the fault codes are sorted from largest to smallest score.

[0018] The critical fault codes are determined using the scoring threshold method based on a pre-set scoring threshold and the number of critical fault codes.

[0019] Preferably: the fault codes include maintenance order fault codes and maintenance manual fault codes; obtaining the fault codes contained in historical equipment maintenance order information and equipment maintenance manual information; including:

[0020] Extract the fault codes from each repair order, preprocess them, and classify the fault codes according to the module to which they belong.

[0021] The fault codes in the maintenance manual are extracted based on logical rules and are associated with each other.

[0022] Preferably, the association relationship between fault codes is extracted using association rule mining methods or Bayesian causal relationship analysis.

[0023] Preferably, the association rule mining method includes:

[0024] Calculate the number of samples, denoted as N, where the samples include repair orders;

[0025] Scan all the fault codes on all repair orders to obtain all the fault codes that have occurred, and use them as a candidate 1-item set C1;

[0026] Calculate the support count and support of each item set in C1. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 1-itemsets L1.

[0027] Connecting one L1 item to another L1 item results in a candidate 2-itemset C2;

[0028] Calculate the support count and support of each item set in C2. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 2-itemsets L2.

[0029] Generate association rules and calculate the confidence of the generated association rules for each frequent itemset in L2. For example, if an itemset in L2 is {la,lb}, then confidence(la a->lb) = support(la∪lb) / support(la) and confidence(lb->la) = support(la∪lb) / support(lb). Based on the minimum confidence threshold minconf, retain rules with a confidence greater than minconf.

[0030] Preferably, the fault code knowledge graph includes fault code knowledge graphs from different manufacturers, and the fault code knowledge graphs from different manufacturers are linked together by device model or device type to form a target fault code knowledge graph.

[0031] Preferably, the fault code importance score is a weighted average of the fault code correlation score, the fault code correlation score and the replacement parts in the repair order score, and the fault code correlation score and the related parts in the repair manual score, which is then used to obtain a fusion score.

[0032] Preferably, the method for scoring the fault code and its association includes:

[0033] Using A as the premise of an association rule, count the number of times the result of the association rule corresponding to A is calculated.

[0034] Calculate the total number of fault codes for this equipment model, and denote it as num;

[0035] Calculate the importance score coefficient P1 for the correlation between fault codes;

[0036] P1 = ((count / num) + (sum(conf)) j ) / num)) / 2

[0037] Where j = 1, 2, 3, ..., count, conf j This represents the confidence level pointing from node A to the j-th fault code node, sum(conf) j ) represents the sum of the confidence scores of A for all other nodes;

[0038] Construct a scoring function to evaluate the importance of fault codes and their correlations, and calculate the score score1.

[0039] The scoring coefficient P1 is transformed into a range of 0 to 100 through linear or nonlinear transformation. The linear transformation includes score1 = 100 * P1 or score1 = 100 * (a * (e) -P1 -1)) / (a*(e -1 -1))), where a is a parameter.

[0040] Preferably, the method for scoring the correlation between the fault code and the parts replaced on the repair order includes:

[0041] Based on the knowledge graph, query the part category, replacement quantity (count2), and confidence level (conf2) associated with fault code A. j ;

[0042] Calculate the importance rating coefficient P2 between fault codes and replacement parts;

[0043] P2 = ((count2 / num) + (sum(conf2)) j ) / num)) / 2

[0044] The importance rating coefficient P2 is converted into a percentage score score2.

[0045] Preferably, the method for scoring the correlation between the fault code and the associated parts in the repair manual includes:

[0046] The scoring formula is as follows:

[0047] score3 = 100 * (pcount / pnum)

[0048] Here, pcount represents the number of parts recommended to be replaced for this fault code, and pnum represents the total number of parts corresponding to all fault codes in the repair manual.

[0049] A machine tool critical fault code extraction device, comprising:

[0050] The fault code acquisition unit is used to acquire several fault codes contained in historical equipment repair order information and equipment repair manual information from different manufacturers.

[0051] The correlation extraction unit is used to extract the correlation between fault codes, the correlation between fault codes and replacement parts, and the correlation between fault codes and their categories.

[0052] The knowledge graph construction unit is used to construct a fault code knowledge graph by using the association between fault codes, the association between fault codes and replacement parts, and the association between fault codes and their categories as edges, and by using fault codes, replacement part names, and fault code categories as nodes.

[0053] The scoring unit is used to construct a key fault code model based on the fault code knowledge graph, calculate the importance score of each fault code using the key fault code model, and sort them from largest to smallest score.

[0054] The critical fault code determination unit is used to determine critical fault codes using a scoring threshold method based on a pre-set scoring threshold and the number of critical fault codes.

[0055] According to specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0056] This application provides a method and apparatus for extracting key machine tool fault codes. By constructing a hierarchical structure of fault codes across different models and brands and establishing correlations, it solves the cold start problem when historical maintenance data for new equipment is insufficient, thus enhancing the applicability of the method. Through the extraction of correlations and causal analysis of maintenance orders, the potential connections between fault codes are revealed, making knowledge simpler and easier to understand. Based on the correlations, causal relationships, faulty components, and fault knowledge in the maintenance manual, a fault code knowledge graph is constructed, modularizing and unifying fragmented knowledge, enabling effective knowledge management and efficient retrieval. Practical maintenance experience also compensates for the lack of theoretical knowledge in the maintenance manual. A key fault code extraction model is constructed, allowing maintenance technicians to directly address the core issues when repairing equipment, resulting in higher maintenance efficiency. Key fault codes are evaluated, such as scored and ranked, and subsequently, more user-friendly knowledge recommendations are provided based on this evaluation.

[0057] Of course, any product implementing this invention does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description

[0058] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly described below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.

[0059] Figure 1 This is a flowchart of a method for extracting key machine tool fault codes provided in an embodiment of the present invention;

[0060] Figure 2 This is a flowchart of the repair order data processing provided in an embodiment of the present invention;

[0061] Figure 3 This is a data processing flowchart for the maintenance manual provided in an embodiment of the present invention;

[0062] Figure 4This is the correspondence between fault codes and replacement parts provided in the embodiments of the present invention;

[0063] Figure 5 This is a fault code knowledge graph block diagram provided in an embodiment of the present invention;

[0064] Figure 6 This is an overall flowchart provided in the embodiments of the present invention;

[0065] Figure 7 This is a schematic diagram of a machine tool critical fault code extraction device provided in an embodiment of the present invention;

[0066] Figure 8 This is a schematic diagram of a machine tool critical fault code extraction device provided in an embodiment of the present invention. Detailed Implementation

[0067] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention are within the scope of protection of the present invention.

[0068] See Figure 1 This invention provides a method for extracting critical fault codes from machine tools, such as... Figure 1 As shown, the method may include:

[0069] S101: Obtain several fault codes contained in historical equipment repair order information and equipment repair manual information from different manufacturers;

[0070] Specifically, the fault codes include maintenance order fault codes and maintenance manual fault codes; the system retrieves fault codes contained in historical equipment maintenance order information and equipment maintenance manual information; including:

[0071] Extract the fault codes from each repair order, preprocess them, and classify the fault codes according to the module to which they belong.

[0072] The fault codes in the maintenance manual are extracted based on logical rules and are associated with each other.

[0073] S102: Extract the association between fault codes, the association between fault codes and replacement parts, and the association between fault codes and their categories; use association rule mining methods or Bayesian causal relationship analysis to extract the association between fault codes.

[0074] Specifically, the association rule mining method includes:

[0075] Calculate the number of samples, denoted as N, where the samples include repair orders;

[0076] Scan all the fault codes on all repair orders to obtain all the fault codes that have occurred, and use them as a candidate 1-item set C1;

[0077] Calculate the support count and support of each item set in C1. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 1-itemsets L1.

[0078] Connecting one L1 item to another L1 item results in a candidate 2-itemset C2;

[0079] Calculate the support count and support of each item set in C2. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 2-itemsets L2.

[0080] Generate association rules and calculate the confidence of the generated association rules for each frequent itemset in L2. For example, if an itemset in L2 is {la,lb}, then confidence(la a->lb) = support(la∪lb) / support(la) and confidence(lb->la) = support(la∪lb) / support(lb). Based on the minimum confidence threshold minconf, retain rules with a confidence greater than minconf.

[0081] S103: Using the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories as edges, a fault code knowledge graph is constructed using fault codes, replacement part names, and fault code categories as nodes; specifically, the fault code knowledge graph includes fault code knowledge graphs from different manufacturers, and the fault code knowledge graphs from different manufacturers are linked together by device model or device type to form a target fault code knowledge graph.

[0082] S104: Construct a key fault code model based on the fault code knowledge graph, calculate the importance score of each fault code using the key fault code model, and sort them from largest to smallest score; specifically, the fault code importance score includes a weighted average of the fault code-to-fault code association score, the fault code-to-replacement parts score, and the fault code-to-related parts score in the repair order, and the associated parts score in the repair manual.

[0083] The method for scoring the fault codes and their correlation includes:

[0084] Using A as the premise of an association rule, count the number of times the result of the association rule corresponding to A is calculated.

[0085] Calculate the total number of fault codes for this equipment model, and denote it as num;

[0086] Calculate the importance score coefficient P1 for the correlation between fault codes;

[0087] P1 = ((count / num) + (sum(conf)) j ) / num)) / 2

[0088] Where j = 1, 2, 3, ..., count, conf j This represents the confidence level pointing from node A to the j-th fault code node, sum(conf) j ) represents the sum of the confidence scores of A for all other nodes;

[0089] Construct a scoring function to evaluate the importance of fault codes and their correlations, and calculate the score score1.

[0090] The scoring coefficient P1 is transformed into a range of 0 to 100 through linear or nonlinear transformation. The linear transformation includes score1 = 100 * P1 or score1 = 100 * (a * (e) -P1 -1)) / (a*(e -1 -1))), where a is a parameter.

[0091] The method for scoring the correlation between fault codes and replacement parts on repair orders includes:

[0092] Based on the knowledge graph, query the part category, replacement quantity (count2), and confidence level (conf2) associated with fault code A. j ;

[0093] Calculate the importance rating coefficient P2 between fault codes and replacement parts;

[0094] P2 = ((count2 / num) + (sum(conf2)) j ) / num)) / 2

[0095] The importance rating coefficient P2 is converted into a percentage score score2.

[0096] The method for scoring the correlation between fault codes and related parts in the repair manual includes:

[0097] The scoring formula is as follows:

[0098] score3 = 100 * (pcount / pnum)

[0099] Here, pcount represents the number of parts recommended to be replaced for this fault code, and pnum represents the total number of parts corresponding to all fault codes in the repair manual.

[0100] S105: Based on the pre-set scoring threshold and the number of critical fault codes, the scoring threshold method is used to determine the critical fault codes.

[0101] The machine tool critical fault code extraction method provided in this application integrates maintenance orders and maintenance manuals from different manufacturers and equipment, and constructs a fault code knowledge graph through methods such as association rule learning and causal relationship extraction. Then, based on the knowledge graph, it extracts critical fault codes using methods such as logical rule learning and association relationship mining, and provides scores and rankings for the critical fault codes, providing support for application scenarios such as assisting maintenance technicians in locating fault causes and assessing the degree of equipment failure.

[0102] The key fault code extraction steps are as follows:

[0103] Step 1: Data Preprocessing and Feature Extraction

[0104] Extract basic equipment information, historical equipment repair order information, and equipment repair manual information from different manufacturers. The main focus is on knowledge extraction and fusion from aspects such as fault codes, replaced parts, fault codes and problems in repair manuals.

[0105] 1. Repair order information

[0106] like Figure 2 As shown, the fault codes for each repair order are extracted and preprocessed accordingly, such as fault code standardization, error record correction, and fault code deduplication.

[0107] Fault codes are classified according to the module to which they belong, such as electrical modules, power supply modules, communication modules, etc.

[0108] 2. Repair Manual

[0109] like Figure 3 As shown, the maintenance manual is analyzed, and fault codes with correlations are extracted according to logical rules. For example, the occurrence of fault A (fault code a) is often accompanied by the appearance of fault B (fault code b).

[0110] By extracting and integrating knowledge from repair orders and repair manuals, the amount of data can be increased, and the model data can be enriched.

[0111] Step 2: Feature Extraction of Associations

[0112] 1. Extraction of association rules between fault codes

[0113] (1) Basic Concepts

[0114] Association rule: If X and Y are both itemsets, and and Let the implication X => Y represent an association rule. It means that the occurrence of certain items (itemset X) in a transaction implies that the occurrence of other items (itemset Y) in the same transaction is also possible. X is called the premise of the association rule, and Y is called the result of the association rule.

[0115] Support: Support represents the frequency of a data item's occurrence within a transaction. The support (support(X)) of a data item set X is the ratio of the number of transactions containing X in D to the total number of transactions in D, as shown in the following formula:

[0116]

[0117] The support of an association rule X => Y is equal to the support of an itemset X ∪ Y, as shown in the following formula:

[0118]

[0119] Frequent itemsets: If support(X) is greater than or equal to the minimum support minsup specified by the user, then X is called a frequent itemset.

[0120] Confidence: The confidence level of rule X => Y represents the probability that transactions in D containing X also contain Y. It represents the strength of the certainty of this rule, denoted as confidence(X => Y). Typically, users specify a minimum confidence threshold, denoted as minconf, based on their mining needs.

[0121]

[0122] Strong association rule: If a data item set X satisfies support(X) >= minsup, then X is a frequent data item set. If a rule X => Y also satisfies confidence(X => Y) >= minconf, then this rule is called a strong association rule (the minimum confidence threshold and minimum support threshold are parameters, generally given by the user based on the actual situation).

[0123] In this embodiment, the aforementioned "itemset" corresponds to a single fault code; the aforementioned "transaction" refers to all fault codes in a single repair order. The task of mining association rules is to discover, from all repair orders, those strong association rules with confidence and support greater than or equal to a given minimum threshold.

[0124] (2) Fault code association extraction

[0125] The correlation between fault codes reflects the interdependence and association between a particular fault code and other fault codes. If there is a correlation between two or more fault codes, then one of the fault codes can be predicted through the other related fault codes. Therefore, by exploring the correlation between fault codes, key fault code information in the repair order can be extracted.

[0126] The association extraction methods employed in this method include, but are not limited to, association rule mining (such as the Apriori algorithm) and Bayesian causal analysis. Taking association rule mining as an example, the main steps for extracting association relationships are as follows:

[0127] (1) Calculate the sample size (number of repair orders), denoted as N;

[0128] (2) Scan all the fault codes in all the repair orders to get all the fault codes that have occurred, and use them as the candidate 1-item set C1;

[0129] (3) Calculate the support counts of each set in C1 (C11, C12, C13, ..., C14). n ) and support (C11 / N, C12 / N, C13 / N, ..., C1 n / N), based on the minimum support threshold min nsup, retain items with support greater than min nsup to obtain frequent 1-itemsets L1;

[0130] (4) Connect L1 with L1 to obtain candidate 2-item set C2;

[0131] (5) Calculate the support counts of each set in C2 (C21, C22, C23, ..., C24). k ) and support (C21 / N, C22 / N, C23 / N, ..., C2 n ( / N), based on the minimum support threshold min nsup, retain items with support greater than min nsup to obtain frequent 2-itemsets L2;

[0132] (6) Generate association rules. Calculate the confidence of the generated association rules for each frequent itemset in L2. For example, if an itemset in L2 is {la,lb}, then confidence(la->lb) = support(la∪lb) / support(la) and confidence(lb->la) = support(la∪lb) / support(lb). Based on the minimum confidence threshold minconf, retain the rules that are greater than minconf.

[0133] 2. Time-based extraction of the correlation between fault codes

[0134] Equipment fault codes are all recorded with a time interval. The fault codes recorded in a single maintenance order have a large time interval between triggers, or even multiple faults accumulated together before a single repair request is made. Therefore, using a single maintenance order as an itemset for association rule extraction will produce certain errors.

[0135] To solve the above problem, a time interval threshold th1 is set (e.g., th1 = 1 second, 10 seconds, 30 seconds, 1 minute, 10 minutes, 1 day, etc.), all fault codes within this time interval are extracted and treated as an itemset, and the association rules are calculated using the method in section 1 above.

[0136] The two methods described above can be applied separately or combined (such as intersection, union, confidence-weighted average, etc.).

[0137] 3. Extraction of the correlation between fault codes and replaced parts

[0138] like Figure 4 As shown, the relationship data between fault codes and replaced parts in the repair order is extracted. In the repair order, the fault codes and replaced parts have a many-to-many mapping relationship, and it is difficult to clearly define the correspondence between parts and fault codes. Therefore, it is only necessary to keep the repair order with only one fault code, thereby transforming the many-to-many problem into a one-to-many and one-to-one situation.

[0139] The correlation between fault codes and replaced parts based on repair slips supplements the correlation between fault codes and replaced parts in repair manuals, and improves theoretical knowledge with actual fault experience, thus having higher experiential value.

[0140] 4. Extraction of the association between fault codes and their respective categories

[0141] Fault codes are categorized, such as power module, communication module, and electrical module.

[0142] Step 3: Fault Code Knowledge Graph Construction

[0143] The information (entities and relationships) extracted in steps 1 and 2 is used to construct a knowledge network (such as a knowledge graph). The fault code associations extracted from a certain manufacturer are used as edges, and features such as fault codes, replacement part names, and fault code categories are used as nodes to construct a fault code knowledge graph. Then, the knowledge graphs of different manufacturers are linked together by equipment model or equipment type to form a powerful knowledge graph, which solves the problem of not being able to extract key fault codes for new equipment due to insufficient historical maintenance data.

[0144] Knowledge graph construction framework diagram as follows Figure 5 As shown:

[0145] In the knowledge graph described above, support and confidence are used as the relationship attributes between two nodes of fault codes.

[0146] Step 4: Construct a critical fault code scoring model

[0147] Based on the fault code knowledge graph in step 3, construct a key fault code model for the repair order, calculate the importance score of each fault code in the repair order, sort them from largest to smallest score, and select the top N as key fault codes.

[0148] If a fault code in the repair order is A, the scoring logic for fault code A is as follows:

[0149] 1. Fault Code - Fault Code Association Rating

[0150] (1) Using A as the premise of the association rule, calculate the number of times the result of the association rule corresponding to A is counted (that is, the number of other fault code nodes pointed to by A as the starting node).

[0151] (2) Calculate the total number of fault codes for this equipment model, and denote it as num;

[0152] (3) Calculate the importance score coefficient P1 of the fault code-fault code association relationship;

[0153] P1 = ((count / num) + (sum(conf)) j ) / num)) / 2

[0154] Where j = 1, 2, 3, ..., count, conf j This represents the confidence level pointing from node A to the j-th fault code node, sum(conf) j ) represents the sum of the confidence scores of A for all other nodes.

[0155] (3) Construct a fault code-fault code association importance scoring function and calculate the score score1;

[0156] The scoring coefficient P1 is transformed into a range of 0 to 100 through linear or nonlinear transformation, such as a linear transformation score1 = 100 * P1 or score1 = 100 * (a * (e) -P1 -1)) / (a*(e -1 -1)))(where a is a parameter) etc.

[0157] 2. Scoring of the correlation between fault codes and replaced parts in repair orders

[0158] The more components a single fault code damages, the greater its impact on the equipment. This scoring process is similar to the fault code-fault code correlation scoring, as follows:

[0159] (1) Query the number of replacement parts (count2) and the confidence level (conf2) of the corresponding parts associated with fault code A based on the knowledge graph. j ;

[0160] (2) Calculate the importance rating coefficient P2 between fault codes and replacement parts;

[0161] P2 = ((count2 / num) + (sum(conf2)) j ) / num)) / 2

[0162] (3) Convert the importance rating coefficient P2 into a percentage score score2. The conversion method is similar to that in 1-3).

[0163] 3. Fault Code - Relationship Rating Between Related Parts in the Repair Manual

[0164] The more parts recommended for replacement in the repair manual that match the fault code, the more important the fault code. The scoring formula is as follows:

[0165] score3 = 100 * (pcount / pnum)

[0166] Here, pcount represents the number of parts recommended to be replaced for this fault code, and pnum represents the total number of parts corresponding to all fault codes in the repair manual.

[0167] 4. Rating Integration

[0168] The scores are then integrated based on the above results, such as the weighted average score = score1*w1 + score2*w2 + score3*w3, where w1, w2, and w3 represent the weights of each level and are assigned values ​​according to the actual situation.

[0169] Step 6: Obtain key fault codes

[0170] According to step 5, the score of each fault code in the repair order is obtained, and then the scores are sorted from high to low. Based on the pre-set scoring threshold sth and the number of critical fault codes N, the scoring threshold method is used. For example, if the threshold sth = 80, then the top N fault codes with scores greater than sth in the repair order are critical fault codes, also known as the critical top N fault codes.

[0171] When extracting critical fault codes from new or new-model equipment, the accuracy of extraction may decrease or even fail due to a lack of historical data. In such cases, it is advisable to select equipment types with abundant historical data and similar models. Based on the fault code classification, select similar fault codes (the fault codes may have the same meaning, only different code numbers for different equipment) for critical fault code extraction. The overall process is as follows: Figure 6As shown.

[0172] In summary, the machine tool critical fault code extraction method provided in this application solves the cold start problem when historical maintenance data for new equipment is insufficient by constructing a hierarchical structure of fault codes across different models and brands and establishing correlations, thus enhancing the applicability of the method. Through correlation extraction and causal relationship analysis of maintenance orders, the potential connections between fault codes are revealed, making knowledge simpler and easier to understand. Based on the correlations, causal relationships, faulty components, and fault knowledge in maintenance manuals, a fault code knowledge graph is constructed, modularizing and unifying fragmented knowledge, enabling effective knowledge management and efficient retrieval, and supplementing the theoretical knowledge in maintenance manuals with practical maintenance experience. A critical fault code extraction model is constructed, allowing maintenance technicians to directly address key issues and improve maintenance efficiency. The critical fault codes are evaluated, such as scored and ranked, and subsequently, more user-friendly knowledge recommendations are provided based on this evaluation.

[0173] See Figure 7 This application embodiment can also provide a machine tool critical fault code extraction device, such as... Figure 7 As shown, the device may include:

[0174] The fault code acquisition unit 701 is used to acquire several fault codes contained in historical equipment maintenance order information and equipment maintenance manual information from different manufacturers.

[0175] The association extraction unit 702 is used to extract the association between fault codes, the association between fault codes and replacement parts, and the association between fault codes and their categories.

[0176] The knowledge graph construction unit 703 is used to construct a fault code knowledge graph by using the association between fault codes, the association between fault codes and replacement parts, and the association between fault codes and their categories as edges, and by using fault codes, replacement part names, and fault code categories as nodes.

[0177] Scoring unit 704 is used to construct a key fault code model based on the fault code knowledge graph, calculate the importance score of each fault code using the key fault code model, and sort them from largest to smallest score.

[0178] The critical fault code determination unit 705 is used to determine critical fault codes using a scoring threshold method based on a preset scoring threshold and the number of critical fault codes.

[0179] This application embodiment can also provide a machine tool critical fault code extraction device, the device including a processor and a memory:

[0180] The memory is used to store program code and transmit the program code to the processor;

[0181] The processor is used to execute the steps of the above-described machine tool critical fault code extraction method according to the instructions in the program code.

[0182] like Figure 8 As shown in the figure, a machine tool critical fault code extraction device provided in this application embodiment may include: a processor 10, a memory 11, a communication interface 12, and a communication bus 13. The processor 10, memory 11, and communication interface 12 all communicate with each other through the communication bus 13.

[0183] In this embodiment, the processor 10 may be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic devices.

[0184] The processor 10 can call the program stored in the memory 11. Specifically, the processor 10 can execute the operations in the embodiments of the machine tool critical fault code extraction method.

[0185] The memory 11 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment, the memory 11 stores at least a program for implementing the following functions:

[0186] Obtain historical equipment repair order information and equipment repair manual information from different manufacturers, including several fault codes;

[0187] Extract the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories;

[0188] Using the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories as edges, a fault code knowledge graph is constructed using fault codes, replacement part names, and fault code categories as nodes.

[0189] A key fault code model is constructed based on the fault code knowledge graph. The importance score of each fault code is calculated using the key fault code model, and the fault codes are sorted from largest to smallest score.

[0190] The critical fault codes are determined using the scoring threshold method based on a pre-set scoring threshold and the number of critical fault codes.

[0191] In one possible implementation, the memory 11 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function (such as file creation or data read / write). The data storage area may store data created during use, such as initialization data.

[0192] In addition, memory 11 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device.

[0193] Communication interface 12 can be an interface for the communication module, used to connect with other devices or systems.

[0194] Of course, it should be noted that, Figure 8 The structure shown does not constitute a limitation on the machine tool critical fault code extraction device in the embodiments of this application. In practical applications, the machine tool critical fault code extraction device may include more than Figure 8 More or fewer components as shown, or combinations of certain components.

[0195] This application embodiment may also provide a computer-readable storage medium for storing program code for executing the steps of the above-described machine tool critical fault code extraction method.

[0196] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0197] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.

[0198] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0199] The above description is merely a preferred embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention are included within the scope of protection of the present invention.

Claims

1. A method for extracting critical fault codes of machine tools, characterized in that, include: Obtain historical equipment repair order information and equipment repair manual information from different manufacturers, including several fault codes; Extract the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories; Using the relationships between fault codes, the relationships between fault codes and replacement parts, and the relationships between fault codes and their categories as edges, a fault code knowledge graph is constructed using fault codes, replacement part names, and fault code categories as nodes. A key fault code model is constructed based on the fault code knowledge graph. The importance score of each fault code is calculated using the key fault code model, and the fault codes are sorted from largest to smallest score. Based on a pre-set scoring threshold and the number of critical fault codes, the critical fault codes are determined using the scoring threshold method; Several fault codes include maintenance order fault codes and maintenance manual fault codes; retrieve several fault codes contained in historical equipment maintenance order information and equipment maintenance manual information; including: Extract the fault codes from each repair order, preprocess them, and classify the fault codes according to the module to which they belong. The fault codes in the maintenance manual are extracted based on logical rules and are considered to have a relationship. The association relationships between fault codes can be extracted using association rule mining methods or Bayesian causal relationship analysis. The association rule mining method includes: Calculate the number of samples, denoted as N, where the samples include repair orders; Scan all the fault codes on all repair orders to obtain all the fault codes that have occurred, and use them as a candidate 1-item set C1; Calculate the support count and support of each item set in C1. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 1-itemsets L1. Connecting one L1 item to another L1 item results in a candidate 2-itemset C2; Calculate the support count and support of each item set in C2. Based on the minimum support threshold minsup, retain items with support greater than minsup to obtain frequent 2-item sets L2. Generate association rules and calculate the confidence of the generated association rules for each frequent itemset in L2. For example, if an itemset in L2 is {la, lb}, then confidence(la->lb) = support(la∪lb) / support(la), confidence(lb->la) = support(la∪lb) / support(lb). Based on the minimum confidence threshold minconf, retain rules with a confidence greater than minconf. The fault code knowledge graph includes fault code knowledge graphs from different manufacturers. The fault code knowledge graphs from different manufacturers are linked together by device model or device type to form the target fault code knowledge graph. The fault code importance score is a weighted average of the scores for the correlation between fault codes, the correlation between fault codes and replacement parts on the repair order, and the correlation between fault codes and related parts in the repair manual.

2. The method for extracting critical machine tool fault codes according to claim 1, characterized in that, The method for scoring the fault codes and their correlation includes: Using A as the premise of an association rule, count the number of times the result of the association rule corresponding to A is calculated. Calculate the total number of fault codes for this equipment model, and denote it as num; Calculate the importance score coefficient P1 for the correlation between fault codes; P1 = ((count / number) + (sum(conf j ) / number) / 2 Where j=1,2,3,…count,conf j This represents the confidence level pointing from node A to the j-th fault code node, sum(conf) j ) represents the sum of the confidence scores of A for all other nodes; Construct a scoring function to evaluate the importance of fault codes and their correlations, and calculate the score score1. The scoring coefficient P1 is transformed into a range of 0 to 100 through linear or nonlinear transformation, where linear transformation includes score1 = 100. P1 or score1 = 100 (a (e -P1 -1)) / (a (e -1 -1))), where a is a parameter.

3. The method for extracting critical machine tool fault codes according to claim 1, characterized in that, The method for scoring the correlation between fault codes and replacement parts on repair orders includes: Based on the knowledge graph, query the part category, replacement quantity (count2), and confidence level (conf2) associated with fault code A. j ; Calculate the importance rating coefficient P2 between fault codes and replacement parts; P2 = ((count2 / num) + (sum(conf2 j ) / number) / 2 The importance rating coefficient P2 is converted into a percentage score score2.

4. The method for extracting critical machine tool fault codes according to claim 1, characterized in that, The method for scoring the correlation between fault codes and related parts in the repair manual includes: The scoring formula is as follows: score3 = 100 (pcount / pnum) Here, pcount represents the number of parts recommended to be replaced for this fault code, and pnum represents the total number of parts corresponding to all fault codes in the repair manual.

5. A machine tool critical fault code extraction device, characterized in that, The method for extracting critical machine tool fault codes according to any one of claims 1 to 4 includes: The fault code acquisition unit is used to acquire several fault codes contained in historical equipment repair order information and equipment repair manual information from different manufacturers. The correlation extraction unit is used to extract the correlation between fault codes, the correlation between fault codes and replacement parts, and the correlation between fault codes and their categories. The knowledge graph construction unit is used to construct a fault code knowledge graph by using the association between fault codes, the association between fault codes and replacement parts, and the association between fault codes and their categories as edges, and by using fault codes, replacement part names, and fault code categories as nodes. The scoring unit is used to construct a key fault code model based on the fault code knowledge graph, calculate the importance score of each fault code using the key fault code model, and sort them from largest to smallest score. The critical fault code determination unit is used to determine critical fault codes using a scoring threshold method based on a pre-set scoring threshold and the number of critical fault codes.

Citation Information

Patent Citations

  • Vehicle fault prompt information acquisition method and device and storage medium

    CN112965871A

  • Fault code management method and apparatus

    CN113127541A

  • Numerical control machine tool fault maintenance method

    CN107065773A

  • Fault prediction method and device based on diagnosis fault code evolution graph

    CN114265955A