Mechanical failure predictive maintenance method and system based on knowledge graph
By combining knowledge graph and fuzzy reasoning technology, a mechanical fault knowledge graph is constructed, which solves the problems of poor interpretability and data dependence in the existing technology, achieves accurate prediction and priority determination of mechanical faults, and improves production efficiency and economic benefits. .
Patent Information
- Application Number
- CN202111027124.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-02
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-09-02
AI Technical Summary
The existing predictive maintenance of mechanical faults based on ontology methods has problems of poor interpretability and dependence on a large amount of data, and cannot effectively determine the priority of fault severity.
Using the method of combining knowledge graph and fuzzy reasoning, a mechanical fault knowledge graph is constructed through a combination of top-down and bottom-up methods. Fuzzy variables, membership functions and fuzzy rules are used for fuzzy reasoning, and the FuzzyJToolkit toolkit is used to perform debugging. Fuzzification processing is used to obtain the fault degree priority.
It achieves the interpretability of assigning semantic information to time series data and determining the degree of fault, and can provide timely feedback on the degree of fault, reducing data collection time and equipment failure rate, and improving mechanical productivity and economic benefits.
Smart Images

Figure CN113887751B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of predictive maintenance of industrial clusters, and in particular to a method and system for predictive maintenance of mechanical failures based on a knowledge graph. Background Art
[0002] The statements in this section merely mention background art related to the present invention and do not necessarily constitute prior art.
[0003] Predictive maintenance is arranged and implemented based on the operating status of the equipment and system itself. It is called CBM (Condition Based Maintenance). This maintenance method has some obvious benefits. Because the intervention of maintenance work is completely based on the current status of the equipment and system itself, it not only avoids unnecessary downtime caused by redundant interference, but also prevents losses caused by cascading failures due to failure to take timely measures. In modern industrial production environments, especially assembly line tasks, robots play an increasingly important role. Robotic arms can be applied to various automation tasks with high work efficiency, low error probability and high durability. However, once a failure occurs, it will inevitably cause great economic losses. Compared with traditional preventive maintenance, predictive maintenance can avoid downtime or minimize downtime, and optimize periodic maintenance operations.
[0004] Predictive maintenance is to maintain the machine only when necessary to ensure that the machine can be used normally for as long as possible, reduce unexpected downtime, thereby reducing capital costs and operating costs and maintaining efficient production. There is no doubt that predictive maintenance reduces costs while improving system reliability.
[0005] At present, predictive maintenance methods can be roughly divided into machine learning-based methods and ontology-based methods. The present invention focuses on ontology-based methods. At present, there are related inventions for ontology methods.
[0006] The Chinese invention patent (application number: 201810093564.2, patent name: Method for constructing a knowledge base for mechanical fault diagnosis based on knowledge graph) mentions the construction of a knowledge graph for mechanical faults, but its invention is to construct a knowledge graph based on expert experience and obtain test results using knowledge representation technology in deep learning. This invention uses machine learning technology, which has a high accuracy rate, but has the inherent problem of poor interpretability of machine learning.
[0007] The Chinese invention patent (application number: 201911317273.8, patent name: A semantic-based predictive maintenance of industrial production equipment) mentions building a knowledge graph and using rule reasoning, but its invention lies in semantic annotation, semantic reasoning and semantic query, using the AllegroGraph graph database as the ontology database and the SC inheritance algorithm for reasoning. The invention uses knowledge graphs and reasoning technology, and is highly interpretable, but the reasoning result is not the degree of fault, and it is impossible to compare fault priorities. Summary of the invention
[0008] In order to solve the shortcomings of the prior art, such as poor interpretability and the need for a large amount of data, the present invention provides a predictive maintenance method and system for mechanical faults based on a knowledge graph. The present invention combines the characteristics of the knowledge graph with semantics and the ability of fuzzy reasoning to obtain precise values, can give semantic information to the input time series data, perform fuzzy reasoning while retaining interpretability, and determine the priority of the fault degree of the real-time input time series data. The present invention can timely feedback and warn the degree of fault and realize predictive maintenance. The present invention first needs to construct a mechanical fault knowledge graph with the help of domain expert knowledge, and the construction process adopts a combination of top-down and bottom-up methods; then the knowledge graph is combined with fuzzy reasoning, fuzzy rules that meet actual needs are specified, a variety of membership functions are used to fuzzify the input parameters, and the maximum and minimum algorithms are used for fuzzy reasoning. Finally, the centroid method is used to defuzzify, the fault degree priority is obtained and timely warnings are issued, and the fuzzy system is constructed using the FuzzyJToolkit toolkit.
[0009] In a first aspect, the present invention provides a method for predictive maintenance of mechanical failures based on knowledge graphs;
[0010] The predictive maintenance method for mechanical failures based on knowledge graph includes:
[0011] Obtain the names of the mechanical equipment parts to be maintained and the information of the mechanical equipment to be maintained; for the mechanical equipment to be maintained, initially construct a mechanical failure knowledge graph from top to bottom;
[0012] The initially constructed mechanical failure knowledge graph is supplemented and improved in a bottom-up manner;
[0013] For the mechanical equipment to be maintained, the corresponding data set is selected; according to the supplemented and improved mechanical fault knowledge graph, multiple features are assigned to each state of each component in the data set; wherein each feature corresponds to a feature value;
[0014] According to the characteristics and characteristic values, define fuzzy variables, membership functions and fuzzy rules;
[0015] The value of the fuzzy variable is taken as the input parameter, the membership function is used to fuzzify the input parameter, the fuzzy rule is used to perform fuzzy reasoning on the fuzzy-processed data, the data obtained by fuzzy reasoning is defuzzified to obtain the fault degree priority.
[0016] In a second aspect, the present invention provides a mechanical failure predictive maintenance system based on knowledge graph;
[0017] The mechanical failure predictive maintenance system based on knowledge graph includes:
[0018] The acquisition module is configured to: acquire the name of the mechanical equipment component to be maintained and the information of the mechanical equipment to be maintained; and preliminarily construct a mechanical fault knowledge graph from top to bottom for the mechanical equipment to be maintained;
[0019] The supplement module is configured to: supplement and improve the initially constructed mechanical failure knowledge graph in a bottom-up manner;
[0020] The feature assignment module is configured to: select a corresponding data set for the mechanical equipment to be maintained; assign multiple features to each state of each component in the data set according to the supplemented and improved mechanical fault knowledge graph; wherein each feature corresponds to a feature value;
[0021] A rule definition module is configured to: define fuzzy variables, membership functions and fuzzy rules according to features and feature values;
[0022] The fault prediction module is configured to: take the value of the fuzzy variable as an input parameter, use a membership function to fuzzify the input parameter, use fuzzy rules to perform fuzzy reasoning on the fuzzified data, defuzzify the data obtained by fuzzy reasoning, and obtain the fault degree priority.
[0023] In a third aspect, the present invention further provides an electronic device, comprising:
[0024] a memory for non-transitory storage of computer-readable instructions; and
[0025] a processor for executing the computer readable instructions,
[0026] When the computer-readable instructions are executed by the processor, the method described in the first aspect is executed.
[0027] In a fourth aspect, the present invention further provides a storage medium that non-temporarily stores computer-readable instructions, wherein when the non-temporary computer-readable instructions are executed by a computer, the instructions of the method described in the first aspect are executed.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] (1) The present invention combines knowledge graph with fuzzy reasoning, making entity features a bridge for information exchange between knowledge graph and fuzzy reasoning, communicating knowledge graph pattern information with the practical application of fuzzy reasoning, giving semantic information to time series data while retaining the interpretability of information.
[0030] (2) The present invention constructs a complete knowledge graph of mechanical failures, using a combination of top-down and bottom-up construction methods, combined with ontologies published by authoritative institutions and relevant papers by authoritative scholars in the field of machinery, such as "Basic Concepts and Taxonomy of Dependable and Secure Computing" to construct a knowledge graph of mechanical failures. The knowledge graph model constructed by the present invention can explain a set of general concepts related to industrial failures, thereby promoting the research progress of system failures and system failure cause analysis.
[0031] (3) The present invention is dedicated to predictive maintenance of mechanical failures, which can improve economic benefits in appropriate scenarios. The present invention can make a prediction before a failure occurs and replace the parts that may fail, thereby reducing the equipment failure rate, reducing the time for producing the same number of parts or machinery, providing more parts or mechanical equipment in the same time, improving mechanical productivity, and reducing production costs.
[0032] (4) The present invention does not use algorithms such as machine learning and deep learning, and does not require a large amount of data sets for training. It only needs to formulate appropriate fuzzy rules, which reduces the time for data collection and has high feasibility.
[0033] Advantages of additional aspects of the present invention will be partially given in the following description or learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0035] Figure 1 is a flow chart of a method for predictive maintenance of mechanical failures according to a first embodiment of the present invention;
[0036] Figure 2 It is a schematic diagram of a body constructed from top to bottom according to the first embodiment of the present invention;
[0037] Figure 3 It is the knowledge graph constructed from the bottom up by combining the data set in the first embodiment of the present invention;
[0038] Figure 4is a schematic diagram of a fuzzy ontology constructed in the first embodiment of the present invention;
[0039] Figure 5 This is the overall workflow of fuzzy reasoning in the first embodiment of the present invention;
[0040] Figure 6 These are the 48 fuzzy rules specified in the first embodiment of the present invention;
[0041] Figure 7 48 fault degree priorities and corresponding membership function diagrams of the first embodiment of the present invention;
[0042] Figure 8 This is a schematic diagram of the reasoning results of the fault priority of the first 2200 data sets of the first embodiment of the present invention;
[0043] Fig. 9 It is a schematic diagram of the structure of hydraulic system components of embodiment 1 of the present invention. DETAILED DESCRIPTION
[0044] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0045] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0046] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0047] In this embodiment, all data is obtained in compliance with laws and regulations and based on the user's consent, and is used legally.
[0048] Predictive maintenance is a maintenance method based on the state, which regularly monitors the state and diagnoses faults of the main parts of the machine. Predictive maintenance is an emerging maintenance method. The relevant research methods of predictive maintenance can be briefly classified into machine learning-based and ontology-based methods. The present invention is based on the ontology method, and the knowledge graph can mine the laws between various knowledge, which has high practical value. The present invention uses the relevant research results in the industry to construct the upper-level ontology, and at the same time completes the construction from the bottom up in combination with the characteristics of the data set. Further defining the fuzzy ontology can give semantic information to each time series. Based on the third-party toolkit FuzzyJ Toolkit, fuzzy reasoning is performed on multiple features of the time series, and finally the fault priority of the time series can be obtained. When the fault level reaches the threshold, an early warning will be issued to achieve predictive maintenance.
[0049] Embodiment 1
[0050] This embodiment provides a mechanical failure predictive maintenance method based on knowledge graph;
[0051] like Figure 1 As shown in the figure, the mechanical failure predictive maintenance method based on knowledge graph includes:
[0052] S101: Obtain the name of the mechanical equipment component to be maintained and the information of the mechanical equipment to be maintained; and preliminarily construct a mechanical failure knowledge graph from top to bottom for the mechanical equipment to be maintained;
[0053] S102: The initially constructed mechanical failure knowledge graph is supplemented and improved in a bottom-up manner;
[0054] S103: For the mechanical equipment to be maintained, a corresponding data set is selected; and according to the supplemented and improved mechanical fault knowledge graph, multiple features are assigned to each state of each component in the data set; wherein each feature corresponds to a feature value;
[0055] S104: defining fuzzy variables, membership functions and fuzzy rules according to the features and feature values;
[0056] S105: taking the value of the fuzzy variable as an input parameter, using a membership function to perform fuzzification processing on the input parameter, using fuzzy rules to perform fuzzy reasoning on the fuzzified data, and defuzzifying the data obtained by fuzzy reasoning to obtain a fault degree priority.
[0057] Furthermore, the S101: obtains the name of the mechanical equipment to be maintained; for example: hydraulic system.
[0058] Furthermore, the S101: information of mechanical equipment to be maintained includes: information on the degree of failure, maintenance costs required for the failure, the stage of failure, and a combination of failed components.
[0059] Furthermore, the S101: preliminarily constructing a mechanical failure knowledge graph from top to bottom for the mechanical equipment to be maintained; specifically includes:
[0060] Building a knowledge graph from top to bottom starts with defining the top-level concepts and then gradually refines them to form a well-structured taxonomic hierarchy.
[0061] Based on the upper-level ontology published by authoritative organizations in the field, research papers by authoritative scholars in the field of mechanics, etc., the upper-level ontology framework is artificially constructed with the help of the knowledge of experts in the field.
[0062] In the specific implementation process, it is necessary to investigate the domain ontologies constructed by experts in different fields, conduct comprehensive analysis and summary to obtain the upper-level knowledge graph; in this embodiment, the upper-level knowledge graph is mainly constructed by using the paper "Basic Concepts and Taxonomy of Dependable and Secure Computing" published by authoritative scholars in the mechanical field, such as Figure 2 .
[0063] Furthermore, the S102: supplementing and improving the initially constructed mechanical failure knowledge graph in a bottom-up manner; specifically includes:
[0064] Extract the fault information of all components from the existing data set, further extract the information related to the characteristics of the mechanical equipment, and complete the final definition of the knowledge graph from the bottom up:
[0065] Focused on "failure-generated threats"
[0066] "Failure creates threat" Threat has entity "Cost" and the relationship attribute is "hasMaintenanceCost";
[0067] "Failure creates threat" Threat has entity "Phase" Phase, and the relationship attribute is "Failure occurs in" happensIn;
[0068] "Failure creates threat" Threat exists in entity "Mechanical component failure degree" Type, and the relationship attribute is "existence type" hasType;
[0069] And the component combination Component Condition where the failure occurs has the attribute "failure generates threat threat" Threat, and the relationship attribute is relatesTo, which means "related".
[0070] The existing data set is a hydraulic system data set from UC Irvine Machine Learning Repository;
[0071] Among them, "Cost" has three subcategories: Low Cost, Medium Cost and High Cost;
[0072] "Phase" Phase, there are two subclasses: Use Phase and Development Phase;
[0073] "Mechanical component failure degree" Type, has three subcategories related to the error type: Fault, Error, and Failure;
[0074] Combination Condition: refers to the combination of components that failed, expressed as the number of failed components;
[0075] At this point, the mechanical failure knowledge graph has been constructed.
[0076] The important features and corresponding values of the mechanical failure knowledge graph are shown in Table 1:
[0077] Table 1. Four characteristics of time series data and their corresponding values
[0078]
[0079] The dataset used in this example is the hydraulic system dataset of the UCI machine learning warehouse, which completes the bottom-up knowledge graph construction, such as Figure 3 Among them, the schematic diagram of the hydraulic system and four core components is as follows Fig. 9 .
[0080] Further, the S103: for the mechanical equipment to be maintained, a corresponding data set is selected; according to the supplemented and improved mechanical fault knowledge graph, a plurality of features are assigned to each state of each component in the data set; wherein each feature corresponds to a feature value; specifically including:
[0081] S1031: Select Condition monitoring of hydraulic systems Data Set from UCI Machine Learning Repository.
[0082] S1032: according to the supplemented and improved mechanical fault knowledge graph, semantic information is assigned to different states of each component in the hydraulic system data set; semantic information is assigned to each time series data in the hydraulic system data set;
[0083] Among them, semantic information is given to the different states of each component in the hydraulic system data set; specifically, it includes:
[0084] Each component in the hydraulic system dataset has several states, and three characteristic information is given to each state, including: error type type, maintenance cost cost, and error occurrence phase.
[0085] Among them, semantic information is given to each time series data in the hydraulic system data set; specifically including:
[0086] Each time series data in the hydraulic system data set contains the characteristic state values of the four components at a certain moment, giving semantic information to the current time series data, namely:
[0087] The three characteristics of the four components are combined into the first three characteristics of the hydraulic system, and the fourth characteristic is the number of faulty component combinations; the first three characteristics are error type, maintenance cost, and error occurrence phase;
[0088] The semantic information of the current time series data includes error type, maintenance cost, error occurrence phase, and number of failed component combinations: combination.
[0089] S1033: Assign feature values to the features.
[0090] The definition of equipment and status codes in the time series data of the hydraulic system dataset of the UCI machine learning warehouse is shown in Table 2:
[0091] Table 2. Four devices and multiple serial numbers and states
[0092]
[0093] There are 2205 time series data in the dataset. The first four columns are the status codes of Cooler, Valve, Pump, and Accumulator, respectively. According to the status code explanation in Table 2, the knowledge graph constructed by combining steps (1) and (2) corresponds to the three features of the components: type, cost, and phase, and further corresponds to the four features of the equipment: type, cost, phase, and condition.
[0094] Assign semantic information and feature values to the dataset; the data storage in the dataset is shown in Table 3:
[0095] Table 3. Time series data of hydraulic system dataset
[0096]
[0097]
[0098] As can be seen from Table 1, it is necessary to assign four semantic features to each row (item) of time series data in Table 3: type, cost, phase, and combination. Combined with the semantic information of the status code given in Table 2, the status code in Table 3 can be defined as follows:
[0099] (31) type definition: When the Cooler status code is 3 or 20, type* is Failure; when the status code is 100, type* is Normal; when the Valve status code is 73, type* is Failure; when the status code is 80 or 90, type* is Error; when the status code is 100, type* is Normal; when the Pump status code is 1 or 2, type* is Error; when the status code is 0, type* is Normal; when the Accumulator status code is 90, type* is Failure; when the status code is 100 or 115, type* is Error; when the status code is 130, type* is Normal.
[0100] If and only if the four types* corresponding to the four components are all Normal, the type of this time series data is Normal; if Error occurs but no Failure occurs, the type of this data is Error; if Failure occurs, the type of this data is Failure.
[0101] (32) Cost definition: Cost refers to the maintenance cost when a component fails, including lost work time, etc. It refers to the maintenance cost of this data. In this example, the maintenance costs of the four components are defined as follows:
[0102] Table 4. Definition of maintenance costs for four equipment
[0103]
[0104]
[0105] The repair costs can be calculated from this:
[0106]
[0107] Where n refers to the number of all components, here it is 4, ω i is the weight of component i in the hydraulic system, i.e. the fourth row of data in Table 4, ci is the maintenance cost of the component. After calculation, the value range of cost is [0,60].
[0108] (33)Phase definition: In this example, the failures of hydraulic system components all occur in the Use phase.
[0109] (34)Combination definition: In a data set, combination counts the number of types* except type*Normal. For example, the combination corresponding to [3,100,0,130] is 1.
[0110] Furthermore, the S104: defining fuzzy variables, membership functions and fuzzy rules according to the features and feature values; specifically includes:
[0111] S1041: define fuzzy variables: fuzzy variables are four features type, cost, phase, condition, and define fuzzy values are to define the feature value of each feature;
[0112] S1042: defining a membership function: using a linear function and a trigonometric function; the linear function is fitted using a trapezoidal membership function;
[0113] The three fuzzy terms of maintenance cost, high, medium, and low, correspond to the straight line with a slope less than 0, the trigonometric function, and the straight line with a slope greater than 0, respectively, with intervals of [0,30], [0,30,60], and [30,60], where 60 is the highest value of the calculated maintenance cost.
[0114] The fuzzy terms of type, combination and stage are all single-valued straight lines perpendicular to the horizontal axis, and are approximated by trapezoidal membership functions in the specific experimental process.
[0115] The trapezoidal membership function formula is defined as formula (1):
[0116]
[0117] Where x is the input data, a, b, c, d are the x-axis coordinate points, and trapezoid(x; a, b, c, d) refers to the y-axis coordinate points.
[0118] The priority membership function includes 48 trigonometric functions, such as Figure 7 shown.
[0119] S1043: Define fuzzy rules: The definition format of fuzzy rules is: If...Then..., and the specific fuzzy rule definition is: As shown in Table 1, each fault time series data has four states, and each state corresponds to 2 to 4 values. After permutation and combination, 48 states are obtained. According to the rule definitions in Table 1, the fault verification degree increases from left to right and from top to bottom, and a fuzzy reasoning rule base is constructed.
[0120] The rule base is the core of fuzzy reasoning. The present invention defines 48 rules. The specific rules are as follows, where the priority value is set to 1 for the lowest and 48 for the highest. The rule examples are as follows:
[0121] if type is Error and cost is low and combination is one and phase isdelivery_phase then set priority to priority 1;
[0122] if type is Error and cost is low and combination is two and phase isdelivery_phase then set priority to priority 2;
[0123] if type is Error and cost is medium and combination is one and phase is delivery_phase then set priority to priority 3;
[0124] if type is Error and cost is medium and combination is two and phase is delivery_phase then set priority to priority 4;
[0125] if type is Error and cost is low and combination is three and phase is delivery_phase then set priority to priority 5;
[0126] if type is Error and cost is medium and combination is three andphase is delivery_phasethen set priority to priority 6;
[0127] if type is Error and cost is low and combination is one and phase isoutage_phasethen set priority to priority 7;
[0128] if type is Error and cost is low and combination is two and phase isoutage_phasethen set priority to priority 8;
[0129] if type is Error and cost is medium and combination is one and phaseis outage_phasethen set priority to priority 9;
[0130] if type is Error and cost is medium and combination is two and phaseis outage_phasethen set priority to priority 10;
[0131] if type is Error and cost is high and combination is one and phase isdelivery_phasethen set priority to priority 11;
[0132] if type is Error and cost is high and combination is two and phase isdelivery_phasethen set priority to priority 12;
[0133] if type is Failure and cost is low and combination is one and phaseis delivery_phasethen set priority to priority 13;
[0134] if type is Failure and cost is low and combination is two and phaseis delivery_phasethen set priority to priority 14;
[0135] if type is Failure and cost is medium and combination is one andphase is delivery_phasethen set priority to priority 15;
[0136] if type is Failure and cost is medium and combination is two andphase is delivery_phasethen set priority to priority 16;
[0137] if type is Error and cost is low and combination is four and phase isdelivery_phasethen set priority to priority 17;
[0138] if type is Error and cost is medium and combination is four and phaseis delivery_phasethen set priority to priority 18;
[0139] if type is Error and cost is low and combination is three and phaseis outage_phasethen set priority to priority 19;
[0140] if type is Error and cost is medium and combination is three andphase is outage_phasethen set priority to priority 20;
[0141] if type is Error and cost is high and combination is three and phaseis delivery_phasethen set priority to priority 21;
[0142] if type is Failure and cost is low and combination is three and phaseis delivery_phasethen set priority to priority 22;
[0143] if type is Failure and cost is medium and combination is three andphase is delivery_phasethen set priority to priority 23;
[0144] if type is Error and cost is high and combination is one and phase isoutage_phasethen set priority to priority 24;
[0145] if type is Error and cost is high and combination is two and phase isoutage_phasethen set priority to priority 25;
[0146] if type is Failure and cost is low and combination is one and phaseis outage_phasethen set priority to priority 26;
[0147] if type is Failure and cost is low and combination is two and phaseis outage_phasethen set priority to priority 27;
[0148] if type is Failure and cost is medium and combination is one andphase is outage_phasethen set priority to priority 28;
[0149] if type is Failure and cost is medium and combination is two andphase is outage_phasethen set priority to priority 29;
[0150] if type is Error and cost is low and combination is four and phase isoutage_phasethen set priority to priority 30;
[0151] if type is Error and cost is medium and combination is four and phaseis outage_phasethen set priority to priority 31;
[0152] if type is Failure and cost is high and combination is one and phaseis delivery_phasethen set priority to priority 32;
[0153] if type is Failure and cost is high and combination is two and phaseis delivery_phasethen set priority to priority 33;
[0154] if type is Error and cost is high and combination is four and phaseis delivery_phasethen set priority to priority 34;
[0155] if type is Failure and cost is low and combination is four and phaseis delivery_phasethen set priority to priority 35;
[0156] if type is Failure and cost is medium and combination is four andphase is delivery_phasethen set priority to priority 36;
[0157] if type is Error and cost is high and combination is three and phaseis outage_phasethen set priority to priority 37;
[0158] if type is Failure and cost is low and combination is three and phaseis outage_phasethen set priority to priority 38;
[0159] if type is Failure and cost is medium and combination is three andphase is outage_phasethen set priority to priority 39;
[0160] if type is Failure and cost is high and combination is three andphase is delivery_phasethen set priority to priority 40;
[0161] if type is Failure and cost is high and combination is one and phaseis outage_phasethen set priority to priority 41;
[0162] if type is Failure and cost is high and combination is two and phaseis outage_phasethen set priority to priority 42;
[0163] if type is Error and cost is high and combination is four and phaseis outage_phasethen set priority to priority 43;
[0164] if type is Failure and cost is high and combination is four and phaseis delivery_phasethen set priority to priority 44;
[0165] if type is Failure and cost is low and combination is four and phaseis outage_phasethen set priority to priority 45;
[0166] if type is Failure and cost is medium and combination is four andphase is outage_phasethen set priority to priority 46;
[0167] if type is Failure and cost is high and combination is three andphase is outage_phasethen set priority to priority 47;
[0168] if type is Failure and cost is high and combination is four and phase is outage_phase then set priority to priority 48.
[0169] Let's take the last rule as an example to briefly introduce that if the type value is Failure, the cost value is high, the combination value is four, and the phase value is outage, then the priority value is 48, and the fault priority is the highest.
[0170] The 48 rules correspond to the 48 fuzzy terms of the fuzzy variable priority, which are defined as the output conclusions of the fuzzy ontology model definition rules.
[0171] In step S103, a data set with semantic information is obtained. Each time series data has four features, which are also four fuzzy variables of the fuzzy ontology. The four feature values correspond to the input values of the fuzzy variables. Figure 4 As shown in Figure 1, multiple fuzzy values of the four fuzzy variables are arranged and combined to form 48 fuzzy rules (such as Figure 6 As shown), it is used for fuzzy reasoning. The process of fuzzy reasoning is as follows Figure 5 shown.
[0172] Further, the S105: using the value of the fuzzy variable as an input parameter, using a membership function to perform fuzzification processing on the input parameter, using fuzzy rules to perform fuzzy reasoning on the fuzzified data, and defuzzifying the data obtained by fuzzy reasoning to obtain the fault degree priority; specifically includes:
[0173] S1051: Input fuzzification: Use a single rule with multiple antecedents, that is, a rule has multiple premises; here, four features are used as premises and fault priority is used as conclusion to form each rule;
[0174] set up are fuzzy sets on the domain X respectively. Let are fuzzy sets on the domain Y respectively. Let They are fuzzy sets on the domain Z, respectively. and The fuzzy relationship between
[0175] According to the fuzzy relations and fuzzy sets on the domains X and Y Introduce a new fuzzy set on the universe Z. That is
[0176]
[0177] In short, given the rule: x is and y is It can be deduced that z is There is a fact: x is and y is Then we can infer that z is
[0178] According to the definition of Mamdani fuzzy relation,
[0179]
[0180] For fuzzy sets and Find the minimum Cartesian product of
[0181] in, Representing fuzzy logic implication relationship Represents fuzzy sets Λ represents the Cartesian product of sets, Represents fuzzy sets Represents fuzzy sets
[0182] at this time,
[0183]
[0184] in, yes The maximum value of the membership function indicates right The degree of fit; yes The maximum value of the membership function indicates right The matching degree of ω A Λω B is the incentive strength of the fuzzy rule, which indicates the degree to which the antecedent part of the rule is satisfied. This conclusion can also be extended to the case with more than two antecedents, where four antecedent single rules are used.
[0185] Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets ω A express right The fitness, ω B express right The matching degree
[0186] S1052: Output defuzzification: Defuzzification is performed using the area centroid method. The area centroid method formula is:
[0187]
[0188] Among them, y' represents the exact value after defuzzification, ν(y) represents the membership function value, and y represents the fuzzy value before defuzzification.
[0189] The fuzzy set of the reasoning result is obtained by taking the center of gravity of the area to obtain the final reasoning accuracy value, which is the fault degree of the time series data and can be used as a fault priority warning.
[0190] S105 converts the input value into a fuzzy input value through the fuzzifier, and then processes it using the fuzzy rule base and fuzzy reasoning mechanism, and finally converts the result into an output value, that is, fuzzification and defuzzification. Using the third-party toolkit FuzzyJ Toolkit, through the relevant jar package, fuzzy concepts and fuzzy rules are defined in java, and fuzzy reasoning is performed.
[0191] The present invention combines knowledge graph construction technology and fuzzy reasoning technology to perform predictive maintenance on the failure degree of mechanical equipment, and conducts experiments on hydraulic system data sets. The experimental results show that the present invention has certain use value.
[0192] The fuzzy reasoning process can be regarded as a black box. With input and rules, output can be obtained. The output is the priority of the component failure degree of the time series data. The output is a decimal value of 0-1, where 0 represents completely normal, 1 represents complete failure, and 0.75 is used as the warning threshold. For example, the output corresponding to [3,100,0,130] is 0.5583333333333332, which does not reach the threshold and no warning is given. Fuzzy calculation is performed on each piece of data, and the failure degree of each time series data in the hydraulic system data set is finally obtained, such as Figure 8 shown.
[0193] The present invention discloses a predictive maintenance system and method based on a mechanical failure knowledge graph and fuzzy reasoning, the method comprising: preliminarily constructing a mechanical failure knowledge graph from top to bottom; supplementing and improving the preliminarily constructed knowledge graph from bottom to top; assigning semantic information and feature values to a data set; defining fuzzy variables and fuzzy rules based on the features; and performing fuzzy reasoning based on FuzzyJToolkit to obtain the priority of the degree of failure. This method was tested on a hydraulic system data set, and the experiment proved that the present invention can accurately and effectively predict the overall degree of equipment failure, and has certain practical application value. At the same time, the predictive maintenance model constructed based on the invention can realize predictive maintenance analysis of mechanical equipment failures of other related industrial clusters.
[0194] Embodiment 2
[0195] This embodiment provides a mechanical failure predictive maintenance system based on knowledge graph;
[0196] The mechanical failure predictive maintenance system based on knowledge graph includes:
[0197] The acquisition module is configured to: acquire the name of the mechanical equipment component to be maintained and the information of the mechanical equipment to be maintained; and preliminarily construct a mechanical fault knowledge graph from top to bottom for the mechanical equipment to be maintained;
[0198] The supplement module is configured to: supplement and improve the initially constructed mechanical failure knowledge graph in a bottom-up manner;
[0199] The feature assignment module is configured to: select a corresponding data set for the mechanical equipment to be maintained; assign multiple features to each state of each component in the data set according to the supplemented and improved mechanical fault knowledge graph; wherein each feature corresponds to a feature value;
[0200] A rule definition module is configured to: define fuzzy variables, membership functions and fuzzy rules according to features and feature values;
[0201] The fault prediction module is configured to: take the value of the fuzzy variable as an input parameter, use a membership function to fuzzify the input parameter, use fuzzy rules to perform fuzzy reasoning on the fuzzified data, defuzzify the data obtained by fuzzy reasoning, and obtain the fault degree priority.
[0202] It should be noted that the acquisition module, supplementation module, feature assignment module, rule definition module and fault prediction module described above correspond to steps S101 to S105 in Embodiment 1, and the examples and application scenarios implemented by the modules and corresponding steps are the same, but are not limited to the contents disclosed in Embodiment 1 described above. It should be noted that the modules described above as part of the system can be executed in a computer system such as a set of computer executable instructions.
[0203] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0204] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0205] Embodiment 3
[0206] This embodiment also provides an electronic device, including: one or more processors, one or more memories, and one or more computer programs; wherein the processor is connected to the memory, and the one or more computer programs are stored in the memory. When the electronic device is running, the processor executes the one or more computer programs stored in the memory so that the electronic device executes the method described in the above embodiment one.
[0207] It should be understood that in this embodiment, the processor may be a central processing unit CPU, and the processor may also be other general-purpose processors, digital signal processors DSP, application-specific integrated circuits ASIC, off-the-shelf programmable gate arrays FPGA or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0208] The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.
[0209] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
[0210] The method in the first embodiment can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
[0211] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0212] Embodiment 4
[0213] This embodiment further provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the method described in the first embodiment is completed.
[0214] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. The predictive maintenance method for mechanical failures based on knowledge graph is characterized by: include: Obtain the names of mechanical equipment parts to be maintained and the information of the mechanical equipment to be maintained; For the mechanical equipment to be maintained, a preliminary mechanical failure knowledge graph is constructed from top to bottom; The initially constructed mechanical failure knowledge graph is supplemented and improved in a bottom-up manner; For the mechanical equipment to be maintained, select the corresponding data set; according to the supplemented and improved mechanical fault knowledge graph, assign multiple features to each state of each component in the data set; wherein each feature corresponds to a feature value; According to the characteristics and eigenvalues, define fuzzy variables, membership functions and fuzzy rules; The value of the fuzzy variable is used as the input parameter, the membership function is used to fuzzify the input parameter, the fuzzy rule is used to perform fuzzy reasoning on the fuzzy-processed data, and the data obtained by fuzzy reasoning is defuzzified to obtain the fault degree priority; The initially constructed mechanical failure knowledge graph is supplemented and improved in a bottom-up manner, including: Extract the fault information of all components from the existing data set, further extract the information related to the characteristics of the mechanical equipment, and complete the final definition of the knowledge graph from the bottom up: Focus on "threats caused by failures" "Failure creates threat" Threat has entity "Cost" and the relationship attribute is "hasMaintenanceCost"; "Failure creates threat" Threat has entity "Phase" and the relation attribute is "Failure occurs in" happensIn; "Failure Threat" Threat has entity "Mechanical Component Failure Level" Type, and the relationship attribute is "Existence Type" hasType; And the component combination Component Condition where the failure occurs has the attribute "failure generates threat threat" Threat, and the relationship attribute is relatesTo, which means "related"; The existing data set is a hydraulic system data set from UC Irvine Machine Learning Repository; Among them, "Cost" has three subcategories: Low Cost, Medium Cost and High Cost; "Phase" Phase, there are two subclasses: Use Phase and Development Phase; "Mechanical component failure degree" Type, has three sub-categories related to the error type: Fault, Error, and Failure; Combination Condition: refers to the combination of components that failed, expressed as the number of failed components; The method of defining fuzzy variables, membership functions and fuzzy rules according to the characteristics and characteristic values specifically includes: Define fuzzy variables: Fuzzy variables are the four features type, cost, phase, and condition. Define fuzzy values are to define the feature values of each feature. Defining a membership function: using a linear function and a trigonometric function; the linear function is fitted using a trapezoidal membership function; The three fuzzy terms of maintenance cost, high, medium, and low, correspond to the straight line with a slope less than 0, the trigonometric function, and the straight line with a slope greater than 0, respectively, with intervals of [0,30], [0,30,60], and [30,60], where 60 is the highest value of the calculated maintenance cost; The fuzzy terms of type, combination, and stage are all single-valued straight lines perpendicular to the horizontal axis, and are approximated by trapezoidal membership functions in the specific experimental process; Define fuzzy rules: The definition format of fuzzy rules is: If...Then..., the specific fuzzy rule definition is: four states of each fault time series data, 2 to 4 values corresponding to each state, 48 states are obtained through permutation and combination, and the rules are defined in order of increasing fault verification degree from left to right and from top to bottom, and a fuzzy reasoning rule base is constructed; The defuzzification process obtains the fault degree priority, which specifically includes: Output defuzzification: The area centroid method is used for defuzzification. The formula of the area centroid method is: Among them, y′ represents the exact value after defuzzification, ν(y) represents the membership function value, and y represents the fuzzy value before defuzzification; The fuzzy set of the reasoning result is obtained by taking the center of gravity of the area to obtain the final reasoning precision value, which is the fault degree of the time series data and is used as a fault priority warning.
2. The method for predictive maintenance of mechanical failures based on knowledge graph according to claim 1, characterized in that: For the mechanical equipment to be maintained, a preliminary mechanical failure knowledge graph is constructed from top to bottom; specifically, it includes: Building a knowledge graph from top to bottom starts with defining the top-level concepts and then gradually refines them to form a well-structured taxonomic hierarchy.
3. The method for predictive maintenance of mechanical failures based on knowledge graph according to claim 1, characterized in that: For the mechanical equipment to be maintained, the corresponding data set is selected; according to the supplemented and improved mechanical fault knowledge graph, multiple features are assigned to each state of each component in the data set; wherein each feature corresponds to a feature value; specifically including: Select the hydraulic system dataset; According to the supplemented and improved mechanical fault knowledge graph, semantic information is assigned to the different states of each component in the hydraulic system data set; semantic information is assigned to each time series data in the hydraulic system data set; Among them, semantic information is given to the different states of each component in the hydraulic system data set; specifically, it includes: Each component in the hydraulic system dataset has several states, and three characteristic information is given to each state, including: error type type, maintenance cost cost, and error occurrence phase; Among them, semantic information is given to each time series data in the hydraulic system data set; specifically including: Each time series data in the hydraulic system data set contains the characteristic state values of the four components at a certain moment, giving semantic information to the current time series data, namely: The three characteristics of the four components are combined into the first three characteristics of the hydraulic system, and the fourth characteristic is the number of faulty component combinations; the first three characteristics are error type, maintenance cost, and error occurrence phase; The semantic information of the current time series data, including error type, maintenance cost, error phase, and combination number of failed components: combination; Assign feature values to features.
4. The method for predictive maintenance of mechanical failures based on knowledge graph according to claim 1, characterized in that: The value of the fuzzy variable is used as the input parameter, the membership function is used to fuzzify the input parameter, the fuzzy rule is used to perform fuzzy reasoning on the fuzzy-processed data, and the data obtained by fuzzy reasoning is defuzzified to obtain the fault degree priority; specifically, it includes: Input fuzzification: Use a single rule with multiple antecedents, that is, a rule has multiple premises; here, four features are used as premises and fault priority is used as conclusion to form each rule; set up are fuzzy sets on the domain X respectively. Let are fuzzy sets on the domain Y respectively. Let They are fuzzy sets on the domain Z, respectively. and The fuzzy relationship between According to the fuzzy relations and fuzzy sets on the domains X and Y Introduce a new fuzzy set on the universe Z; that is In the existing rule: x is and y is It can be deduced that z is There is a fact: x is and y is Then we can infer that z is According to the definition of Mamdani fuzzy relations, For fuzzy sets and Find the minimum Cartesian product of in, Represents fuzzy logic implication relationship Represents fuzzy sets Λ It means to find the Cartesian product of sets. Represents fuzzy sets Represents fuzzy sets at this time, in, 是 The maximum value of the membership function indicates right The degree of fit; yes The maximum value of the membership function indicates right The matching degree of A Λω B is the incentive strength of the fuzzy rule, which indicates the degree to which the antecedent part of the rule is satisfied; Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets Represents fuzzy sets ω A express right The fitness, ω B express right degree of matching.
5. The mechanical failure predictive maintenance system based on knowledge graph is characterized by: include: An acquisition module is configured to: acquire the name of the mechanical equipment component to be maintained and the mechanical equipment information to be maintained; For the mechanical equipment to be maintained, a preliminary mechanical failure knowledge graph is constructed from top to bottom; The supplement module is configured to: supplement and improve the initially constructed mechanical failure knowledge graph in a bottom-up manner; The initially constructed mechanical failure knowledge graph is supplemented and improved in a bottom-up manner, including: Extract the fault information of all components from the existing data set, further extract the information related to the characteristics of the mechanical equipment, and complete the final definition of the knowledge graph from the bottom up: Focus on "threats caused by failures" "Failure creates threat" Threat has entity "Cost" and the relationship attribute is "hasMaintenanceCost"; "Failure creates threat" Threat has entity "Phase" and the relation attribute is "Failure occurs in" happensIn; "Failure Threat" Threat has entity "Mechanical Component Failure Level" Type, and the relationship attribute is "Existence Type" hasType; And the component combination Component Condition where the failure occurs has the attribute "failure generates threat threat" Threat, and the relationship attribute is relatesTo, which means "related"; The existing data set is a hydraulic system data set from UC Irvine Machine Learning Repository; Among them, "Cost" has three subcategories: Low Cost, Medium Cost and High Cost; "Phase" Phase, there are two subclasses: Use Phase and Development Phase; "Mechanical component failure degree" Type, has three sub-categories related to the error type: Fault, Error, and Failure; Combination Condition: refers to the combination of components that failed, expressed as the number of failed components; The feature assignment module is configured to: select a corresponding data set for the mechanical equipment to be maintained; assign multiple features to each state of each component in the data set according to the supplemented and improved mechanical fault knowledge graph; wherein each feature corresponds to a feature value; A rule definition module is configured to: define fuzzy variables, membership functions and fuzzy rules according to features and feature values; The method of defining fuzzy variables, membership functions and fuzzy rules according to the characteristics and characteristic values specifically includes: Define fuzzy variables: Fuzzy variables are the four features type, cost, phase, and condition. Define fuzzy values are to define the feature values of each feature. Defining a membership function: using a linear function and a trigonometric function; the linear function is fitted using a trapezoidal membership function; The three fuzzy terms of maintenance cost, high, medium, and low, correspond to the straight line with a slope less than 0, the trigonometric function, and the straight line with a slope greater than 0, respectively, with intervals of [0,30], [0,30,60], and [30,60], where 60 is the highest value of the calculated maintenance cost; The fuzzy terms of type, combination, and stage are all single-valued straight lines perpendicular to the horizontal axis, and are approximated by trapezoidal membership functions in the specific experimental process; Define fuzzy rules: The definition format of fuzzy rules is: If...Then..., the specific fuzzy rule definition is: four states of each fault time series data, 2 to 4 values corresponding to each state, 48 states are obtained through permutation and combination, and the rules are defined in order of increasing fault verification degree from left to right and from top to bottom, and a fuzzy reasoning rule base is constructed; A fault prediction module is configured to: use the value of the fuzzy variable as an input parameter, use a membership function to perform fuzzification processing on the input parameter, use fuzzy rules to perform fuzzy reasoning on the fuzzified data, and defuzzify the data obtained by fuzzy reasoning to obtain a fault degree priority; The defuzzification process obtains the fault degree priority, which specifically includes: Output defuzzification: The area centroid method is used for defuzzification. The formula of the area centroid method is: Among them, y′ represents the exact value after defuzzification, ν(y) represents the membership function value, and y represents the fuzzy value before defuzzification; The fuzzy set of the reasoning result is obtained by taking the center of gravity of the area to obtain the final reasoning precision value, which is the fault degree of the time series data and is used as a fault priority warning.
6. An electronic device, comprising: a memory for non-transitory storage of computer readable instructions; as well as a processor for executing the computer readable instructions, When the computer-readable instructions are executed by the processor, the method described in any one of claims 1 to 4 is executed.
7. A storage medium, characterized in that it non-temporarily stores computer-readable instructions, wherein: When the non-transitory computer-readable instructions are executed by a computer, the instructions of the method according to any one of claims 1 to 4 are executed.
