Automatic conversion method of urban rail transit fault attribution graph based on mapping rules to ontology elements
By using a mapping rule-based method, urban rail transit fault attribution graphs are automatically converted into OWL ontology, solving the problems of lack of formal semantics and inaccurate conversion results in fault attribution graphs, and realizing efficient and accurate fault ontology construction and machine reasoning.
Patent Information
- Application Number
- CN202611555468.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-09
- Publication Date
- 2026-11-24
AI Technical Summary
The fault attribution map of urban rail transit lacks formal semantics, the construction of the fault ontology requires a lot of manual work, the transformation rules do not distinguish the semantics of nodes specific to fault analysis, and the transformation results lack quality assurance.
Based on the mapping rule method, the fault attribution graph is parsed, automatically converted into OWL features by the type labels of nodes and edges, and consistency verification is performed, including injectivity, order preservation, integrity and semantic consistency verification.
It achieves automatic conversion from fault attribution graph to ontology, provides fault ontology that can be reasoned by machines, solves the problems of low efficiency and inaccurate conversion results of manual construction, and has quantitative verification capabilities.
Smart Images

Figure CN123159265A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of urban rail transit fault analysis and knowledge engineering technology, specifically involving the automatic conversion technology of urban rail transit fault attribution maps to ontology elements. Background Technology
[0002] Urban rail transit systems involve a wide variety of equipment with complex coupling relationships, making fault diagnosis and attribution analysis fundamental tasks in operation and maintenance. Subway vehicle, signaling, power supply, and electromechanical systems professionals have accumulated a large number of fault work orders and alarm records during long-term operation and maintenance. Maintenance personnel typically use fault attribution diagrams to record the causes and propagation paths of a fault, presenting the relationship between the fault outcome, cause, and operating conditions in the form of fishbone diagrams, fault trees, or cause-and-effect chain diagrams. This graphical recording method facilitates manual reading and experience transfer, and plays a significant supporting role in handling individual faults.
[0003] With the development of knowledge engineering and semantic web technologies, converting graphical analysis results into machine-processable knowledge representations has become a similar technical approach to improve the efficiency of fault knowledge reuse. Existing ontology construction schemes use ontology modeling tools or graph databases to organize fault categories, fault events, and the relationships between faults into concepts, instances, and attributes, enabling fault knowledge to be retrieved and queried. Compared to purely graphical recording methods, these schemes improve the organization and query efficiency of fault knowledge and provide a unified data foundation for cross-disciplinary fault correlation analysis.
[0004] However, fault attribution diagrams widely used in urban rail transit operation and maintenance lack formal semantics. They are usually just graphical records without strict definitions of the semantics of nodes such as fault results, causes, and operating conditions. Dispatch and maintenance systems cannot directly perform machine reasoning on the cause of a fault and what secondary faults it may induce. Organizing the attribution analysis results into a fault ontology requires a large amount of manual work. A subway line generates tens of thousands of fault work orders and alarm records every year. Manually constructing fault categories, fault event instances, causal attributes, and operating condition constraints is a huge workload and prone to errors, and it is difficult to continuously update them as the number of work orders increases.
[0005] Furthermore, existing graph-to-ontology conversion methods are mostly general mappings that fail to distinguish the node semantics specific to rail transit fault analysis, such as fault results, causes, and conditions. They also fail to consider the credibility constraints of fault liability determination, such as the confidence level of the fault causal chain. As a result, the conversion results are difficult to use directly for fault liability determination. The conversion process lacks verifiable quality assurance mechanisms. Whether the mapping is complete, whether the order of the fault causal chain is maintained, and whether there are identification conflicts and logical contradictions in the mapping results all lack unified judgment and verification methods. Summary of the Invention
[0006] To address the problems in existing technologies, such as the lack of formal semantics in fault attribution maps, the need for extensive manual labor in fault ontology construction, the disconnect between transformation rules and the semantics of rail transit faults, and the lack of quality assurance in transformation results, this invention proposes the following solution: An automatic conversion method for urban rail transit fault attribution maps to ontology features based on mapping rules, the method comprising: S1. Obtain the urban rail transit fault attribution graph. The fault attribution graph is a directed attribute graph constructed by operation and maintenance personnel to represent the causal relationship of urban rail transit faults. It includes a set of nodes, a set of edges, and a set of attributes. Parse the fault attribution graph to obtain the type label of each node, the type label of each edge, and the attributes of each node and each edge. The type label of the node is one of fault result, fault cause, and fault condition. Accordingly, the node is a fault result node, a fault cause node, or a fault condition node. The type label of the edge is one of causality, condition, inclusion, and correlation. Accordingly, the edge is a causal edge, a conditional edge, an inclusion edge, or a correlation edge. The attributes include a label and fault attribution confidence. S2. For each node obtained by parsing, an abstract judgment is made based on the node's label and the number of fault instances of the node in the rail transit operation and maintenance work order database to obtain an abstract judgment result. If the node's label is a fault category name, or if the number of fault instances of the node in the rail transit operation and maintenance work order database is greater than or equal to a preset instance number threshold, the abstract judgment result is an abstract node; otherwise, the abstract judgment result is a specific node. S3. According to the node mapping rules corresponding to the type marker of the node in the predefined mapping rule library, map the node to OWL element based on the abstraction determination result, and generate a unique Uniform Resource Identifier for each node, including: mapping the node to an OWL class when the abstraction determination result is an abstract node and the node is a fault result node or a fault cause node; mapping the node to an OWL named instance when the abstraction determination result is a concrete node and the node is a fault result node or a fault cause node; and mapping the node to an OWL constraint when the node is a fault condition node. S4. According to the edge mapping rules corresponding to the type marker of the edge in the mapping rule library, and based on the type marker of the edge and the OWL elements mapped to the nodes at both ends of the edge, map the edge to OWL elements, including: mapping the causal edge to a fault causal relationship object attribute assertion; mapping the conditional edge to an existence constraint based on the working condition attribute; mapping the containing edge to a category instance object attribute assertion when its two ends are OWL class and OWL named instance respectively, and mapping it to a whole component object attribute assertion when its two ends are both OWL class; mapping the related edge to a related relationship object attribute assertion. S5. According to the attribute mapping rules corresponding to the attribute in the mapping rule library, map the fault attribution confidence to the confidence annotations of the node and the edge; S6. Based on the confidence annotation, determine the elements whose fault attribution confidence is lower than the preset mapping confidence threshold, mark the determined elements as elements to be reviewed in the mapped ontology, and retain the elements to be reviewed in the ontology and not include them in the high-confidence fault knowledge base. S7. Perform consistency verification on the OWL elements obtained by mapping. The consistency verification includes injectivity verification, order preservation verification, integrity verification and semantic consistency verification. S8. If the consistency verification result is passed, output the rail transit fault OWL body.
[0007] Furthermore, the instance number threshold mentioned in S2 is 3, which is set according to the rule that a special rectification project is initiated when three similar faults occur in the operation and maintenance management of rail transit.
[0008] Furthermore, the OWL constraint mentioned in S3 is an existence constraint, and the constraint object of the existence constraint is the OWL element mapped by the node connected to the fault condition node in the fault attribution graph through the condition edge.
[0009] Furthermore, the condition edge mapping in S4 is an existence constraint based on the operating condition attribute, including: using the OWL class mapped by the fault result node or fault cause node connected by the condition edge as the constrained class, and using the existence constraint mapped by the fault condition node connected by the condition edge as the operating condition constraint of the constrained class.
[0010] Furthermore, the inclusion edge mapping as a category instance object attribute assertion in S4 refers to establishing a category instance object attribute assertion between the OWL class mapped by one end node of the inclusion edge and the OWL named instance mapped by the other end node of the inclusion edge; the inclusion edge mapping as a whole component object attribute assertion in S4 refers to establishing a whole component object attribute assertion between the OWL classes mapped by the two end nodes of the inclusion edge.
[0011] Furthermore, the mapping confidence threshold in S6 is 0.6, and the element to be reviewed is the fault causal element with insufficient attribution evidence in the fault attribution graph.
[0012] Furthermore, the attributes also include a fault occurrence timestamp and evidence source, and the attribute mapping rules also include: mapping the node's label to a label annotation, mapping the fault occurrence timestamp to a fault occurrence time data attribute, and mapping the evidence source to an evidence source annotation.
[0013] Furthermore, the injectivity verification is that the Uniform Resource Identifiers of each node are different; the order preservation verification is that the direction of each causal edge remains consistent before and after mapping; the integrity verification is that each node, each edge, and each attribute obtained from parsing is mapped to the OWL element; and the semantic consistency verification is that the same node is not simultaneously mapped to an OWL class and an OWL named instance.
[0014] Furthermore, the method further includes: taking the proportion of elements in the mapped OWL elements that pass the integrity verification as the mapping coverage, the proportion of elements that pass the semantic consistency verification as the mapping consistency, the proportion of causal edges that pass the order preservation verification as the mapping order preservation, and the proportion of elements in the mapped OWL elements whose fault attribution confidence reaches the mapping confidence threshold as the mapping accuracy. The mapping quality score is obtained by weighting and summing the mapping coverage, mapping accuracy, mapping consistency, and mapping order preservation according to weights of 0.3, 0.3, 0.2, and 0.2, respectively.
[0015] Based on the same inventive concept, the present invention also proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described method.
[0016] Compared with the prior art, the present invention has the following beneficial effects: By analyzing the fault attribution graph of urban rail transit and determining the fault results, fault causes and fault condition type labels of each node, as well as the causal, conditional, inclusion and correlation type labels of each edge, the fault association can obtain a strict semantic definition, thereby solving the problem that the fault attribution graph lacks formal semantics and cannot perform machine reasoning on what causes the fault and what secondary faults it will induce.
[0017] By automatically determining the abstractness of nodes based on the number of fault instances and the instance number threshold in the rail transit operation and maintenance work order database, and mapping the nodes to OWL classes, OWL named instances and OWL constraints respectively, recurring fault modes and single fault events are automatically distinguished and ontology elements are automatically generated, thereby solving the problem of requiring a lot of manual work to organize the attribution analysis results into a fault ontology.
[0018] By using mapping rules corresponding to node type labels, edge type labels, and attributes respectively, the semantics of three types of nodes (fault result, cause, and condition) and four types of edge semantics (causation, condition, inclusion, and correlation) are distinguished and processed, while retaining the attribution confidence. This solves the problem that the transformation rules do not distinguish the node semantics unique to rail transit fault analysis and do not consider the confidence constraints of the fault causal chain.
[0019] By marking elements with attribution confidence scores below the mapping confidence threshold as elements to be reviewed, and performing injectivity, order preservation, integrity, and semantic consistency verification on the mapped OWL elements, the completeness of the transformation results, the order of the fault causal chain, and the uniqueness of the identifiers can be verified, thereby solving the problem of not being able to confirm whether the transformation results can be directly put into use.
[0020] This invention features the ability to convert fault attribution maps into ontology elements in a rule-driven manner and to provide quantitative verification conclusions on the conversion results. It can output a rail transit fault ontology that can be reasoned by machines and the corresponding mapping quality score. It is applicable to the ontology of urban rail transit fault work orders, the construction of line-level and network-level fault knowledge bases, fault root cause analysis, fault propagation path reasoning, and intelligent operation and maintenance decision support. Attached Figure Description
[0021] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 This is a flowchart of the automatic conversion method from urban rail transit fault attribution map to ontology elements according to the present invention. Figure 2 This is a diagram of the mapping rule model described in this invention; Figure 3This is a flowchart of the fault attribution diagram element conversion described in this invention; Figure 4 This is a diagram of the mapping quality evaluation index system described in this invention. Detailed Implementation
[0022] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of the present invention can be combined with each other, and the described embodiments are only some embodiments of the present invention, not all embodiments.
[0023] Implementation Method 1: A method for automatically converting urban rail transit fault attribution maps into ontology elements, the method comprising: S1. Obtain the urban rail transit fault attribution graph. The fault attribution graph is a directed attribute graph constructed by operation and maintenance personnel to represent the causal relationship of urban rail transit faults. It includes a set of nodes, a set of edges, and a set of attributes. Parse the fault attribution graph to obtain the type label of each node, the type label of each edge, and the attributes of each node and each edge. The type label of the node is one of fault result, fault cause, and fault condition. Accordingly, the node is a fault result node, a fault cause node, or a fault condition node. The type label of the edge is one of causality, condition, inclusion, and correlation. Accordingly, the edge is a causal edge, a conditional edge, an inclusion edge, or a correlation edge. The attributes include a label and fault attribution confidence. S2. For each node obtained by parsing, an abstract judgment is made based on the node's label and the number of fault instances of the node in the rail transit operation and maintenance work order database to obtain an abstract judgment result. If the node's label is a fault category name, or if the number of fault instances of the node in the rail transit operation and maintenance work order database is greater than or equal to a preset instance number threshold, the abstract judgment result is an abstract node; otherwise, the abstract judgment result is a specific node. S3. According to the node mapping rules corresponding to the type marker of the node in the predefined mapping rule library, map the node to OWL element based on the abstraction determination result, and generate a unique Uniform Resource Identifier for each node, including: mapping the node to an OWL class when the abstraction determination result is an abstract node and the node is a fault result node or a fault cause node; mapping the node to an OWL named instance when the abstraction determination result is a concrete node and the node is a fault result node or a fault cause node; and mapping the node to an OWL constraint when the node is a fault condition node. S4. According to the edge mapping rules corresponding to the type marker of the edge in the mapping rule library, and based on the type marker of the edge and the OWL elements mapped to the nodes at both ends of the edge, map the edge to OWL elements, including: mapping the causal edge to a fault causal relationship object attribute assertion; mapping the conditional edge to an existence constraint based on the working condition attribute; mapping the containing edge to a category instance object attribute assertion when its two ends are OWL class and OWL named instance respectively, and mapping it to a whole component object attribute assertion when its two ends are both OWL class; mapping the related edge to a related relationship object attribute assertion. S5. According to the attribute mapping rules corresponding to the attribute in the mapping rule library, map the fault attribution confidence to the confidence annotations of the node and the edge; S6. Based on the confidence annotation, determine the elements whose fault attribution confidence is lower than the preset mapping confidence threshold, mark the determined elements as elements to be reviewed in the mapped ontology, and retain the elements to be reviewed in the ontology and not include them in the high-confidence fault knowledge base. S7. Perform consistency verification on the OWL elements obtained by mapping. The consistency verification includes injectivity verification, order preservation verification, integrity verification and semantic consistency verification. S8. If the consistency verification result is passed, output the rail transit fault OWL body.
[0024] Preferably, each mapping rule in the mapping rule base can be in the form of a triple consisting of a precondition, a constraint, and an execution action. The mapping rule base includes a node mapping rule set, an edge mapping rule set, and an attribute mapping rule set. New mapping rules for a specific professional direction can be added to the mapping rule base as new triples.
[0025] Using the above method, the nodes, edges, and attributes in the fault attribution graph are mapped to the corresponding ontology elements according to their type labels, and unique Uniform Resource Identifiers are generated, thereby realizing the complete conversion from the fault attribution graph to the rail transit fault ontology.
[0026] Furthermore, the instance number threshold mentioned in S2 is 3, which is set according to the rule that a special rectification project is initiated when three similar faults occur in the operation and maintenance management of rail transit.
[0027] By setting the threshold for the number of instances to 3 and establishing a special rectification project based on the occurrence of 3 similar faults, the boundary between recurring fault patterns and single fault events in the abstract judgment is made in line with the operation and maintenance management conventions, thereby making the division between abstract nodes and specific nodes meet the needs of fault classification.
[0028] Furthermore, the OWL constraint mentioned in S3 is an existence constraint, and the constraint object of the existence constraint is the OWL element mapped by the node connected to the fault condition node in the fault attribution graph through the condition edge.
[0029] By mapping fault condition nodes to existence constraints and making the constraint objects of these constraints the OWL features mapped by the nodes connected by the condition edges, the operating conditions are attached to the fault features they cause, thereby making the operating condition constraints in the ontology consistent with the condition relationships in the fault attribution graph.
[0030] Furthermore, the condition edge mapping in S4 is an existence constraint based on the operating condition attribute, including: using the OWL class mapped by the fault result node or fault cause node connected by the condition edge as the constrained class, and using the existence constraint mapped by the fault condition node connected by the condition edge as the operating condition constraint of the constrained class.
[0031] By using the OWL class mapped to the fault result or causal node connected by the condition edge as the constrained class, and the existence constraint mapped to the connected fault condition node as the operating condition constraint, the condition edge is connected to the fault condition node, thereby preserving the position of the operating condition on the causal chain.
[0032] Furthermore, the inclusion edge mapping as a category instance object attribute assertion in S4 refers to establishing a category instance object attribute assertion between the OWL class mapped by one end node of the inclusion edge and the OWL named instance mapped by the other end node of the inclusion edge; the inclusion edge mapping as a whole component object attribute assertion in S4 refers to establishing a whole component object attribute assertion between the OWL classes mapped by the two end nodes of the inclusion edge.
[0033] By explicitly defining the inclusion edge as a category instance object attribute assertion (which establishes an assertion between a class and an instance) and the inclusion edge as a whole component object attribute assertion (which establishes an assertion between classes), the two semantics of inclusion relationships are distinguished, thereby expressing the collection and composition relationships of fault categories.
[0034] Furthermore, the mapping confidence threshold in S6 is 0.6, and the element to be reviewed is the fault causal element with insufficient attribution evidence in the fault attribution graph.
[0035] By setting the mapping confidence threshold to 0.6 and identifying fault causal elements with insufficient attribution evidence as elements to be reviewed, the causal relationships with insufficient evidence are retained in the ontology and not used as the basis for liability determination, thereby simultaneously satisfying the requirements for tracing low-confidence fault elements and the credibility of fault liability determination.
[0036] Furthermore, the attributes also include a fault occurrence timestamp and evidence source, and the attribute mapping rules also include: mapping the node's label to a label annotation, mapping the fault occurrence timestamp to a fault occurrence time data attribute, and mapping the evidence source to an evidence source annotation.
[0037] By including the fault occurrence timestamp and evidence source in the attributes, and mapping them together with the node labels to the fault occurrence time data attribute, evidence source annotation, and label annotation respectively, the ontology carries both naming information and source information, thereby enabling the mapping result to have the attribute information required for traceability.
[0038] Furthermore, the injectivity verification is that the Uniform Resource Identifiers of each node are different; the order preservation verification is that the direction of each causal edge remains consistent before and after mapping; the integrity verification is that each node, each edge, and each attribute obtained from parsing is mapped to the OWL element; and the semantic consistency verification is that the same node is not simultaneously mapped to an OWL class and an OWL named instance.
[0039] By explicitly defining injectivity verification as ensuring that each node has a distinct identifier, order preservation verification as ensuring that the causal edge direction is consistent before and after mapping, integrity verification as ensuring that all graph elements are mapped, and semantic consistency verification as ensuring that the same node is not simultaneously a class or an instance, the verification conclusions have a definite basis and can be compared and verified.
[0040] Furthermore, the method further includes: taking the proportion of elements in the mapped OWL elements that pass the integrity verification as the mapping coverage, the proportion of elements that pass the semantic consistency verification as the mapping consistency, the proportion of causal edges that pass the order preservation verification as the mapping order preservation, and the proportion of elements in the mapped OWL elements whose fault attribution confidence reaches the mapping confidence threshold as the mapping accuracy. The mapping quality score is obtained by weighting and summing the mapping coverage, mapping accuracy, mapping consistency, and mapping order preservation according to weights of 0.3, 0.3, 0.2, and 0.2, respectively.
[0041] The mapping coverage, mapping consistency, and mapping order preservation are derived from the pass rate of integrity verification, consistency verification, and order preservation verification. The mapping accuracy is derived from the proportion of attribution confidence reaching the threshold. The mapping quality score is obtained by weighted summation at 0.3, 0.3, 0.2, and 0.2, thereby quantifying and verifying the mapping results.
[0042] The method described in this embodiment can be executed by a processor calling a computer program, which can be stored in a computer storage medium. When the computer program is executed by the processor, the above-mentioned method for automatically converting urban rail transit fault attribution maps into ontological elements can be implemented.
[0043] Implementation Method Two: This implementation method automatically converts the ontological elements of the urban rail transit fault attribution map into specific embodiments, combined with... Figures 1 to 4 The first implementation method will be further explained below.
[0044] like Figure 1 As shown, the method described in this embodiment is executed in the following order: parsing the fault attribution graph, abstraction determination, node mapping, edge mapping, attribute mapping, marking to be reviewed, consistency verification, and ontology output. The mapping process is driven by mapping rules in a predefined mapping rule base. Combined with... Figure 3 After parsing and classifying, the nodes, edges, and attributes in the fault attribution graph are mapped along three branches, and then converged into ontology elements and delivered for consistency verification.
[0045] In S1, this implementation reads the urban rail transit fault attribution graph constructed by maintenance personnel. The fault attribution graph is a directed graph with attributes, whose nodes include fault result nodes, fault cause nodes, and fault condition nodes, and whose edges include causal edges, conditional edges, containment edges, and related edges. Both nodes and edges carry attributes. Combined with... Figure 3 The parsing process first reads the identifiers and textual descriptions of each node and edge in the fault attribution graph. Then, it determines the type labels of each node and edge, and reads the attributes carried by each node and edge. Node and edge attributes include labels and fault attribution confidence scores. The fault attribution confidence score indicates the degree of confidence in the causal relationship of the fault recorded by the node or edge, and its value ranges from 0.55 to 0.99. The parsing results are registered separately according to three categories: nodes, edges, and attributes, for subsequent judgment and mapping.
[0046] In S2, this implementation performs an abstract judgment on each parsed node. The judgment is based on the node's label and the number of fault instances of that node in the rail transit operation and maintenance work order database. When the node's label is a fault category name, or when the number of fault instances of that node in the rail transit operation and maintenance work order database is greater than or equal to a preset instance number threshold, the judgment result is an abstract node; when neither of the above two conditions is met, the judgment result is a concrete node. In this implementation, the instance number threshold is set to 3, which is based on the rule in rail transit operation and maintenance management that a special rectification project is initiated when three similar faults occur. Setting it to 3 can distinguish recurring fault patterns from single fault events. Combined with Figure 3 After the abstraction determination is completed, the nodes are divided into two groups: abstract nodes and concrete nodes. The grouping result determines which type of ontology element the node is mapped to in S3.
[0047] In S3, this implementation performs node mapping according to the node mapping rules corresponding to the node type markers in the mapping rule base, based on the abstraction determination result. The part of the mapping rule base corresponding to the node type markers is the node mapping rule set, where the mapping rules consist of preconditions, constraints, and execution actions. When the abstraction determination result is an abstract node, and the node is a fault result node or a fault cause node, the node is mapped to an OWL class to represent a recurring fault pattern; when the abstraction determination result is a concrete node, and the node is a fault result node or a fault cause node, the node is mapped to an OWL named instance to represent a single fault event; when the node is a fault condition node, the node is mapped to an OWL constraint to represent the operating conditions under which the fault occurs. During mapping, each node generates its own Uniform Resource Identifier (URI), ensuring that the URIs of each node are distinct for subsequent injectivity verification and case tracing. The mapping from the fault attribution graph to the ontology can be represented as follows:
[0048] in, Here is the mapping function, representing the mapping from the fault attribution graph to the ontology; Attribution diagram for urban rail transit faults; This is the set of nodes in the fault attribution diagram; This is the set of edges in the fault attribution graph; The set of attributes for the fault attribution diagram; It can be any element in the set of nodes, the set of edges, and the set of attributes; This is a mapping rule in the mapping rule base; For mapping rule base, the node mapping rule set Edge mapping rule set With attribute mapping rule set composition; For mapping rules The prerequisites are used to determine the element. Does the triggering pattern of this rule meet? For mapping rules The constraints are used to determine the elements. Does it meet the additional requirements that must be met before the rule can be implemented? For mapping rules The execution action indicates the ontology element generated after the rule is triggered; It is a logical truth value, indicating that the precondition or constraint is true; It belongs to the symbol; The union symbol; The operator for finding the union of all elements; It is a set symbol; This is a condition separator.
[0049] In S4, this implementation performs edge mapping according to the edge mapping rules corresponding to the edge type marker in the mapping rule library, based on the edge type marker and the OWL elements mapped to the two endpoints of the edge. Causal edge mapping is a fault causal relationship object attribute assertion, used to indicate that a certain cause leads to a certain fault; conditional edge mapping is an existence constraint based on operating condition attributes, used to indicate the facilitating relationship between operating conditions and faults; correlation edge mapping is a correlation relationship object attribute assertion, used to indicate the correlation between two fault causal relationships; a category instance object attribute assertion is established between the OWL class mapped to one endpoint of the edge and the OWL named instance mapped to the other endpoint; a global component object attribute assertion is established between the OWL classes mapped to the two endpoints of the edge. Combined with... Figure 2 The mapping rules in the edge mapping rule set are matched one by one according to the edge type label. For conditional edges, the OWL class mapped by the fault result node or fault cause node connected to the conditional edge is used as the constrained class, and the existence constraint mapped by the fault condition node connected to the conditional edge is used as the working condition constraint of the constrained class. The specific content of the working condition is recorded by the fault condition node, which may include high temperature weather above 35°C, peak passenger flow with a cross-section full load rate above 120%, equipment with a relay service life of more than 10 years exceeding its service life, and humid tunnel environment with humidity above 85%RH, etc.
[0050] In S5, this implementation method performs attribute mapping according to the attribute mapping rules corresponding to the attributes in the mapping rule library. Combined with... Figure 2 The attribute mapping rules in the attribute mapping rule set map the fault attribution confidence carried by nodes and edges to confidence annotations, the node labels to label annotations, the fault occurrence timestamps to fault occurrence time data attributes, and the evidence source to evidence source annotations. The fault occurrence time data attribute records the time the fault occurred, and the evidence source annotation records the type of record from which the evidence for the fault's causal relationship was obtained, which can include fault work orders, monitoring and data acquisition records, and maintenance records. After the attribute mapping is completed, the fault attribution-related information carried by nodes and edges is retained along with the ontology elements for subsequent review marking and fault attribution.
[0051] In S6, this implementation performs the verification mark based on the confidence level annotation. In this implementation, the mapping confidence level threshold is set to 0.6, meaning that fault causal relationships with an attribution confidence level below 0.6 lack sufficient evidence in fault liability determination and cannot be used as the basis for formal liability determination and assessment. For elements with a fault attribution confidence level below the mapping confidence level threshold, this implementation marks them as verification elements in the mapped ontology. Verification elements remain in the ontology and retain their confidence level annotations, but are not included in the high-confidence fault knowledge base; when the evidence for the element is supplemented, its inclusion in the high-confidence fault knowledge base can be re-evaluated. Fault causal elements with insufficient attribution evidence are the main source of verification elements; these elements typically manifest as occasional external causes in the fault causal chain.
[0052] In S7, this implementation performs consistency verification on the mapped OWL elements. Combined with... Figure 1 and Figure 3 Consistency verification includes four aspects: injectivity verification, order preservation verification, integrity verification, and semantic consistency verification. Injectivity verification checks whether the Uniform Resource Identifiers (URIs) of each node are different to avoid confusion between different fault elements. Order preservation verification checks whether the directions of each causal edge remain consistent before and after mapping to ensure that the order of fault propagation is not reversed. Integrity verification checks whether each node, edge, and attribute obtained from the parsing is mapped to an OWL element. Semantic consistency verification checks whether the same node is simultaneously mapped to both an OWL class and an OWL named instance to avoid logical contradictions in the mapping results. The conclusions of the four verifications are summarized as the consistency verification result, which also determines whether this implementation method continues to execute the output.
[0053] In S8, if the consistency verification result is passed, this implementation outputs the rail transit fault OWL ontology, along with the corresponding mapping details, a list of items to be reviewed, and a mapping quality assessment report, and calculates the mapping quality score based on the consistency verification result. Combined with... Figure 4 The mapping quality score is obtained by weighted summation of four indicators: mapping coverage, mapping accuracy, mapping consistency, and mapping order preservation. These four indicators are derived from the conclusions of consistency verification and the statistical results of confidence annotations, respectively. The overall quality score is determined according to the following formula:
[0054] in, For mapping quality scoring; The mapping coverage is the proportion of elements that pass the integrity verification in the OWL features obtained from the mapping. To determine the mapping accuracy, we take the proportion of elements in the OWL elements obtained from the mapping whose fault attribution confidence reaches the mapping confidence threshold. To ensure mapping consistency, the proportion of elements in the OWL features obtained from the mapping that pass the semantic consistency verification is taken; To ensure order preservation in the mapping, the proportion of causal edges that pass the order preservation verification is taken; The sign is multiplication; 0.3, 0.3, 0.2 and 0.2 are respectively , , and The weight.
[0055] Implementation Method 3: This implementation method uses numerical simulation to further illustrate the mapping quality of the automatic conversion of ontological elements in the urban rail transit fault attribution map described in Implementation Method 2.
[0056] The simulation scenario in this implementation is a typical operation and maintenance scenario of Metro Line 3 in 2024, covering four specialties: rolling stock, platform screen doors, signaling, and power supply. The simulation input is an urban rail transit fault attribution graph constructed according to the scenario. The fault attribution graph includes 22 nodes and 24 edges. The 22 nodes include 6 fault result nodes, 12 fault cause nodes, and 4 fault condition nodes. The 24 edges include 16 causal edges, 4 conditional edges, 3 inclusion edges, and 1 correlation edge. Each node and each edge carries a fault attribution confidence score, a fault occurrence timestamp, and a source of evidence. The nodes and edges have a total of 88 attributes. The fault attribution confidence score ranges from 0.55 to 0.99. The simulation parameters are the same as in Implementation Method 2, with an instance count threshold of 3 and a mapping confidence threshold of 0.6.
[0057] The operating conditions recorded by the fault condition node include high temperature weather with an ambient temperature above 35°C, peak passenger flow with a cross-section full load rate above 120%, equipment with a relay service life of more than 10 years exceeding its service life, and humid tunnel environment with a humidity of more than 85%RH. The condition edges between the operating conditions and the fault result node or the fault cause node are mapped together.
[0058] This implementation method performs mapping according to the mapping rule base described in Implementation Method 2, and sequentially completes fault attribution graph parsing, abstraction determination, node mapping, edge mapping, attribute mapping, pending verification marking, consistency verification and ontology output. The judgment basis, mapping rules and threshold values of each step are the same as in Implementation Method 2, and will not be repeated here.
[0059] Combination Figure 4In the OWL ontology of rail transit faults obtained through this implementation method, there are 13 OWL classes, 5 OWL named instances, 20 object attribute assertions, 8 operating condition constraints, 22 data attribute assertions, and 66 annotation assertions. All 22 nodes, 24 edges, and 88 attributes in the fault attribution graph are mapped to OWL features, with no fault features omitted.
[0060] Of the 22 nodes, 13 nodes are tagged with fault category names or have at least 3 fault instances in the aforementioned rail transit operation and maintenance work order database. Their abstract judgment result is an abstract node, mapped to OWL class. Among these, the number of fault instances corresponding to train emergency braking is 4, train delay is 5, platform door failure to close is 3, and track circuit shunt malfunction is 3. The remaining 5 nodes are single fault events, and their abstract judgment result is a concrete node, mapped to OWL named instances. These include single fault events such as traction inverter power module breakdown, pantograph carbon strip wear exceeding limits, and lightning overvoltage, which have not yet formed a recurring fault mode. The 4 fault condition nodes are mapped to OWL constraints.
[0061] The consistency verification results of this implementation are as follows: In the injectivity verification, the Uniform Resource Identifiers generated by each of the 22 nodes are different, and all 22 items pass; In the order preservation verification, the directions of all 16 causal edges remain consistent before and after mapping, and all 16 items pass; In the integrity verification, all 134 parsed elements are mapped to OWL elements, and all 134 items pass; In the semantic consistency verification, there is no case where the same node is mapped to both an OWL class and an OWL named instance, and the semantic consistency verification passes.
[0062] Combination Figure 4 In this embodiment, the mapping quality indicators are calculated using the weighted summation method described in Embodiment 2. Mapping coverage is the proportion of graph elements that pass integrity verification out of all graph elements, which is 100.00%. Mapping accuracy is the proportion of graph elements whose fault attribution confidence reaches the mapping confidence threshold out of all graph elements; 44 out of 46 graph elements reach the mapping confidence threshold, resulting in a mapping accuracy of 95.65%. Mapping consistency is the proportion of elements that pass semantic consistency verification out of all mapped OWL elements, which is 100.00%. Mapping order preservation is the proportion of causal edges with consistent direction out of all causal edges, which is 100.00%. The mapping coverage, mapping accuracy, mapping consistency, and mapping order preservation are weighted and summed with weights of 0.3, 0.3, 0.2, and 0.2 respectively, resulting in a comprehensive quality score of 0.9870.
[0063] The fault attribution confidence of the lightning overvoltage node and its causal edges in the fault attribution graph is 0.55, which is lower than the mapping confidence threshold of 0.6. Therefore, it is marked as an element to be verified after attribute mapping. This element is retained in the output rail transit fault OWL ontology and is not included in the high-confidence fault knowledge base. Except for the lightning overvoltage node and its causal edges, the fault attribution confidence of all other graph elements reaches the mapping confidence threshold.
[0064] As can be seen from the above, this implementation method has completed the mapping of all graph elements on the urban rail transit fault attribution graph covering four disciplines, without any omission of fault elements. This indicates that the mapping rule base organized by node type labeling and edge type labeling has complete coverage capability for the attribution semantics of urban rail transit faults, and the mapping results can be directly used as the basic data of the rail transit fault knowledge base. The injectivity verification and semantic consistency verification all passed, indicating that there is no identification conflict or logical contradiction between the generated Uniform Resource Identifier and OWL elements, and the output ontology can be stably used in subsequent reasoning. The order preservation verification all passed, indicating that the direction of the causal edges remains consistent before and after mapping, the order of fault propagation is preserved, and the tracing conclusion of the fault causal chain is consistent with the actual evolution order of the fault. The lightning overvoltage node with a fault attribution confidence of 0.55 and its causal edges are marked as elements to be verified and retained in the ontology, indicating that the confidence annotation and verification marking mechanism can distinguish between occasional external causes with insufficient evidence and fault causal relationships that can be used as the basis for liability determination.
[0065] The specific embodiments of the present invention disclosed above are merely illustrative of the invention. These embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Many modifications and variations can be made based on the content of this specification. This specification selects and specifically describes these embodiments to better explain the principles and practical applications of the invention, thereby enabling those skilled in the art to better understand and utilize the invention.
Claims
1. A method for automatically converting urban rail transit fault attribution maps to ontology elements based on mapping rules, characterized in that: The method includes: S1. Obtain the urban rail transit fault attribution graph. The fault attribution graph is a directed attribute graph constructed by operation and maintenance personnel to represent the causal relationship of urban rail transit faults. It includes a set of nodes, a set of edges, and a set of attributes. Parse the fault attribution graph to obtain the type label of each node, the type label of each edge, and the attributes of each node and each edge. The type label of the node is one of fault result, fault cause, and fault condition. Accordingly, the node is a fault result node, a fault cause node, or a fault condition node. The type label of the edge is one of causality, condition, inclusion, and correlation. Accordingly, the edge is a causal edge, a conditional edge, an inclusion edge, or a correlation edge. The attributes include a label and fault attribution confidence. S2. For each node obtained by parsing, an abstract judgment is made based on the node's label and the number of fault instances of the node in the rail transit operation and maintenance work order database to obtain an abstract judgment result. If the node's label is a fault category name, or if the number of fault instances of the node in the rail transit operation and maintenance work order database is greater than or equal to a preset instance number threshold, the abstract judgment result is an abstract node; otherwise, the abstract judgment result is a specific node. S3. According to the node mapping rules corresponding to the type marker of the node in the predefined mapping rule library, map the node to OWL element based on the abstraction determination result, and generate a unique Uniform Resource Identifier for each node, including: mapping the node to an OWL class when the abstraction determination result is an abstract node and the node is a fault result node or a fault cause node; mapping the node to an OWL named instance when the abstraction determination result is a concrete node and the node is a fault result node or a fault cause node; and mapping the node to an OWL constraint when the node is a fault condition node. S4. According to the edge mapping rules corresponding to the type marker of the edge in the mapping rule library, and based on the type marker of the edge and the OWL elements mapped to the nodes at both ends of the edge, map the edge to OWL elements, including: mapping the causal edge to a fault causal relationship object attribute assertion; mapping the conditional edge to an existence constraint based on the working condition attribute; mapping the containing edge to a category instance object attribute assertion when its two ends are OWL class and OWL named instance respectively, and mapping it to a whole component object attribute assertion when its two ends are both OWL class; mapping the related edge to a related relationship object attribute assertion. S5. According to the attribute mapping rules corresponding to the attribute in the mapping rule library, map the fault attribution confidence to the confidence annotations of the node and the edge; S6. Based on the confidence annotation, determine the elements whose fault attribution confidence is lower than the preset mapping confidence threshold, mark the determined elements as elements to be reviewed in the mapped ontology, and retain the elements to be reviewed in the ontology and not include them in the high-confidence fault knowledge base. S7. Perform consistency verification on the OWL elements obtained by mapping. The consistency verification includes injectivity verification, order preservation verification, integrity verification and semantic consistency verification. S8. If the consistency verification result is passed, output the rail transit fault OWL body.
2. The method according to claim 1, characterized in that, The threshold for the number of instances mentioned in S2 is 3. The threshold for the number of instances is set according to the rule that a special rectification project will be initiated when three similar faults occur in the operation and maintenance management of rail transit.
3. The method according to claim 1, characterized in that, The OWL constraint mentioned in S3 is an existence constraint. The constraint object of the existence constraint is the OWL element mapped by the node connected to the fault condition node in the fault attribution graph through the condition edge.
4. The method according to claim 3, characterized in that, The condition edge mapping in S4 is an existence constraint based on the operating condition attribute, including: using the OWL class mapped by the fault result node or fault cause node connected by the condition edge as the constrained class, and using the existence constraint mapped by the fault condition node connected by the condition edge as the operating condition constraint of the constrained class.
5. The method according to claim 1, characterized in that, The inclusion edge mapping as a category instance object attribute assertion in S4 refers to establishing a category instance object attribute assertion between the OWL class mapped by one end node of the inclusion edge and the OWL named instance mapped by the other end node of the inclusion edge; the inclusion edge mapping as a whole component object attribute assertion in S4 refers to establishing a whole component object attribute assertion between the OWL classes mapped by the two end nodes of the inclusion edge.
6. The method according to claim 1, characterized in that, The mapping confidence threshold in S6 is 0.6, and the element to be reviewed is the fault causal element in the fault attribution graph that has insufficient attribution evidence.
7. The method according to claim 1, characterized in that, The attributes also include a fault occurrence timestamp and evidence source. The attribute mapping rules also include: mapping the node's label to a label annotation, mapping the fault occurrence timestamp to a fault occurrence time data attribute, and mapping the evidence source to an evidence source annotation.
8. The method according to claim 1, characterized in that, The injectivity verification is that the Uniform Resource Identifiers of each node are different; the order preservation verification is that the direction of each causal edge remains consistent before and after mapping; the integrity verification is that each node, each edge, and each attribute obtained from parsing is mapped to the OWL element; and the semantic consistency verification is that the same node is not simultaneously mapped to an OWL class and an OWL named instance.
9. The method according to claim 8, characterized in that, The method further includes: taking the proportion of elements in the mapped OWL elements that pass the integrity verification as the mapping coverage, the proportion of elements that pass the semantic consistency verification as the mapping consistency, the proportion of causal edges that pass the order preservation verification as the mapping order preservation, and the proportion of elements in the mapped OWL elements whose fault attribution confidence reaches the mapping confidence threshold as the mapping accuracy. The mapping quality score is obtained by weighting and summing the mapping coverage, mapping accuracy, mapping consistency, and mapping order preservation according to the weights of 0.3, 0.3, 0.2, and 0.2, respectively.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method of any one of claims 1 to 9.
