Multi-agent based steel production line fault diagnosis method, device, and medium

By constructing a multi-agent fault knowledge graph reasoning model, the problems of high model complexity and strong data dependence in fault diagnosis of steel production lines are solved, achieving higher diagnostic accuracy and reliability. It can handle complex interaction relationships and uncertainties, thereby improving the efficiency and accuracy of fault diagnosis.

CN118780365BActive Publication Date: 2026-11-24TONGJI UNIV
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410754939.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2026-11-24
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing technologies for fault diagnosis in steel production lines suffer from high model complexity, strong data dependence, and difficulties in knowledge representation and updating, resulting in insufficient diagnostic accuracy and reliability.

Method used

A fault knowledge graph reasoning model based on multi-agents is adopted, including a fact extraction agent, a relation selection agent, and an entity selection agent. The fault knowledge graph is constructed from top to bottom and dynamically updated using a Transformer encoder and a graph attention network. The agent parameters are optimized by combining a ternary reward mechanism and an alternating training method.

Benefits of technology

It improves the accuracy and reliability of fault diagnosis, can more comprehensively consider the mutual influence between equipment elements, handle complex interaction relationships and uncertainties, enhance the robustness and adaptability of the model, and significantly expand the action space of the knowledge graph.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780365B_ABST
    Figure CN118780365B_ABST
Patent Text Reader

Abstract

This invention relates to a method, equipment, and medium for fault diagnosis of steel production lines based on multi-agent technology, comprising the following steps: acquiring steel production line data, inputting a trained multi-agent fault knowledge graph reasoning model, and obtaining fault diagnosis results for the steel production line equipment; wherein, the multi-agent fault knowledge graph reasoning model includes a fact extraction agent, a relation selection agent, and an entity selection agent, the relation selection agent and entity selection agent being used for collaborative reasoning based on the fault knowledge graph, the fault knowledge graph being constructed using a top-down approach, and the fact extraction agent being used to extract and generate fact triples from an external corpus to dynamically update the fault knowledge graph. Compared with existing technologies, this invention can further improve the accuracy and reliability of fault diagnosis in steel production lines.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of knowledge discovery technology, and in particular relates to a method, equipment and medium for fault diagnosis of steel production lines based on multi-agent systems. Background Technology

[0002] In steel production, equipment fault diagnosis is crucial for ensuring the stability of the production process and the safety of equipment. Traditional steel industry equipment fault diagnosis is often based on manual labor and relies on physical systems. When production equipment malfunctions, maintenance personnel use their experience, data-driven equipment maintenance and inspection systems, existing maintenance records, and internal equipment information to conduct a comprehensive analysis to determine the location and cause of the fault. This method relies on a single source of knowledge, is time-consuming, and cannot effectively analyze the fault location and specific causes.

[0003] Knowledge graph reasoning technology aims to derive new knowledge from existing knowledge. It is a key technology for enabling machine intelligence to possess reasoning and decision-making capabilities similar to humans, and can be widely applied in industries such as intelligent manufacturing and biomedicine. In the problem of fault diagnosis in steel production lines, the construction of a fault knowledge graph involves modeling elements such as equipment, sensor data, and process flows within the production line, forming a comprehensive knowledge network. Chinese patent application CN116561302A discloses a fault diagnosis method, device, and storage medium based on hybrid knowledge graph reasoning. This method constructs a hybrid knowledge graph reasoning model based on a knowledge graph embedding model built using graph attention mechanisms and TranSparse, and a knowledge graph reasoning model built using logical rules and reinforcement learning. The trained hybrid knowledge graph reasoning model is then used for fault diagnosis of steel production line equipment. However, this method suffers from high model complexity, strong data dependency, and difficulties in knowledge representation and updating. Therefore, a fault diagnosis method for steel production lines needs to be designed to further improve the accuracy and reliability of fault diagnosis and enhance the fault diagnosis capabilities of steel production lines. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the existing technology by providing a multi-agent-based method, equipment and medium for diagnosing faults in steel production lines, thereby further improving the accuracy and reliability of fault diagnosis in steel production lines.

[0005] The objective of this invention can be achieved through the following technical solutions:

[0006] This invention provides a multi-agent-based fault diagnosis method for steel production lines, comprising the following steps:

[0007] Acquire data from the steel production line, input it into a trained multi-agent fault knowledge graph reasoning model, and obtain fault diagnosis results for the steel production line equipment.

[0008] The fault knowledge graph-based reasoning model includes a fact extraction agent, a relation selection agent, and an entity selection agent. The relation selection agent and the entity selection agent are used for collaborative reasoning based on the fault knowledge graph. The fault knowledge graph is constructed using a top-down approach. The fact extraction agent is used to extract and generate fact triples from an external corpus to dynamically update the fault knowledge graph.

[0009] Furthermore, the steel production line data includes equipment operation data, historical fault records, maintenance and repair records, operation logs, and environmental data.

[0010] Furthermore, the fault knowledge graph comprises a top-level ontology, a schema layer, and a data layer from top to bottom. The specific construction method of the fault knowledge graph is as follows:

[0011] Define the top-level ontology and schema layer: Determine the top-level ontology for the field of steel production line fault diagnosis, including several key concepts, and then design schemas at the schema layer to represent the relationships between these key concepts;

[0012] Define ontology constraints: Define the attributes and relationships of each key concept;

[0013] Establish a schema layer structure: Build a structured relational network and clarify the relationships between entities;

[0014] Populate the data layer: Obtain fault data from the steel production line, including fault information and equipment status, and add it to the data layer.

[0015] Furthermore, after the fact extraction agent extracts fact triples from the external corpus, it processes them through a Transformer encoder and a graph attention network to dynamically update the fault knowledge graph.

[0016] Furthermore, in the multi-agent fault knowledge graph reasoning model, each agent adopts a three-element reward mechanism: if the target entity is reached, a positive reward is given; if the wrong entity is reached, a negative reward is given; and if the entity with no answer is reached, a neutral reward is given.

[0017] Furthermore, the multi-agent fault knowledge graph reasoning model aims to maximize the expected reward of each agent and uses an alternating training method to update the parameters of each agent.

[0018] Furthermore, the relation selection agent and the entity selection agent have the same structure, including a Long Short-Term Memory (LSTM) neural network and a Softmax classifier. The specific process of the relation selection agent and the entity selection agent performing collaborative reasoning based on the fault knowledge graph is as follows:

[0019] The query entity and query relationship are obtained and concatenated to obtain an input vector. This vector is then input into the relationship selection agent and the entity selection agent, respectively. The input vector is first processed in an LSTM, and then the policy networks of each agent are used to generate relationship selection policies and entity selection policies. Subsequently, the output of the policy network is converted into a probability distribution through Softmax, and the next relationship and the next entity are selected accordingly. Each step of the selected relationship and entity forms a reasoning chain, which is recorded as a historical state. The final reasoning path is formed through multi-step reasoning.

[0020] Furthermore, the generation process of the policy network for each agent is as follows:

[0021] Based on historical actions and historical embeddings, the embedding of the current time step is calculated using a Long Short-Term Memory (LSTM) neural network. The historical actions include relationships and entities selected in the past.

[0022] The current time step is embedded into a feedforward network with a ReLU nonlinear layer, and then input into a multilayer perceptron (MLP) with a softmax layer to obtain the probability of the agent taking corresponding actions at different time steps, thus generating a policy network.

[0023] The present invention also provides an electronic device, including a memory, a processor, and a program stored in the memory, wherein the processor executes the program to implement the above-described method.

[0024] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] 1. This invention constructs and trains a fault knowledge graph-based reasoning model to obtain fault diagnosis results for steel production line equipment. The fault knowledge graph-based reasoning model includes a fact extraction agent, a relation selection agent, and an entity selection agent. The relation selection agent and the entity selection agent perform collaborative reasoning based on the fault knowledge graph, which can more comprehensively consider the mutual influence between various elements, effectively handle complex interaction relationships and uncertainties, achieve more accurate fault diagnosis, and improve the robustness and adaptability of the model, enabling it to cope with different production environments and fault scenarios.

[0027] 2. In this invention, the fault knowledge graph is constructed using a top-down approach, which helps to integrate a large amount of fragmented knowledge about faults and equipment, making the knowledge more comprehensive and structured. This allows the fault knowledge graph to better reflect the actual fault domain knowledge of the production line, providing a stronger foundation for subsequent multi-agent reasoning. At the same time, this invention utilizes a fact extraction agent to extract and generate fact triples from an external corpus, dynamically updating the fault knowledge graph. This can compensate for potential information gaps in the graph, solve the problems of sparsity and incompleteness in knowledge graphs, significantly expand the action space of the knowledge graph, and improve the accuracy of fault diagnosis.

[0028] 3. In the training process of the fault knowledge graph reasoning model based on multi-agent systems, this invention aims to maximize the expected reward of each agent. It adopts an alternating training method to update the parameters of each agent, which can increase the overall model reward and enable each agent to maximize its own reward. This invention also proposes a three-element reward mechanism: if the target entity is reached, the agent is given a positive reward; if the incorrect entity is reached, the agent is given a negative reward; and if the unanswered entity is reached, the agent is given a neutral reward. This can solve the problem that the agent cannot reach the answer entity within a limited number of steps, which is conducive to efficient and stable model training. Attached Figure Description

[0029] Figure 1 This is a flowchart of the method of the present invention;

[0030] Figure 2 This is a schematic diagram of the structure of a multi-agent fault knowledge graph-based reasoning model.

[0031] Where FE is the fact extraction agent, RS is the relation selection agent, ES is the entity selection agent, GAT is the graph attention network, π is the policy network, e is the entity, r is the relation, LSTM is the long short-term memory neural network, h0 is the initial hidden state, and h i-1 This is the hidden state at time step i-1, containing information from previous time steps, e i-1 and r i-1 Represent the entity and relation selected at time step i-1, respectively. Softmax is the classifier, Transformer is the sentence encoder, and NextRelation is the relation r for the next step. i Next entity is the next entity e i ;

[0032] Figure 3 This is a schematic diagram of the fault diagnosis process based on multi-agent fault knowledge graph reasoning. Detailed Implementation

[0033] The present invention will now be described in detail with reference to the accompanying drawings and specific embodiments. These embodiments are based on the technical solution of the present invention and provide detailed implementation methods and specific operating procedures. However, the scope of protection of the present invention is not limited to the following embodiments.

[0034] Example:

[0035] This embodiment provides a multi-agent-based fault diagnosis method for steel production lines, such as... Figure 1 As shown, it includes the following steps:

[0036] S1. Obtain fault data of the steel production line, including equipment status, fault cause, fault phenomenon, maintenance records and other information.

[0037] S2. A top-down approach is used to construct a fault knowledge graph. The specific process is as follows:

[0038] S201. Define the top-level ontology and schema layer: First, determine the top-level ontology in the field of steel production line fault diagnosis, including key concepts such as people, machines, objects, equipment, and faults; second, design schemas in the schema layer to represent the relationships between these concepts, such as "instance", "containment", "fault cause", and "fault phenomenon".

[0039] S202. Define ontology constraints: Constrain the top-level ontology, define the attributes and relationships of each concept to ensure the consistency and standardization of the fault knowledge graph.

[0040] S203. Establish a schema layer structure: By designing a schema layer, a structured relational network is established in the fault knowledge graph, clarifying the relationships between entities. For example, equipment failure may be related to the production process, and corresponding relationships can be established.

[0041] S204. Fill the data layer of the fault knowledge graph: Using the fault data of the steel production line obtained in step S1, add actual fault information, equipment status data, etc. to the data layer to fill the data layer of the fault knowledge graph.

[0042] The role of fault knowledge graphs in fault diagnosis of steel production line equipment is mainly reflected in the following aspects:

[0043] a. Data integration and association: Knowledge graphs integrate relevant data such as equipment, faults, and maintenance into an interconnected graph structure, making the relationships between data clearer and more intuitive. It can connect heterogeneous data from multiple sources to form a unified knowledge base.

[0044] b. Improve diagnostic accuracy: Knowledge graphs can effectively utilize existing knowledge and data in fault diagnosis, thereby improving the accuracy of fault diagnosis. Knowledge graphs contain information such as equipment status, fault causes, fault phenomena, and maintenance records, which are crucial for fault diagnosis.

[0045] c. Supports complex reasoning: Knowledge graphs can support multi-step reasoning, revealing complex causal relationships in equipment failures through multi-level relational connections. For example, multiple potential causes behind a failure phenomenon can be deduced, as well as the subsequent problems that each cause may trigger.

[0046] d. Provides interpretability: Relationships and entities in a knowledge graph can help explain the model's reasoning process, making diagnostic results more transparent and easier to understand. Users can trace the reasoning path and understand the logic behind each step.

[0047] Through the above steps, a top-down approach was used to construct a fault knowledge graph for steel production lines. This fault knowledge graph can better reflect the actual fault domain knowledge of the production lines, providing a stronger foundation for subsequent multi-agent reasoning models.

[0048] S3. Construct a fault knowledge graph reasoning model based on multi-agent systems.

[0049] The multi-agent fault knowledge graph reasoning model (TA-KGR) consists of a fact extraction (FE) agent, a relation selection (RS) agent, and an entity selection (ES) agent. The relation selection (RS) agent is responsible for selecting appropriate relations during reasoning. It selects a relation based on the current state (including the current node and its relations) and uses it along with neighboring nodes as the next step. The entity selection (ES) agent is responsible for selecting the next entity during reasoning. Based on the relation selected by the RS agent and the current state, it determines the next entity node and updates the current state. The fact extraction (FE) agent dynamically extracts and generates fact triples from an external corpus to enrich the fault knowledge graph. The introduction of the FE agent addresses the sparsity and incompleteness issues of the knowledge graph. The definitions of each agent are as follows:

[0050] A. Relationship Selection Agent

[0051] Define the relation selection agent as a quadruple (S RS A RS ,R RS ,π RS During the training process, the objects have been pre-labeled.

[0052] State: The state at step i Defined as a tuple (ei ,e ifa ,e q ,r q ,e t ), where e i ∈ε is the entity where the relation selection agent currently resides, e ifa e represents the extracted fact. q It is the query entity, r q Indicates the query relation, e t Indicates the query target. Initially, e ifa equals e q The initial state is represented as (e q ,e ifa ,e q ,r q ,e t ), the final state is (e t ,e ifa ,e q ,r q ,e t After an agent takes an action, it will move to the next state.

[0053] Action: Regarding state Action space It is entity e i The set of outgoing edges. To select the most promising relation at each time step, a policy network is used to guide the selection from all available actions. Select an action. Calculate the historical embedding using an LSTM network.

[0054]

[0055] in d is the dimension of relation / entity embedding. Embedding of actions at time step i-1 They are connected together.

[0056] The data is then fed into a feedforward network with a ReLU nonlinear layer. The MLP layer generates the probability distribution of all available relations after the softmax layer.

[0057]

[0058] in and The trainable weights of the policy network are represented. This determines the probability that the relation-selecting agent will take a corresponding action at time step i. According to Sample an action The policy network of relational agents is specifically as follows:

[0059] Reward: R a It is based on feedback regarding the effectiveness of actions and whether a series of actions helps the agent reach the real target entity. To address the problem that the agent cannot reach the answer entity within a finite number of steps, this scheme adds a synthesized "no-answer" action, which leads to a specific entity e. NOANSWER Therefore, this embodiment proposes a three-element reward mechanism: if the agent reaches the target entity e... targ If the agent reaches the wrong entity, it will receive a positive reward; if the agent reaches the wrong entity, it will receive a negative reward. If the agent reaches the entity e with no answer... NOANSWER The agent receives a neutral reward, specifically:

[0060]

[0061] B. Entity Selection Agent

[0062] The entity selection agent is defined as a quadruple (S ES A ES ,R ES ,π ES It is based on the relationship selection agent choosing the relationship r at time step i. i Select an entity.

[0063] State: The state at step i Defined as a tuple (r) i-1 ,e ifa ,e q ,r q ,e t ), where r i-1 ∈R is the final relation. The initial state is represented as (e q ,e ifa ,e q ,r q ,e t ), the final state is (e t ,e ifa ,e q ,r q ,e t If the target entity is reached, then ('STOP', e) s, e t Within the maximum length L, after taking an action, the agent will move to the next state.

[0064] Action: Regarding state Action space matrix It is the final relation r i-1 The set of outgoing edges. Similar to the relation selection agent, the policy network is used to guide actions from all available options. Select an action from there.

[0065]

[0066] in and These are the weights of the policy network. This determines the probability of the action corresponding to time step i. According to Sample an action The historical dependency strategy of the entity intelligent agent is designed as When the agent chooses to take no action at time step i, a special action NO is selected. OP Selected. Therefore,

[0067] Strategy This represents the probability distribution of all possible actions an entity chooses from the agent. In path inference tasks, transitions are deterministic because the nodes to which the environment will transition when the entity chooses an action are known in advance.

[0068] Rewards: The entity that selects the agent shares the same reward as the relationship-selecting agent at each time step.

[0069] C. Fact Extraction Agent

[0070] The fact-selecting agent aims to provide entity e on the fault knowledge graph at time step i. i The most relevant facts, with (e i Relevant facts in the form of r′, e′ are extracted from an external corpus and temporarily added to the fault knowledge graph. This is done to generate sentence-package-level embeddings. The Transformer is used as a sentence encoder to obtain distributed representations. Therefore, the fact-selecting agent plays a crucial role in extending the inference path. A quadruple (S... FE A FE ,R FE ,π FE ) is used to define the fact-selecting agent.

[0071] State: If the relation selects the agent to reach e i The fact-selecting agent will capture relevant sentences from an external corpus and identify entity e. i The most promising outgoing edge. If the entity chooses the agent to reach r i The fact-selecting agent will capture information from an external corpus and (e i,r i Based on this, identify the entity with the most potential, e. i+1 .let Represents the (e) i The sentence package labeled (e′), where e′∈E. The state of the fact-selecting agent is defined as... Where S FE a represents the entire state space, including all entities and reasonable combinations of equivalent sentence packages. tti This indicates GAT embedding.

[0072] Introducing GAT embedding a tti The goal is to help the fact-selecting agent choose the current entity e. i Based on this, we focus on fact triples from sentence packets. The node-level attention mechanism is defined as follows:

[0073]

[0074] Where W represents the linear transformation matrix, N s Represents the external e of the knowledge graph i The number of its neighbors. α ij The attention weights between the i-th and j-th entities are calculated using a single-layer self-attention neural network.

[0075] a ij =LeakyReLU(μ T We i We j ])

[0076] Here, μ represents the learnable weight vector shared by all entities.

[0077] Action: The objective of the fact-selecting agent is to select inference-related triples existing in an external corpus. For example, from... Every fact captured (e i ,r i ,e i+1 We can obtain an action. And the action space of the i-th step is represented as A FE This represents the entire action space, including all facts extracted from an external corpus. The policy network is defined as:

[0078]

[0079] in The learnable weights represent the objective of the fact-selecting agent, which is to predict the relationship r. i Each related sentence package The sentence package with the highest score will be selected. More specifically, the corresponding relation-entity pair in that sentence package will be selected as the next action.

[0080] Reward: When the fact-selecting agent completes fact extraction and infers the correct target, the path is considered effective and positive for the inference process. The fact-selecting agent shares the same reward mechanism as the relation-selecting agent and the entity-selecting agent at each time step.

[0081] The fault knowledge graph constructed in step S2 is closely related to the agents in the reasoning model, and the specific relationships are as follows:

[0082] a. Agent's Input and Environment: The knowledge graph provides a structured environment for the agent to perform reasoning tasks. The agent obtains relevant information and makes reasoning decisions by querying nodes and edges in the knowledge graph.

[0083] b. State Representation: Entities and relationships in the knowledge graph constitute the state representation of the agent. Each state can be viewed as the current position of the agent in the knowledge graph and its surrounding relationships.

[0084] c. Action Space: The action space of an agent is determined by the relationships and nodes in the knowledge graph. An agent can choose to move along a relationship edge to the next node, thereby exploring the knowledge graph.

[0085] d. Reward Mechanism: When an agent performs reasoning within a knowledge graph, it receives rewards based on the path it chooses and the node it ultimately reaches. The relationships within the knowledge graph help define these reward mechanisms. For example, an agent receives a positive reward for finding the target node through the correct reasoning path.

[0086] e. Training and Optimization: During training, the agent continuously learns and optimizes its strategy through interaction with the knowledge graph. The knowledge graph provides rich training data, helping the agent improve its reasoning ability and diagnostic accuracy.

[0087] In summary, fault knowledge graphs play a crucial role in fault diagnosis by integrating data, improving accuracy, supporting complex reasoning, and providing interpretability. Within the reasoning model, knowledge graphs provide agents with the necessary environment, state representation, action space, and reward mechanisms, enabling agents to learn and reason effectively in complex fault diagnosis tasks, thereby achieving efficient and accurate fault diagnosis.

[0088] The process of model data processing is as follows Figure 2 As shown, e q and r q These represent the query entity and query relation, respectively. They are the inputs to the model and are used to represent the initial problem in fault diagnosis. eq and r q The vectors are concatenated to form the input vector, which is then fed into the LSTM (Long Short-Term Memory) neural network of the relation selection agent and the entity selection agent for processing. In the relation selection agent, the LSTM updates the hidden state h based on the current entity and the current relation input. i The policy network of the relation selection agent generates relation selection policies π based on hidden states. RS The probability distribution is calculated using Softmax, and the most likely relationship r is selected. i The state information is updated, and the selected relationship and the current entity are recorded in the history. Similarly, in the entity selection agent, the policy network generates the relationship selection policy π based on the hidden state. ES The probability distribution is calculated using Softmax, and the most likely entity e is selected. i Update the status information and record the selected entity and current relationship in the history.

[0089] Simultaneously, the entity extraction agent extracts fact triples from an external corpus. Specifically, these are encoded and processed using a Transformer and a GAT (Graph Attention Network) to generate useful factual information. This information enriches the knowledge graph, providing more reasoning paths and choices. Specifically, the GAT encodes entities and relations in the knowledge graph, capturing the complex relationships between them; sentence packets transform the fact triples into sentence-like representations for easier processing and analysis; and the Transformer processes the sentence packets to further extract useful information and improve reasoning performance.

[0090] By alternating between relation-selection agents and entity-selection agents, a complete reasoning path is gradually formed through multiple steps of reasoning. Each step selects a relation and entity, forming a reasoning chain, ultimately leading to the most relevant entity or answer. For example, for the question "Why did the winding machine suddenly stop during operation?", we have:

[0091] (1) Input processing: The query entity "winding machine" and the query relationship "running failure" are concatenated and sent to LSTM to initialize the hidden state h0.

[0092] (2) Relationship selection: The RS agent selects the relationship "Device is faulty", updates the status and records it in history.

[0093] (3) Entity selection: The ES agent selects the entity "hydraulic system failure", updates the status and records it in history.

[0094] (4) Fact extraction: The FE agent extracts facts related to hydraulic system failures from external corpora to enrich the knowledge graph.

[0095] (5) Reasoning path: The RS agent and the ES agent work alternately to form a reasoning path and find the cause of the fault "oil leakage" and the specific cause "loose pressure cap bolts".

[0096] Through the above process, the model not only finds the specific cause of the fault, but also forms a complete reasoning path, helping users understand the ins and outs of the fault.

[0097] S4. Train a multi-agent fault knowledge graph-based reasoning model.

[0098] Due to the sparsity and incompleteness of the fault knowledge graph, relation selection agents and entity selection agents may face challenges in finding the correct reasoning path. To address this issue, high-confidence edges are added to the action space from an external corpus, and an adaptive sampling mechanism is used to promote collaboration. During training, the three agents are updated alternately, i.e., one agent is trained several times while the others are frozen, and so on, training multiple agents sequentially.

[0099] Initially, the training process involves a single relation selection agent, trained to select an entity from the trailing entity set using a random sampling strategy at each time step. Subsequently, a fact selection agent and an entity selection agent are trained alternately, using the parameters of one while fixing the other. This alternating strategy leads to an increase in the overall model reward, allowing each agent to maximize its own reward.

[0100] For a relation selection agent, the parameter θ of the relation selection agent... RS After training, the expected reward is maximized as shown below:

[0101]

[0102] For an entity selection agent, the parameter θ of the entity selection agent... Es After training, the goal is to maximize the expected reward as shown below:

[0103]

[0104] Regarding the fact-selecting agent, the parameter θ of the fact-selecting agent... FE After training, the goal is to maximize the expected reward as shown below:

[0105]

[0106] A policy gradient mechanism is employed to train the model to solve the optimization problem. We use the Adam optimizer to update the parameters of the fact-selecting agent, entity-selecting agent, and relation-selecting agent. During inference, a pathfinding method is introduced into the trained model to predict missing facts. A beam search mechanism is used to generate multiple inference paths on the graph and rank them according to the fact-selecting agent's score. The final objective function can be expressed as:

[0107] (0)=(θR)+(θES)+J(θFE)

[0108] S5. Use the trained multi-agent fault knowledge graph reasoning model to perform fault diagnosis of steel production line equipment.

[0109] Acquire data from the steel production line, including equipment operation data (such as sensor data for temperature, pressure, flow, current, and voltage, which describes the current operating status of the equipment), historical fault records (including information such as the types of past faults, causes, solutions, and downtime, which helps the model learn and reason from historical data), maintenance and repair records (including information such as maintenance time, maintenance personnel, tools used, and replaced parts, which helps understand the maintenance status of the equipment), operation logs (log information recorded during equipment operation, including operation steps, operation time, and operators), and environmental data (including data such as ambient temperature, humidity, and noise that may affect equipment operation).

[0110] Based on the aforementioned steel production line data, triples are extracted and input into a pre-trained multi-agent fault knowledge graph reasoning model to obtain fault diagnosis results for steel production line equipment, such as... Figure 3 As shown, the fault diagnosis process based on multi-agent fault knowledge graph reasoning is as follows:

[0111] S501, Initial State and Initialization: At the start of reasoning, the system initializes its state, including the current entities, relations, and historical paths. The Relationship Selection (RS) agent, Entity Selection (ES) agent, and Fact Extraction (FE) agent are ready to perform reasoning.

[0112] S502, Relationship Selection and Entity Selection: The relationship selection agent first selects a relationship based on the current state, which represents the possible connections between the current node and its neighboring nodes; the entity selection agent determines the next entity node based on the relationship selected by the relationship selection agent.

[0113] S503, Fact Extraction: The fact extraction agent dynamically generates fact triples from an external corpus. These triples enrich the knowledge graph, enhancing the accuracy and comprehensiveness of reasoning. In each step of reasoning, the fact extraction agent continuously updates the knowledge graph to ensure sufficient information support during the reasoning process.

[0114] S504, Inference Path Update: Based on the relationship selection agent and the entity selection agent, the system updates the current state and records the inference path. If the entity and relationship in the current state match the final goal, the inference process is completed.

[0115] S505, Rewards and Policy Updates: Calculate rewards based on whether each operation is close to the target entity, update model parameters using reinforcement learning algorithms (policy gradient methods, such as REINFORCE), and optimize inference path selection.

[0116] S506, Reasoning Completed: Combining the reasoning path and reward, determine the final reasoning result, output the reasoning path and final answer, and provide them to the user.

[0117] The diagnostic results output by the model typically include the following formats:

[0118] (1) Fault type: The specific fault type determined by the model, such as "hydraulic system fault" or "motor fault".

[0119] (2) Cause of failure: The model infers the specific cause of the failure, such as "oil leakage" or "low voltage".

[0120] (3) Fault location: The specific location or component where the fault occurs, as determined by the model, such as "winder cylinder" or "motor cooling system".

[0121] (4) Solutions: The model suggests solutions to the problems, such as "replacing the gland bolts" or "cleaning the filter".

[0122] The multi-agent model in this embodiment improves the efficiency and accuracy of fault diagnosis by decomposing the task into multiple sub-tasks, with each agent focusing on solving a specific sub-problem. By simulating interactions and cooperation in complex systems, it can better capture the complex relationships and scenarios in real-world problems, significantly improving the accuracy of fault diagnosis in steel production lines, reducing downtime, and increasing production efficiency.

[0123] To verify the effectiveness of the above method, this embodiment crawled a dataset from a steel production line and web pages, sorted and statistically selected 19 types of relationships and 2571 entities. The training set contained 36500 triples, the validation set contained 9500 triples, and the test set contained 4000 triples. A comparative experiment on fault diagnosis was conducted between the proposed Multi-Agent Fault Knowledge Graph Inference Model (TA-KGR) and other classic models, and MAP was selected as the evaluation index. The goal of fact prediction is to evaluate the authenticity of unknown facts and determine whether they are true or false. Table 1 shows the MAP score achieved by the TA-KGR model method in the fact prediction task, as well as the baseline models, including embedding-based methods (TransE, TransH, TransD) and multi-hop inference methods (Path Ranking Algorithm (PRA), DeepPath, Multi-hop, M-Walk, DacKGR). As shown in Table 1, the TA-KGR model has achieved a significant improvement in the MAP score of the fact prediction task. Therefore, the steel production line fault diagnosis and reliability improvement method based on the multi-agent fault knowledge graph reasoning model (TA-KGR) proposed in this invention has higher accuracy.

[0124] Table 1 Experimental Results

[0125]

[0126] If the above methods are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0127] The above description of the embodiments is provided to enable those skilled in the art to understand and use the invention. It will be apparent to those skilled in the art that various modifications can be made to these embodiments, and the general principles described herein can be applied to other embodiments without inventive effort. Therefore, the present invention is not limited to the above embodiments, and any improvements and modifications made by those skilled in the art based on the disclosure of the present invention without departing from the scope of the invention should be within the protection scope of the present invention.

Claims

1. A fault diagnosis method for steel production lines based on multi-agent systems, characterized in that, Includes the following steps: Acquire data from the steel production line, input it into a trained multi-agent fault knowledge graph reasoning model, and obtain fault diagnosis results for the steel production line equipment. The fault knowledge graph-based reasoning model includes a fact extraction agent, a relation selection agent, and an entity selection agent. The relation selection agent and the entity selection agent are used for collaborative reasoning based on the fault knowledge graph. The fault knowledge graph is constructed using a top-down approach. The fact extraction agent is used to extract and generate fact triples from an external corpus to dynamically update the fault knowledge graph. The fault knowledge graph comprises a top-level ontology, a schema layer, and a data layer, arranged from top to bottom. The specific construction method of the fault knowledge graph is as follows: Define the top-level ontology and schema layer: Determine the top-level ontology for the field of steel production line fault diagnosis, including several key concepts, and then design schemas at the schema layer to represent the relationships between these key concepts; Define ontology constraints: Define the attributes and relationships of each key concept; Establish a schema layer structure: Build a structured relational network and clarify the relationships between entities; Populate the data layer: Obtain fault data from the steel production line, including fault information and equipment status, and add it to the data layer.

2. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 1, characterized in that, The steel production line data includes equipment operation data, historical fault records, maintenance and repair records, operation logs, and environmental data.

3. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 1, characterized in that, After the fact extraction agent extracts fact triples from the external corpus, it processes them through a Transformer encoder and a graph attention network to dynamically update the fault knowledge graph.

4. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 1, characterized in that, In the multi-agent fault knowledge graph reasoning model, each agent adopts a three-element reward mechanism: a positive reward is given if the target entity is reached, a negative reward is given if the wrong entity is reached, and a neutral reward is given if the entity with no answer is reached.

5. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 1, characterized in that, The multi-agent fault knowledge graph reasoning model aims to maximize the expected reward of each agent and uses an alternating training method to update the parameters of each agent.

6. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 1, characterized in that, The relation selection agent and the entity selection agent have the same structure, including a Long Short-Term Memory (LSTM) neural network and a Softmax classifier. The specific process of the relation selection agent and the entity selection agent performing collaborative reasoning based on the fault knowledge graph is as follows: The query entity and query relationship are obtained and concatenated to obtain an input vector. This vector is then input into the relationship selection agent and the entity selection agent, respectively. The input vector is first processed in an LSTM, and then the policy networks of each agent are used to generate relationship selection policies and entity selection policies. Subsequently, the output of the policy network is converted into a probability distribution through Softmax, and the next relationship and the next entity are selected accordingly. Each step of the selected relationship and entity forms a reasoning chain, which is recorded as a historical state. The final reasoning path is formed through multi-step reasoning.

7. The method for fault diagnosis of a steel production line based on multi-agent technology according to claim 6, characterized in that, The generation process of the policy network for each agent is as follows: Based on historical actions and historical embeddings, the embedding of the current time step is calculated using a Long Short-Term Memory (LSTM) neural network. The historical actions include relationships and entities selected in the past. The current time step is embedded into a feedforward network with a ReLU nonlinear layer, and then input into a multilayer perceptron (MLP) with a softmax layer to obtain the probability of the agent taking corresponding actions at different time steps, thus generating a policy network.

8. An electronic device comprising a memory, a processor, and a program stored in the memory, characterized in that, When the processor executes the program, it implements the method as described in any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Fault diagnosis method and device based on mixed knowledge graph reasoning and storage medium

    CN116561302A

  • Multi-hop fault diagnosis question and answer method and device based on knowledge graph reasoning and decision

    CN117909467A

  • Dynamic information extraction with self-organizing evidence construction

    US20050154701A1