Heat distribution pipeline fault prediction method, device and equipment based on digital twinborn model

Through the digital twin model combined with MLP and knowledge graph, thermal pipeline failures are predicted in real time, solving the problem of low efficiency in determining the cause of failure due to many factors, and achieving fast and accurate fault prediction and analysis.

CN119046770AActive Publication Date: 2024-11-29CCCC FIRST HIGHWAY ENG GRP HUAZHONG ENG CO LTD +1

Patent Information

Application Number
CN202411534289.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-31
Publication Date
2024-11-29
Estimated Expiration
2044-10-31

AI Technical Summary

Technical Problem

In thermal pipeline systems, due to the numerous influencing factors, the efficiency of determining the cause of the failure is low. The existing technology requires human investigation one by one, and infrared thermal imaging equipment or remote monitoring systems require manual intervention when a fault occurs, which is not very efficient.

Method used

Using the thermal pipeline fault prediction method based on the digital twin model, by obtaining pipeline attributes, external environment and real-time state parameters in real time, inputting a pre-built multi-layer perceptron (MLP) model and knowledge graph, calculating the risk index, and determining based on the graph model The risk entities and causes high risk.

Benefits of technology

It improves the efficiency of determining the cause of thermal pipeline failure, can quickly output risk prediction results, reduce manual intervention, and improves the accuracy and efficiency of fault prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119046770A_ABST
    Figure CN119046770A_ABST
Patent Text Reader

Abstract

The invention provides a heat distribution pipeline fault prediction method, device and equipment based on a digital twin model. The method comprises the following steps: acquiring pipeline attribute parameters, external environment parameters and real-time state parameters of a heat distribution pipeline in real time, and inputting the acquired different characteristic parameters into a risk index prediction model in a pre-constructed digital twinborn model for prediction processing to obtain a current risk index of the heat distribution pipeline, and if the risk index is higher than a preset risk index threshold, determining at least one risk entity and a risk reason causing a high risk according to a graph model in the digital twin model, and finally outputting a risk prediction result. According to the method, the risk index prediction model can be obtained in a machine learning mode, and the graph model is generated through the multiple entities of the heat distribution pipeline and the entity relation. During risk prediction, the risk entity and the risk reason can be quickly determined based on the related characteristic parameters, the operation is simple, and the efficiency of determining the fault reason of the heat distribution pipeline is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of fault prediction, and in particular to a method, device and equipment for thermal pipeline fault prediction based on a digital twin model. Background Art

[0002] The thermal pipeline system includes a variety of thermal pipelines. Through thermal pipelines, heat media such as steam and hot water can be transported indoors, providing stable thermal energy for industrial, commercial and residential areas, and promoting the normal operation of industrial production, commercial operations and residents' lives.

[0003] During the use of thermal pipelines, there may be a variety of problems that may cause heating problems. For example, control valve failure, loose support, pipe rupture due to thermal expansion and contraction in high or low temperature environments, etc. How to promptly detect possible failures in thermal pipelines is the key to avoiding heat waste.

[0004] In the related technology, a professional maintenance team can use infrared thermal imaging equipment or inspection devices to regularly perform non-destructive testing on thermal pipelines, or a remote monitoring system can be used to understand the status of thermal pipelines in order to detect abnormal conditions. However, in both of the above methods, when a thermal pipeline fails, it is necessary to manually check the thermal pipelines one by one, and since there are many factors that cause the failure of the thermal pipeline, the efficiency of determining the cause of the failure of the thermal pipeline is low. Summary of the invention

[0005] The present application provides a thermal pipeline fault prediction method, device and equipment based on a digital twin model, which is used to solve the problem that there are many influencing factors that cause thermal pipeline failures, resulting in low efficiency in determining the cause of thermal pipeline failures.

[0006] In a first aspect, the present application provides a thermal pipeline fault prediction method based on a digital twin model, comprising: Obtain pipeline attribute parameters, external environment parameters and real-time status parameters of thermal pipelines in real time; Input the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline, and the risk index is used to indicate the possibility of the thermal pipeline currently failing; If the risk index is higher than a preset risk index threshold, determining at least one risk entity and risk cause causing high risk according to the graph model in the digital twin model; Outputting a risk prediction result, wherein the risk prediction result includes the risk index, the at least one risk entity and the risk cause; Among them, the digital twin model includes: the risk index prediction model for calculating the risk index obtained by training the multi-layer perceptron MLP model, and the graph model generated by the knowledge graph constructed based on the various entities of the thermal pipeline and the dependency relationships between the entities.

[0007] In a possible implementation manner, the real-time acquisition of pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline includes: Acquire the pipeline attribute parameters from the archive data of the thermal pipeline stored in the database, wherein the pipeline attribute parameters include the factory time of the thermal pipeline, the pipeline diameter, the pipeline wall thickness, the pipeline material and the pipeline length; Environmental problems and air humidity are acquired in real time by means of a temperature sensor and a humidity sensor arranged in the environment where the thermal pipeline is located, wherein the external environmental parameters include the environmental temperature and the air humidity; By means of a flow meter, a temperature sensor and a pressure sensor arranged on the thermal pipeline, the fluid flow, the fluid temperature and the flow pressure passing through the thermal pipeline are detected and acquired respectively, and the real-time status parameters include the fluid flow, the fluid temperature and the flow pressure.

[0008] In a possible implementation, before inputting the pipeline attribute parameters, the external environment parameters, and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing, the method further includes: Build an initial prediction model based on the MLP model; Among them, ten input nodes are set in the input layer of the initial prediction model for inputting ten parameters corresponding to pipeline properties, external environment and real-time status respectively; The initial prediction model includes: a first hidden layer group for processing pipeline attribute parameters, a second hidden layer group for processing external inertia parameters, and a third hidden layer group for processing real-time state parameters, wherein the number of processing nodes of the first hidden layer group is set to an even multiple of 5, the number of processing nodes of the second hidden layer group is an even multiple of 2, and the number of processing nodes of the third hidden layer group is an even multiple of 3; The initial prediction model also includes a fully connected layer that fuses the outputs of the first hidden layer group, the second hidden layer group, and the third hidden layer group through an attention mechanism.

[0009] In a possible implementation, the method further includes: Collecting and acquiring a historical data set, wherein the historical data set includes attribute parameters of multiple thermal pipelines, and multiple sets of environmental parameters and state parameters continuously collected within a preset time period for each thermal pipeline; each thermal pipeline has at least one failure within the preset time period; According to the data at each moment in the historical data set and the working state of the thermal pipeline within a preset time after the moment, the data at each moment is calibrated respectively to obtain the risk level corresponding to the data at each moment; According to the historical data set and the risk level corresponding to the data at each moment, a training data set is obtained, wherein the training data set includes multiple sets of data corresponding to multiple thermal pipelines, and each set of data corresponding to each thermal pipeline includes attribute parameters, environmental parameters, state parameters at a moment, and the risk level corresponding to the moment; The initial prediction model is trained according to the training data set until a preset loss function converges to obtain the risk index prediction model.

[0010] In a possible implementation, the first hidden layer group uses the leakyRELU function as an activation function; the second hidden layer group uses the Tanh function as an activation function; and the third hidden layer group uses the Sigmoid function as an activation function.

[0011] In a possible implementation, the loss function includes: ; in, Represents the loss value between the predicted value and the actual value. represents the preset first weight value, represents a preset second weight value, represents a preset third weight value, represents the classification result of the first hidden layer group, represents the classification result of the second hidden layer group, Represents the classification results of the third hidden layer group.

[0012] In a possible implementation, before determining at least one risk entity and risk cause causing high risk according to the graphical model in the digital twin model, the method further includes: Acquire multiple entities and entity relationships involved in the thermal pipeline; wherein the multiple entities include multiple structural components, multiple fault types and at least one cause of each fault type, each cause involves at least one structural entity and a parameter range of risk for each structural entity; the entity relationships include: connection relationships between structures, dependency relationships between different fault types, and causal relationships between different causes; According to the multiple entities and the entity relationships, a knowledge graph for the thermal pipeline is constructed, and the graphical model is generated based on the knowledge graph, wherein each node of the fault cause in the knowledge graph includes at least one parameter range for the occurrence of the fault cause, and the input of the graphical model is the actually collected attribute parameters, environmental parameters and state parameters.

[0013] In a possible implementation, determining at least one risk entity and risk cause causing high risk according to the graph model in the digital twin model includes: The pipeline attribute parameters, the external environment parameters and the real-time status parameters are input into the graph model for analysis and processing to obtain the at least one risk entity and the risk cause.

[0014] In a second aspect, the present application provides a thermal pipeline fault prediction device based on a digital twin model, comprising: Data acquisition module, used to obtain pipeline attribute parameters, external environment parameters and real-time status parameters of thermal pipelines in real time; A first processing module is used to input the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline, and the risk index is used to indicate the possibility of the thermal pipeline currently failing; A second processing module, configured to determine at least one risk entity and a risk cause causing a high risk according to a graph model in the digital twin model if the risk index is higher than a preset risk index threshold; An output module, used for outputting a risk prediction result, wherein the risk prediction result includes the risk index, the at least one risk entity and the risk cause; Among them, the digital twin model includes: the risk index prediction model for calculating the risk index obtained by training the multi-layer perceptron MLP model, and the graph model generated by the knowledge graph constructed based on the various entities of the thermal pipeline and the dependency relationships between the entities.

[0015] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and a communication interface; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the thermal pipeline fault prediction method based on the digital twin model as described in any one of the first aspects.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement the thermal pipeline fault prediction method based on the digital twin model as described in any one of the first aspects.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the thermal pipeline fault prediction method based on the digital twin model as described in any one of the first aspects.

[0018] The thermal pipeline fault prediction method, device and equipment based on the digital twin model provided in the present application can obtain the pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline in real time, input them into the risk index prediction model in the pre-constructed digital twin model for prediction processing, obtain the current risk index of the thermal pipeline, compare the current risk index with the preset risk index threshold, and if the risk index is higher than the preset risk index threshold, then at least one risk entity and risk cause causing high risk can be determined according to the graph model in the digital twin model, and the risk prediction result can be output. When predicting the thermal pipeline fault, at least one risk entity and risk cause causing high risk can be determined through the relevant characteristic data of the thermal pipeline and the constructed risk index prediction model and graph model, thereby improving the efficiency of determining the cause of the thermal pipeline fault. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 A schematic diagram of a thermal pipeline failure prediction scenario provided in an embodiment of the present application; Figure 2 A schematic diagram of a flow chart of a first embodiment of a thermal pipeline fault prediction method based on a digital twin model provided in the present application; Figure 3 A schematic diagram of the structure of a thermal pipeline provided in an embodiment of the present application; Figure 4 A schematic diagram of the first embodiment of the diagram model provided in this application; Figure 5 A schematic flow chart of a second embodiment of a thermal pipeline fault prediction method based on a digital twin model provided in this application; Figure 6 A schematic diagram of constructing an initial prediction model based on an MLP model provided in an embodiment of the present application; Figure 7 A schematic diagram of the second embodiment of the graph model provided in this application; Figure 8 A schematic diagram of the structure of a thermal pipeline fault prediction device based on a digital twin model provided in an embodiment of the present application; Fig. 9A schematic diagram of an electronic device embodiment provided in the present application. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0021] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.

[0022] It should be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0023] It should be understood that in the present application, "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatuses.

[0024] It should be understood that in the present application, "plurality" refers to two or more than two. "And / or" is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "Contains A, B and C", "Contains A, B, C" means that A, B, and C are all included, "Contains A, B or C" means that one of A, B, and C is included, and "Contains A, B and / or C" means that any one, any two, or any three of A, B, and C are included.

[0025] It should be understood that in this application, "B corresponding to A", "B corresponding to A", "A corresponds to B" or "B corresponds to A" means that B is associated with A and B can be determined based on A. Determining B based on A does not mean determining B based only on A, but B can also be determined based on A and / or other information. A and B match when the similarity between A and B is greater than or equal to a preset threshold.

[0026] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0027] For ease of understanding, below, combined Figure 1 , the application scenarios to which the embodiments of the present application are applicable are described.

[0028] Figure 1 This is a schematic diagram of a thermal pipeline failure prediction scenario provided in an embodiment of the present application. Figure 1 The thermal pipeline system may include multiple thermal pipelines. For example, the thermal pipeline system may include thermal pipeline 1, thermal pipeline 2, ...

[0029] For any thermal pipeline, multiple parameters of the thermal pipeline can be determined and input into the digital twin model. The multiple parameters can be processed by the digital twin model to predict the risk prediction result corresponding to the thermal pipeline.

[0030] For example, for thermal pipeline 1, assuming that the three parameters of thermal pipeline 1 can be determined as follows: pipeline diameter is 1m, current pipeline ambient temperature is 5°C, and steam pressure is 0.2MPa, then the three parameters can be input into the digital twin model, and the three parameters can be processed by the digital twin model to obtain the risk prediction result 1 corresponding to the thermal pipeline 1. The risk prediction result 1 can be "6", indicating that the risk of failure of the thermal pipeline 1 is high.

[0031] In the related technology, a professional maintenance team uses infrared thermal imaging equipment or inspection devices to regularly perform non-destructive testing on thermal pipelines, or uses a remote monitoring system to understand the status of thermal pipelines in order to detect abnormal conditions. However, in both of the above methods, when a thermal pipeline fails, it is necessary to manually check the thermal pipelines one by one, and since there are many factors that cause the failure of the thermal pipeline, the efficiency of determining the cause of the failure of the thermal pipeline is low.

[0032] In the process of determining the cause of the failure of the thermal pipeline, the inventor discovered that multiple parameters of the thermal pipeline can be obtained in real time through sensors, flow meters, and thermal pipeline archives stored in the database. By constructing a digital twin model, the multiple parameters obtained can be input into the digital twin model for prediction to obtain the current risk index of the thermal pipeline. Through the comparison result that the current risk index is higher than the preset risk index threshold, the risk prediction result is output from the digital twin model. Among them, the prediction result includes a risk index, at least one risk entity and a risk cause. Furthermore, maintenance personnel can determine the cause of the failure of the thermal pipeline based on the risk prediction result. Based on this, the inventor proposes a thermal pipeline failure prediction method, device and equipment based on a digital twin model, which can improve the efficiency of determining the cause of the thermal pipeline failure.

[0033] The thermal pipeline fault prediction method based on the digital twin model provided in this application is illustrated by several specific embodiments below.

[0034] Figure 2 This is a flow chart of the first embodiment of the thermal pipeline fault prediction method based on the digital twin model provided in this application. Figure 2 The method is applied in an electronic device and specifically comprises the following steps: S101: Obtain pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline in real time.

[0035] During the real-time operation of the thermal pipeline, the electronic device can connect to the database to obtain the pipeline attribute parameters from the database; obtain the external environment parameters in real time through the measuring equipment set in the environment where the thermal pipeline is located; and obtain the real-time status parameters in real time through the measuring equipment set on the thermal pipeline.

[0036] Optionally, after obtaining the pipeline attribute parameters, the relevant pipeline attribute parameters can be archived and saved to the database after the design and construction of the thermal pipeline system is completed, so as to facilitate the maintenance and management of the thermal pipeline. When the pipeline attribute parameters are needed, the database can be connected to obtain the pipeline attribute parameters from the archive data of the thermal pipeline stored in the database. Among them, the pipeline attribute parameters include the factory time of the thermal pipeline, the pipeline diameter, the pipeline wall thickness, the pipeline material and the pipeline length.

[0037] Optionally, external environmental parameters can be obtained by using a temperature sensor set in the environment where the thermal pipeline is located to obtain the ambient temperature in real time, and by using a humidity sensor set in the environment where the thermal pipeline is located to obtain the air humidity in real time, so as to timely monitor the changes in ambient temperature and humidity and find abnormal operation of the thermal pipeline. Among them, the external environmental parameters include ambient temperature and air humidity.

[0038] Optionally, to obtain real-time status parameters, the flow rate of the fluid passing through the thermal pipeline can be detected by a flow meter set on the thermal pipeline, the temperature of the fluid passing through the thermal pipeline can be detected by a temperature sensor set on the thermal pipeline, and the flow pressure of the fluid passing through the thermal pipeline can be detected by a pressure sensor set on the thermal pipeline, so as to achieve comprehensive monitoring of the thermal pipeline, improve the operation efficiency of the thermal pipeline, and reduce energy consumption. Among them, the real-time status parameters include the flow rate of the fluid, the fluid temperature, and the flow pressure.

[0039] For example, during the real-time operation of the thermal pipeline, the electronic device can be connected to the database, and obtain from the database that the factory time of the thermal pipeline 1 is 2000.5.1, the diameter is 200mm, the wall thickness is 6mm, the material is carbon steel, and the length is 20m; the ambient temperature is 5°C obtained by the temperature sensor set in the environment where the thermal pipeline 1 is located, and the ambient humidity is 10g / m³ obtained by the humidity sensor set in the environment where the thermal pipeline 1 is located; the fluid flow rate through the thermal pipeline is 0.2m³ / s detected by the flow meter set on the thermal pipeline 1, the fluid temperature through the thermal pipeline is 150°C detected by the temperature sensor set on the thermal pipeline 1, and the flow pressure through the thermal pipeline is 0.3MPa detected by the pressure sensor set on the thermal pipeline 1.

[0040] S102: Input the pipeline attribute parameters, external environment parameters and real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline.

[0041] When predicting the risk index of a thermal pipeline, the pipeline attribute parameters, external environment parameters, and real-time status parameters can be input into the risk index prediction model in the pre-built digital twin model for prediction processing. Through model training and learning, it can identify potential risk factors and obtain the corresponding risk index. Among them, the risk index is used to indicate the probability of a thermal pipeline failure. The risk index prediction model in this scheme is trained based on the Multi-Layer Perceptron (MLP) model. The input layer of the model can set multiple nodes to input data of different dimensions of the thermal pipeline. In order to improve the expression ability of the model and improve the generalization ability of the model and reduce the complexity of parameter calculation, the hidden layer can be divided into multiple hidden layer groups. Each hidden layer group can share a part of the data, which helps to reduce the computational burden of the model and improve the efficiency of training and prediction. At the same time, multiple hidden layer groups can help the model better generalize to unseen data. Each group can focus on learning different types of data features, processing data from different regions, and more effectively capture local patterns and signs in the data set, thereby improving the model's adaptability to different data distributions and reducing overfitting risks. In this solution, three hidden layer groups can be preferably selected to process data of different dimensions of the thermal pipeline input by multiple input nodes of the input layer. During the entire model training process, the outputs of multiple hidden layer groups need to be fused using an attention mechanism to obtain the current risk index of the thermal pipeline.

[0042] Optionally, since the pipe materials in the pipe attribute parameters are mostly text records, a text mapping method can be used to assign a unique digital identifier to each pipe material. For example, the material carbon steel can be mapped to number 1, the material stainless steel can be mapped to number 2, the alloy steel can be mapped to number 3, the material high-density polyethylene can be mapped to number 4, and so on.

[0043] The digital twin model is a technology that combines a physical system or process in the real world with its digital simulation. Based on sensor data, physical models and machine learning algorithms, it can monitor, predict and optimize the performance of the actual system in real time. The digital twin model includes: a risk index prediction model trained based on a multi-layer perceptron model for calculating the risk index, and a graph model generated by a knowledge graph based on the entities of the thermal pipeline and the dependencies between the entities.

[0044] In an optional implementation, the risk index may be defined as multiple levels. For example, the risk index may be divided into 6 levels, corresponding to 1, 2, ..., 6 respectively. The 6 levels of the risk index and the probability of failure may be shown in Table 1: Table 1 Risk Index Possibility of failure Remark 1 Very low No obvious safety risks 2 Low There are some potential risk factors 3 medium There are some anomalies 4 Higher There may be some serious problems or risk factors 5 high There is a serious risk or emergency 6 Very high There may be severe structural damage, leaks or an emergency situation

[0045] For example, when predicting the risk index of a thermal pipeline, the factory date of thermal pipeline 1, 2000.5.1, diameter 200mm, wall thickness 6mm, material carbon steel, length 20m, ambient temperature 5℃, ambient humidity 10g / m³, fluid flow 0.2m³ / s, fluid temperature 150℃, flow pressure 0.3MPa can be input into the risk index prediction model in the pre-built digital twin model for prediction processing, and the current risk index of the thermal pipeline is 4.

[0046] S103. If the risk index is higher than a preset risk index threshold, determine at least one risk entity and risk cause causing the high risk according to the graph model in the digital twin model.

[0047] In order to better ensure the safe and reliable operation of the system and equipment and realize the refined management of the thermal pipeline fault prediction results, the preset risk index threshold can be compared with the risk index obtained by the risk index prediction model. When the risk index is higher than the preset risk index threshold, at least one risk entity and risk cause causing high risk can be determined according to the graph model in the digital twin model. The graph model in this scheme is a visual data structure that can intuitively represent the relationship and structure between various entities and can be used for tasks such as data analysis, risk management, and image recognition. Specifically, multiple entities and entity relationships involved in the thermal pipeline can be obtained, and a knowledge graph for the thermal pipeline can be constructed based on the multiple entities and entity relationships, and a graph model can be generated based on the knowledge graph.

[0048] Optionally, the graph model in the present application allows for the continuous addition of new entities, relationships, and attributes, thereby maintaining its scalability and flexibility and being able to adapt to changing knowledge and needs.

[0049] In another alternative, knowledge bases, semantic networks, and vector space models or different combinations thereof can be used to represent the relationships and attributes between entities. Data of different dimensions can be integrated, scattered knowledge points can be connected, and a unified knowledge structure can be formed to achieve semantic understanding of data of different dimensions in the input layer, discover the laws, trends, and associations hidden in the data, and thus provide strong support for thermal pipeline fault prediction.

[0050] Figure 3 This is a schematic diagram of the structure of a thermal pipeline provided in an embodiment of the present application. Figure 3, the pipe body of the thermal pipe 1 can be installed with components such as a control valve, a support, a flow meter, a temperature sensor, and a pressure sensor, and a filter can be set in the pipe body. The end of the pipe body can be connected to the thermal pipe 2 through a flange, a pressure plate, a gasket, and a connecting bolt. Among them, the flow meter, temperature sensor, and pressure sensor on the thermal pipe 1 and the thermal pipe 2 are used to obtain the real-time state parameters of the thermal pipe. In addition, a temperature sensor and a humidity sensor are set in the environment where the thermal pipe is located to obtain external environmental parameters.

[0051] Figure 4 This is a schematic diagram of the first embodiment of the graph model provided in this application. Figure 4 The graph model includes multiple entities and entity relationships. The multiple entities include multiple structural components, multiple fault types and at least one cause of each fault type. Each cause involves at least one structural entity and a parameter range for each structural entity to have a risk. The entity relationship includes: the connection relationship between entities, the dependency relationship between different fault types, and the causal relationship between different causes.

[0052] Specifically, the multiple entities include multiple structural components. For example, the multiple structural components may be a control valve, a filter, a heat-insulating material, a support, a pipe body, a flow meter, a temperature sensor, a pressure sensor, and a flange.

[0053] Specifically, there are connection relationships between the structural components, for example, the pipe body is connected to the filter, the pipe body is connected to the support, etc., which are illustrated by dashed line connections in the figure.

[0054] Specifically, the multiple entities include multiple fault types. For example, the multiple fault types may be failure, breakage, looseness, corrosion, leakage, and deformation.

[0055] Specifically, the multiple entities include at least one cause of each fault type. For example, the cause of control valve failure is flow pressure ≥ 0.6MPa; the cause of filter damage is fluid flow ≥ 0.4m³ / s; the cause of nut failure is fluid temperature ≥ 350℃, etc.

[0056] Specifically, each cause involves at least one structural entity and a parameter range for each structural entity to have a risk. For example, the structural entity involved in the failure cause may be a connecting bolt and a parameter range for the connecting bolt to fail is: fluid temperature ≥ 350°C; it may also be a control valve and a range for the control valve to fail is flow pressure ≥ 0.6MPa, etc.

[0057] Specifically, the entity relationship includes a connection relationship between entities. For example, the connection relationship between entities may be a filter and a broken connection, or a support and a loose connection.

[0058] Specifically, the entity relationship includes the dependency relationship between different fault types. For example, if the fault type of the filter is damage, and if the fault type of the control valve is failure, the failure of the control valve may cause the water flow to the filter to be too large, and the filter's filtering capacity is limited, and it cannot filter the larger fluid flow in time, which may cause the filter to be damaged. The dependency relationship between the fault types can be: damage depends on failure.

[0059] Specifically, entity relationships include causal relationships between different reasons. For example, if the reason 1 for the control valve failure is that the flow pressure is ≥ 0.6 MPa, and if the reason 2 for the filter damage is that the fluid flow is ≥ 0.4 m³ / s, the control valve failure may cause the water flow to the filter to be too large, and the filter's filtering capacity is limited, and it is unable to filter the larger fluid flow in time, which may cause the filter to be damaged. Therefore, the causal relationship between reason 1 and reason 2 can be: flow pressure ≥ 0.6 MPa leads to fluid flow ≥ 0.4 m³ / s.

[0060] The graphical model provided in this embodiment can capture the complex relationships and dependencies in the thermal pipeline fault prediction problem, and accurately describe the structure and characteristics of the problem by using nodes and edges to represent variables and the associations between them. In addition, it can predict unknown information based on known information, effectively handle uncertainty, and provide an intuitive way to explain and visualize the structure and relationships of the problem. Based on the real-time acquisition of pipeline attribute parameters, external environmental parameters, and real-time status parameters of the thermal pipeline, the prediction results are output from the graphical model. By visualizing the graphical model, the interactions and influences between variables can be better understood, so as to make predictions and decisions.

[0061] For example, when the risk index 4 is higher than the preset risk index threshold 3, it can be determined based on the graph model in the digital twin model that the risk entities causing high risk are the pipe body and damage, and the risk cause is the flow pressure ≥ 0.55 MPa.

[0062] S104. Output risk prediction results.

[0063] After the risk prediction result is obtained, the obtained risk prediction result can be output to the user through the display of the electronic device or the transmission interface, so that the user can perform corresponding physical inspection or maintenance on the thermal pipeline. After determining at least one risk entity and risk cause causing high risk according to the graph model, the risk prediction result can be output. Among them, the risk prediction result includes a risk index, at least one risk entity and a risk cause.

[0064] In another optional scheme, after determining at least one risk entity and risk cause that causes high risk through a graphical model, the risk entity and risk cause can be further analyzed and processed in the electronic device, and based on a plurality of pre-stored processing methods corresponding to the risk entity, the most effective processing method for the risk entity is obtained, and the processing method is attached to the output risk prediction result and output together, thereby instructing relevant maintenance personnel to process the currently predicted risk entity, thereby avoiding the occurrence of failures.

[0065] For example, the output risk prediction results may include: the risk index is 4, the risk entities are pipe body and breakage, and the risk cause is flow pressure ≥ 0.55 MPa.

[0066] The thermal pipeline fault prediction method based on the digital twin model provided in this embodiment can obtain the pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline in real time, input them into the risk index prediction model in the pre-built digital twin model for prediction processing, obtain the current risk index of the thermal pipeline, compare the current risk index with the preset risk index threshold, and if the risk index is higher than the preset risk index threshold, then at least one risk entity and risk cause causing high risk can be determined according to the graph model in the digital twin model, and the risk prediction result can be output. When predicting the thermal pipeline fault, the cause of the thermal pipeline fault can be quickly determined based on the relevant characteristic data of the thermal pipeline, thereby improving the efficiency of determining the cause of the thermal pipeline fault.

[0067] exist Figure 2 Based on the embodiment shown below, combined with Figure 5 , the above-mentioned thermal pipeline fault prediction method based on digital twin model is further explained in detail.

[0068] Figure 5 This is a flow chart of the second embodiment of the thermal pipeline fault prediction method based on the digital twin model provided in this application. Figure 5 , the method comprising: S201. Obtain pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline in real time.

[0069] It should be noted that the specific execution process of step S201 can refer to the specific execution process of step S101, which will not be repeated here.

[0070] S202: construct an initial prediction model based on the MLP model.

[0071] In order to achieve accurate prediction of thermal pipeline failures, an initial prediction model can be built based on the MLP model.

[0072] The MLP model is a feedforward neural network model with multiple hidden layers. It learns the characteristics of input data and makes predictions through nonlinear transformation and back propagation algorithm. It consists of an input layer, several hidden layers and an output layer. Each layer can have multiple neurons, and each connection node can be connected with different weights.

[0073] Optionally, ten input nodes may be set in the input layer of the initial prediction model to input ten parameters corresponding to the pipeline attribute, the external environment, and the real-time status, respectively.

[0074] Optionally, the initial prediction model includes: a first hidden layer group for processing pipeline attribute parameters, a second hidden layer group for processing external environment parameters, and a third hidden layer group for processing real-time status parameters. The number of processing nodes in the first hidden layer group is set to an even multiple of 5, the number of processing nodes in the second hidden layer group is an even multiple of 2, and the number of processing nodes in the third hidden layer group is an even multiple of 3.

[0075] Optionally, the initial prediction model also includes a fully connected layer that fuses the outputs of the first hidden layer group, the second hidden layer group, and the third hidden layer group through an attention mechanism.

[0076] Figure 6 This is a schematic diagram of building an initial prediction model based on the MLP model provided in the embodiment of the present application. Figure 6 ,The initial prediction model can include an input layer, a hidden layer, and a fully connected layer.

[0077] Optionally, the input layer may include 10 input nodes, which are nodes Xa (a is 1, 2, ... 10).

[0078] Optionally, the hidden layer may include a first hidden layer group, a second hidden layer group, and a third hidden layer group. The first hidden layer group may include 10 processing nodes, namely nodes Yb (b is 1, 2, ... 10), and the 10 nodes are connected in series in sequence; the second hidden layer group may include 4 processing nodes, namely nodes Yc (c is 11, 12, 13, 14), and the 4 nodes are connected in series in sequence; the second hidden layer group may include 6 processing nodes, namely nodes Yd (d is 15, 16, ... 20), and the 6 nodes are connected in series in sequence.

[0079] Each connection between the input layer and the hidden layer has a weight, and the weight value can be identified by the combined number of the two nodes. For example, the weight between input node X1 and processing node Y1 can be m11, and the weight between input node X10 and processing node Y20 can be m1020.

[0080] The ten parameters corresponding to the pipeline properties, external environment and real-time status can be input through the 10 input nodes in the input layer, and the data input by the input nodes X1, X2, X3, X4, and X5 can be processed through the first hidden layer group in the hidden layer to obtain the classification result of the first hidden layer group; the data input by the input nodes X6 and X7 can be processed through the second hidden layer group to obtain the classification result of the second hidden layer group; the data input by the input nodes, X9, and X10 can be processed through the third hidden layer group to obtain the classification result of the third hidden layer group.

[0081] Specifically, for the first hidden layer group, the data input by the input nodes X1, X2, X3, X4, and X5 can be calculated through the processing node Y1 to obtain the calculation result 1, and then the calculation result 1 is input to the processing node Y2, and the data input by the input nodes X1, X2, X3, X4, and X5 are calculated again to obtain the calculation result 2, and so on, until the processing node Y10 outputs the calculation result 10, and the calculation result 10 is the classification result of the first hidden layer group.

[0082] Similarly, the connection relationship and calculation process between the processing nodes of the second hidden layer group and the third hidden layer group are similar to those of the first hidden layer group.

[0083] Optionally, the output results of the first hidden layer group, the second hidden layer group, and the third hidden layer group can be input into a fully connected layer. In the fully connected layer, the classification results of the three hidden layer groups can be calculated through an attention mechanism, and rounded to obtain the current risk index of the thermal pipeline.

[0084] The attention mechanism can fuse features at different levels and calculate the calculation result of the fully connected layer. Optionally, the calculation formula of the fully connected layer can be expressed by formula (1): Formula (1); in, represents the first weight value; represents the second weight value; represents the third weight value; represents the classification result of the first hidden layer group; represents the classification result of the second hidden layer group; represents the classification result of the third hidden layer group; Indicates the current risk index of the thermal pipeline.

[0085] For example, if is 5, is 1, is 1, the classification result of the first hidden layer group is 0.2, the classification result of the second hidden layer group is 0.3, the classification result of the third hidden layer group If it is 0.8, the current risk index of the thermal pipeline can be obtained by formula (1): About 2.

[0086] The initial prediction model constructed based on the MLP model provided in this embodiment can adjust the complexity and capacity of the model by increasing the number of hidden layer processing nodes, flexibly adapt to data sets of different scales and complexities, has strong scalability and adaptability, supports parallel computing, and can process large-scale and high-dimensional data sets.

[0087] S203: Collect and obtain a historical data set.

[0088] Optionally, the database pre-stores archive data of the thermal pipeline, the archive data includes pipeline attribute parameters, and the pipeline attribute parameters include the factory time of the thermal pipeline, pipeline diameter, pipeline wall thickness, pipeline material and pipeline length.

[0089] Optionally, at multiple historical moments, the ambient temperature can be collected by a temperature sensor in the environment to obtain multiple historical ambient temperatures; the air humidity can be collected by a humidity sensor in the environment to obtain multiple historical air humidity; the fluid flow rate can be collected by a flow meter on the pipeline to obtain multiple historical fluid flow rates; the fluid temperature can be collected by a temperature sensor on the pipeline to obtain multiple historical fluid temperatures; the flow pressure can be collected by a pressure sensor on the pipeline to obtain multiple historical flow pressures; and multiple historical ambient temperatures and multiple historical air humidity can be used as environmental parameters and stored in a preset database; multiple historical fluid flows, multiple historical fluid temperatures, and multiple historical flow pressures can be used as state parameters and stored in a preset database.

[0090] Optionally, the thermal pipeline may have experienced at least one failure within a preset time period before the current moment, and therefore, the failure of the thermal pipeline may be recorded and stored in a preset database.

[0091] When training the model, the electronic device can obtain a historical data set from a preset database, wherein the historical data set includes attribute parameters of multiple thermal pipelines, multiple sets of environmental parameters and state parameters collected continuously within a preset time period for each thermal pipeline, and at least one failure of each thermal pipeline within the preset time period.

[0092] For example, the electronic device can obtain a historical data set in a preset database. The historical data set includes attribute parameters of two types of thermal pipes, and multiple sets of environmental parameters and state parameters continuously collected during a preset time period of 2006.4.1-2006.10.1 for each thermal pipe, as shown in Table 2: Table 2

[0093] S204. According to the data at each moment in the historical data set and the working status of the thermal pipeline within a preset time after the moment, the data at each moment is calibrated respectively to obtain the risk level corresponding to the data at each moment.

[0094] Optionally, the risk level may be represented by characters A to F, wherein the character F represents the highest risk level, and the character A represents the lowest risk level.

[0095] Optionally, the preset duration can be manually set. For example, the preset duration can be 3 days.

[0096] For example, if the historical data set is as shown in Table 2, multiple groups of environmental parameters and state parameters of the thermal pipeline 1 at multiple times can be determined in the historical data set. The first group of environmental parameters includes an ambient temperature of 5.5°C and an air humidity of 10g / m³; the first group of state parameters includes a fluid flow rate of 0.2m³ / s, a fluid temperature of 150°C, and a flow pressure of 0.1MPa. The first group of environmental parameters and state parameters may be collected at 2006.4.1. 10:00.

[0097] Assuming that the preset time is 3 days, the working status of the thermal pipeline 1 from 2006.4.1. 10:00 to 2006.4.4. 10:00 can be determined. Assuming that the working status is normal, the first group of environmental parameters and state parameters corresponding to 2006.4.1. 10:00 can be calibrated according to the working status, and the risk level corresponding to each data in the first group of environmental parameters and state parameters is determined to be E level.

[0098] S205: Obtain a training data set based on the historical data set and the risk level corresponding to the data at each moment.

[0099] Since each set of environmental parameters and state parameters can be calibrated to obtain the risk level corresponding to each data in each set of environmental parameters and state parameters, a training data set can be obtained based on multiple sets of environmental parameters and state parameters for each thermal pipeline included in the historical data set and the corresponding calibrated risk levels.

[0100] The training data set includes multiple groups of data corresponding to multiple thermal pipelines, and each group of data corresponding to each thermal pipeline includes attribute parameters, environmental parameters, state parameters at a moment and the risk level corresponding to the moment.

[0101] For example, if the historical data set is as shown in Table 2, the training data set may include: the first group of environmental parameters and state parameters, and the risk level corresponding to each data is E; the second group of environmental parameters and state parameters, and the risk level corresponding to each data is D; ...; the 100th group of environmental parameters and state parameters, and the risk level corresponding to each data is D.

[0102] S206. Train the initial prediction model according to the training data set until the preset loss function converges to obtain a risk index prediction model.

[0103] In order to predict thermal pipeline failures, the initial prediction model can be trained using a training data set. Optionally, whether the model training is successful can be determined by whether the loss function converges. When the loss function converges, the model training can be terminated to obtain a risk index prediction model.

[0104] Optionally, the initial prediction model can be trained with a training data set, and the loss value (Loss) can be calculated with a loss function. When the loss value is less than a preset threshold, it means that the loss function has converged, indicating that the initial prediction model has gradually learned the patterns and rules in the data on the training data, and a risk index prediction model can be obtained.

[0105] Optionally, the first hidden layer group uses the leakyRELU function as the activation function, the second hidden layer group uses the Tanh function as the activation function, and the third hidden layer group uses the Sigmoid function as the activation function.

[0106] The leakyRELU function has a low computational cost and can increase nonlinear factors, improve the model's expressiveness, and increase the model's convergence speed. In addition, since the input parameters of the first hidden layer group are attribute parameters that describe the characteristics of the thermal pipeline, and the attribute parameters change in a small range over time, the leakyRELU function can be selected as the activation function of the first hidden layer group to help the model better fit the data distribution.

[0107] Optionally, the leakyRELU function can be expressed by the following formula (2): Formula (2); in, It is a constant, which can be a decimal between 0 and 1; is the classification result of the first hidden layer group, that is, the output result of the last processing node in the first hidden layer group; is the activation value of the first hidden layer group.

[0108] The Tanh function has an S-shaped curve that can improve the nonlinear fitting ability of the model. When the input is large or small, the derivative value of the Tanh function is close to 1, which makes the gradient of the model change more drastically and accelerates the gradient descent. In addition, since the input parameter of the second hidden layer group is the environmental parameter that describes the characteristics of the thermal pipeline, and the ambient temperature has negative values, the Tanh function can be selected as the activation function of the second hidden layer group to enable the model to handle positive and negative inputs.

[0109] Alternatively, the Tanh function can be expressed by the following formula (3): Formula (3); in, is the classification result of the second hidden layer group, that is, the output result of the last processing node in the second hidden layer group. is the activation value of the second hidden layer group.

[0110] The Sigmoid function is a nonlinear function that can introduce nonlinear change capabilities to achieve learning and fitting of input data. Through gradient back propagation, the parameters between model levels can be optimized. In addition, since the input parameters of the third hidden layer group are real-time state parameters, they need to be continuously updated in real time to reflect the current state of the thermal pipeline. There is a correlation between the state parameters and they affect each other. Therefore, the Sigmoid function can be selected as the activation function of the third hidden layer group to handle the complex nonlinear relationship between parameters.

[0111] Alternatively, the Sigmoid function can be expressed by the following formula (4): Formula (4); in, is the classification result of the third hidden layer group, that is, the output result of the last processing node of the third hidden layer group. is the activation value of the third hidden layer group.

[0112] Optionally, the activation function of the three hidden layer groups may also be applied to the entire hidden layer group, and the output value of a certain processing node may be calculated before the input value is fed to the next processing node connected to the processing node.

[0113] Since the above three activation values, i.e., the classification results after the activation function processing, are the risk classification results obtained by processing the data input by the corresponding input node through the first hidden layer group, the second hidden layer group, and the third hidden layer group, the risk classification results can represent the risk that the thermal pipeline may have in a certain aspect, i.e., the corresponding input data; and the fully connected layer only performs weighted calculation on the three classification results to obtain the comprehensive risk index corresponding to the thermal pipeline. Therefore, in order to better characterize the accuracy of the model, the activation values ​​of the first hidden layer group, the second hidden layer group, and the third hidden layer group can be normalized to obtain the normalized classification results, and then the normalized classification results can be calculated through the loss function to obtain the Loss value. When the Loss value is less than the preset threshold, it means that the model converges, and the training of the model can be ended to obtain a successfully trained model. For example, the preset threshold can be 0.05, then when the Loss value is less than 0.05, it means that the model converges.

[0114] Normalization refers to unifying the value ranges of different features to eliminate the dimensional effects between features and help improve the training speed and accuracy of the model.

[0115] Optionally, the loss function can be expressed by the following formula (5): Formula (5); in, Represents the loss value between the predicted value and the actual value. represents the preset first weight value, represents a preset second weight value, represents a preset third weight value, represents the classification result of the first hidden layer group after normalization, represents the classification result of the second hidden layer group after normalization, Represents the classification results of the third hidden layer group after normalization.

[0116] The combination of multiple activation functions provided in this application can provide better nonlinear expression capabilities, improve gradient propagation, and limit the output range. When matched with appropriate loss functions, the performance and training effect of the model can be improved.

[0117] In another alternative, a new loss function can be constructed through the activation functions of each hidden layer group.

[0118] Optionally, the new loss function can be expressed by the following formula (6): L = φ ∗ { m a x [ 0 , m i n ( 1 , a + 1 2 ) ] − 1 } 2 + η ∗ [ ( e b − e − b e b + e − b + 1 2 ) − 1 ] 2 + θ ∗ ( 1 1 + e − c − 1 ) 2 Formula (6); in, Represents the loss value between the predicted value and the actual value. represents the first preset weight parameter, represents a preset second weight parameter, Represents a preset third weight parameter.

[0119] Optional, preset first weight value , the preset second weight value , the preset third weight value , the preset first weight parameter , the preset second weight parameter , and the preset third weight parameter The determination may be made based on expert knowledge and experience.

[0120] The loss function provided by formula (6) is constructed by using the activation functions of the first hidden layer group, the second hidden layer group, and the third hidden layer group. Combining different activation functions can obtain richer data features and increase the nonlinear modeling ability of the model. Each activation function can focus on different data features, thereby better expressing complex data distribution and patterns and improving the model's ability to express data. In addition, through the new loss function, the classification results of the three hidden layer groups can be directly substituted into the loss function without normalizing the classification results. While calculating the loss function, the back propagation of the gradient can be balanced. During the propagation process, the gradient can be propagated back to the previous layer through the activation function to update the weight parameters of the model, so that the loss function can converge better.

[0121] S207: Input the pipeline attribute parameters, external environment parameters and real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline.

[0122] It should be noted that the specific execution process of step S202 can refer to the specific execution process of step S102, which will not be repeated here.

[0123] S208. Acquire multiple entities and entity relationships involved in the thermal pipeline.

[0124] For example, multiple entities and entity relationships involved in a thermal pipeline may be obtained, and the multiple entities and entity relationships may be shown in Table 3: Table 3 Multiple entities Control valve; gasket; failure; leakage; … Structural components Control valve; gasket;…… Fault type Failure; leakage;… reason Flow pressure ≥ 0.6MPa; fluid flow ≥ 0.4m³ / s; … Connections between entities The control valve connection fails; the filter connection is damaged;… Dependencies between different fault types Damage depends on failure; leakage depends on corrosion;… The causal relationship between different causes Flow pressure ≥0.6MPa results in fluid flow ≥0.4m³ / s;…….

[0125] S209. Construct a knowledge graph for thermal pipelines based on multiple entities and entity relationships, and generate a graph model based on the knowledge graph.

[0126] For example, based on the multiple entities and entity relationships in Table 3, a knowledge graph for thermal pipelines is constructed, and based on the knowledge graph, the following can be generated: Figure 4 The graph model shown in the figure. Each node of the fault cause in the knowledge graph includes at least one parameter range of the fault cause, and the input of the graph model is the actually collected attribute parameters, environmental parameters and state parameters.

[0127] S210. If the risk index is higher than a preset risk index threshold, the pipeline attribute parameters, external environment parameters, and real-time status parameters are input into the graph model for analysis and processing to obtain at least one risk entity and risk cause.

[0128] For example, when the risk index 5 is higher than the preset risk index threshold 3, the factory date 2002.5.1, pipeline diameter 200mm, pipeline wall thickness 6mm, pipeline material carbon steel, pipeline length 20m, ambient temperature 5.5℃, ambient humidity 10g / m³, fluid flow 0.2m³ / s, fluid temperature 150℃, and flow pressure 0.57MPa can be input into the risk index prediction model in the pre-built digital twin model for prediction processing, and the entities causing high risk are determined to be filters and breakage, and the risk cause is flow pressure ≥ 0.55MPa.

[0129] S211. Output risk prediction results.

[0130] For example, according to the graph model in the digital twin model, it is determined that the entities causing high risk are filters and damage, and the risk cause is flow pressure ≥ 0.55MPa, and the risk prediction results can be output. Among them, the risk prediction results include: the risk index is 5, the risk entities are filters and damage, and the risk cause is flow pressure ≥ 0.55MPa.

[0131] The thermal pipeline fault prediction method based on the digital twin model provided in this embodiment can build an initial prediction model based on the MLP model, collect and obtain a historical data set, and calibrate the data at each moment according to the data at each moment in the historical data set and the working state of the thermal pipeline within a preset time after the moment, so as to obtain the risk level corresponding to the data at each moment; according to the historical data set and the risk level corresponding to the data at each moment, a training data set is obtained, and the initial prediction model is trained according to the training data set until the preset loss function converges to obtain a risk index prediction model, and the pipeline attribute parameters, external environment parameters and real-time state parameters obtained in real time are input into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline; in addition, multiple entities and entity relationships involved in the thermal pipeline can be obtained, and a knowledge graph for the thermal pipeline can be constructed according to the multiple entities and entity relationships, and a graph model can be generated based on the knowledge graph. If the risk index is higher than the preset risk index threshold, the pipeline attribute parameters, external environment parameters and real-time state parameters are input into the graph model for analysis and processing to obtain at least one risk entity and risk cause, and a risk prediction result is output. When predicting thermal pipeline failures, the cause of the thermal pipeline failure can be determined based on the relevant characteristic data of the thermal pipeline combined with the risk index prediction model and graph model in the digital twin model, thereby improving the efficiency of determining the cause of the thermal pipeline failure.

[0132] In another alternative, due to the complex structure of the piping system, in addition to a variety of thermal pipelines, there are also water treatment equipment connected to the thermal pipelines. For example, water pumps, heat exchangers, booster pumps, cooling towers, and water softeners. Failures may also occur during operation. For example, common failures of water pumps include: impeller damage, pump shaft breakage, pump body leakage, seal corrosion, and safety valve failure; common failures of heat exchangers include: heat exchange tube damage, tube sheet damage, shell leakage, sealing failure, and safety valve failure.

[0133] Therefore, the graphical model can also be used to predict problems that may occur in water treatment equipment. By constructing graphical models of different water treatment equipment, setting relevant characteristic parameters of the water treatment equipment obtained in real time by different data acquisition devices, and inputting the relevant characteristic parameters into the graphical model, the risk entities and risk causes that may occur in the water treatment equipment can be obtained.

[0134] Figure 7 This is a schematic diagram of the second embodiment of the graph model provided in this application. Figure 7, taking the water pump and heat exchanger in the water treatment equipment as an example. The water pump can contain multiple entities, namely: impeller, pump shaft, seal, safety valve, pump body, damage, failure, leakage, breakage, etc.; the heat exchanger can contain multiple entities, namely: heat exchange tube, shell, tube sheet, seal, regulating valve, damage, failure, leakage, etc.

[0135] The parameters in the graph model can be multiple characteristic parameters corresponding to the thermal pipeline. It can also be multiple characteristic parameters corresponding to the water pump, such as: water pump attribute parameters: factory time, water pump material, inlet straightness, outlet diameter, rated power, etc.; external environment parameters: ambient temperature, air humidity, atmospheric pressure, and liquid properties, etc.; real-time status parameters: operating speed, fluid temperature, flow pressure, and head, etc. It can also be multiple characteristic parameters corresponding to the heat exchanger, such as: heat exchanger attribute parameters: factory time, heat exchanger material, heat exchange area, and plate distance, etc.; external environment parameters: ambient temperature, air humidity, atmospheric pressure, and liquid properties, etc.; real-time status parameters: heat exchanger inlet temperature, outlet temperature, liquid level, inlet pressure, and outlet pressure, etc.

[0136] Optionally, the thermal pipeline and the structural components of the water treatment equipment are connected to each other. For example, the pump body of the water pump can be connected to the shell of the heat exchanger, and the heat exchange pipe can be connected to the control valve.

[0137] The graphical model provided in this application can predict the failure of thermal pipelines or water treatment equipment by inputting different parameters, learn to identify various failures through the combination and changes of different parameters, and make targeted predictions for them, providing more comprehensive and accurate failure prediction results, and determining the specific location and cause of possible failures. When the prediction results indicate that a specific device may fail, the relevant maintenance personnel can quickly locate the problem and take appropriate measures to reduce maintenance costs.

[0138] Figure 8 This is a schematic diagram of the structure of a thermal pipeline fault prediction device based on a digital twin model provided in an embodiment of the present application. Figure 8 The thermal pipeline fault prediction device 10 based on the digital twin model includes: The data acquisition module 11 is used to obtain the pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline in real time; The first processing module 12 is used to input the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline, and the risk index is used to indicate the possibility of the thermal pipeline currently failing; A second processing module 13 is used to determine at least one risk entity and risk cause causing high risk according to the graph model in the digital twin model if the risk index is higher than a preset risk index threshold; An output module 14, configured to output a risk prediction result, wherein the risk prediction result includes the risk index, the at least one risk entity and the risk cause; Among them, the digital twin model includes: the risk index prediction model for calculating the risk index obtained by training the multi-layer perceptron MLP model, and the graph model generated by the knowledge graph constructed based on the various entities of the thermal pipeline and the dependency relationships between the entities.

[0139] The thermal pipeline fault prediction device based on the digital twin model provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0140] In a possible implementation manner, the data acquisition module 11 is specifically used for: Acquire the pipeline attribute parameters from the archive data of the thermal pipeline stored in the database, wherein the pipeline attribute parameters include the factory time of the thermal pipeline, the pipeline diameter, the pipeline wall thickness, the pipeline material and the pipeline length; Environmental problems and air humidity are acquired in real time by means of a temperature sensor and a humidity sensor arranged in the environment where the thermal pipeline is located, wherein the external environmental parameters include the environmental temperature and the air humidity; By means of a flow meter, a temperature sensor and a pressure sensor arranged on the thermal pipeline, the fluid flow, the fluid temperature and the flow pressure passing through the thermal pipeline are detected and acquired respectively, and the real-time status parameters include the fluid flow, the fluid temperature and the flow pressure.

[0141] In a possible implementation manner, the first processing module 12 is further configured to: Build an initial prediction model based on the MLP model; Among them, ten input nodes are set in the input layer of the initial prediction model for inputting ten parameters corresponding to pipeline properties, external environment and real-time status respectively; The initial prediction model includes: a first hidden layer group for processing pipeline attribute parameters, a second hidden layer group for processing external inertia parameters, and a third hidden layer group for processing real-time state parameters, wherein the number of processing nodes of the first hidden layer group is set to an even multiple of 5, the number of processing nodes of the second hidden layer group is an even multiple of 2, and the number of processing nodes of the third hidden layer group is an even multiple of 3; The initial prediction model also includes a fully connected layer that fuses the outputs of the first hidden layer group, the second hidden layer group, and the third hidden layer group through an attention mechanism.

[0142] In a possible implementation manner, the data acquisition module 11 is further used for: Collecting and acquiring a historical data set, wherein the historical data set includes attribute parameters of multiple thermal pipelines, and multiple sets of environmental parameters and state parameters continuously collected within a preset time period for each thermal pipeline; each thermal pipeline has at least one failure within the preset time period; According to the data at each moment in the historical data set and the working state of the thermal pipeline within a preset time after the moment, the data at each moment is calibrated respectively to obtain the risk level corresponding to the data at each moment; According to the historical data set and the risk level corresponding to the data at each moment, a training data set is obtained, wherein the training data set includes multiple sets of data corresponding to multiple thermal pipelines, and each set of data corresponding to each thermal pipeline includes attribute parameters, environmental parameters, state parameters at a moment, and the risk level corresponding to the moment; The initial prediction model is trained according to the training data set until a preset loss function converges to obtain the risk index prediction model.

[0143] In a possible implementation, the first hidden layer group uses the leakyRELU function as an activation function; the second hidden layer group uses the Tanh function as an activation function; and the third hidden layer group uses the Sigmoid function as an activation function.

[0144] In a possible implementation, the loss function includes: ; in, Represents the loss value between the predicted value and the actual value. represents the preset first weight value, represents a preset second weight value, represents a preset third weight value, represents the classification result of the first hidden layer group after normalization, represents the classification result of the second hidden layer group after normalization, Represents the classification results of the third hidden layer group after normalization.

[0145] In a possible implementation manner, the second processing module 13 is further used for: Acquire multiple entities and entity relationships involved in the thermal pipeline; wherein the multiple entities include multiple structural components, multiple fault types and at least one cause of each fault type, each cause involves at least one structural entity and a parameter range of risk for each structural entity; the entity relationships include: connection relationships between structures, dependency relationships between different fault types, and causal relationships between different causes; According to the multiple entities and the entity relationships, a knowledge graph for the thermal pipeline is constructed, and the graphical model is generated based on the knowledge graph, wherein each node of the fault cause in the knowledge graph includes at least one parameter range for the occurrence of the fault cause, and the input of the graphical model is the actually collected attribute parameters, environmental parameters and state parameters.

[0146] In a possible implementation manner, the second processing module 13 is specifically configured to: The pipeline attribute parameters, the external environment parameters and the real-time status parameters are input into the graph model for analysis and processing to obtain the at least one risk entity and the risk cause.

[0147] The thermal pipeline fault prediction device based on the digital twin model provided in the embodiment of the present application can execute the technical solution shown in the above method embodiment. Its implementation principle and beneficial effects are similar and will not be repeated here.

[0148] Fig. 9 This is a schematic diagram of an electronic device embodiment provided by this application. Fig. 9 , the electronic device 20 includes: a processor 21, a memory 22 and a communication interface 23; The memory 22 stores computer-executable instructions; The processor 21 executes the computer execution instructions stored in the memory 22, so that the processor 21 executes the thermal pipeline fault prediction method based on the digital twin model as described in the above method embodiment.

[0149] Accordingly, an embodiment of the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement the thermal pipeline fault prediction method based on the digital twin model described in the above method embodiment.

[0150] Accordingly, an embodiment of the present application may also provide a computer program product, including a computer program. When the computer program is executed by a processor, it can implement the thermal pipeline fault prediction method based on the digital twin model described in the above method embodiment.

[0151] In the above-mentioned embodiment of the electronic device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.

[0152] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A thermal pipeline fault prediction method based on a digital twin model, characterized in that: include: Obtain pipeline attribute parameters, external environment parameters and real-time status parameters of thermal pipelines in real time; Input the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline, and the risk index is used to indicate the possibility of the thermal pipeline currently failing; If the risk index is higher than a preset risk index threshold, determining at least one risk entity and risk cause causing high risk according to the graph model in the digital twin model; Outputting a risk prediction result, wherein the risk prediction result includes the risk index, the at least one risk entity and the risk cause; Among them, the digital twin model includes: the risk index prediction model for calculating the risk index obtained by training the multi-layer perceptron MLP model, and the graph model generated by the knowledge graph constructed based on the various entities of the thermal pipeline and the dependency relationships between the entities.

2. The method according to claim 1, characterized in that The real-time acquisition of pipeline attribute parameters, external environment parameters and real-time status parameters of the thermal pipeline includes: Acquire the pipeline attribute parameters from the archive data of the thermal pipeline stored in the database, wherein the pipeline attribute parameters include the factory time of the thermal pipeline, the pipeline diameter, the pipeline wall thickness, the pipeline material and the pipeline length; Environmental problems and air humidity are acquired in real time by means of a temperature sensor and a humidity sensor arranged in the environment where the thermal pipeline is located, wherein the external environmental parameters include the environmental temperature and the air humidity; By means of a flow meter, a temperature sensor and a pressure sensor arranged on the thermal pipeline, the fluid flow, the fluid temperature and the flow pressure passing through the thermal pipeline are detected and acquired respectively, and the real-time status parameters include the fluid flow, the fluid temperature and the flow pressure.

3. The method according to claim 1 or 2, characterized in that: Before inputting the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing, the method further includes: Build an initial prediction model based on the MLP model; Among them, ten input nodes are set in the input layer of the initial prediction model for inputting ten parameters corresponding to pipeline properties, external environment and real-time status respectively; The initial prediction model includes: a first hidden layer group for processing pipeline attribute parameters, a second hidden layer group for processing external inertia parameters, and a third hidden layer group for processing real-time state parameters, wherein the number of processing nodes of the first hidden layer group is set to an even multiple of 5, the number of processing nodes of the second hidden layer group is an even multiple of 2, and the number of processing nodes of the third hidden layer group is an even multiple of 3; The initial prediction model also includes a fully connected layer that fuses the outputs of the first hidden layer group, the second hidden layer group, and the third hidden layer group through an attention mechanism.

4. The method according to claim 3, characterized in that The method further comprises: Collecting and acquiring a historical data set, wherein the historical data set includes attribute parameters of multiple thermal pipelines, and multiple sets of environmental parameters and state parameters continuously collected within a preset time period for each thermal pipeline; each thermal pipeline has at least one failure within the preset time period; According to the data at each moment in the historical data set and the working state of the thermal pipeline within a preset time after the moment, the data at each moment is calibrated respectively to obtain the risk level corresponding to the data at each moment; According to the historical data set and the risk level corresponding to the data at each moment, a training data set is obtained, wherein the training data set includes multiple sets of data corresponding to multiple thermal pipelines, and each set of data corresponding to each thermal pipeline includes attribute parameters, environmental parameters, state parameters at a moment, and the risk level corresponding to the moment; The initial prediction model is trained according to the training data set until a preset loss function converges to obtain the risk index prediction model.

5. The method according to claim 4, characterized in that The first hidden layer group uses the leakyRELU function as the activation function; the second hidden layer group uses the Tanh function as the activation function; and the third hidden layer group uses the Sigmoid function as the activation function.

6. The method according to claim 4 or 5, characterized in that: The loss function includes: ; in, Represents the loss value between the predicted value and the actual value. represents the preset first weight value, represents a preset second weight value, represents a preset third weight value, represents the classification result of the first hidden layer group after normalization, represents the classification result of the second hidden layer group after normalization, Represents the classification results of the third hidden layer group after normalization.

7. The method according to claim 1 or 2, characterized in that: Before determining at least one risk entity and risk cause causing high risk according to the graphical model in the digital twin model, the method further includes: Acquire multiple entities and entity relationships involved in the thermal pipeline; wherein the multiple entities include multiple structural components, multiple fault types and at least one cause of each fault type, each cause involves at least one structural entity and a parameter range of each structural entity that has a risk; the entity relationships include: connection relationships between structures, dependency relationships between different fault types, and causal relationships between different causes; According to the multiple entities and the entity relationships, a knowledge graph for the thermal pipeline is constructed, and the graphical model is generated based on the knowledge graph, wherein each node of the fault cause in the knowledge graph includes at least one parameter range for the occurrence of the fault cause, and the input of the graphical model is the actually collected attribute parameters, environmental parameters and state parameters.

8. The method according to claim 7, characterized in that The determining, according to the graph model in the digital twin model, at least one risk entity and risk cause causing high risk includes: The pipeline attribute parameters, the external environment parameters and the real-time status parameters are input into the graph model for analysis and processing to obtain the at least one risk entity and the risk cause.

9. A thermal pipeline fault prediction device based on a digital twin model, characterized in that: include: Data acquisition module, used to obtain pipeline attribute parameters, external environment parameters and real-time status parameters of thermal pipelines in real time; A first processing module is used to input the pipeline attribute parameters, the external environment parameters and the real-time status parameters into the risk index prediction model in the pre-built digital twin model for prediction processing to obtain the current risk index of the thermal pipeline, and the risk index is used to indicate the possibility of the thermal pipeline currently failing; A second processing module, configured to determine at least one risk entity and a risk cause causing a high risk according to a graph model in the digital twin model if the risk index is higher than a preset risk index threshold; An output module, used for outputting a risk prediction result, wherein the risk prediction result includes the risk index, the at least one risk entity and the risk cause; Among them, the digital twin model includes: the risk index prediction model for calculating the risk index obtained by training the multi-layer perceptron MLP model, and the graph model generated by the knowledge graph constructed based on the various entities of the thermal pipeline and the dependency relationships between the entities.

10. An electronic device, characterized in that: include: processor, memory and communication interface; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the thermal pipeline fault prediction method based on the digital twin model as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Polyester esterification process risk monitoring method and device based on digital twinborn technology

    CN116451995A

  • Smart city intelligent traffic management and control system and method based on 5G

    CN118470991A

  • Battery fault diagnosis method and apparatus

    US20230288490A1

  • Digital twin-based pressure vessel safety evaluation and risk warning method

    WO2023087443A1

Cited By

  • Remote printer monitoring and fault prediction system based on Internet of Things

    CN119645325A

  • A Remote Printer Monitoring and Fault Prediction System Based on the Internet of Things

    CN119645325B

  • Risk evaluation method for heating and heat preservation pipeline system

    CN120744361A

  • Construction method and system of digital twin intelligent pump station knowledge engine

    CN121094082A