Railway equipment fault diagnosis method based on semantic network
Through the railway equipment fault diagnosis method based on the Semantic Web, the fault diagnosis ontology and inference engine are used to process real-time data, which solves the problem of relying on expert experience and historical data in the existing technology, and achieves high accuracy and rapid detection of railway equipment faults. response.
Patent Information
- Application Number
- CN202410833666.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-10-18
AI Technical Summary
Existing railway equipment fault diagnosis methods rely on expert experience and historical data, are difficult to adapt to new or complex faults, lack knowledge sharing and reuse mechanisms, and are difficult to handle missing or incomplete data.
A railway equipment fault diagnosis ontology is constructed based on the Semantic Web, and real-time data is matched, associated and inferred through data preprocessing and inference engines to achieve automatic identification and location of fault causes and locations.
It improves the accuracy and reliability of fault diagnosis, reduces the response time of equipment faults, enhances the safety and reliability of the railway system, and supports fault conditions of different types, causes, locations and repair plans.
Smart Images

Figure CN118798358A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology, and in particular relates to a railway equipment fault diagnosis method, system, storage medium and equipment based on semantic web. Background Art
[0002] Railway equipment is an important part of the railway transportation system, and its performance and status will directly affect the safety and efficiency of railway transportation. Therefore, effective fault diagnosis of railway equipment and timely detection and elimination of faults are the key to ensuring the normal operation of railway transportation. Fault diagnosis of railway equipment refers to the process of analyzing and judging whether there is a fault in the railway equipment, as well as the type, cause, location and other information of the fault based on the operation data and fault data of the railway equipment, and giving corresponding maintenance plans and suggestions. Fault diagnosis of railway equipment involves multiple disciplines and fields, and is highly interdisciplinary and complex. At the same time, due to the wide variety of railway equipment, complex structure, variable parameters, environmental interference and other factors, fault diagnosis of railway equipment also faces the problems of uncertainty and dynamism.
[0003] Traditional railway equipment fault diagnosis methods mainly include rule-based methods and case-based methods. The rule-based method refers to establishing a series of fault diagnosis rules based on expert experience or literature, and diagnosing railway equipment faults according to the rules; the case-based method refers to matching the most similar case to the current fault based on the historical fault case library through similarity matching, and giving the fault diagnosis result based on the case.
[0004] However, both existing methods have some limitations: the rule-based method relies on expert experience and knowledge, requires a lot of manual compilation and maintenance of rules, is time-consuming and labor-intensive, and is difficult to adapt to new or complex faults; the case-based method relies on a historical fault case library, requires a lot of data collection and storage, and is difficult to handle missing or incomplete data. Both existing methods lack a mechanism for knowledge sharing and reuse. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention provides a railway equipment fault diagnosis method, system, storage medium and device based on the semantic web, constructs a railway equipment fault diagnosis ontology based on the semantic web, pre-processes the collected real-time data of railway equipment and performs matching and association based on the railway equipment fault diagnosis ontology, and performs real-time reasoning on the real-time data after matching and association through ontology rules and reasoning engines, so as to automatically identify and locate the cause and location of railway equipment fault in real time, thereby achieving the purpose of real-time fault diagnosis and improving the accuracy of fault diagnosis.
[0006] The present invention is achieved through the following technical solutions:
[0007] Based on the domain analysis, the railway equipment fault diagnosis ontology is constructed;
[0008] Collect real-time data of equipment, perform data preprocessing on existing historical data and the real-time data, and obtain optimized data;
[0009] Matching and associating the optimized data based on the railway equipment fault diagnosis ontology to generate triple data;
[0010] Storing the triplet data;
[0011] The ontology rules are compiled and the reasoning engine is set to perform real-time reasoning on the triple data, and generate and output fault diagnosis results.
[0012] Optional,
[0013] The construction of the railway equipment fault diagnosis ontology includes:
[0014] Analyze the field of railway equipment fault diagnosis;
[0015] Design the structure and hierarchy of the railway equipment fault diagnosis ontology according to the analysis results, and determine the relationship between elements;
[0016] According to the elements and the relationships between them, a railway equipment fault diagnosis ontology file is compiled, and a unique identifier is assigned to each element.
[0017] Optional,
[0018] The data preprocessing of the existing historical data and the real-time data includes:
[0019] Performing data cleaning, data standardization and data dimension reduction processing on the historical data;
[0020] or,
[0021] A time window is set, and the real-time data is processed in segments, followed by data cleaning, data standardization, and data dimension reduction.
[0022] Optional,
[0023] The step of matching and associating the optimized data based on the railway equipment fault diagnosis ontology to generate triple data includes:
[0024] Reading information in the railway equipment fault diagnosis body;
[0025] Mapping the optimization data to the most suitable element according to the semantic similarity between the optimization data and the elements in the railway equipment fault diagnosis ontology;
[0026] According to the relationships and constraints in the railway equipment fault diagnosis ontology, the mapped optimization data is associated with other elements;
[0027] Triple data is generated according to the associated optimized data, and a unique identifier is assigned to each triple data.
[0028] Optional,
[0029] The storing of the triple data includes:
[0030] Importing the triple data into a semantic web database and establishing corresponding indexes and directories;
[0031] According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified;
[0032] Perform management operations on the organized and classified triple data as needed.
[0033] Optional,
[0034] The compilation ontology rules include:
[0035] Ontology rules are manually compiled based on historical data, and ontology rules are automatically generated based on decision trees.
[0036] Optional,
[0037] The performing real-time reasoning on the triple data to generate and output reasoning results includes:
[0038] Based on the ontology rules, the triple data are matched, and the matched triple data are used as input data for reasoning;
[0039] The inference engine is used to perform real-time inference on the input data to generate and output a fault diagnosis result.
[0040] The present invention also provides a railway equipment fault diagnosis system based on semantic web, which is used to implement the above method, and the system comprises:
[0041] The fault diagnosis ontology module is used to construct the railway equipment fault diagnosis ontology based on domain analysis;
[0042] A data preprocessing module is used to collect real-time data of the equipment, perform data preprocessing on the existing historical data and the real-time data, and obtain optimized data;
[0043] A data annotation module, used for matching and associating the optimization data based on the railway equipment fault diagnosis ontology to generate triple data;
[0044] A data storage module, used for storing the triple data;
[0045] The data reasoning module is used to compile ontology rules and set up a reasoning engine, perform real-time reasoning on the triple data, and generate and output fault diagnosis results.
[0046] Optional,
[0047] The fault diagnosis body module is also configured to:
[0048] Analyze the field of railway equipment fault diagnosis;
[0049] Design the structure and hierarchy of the railway equipment fault diagnosis ontology according to the analysis results, and determine the relationship between elements;
[0050] According to the elements and the relationships between them, a railway equipment fault diagnosis ontology file is compiled and a unique identifier is assigned to each element.
[0051] Optional,
[0052] The system includes a data annotation module configured to:
[0053] Reading information in the railway equipment fault diagnosis body;
[0054] Mapping the optimization data to the most suitable element according to the semantic similarity between the optimization data and the elements in the railway equipment fault diagnosis ontology;
[0055] According to the relationships and constraints in the railway equipment fault diagnosis ontology, the mapped optimization data is associated with other elements;
[0056] Triple data is generated according to the associated optimized data, and a unique identifier is assigned to each triple data.
[0057] Optional,
[0058] The data storage module is further configured to:
[0059] Importing the triple data into a semantic web database and establishing corresponding indexes and directories;
[0060] According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified;
[0061] Perform management operations on the organized and classified triple data as needed.
[0062] Optional,
[0063] The data reasoning module is further configured to:
[0064] Based on the ontology rules, the triple data are matched, and the matched triple data are used as input data for reasoning;
[0065] The inference engine is used to perform real-time inference on the input data to generate and output a fault diagnosis result.
[0066] The present invention also provides a computer-readable storage medium storing one or more programs, which, when executed, can implement the aforementioned railway equipment fault diagnosis method based on semantic web.
[0067] The present invention also provides a device, comprising a processor, a communication interface, a computer-readable storage medium and a communication bus; wherein the processor, the communication interface and the computer-readable storage medium communicate with each other via the communication bus;
[0068] The processor is configured to execute a program stored in a computer-readable storage medium.
[0069] Compared with the prior art, the present invention has the following advantages:
[0070] 1. The railway equipment fault diagnosis method proposed in the present invention constructs a railway equipment fault diagnosis ontology based on the semantic web, formally describes the railway equipment related knowledge, and realizes semantic and logical processing of data, thereby improving the accuracy and reliability of fault diagnosis.
[0071] 2. At the same time, reasoning technology is used to semantically annotate, query, reason and visualize the operation data and fault data of railway equipment, realize automatic identification of the causes of railway equipment failures, and provide corresponding maintenance plans and suggestions, thereby reducing the response time of equipment failures and improving the safety and reliability of the railway system.
[0072] 3. By compiling rules and using the reasoning engine, the knowledge and logic in the field of railway equipment fault diagnosis can be described more flexibly, supporting fault conditions of different types, causes, locations and maintenance plans, and covering more comprehensive technical details.
[0073] 4. In addition, the present invention uses a semantic web database and SPARQL language to provide the functions of storing and querying the operation data and fault data of railway equipment, and supports complex query conditions and result formats, which facilitates the storage, query and management of data.
[0074] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0076] Figure 1 A flow chart of a railway equipment fault diagnosis method based on semantic web is shown;
[0077] Figure 2 The schematic structural diagram of the railway equipment fault diagnosis system based on semantic web is shown;
[0078] Figure 3 A schematic diagram of a detailed fault diagnosis process according to an embodiment of the present invention is shown;
[0079] Figure 4 It is a structural schematic diagram of a device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0081] See attached Figure 1 , the method of the present invention comprises:
[0082] S1. Construct railway equipment fault diagnosis ontology based on domain analysis;
[0083] Among them, the construction of railway equipment fault diagnosis ontology includes:
[0084] Analyze the field of railway equipment fault diagnosis;
[0085] Design the structure and hierarchy of the railway equipment fault diagnosis ontology according to the analysis results, and determine the relationship between elements;
[0086] According to the elements and the relationships between them, a railway equipment fault diagnosis ontology file is compiled, and a unique identifier is assigned to each element.
[0087] S2. Collect real-time data of the equipment, perform data preprocessing on the existing historical data and the real-time data, and obtain optimized data;
[0088] The data preprocessing of the existing historical data and the real-time data includes:
[0089] Performing data cleaning, data standardization and data dimension reduction processing on the historical data;
[0090] or,
[0091] A time window is set, and the real-time data is processed in segments, followed by data cleaning, data standardization, and data dimension reduction.
[0092] S3, matching and associating the optimized data based on the railway equipment fault diagnosis ontology to generate triple data;
[0093] The optimization data is matched and associated based on the railway equipment fault diagnosis ontology to generate triple data, including:
[0094] Reading information in the railway equipment fault diagnosis body;
[0095] Mapping the optimization data to the most suitable element according to the semantic similarity between the optimization data and the elements in the railway equipment fault diagnosis ontology;
[0096] According to the relationships and constraints in the railway equipment fault diagnosis ontology, the mapped optimization data is associated with other elements;
[0097] Triple data is generated according to the associated optimized data, and a unique identifier is assigned to each triple data.
[0098] S4, storing the triplet data;
[0099] The storing of the triple data includes:
[0100] Importing the triple data into a semantic web database and establishing corresponding indexes and directories;
[0101] According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified;
[0102] Perform management operations on the organized and classified triple data as needed.
[0103] S5. Compile ontology rules and set up an inference engine to perform real-time inference on the triple data, generate and output fault diagnosis results.
[0104] The compilation of ontology rules includes:
[0105] Ontology rules are manually compiled based on historical data, and ontology rules are automatically generated based on decision trees.
[0106] The performing real-time reasoning on the triple data to generate and output a fault diagnosis result includes:
[0107] Based on the ontology rules, the triple data are matched, and the matched triple data are used as input data for reasoning;
[0108] The inference engine is used to perform real-time inference on the input data to generate and output a fault diagnosis result.
[0109] Specifically,
[0110] 1. Construct railway equipment fault diagnosis ontology.
[0111] 1. Field analysis.
[0112] Analyze the field of railway equipment fault diagnosis to determine the purpose, scope, users and application scenarios of the ontology, as well as the concepts, attributes, relationships and other information that the ontology needs to cover.
[0113] 2. Design the entity.
[0114] Based on the results of domain analysis, the structure and hierarchy of the ontology are designed to determine the elements such as classes, instances, attributes, value ranges, constraints, etc. in the ontology, as well as the relationships such as inheritance, equivalence, and mutual exclusion between them.
[0115] 3. Write the ontology file and assign a unique identifier to each element.
[0116] According to the results of ontology design, OWL (Web Ontology Language) can be used as the ontology description language to write the railway equipment fault diagnosis ontology file and define the elements and relationships in the ontology. Using OWL to create and express ontology can provide structure, meaning and interoperability for IoT data and systems.
[0117] Assigning a unique identifier (URI) to each element helps ensure uniqueness, addressability, interoperability, extensibility, and semantic clarity of the ontology.
[0118] Furthermore, the results of ontology implementation can be evaluated to check whether the ontology meets the requirements of domain analysis and design, whether it has characteristics such as completeness, consistency, correctness, and whether it meets the needs of users and application scenarios.
[0119] Based on the evaluation results, the ontology can be continuously updated and modified, and elements and relationships in the ontology can be added, deleted or modified according to changes in domain knowledge and user feedback, thereby ensuring the timeliness and adaptability of the ontology.
[0120] In the embodiments of the present disclosure, the main body may include but is not limited to:
[0121] Railway equipment structure ontology: describes the structural hierarchy and components of railway equipment, such as locomotives, vehicles, wheels, bearings, etc.;
[0122] Railway equipment functional ontology: describes the functions and roles of railway equipment, such as traction, braking, steering, transmission, etc.;
[0123] Railway equipment status ontology: describes the operating status and parameters of railway equipment, such as speed, temperature, voltage, current, etc.;
[0124] Railway equipment fault type ontology: describes the possible fault types of railway equipment, such as wear, crack, break, short circuit, etc.;
[0125] Railway equipment failure cause ontology: describes the causes of railway equipment failure, such as material defects, design defects, improper use, environmental impact, etc.;
[0126] Railway equipment fault location ontology: describes the location where the railway equipment fault occurs, such as the front end of the locomotive, the vehicle chassis, the wheel rim, etc.;
[0127] Railway equipment maintenance plan body: describes the maintenance plans and suggestions for faults of different types and causes, such as replacing parts, repairing parts, adjusting parameters, etc.
[0128] Table 1 gives an example of assigning a unique identifier to an element in an ontology.
[0129]
[0130] Table 1
[0131] By establishing the railway equipment fault diagnosis ontology, the ontology model can be used to formally describe the relevant knowledge of railway equipment.
[0132] 2. Data preprocessing.
[0133] 1. Data collection.
[0134] Historical data refers to existing railway equipment data. After processing, it can be used for model training, trend analysis and historical comparison to help predict possible failure points of equipment.
[0135] Real-time data is the real-time data of railway equipment collected by using a variety of sensors (temperature, pressure, speed, etc.), which are distributed in key components of trains and railway infrastructure. Real-time data includes speed, temperature, pressure and other data received instantly from various sensors. Since the data collected from sensors is continuous, real-time data needs to be processed before it can be used for real-time monitoring and instant fault diagnosis, as well as triggering emergency response mechanisms.
[0136] 2. Perform data preprocessing on the existing historical data and the real-time data.
[0137] Performing data cleaning, data standardization and data dimension reduction processing on the historical data;
[0138] or,
[0139] A time window is set, and the real-time data is processed in segments, followed by data cleaning, data standardization, and data dimension reduction.
[0140] The historical data is cleaned, standardized and reduced in dimension.
[0141] Data cleaning: Detect and delete outliers, missing values, duplicate values and other noise data in the data to be processed to improve the integrity and consistency of the data.
[0142] Data standardization: Convert cleaned data into a unified measurement unit and range, eliminate differences in data dimensions and scales, and improve data comparability and compatibility.
[0143] Data dimensionality reduction: extract the main features in the data, reduce the dimensionality and redundancy of the data, and improve the simplicity and effectiveness of the data. In the embodiments of the present disclosure, algorithms such as principal component analysis (PCA) can be used to reduce data dimensionality to reduce the amount of calculation and storage space.
[0144] or,
[0145] A time window is set, and the real-time data is processed in segments, followed by data cleaning, data standardization, and data dimension reduction.
[0146] Set time window: Time window is used to process continuous real-time data in segments. Since the real-time data collected from the sensor is continuous, it needs to be analyzed and processed according to the dimension of time, and can only be used in subsequent steps after processing. By setting the time window according to the collection characteristics, the real-time data can be organized and analyzed according to the preset time interval, and then meaningful statistical information can be extracted from the continuous data stream for event detection or other analysis tasks.
[0147] After processing the real-time data by setting a time window, you can continue with data cleaning, data standardization, and data dimensionality reduction as the data basis for subsequent data reasoning.
[0148] In the embodiments of the present disclosure, data collection can be implemented through a hardware system, which can collect data at preset intervals or by triggering specific events according to needs, and then transmit it to a central server through a network. Among them, real-time data can be processed using stream data processing technology, for example, real-time stream data is stored in an Apache Flink stream processing framework through message queues such as RabbitMQ, and data preprocessing of real-time data can be implemented using the Flink stream processing framework.
[0149] Through data preprocessing, historical data and real-time data can be converted into optimized data, that is, more standardized, reliable, concise and effective data, providing better data input for subsequent steps.
[0150] 3. Data annotation.
[0151] 1. Loading the main body.
[0152] Read the concepts, attributes, relationships and other information in the railway equipment fault diagnosis ontology from the ontology file.
[0153] 2. Data mapping.
[0154] According to the semantic similarity between the optimized data and the elements in the railway equipment fault diagnosis ontology, the optimized data is mapped to the most suitable element, for example, "speed" is mapped to the "speed" attribute under the concept of "operating status". Through data mapping, data and knowledge can be matched and integrated, giving the data richer and more accurate semantic information.
[0155] 3. Data association.
[0156] According to the relationship and constraints between elements in the railway equipment fault diagnosis ontology, the mapped optimized data is associated with other elements to form associated data, for example, the concept of "locomotive" is associated with the attribute of "speed". Through data association, data can be connected and combined to form a more complete semantic network.
[0157] 4. Generate triple data.
[0158] According to the RDF format, the associated data is converted into triple data, and a unique identifier is assigned to each triple data, thereby creating a structured, interoperable and addressable data group.
[0159] In the embodiment of the present disclosure, Java language and Jena library can be used for data annotation to match, associate and generate the optimization data with the railway equipment fault diagnosis ontology. As another optional embodiment, Flink's custom function can also be used to identify data types and assign corresponding ontology tags.
[0160] By semantically annotating and converting the optimized data output by the data preprocessing module, data in semantic web format can be provided for subsequent data storage and data reasoning.
[0161] 4. Data storage.
[0162] 1. Data import.
[0163] The triple data is imported into a semantic web database, and corresponding indexes and directories are established to facilitate subsequent query and retrieval.
[0164] 2. Data organization.
[0165] According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified. The organization and classification can be based on different topics or fields, such as railway equipment type, fault type, etc.
[0166] 3. Data management.
[0167] According to needs, management operations such as adding, deleting, modifying and querying can be performed on the organized and classified triple data, for example, adding new triples, deleting invalid triples, modifying erroneous triples, querying related triples, etc.
[0168] Through data storage, the triple data output by the data annotation module can be effectively stored and managed, providing a reliable data source for users to perform data query and subsequent data reasoning.
[0169] In the embodiments of the present disclosure, data storage may use a data storage technology based on a semantic web database, such as the Jena semantic web database.
[0170] 5. Data reasoning.
[0171] 1. Prepare the ontology rules.
[0172] The rules for compiling the ontology include:
[0173] Ontology rules are manually compiled based on historical data, and ontology rules are automatically generated based on decision trees.
[0174] In the embodiments of the present disclosure, SWRL rules can be used as ontology rules to describe the knowledge and logic in the field of railway equipment fault diagnosis. For example, if the temperature of a railway equipment is too high and the pressure is too low, then the equipment may have a bearing wear fault. According to the characteristics and requirements of the railway equipment fault diagnosis field, SWRL rules covering fault conditions of different types, causes, locations and maintenance solutions are compiled.
[0175] The compilation of SWRL rules includes manual compilation and automatic generation of SWRL rules based on machine learning decision trees:
[0176] Manually compiled SWRL rules are based on expert knowledge and experience and are used to create and maintain ontology-based knowledge systems. The specific steps include:
[0177] Requirement analysis and knowledge collection, designing preliminary draft rules based on fault diagnosis expertise, relevant literature, and historical fault cases;
[0178] Design and write SWRL rules based on the draft rules;
[0179] Rule testing and verification: testing whether the execution of rules meets expectations, conducting evaluations, and iterating and optimizing based on the evaluation results;
[0180] Deployment and monitoring: deploy validated rules into the application environment and continuously monitor their performance to ensure that the compiled rules are effective and updated based on new research or technology changes.
[0181] The decision tree generates SWRL rules based on the historical fault case data set. The model can be trained through the C4.5 decision tree algorithm, and the SWRL rules are generated based on the decision tree obtained through training. The specific steps include:
[0182] The optimized data obtained by preprocessing the historical data is used as the input data set for decision tree training;
[0183] Model training, using the C4.5 decision tree algorithm to process various features including continuous and discrete, automatically discretize continuous features, and select the most appropriate features for node splitting by calculating the information gain ratio, so as to gradually build a decision tree. The construction process includes pruning strategies to delete unnecessary branches, reduce model complexity and avoid overfitting, and enhance the practicality and generalization ability of the model;
[0184] After the construction is completed, each path from the root to the leaf of the model is converted into a SWRL rule, with the branch conditions in the path as the premise of the rule and the category label of the leaf node as the conclusion of the rule.
[0185] The automatically generated decision tree rules can be clearly presented in the form of I F-THEN, which greatly simplifies the fault diagnosis process and improves the convenience of operation.
[0186] The SWRL compilation method that combines manual compilation with decision tree generation integrates the rich experience of human experts and the big data processing capabilities of machine learning, thereby improving the accuracy and reliability of the system. Manually compiled rules can interpolate domain knowledge that is not represented in the data, which is particularly important when data is scarce or of low quality; while decision tree algorithms such as C4.5 can mine complex patterns and relationships from huge data sets and improve the generalization ability of rules. In addition, automatically generated rules not only improve the efficiency of rule making, but also reduce the burden of manual compilation, allowing experts to focus on rule optimization and verification, further saving time and resources. At the same time, it can support dynamic updates, thereby quickly adapting to new data and environmental changes, ensuring that the compiled SWRL rules can cover the technical details of fault conditions of different types, causes, locations, and maintenance plans.
[0187] 2. Data reasoning.
[0188] Based on the ontology rules, the triple data generated in the previous steps based on the real-time data are matched, and the matched triple data are used as the input data for reasoning.
[0189] The inference engine is used to perform continuous data inference on the input data to generate and output the inference results, namely the fault diagnosis results.
[0190] In the embodiments of the present disclosure, a Pellet reasoning engine may be used. The Pellet reasoning engine is a semantic web reasoning engine based on OWL language and description logic, which can implement consistency checking, classification, instance retrieval and other functions of ontology and data.
[0191] The Pell et reasoning engine is configured to read and parse the railway equipment fault diagnosis ontology and SWRL rules. Based on the SWRL rules, data reasoning is continuously performed on the triple data generated in the aforementioned data annotation process to achieve real-time reasoning and monitoring of equipment status, including:
[0192] Rule loading, reading SWRL rules, obtaining information such as premises and conclusions in SWRL rules;
[0193] Data matching: Match the triple data according to the premise conditions in the rules, and use the matched triple data as the input data for reasoning. For example, according to the conditions such as "temperature is too high" and "pressure is too low", the corresponding triple data is matched and used as the input data for reasoning. Through data matching, the data related to the rules can be filtered out, thereby reducing the complexity and cost of reasoning.
[0194] Data reasoning, based on the conclusion conditions in the rules, uses the reasoning engine to perform logical reasoning on the input data and generate reasoning results.
[0195] In the embodiments of the present disclosure, data matching may be implemented using the SPARQL language, which is a language used to query information from RDF data and can specify query patterns and filter conditions, as well as the format of returned results.
[0196] 3. Result output
[0197] Output the inference results in the form of triples or other forms, and give corresponding maintenance plans, such as outputting the causes and locations of faults such as "bearing wear" and "wheel rim", and corresponding maintenance plans and suggestions such as "replace bearings" and "repair wheels".
[0198] Set the output end of the fault diagnosis result as needed, and notify the inferred fault information to the preset output display interface.
[0199] Through data reasoning, new data and knowledge can be derived from existing data and knowledge, thereby realizing automatic identification and positioning of the cause and location of railway equipment failures, and providing corresponding maintenance plans and suggestions.
[0200] The following embodiments specifically disclose the process of real-time fault diagnosis.
[0201] Constructing railway equipment fault diagnosis ontology:
[0202] The railway equipment fault diagnosis ontology is constructed to define all relevant railway equipment components and possible fault states. The railway equipment fault diagnosis ontology includes classes of different equipment and their attributes, such as "bearing" may have "temperature" and "pressure" attributes, as well as associated fault types.
[0203] Data preprocessing:
[0204] In parallel with the steps of constructing the railway equipment fault diagnosis ontology, Apache Flink is used to process the real-time data collected from railway equipment through various sensors, such as temperature, pressure, vibration and other sensors; Flink's real-time data stream processing capabilities are used for efficient data preprocessing, including data cleaning, data standardization, data dimension reduction and statistical indicators within the calculation window. Through data preprocessing, these data can be converted into a format suitable for further analysis, and optimized data can be output to prepare for subsequent analysis and diagnosis.
[0205] Data Annotation and Storage:
[0206] The optimization data is labeled based on the railway equipment fault diagnosis ontology so that the optimization data is mapped to the corresponding classes and attributes defined in the railway equipment fault diagnosis ontology. For example, temperature data will be labeled as the "temperature" attribute of a specific device (such as a bearing). This labeling process can be automatically completed by using Flink's custom functions to identify data types and assign corresponding ontology tags. The labeled data is stored in Apache Jena, a database that supports ontology and reasoning. The data is stored in RDF format to form triple data to ensure that it can be correctly parsed by the reasoning engine.
[0207] Data Reasoning:
[0208] The Pellet reasoning engine is configured to read and parse the railway equipment fault diagnosis ontology and SWRL rules, and perform data reasoning in combination with the real-time data stream processed from Flink. Pellet uses SWRL rules to continuously evaluate the input triple data and perform real-time reasoning on the equipment status. For example, if the temperature data of a bearing is continuously higher than the normal threshold, the possible overheating fault of the bearing can be inferred based on the rules.
[0209] Fault diagnosis result output and response:
[0210] When the Pell et infers a possible fault, the fault diagnosis information is marked and output, and notified to the preset output display interface. Further, the preset response measures can be triggered, such as adjusting the operating parameters of the relevant equipment or directly notifying the maintenance personnel to conduct an inspection.
[0211] This real-time fault diagnosis capability can reduce the response time to equipment failures and improve the safety and reliability of railway systems.
[0212] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0213] See attached Figure 2 , showing the structure of a railway equipment fault diagnosis system based on semantic web according to an embodiment of the present invention, including a fault diagnosis ontology module, a data preprocessing module, a data annotation module, a data storage module, and a data reasoning module.
[0214] The fault diagnosis ontology module is used to construct a railway equipment fault diagnosis ontology based on domain analysis;
[0215] The data preprocessing module is used to collect real-time data of the equipment, perform data preprocessing on the existing historical data and the real-time data, and obtain optimized data;
[0216] The data annotation module is used to match and associate the optimized data based on the railway equipment fault diagnosis ontology to generate triple data;
[0217] The data storage module is used to store the triplet data;
[0218] The data reasoning module is used to compile ontology rules and set a reasoning engine to perform real-time reasoning on the triple data, generate and output fault diagnosis results.
[0219] Figure 3 The figure is a schematic diagram of a detailed fault diagnosis process of an embodiment of the present invention.
[0220] Establishing railway equipment fault ontology includes: determining the concepts, attributes, and relationships of the ontology according to railway scenarios; designing the structure and hierarchy of the ontology; and writing the ontology file based on OWL.
[0221] In parallel with the establishment of the railway equipment fault ontology, data preprocessing is performed, including: data cleaning, data normalization, and data dimension reduction.
[0222] Based on the railway equipment fault ontology and the preprocessed data, data annotation is performed, specifically including: mapping the data with the ontology according to the similarity between the processed data and the ontology; and generating associated triples according to the RDF format.
[0223] Data storage, specifically including: importing triples into Jena semantic web database; classifying triples.
[0224] Data reasoning, specifically including: formulating SWRL rules; writing SPARQL statements to query triples; using the Pell et reasoning engine to deduce data based on SWRL rules and triple data.
[0225] In addition, an embodiment of the present invention further provides a railway equipment fault diagnosis device based on semantic web, comprising:
[0226] The fault diagnosis ontology module constructs a railway equipment fault diagnosis ontology based on domain analysis; the structure and hierarchy of the railway equipment fault diagnosis ontology are designed based on the analysis results, the elements and the relationships between them are determined, the railway equipment fault diagnosis ontology file is written, and a unique identifier is assigned to each element.
[0227] The data conversion module includes: a data preprocessing unit, a data annotation unit, and a data storage unit; wherein the collected real-time data is preprocessed, matched and associated based on the railway equipment fault diagnosis ontology, triple data is generated, and the triple data is stored.
[0228] The data reasoning module compiles ontology rules and sets a reasoning engine to perform real-time reasoning on the triple data, generate and output fault diagnosis results; wherein the triple data is matched based on the ontology rules, the matched triple data is used as input data for reasoning, and the input data is reasoned in real time using the reasoning engine to generate and output fault diagnosis results.
[0229] Based on the same inventive concept, the present invention also provides a computer-readable storage medium storing one or more programs, which, when executed, can implement the aforementioned semantic web-based railway equipment fault diagnosis method.
[0230] like Figure 4 As shown, an embodiment of the present invention further provides a device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus.
[0231] The memory is a computer-readable storage medium for storing one or more programs.
[0232] The processor is used to execute the program stored in the computer-readable storage medium.
[0233] The computer-readable storage medium may be included in the device / apparatus described in the above embodiments; or may exist independently without being assembled into the device / apparatus.
[0234] Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent substitutions for some of the technical features therein; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A railway equipment fault diagnosis method based on semantic web, characterized in that: include: Based on the domain analysis, the railway equipment fault diagnosis ontology is constructed; Collect real-time data of equipment, perform data preprocessing on existing historical data and the real-time data, and obtain optimized data; Matching and associating the optimized data based on the railway equipment fault diagnosis ontology to generate triple data; Storing the triplet data; The ontology rules are compiled and the reasoning engine is set to perform real-time reasoning on the triple data, and generate and output fault diagnosis results.
2. The method according to claim 1, characterized in that The construction of the railway equipment fault diagnosis ontology includes: Analyze the field of railway equipment fault diagnosis; Design the structure and hierarchy of the railway equipment fault diagnosis ontology according to the analysis results, and determine the relationship between elements; According to the elements and the relationships between them, a railway equipment fault diagnosis ontology file is compiled, and a unique identifier is assigned to each element.
3. The method according to claim 1, characterized in that: The data preprocessing of the existing historical data and the real-time data includes: Performing data cleaning, data standardization and data dimension reduction processing on the historical data; or, A time window is set, and the real-time data is processed in segments, followed by data cleaning, data standardization, and data dimension reduction.
4. The method according to claim 2, characterized in that: The method comprises: The step of matching and associating the optimized data based on the railway equipment fault diagnosis ontology to generate triple data includes: Reading information in the railway equipment fault diagnosis body; Mapping the optimization data to the most suitable element according to the semantic similarity between the optimization data and the elements in the railway equipment fault diagnosis ontology; According to the relationships and constraints in the railway equipment fault diagnosis ontology, the mapped optimization data is associated with other elements; Triple data is generated according to the associated optimized data, and a unique identifier is assigned to each triple data.
5. The method according to claim 1, characterized in that The storing of the triple data includes: Importing the triple data into a semantic web database and establishing corresponding indexes and directories; According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified; Perform management operations on the organized and classified triple data as needed.
6. The method according to claim 1, characterized in that The compilation ontology rules include: Ontology rules are manually compiled based on historical data, and ontology rules are automatically generated based on decision trees.
7. The method according to any one of claims 1 to 6, characterized in that: The performing real-time reasoning on the triple data to generate and output reasoning results includes: Based on the ontology rules, the triple data are matched, and the matched triple data are used as input data for reasoning; The inference engine is used to perform real-time inference on the input data to generate and output a fault diagnosis result.
8. A railway equipment fault diagnosis system based on semantic web, characterized in that: The system comprises: The fault diagnosis ontology module is used to construct the railway equipment fault diagnosis ontology based on domain analysis; A data preprocessing module is used to collect real-time data of the equipment, perform data preprocessing on the existing historical data and the real-time data, and obtain optimized data; A data annotation module, used for matching and associating the optimization data based on the railway equipment fault diagnosis ontology to generate triple data; A data storage module, used for storing the triple data; The data reasoning module is used to compile ontology rules and set up a reasoning engine, perform real-time reasoning on the triple data, and generate and output fault diagnosis results.
9. The system according to claim 8, characterized in that The fault diagnosis body module is also configured to: Analyze the field of railway equipment fault diagnosis; Design the structure and hierarchy of the railway equipment fault diagnosis ontology according to the analysis results, and determine the relationship between elements; According to the elements and the relationships between them, a railway equipment fault diagnosis ontology file is compiled and a unique identifier is assigned to each element.
10. The system according to claim 9, characterized in that The system includes a data annotation module configured to: Reading information in the railway equipment fault diagnosis body; Mapping the optimization data to the most suitable element according to the semantic similarity between the optimization data and the elements in the railway equipment fault diagnosis ontology; According to the relationships and constraints in the railway equipment fault diagnosis ontology, the mapped optimization data is associated with other elements; Triple data is generated according to the associated optimized data, and a unique identifier is assigned to each triple data.
11. The system according to any one of claims 8 to 10, characterized in that: The data storage module is further configured to: Importing the triple data into a semantic web database and establishing corresponding indexes and directories; According to the structure and hierarchy of the railway equipment fault diagnosis ontology, the imported triple data are organized and classified; Perform management operations on the organized and classified triple data as needed.
12. The system according to any one of claims 8 to 10, characterized in that: The data reasoning module is further configured to: Based on the ontology rules, the triple data are matched, and the matched triple data are used as input data for reasoning; The inference engine is used to perform real-time inference on the input data to generate and output a fault diagnosis result.
13. A computer-readable storage medium storing one or more programs, characterized in that: When the one or more programs are executed, the railway equipment fault diagnosis method based on semantic web as described in any one of claims 1 to 7 can be implemented.
14. An electronic device comprising a processor, a communication interface, the computer-readable storage medium of claim 13, and a communication bus; wherein: The processor, the communication interface, and the computer-readable storage medium communicate electronically with each other via a communication bus; characterized in that: The processor is configured to execute a program stored in a computer-readable storage medium.
