Gas pipeline failure risk prediction method and system based on data analysis

By extracting the structure and environmental response vector sequence of the gas pipeline and generating a risk representation vector sequence, dynamic risk assessment of the gas pipeline is realized, which solves the problem of the inability to predict the failure risk of the gas pipeline in real time in the existing technology, and improves the accuracy and accuracy of the assessment. Security.

CN118094259BActive Publication Date: 2024-08-30BEIJING BEIRAN SPECIAL EQUIP INSPECTION & TESTING CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410102599.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-24
Publication Date
2024-08-30
Estimated Expiration
2044-01-24

AI Technical Summary

Technical Problem

Existing gas pipeline failure risk assessment methods cannot dynamically reflect the operating status of the pipeline, and rely on historical data and complex data quality, making it impossible to predict pipeline failure risks in real time, especially when factors such as temperature and pressure change.

Method used

By obtaining multi-dimensional status data of gas pipelines, extracting structural vector sequences and environmental response vector sequences, aggregating them to generate risk characterization vector sequences, searching for risk characterization vector sequences with similar characteristics for cluster division, determining the failure risk level, and realizing dynamic management of gas pipelines. risk assessment.

Benefits of technology

It improves the accuracy and objectivity of gas pipeline risk assessment, can dynamically predict failure risks based on real-time data, and supports the safe and stable operation and maintenance management of gas pipelines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118094259B
    Figure CN118094259B
Patent Text Reader

Abstract

The present application provides a method and system for predicting the failure risk of a gas pipeline based on data analysis. First, the pipeline status data generated by the performance simulation test of multiple gas pipelines to be evaluated is obtained, and the structural vector sequence and the environmental response vector sequence are extracted therefrom. Then, the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated are aggregated to generate a risk characterization vector sequence. In the risk characterization vector sequence, similar risk characterization vector sequences that have similar features to the target risk characterization vector sequence are searched, and the target risk characterization vector sequence and the similar risk characterization vector sequences that have the similar features are clustered to generate a risk characterization vector group. Finally, the failure risk level corresponding to each gas pipeline to be evaluated is determined based on the risk characterization vector group, thereby improving the accuracy of the prediction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method and system for predicting gas pipeline failure risks based on data analysis. Background Art

[0002] Gas pipelines are an important part of the gas supply system, and their operating status directly affects the safety and stability of gas supply. Therefore, predicting the failure risk of gas pipelines is of great significance for preventing serious accidents such as gas leakage and explosion.

[0003] At present, the assessment methods for gas pipeline failure risks mainly include empirical judgment method, physical model method and statistical analysis method. Among them, the empirical judgment method mainly relies on the experience and judgment of experts, which is highly subjective and difficult to handle complex and large-scale pipeline systems. The physical model method requires detailed pipeline parameters and operating conditions, which are often difficult to obtain in actual situations. Although the statistical analysis method can use historical data for risk prediction, it has high requirements on the quality and quantity of data and cannot take into account the impact of environmental factors.

[0004] In addition, most existing risk assessment methods cannot dynamically reflect the operating status of the pipeline and can only provide static risk assessment results. The operating status of the gas pipeline is affected by many factors, such as temperature, pressure, flow rate, etc. Changes in these factors may lead to changes in the failure risk of the pipeline.

[0005] Therefore, how to extract effective risk characterization features based on the real-time operation data of the gas pipeline and dynamically predict the failure risk of the gas pipeline is an important problem facing current technology. Summary of the invention

[0006] In view of this, the purpose of this application is to provide a gas pipeline failure risk prediction method and system based on data analysis, which fully utilizes the correlation between multi-dimensional information and features in pipeline status data, improves the accuracy and objectivity of risk assessment, and provides strong support for the maintenance and management of gas pipelines.

[0007] According to a first aspect of the present application, a method for predicting gas pipeline failure risk based on data analysis is provided, the method comprising:

[0008] Acquire pipeline state data generated by a performance simulation test of a plurality of gas pipelines to be evaluated, and extract a structure vector sequence and an environmental response vector sequence from the pipeline state data of each of the gas pipelines to be evaluated;

[0009] Aggregating the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated respectively to generate a risk characterization vector sequence for each gas pipeline to be evaluated;

[0010] In each of the risk characterization vector sequences of the gas pipelines to be evaluated, a similar risk characterization vector sequence having similar characteristics to the target risk characterization vector sequence is searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence having the similar characteristics are clustered to generate a risk characterization vector group;

[0011] The failure risk level corresponding to each of the gas pipelines to be evaluated is determined based on the risk characterization vector group.

[0012] In a possible implementation manner of the first aspect, the acquiring pipeline status data generated by performing performance simulation tests on multiple gas pipelines to be evaluated includes:

[0013] In the process of performing performance simulation tests on multiple gas pipelines to be evaluated, pipeline test parameters of each of the gas pipelines to be evaluated are recorded to generate pipeline test characteristic data of each of the gas pipelines to be evaluated;

[0014] parsing first structural risk indicator data from pipeline test characteristic data of each of the gas pipelines to be evaluated;

[0015] Acquire the operating environment data of each of the gas pipelines to be evaluated, and parse the second structural risk indicator data from each of the operating environment data;

[0016] Wherein, the pipeline status data includes the pipeline test characteristic data, the first structural risk indicator data and the second structural risk indicator data.

[0017] In a possible implementation manner of the first aspect, extracting a structure vector sequence and an environment response vector sequence from the pipeline state data of each of the gas pipelines to be evaluated includes:

[0018] blending the first structural risk indicator data and the second structural risk indicator data to generate target structural risk indicator data;

[0019] Extracting features from the target structure risk indicator data according to a risk feature extraction network to generate a structure vector sequence;

[0020] The environmental response vector sequence of the pipeline test feature data is extracted according to the environmental response feature extraction network.

[0021] In a possible implementation manner of the first aspect, respectively aggregating the structure vector sequence and the environment response vector sequence corresponding to the same gas pipeline to be evaluated to generate the risk characterization vector sequence of each gas pipeline to be evaluated includes:

[0022] Determine, in the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated, a target structural vector sequence and a target environmental response vector sequence extracted based on the same pipeline test parameter in the gas pipeline to be evaluated;

[0023] The target structure vector sequence and the target environment response vector sequence are aggregated to generate a risk characterization vector sequence corresponding to the pipeline test parameters in the same gas pipeline to be evaluated.

[0024] In a possible implementation manner of the first aspect, searching for a similar risk characterization vector sequence having similar features to a target risk characterization vector sequence in the risk characterization vector sequences of each of the gas pipelines to be evaluated includes: polling the risk characterization vector sequences of each of the gas pipelines to be evaluated to generate a target risk characterization vector sequence;

[0025] Determining characteristic distances between the target risk characterization vector sequence and other risk characterization vector sequences respectively;

[0026] Based on the characteristic distance, similar risk characterization vector sequences having similar characteristics to the target risk characterization vector sequence are determined in the other risk characterization vector sequences.

[0027] In a possible implementation manner of the first aspect, there are multiple statistics of the risk characterization vector group; and determining the failure risk level corresponding to each of the gas pipelines to be evaluated based on the risk characterization vector group includes:

[0028] Determine a target risk characterization vector group for each of the gas pipelines to be evaluated based on the statistics of the risk characterization vector sequence of each of the gas pipelines to be evaluated in the plurality of risk characterization vector groups;

[0029] Performing attention weight allocation in the target risk characterization vector group to generate an attention risk characterization vector sequence, performing risk prediction on the attention risk characterization vector sequence to generate a failure risk level corresponding to the target risk characterization vector group;

[0030] The failure risk level corresponding to the target risk characterization vector group of each of the gas pipelines to be evaluated is used as the failure risk level corresponding to each of the gas pipelines to be evaluated.

[0031] In a possible implementation manner of the first aspect, searching, in each of the risk characterization vector sequences of the gas pipelines to be evaluated, a similar risk characterization vector sequence having similar features to a target risk characterization vector sequence includes:

[0032] Searching for a similar risk characterization vector sequence having similar features to a target risk characterization vector sequence in each of the risk characterization vector sequences of the gas pipelines to be evaluated and the risk characterization vector sequences of the multiple evaluated gas pipelines;

[0033] The step of determining a reference failure risk level corresponding to each target risk characterization vector group of the gas pipelines to be evaluated includes:

[0034] Acquire a risk characterization vector sequence belonging to any one of the assessed gas pipelines in the target risk characterization vector group;

[0035] The failure risk level of any one of the evaluated gas pipelines is used as the failure risk level of the target risk characterization vector group.

[0036] In a possible implementation manner of the first aspect, the structure vector sequence and the environmental response vector sequence are obtained according to a machine learning network model; before the step of obtaining pipeline state data generated by a performance simulation test of a plurality of gas pipelines to be evaluated, the method further includes:

[0037] Acquire state data of each example pipeline generated by a performance simulation test of multiple example gas pipelines;

[0038] Extracting the first structure vector learning sequence and the first environment response vector learning sequence of each of the example pipeline state data according to the initialized machine learning network, and aggregating the first structure vector learning sequence and the first environment response vector learning sequence of each of the example pipeline state data to generate each first risk characterization vector learning sequence;

[0039] In each of the first risk representation vector learning sequences, searching for a similar risk representation vector learning sequence that has similar features to the target risk representation vector learning sequence;

[0040] Determining a first training error parameter based on a first failure risk heat map of the target risk representation vector learning sequence and a first failure risk heat map of the similar risk representation vector learning sequence;

[0041] Determining a second training error parameter based on a first failure risk heat map of the target risk characterization vector learning sequence;

[0042] Based on the first training error parameter and the second training error parameter, the network parameters of the initialized machine learning network are updated to generate the machine learning network model.

[0043] In a possible implementation manner of the first aspect, after acquiring each example pipeline status data generated by performing a performance simulation test on multiple example gas pipelines, the method further includes:

[0044] Performing feature enhancement on the example pipeline state data to generate enhanced pipeline state data of the example pipeline state data;

[0045] Extracting a second risk characterization vector learning sequence of the example pipeline state data and a first enhanced risk characterization vector learning sequence of each enhanced pipeline state data according to the basic model;

[0046] determining a third training error parameter based on a feature distance between a second risk characterization vector learning sequence of the example pipeline state data and each of the first enhanced risk characterization vector learning sequences;

[0047] The parameters of the basic model are updated based on the third training error parameter to generate the initialized machine learning network.

[0048] For example, in a possible implementation of the first aspect, after the step of updating the network parameters of the initialized machine learning network based on the first training error parameter and the second training error parameter to generate the machine learning network model, the method further includes:

[0049] Performing feature enhancement on each of the example pipeline state data to generate a plurality of enhanced pipeline state data for each of the example pipeline state data;

[0050] Extracting a third risk characterization vector learning sequence for each of the example pipeline state data and a second enhanced risk characterization vector learning sequence for each of the enhanced pipeline state data according to the machine learning network model;

[0051] Determining a second failure risk heat map of each of the third risk representation vector learning sequences, and a second failure risk heat map of each of the second enhanced risk representation vector learning sequences;

[0052] Determining fuzzy failure risk prediction data corresponding to each of the second failure risk heat maps based on the threshold parameter value and each of the second failure risk heat maps;

[0053] Polling each of the second failure risk heat maps to generate a target failure risk heat map, determining a first statistic of the fuzzy failure risk prediction data corresponding to the target failure risk heat map, and determining a second statistic of each of the second failure risk heat maps in the fuzzy failure risk prediction data corresponding to the target failure risk heat map;

[0054] determining an update factor of the target failure risk heat map based on the first statistic and the second statistic, and determining a cross entropy of the target failure risk heat map based on the target failure risk heat map and each of the second failure risk heat maps in the fuzzy failure risk prediction data corresponding to the target failure risk heat map;

[0055] Based on the cross entropy and the update factor of each target risk heat map generated by polling, the parameters of the machine learning network model are updated to generate an updated machine learning network model.

[0056] According to the second aspect of the present application, a risk prediction system is provided, which includes a machine-readable storage medium and a processor, wherein the machine-readable storage medium stores machine-executable instructions, and when the processor executes the machine-executable instructions, the risk prediction system implements the aforementioned gas pipeline failure risk prediction method based on data analysis.

[0057] According to a third aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed, the aforementioned gas pipeline failure risk prediction method based on data analysis is implemented.

[0058] According to any one of the above aspects, the technical effect of the present application is:

[0059] By obtaining the pipeline status data generated by the performance simulation test of multiple gas pipelines to be evaluated, and extracting the structure vector sequence and environmental response vector sequence from them, a comprehensive and detailed description of the gas pipeline status is achieved. By aggregating the structure vector sequence and environmental response vector sequence corresponding to the same gas pipeline to be evaluated, the risk characterization vector sequence of each gas pipeline to be evaluated is generated, thereby accurately and efficiently reflecting the risk characteristics of each pipeline. Furthermore, in the risk characterization vector sequence of each gas pipeline to be evaluated, similar risk characterization vector sequences that meet similar characteristics with the target risk characterization vector sequence are searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence that meet similar characteristics are clustered to generate risk characterization vector groups. This process makes full use of the information in the risk characterization vector sequence and realizes in-depth mining and effective clustering of the risks of the gas pipeline to be evaluated. Finally, by determining the failure risk level corresponding to each gas pipeline to be evaluated based on the risk characterization vector group, not only the efficiency and accuracy of risk assessment are improved, but also strong support is provided for the maintenance and management of gas pipelines, which helps to timely discover and prevent potential safety hazards and ensure the safe and stable operation of gas pipelines.

[0060] That is, in the embodiment of the present application, firstly, the pipeline state data generated by the performance simulation test of multiple gas pipelines to be evaluated is obtained, and the structural vector sequence and the environmental response vector sequence are extracted therefrom. Then, the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated are aggregated to generate a risk characterization vector sequence. In the risk characterization vector sequence, similar risk characterization vector sequences that meet similar characteristics with the target risk characterization vector sequence are searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence that meet the similar characteristics are clustered to generate a risk characterization vector group. Finally, the failure risk level corresponding to each gas pipeline to be evaluated is determined based on the risk characterization vector group. In this way, different maintenance strategies can be adopted according to different risk levels, thereby improving the operational safety and stability of the pipeline, and also helping to save resources and improve operational efficiency. In addition, due to the use of structural vectors and environmental response vectors, the state of the pipeline can be more comprehensively reflected and the accuracy of the prediction can be improved. At the same time, through clustering, risks can be graded, making risk management clearer and convenient for decision-making. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0062] Figure 1 A flow chart of a method for predicting gas pipeline failure risk based on data analysis provided in an embodiment of the present application;

[0063] Figure 2 A schematic diagram of the component structure of a risk prediction system for implementing the above-mentioned gas pipeline failure risk prediction method based on data analysis provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0064] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.

[0065] Those skilled in the art will appreciate that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when an element is "connected" or "coupled" to another element, the element may be directly connected or coupled to the other element, or may refer to the element and the other element establishing a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".

[0066] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation mode of the present application will be further described in detail with reference to the accompanying drawings. The technical solution of the embodiment of the present application and the technical effect produced by the technical solution of the present application are explained below by describing several exemplary implementation modes. It should be pointed out that the following implementation modes can refer to, draw lessons from or combine with each other, and the same terms, similar features and similar implementation steps in different implementation modes are not described repeatedly.

[0067] Figure 1The flowchart of the method and system for predicting the failure risk of a gas pipeline based on data analysis provided by the embodiment of the present application is shown. It should be understood that in other embodiments, the order of some steps in the method for predicting the failure risk of a gas pipeline based on data analysis of the present embodiment can be shared with each other according to actual needs, or some steps can be omitted or maintained. The detailed steps of the method for predicting the failure risk of a gas pipeline based on data analysis include:

[0068] Step S110, obtaining pipeline state data generated by a performance simulation test of a plurality of gas pipelines to be evaluated, and extracting a structure vector sequence and an environmental response vector sequence from the pipeline state data of each of the gas pipelines to be evaluated.

[0069] For example, the risk prediction system first accesses multiple performance simulation test platforms for gas pipelines to be evaluated. These test platforms simulate the operating status of gas pipelines under different working conditions and environments, and generate a large amount of pipeline status data. From these data, the risk prediction system extracts the structural vector sequence (describing the physical structural characteristics of the pipeline, such as pipe diameter, wall thickness, material, etc.) and the environmental response vector sequence (describing the response characteristics of the pipeline in different environments, such as deformation and stress distribution under temperature and pressure changes) for each gas pipeline to be evaluated.

[0070] For example, for a specific gas pipeline A, the risk prediction system may extract its structural vector sequence as [pipe diameter 1 meter, wall thickness 10 centimeters, material X], and its environmental response vector sequence as [deformation 0.01 meter at temperature 50°C, stress distribution diagram Y at pressure 1MPa].

[0071] In a more detailed example, performance simulation testing refers to the use of computer models to simulate various operating conditions and environmental conditions of gas pipelines in actual operation to evaluate their performance. This type of test can predict the behavior and performance of pipelines under different conditions without actually building and operating the pipeline. For example, for a newly built gas pipeline, a simulation model can be created on a computer to simulate the deformation and stress distribution of the pipeline under different temperatures and pressures. Through this simulation test, the risks and problems that may exist in the pipeline can be understood before it is actually put into operation.

[0072] The pipeline status data refers to various information about the status of the gas pipeline collected through performance simulation tests or other monitoring methods. These data may include the physical structure information, operating environment information, operating status information, etc. of the pipeline. For example, the pipeline status data may include but is not limited to the following: physical structure information such as the material, diameter, and wall thickness of the pipeline; environmental information such as the temperature, pressure, and flow rate during pipeline operation; and operating status information such as deformation, stress distribution, and corrosion degree of the pipeline under different conditions.

[0073] The structural vector sequence refers to a set of vector sequences that are extracted from the pipeline state data and describe the physical structural characteristics of the pipeline. Each vector can contain multiple parameters or indicators that describe the structural characteristics of the pipeline. For example, for a specific gas pipeline, its structural vector sequence may include the following: [pipe diameter 1 meter, wall thickness 10 centimeters, material X], [pipe diameter 0.9 meters, wall thickness 12 centimeters, material Y], .... Each vector here describes the physical structural characteristics of the pipeline at a specific location or section.

[0074] The environmental response vector sequence refers to a set of vector sequences extracted from the pipeline state data that describe the response characteristics of the pipeline under different environments. Each vector can contain multiple parameters or indicators that describe the environmental response characteristics of the pipeline. For example, for a specific gas pipeline, its environmental response vector sequence may include the following: [deformation 0.01 meters at a temperature of 50°C, stress distribution diagram Y at a pressure of 1MPa], [deformation 0.02 meters at a temperature of 60°C, stress distribution diagram Z at a pressure of 1.2MPa], ... Each vector here describes the response characteristics of the pipeline under a specific environmental condition.

[0075] Step S120: Aggregate the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated, and generate a risk characterization vector sequence for each gas pipeline to be evaluated.

[0076] The risk prediction system will then aggregate the structural vector sequence and environmental response vector sequence of the same gas pipeline to be evaluated. This aggregation process may include steps such as data fusion, feature extraction and dimensionality reduction, with the aim of converting these raw data into a risk representation vector sequence that can directly reflect the risk status of the pipeline.

[0077] Taking gas pipeline A as an example, after aggregation processing, the risk prediction system may generate a risk characterization vector sequence, such as [the value of risk indicator 1, the value of risk indicator 2, ..., the value of risk indicator N]. These risk indicators may be calculated based on the pipeline structure characteristics, environmental response characteristics, and historical failure data.

[0078] The risk characterization vector sequence is a set of new vector sequences generated by aggregating the structural vector sequence and the environmental response vector sequence. This set of risk characterization vector sequences can directly reflect the risk status of the gas pipeline. Each risk characterization vector may contain multiple risk indicators, which are calculated based on the structural characteristics and environmental response characteristics of the pipeline. For example, by aggregating the structural vector and the environmental response vector, a risk characterization vector may be obtained, such as [the value of risk indicator 1, the value of risk indicator 2, ..., the value of risk indicator N]. These risk indicators may be calculated based on multiple factors such as the diameter, wall thickness, material, deformation, stress distribution, etc. of the pipeline, and can directly reflect the risk level of the pipeline.

[0079] In practical applications, the specific form and content of the risk characterization vector sequence may vary depending on the assessment requirements and pipeline characteristics. At the same time, the process of generating the risk characterization vector sequence may require the use of advanced algorithms and technologies such as machine learning and statistical analysis.

[0080] Step S130, searching for similar risk characterization vector sequences that have similar features to the target risk characterization vector sequence in the risk characterization vector sequences of each gas pipeline to be evaluated, and clustering the target risk characterization vector sequence with the similar risk characterization vector sequences that have similar features to generate a risk characterization vector group.

[0081] After obtaining the risk characterization vector sequences of each gas pipeline to be evaluated, the risk prediction system will search for sequences with similar features to the target risk characterization vector sequence in these sequences. The similar features here may be defined based on some distance metric (such as Euclidean distance, cosine similarity, etc.).

[0082] For example, assuming there is a target risk characterization vector sequence [T1, T2, ..., TN], the risk prediction system will find those sequences that are sufficiently similar to [T1, T2, ..., TN] among all the risk characterization vector sequences of the gas pipelines to be evaluated. After finding these similar risk characterization vector sequences, the risk prediction system will cluster them together with the target risk characterization vector sequence to generate several risk characterization vector groups.

[0083] Step S140: determining the failure risk level corresponding to each of the gas pipelines to be evaluated based on the risk characterization vector group.

[0084] Finally, the risk prediction system will determine the failure risk level corresponding to each gas pipeline to be evaluated based on the generated risk characterization vector group. This determination process may include comprehensive analysis of each group, comparison with historical failure data, and auxiliary judgment of the expert system.

[0085] For example, the risk prediction system may find that the pipelines in a certain risk characterization vector group have a high probability of failure in history, so it will mark all the pipelines in the group as high risk. For other groups, the risk prediction system may mark them as medium risk, low risk, etc. according to the specific risk indicator values ​​and distribution of the pipelines in the group.

[0086] Based on the above steps, by obtaining the pipeline status data generated by the performance simulation test of multiple gas pipelines to be evaluated, and extracting the structure vector sequence and the environmental response vector sequence from them, a comprehensive and detailed description of the gas pipeline status is achieved. By aggregating the structure vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated, the risk characterization vector sequence of each gas pipeline to be evaluated is generated, thereby accurately and efficiently reflecting the risk characteristics of each pipeline. Furthermore, in the risk characterization vector sequence of each gas pipeline to be evaluated, similar risk characterization vector sequences that meet similar characteristics with the target risk characterization vector sequence are searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence that meet similar characteristics are clustered to generate risk characterization vector groups. This process makes full use of the information in the risk characterization vector sequence and realizes in-depth mining and effective clustering of the risks of the gas pipeline to be evaluated. Finally, by determining the failure risk level corresponding to each gas pipeline to be evaluated based on the risk characterization vector group, not only the efficiency and accuracy of risk assessment are improved, but also strong support is provided for the maintenance and management of gas pipelines, which helps to timely discover and prevent potential safety hazards and ensure the safe and stable operation of gas pipelines.

[0087] That is, in the embodiment of the present application, firstly, the pipeline state data generated by the performance simulation test of multiple gas pipelines to be evaluated is obtained, and the structural vector sequence and the environmental response vector sequence are extracted therefrom. Then, the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated are aggregated to generate a risk characterization vector sequence. In the risk characterization vector sequence, similar risk characterization vector sequences that meet similar characteristics with the target risk characterization vector sequence are searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence that meet the similar characteristics are clustered to generate a risk characterization vector group. Finally, the failure risk level corresponding to each gas pipeline to be evaluated is determined based on the risk characterization vector group. In this way, different maintenance strategies can be adopted according to different risk levels, thereby improving the operational safety and stability of the pipeline, and also helping to save resources and improve operational efficiency. In addition, due to the use of structural vectors and environmental response vectors, the state of the pipeline can be more comprehensively reflected and the accuracy of the prediction can be improved. At the same time, through clustering, risks can be graded, making risk management clearer and convenient for decision-making.

[0088] In a possible implementation, step S110 may include:

[0089] Step S111 , in the process of performing performance simulation tests on a plurality of gas pipelines to be evaluated, pipeline test parameters of each of the gas pipelines to be evaluated are recorded to generate pipeline test characteristic data of each of the gas pipelines to be evaluated.

[0090] For example, during the performance simulation test phase, the risk prediction system monitors the test process of multiple gas pipelines to be evaluated in real time. The risk prediction system records various parameters of each pipeline in the simulation test, such as pressure changes, temperature changes, flow changes, etc. These parameters reflect the behavior of the pipeline under different working conditions.

[0091] Assume that there are three gas pipelines A, B and C to be evaluated. During the simulation test, the risk prediction system records the deformation data of each pipeline under different pressures, thermal expansion data when the temperature changes, etc. These data are organized into pipeline test characteristic data, such as the deformation of pipeline A under 1MPa pressure is 0.01m, the deformation of pipeline B under the same pressure is 0.02m, and the deformation of pipeline C is 0.015m.

[0092] Step S112, parsing first structural risk indicator data from the pipeline test characteristic data of each of the gas pipelines to be evaluated.

[0093] The risk prediction system will then parse the pipeline test feature data to identify risk indicators directly related to the pipeline structure. These indicators are usually related to the physical properties of the pipeline (such as diameter, wall thickness, material, etc.) and its performance in the test.

[0094] For example, based on the pipeline test feature data, the risk prediction system calculates the structural risk indicators of each pipeline, such as the pipeline's stress concentration factor, fatigue life, etc. For example, the risk prediction system finds that pipeline A has a higher stress concentration factor at a specific pressure, which means that the pipeline may be more prone to risks such as stress corrosion cracking in actual operation.

[0095] Step S113, obtaining the operating environment data of each of the gas pipelines to be evaluated, and parsing the second structural risk indicator data from each of the operating environment data.

[0096] In addition to the test characteristic data of the pipeline itself, the risk prediction system also collects the operating environment data of each gas pipeline to be evaluated. These data include climate conditions, soil characteristics, seismic activities, etc. in the area where the pipeline is located. The risk prediction system will analyze these environmental data to find risk indicators that may affect the safety of the pipeline structure.

[0097] For example, historical earthquake data of the area where Pipeline B is located is collected, and the frequency and intensity of earthquake activities in the area are analyzed. Combined with the material and structural design of Pipeline B, the risk prediction system calculates the structural response indicators of the pipeline under earthquake, such as earthquake resistance and displacement. These indicators reflect the structural safety of Pipeline B in extreme environments such as earthquakes.

[0098] After completing the above steps, the risk prediction system integrates the pipeline test characteristic data, the first structure risk indicator data and the second structure risk indicator data to form complete pipeline status data. These data provide a comprehensive and accurate information basis for subsequent risk assessment.

[0099] Wherein, the pipeline status data includes the pipeline test characteristic data, the first structural risk indicator data and the second structural risk indicator data.

[0100] The final generated pipeline status data includes the test characteristics, structural risk indicators, and environment-related risk indicators of each pipeline under various working and environmental conditions. Based on this data, the risk prediction system can further evaluate the failure risk level of each pipeline and formulate corresponding risk prevention and control measures. For example, for pipeline A, due to its high stress concentration factor, the risk prediction system may recommend strengthening the stress monitoring and anti-corrosion measures of the pipeline; while for pipeline B, considering the frequent seismic activity in its area, the risk prediction system may recommend seismic reinforcement of the pipeline or optimization of its structural design to reduce earthquake risks.

[0101] In a possible implementation, step S110 further includes:

[0102] Step S114: blending the first structural risk indicator data and the second structural risk indicator data to generate target structural risk indicator data.

[0103] For example, the risk prediction system will first integrate the first structural risk indicator data (risk indicators based on the physical characteristics of the pipeline itself) and the second structural risk indicator data (risk indicators based on the pipeline operating environment) obtained by the previous analysis. This process may involve data integration, weight allocation, or algorithm fusion, with the goal of combining the two types of risk indicator data into a more comprehensive risk indicator data set. Exemplarily, the first structural risk indicator (such as stress concentration factor) and the second structural risk indicator (such as structural response under the influence of earthquake) of pipeline A can be integrated. This may include merging the two types of indicators into a new target structural risk indicator through a specific algorithm (such as weighted average), which more comprehensively reflects the structural risk of pipeline A under different conditions.

[0104] Step S115, extracting features from the target structure risk indicator data according to the risk feature extraction network to generate a structure vector sequence.

[0105] Next, the risk prediction system will use the pre-trained risk feature extraction network to extract features from the fused target structure risk indicator data. This network can identify and extract the features most relevant to the target structure risk and encode these features into a structure vector sequence.

[0106] For example, the target structural risk indicator data of pipeline A is processed through the risk feature extraction network. The network identifies key features in the data, such as stress distribution patterns, deformation trends, etc., and encodes these features into a set of structural vector sequences. Each vector contains the structural risk information of pipeline A in a specific aspect.

[0107] Step S116, extracting the environmental response vector sequence of the pipeline test feature data according to the environmental response feature extraction network.

[0108] At the same time, the risk prediction system also uses another pre-trained environmental response feature extraction network to process pipeline test feature data. The purpose of this network is to extract features related to pipeline environmental response and encode these features into an environmental response vector sequence.

[0109] For example, the pipeline test feature data of pipeline A can be processed through the environmental response feature extraction network. The network identifies features related to environmental factors in the data, such as changes in material properties under temperature changes, the effect of humidity on corrosion rate, etc., and encodes these features into a sequence of environmental response vectors. Each vector contains the response information of pipeline A under specific environmental conditions.

[0110] After completing the above steps, the risk prediction system successfully extracted the structural vector sequence and environmental response vector sequence from the pipeline status data of each gas pipeline to be evaluated. These sequences provide structured and quantifiable risk feature information for subsequent risk assessment.

[0111] For example, the structural vector sequence and environmental response vector sequence of pipeline A were finally generated. These sequences contain detailed characteristic information of pipeline A under different structural risks and environmental conditions, providing accurate and comprehensive input data for the subsequent risk assessment model. Based on these data, the risk prediction system can more accurately predict the type and level of risk that pipeline A may face in the future.

[0112] In a possible implementation, step S120 may include:

[0113] Step S121, determining a target structural vector sequence and a target environmental response vector sequence extracted based on the same pipeline test parameter in the gas pipeline to be evaluated, from the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated.

[0114] The risk prediction system will first process the previously extracted structural vector sequences and environmental response vector sequences. For each gas pipeline to be evaluated, the risk prediction system will identify and determine the target structural vector sequence and target environmental response vector sequence extracted based on the same pipeline test parameters in its corresponding structural vector sequence and environmental response vector sequence.

[0115] For example, consider the gas pipeline A to be evaluated, whose structural vector sequence contains multiple vectors extracted based on different pipeline test parameters (such as pressure and temperature). Similarly, its environmental response vector sequence also contains vectors extracted based on these test parameters. In order to generate a risk characterization vector sequence corresponding to a specific test parameter (such as pressure), the risk prediction system selects the target structural vector and target environmental response vector related to pressure from these two sequences.

[0116] Step S122, aggregating the target structure vector sequence and the target environment response vector sequence to generate a risk characterization vector sequence corresponding to the pipeline test parameters in the same gas pipeline to be evaluated.

[0117] After determining the target structure vector sequence and the target environment response vector sequence, the risk prediction system aggregates the two sequences. The aggregation process may include vector concatenation, weighted averaging or other forms of fusion, with the goal of integrating the information in the two vector sequences into a new risk representation vector sequence.

[0118] For example, the pressure-related target structural vector and target environmental response vector of pipeline A are aggregated. This may involve weighted averaging the elements of the two vectors or concatenating the two vectors into a longer vector. The result of the aggregation is a new risk representation vector that contains both the structural risk information and the environmental response information of pipeline A under pressure test.

[0119] After the above steps, the risk prediction system generates a risk characterization vector sequence corresponding to the specific pipeline test parameters for each gas pipeline to be evaluated. These risk characterization vector sequences integrate the structural characteristics and environmental response characteristics of the pipeline, providing a comprehensive and accurate information basis for subsequent risk assessment.

[0120] For example, this embodiment finally generates a risk characterization vector sequence corresponding to pipeline A and pressure test parameters. This sequence contains comprehensive information about the structural risk (such as stress distribution, deformation, etc.) and environmental response (such as material property changes, corrosion rate, etc.) of pipeline A under pressure changes. Based on this risk characterization vector sequence, the risk prediction system can more accurately assess the risks that pipeline A may face in actual operation and formulate corresponding risk prevention and control measures.

[0121] In a possible implementation, step S130 may include:

[0122] Step S131: polling the risk characterization vector sequences of the gas pipelines to be evaluated to generate a target risk characterization vector sequence.

[0123] For example, the risk prediction system will first select the risk characterization vector sequence of each gas pipeline to be evaluated one by one as the target risk characterization vector sequence. This process is a polling process, and the risk prediction system will consider the risk characterization vector sequence of each pipeline in turn.

[0124] Assume that there are three gas pipelines A, B, and C to be evaluated, and each pipeline has its corresponding risk characterization vector sequence. The risk prediction system first selects the risk characterization vector sequence of pipeline A as the target risk characterization vector sequence, and then searches for other sequences similar to it in subsequent steps. After completing the operations related to pipeline A, the risk prediction system will continue to select the risk characterization vector sequences of pipelines B and C as targets and repeat the similarity search process.

[0125] Step S132: determining characteristic distances between the target risk characterization vector sequence and other risk characterization vector sequences respectively.

[0126] After determining the target risk characterization vector sequence, the risk prediction system will calculate the characteristic distance between the sequence and all other risk characterization vector sequences. Characteristic distance is an indicator to measure the similarity between vector sequences, which can be calculated by various distance measurement methods (such as Euclidean distance, cosine similarity, etc.). For example, calculate the characteristic distance between the risk characterization vector sequence of pipeline A and the risk characterization vector sequences of pipelines B and C. This calculation may involve comparing the differences of the elements at each corresponding position in the vector sequence and aggregating these differences into a total distance value. The smaller the distance value, the more similar the two sequences are.

[0127] Step S133: Based on the feature distance, determine similar risk characterization vector sequences that have similar features to the target risk characterization vector sequence from among the other risk characterization vector sequences.

[0128] Based on the calculated feature distance, the risk prediction system determines the sequence that is most similar to the target risk characterization vector sequence among other risk characterization vector sequences. This usually involves comparing the feature distance with a preset threshold, or selecting the first few sequences with the smallest feature distance as similar sequences. For example, the feature distance between the risk characterization vector sequence of pipeline A and the sequences of pipelines B and C can be compared, and it is found that the feature distance between the sequence of pipeline A and the sequence of pipeline B is the smallest. If this distance is less than the preset similarity threshold, the risk prediction system will consider the risk characterization vector sequence of pipeline B to be similar to the sequence of pipeline A and mark it as a similar risk characterization vector sequence.

[0129] After the above steps, the risk prediction system can find other sequences that are most similar to its risk characterization vector sequence for each gas pipeline to be evaluated. These similar sequences provide additional information about the risks that the pipeline may face, helping the system to predict and evaluate risks more accurately.

[0130] It was finally determined that the sequence of risk characterization vectors for pipeline A was similar to that for pipeline B. This means that pipeline A and pipeline B have similar risk characteristics in terms of structure and environmental response. Based on this finding, the risk prediction system can further analyze the common risk points of the two pipelines and formulate corresponding risk prevention and control strategies.

[0131] In a possible implementation manner, the risk characterization vector group has multiple statistics.

[0132] Step S140 may include:

[0133] Step S141: determining a target risk characterization vector group for each of the gas pipelines to be evaluated based on the statistics of the risk characterization vector sequence of each of the gas pipelines to be evaluated in the plurality of risk characterization vector groups.

[0134] For example, the risk prediction system first considers multiple risk characterization vector groups, each of which contains the statistics of the risk characterization vector sequence of each gas pipeline to be evaluated. Based on these statistics, the risk prediction system determines the target risk characterization vector group for each gas pipeline to be evaluated.

[0135] Assume that there are three risk characterization vector groups G1, G2 and G3, each of which contains the mean value, standard deviation and other statistics of the risk characterization vector sequence of different gas pipelines. For the gas pipeline A to be evaluated, the risk prediction system will compare the similarity between A's risk characterization vector sequence and the statistics of each group, and then classify A into the most similar group, such as G1. This group G1 becomes the target risk characterization vector group of pipeline A.

[0136] Step S142, performing attention weight allocation in the target risk characterization vector group, generating an attention risk characterization vector sequence, performing risk prediction on the attention risk characterization vector sequence, and generating a failure risk level corresponding to the target risk characterization vector group.

[0137] After determining the target risk characterization vector group, the risk prediction system will allocate attention weights in the group. This means that the system will assign corresponding weights according to the importance of different risk characterization vectors in the group and generate an attention risk characterization vector sequence. Then, the risk prediction system will perform risk prediction on this sequence to generate the failure risk level corresponding to the target risk characterization vector group.

[0138] In the target risk characterization vector group G1 of pipeline A, the risk prediction system identifies that certain risk characterization vectors (such as those related to corrosion) are particularly important for predicting failure risks. Therefore, when generating the attention risk characterization vector sequence, these vectors are given higher weights. Subsequently, the risk prediction system performs risk prediction based on this weighted sequence and obtains the failure risk level corresponding to group G1 (i.e., pipeline A), such as "high risk".

[0139] Step S143: taking the failure risk level corresponding to the target risk characterization vector group of each of the to-be-assessed gas pipelines as the failure risk level corresponding to each of the to-be-assessed gas pipelines.

[0140] Finally, the risk prediction system will use the failure risk level corresponding to the target risk characterization vector group of each gas pipeline to be evaluated as the failure risk level corresponding to each gas pipeline to be evaluated.

[0141] For example, it has been determined that the failure risk level corresponding to the target risk characterization vector group G1 of pipeline A is "high risk". Therefore, the risk prediction system directly uses this level as the failure risk level of pipeline A. Similarly, the risk prediction system will perform the same operation on other gas pipelines to be evaluated (such as pipelines B, C, etc.) to determine their respective failure risk levels.

[0142] Through the above steps, the risk prediction system can effectively determine the failure risk level of each gas pipeline to be evaluated based on the risk characterization vector group, providing an important reference for the safe operation of the pipeline.

[0143] In a possible implementation, step S130 may further include: searching for a similar risk characterization vector sequence having similar features to the target risk characterization vector sequence in the risk characterization vector sequence of each of the gas pipelines to be evaluated and the risk characterization vector sequences of multiple evaluated gas pipelines.

[0144] Determining the reference failure risk level corresponding to the target risk characterization vector group of each gas pipeline to be evaluated may also include: obtaining a risk characterization vector sequence belonging to any one of the evaluated gas pipelines in the target risk characterization vector group, and using the failure risk level of any one of the evaluated gas pipelines as the failure risk level of the target risk characterization vector group.

[0145] The risk prediction system not only searches for similar sequences in the risk characterization vector sequences of each gas pipeline to be evaluated, but also searches for similar sequences in the risk characterization vector sequences of multiple gas pipelines that have been evaluated. The purpose of this is to expand the search scope and increase the possibility of finding similar sequences.

[0146] For example, suppose that the risk characterization vector sequence of the gas pipeline D to be evaluated is currently being considered. In order to find a sequence similar to D, the risk prediction system will first compare the sequence of D with the sequences of other pipelines to be evaluated (such as E, F, etc.). In addition, the risk prediction system will also access the risk characterization vector sequences of the evaluated gas pipelines (such as G, H, I, etc.) in the database and compare them. By comprehensively considering the data of the pipelines to be evaluated and those that have been evaluated, the risk prediction system can more accurately identify other pipelines with similar risk characteristics to pipeline D.

[0147] After determining the target risk characterization vector groups of each gas pipeline to be evaluated, the risk prediction system will further determine the reference failure risk levels of these groups. This usually involves finding the risk characterization vector sequences belonging to the evaluated gas pipelines in the group and using the failure risk levels of these evaluated pipelines as the reference failure risk levels of the group.

[0148] Assume that the target risk characterization vector group of the gas pipeline J to be evaluated is G4. In group G4, the risk prediction system finds a risk characterization vector sequence belonging to the evaluated gas pipeline K. Since pipeline K has been evaluated and its failure risk level is known (for example, "medium risk"), the risk prediction system will directly use this level as the reference failure risk level of group G4 (that is, pipeline J). In this way, before a detailed evaluation of pipeline J is carried out, its failure risk level can be preliminarily understood based on the reference level of group G4.

[0149] Through this method, the risk prediction system can use existing data to provide a preliminary reference for the failure risk level of the gas pipeline to be evaluated, thereby supporting more efficient risk assessment and decision making.

[0150] In a possible implementation, the structure vector sequence and the environment response vector sequence are obtained based on a machine learning network model. Before step S110, the method further includes:

[0151] Step S101, obtaining state data of each example pipeline generated by performing a performance simulation test on a plurality of example gas pipelines.

[0152] The risk prediction system first obtains the status data of each sample pipeline generated by the performance simulation test of multiple sample gas pipelines. These data include the operating status and performance of the pipeline under various conditions. For example, performance simulation tests can be performed on 10 sample gas pipelines with different designs, materials and operating conditions. These tests simulate various pressures, temperatures, corrosion and other factors that the pipeline may encounter in actual operation. After the test, the risk prediction system collects and organizes the status data of each sample pipeline, including key indicators such as pressure changes, temperature changes, and corrosion rates.

[0153] Step S102, extracting the first structural vector learning sequence and the first environmental response vector learning sequence of each of the example pipeline state data according to the initialized machine learning network, and aggregating the first structural vector learning sequence and the first environmental response vector learning sequence of each of the example pipeline state data to generate each first risk characterization vector learning sequence.

[0154] For example, an initialized machine learning network can be used to process these example pipeline state data. It extracts the first structural vector learning sequence and the first environmental response vector learning sequence of each example pipeline. These vector sequences represent the structural characteristics of the pipeline and the response characteristics to environmental changes, respectively.

[0155] For example, the machine learning network analyzes and learns the sample pipeline status data. In this process, the network automatically extracts the structural features (such as pipeline wall thickness, material type, etc.) and environmental response features (such as the pressure change rate at different temperatures, etc.) of each sample pipeline. These features are encoded into vector sequences for subsequent aggregation and learning.

[0156] Step S103: searching, in each of the first risk representation vector learning sequences, for a similar risk representation vector learning sequence that has similar features to the target risk representation vector learning sequence.

[0157] In this embodiment, the extracted first structure vector learning sequence and the first environment response vector learning sequence are aggregated to generate first risk characterization vector learning sequences. The first risk characterization vector learning sequence integrates the structure and environment response characteristics of the pipeline and can more comprehensively characterize the risk status of the pipeline.

[0158] For example, the structural vector sequence and environmental response vector sequence of each example pipeline can be merged into a risk characterization vector sequence through a specific aggregation algorithm (such as weighted average, concatenation, etc.). This newly generated sequence contains comprehensive information about the pipeline in terms of both structure and environmental response, and can more accurately reflect the risk status of the pipeline.

[0159] Step S104: determining a first training error parameter based on a first failure risk heat map of the target risk representation vector learning sequence and a first failure risk heat map of the similar risk representation vector learning sequence.

[0160] In each first risk characterization vector learning sequence, a similar risk characterization vector learning sequence with similar characteristics to the target risk characterization vector learning sequence is searched. This step is to find a sequence with similar risk characteristics to the target sequence, so as to perform subsequent training error parameter determination.

[0161] For example, a target risk representation vector learning sequence can be set and searched among all generated risk representation vector learning sequences. It uses a specific similarity measurement method (such as cosine similarity, Euclidean distance, etc.) to compare the similarity between each sequence and the target sequence. Finally, the risk prediction system finds several sequences that are most similar to the target sequence as similar risk representation vector learning sequences.

[0162] Step S105: determining a second training error parameter based on the first failure risk heat map of the target risk characterization vector learning sequence.

[0163] Step S106: Based on the first training error parameter and the second training error parameter, update the network parameters of the initialized machine learning network to generate the machine learning network model.

[0164] For example, a first training error parameter is determined based on the first failure risk heat map of the target risk representation vector learning sequence and the first failure risk heat map of the similar risk representation vector learning sequence. At the same time, a second training error parameter is also determined based on the first failure risk heat map of the target risk representation vector learning sequence. These training error parameters are used to measure the prediction performance of the machine learning network.

[0165] That is, failure risk heat maps of the target risk characterization vector learning sequence and similar risk characterization vector learning sequence are generated. These failure risk heat maps intuitively show the failure risk of pipelines in different regions and at different time points. The first training error parameter and the second training error parameter are calculated by comparing the differences between these heat maps. These parameters reflect the accuracy and reliability of the machine learning network in predicting pipeline failure risks.

[0166] Thus, the network parameters of the initialized machine learning network can be updated based on the first training error parameter and the second training error parameter to generate the final machine learning network model. This model can more accurately predict the failure risk of the new pipeline. For example, the calculated training error parameters are used to adjust and optimize the parameter settings of the machine learning network. This adjustment process is an iterative optimization process, and the risk prediction system continuously adjusts the network parameters to minimize the training error and improve the prediction accuracy. After multiple iterations, the risk prediction system generates an optimized machine learning network model. This model can more accurately extract the structural vector sequence and environmental response vector sequence of the new pipeline, and generate a more accurate risk characterization vector sequence and failure risk heat map.

[0167] In a possible implementation manner, after step S101, the method further includes:

[0168] Step A110: perform feature enhancement on the example pipeline state data to generate enhanced pipeline state data of the example pipeline state data.

[0169] The risk prediction system first obtains sample pipeline status data generated by performance simulation tests of multiple sample gas pipelines. These data include pipeline structural information, operating parameters, environmental conditions, etc. In order to improve the diversity of data and the generalization ability of the model, the risk prediction system performs feature enhancement processing on these raw data.

[0170] For example, performance simulation test data of 10 sample gas pipelines with different designs, materials and operating conditions were collected. These data contain key status information such as deformation and stress distribution of pipelines under different pressures and temperatures. In order to increase the diversity of data, the risk prediction system enhances the features of these original data through technical means (such as data perturbation, interpolation, etc.) and generates multiple enhanced pipeline status data for each sample pipeline. These enhanced data simulate various more complex and extreme situations that pipelines may encounter in actual operation.

[0171] Step A120: extracting a second risk characterization vector learning sequence of the example pipeline state data and a first enhanced risk characterization vector learning sequence of each enhanced pipeline state data according to the basic model.

[0172] For example, a pre-set basic model can be used to process the example pipeline state data and the enhanced pipeline state data. The basic model can extract the features of the data and encode them into a vector sequence. The risk prediction system extracts the second risk characterization vector learning sequence of the example pipeline state data and the first enhanced risk characterization vector learning sequence of each enhanced pipeline state data.

[0173] That is, the basic model extracts features from the sample pipeline status data and enhanced pipeline status data. In this process, the model automatically learns and extracts the intrinsic features of the data, such as the structural characteristics, material properties, and operating status of the pipeline, and encodes these features into vector sequences. For each sample pipeline, the risk prediction system extracts a second risk characterization vector learning sequence; for each enhanced pipeline status data, the risk prediction system extracts a first enhanced risk characterization vector learning sequence. These vector sequences can more comprehensively describe the risk status of the pipeline.

[0174] Step A130: determining a third training error parameter based on a characteristic distance between the second risk characterization vector learning sequence of the example pipeline state data and each of the first enhanced risk characterization vector learning sequences.

[0175] This embodiment calculates the characteristic distance between the second risk characterization vector learning sequence of the example pipeline state data and each first enhanced risk characterization vector learning sequence. This characteristic distance measures the similarity or difference between the original data and the enhanced data in the feature space. Based on this characteristic distance, the risk prediction system determines the third training error parameter.

[0176] For example, a specific distance measurement method (such as Euclidean distance, cosine similarity, etc.) can be used to calculate the feature distance between the second risk characterization vector learning sequence and each first enhanced risk characterization vector learning sequence. This distance reflects the similarity or difference between the original data and the enhanced data at the feature level. The risk prediction system calculates the third training error parameter based on this feature distance. This parameter measures the accuracy and stability of the basic model when extracting features, and provides an important basis for the optimization of subsequent models.

[0177] Step A140, updating the parameters of the basic model based on the third training error parameter to generate the initialized machine learning network.

[0178] For example, the parameters of the basic model are updated based on the third training error parameter to optimize the performance of the model. After multiple iterations and optimizations, the basic model gradually evolves into a more complete and accurate model, namely, the initialized machine learning network. That is, the third training error parameter can be used in this embodiment to adjust and optimize the parameter settings of the basic model. This adjustment process is an iterative process, and the risk prediction system minimizes the training error and improves the prediction accuracy of the model by continuously adjusting the model parameters. After multiple iterations, the basic model gradually evolves into an initialized machine learning network with better performance. This network can more accurately extract the features of the pipeline status data and generate a more accurate risk characterization vector sequence. It provides strong support for subsequent pipeline risk prediction.

[0179] For example, in a possible implementation, after step S106, the method further includes:

[0180] Step S1061, performing feature enhancement on each of the example pipeline state data to generate a plurality of enhanced pipeline state data for each of the example pipeline state data.

[0181] Step S1062: extracting a third risk characterization vector learning sequence of each of the example pipeline state data and a second enhanced risk characterization vector learning sequence of each of the enhanced pipeline state data according to the machine learning network model.

[0182] Step S1063: determining a second failure risk heat map of each of the third risk representation vector learning sequences and a second failure risk heat map of each of the second enhanced risk representation vector learning sequences.

[0183] Step S1064: determining fuzzy failure risk prediction data corresponding to each of the second failure risk heat maps based on the threshold parameter value and each of the second failure risk heat maps.

[0184] Step S1065, polling each of the second failure risk heat maps to generate a target failure risk heat map, determining a first statistic of the fuzzy failure risk prediction data corresponding to the target failure risk heat map, and determining a second statistic of each of the second failure risk heat maps in the fuzzy failure risk prediction data corresponding to the target failure risk heat map.

[0185] Step S1066, determining an update factor of the target failure risk heat map based on the first statistic and the second statistic, and determining a cross entropy of the target failure risk heat map based on the target failure risk heat map and each of the second failure risk heat maps in the fuzzy failure risk prediction data corresponding to the target failure risk heat map.

[0186] Step S1067, based on the cross entropy and the update factor of each target risk heat map generated by polling, update the parameters of the machine learning network model to generate an updated machine learning network model.

[0187] During the operation of the risk prediction system, after updating and initializing the machine learning network parameters based on the first training error parameter and the second training error parameter and generating the machine learning network model, the system further processes the pipeline status data of each example to optimize the model performance.

[0188] In this embodiment, various technical means (such as data disturbance, noise addition, interpolation, etc.) can be used to process the collected sample pipeline state data to generate multiple enhanced pipeline state data for each sample pipeline. These enhanced data simulate various more complex and extreme situations that the pipeline may encounter in actual operation, thereby improving the representativeness of the data and the robustness of the model.

[0189] Next, using the generated machine learning network model, the risk prediction system extracts the third risk characterization vector learning sequence of each example pipeline state data and the second enhanced risk characterization vector learning sequence of each enhanced pipeline state data. For example, each example pipeline state data and its enhanced data are input into the machine learning network model, and the model automatically extracts the intrinsic features of the data, such as the structural characteristics, material properties, and operating status of the pipeline, and encodes these features into a vector sequence. For each example pipeline, the system extracts a third risk characterization vector learning sequence; for each enhanced pipeline state data, the system extracts a second enhanced risk characterization vector learning sequence.

[0190] Then, the risk prediction system further determines the second failure risk heat map of each third risk characterization vector learning sequence, and the second failure risk heat map of each second enhanced risk characterization vector learning sequence. For example, specific algorithms and models (such as heat map generation algorithms) can be used to convert the extracted risk characterization vector learning sequences into intuitive and visual failure risk heat maps. These heat maps can clearly show the failure risk size of the pipeline in different areas and at different time points, providing strong support for subsequent risk prediction and management.

[0191] Next, based on the set threshold parameter value and each second failure risk thermogram, the risk prediction system determines the fuzzy failure risk prediction data corresponding to each second failure risk thermogram. For example, a threshold parameter value is set to distinguish different failure risk levels. For each second failure risk thermogram, the system converts it into corresponding fuzzy failure risk prediction data according to the threshold parameter value. These data represent the failure risk level and probability of the pipeline in different areas and at different time points in the form of fuzzy sets.

[0192] Then, the risk prediction system polls each second failure risk heat map to generate a target failure risk heat map, and determines the first statistic of the fuzzy failure risk prediction data corresponding to the target failure risk heat map, and simultaneously determines the second statistic of each second failure risk heat map in the fuzzy failure risk prediction data corresponding to the target failure risk heat map. Based on the first statistic and the second statistic, the system determines the update factor of the target failure risk heat map.

[0193] Thus, one of the second failure risk heat maps is selected as the target failure risk heat map by polling. For this target heat map, the system calculates the first statistics (such as mean, median, etc.) of the corresponding fuzzy failure risk prediction data, and at the same time calculates the second statistics (such as variance, covariance, etc.) of each second failure risk heat map in the fuzzy failure risk prediction data corresponding to the target heat map. Based on these statistics, the system further calculates the update factor of the target failure risk heat map.

[0194] Finally, the risk prediction system determines the cross entropy of the target failure risk heat map based on the target failure risk heat map and each second failure risk heat map in the fuzzy failure risk prediction data corresponding to the target failure risk heat map. For example, the cross entropy between the target failure risk heat map and each second failure risk heat map in the fuzzy failure risk prediction data corresponding to the target failure risk heat map is calculated using the cross entropy calculation formula. Cross entropy is an important indicator to measure the similarity between two probability distributions, and is used here to evaluate the difference and consistency between the target heat map and each second heat map.

[0195] Based on the cross entropy and update factor of each target risk heat map generated by polling, the risk prediction system updates the parameters of the machine learning network model and generates an updated machine learning network model. For example, this embodiment comprehensively considers the cross entropy and update factor of each target risk heat map, and uses a specific optimization algorithm (such as a gradient descent algorithm) to update the parameters of the machine learning network model. After multiple iterations and optimizations, the system generates an updated machine learning network model with better performance. This model can more accurately extract the features of pipeline status data, and generate more accurate risk characterization vector sequences and failure risk heat maps, providing stronger support for subsequent pipeline risk prediction and management.

[0196] In the above embodiment, the machine learning network model can map the input pipeline status data to the risk characterization vector learning sequence. This process can be expressed as:

[0197] (R_i=f_{text{MLN}}(P_i))

[0198] Among them, (P_i) is the (i)th example pipeline state data, (f_{text{MLN}}) is the machine learning network model, and (R_i) is the corresponding risk representation vector learning sequence.

[0199] For enhanced pipeline status data, there are also:

[0200] (R_{i,j}=f_{text{MLN}}(P_{i,j}))

[0201] Among them, (P_{i,j}) is the (j)th augmented data of the (i)th example pipeline, and (R_{i,j}) is the corresponding risk representation vector learning sequence.

[0202] The failure risk heat map can be generated by converting the risk representation vector learning sequence into a two-dimensional image. This process can be expressed as:

[0203] (H_i=g(R_i))

[0204] Where (g) is the function that converts the learned sequence of risk representation vectors into a heat map, and (H_i) is the failure risk heat map of the (i)th example pipeline.

[0205] For enhanced pipeline status data, there are also:

[0206] (H_{i, j}=g(R_{i, j}))

[0207] Fuzzy failure risk prediction data can be generated by comparing the failure risk heat map with the threshold parameters. This process can be expressed as:

[0208] (F_i=h(H_i,T))

[0209] Where (T) is the threshold parameter value, (h) is the function that converts the failure risk heat map into fuzzy failure risk prediction data, and (F_i) is the fuzzy failure risk prediction data of the (i)th example pipeline.

[0210] The first statistic (e.g., mean) and the second statistic (e.g., variance) can be calculated as:

[0211] (mu_i=frac{1}{N}sum_{j=1}^{N}F_{i,j})

[0212] (sigma_i^2=frac{1}{N}sum_{j=1}^{N}(F_{i,j}-mu_i)^2)

[0213] Wherein, (F_{i, j}) is the (j)th fuzzy failure risk prediction data of the (i)th example pipeline, and (N) is the number of fuzzy failure risk prediction data.

[0214] The update factor can be calculated based on statistics, for example:

[0215] (alpha_i=frac{1}{1+exp(-beta(mu_i-gamma))})

[0216] Among them, (beta) and (gamma) are hyperparameters used to control the shape and location of the update factors.

[0217] Cross entropy can be used to measure the difference between the target failure risk heat map and the fuzzy failure risk prediction data. For discrete probability distribution, cross entropy can be calculated as:

[0218] (H(p, q)=-sum_{x}p(x)log q(x))

[0219] In this scenario, (p) can be the probability distribution of the target failure risk heat map, and (q) can be the probability distribution of the fuzzy failure risk prediction data. However, since the heat map is usually continuous, it may be necessary to discretize it or use other methods to calculate the cross entropy.

[0220] The parameters of the machine learning network model can be updated by minimizing the cross entropy and considering the update factor. This process can be expressed as:

[0221] (theta_{text{new}}=theta_{text{old}}-eta sum_{i}alpha_i nabla_{theta}H(p_i, q_i))

[0222] Where (theta) is the parameter of the machine learning network model, (eta) is the learning rate, (alpha_i) is the update factor for the (i)th example pipeline, and (nabla_{theta}H(p_i,q_i)) is the gradient of the cross entropy with respect to the model parameters.

[0223] Figure 2 In an embodiment of the present application, a risk prediction system 100 is provided, including a processor 1001 and a memory 1003 and a program code stored in the memory 1003, and the processor 1001 executes the above program code to implement the steps of a gas pipeline failure risk prediction method based on data analysis.

[0224] Figure 2 The risk prediction system 100 shown includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the risk prediction system 100 may also include a transceiver 1004, which can be used for data interaction between the risk prediction system and other risk prediction systems, such as sending data and / or receiving data. It should be noted that in actual scheduling, the transceiver 1004 is not limited to one, and the structure of the risk prediction system 100 does not constitute a limitation on the embodiments of the present application.

[0225] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.

[0226] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 2 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0227] The memory 1003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to have or store program code and can be read by a computer, without limitation herein.

[0228] The memory 1003 is used to store program codes for executing the embodiments of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the program codes stored in the memory 1003 to implement the steps shown in the above method embodiments.

[0229] The risk prediction system includes, but is not limited to, mobile terminals such as mobile phones, laptop computers, PADs, etc. and fixed terminals such as digital TVs, desktop computers, etc.

[0230] An embodiment of the present application provides a computer-readable storage medium having program code stored thereon. When the program code is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.

[0231] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless there is a clear description in this article, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders based on demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages according to the actual implementation scenario. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. In different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured based on demand, and the embodiment of the present application does not limit this.

[0232] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.

Claims

1. A method for predicting gas pipeline failure risk based on data analysis, characterized in that: The method comprises: Acquire pipeline state data generated by a performance simulation test of a plurality of gas pipelines to be evaluated, and extract a structure vector sequence and an environmental response vector sequence from the pipeline state data of each of the gas pipelines to be evaluated; Aggregating the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated respectively to generate a risk characterization vector sequence for each gas pipeline to be evaluated; In each of the risk characterization vector sequences of the gas pipelines to be evaluated, a similar risk characterization vector sequence having similar characteristics to the target risk characterization vector sequence is searched, and the target risk characterization vector sequence and the similar risk characterization vector sequence having the similar characteristics are clustered to generate a risk characterization vector group; Determining the failure risk level corresponding to each of the gas pipelines to be evaluated based on the risk characterization vector group; The structural vector sequence and the environmental response vector sequence are obtained according to a machine learning network model; before the step of obtaining pipeline state data generated by a performance simulation test of a plurality of gas pipelines to be evaluated, the method further includes: Acquire state data of each example pipeline generated by performing a performance simulation test on multiple example gas pipelines; Extracting the first structure vector learning sequence and the first environment response vector learning sequence of each of the example pipeline state data according to the initialized machine learning network, and aggregating the first structure vector learning sequence and the first environment response vector learning sequence of each of the example pipeline state data to generate each first risk characterization vector learning sequence; In each of the first risk representation vector learning sequences, searching for a similar risk representation vector learning sequence that has similar features to the target risk representation vector learning sequence; Determining a first training error parameter based on a first failure risk heat map of the target risk representation vector learning sequence and a first failure risk heat map of the similar risk representation vector learning sequence; Determining a second training error parameter based on a first failure risk heat map of the target risk characterization vector learning sequence; Based on the first training error parameter and the second training error parameter, the network parameters of the initialized machine learning network are updated to generate the machine learning network model.

2. The method for predicting gas pipeline failure risk based on data analysis according to claim 1 is characterized in that: The step of obtaining pipeline status data generated by a performance simulation test of a plurality of gas pipelines to be evaluated includes: In the process of performing performance simulation tests on multiple gas pipelines to be evaluated, pipeline test parameters of each of the gas pipelines to be evaluated are recorded to generate pipeline test characteristic data of each of the gas pipelines to be evaluated; parsing first structural risk indicator data from pipeline test characteristic data of each of the gas pipelines to be evaluated; Acquire the operating environment data of each of the gas pipelines to be evaluated, and parse the second structural risk indicator data from each of the operating environment data; Wherein, the pipeline status data includes the pipeline test characteristic data, the first structural risk indicator data and the second structural risk indicator data.

3. The method for predicting gas pipeline failure risk based on data analysis according to claim 2 is characterized in that: The step of extracting a structure vector sequence and an environmental response vector sequence from the pipeline state data of each of the gas pipelines to be evaluated comprises: blending the first structural risk indicator data and the second structural risk indicator data to generate target structural risk indicator data; Extracting features from the target structure risk indicator data according to a risk feature extraction network to generate a structure vector sequence; The environmental response vector sequence of the pipeline test feature data is extracted according to the environmental response feature extraction network.

4. The method for predicting gas pipeline failure risk based on data analysis according to claim 1 is characterized in that: The step of respectively aggregating the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated to generate the risk characterization vector sequence of each gas pipeline to be evaluated includes: Determine, in the structural vector sequence and the environmental response vector sequence corresponding to the same gas pipeline to be evaluated, a target structural vector sequence and a target environmental response vector sequence extracted based on the same pipeline test parameter in the gas pipeline to be evaluated; The target structure vector sequence and the target environment response vector sequence are aggregated to generate a risk characterization vector sequence corresponding to the pipeline test parameters in the same gas pipeline to be evaluated.

5. The method for predicting gas pipeline failure risk based on data analysis according to claim 1 is characterized in that: The step of searching, in the risk characterization vector sequences of the gas pipelines to be evaluated, for a similar risk characterization vector sequence that has similar features to the target risk characterization vector sequence comprises: polling the risk characterization vector sequences of the gas pipelines to be evaluated to generate a target risk characterization vector sequence; Determining characteristic distances between the target risk characterization vector sequence and other risk characterization vector sequences respectively; Based on the characteristic distance, similar risk characterization vector sequences having similar characteristics to the target risk characterization vector sequence are determined in the other risk characterization vector sequences.

6. The method for predicting gas pipeline failure risk based on data analysis according to claim 1 is characterized in that: The risk characterization vector group has multiple statistics; the determining of the failure risk level corresponding to each of the gas pipelines to be evaluated based on the risk characterization vector group includes: Determine a target risk characterization vector group for each of the gas pipelines to be evaluated based on the statistics of the risk characterization vector sequence of each of the gas pipelines to be evaluated in the plurality of risk characterization vector groups; Determine a reference failure risk level corresponding to each target risk characterization vector group of the gas pipeline to be evaluated, wherein attention weights are allocated in the target risk characterization vector group to generate an attention risk characterization vector sequence, risk prediction is performed on the attention risk characterization vector sequence, and a failure risk level corresponding to the target risk characterization vector group is generated; The failure risk level corresponding to the target risk characterization vector group of each of the gas pipelines to be evaluated is used as the failure risk level corresponding to each of the gas pipelines to be evaluated.

7. The method for predicting gas pipeline failure risk based on data analysis according to claim 6 is characterized in that: The step of searching, in each of the risk characterization vector sequences of the gas pipelines to be evaluated, a similar risk characterization vector sequence having similar features to the target risk characterization vector sequence comprises: Searching for a similar risk characterization vector sequence having similar features to a target risk characterization vector sequence in each of the risk characterization vector sequences of the gas pipeline to be evaluated and the risk characterization vector sequences of the multiple evaluated gas pipelines; The step of determining a reference failure risk level corresponding to each target risk characterization vector group of the gas pipelines to be evaluated includes: Acquire a risk characterization vector sequence belonging to any one of the assessed gas pipelines in the target risk characterization vector group; The failure risk level of any one of the evaluated gas pipelines is used as the failure risk level of the target risk characterization vector group.

8. The method for predicting gas pipeline failure risk based on data analysis according to claim 1 is characterized in that: After obtaining the state data of each example pipeline generated by the performance simulation test of multiple example gas pipelines, the method further includes: Performing feature enhancement on the example pipeline state data to generate enhanced pipeline state data of the example pipeline state data; Extracting a second risk characterization vector learning sequence of the example pipeline state data and a first enhanced risk characterization vector learning sequence of each enhanced pipeline state data according to the basic model; determining a third training error parameter based on a feature distance between a second risk characterization vector learning sequence of the example pipeline state data and each of the first enhanced risk characterization vector learning sequences; The parameters of the basic model are updated based on the third training error parameter to generate the initialized machine learning network.

9. A risk prediction system, characterized in that: It includes a processor and a computer-readable storage medium, wherein the computer-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are executed by the processor, the gas pipeline failure risk prediction method based on data analysis as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Intelligent gas pipe network reliability safety monitoring method, Internet of Things system and medium

    CN115619071A

  • Gas pipeline risk assessment method and system

    CN116258086A

  • Intelligent gas GIS-based potential safety hazard disposal method and Internet of Things system

    CN116503975A

  • Methods and internet of things (IOT) systems for diagnosing accuracy of smart gas ultrasonic meters

    US20230366706A1

  • Silting risk assessment, prediction and early warning method for urban deep water-drainage tunnel

    WO2023178961A1