Oilfield station abnormal influence domain tracing analysis method based on total station equalization simulation

By constructing a dynamic directed process topology diagram and verifying the simulation time-series prediction sequence, combined with field feedback signals, the problems of invalid searches and false alarms in oilfield station anomaly diagnosis were solved, and efficient and reliable anomaly tracing analysis was achieved.

CN123138682APending Publication Date: 2026-11-20SHENZHEN JIAYUNTONG ELECTRONICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611592834.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-15
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing methods for diagnosing anomalies at oilfield stations lack dynamic hydraulic connectivity constraints and cross-validation of mechanistic trends, resulting in high overhead for invalid searches, frequent false alarms in source tracing, and a lack of adaptive closed-loop correction capabilities.

Method used

By constructing a dynamic directed process topology graph, combining simulation timing prediction sequences and field feedback signals, the system determines the abnormal starting node and verifies the effectiveness of the propagation path. It also uses physical contradiction penalty terms to eliminate unrealistic candidate causes and adaptively adjusts the evaluation weights.

Benefits of technology

It improves the accuracy and efficiency of anomaly tracing, reduces system computational overhead, and ensures the reliability and long-term accuracy of diagnostic results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138682A_ABST
    Figure CN123138682A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of computing simulation and fault tracing, and discloses an abnormal influence domain tracing analysis method for an oilfield station based on a total station balanced simulation, which comprises the following steps: acquiring multi-source real-time and simulation data, constructing a dynamic directed process topology graph and calculating the propagation effectiveness identifier of the directed process edge; establishing a mapping relationship between a simulation prediction sequence and a device node; monitoring node parameters to determine an abnormal starting node; traversing downstream under the propagation effectiveness constraint, performing trend consistency verification in combination with the simulation sequence to determine an effective propagation path, dividing and outputting an abnormal influence domain; reversely searching upstream equipment from the abnormal starting node, calculating a comprehensive correlation evaluation value of a candidate cause, and outputting a diagnosis data packet in combination with a physical contradiction penalty; and adaptively correcting the evaluation weight coefficient by using field fault feedback. The application fuses a dynamic hydraulic connection constraint and a mechanism evolution trend, excludes invalid propagation paths, reduces system calculation overhead, and improves the accuracy of abnormal tracing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computational simulation and fault tracing technology, specifically to a method for tracing the source of anomalies in oilfield stations based on full-station equilibrium simulation. Background Technology

[0002] During the production and operation of oilfield stations, the process pipeline network and equipment structure are complex, and the operating conditions change frequently. Existing methods for station anomaly diagnosis and tracing mostly rely on data-driven models or static topology network analysis. In practical applications, pure data-driven models usually lack constraints on the underlying physical mechanisms of process fluids, making it difficult to adapt to changes in the dynamic boundaries and operating conditions of the station. They are also prone to establishing false correlations between node data that are physically close but hydraulically disconnected.

[0003] Traditional topology network analysis is mostly based on static physical connections, failing to fully consider the dynamic cut-off effect caused by the discrete operating states of equipment and the pressure relationship between nodes on the medium flow. When performing anomaly propagation analysis, a large number of invalid search paths that do not conform to the actual flow conditions will be generated.

[0004] Meanwhile, existing diagnostic methods lack cross-validation with the evolution trend of mechanism simulation when tracing upstream, and fail to combine independent feedback signals from the field to physically eliminate contradictions in the diagnostic conclusions, resulting in high overall computational overhead and frequent false alarms.

[0005] In addition, traditional diagnostic models often rely on fixed empirical evaluation weights and lack a closed-loop adaptive correction mechanism based on actual on-site fault handling records, making it difficult to maintain the accuracy of diagnosis and tracing during long-term system operation. Summary of the Invention

[0006] To address the shortcomings of existing technologies, this invention provides a source tracing analysis method for oilfield station anomaly influence domains based on full-station equilibrium simulation. This method solves the problems of existing station anomaly diagnosis methods lacking dynamic hydraulic connectivity constraints and cross-validation of mechanism trends, resulting in high invalid search overhead, frequent false alarms in source tracing, and a lack of adaptive closed-loop correction capabilities.

[0007] To achieve the above objectives, the present invention provides the following technical solution:

[0008] The first aspect of this invention provides a method for tracing the source of anomalies in oilfield stations based on full-station equilibrium simulation, comprising the following steps:

[0009] Acquire multi-source real-time acquisition data and simulation data corresponding to the sampling time, and perform time alignment between the multi-source real-time acquisition data and simulation data to construct a dynamic directed process topology graph composed of device nodes and directed process edges, and calculate the propagation validity identifier of each directed process edge;

[0010] Extract the simulation time series prediction sequence from the full-station balanced simulation output, and establish a mapping relationship between the simulation time series prediction sequence and the corresponding equipment node in the dynamic directed process topology diagram.

[0011] Real-time monitoring of parameter changes in device nodes; when the parameters of a device node meet the abnormal triggering conditions, the node at which the abnormality originates is determined.

[0012] Under the constraint of the propagation effectiveness identifier, the path is traversed downstream along the directed process edge from the anomaly starting node. The simulation trend consistency is checked by combining the simulation timing prediction sequence mapped to the device node to determine the effective propagation path. The anomaly impact evaluation value of each device node on the effective propagation path is calculated, and the anomaly impact domain is divided and output based on the anomaly impact evaluation value.

[0013] Based on the abnormal starting node, retrieve the status change information and related operation events of upstream related equipment in the opposite direction to the flow of the process medium, generate a set of candidate causes, calculate the comprehensive correlation evaluation value of each candidate cause, and output a diagnostic basis data package based on the sorting result of the comprehensive correlation evaluation value and the triggering status of the physical contradiction penalty item.

[0014] The actual fault confirmation results fed back by the field control system are compared with the diagnostic results in the diagnostic basis data package to form a diagnostic deviation sample. Based on the diagnostic deviation sample, the evaluation weight coefficients in the comprehensive correlation evaluation function used to calculate the comprehensive correlation evaluation value are adaptively corrected.

[0015] The technical solution provided by this invention eliminates invalid propagation paths that do not meet the conditions for medium flow by integrating the propagation effectiveness constraints of dynamic directed process topology with the consistency verification of simulation time-series prediction sequences. By traversing and searching branches through a propagation effectiveness identifier truncated graph network constructed from the states of upstream and downstream nodes, and combining this with a physical contradiction penalty term to eliminate candidate causes that contradict the actual on-site state, the system's computation time is reduced, and the accuracy of anomaly tracing is improved.

[0016] Further, the propagation validity flag for each directed process edge is calculated, including:

[0017] Based on the discrete operating status of equipment nodes and the pressure difference between nodes, the propagation effectiveness identifier of each directed process edge is calculated; specifically:

[0018] For any directed process edge connecting the upstream and downstream nodes, if the upstream node is a valve, determine the valve's open / closed state. If the valve is closed or the positive pressure difference condition between the upstream and downstream nodes is not met, set the propagation validity flag to 0; if the valve is open and the positive pressure difference condition is met, set the propagation validity flag to 1.

[0019] If the upstream node is a pump-type booster device, the propagation effectiveness flag is set to 0 when it is in a shutdown state, and to 1 when it is in a running state and under normal operating load.

[0020] Furthermore, the simulation time series prediction sequence output from the full-site balanced simulation is extracted, and a mapping relationship is established between the simulation time series prediction sequence and the corresponding equipment nodes in the dynamic directed process topology diagram, including:

[0021] Extract the original prediction sequence of process parameters for each computing node within the future time window, and perform dimensionless normalization on the original prediction sequence using the physical upper limit and physical lower limit of the process parameters.

[0022] Based on the spatial physical coordinates of the computing node and the device node, a one-to-one mapping relationship is established by selecting the computing node closest to the corresponding device node; or the average value of the parameter sequences corresponding to multiple adjacent computing nodes is calculated to obtain the equivalent simulation result and establish a connection with the corresponding device node.

[0023] Furthermore, real-time monitoring of device node parameter changes is performed. When a device node's parameters meet the anomaly triggering conditions, the anomaly initiation node is determined, including:

[0024] Extract key process parameters of equipment nodes and calculate absolute limit exceedance flags, rate of change limit exceedance flags, and pressure-flow combination anomaly flags respectively;

[0025] When the relative pressure drop rate is greater than or equal to the pressure drop correlation threshold and the relative flow rate rise rate is greater than or equal to the flow surge correlation threshold, the output pressure-flow combination anomaly flag is set to 1.

[0026] When at least one abnormal trigger condition is met, the device node is determined to meet the abnormal trigger condition. When there are multiple device nodes that meet the abnormal trigger condition within the same data sampling period, they are sorted in descending order according to the degree of deviation of the change rate of the corresponding parameters of each node, and the device node with the largest degree of deviation of the change rate is selected as the abnormal starting node.

[0027] Furthermore, in the step of verifying the consistency of simulation trends by combining the simulation timing prediction sequences mapped to device nodes to determine the effective propagation path:

[0028] For the device nodes on the potential propagation path generated by traversal, the normalized simulation time series prediction sequence mapped to the node is extracted, and the cosine similarity between the time difference vector of the normalized simulation time series prediction sequence and the abnormal change direction vector is calculated as the simulation trend consistency index corresponding to the node.

[0029] If the simulation trend consistency index is less than the preset consistency threshold, it is determined that the trend consistency condition for abnormal propagation is not met, and the node and the downstream nodes after the node are removed from the potential propagation path, while the propagation branches that meet the conditions are retained to form an effective propagation path.

[0030] Furthermore, the anomaly impact evaluation value of each device node along the effective propagation path is calculated, including:

[0031] Based on the real-time parameter deviation, propagation level, estimated transmission time, and device criticality weight of the corresponding device node, calculate the abnormal impact evaluation value corresponding to each device node;

[0032] Real-time parameter deviation is the relative error between the current measured value and the reference value under normal operating conditions.

[0033] The propagation level is represented by the number of propagation level hops, which is the shortest topological edge between the corresponding device node and the node where the anomaly originates. The anomaly impact evaluation value decreases exponentially with the increase of the number of propagation level hops.

[0034] The estimated transmission time is the time it takes for the medium to travel from the starting node of the anomaly to the corresponding equipment node. The calculation of the anomaly impact assessment value is affected by the ratio of the estimated transmission time to the maximum dwell time of the station process.

[0035] Furthermore, the comprehensive correlation evaluation value of each candidate cause is calculated, including:

[0036] The evaluation indicators corresponding to the candidate causes, such as time matching degree, process connectivity identifier, change direction consistency identifier, simulation-measured waveform related indicators, and historical prior probability, are calculated respectively. The normalized weight coefficients corresponding to the above evaluation indicators are linearly weighted and summed through the comprehensive correlation evaluation function to obtain the comprehensive correlation evaluation value.

[0037] Furthermore, based on the ranking results of the comprehensive correlation evaluation values ​​and the triggering status of the physical contradiction penalty items, a diagnostic basis data packet is output, including:

[0038] The equipment status required for the candidate cause to be valid is compared with the independent status feedback on site. When a physical contradiction is detected between the two status feedbacks, a physical contradiction penalty item is triggered. The final corrected score is obtained by subtracting a preset positive penalty constant from the comprehensive correlation evaluation value.

[0039] The final corrected score is divided into intervals using high and low correlation thresholds. Each candidate cause is assigned a corresponding related candidate cause label, and together with the trigger record of the physical contradiction penalty item, they are output to the diagnostic basis data package.

[0040] Furthermore, based on the diagnostic deviation samples, the evaluation weight coefficients in the comprehensive correlation evaluation function used to calculate the comprehensive correlation evaluation value are adaptively corrected, including:

[0041] The difference between the comprehensive correlation evaluation value and the on-site fault confirmation label is used as the basis for updating the evaluation weight coefficient, and a loss function expressed as squared error is constructed.

[0042] The partial derivatives of the loss function with respect to each weight coefficient are calculated using the gradient descent algorithm, and the temporary weight coefficients are calculated in combination with the weight update step size.

[0043] The temporary weight coefficients are truncated and normalized using the minimum weight lower bound, and the final updated weight coefficients are used for the comprehensive correlation evaluation of subsequent candidate causes.

[0044] Furthermore, after adaptively adjusting the evaluation weight coefficients, the following is also included:

[0045] Newly confirmed cases of abnormal propagation and their causes are written into the historical abnormal event database. Using the Laplace smoothing algorithm, combined with the total number of abnormal cause categories recorded in the historical abnormal event database, the historical prior probability corresponding to each abnormal cause category is recalculated.

[0046] The second aspect of this invention provides a source tracing analysis system for anomaly influence domains at oilfield stations based on full-station equilibrium simulation, applied to the analysis method provided in the first aspect above. The system includes:

[0047] The station process topology construction module is used to acquire multi-source real-time acquisition data and simulation data corresponding to the sampling time, and to perform time alignment between the multi-source real-time acquisition data and the simulation data to construct a dynamic directed process topology graph composed of equipment nodes and directed process edges, and to calculate the propagation validity identifier of each directed process edge.

[0048] The simulation result node mapping module is used to extract the simulation time series prediction sequence of the whole station balanced simulation output and establish a mapping relationship between the simulation time series prediction sequence and the corresponding equipment node in the dynamic directed process topology diagram.

[0049] The abnormal trigger determination module is used to monitor the parameter changes of device nodes in real time, and when the parameters of the device node are detected to meet the abnormal trigger conditions, it determines the abnormal starting node and generates a trigger signal.

[0050] The anomaly propagation path analysis module is used to traverse the path downstream along the directed process edge under the constraint of the propagation effectiveness identifier. It combines the simulation time series prediction sequence mapped to the equipment node to perform simulation trend consistency verification in order to determine the effective propagation path, calculate the anomaly impact evaluation value of each equipment node on the effective propagation path, and divide and output the anomaly impact domain based on the anomaly impact evaluation value.

[0051] The reverse root cause analysis module is used to retrieve the status change information and related operation events of upstream related equipment in the opposite direction to the flow of the process medium, based on the abnormal starting node, generate a set of candidate causes, calculate the comprehensive correlation evaluation value of each candidate cause, and output a diagnostic basis data package based on the sorting result of the comprehensive correlation evaluation value and the triggering status of the physical contradiction penalty item.

[0052] The closed-loop optimization module is used to adaptively correct the evaluation weight coefficients in the comprehensive correlation evaluation function based on the diagnostic deviation sample formed by the actual fault confirmation results and diagnostic results from the field feedback.

[0053] This invention provides a method for source tracing analysis of anomaly influence domains in oilfield stations based on full-station equilibrium simulation. It has the following beneficial effects:

[0054] 1. This invention combines a dynamic directed process topology graph with a propagation validity identifier calculated based on the discrete operating status of equipment and the pressure difference between nodes. Before traversing the downstream path, invalid process edges that do not meet the conditions for medium flow are eliminated in advance. This solves the problems of high system computational overhead caused by unconstrained search in complex station pipeline network topologies in existing algorithms, as well as the problem of easily establishing false associations between spatially close but hydraulically isolated equipment.

[0055] 2. This invention maps the time-series prediction sequence output by the full-station balanced simulation to the equipment nodes and uses cosine similarity to verify the consistency of simulation trends. Based on topology analysis, it introduces dynamic hydraulic mechanism constraints, which solves the problem that existing technologies have difficulty in identifying and removing misleading branches that have physical connectivity conditions but do not conform to the actual anomaly evolution law when analyzing anomaly propagation, thereby improving the accuracy of anomaly influence domain boundary division.

[0056] 3. This invention introduces a physical contradiction penalty term in the reverse tracing evaluation to directly eliminate candidate causes that contradict the independent feedback state on site. It also uses an adaptive correction logic for evaluation weights based on diagnostic deviation samples to solve the problems of traditional diagnostic models lacking cross-validation of actual on-site conditions and over-reliance on fixed human experience parameters, thus ensuring the reliability of the abnormal tracing results of the system under long-term complex operating conditions. Attached Figure Description

[0057] Figure 1 This is a schematic diagram of the system architecture of the present invention;

[0058] Figure 2 This is a schematic diagram of the method flow of the present invention;

[0059] Figure 3 This is a schematic diagram of the station process topology construction process of the present invention;

[0060] Figure 4 This is a schematic diagram of the node mapping process for the simulation results of this invention;

[0061] Figure 5 This is a timing logic diagram of the abnormal trigger determination process of the present invention;

[0062] Figure 6 This is a schematic diagram illustrating the forward propagation path analysis and influence domain division principle of the present invention.

[0063] Figure 7 This is a schematic diagram illustrating the principle of reverse root cause analysis in this invention.

[0064] Figure 8 This is a schematic diagram of the closed-loop optimization mechanism of the present invention;

[0065] Figure 9 This is a comparison chart of receiver operating characteristic (ROC) curves for various anomaly tracing methods of the present invention;

[0066] Figure 10 This is a statistical chart showing the performance of different methods of the present invention in terms of average diagnostic time and fault location accuracy. Detailed Implementation

[0067] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0068] Reference Figure 1 This invention provides a source tracing analysis system for anomaly influence domains at oilfield stations based on full-station equilibrium simulation. The system includes:

[0069] The station process topology construction module is used to acquire multi-source real-time acquisition data and simulation data corresponding to the sampling time, and to perform time alignment between the multi-source real-time acquisition data and the simulation data to construct a dynamic directed process topology graph composed of equipment nodes and directed process edges, and to calculate the propagation validity identifier of each directed process edge.

[0070] The simulation result node mapping module is used to extract the simulation time series prediction sequence of the whole station balanced simulation output and establish a mapping relationship between the simulation time series prediction sequence and the corresponding equipment node in the dynamic directed process topology diagram.

[0071] The anomaly trigger determination module is used to monitor the real-time parameters of the device nodes, and when the parameters of the device nodes are detected to meet the anomaly trigger conditions, it determines the anomaly starting node and generates a trigger signal.

[0072] The anomaly propagation path analysis module is used to traverse the path downstream along the directed process edge under the constraint of the propagation effectiveness identifier. It combines the simulation time series prediction sequence mapped to the equipment node to perform simulation trend consistency verification in order to determine the effective propagation path, calculate the anomaly impact evaluation value of each equipment node, and output the anomaly impact domain.

[0073] The reverse root cause analysis module is used to retrieve the status change information and related operation events of upstream related equipment from the abnormal starting node in the opposite direction to the flow of the process medium, generate a set of candidate causes, calculate the comprehensive correlation evaluation value of each candidate cause, and output a diagnostic basis data package.

[0074] The closed-loop optimization module is used to adaptively correct the evaluation weight coefficients in the comprehensive correlation evaluation function based on on-site feedback data.

[0075] Reference Figure 2 This invention provides a method for source tracing analysis of anomalies in oilfield stations based on full-station equilibrium simulation. The method includes the following steps:

[0076] Step S10: The station process topology construction module acquires multi-source real-time acquisition data and simulation data corresponding to the sampling time, and performs time alignment between the multi-source real-time acquisition data and simulation data to construct a dynamic directed process topology graph composed of equipment nodes and directed process edges. Based on the discrete operating status of the equipment and the pressure difference between nodes, the propagation effectiveness identifier of each directed process edge is calculated.

[0077] Step S20: The simulation result node mapping module extracts the simulation time series prediction sequence from the full-station balanced simulation output and establishes a mapping relationship between the simulation time series prediction sequence and the corresponding equipment nodes in the dynamic directed process topology diagram.

[0078] Step S30: The anomaly trigger determination module monitors the parameter changes of the device node in real time. When the parameters of the device node meet the anomaly triggering conditions, it determines the anomaly starting node and sends a trigger signal to the anomaly propagation path analysis module.

[0079] Step S40: After receiving the trigger signal, the anomaly propagation path analysis module, under the constraint of the propagation validity identifier, traverses the path downstream along the directed process edge from the anomaly starting node, and performs simulation trend consistency verification in combination with the simulation timing prediction sequence to determine the effective propagation path, calculates the anomaly impact evaluation value of each node affected by the anomaly, and divides and outputs the anomaly impact domain based on the anomaly impact evaluation value.

[0080] Step S50: The reverse root cause analysis module takes the abnormal starting node as the benchmark, retrieves the status change information and related operation events of the upstream related equipment in the opposite direction to the flow of the process medium, generates a set of candidate causes, calculates the comprehensive correlation evaluation value of each candidate cause, and outputs a diagnostic basis data package based on the sorting result of the comprehensive correlation evaluation value and the triggering status of the physical contradiction penalty item.

[0081] Step S60: The closed-loop optimization module compares the actual fault confirmation results and diagnosis results fed back by the field control system to form a diagnostic deviation sample, and adaptively corrects the evaluation weight coefficients in the comprehensive correlation evaluation function based on the diagnostic deviation sample.

[0082] To further clarify the implementation of each technical aspect of the present invention, the following will provide a detailed description of the implementation of each functional module involved above and its internal processing flow.

[0083] Reference Figure 3 Regarding the dynamic directed process topology construction process in step S10, the physical connection relationships of process pipelines are used to characterize the static connection relationships between equipment. However, during actual operation of the station, whether the medium can flow along the corresponding process pipelines is also affected by the operating status of the equipment and the pressure relationship between upstream and downstream nodes. Therefore, based on the static process connection relationships, the station process topology construction module further determines the propagation effectiveness of each directed process edge under the current operating conditions. This specifically includes the following steps.

[0084] Step S101: The station process topology construction module acquires multi-source real-time data and simulation data corresponding to the sampling time, and constructs the equipment state vector of the equipment node.

[0085] The station process topology construction module periodically reads the process parameters and discrete state signals of each physical device in the current operating cycle through the industrial control network, and obtains the simulation data output by the station-wide balanced simulation module at the corresponding time.

[0086] The production equipment within the station is represented as equipment nodes. At that moment The station process topology construction module aligns the real-time acquired data and simulation data corresponding to the same equipment node according to the sampling time, and numerically represents the discrete state signals to construct the equipment state vector of that node. Its expression is as follows:

[0087] ;

[0088] In the formula, The fluid pressure measurement at the current moment represents the node's current value; The measured medium flow rate at the current moment represents the node's current value; The fluid temperature measurement at the current moment represents the node. The container level measurement at the current moment represents the node's current position. This represents the discrete operating state of the equipment at the current moment, with a value of 0 or 1. For valve equipment, 0 and 1 represent the closed state and the open state, respectively. For pump equipment, 0 and 1 represent the stopped state and the running state, respectively. It represents the current process operation status of the equipment and is used to identify whether the equipment node participates in the corresponding process flow under the current operating conditions.

[0089] Step S102: The station process topology construction module constructs a dynamic directed process topology diagram based on the physical pipeline connection relationship.

[0090] The station's process topology construction module represents equipment within the station as equipment nodes and the process pipeline connections between equipment as directed process edges, generating a dynamic directed process topology graph. Its mathematical expression structure is as follows:

[0091] ;

[0092] In the formula, This represents a set of equipment nodes, which includes pump sets, valves, storage tanks, and process containers within the station. It represents the set of directed process edges formed by the connection of process pipelines, and characterizes the physical flow direction of the medium under normal design conditions; This represents a dynamic attribute set used to store the device operating status that changes over time, as well as dynamic attributes related to the process connectivity of directed process edges.

[0093] The station process topology construction module generates a set of equipment nodes based on the equipment and pipeline connection relationships in the pipeline instrumentation flow diagram. and directed process edge set This establishes the static process connection topology of the station.

[0094] Step S103: The station process topology construction module calculates the propagation effectiveness identifier of each directed process edge based on the discrete operating status of the equipment and the pressure difference between nodes.

[0095] Static process connection topology only indicates the physical pipeline connections between equipment and cannot directly reflect whether the corresponding connections have the conditions for medium flow under the current operating conditions. Therefore, the station process topology construction module judges the propagation effectiveness of directed process edges based on the discrete operating status of equipment and the pressure relationship between upstream and downstream nodes.

[0096] For connecting upstream nodes With downstream nodes any directed edge The station's process topology construction module calculates its time. Effectiveness of dissemination The specific judgment logic is as follows:

[0097] If upstream node For valve-type equipment, the station process topology construction module first determines the valve's open / closed status. .

[0098] when When this occurs, it indicates that the valve is in the closed state, and the flow from this valve to the downstream node is... If the directed process edge does not meet the condition for the medium to flow along the designed flow direction, then set... ;

[0099] when At that time, further comparison of upstream nodes With downstream nodes Pressure difference between .

[0100] like This indicates the upstream node To downstream nodes The positive pressure difference condition is not met, so set ;

[0101] like Then set .

[0102] in, For downstream nodes At the present moment Fluid pressure measurement value, upstream node At the present moment The fluid pressure measurement value.

[0103] If upstream node For pump-type booster equipment, when its discrete operating state At that time, set ;

[0104] when And when the equipment is under normal operating load, set .

[0105] The station process topology construction module will use the propagation effectiveness identifier obtained according to the above judgment logic. Write to dynamic property collection This enables the dynamic directed process topology graph to distinguish between static physical connections and process connections that have the conditions for propagation under the current operating conditions, and to exclude invalid propagation paths formed due to valve closure or the absence of a positive pressure difference between upstream and downstream nodes, thus providing process connectivity constraints for subsequent abnormal propagation path analysis.

[0106] Reference Figure 4 Regarding the simulation result node mapping process in step S20, the computational nodes of the full-station balanced simulation and the equipment nodes in the dynamic directed process topology diagram belong to different data objects. It is necessary to establish a correspondence between them so that the simulation output can be associated with the corresponding equipment nodes. The simulation result node mapping module extracts and normalizes the time-series data of the simulation output and establishes the mapping relationship between the simulation computational nodes and the equipment nodes. Specifically, it includes the following steps.

[0107] Step S201: The simulation result node mapping module periodically extracts the simulation time series prediction sequence of each process parameter within the future time window output by the whole station balanced simulation module, and performs normalization processing.

[0108] The station-wide equilibrium simulation module performs fluid network calculations based on the current boundary conditions of the station and outputs simulation results of the process parameters corresponding to each calculation node changing over time. Let the current time be... The future time window length is Time window length It is determined based on the maximum time for the fluid medium to flow along the process flow within the station.

[0109] For the computation nodes in the simulation model The simulation result node mapping module extracts the computation node within the time period. The original predicted sequence of each process parameter.

[0110] Suppose the original prediction sequence for a specific physical quantity, such as fluid pressure or volumetric flow rate, is... The timestamp .

[0111] Different process parameters have different dimensions and numerical ranges. To ensure that different process parameters are on a uniform data scale during subsequent consistency verification, the simulation result node mapping module performs dimensionless normalization on the original prediction sequence to generate a normalized simulation time series prediction sequence. The calculation formula is as follows:

[0112] ;

[0113] In the formula, Representative node At any moment The normalized predicted value of has a range of [0, 1]; Representative node At any moment The original predicted values; and These represent the physical upper limit and physical lower limit of the corresponding process parameters as defined in the equipment nameplate or process design specifications.

[0114] After normalization, the predicted values ​​of different process parameters are converted to the same numerical range for subsequent simulation trend consistency verification.

[0115] Step S202: The simulation result node mapping module establishes the mapping relationship between the full-station balanced simulation calculation nodes and the equipment nodes in the dynamic directed process topology diagram.

[0116] Let the set of computational nodes in the total station equilibrium simulation module be . The dynamic directed process topology graph constructed in step S10 The set of physical device nodes included is The simulation result node mapping module establishes a mapping relationship function. .

[0117] For device nodes In the set of computing nodes Only one computing node corresponds to each node. In this case, the simulation result node mapping module will calculate the nodes. With device nodes Establish a one-to-one mapping relationship.

[0118] For the same device node In the set of computing nodes In one implementation, when multiple adjacent computing nodes are involved, the simulation result node mapping module selects the distance from the device node based on the spatial physical coordinates of the computing node and the device node. The nearest compute node, and connect that compute node to the device node. Establish a mapping relationship.

[0119] In another implementation, the simulation result node mapping module calculates the average value of the parameter sequences corresponding to multiple adjacent computing nodes to obtain the device node. The corresponding equivalent simulation results are then compared with the equipment nodes. Establish a connection.

[0120] After the mapping relationship is established, the simulation result node mapping module will use the normalized simulation time series prediction sequence obtained in step S201. Associated with the corresponding device node in the dynamic directed process topology graph Therefore, the device node is simultaneously associated with real-time on-site status data and simulation time-series prediction data. The simulation time-series prediction data is used for consistency verification of simulation trends in subsequent anomaly propagation path analysis.

[0121] Reference Figure 5 Regarding the anomaly trigger determination process in step S30, the anomaly trigger determination module determines whether an anomaly trigger has occurred based on the real-time parameter status of the device node, and generates a trigger signal to initiate anomaly propagation path analysis after determining the anomaly initiation node. Specifically, this includes the following steps.

[0122] Step S301: The abnormal triggering judgment module monitors the parameter changes of the equipment node in real time, and judges whether the equipment node meets the abnormal triggering conditions based on three types of conditions: parameter exceeding the limit, rate of change exceeding the limit, and abnormal pressure-flow combination.

[0123] When a device node malfunctions, its process parameters may exhibit characteristics such as parameters exceeding the operating range, abnormal parameter change rates, or simultaneous changes in multiple process parameters. The malfunction triggering judgment module targets nodes in the dynamic directed process topology graph. Extract its device state vector Key process parameters Calculate the absolute limit violation flags respectively. Change rate exceeding limit indicator Combined with pressure and flow rate abnormality indicators .

[0124] The exception trigger determination module calculates the absolute limit violation flag. .

[0125] Determine real-time parameters Does it meet the requirements? or If satisfied, output Conversely, output .in, and These are the upper and lower threshold values ​​for the parameters that the system sets according to pipeline equipment design specifications and safe operating procedures.

[0126] The abnormal trigger determination module calculates the rate of change exceeding the limit flag. .

[0127] Extract the current time t and the previous sampling time. Measure the parameters and calculate the rate of change of the parameters over time. Determine whether this rate of change satisfies... If satisfied, output Conversely, output .

[0128] in, The system's data sampling period, The change rate trigger threshold is set to 5% to 10% per second of the rated range of the device parameters in this embodiment. For nodes Previous sampling time Parameter measurements, For nodes At the current sampling time The measured values ​​of the parameters.

[0129] The abnormal trigger determination module calculates the pressure-flow combination abnormality identifier. .

[0130] The abnormal trigger determination module extracts the fluid pressure measurement values ​​of the node. With medium flow measurement The relative pressure drop rate and the relative flow rate increase rate are calculated separately to determine whether the pressure drop and flow rate increase simultaneously reach the corresponding triggering conditions.

[0131] The abnormal trigger determination module calculates the relative drop rate of pressure. and the relative increase rate of traffic .in, and They are nodes Previous sampling time The fluid pressure measurement and the medium flow measurement.

[0132] When satisfied and When, output Conversely, output .in, The pressure drop threshold is set to a value between 0.05 and 0.10 in this embodiment. The threshold value associated with sudden traffic surges is set to 0.08 to 0.15 in this embodiment.

[0133] The exception trigger determination module integrates the above determination conditions through Boolean logic OR operation to calculate the exception trigger status value of the node. The calculation formula is:

[0134] ;

[0135] when When, it indicates the node At least one of the abnormal triggering conditions must be met.

[0136] If multiple device nodes are detected to meet the same data sampling period, The anomaly triggering judgment module sorts the nodes in descending order according to the deviation of the rate of change of the corresponding parameters, and selects the device node with the largest deviation of the rate of change as the anomaly starting node for this analysis. This allows subsequent analysis of abnormal propagation paths to use this node as the starting point for the search.

[0137] Step S302: The exception trigger determination module extracts the exception start node. The device state vector at the trigger moment and the simulation timing prediction data associated with the node are used to construct a trigger signal and send it to the anomaly propagation path analysis module.

[0138] In determining the starting node of the anomaly Then, the exception trigger determination module obtains the node at the trigger time. The corresponding state data is used to construct the trigger signal. Its data structure is expressed as follows:

[0139] ;

[0140] In the formula, Represents the starting node of the exception Topology identifier number; The timestamp representing the trigger condition that was met; Represents the abnormal starting node extracted from the station process topology construction module. The device state vector at the trigger moment; This represents the normalized simulation time series prediction sequence corresponding to the node extracted from the simulation result node mapping module; Represents the trigger type, based on , and The hit record corresponds to the abnormal triggering form, including parameter exceeding the limit, rate of change exceeding the limit, and pressure-flow combination abnormality.

[0141] Trigger signal Once constructed, the exception trigger determination module sends it to the exception propagation path analysis module.

[0142] The anomaly propagation path analysis module starts from the trigger signal. The topology identifier, device state vector, normalized simulation timing prediction sequence, and trigger type of the abnormal starting node are obtained as input data for subsequent forward path expansion and simulation trend consistency verification.

[0143] Reference Figure 6Regarding the anomaly propagation path analysis process in step S40, the anomaly propagation path analysis module takes the anomaly initiation node as the starting point and extends the propagation path downstream based on the propagation effectiveness of the directed process edge. It also verifies the consistency of the extended path's simulation trend by combining the simulation timing prediction data corresponding to the equipment nodes. After determining the effective propagation path, it further calculates the anomaly impact evaluation value for each equipment node along the path and divides the anomaly impact domain based on the anomaly impact evaluation value. Specifically, this includes the following steps.

[0144] Step S401: After receiving the trigger signal, the anomaly propagation path analysis module, under the constraint of the propagation validity identifier, traverses downstream along the directed process edge starting from the anomaly initiation node to generate a potential propagation path.

[0145] The static process connections in a dynamic directed process topology diagram only represent physical pipeline connections between equipment. Some of these connections do not, under current operating conditions, provide the conditions for abnormal effects to propagate along the process flow. The abnormal propagation path analysis module starts from the trigger signal. Obtain the starting node of the exception And read the propagation validity flags of each directed process edge obtained in step S10. The validity of the propagation is used as the basis for determining whether to continue traversing the corresponding directed process edge during the downstream traversal process.

[0146] The anomaly propagation path analysis module establishes an empty set of potential paths. And a list for recording visited nodes, used to avoid repeated traversal of the same device node when a return pipeline exists. Starting from the initial node... Starting from this point, the anomaly propagation path analysis module uses a breadth-first search algorithm to find all its direct downstream neighboring nodes. .

[0147] Starting with an abnormal node Taking the first-level extension as an example, for connections and Each directed process edge Extract its corresponding dissemination effectiveness identifier If and only if And downstream nodes When a node is not in the visited list, the anomaly propagation path analysis module will... Add it to the current propagation path and mark it as visited.

[0148] For each device node added to the propagation path, its downstream neighboring nodes are retrieved in the same manner, and the process is extended downstream layer by layer. When the boundary of the dynamic directed process topology graph is reached, or when there is no downstream directed process edge with a propagation validity flag of 1 that has not yet been visited in the current propagation branch, the extension of that propagation branch is stopped.

[0149] Following the above traversal process, the anomaly propagation path analysis module generates a set of potential propagation paths containing multiple connected branches. , of which a single path It consists of a sequence of nodes.

[0150] Step S402: The anomaly propagation path analysis module combines the normalized simulation time series prediction sequence to perform simulation trend consistency verification, and removes propagation branches that do not meet the consistency conditions in order to determine the effective propagation path.

[0151] Step S401 eliminates directed process edges that do not meet the propagation conditions based on the equipment operating status and the pressure relationship between nodes. For the remaining potential propagation paths, the abnormal propagation path analysis module further utilizes the simulation timing prediction data mapped to the equipment nodes in step S20 to determine whether the parameter change trend of the equipment nodes on the path is consistent with the change direction corresponding to the anomaly.

[0152] Targeting the set of potential propagation paths any path On the node The anomaly propagation path analysis module calls the normalized simulation time series prediction sequence mapped to this node in step S20. The anomaly propagation path analysis module determines the anomaly change direction vector based on the anomaly triggering pattern recorded in the trigger signal. The dimension of this vector is consistent with the number of sampling points within the prediction time window.

[0153] As one implementation method, when the abnormal triggering mode reflects a pressure drop, Each element in the array is assigned a value of -1; when the abnormal triggering pattern reflects an increase in pressure, Each element in the array is assigned the value 1.

[0154] The anomaly propagation path analysis module calculates the time difference vector of the normalized simulation time series prediction sequence. The cosine similarity between the difference vector and the vector of abnormal change direction is calculated and used as the consistency index of the simulation trend corresponding to that node. The calculation formula is:

[0155] ;

[0156] In the formula, the molecule The denominator is the inner product of the time difference vector and the vector of abnormal change direction; This is the product of the magnitudes of the two vectors, i.e., the Euclidean norms. The range of this index is [-1, 1], and the closer the value is to 1, the more consistent the trend of the simulation parameter changes with the direction of the anomaly evolution.

[0157] The anomaly propagation path analysis module determines the consistency index of simulation trends. Has the consistency threshold been reached? .

[0158] like Determine the node The corresponding simulation parameter change trends satisfy the trend consistency condition for anomaly propagation;

[0159] like Determine the node The trend consistency condition for abnormal propagation is not met.

[0160] When path When a node on the path does not meet the consistency threshold condition, the abnormal propagation path analysis module removes that node and its downstream nodes from the corresponding propagation path.

[0161] After consistency verification and path truncation, the anomaly propagation path analysis module outputs a set of valid propagation paths that simultaneously meet the propagation effectiveness condition and the simulation trend consistency condition. .

[0162] Among them, the consistency threshold The values ​​were obtained through statistical analysis of historical measured abnormal evolution data, and in this embodiment, the values ​​ranged from 0.75 to 0.85.

[0163] Step S403: The abnormal propagation path analysis module calculates the abnormal impact evaluation value of each node on the effective propagation path.

[0164] The anomaly propagation path analysis module uses an anomaly impact evaluation function to analyze the set of effective propagation paths. The degree to which each device node is affected by anomalies is quantified.

[0165] For the set of effective propagation paths any node in The abnormal propagation path analysis module calculates its abnormal impact evaluation value. The mathematical formula is as follows:

[0166] ;

[0167] In the formula, Representative node The equipment criticality weight has a value range of (0, 1]. The equipment criticality weight corresponding to key production equipment has a higher value, while the equipment criticality weight corresponding to auxiliary equipment or instruments has a lower value. The real-time parameter deviation of the node represents the relative error between the current measured value and the reference value under normal operating conditions. Represents the number of hops in the propagation hierarchy, i.e., the number of nodes. With the starting node The shortest topological edge number between them; The exponential decay relationship of the impact of anomalies with increasing propagation level is characterized. The spatial attenuation coefficient is taken as 0.1 to 0.3 in this embodiment; The medium represents the flow of the abnormal starting node to the node. The estimated transmission time is obtained by dividing the corresponding pipeline length by the average fluid velocity; The maximum dwell time representing the technological process at the station; It is the base of natural numbers, with a value of approximately 2.718.

[0168] , , The normalized weight coefficients for the evaluation factors take values ​​between 0 and 1, and satisfy the following conditions: .

[0169] Therefore, the anomaly propagation path analysis module calculates the anomaly impact evaluation value for each node based on the node's real-time parameter deviation, propagation level, media transmission time, and equipment criticality. .

[0170] Step S404: The anomaly propagation path analysis module classifies the anomaly impact level based on the anomaly impact evaluation value and outputs the anomaly impact domain.

[0171] The anomaly propagation path analysis module obtains a set of valid propagation paths. Anomaly impact evaluation values ​​for each equipment node and utilize high impact threshold and low impact threshold Classify device nodes.

[0172] High impact threshold With low impact threshold This is obtained by cluster analysis of actual equipment damage rating data from historical accidents. In this embodiment, The value ranges from 0.75 to 0.85. The value ranges from 0.35 to 0.45.

[0173] The anomaly propagation path analysis module sequentially performs range judgments on the anomaly impact evaluation values ​​of each device node.

[0174] When node The evaluation value satisfies At that time, it was classified as a high-impact area;

[0175] When node The evaluation value satisfies At that time, it was classified as a medium-impact area;

[0176] For the evaluation value satisfies Nodes that do not exist in the set of valid propagation paths The remaining topological nodes are uniformly assigned to the low-impact area.

[0177] After completing the above classification, the anomaly propagation path analysis module summarizes the device nodes corresponding to each impact level, forms the anomaly impact domain, and outputs the topology distribution results labeled according to the impact level.

[0178] Reference Figure 7 Regarding the reverse root cause analysis process in step S50, the reverse root cause analysis module uses the abnormal initiation node as a benchmark and searches for upstream equipment and related operational events in the direction opposite to the flow of the process medium to form a set of candidate causes. Further, based on the time relationship, process connectivity, parameter change direction, simulation results, and historical fault records between the candidate causes and the abnormal initiation node, a comprehensive correlation evaluation value is calculated. This is combined with on-site status feedback to correct and classify the candidate causes, outputting diagnostic basis data. Specifically, this includes the following steps.

[0179] Step S501: The reverse root cause analysis module starts from the anomaly initiation node and traverses upstream in the opposite direction of the directed process edge to generate an initial set of candidate causes.

[0180] The abnormal parameters exhibited by the anomaly initiation node are related to changes in the state of its upstream equipment or equipment operation events. The reverse root cause analysis module uses the anomaly initiation node confirmed in step S30. Based on the dynamic directed process topology graph Centrally directed process edge set The upstream adjacent device nodes are retrieved in the opposite direction level by level.

[0181] During the traversal, the reverse root cause analysis module reads the status change records of the retrieved device nodes and obtains the device operation instructions recorded by the distributed control system within the corresponding time range, and associates the device operation instructions with the corresponding device nodes.

[0182] The reverse root cause analysis module summarizes the state change events of upstream device nodes and the corresponding operation command events of the device nodes to generate an initial set of candidate causes. ,in Representing the One candidate cause event.

[0183] Step S502: The reverse root cause analysis module uses a comprehensive correlation evaluation function to calculate the comprehensive correlation evaluation value of each candidate cause through linear weighted summation.

[0184] For the initial set of candidate reasons Each candidate reason The reverse root cause analysis module calculates evaluation indicators related to time matching, process connectivity, direction of change, simulated and measured waveforms, and historical occurrence frequency, and calculates a comprehensive correlation evaluation value based on these indicators. The calculation formula is as follows:

[0185] ;

[0186] In the formula, to The normalized weight coefficients representing each evaluation indicator range from 0 to 1 and satisfy the following conditions: ;

[0187] To determine the time matching degree, the reverse root cause analysis module calculates the time difference between the occurrence time of the candidate cause and the anomaly trigger time, and uses the formula... Perform calculations, where The actual time difference, The theoretical transmission delay is calculated based on fluid velocity. This is a time tolerance parameter, with a value ranging from 10 to 30 seconds;

[0188] This serves as a process connectivity identifier. The reverse root cause analysis module extracts candidate cause nodes and starting nodes for connectivity. All process edges between them will be marked with the propagation validity of the corresponding process edge. Perform a series multiplication operation. When there is a directed process edge in the connection path with a propagation validity flag of 0, Set to 0; when all propagation validity flags in the connection path are 1, Take 1;

[0189] This indicates a consistent direction of change. The reverse root cause analysis module compares the direction of parameter change corresponding to the candidate cause with the deviation direction of the actual parameter at the anomaly initiation node; a value of 1 indicates a consistent direction, and a value of 0 indicates a divergence.

[0190] The relevant indicators for the simulated and measured waveforms are as follows: The reverse root cause analysis module uses the working conditions corresponding to the candidate causes as the simulation boundary conditions, extracts the corresponding simulation prediction sequence, and calculates the cosine similarity between the prediction sequence and the abnormal waveform measured on site as the value of the indicator;

[0191] The historical prior probability is calculated by statistically analyzing the frequency distribution of this type of fault or operational error in historical fault handling records, and its value ranges from 0 to 1.

[0192] Step S503: The reverse root cause analysis module applies penalties to candidate causes with physical contradictions based on the independent state feedback on site, and classifies the candidate causes according to the corrected comprehensive correlation evaluation value.

[0193] Based solely on the comprehensive correlation evaluation value, situations where candidate causes contradict the actual on-site equipment condition cannot be ruled out. Therefore, the reverse root cause analysis module includes a penalty item. The equipment status required for the candidate cause to be established is compared with the independent status feedback from the field.

[0194] For example, if the candidate cause is that the upstream valve is mistakenly opened, but both the valve opening feedback and the independent valve position status feedback indicate that the valve was in a fully closed position before and after the anomaly occurred, then the valve status required for the candidate cause to be valid is inconsistent with the on-site status feedback, and it is determined that there is a physical contradiction.

[0195] When a physical contradiction is detected, let ,in A positive penalty constant exceeding the normal range of the comprehensive correlation evaluation value, with a value of 9999; if there is no physical contradiction, then... .

[0196] The reverse root cause analysis module calculates the final corrected score. .

[0197] After obtaining the final corrected scores for each candidate cause, the reverse root cause analysis module proceeds according to... Sort by high to low and use a high correlation threshold. and low correlation threshold The candidate reasons are classified into categories, among which High correlation threshold With low correlation threshold Cluster boundaries are set based on the scores of historical diagnostic data. In this embodiment, The value ranges from 0.80 to 0.90. The value ranges from 0.40 to 0.50.

[0198] When the judgment At that time, the reverse root cause analysis module assigns a highly relevant candidate cause label to it;

[0199] When the judgment At that time, assign a label to the candidate reason for association;

[0200] When the judgment When that happens, assign a label to candidate reasons with low relevance.

[0201] for The candidate reasons are recorded in the corresponding evaluation record, which simultaneously retains the physical contradiction judgment status and penalty trigger record.

[0202] Step S504: The reverse root cause analysis module summarizes the abnormal starting node, effective propagation path, candidate cause evaluation results, and physical contradiction judgment information, generates a diagnostic basis data package, and outputs it.

[0203] The reverse root cause analysis module summarizes the data generated in steps S501 to S503 and generates a diagnostic basis data package. Its data structure is expressed as:

[0204] ;

[0205] In the formula, This represents the anomaly start node identifier output in step S30; This represents the set of valid propagation paths output in step S40. The set of event identifiers that are marked as highly relevant candidate causes in step S503; The matrix represents the detailed evaluation of candidate causes. This matrix records the comprehensive correlation evaluation values ​​of each candidate cause, the physical contradiction judgment status, and the penalty trigger records.

[0206] Diagnostic basis data package After generation, the reverse root cause analysis module sends it to the human-computer interaction station and displays the candidate causes, comprehensive correlation evaluation results and corresponding judgment criteria, so that on-site personnel can troubleshoot and handle the fault.

[0207] Reference Figure 8 Regarding the closed-loop optimization process in step S60, the closed-loop optimization module obtains the actual fault confirmation result, associates it with the candidate cause evaluation result obtained in step S50, and forms a diagnostic deviation sample; it updates the evaluation weight coefficient in the comprehensive association evaluation function based on the diagnostic deviation sample, and updates the historical prior probability according to the continuously accumulated on-site fault confirmation records. Specifically, this includes the following steps.

[0208] Step S601: The closed-loop optimization module extracts the actual fault confirmation results returned by the field control system and associates them with the candidate cause evaluation results to construct a diagnostic deviation sample.

[0209] After the station malfunction is resolved, the operator records the actual fault location and corresponding maintenance information in the distributed control system or production management execution system.

[0210] The closed-loop optimization module periodically reads the above-mentioned on-site handling records through the data interface and parses them into actual fault confirmation results. For the initial candidate cause set generated in step S50 any of the candidate reasons If it matches the fault record confirmed in the on-site handling record, the closed-loop optimization module will... If it does not match, then let .

[0211] The closed-loop optimization module extracts the evaluation index vectors of the candidate cause from the diagnostic basis data packet recorded in step S50. and the comprehensive correlation evaluation value previously output by the system. Only superscript here This is the transpose operator.

[0212] The closed-loop optimization module will evaluate the index vector. Comprehensive correlation evaluation value Confirmation results of actual faults Perform correlation to generate diagnostic deviation samples .

[0213] As on-site fault confirmation and handling records accumulate, multiple diagnostic deviation samples form a historical diagnostic deviation sample set, which can be used for subsequent evaluation weight coefficient updates.

[0214] Step S602: The closed-loop optimization module uses the diagnostic deviation samples to update the weight coefficients of each evaluation index in the comprehensive correlation evaluation function through the gradient descent algorithm.

[0215] The closed-loop optimization module uses comprehensive correlation evaluation values. Confirmation results of actual faults The differences between them are used as the basis for evaluating the updating of the weight coefficients, and the squared error is used to represent the loss corresponding to a single diagnostic deviation sample. Its mathematical formula is as follows:

[0216] ;

[0217] In the formula, These represent the weight coefficients that need to be optimized, corresponding to the values ​​in step S50. to ; Representative evaluation index vector The Middle The values ​​of each evaluation indicator.

[0218] The closed-loop optimization module calculates the partial derivatives of the loss function with respect to each weight coefficient, i.e., the gradient values:

[0219] ;

[0220] The closed-loop optimization module updates the step size based on the weights. Perform gradient descent updates and calculate the updated temporary weight coefficients. :

[0221] ;

[0222] In the formula, The weight update step size ranges from 0.001 to 0.01. Its value can be determined based on the verification results of historical diagnostic deviation samples and is used to control the magnitude of a single update of the evaluation weight coefficient.

[0223] To ensure that the updated evaluation weight coefficients remain positive and meet the normalization requirements, the closed-loop optimization module adopts the minimum weight lower bound. (Value is 0.01), the temporary weight coefficients are truncated and normalized to a lower bound, and the final updated weight coefficients are calculated. :

[0224] ;

[0225] Through the above weight update process, the evaluation weight coefficients in the comprehensive correlation evaluation function are corrected according to the difference between the comprehensive correlation evaluation results and the on-site fault confirmation results, and the corrected evaluation weight coefficients are used for the comprehensive correlation evaluation of subsequent candidate causes.

[0226] Step S603: The closed-loop optimization module writes the newly confirmed abnormal propagation cases and fault causes on-site into the historical abnormal event database, and recalculates the historical prior probabilities used in the comprehensive correlation evaluation function.

[0227] For abnormal events not yet recorded in the historical abnormal event database, after the cause of the on-site fault is confirmed, the closed-loop optimization module extracts the set of effective propagation paths corresponding to the abnormal event. The system also records the fault nodes confirmed on-site and writes the information as a new historical anomaly event record into the historical anomaly event database.

[0228] The closed-loop optimization module recalculates the historical prior probabilities corresponding to each anomaly cause category based on the updated historical anomaly event database. Let the total number of abnormal events recorded in the historical abnormal event database be... , and the reasons for being a candidate The cumulative number of historical on-site confirmation events belonging to the same abnormal cause category is .

[0229] To avoid directly setting the prior probability to zero for anomaly cause categories with few or no historical occurrences, the closed-loop optimization module uses the Laplace smoothing algorithm to recalculate the probability index. The update calculation formula is as follows:

[0230] ;

[0231] In the formula, This represents the total number of anomaly cause categories recorded in the historical anomaly event database.

[0232] When subsequent anomaly analysis generates candidate causes of the same anomaly category, the comprehensive correlation evaluation function in step S50 calls the updated historical prior probability. Participate in the comprehensive correlation evaluation, and use the frequency of on-site historical confirmation as a historical statistical basis for the evaluation of candidate causes.

[0233] To enable those skilled in the art to more clearly understand the purpose, technical solution, and advantages of this invention, the present invention will be further described in detail below with reference to specific application embodiments, real experimental test data, and corresponding drawings. It should be noted that the embodiments described herein are only for explaining the present invention and are not intended to limit the scope of protection of the present invention.

[0234] In this specific application scenario, the core process flow of the station includes: upstream buffer tank (node) ), imported electric valve (node) ), external centrifugal pump set (node) ), outlet check valve (node) ) and outlet flow meter (node) The medium is designed to flow in the following directions: to .

[0235] At a certain running moment The station's process topology construction module acquires real-time data. At this time, the inlet electric valve... Discrete operating state (Start), external centrifugal pump unit Discrete operating state (Operating), and the positive pressure difference condition is met between each node. The station process topology construction module determines the validity of the directed process edge propagation identifier between the above-mentioned equipment. All are 1.

[0236] In subsequent sampling cycles, the anomaly trigger determination module detected an anomaly in the outlet flow meter. Medium flow measurement From 500m 3 / h suddenly dropped to 120m 3 / h, fluid pressure measurement It dropped from 2.5 MPa to 1.1 MPa.

[0237] The abnormal trigger determination module calculates the relative pressure drop rate. (greater than the threshold) Although the relative increase rate of traffic did not surge, the absolute limit and the rate of change exceeded the limit. and All were triggered, and the abnormal triggering status value was calculated. The anomaly trigger determination module sets the outlet flow meter as the anomaly initiation node. It then generates a trigger signal and sends it to the anomaly propagation path analysis module.

[0238] The anomaly propagation path analysis module traverses downstream along the directed process edges whose propagation validity is marked as 1, calculating the affected downstream heating furnace nodes. Abnormal impact assessment value Substitute the device criticality weight. Parameter deviation , number of jumps (attenuation coefficient) ), time item Weight distribution Calculation This value is between 0.45 and 0.75. The anomaly propagation path analysis module will analyze the nodes. The affected area is defined and its distribution is output.

[0239] The reverse root cause analysis module starts from the anomaly initiation node. Tracing back to the opposite direction of the process flow generates an initial set of candidate causes.

[0240] This section focuses on analyzing two candidate reasons: Representative of external centrifugal pump sets Sudden mechanical failure caused the machine to stop; Representative of imported electric valves A malfunction in the control logic caused the valve to close incorrectly.

[0241] The initial comprehensive correlation evaluation weight coefficients were set by experts to be of equal weight distribution, i.e. to All are 0.2. Regarding the reasons for the candidates... The reverse root cause analysis module extracts various indicators for calculation. Time matching degree Process connectivity identifier Consistent direction of change indicator (Pump shutdown caused downstream pressure drop, consistent with on-site conditions); Simulation and measured waveforms and related indicators Historical prior probability .

[0242] Calculate the comprehensive correlation evaluation value At this point, there is no physical contradiction, and the penalty item... Correcting the score .

[0243] Reasons for being a candidate The calculation showed that the total score of its various indicators was relatively high. The reverse root cause analysis module extracted independent state feedback data and discovered that the independent valve position sensor in the field was feeding feedback from the electric valve. The physical opening is still ,and The assumed valve is closed presents a clear physical contradiction. This triggers a penalty mechanism, causing... Correcting the score .

[0244] Based on the preset high correlation threshold The reverse root cause analysis module determines Reasons for being a candidate (Pump set failure) is marked as a highly relevant candidate cause and a diagnostic basis data packet is output.

[0245] After receiving the actual handling log confirming the pump unit's main shaft fracture from on-site maintenance personnel, the closed-loop optimization module constructs a diagnostic deviation sample. (True label) , Substituting this into the gradient descent algorithm, with the learning rate... For example, regarding historical prior probability weights Perform single-step update calculation: gradient value Temporary weighting coefficient After lower limit truncation and normalization, the weight coefficients that accurately reflect this type of fault are adaptively increased, realizing closed-loop iteration of the diagnostic evaluation model.

[0246] To further illustrate the technical effects of this invention, the following verification and comparison are conducted using specific experimental data. This embodiment extracts the operational history data of a large integrated station from the past two years, constructs a standard test set containing 524 real equipment failures and operational anomalies, and performs offline playback verification.

[0247] Comparison group setup: Experimental group: This embodiment. Control group: Includes control group A and control group B. Control group A uses a traditional expert rule system, which performs anomaly diagnosis based on static logic tree matching; control group B uses a graph neural network model, which performs global node data feature transfer and calculation without process mechanism constraints.

[0248] The test results are as follows:

[0249] according to Figure 9 It can be seen that in the evaluation of the receiver operating characteristic (ROC) curve, the area under the curve (AUC) of control group A is 0.78. When faced with changes in station operating conditions, the static logic tree is difficult to adapt to dynamic boundary changes, has poor rule generalization ability, and leads to a high false positive rate. The area under the curve of control group B is 0.86. Due to the lack of physical constraints on the underlying hydraulic connectivity, the graph network model is easily affected by the parameters of nodes that are spatially close but hydraulically disconnected, thus producing false alarms. The area under the curve of the experimental group reaches 0.97. This embodiment integrates the propagation validity identification constraints of the dynamic directed process topology graph with the consistency verification of the simulation time-series prediction sequence, eliminating invalid propagation paths that do not meet the medium flow conditions from the physical mechanism level. While ensuring a high true positive rate, it suppresses the false positive rate to a low level, avoiding the problem of frequent false alarms in the field.

[0250] according to Figure 10 It can be seen that in the performance comparison of different methods in terms of average diagnosis time and fault location accuracy, the average fault location accuracy of control group A is only 82.4%. Although its search and matching time within known fixed rules is short, with an average diagnosis time of 0.8 seconds, the false negative rate for unknown faults is too high. The average fault location accuracy of control group B is improved to 89.1%. However, due to its indiscriminate message passing and iterative calculations across the entire graph network, the computational complexity expands exponentially, with an average diagnosis time as high as 3.5 seconds, which cannot meet the real-time response requirements of abnormal alarms in industrial stations. In contrast, the average fault location accuracy of the experimental group reaches 96.5%, and the average diagnosis time is only 1.2 seconds.

[0251] This embodiment utilizes the pressure difference determination of upstream and downstream nodes and the propagation effectiveness identifier composed of discrete operating states, combined with simulation trend consistency verification, to preemptively truncate unnecessary graph network traversal search branches. Simultaneously, this embodiment employs a physical contradiction penalty term for direct pruning, eliminating candidate causes that contradict the actual on-site conditions and reducing ineffective computational overhead.

[0252] Experimental test data show that this embodiment reduces computation time while ensuring diagnostic accuracy, and can meet the reliability and timeliness requirements of anomaly tracing in complex oil and gas pipeline networks and stations.

[0253] While specific embodiments of the present invention have been described above, those skilled in the art should understand that these specific embodiments are merely illustrative. Those skilled in the art can omit, substitute, and modify the details of the above methods and systems in various ways without departing from the principles and essence of the present invention. For example, combining the above method steps to perform substantially the same function and achieve substantially the same result using substantially the same method falls within the scope of the present invention.

Claims

1. A method for tracing the source of anomalies in oilfield stations based on full-station equilibrium simulation, characterized in that, Includes the following steps: Acquire multi-source real-time acquisition data and simulation data corresponding to the sampling time, and perform time alignment between the multi-source real-time acquisition data and the simulation data to construct a dynamic directed process topology graph composed of device nodes and directed process edges, and calculate the propagation validity identifier of each directed process edge; Extract the simulation time series prediction sequence from the full-station balanced simulation output, and establish a mapping relationship between the simulation time series prediction sequence and the corresponding equipment node in the dynamic directed process topology diagram; The parameters of the device node are monitored in real time, and the abnormal starting node is determined when the parameters of the device node meet the abnormal triggering conditions. Under the constraint of the propagation validity identifier, the path is traversed downstream from the abnormal starting node along the directed process edge. The simulation trend consistency is checked by combining the simulation timing prediction sequence mapped to the device node to determine the effective propagation path. The abnormal impact evaluation value of each device node on the effective propagation path is calculated, and the abnormal impact domain is divided and output according to the abnormal impact evaluation value. Based on the abnormal starting node, retrieve the status change information and related operation events of upstream associated equipment in the direction opposite to the flow of the process medium, generate a set of candidate causes, calculate the comprehensive correlation evaluation value of each candidate cause, and output a diagnostic basis data packet based on the sorting result of the comprehensive correlation evaluation value and the triggering status of the physical contradiction penalty item. The actual fault confirmation results fed back by the field control system are compared with the candidate cause evaluation results in the diagnostic basis data package to form a diagnostic deviation sample. Based on the diagnostic deviation sample, the evaluation weight coefficients in the comprehensive correlation evaluation function used to calculate the comprehensive correlation evaluation value are adaptively corrected.

2. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The calculation of the propagation validity identifier for each of the directed process edges includes: Based on the discrete operating status of the device nodes and the pressure difference between nodes, the propagation validity identifier of each directed process edge is calculated; specifically: For any directed process edge connecting an upstream node and a downstream node, if the upstream node is a valve-type device, determine the valve's open / closed state. If the valve is in a closed state or the positive pressure difference condition between the upstream and downstream nodes is not met, set the propagation validity flag to 0; if the valve is in an open state and the positive pressure difference condition is met, set the propagation validity flag to 1. If the upstream node is a pump-type booster device, the propagation effectiveness flag is set to 0 when it is in a shutdown state, and set to 1 when it is in a running state and under normal operating load.

3. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The step of extracting the simulation time series prediction sequence from the full-station balanced simulation output and establishing a mapping relationship between the simulation time series prediction sequence and the corresponding equipment nodes in the dynamic directed process topology diagram includes: Extract the original prediction sequence of process parameters for each computing node within the future time window, and perform dimensionless normalization on the original prediction sequence using the physical allowable upper limit and physical allowable lower limit of the process parameters; Based on the spatial physical coordinates of the computing node and the device node, a one-to-one mapping relationship is established by selecting the computing node closest to the corresponding device node; or the average value of the parameter sequences corresponding to multiple adjacent computing nodes is calculated to obtain the equivalent simulation result and establish a connection with the corresponding device node.

4. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The real-time monitoring of parameter changes of the device node, and the determination of the abnormal initiation node when the parameters of the device node meet the abnormal triggering conditions, includes: Extract key process parameters of equipment nodes and calculate absolute limit exceedance flags, rate of change limit exceedance flags, and pressure-flow combination anomaly flags respectively; When the relative pressure drop rate is greater than or equal to the pressure drop correlation threshold and the relative flow rate rise rate is greater than or equal to the flow surge correlation threshold, the pressure-flow combination anomaly flag is output as 1; When at least one abnormal trigger condition is met, the device node is determined to meet the abnormal trigger condition; when there are multiple device nodes that meet the abnormal trigger condition within the same data sampling period, they are sorted in descending order according to the degree of deviation of the change rate of the corresponding parameters of each node, and the device node with the largest degree of deviation of the change rate is selected as the abnormal starting node.

5. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, In the step of performing simulation trend consistency verification by combining the simulation timing prediction sequence mapped to the device node to determine the effective propagation path: For the device nodes on the potential propagation path generated by traversal, the normalized simulation time series prediction sequence mapped to the node is extracted, and the cosine similarity between the time difference vector and the abnormal change direction vector of the normalized simulation time series prediction sequence is calculated as the simulation trend consistency index corresponding to the node. If the simulation trend consistency index is less than the preset consistency threshold, it is determined that the trend consistency condition for abnormal propagation is not met, and the node and the downstream nodes after the node are removed from the potential propagation path, while the propagation branches that meet the conditions are retained to form the effective propagation path.

6. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The calculation of the anomaly impact evaluation value for each device node on the effective propagation path, including: Based on the real-time parameter deviation, propagation level, estimated transmission time, and device criticality weight of the corresponding device node, calculate the abnormal impact evaluation value corresponding to each device node. The real-time parameter deviation is the relative error between the current measured value and the normal operating condition reference value; The propagation level is characterized by the number of propagation level hops, which is the number of shortest topological edges between the corresponding device node and the node where the anomaly originates. The anomaly impact evaluation value decreases exponentially as the number of propagation level hops increases. The estimated transmission time is the time it takes for the medium to travel from the abnormal initiation node to the corresponding device node. The calculation of the abnormal impact evaluation value is affected by the ratio of the estimated transmission time to the maximum dwell time of the station process.

7. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The calculation of the comprehensive correlation evaluation value of each of the candidate causes includes: The evaluation indicators corresponding to the candidate causes, such as time matching degree, process connectivity identifier, change direction consistency identifier, simulation and measured waveform related indicators, and historical prior probability, are calculated respectively. The normalized weight coefficients corresponding to the above evaluation indicators are linearly weighted and summed through the comprehensive correlation evaluation function to obtain the comprehensive correlation evaluation value.

8. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 7, characterized in that, Based on the ranking results of the comprehensive correlation evaluation values ​​and the triggering status of the physical contradiction penalty items, a diagnostic basis data packet is output, including: The equipment state required for the candidate cause to be established is compared with the independent state feedback on site. When it is detected that the equipment state required for the candidate cause to be established is inconsistent with the independent state feedback on site and there is a physical contradiction, the physical contradiction penalty item is triggered, and the preset positive penalty constant is subtracted from the comprehensive correlation evaluation value to obtain the final corrected score. The final corrected score is divided into intervals using high and low correlation thresholds, and each candidate cause is assigned a corresponding related candidate cause label. These labels, along with the trigger records of the physical contradiction penalty items, are then output to the diagnostic basis data package.

9. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 1, characterized in that, The adaptive correction of the evaluation weight coefficients in the comprehensive correlation evaluation function used to calculate the comprehensive correlation evaluation value based on the diagnostic deviation samples includes: The difference between the comprehensive correlation evaluation value and the actual fault confirmation result is used as the basis for updating the evaluation weight coefficient, and a loss function expressed in terms of squared error is constructed. The partial derivatives of the loss function with respect to each weight coefficient are calculated using the gradient descent algorithm, and the temporary weight coefficients are calculated in combination with the weight update step size. The temporary weight coefficients are truncated and normalized using the minimum weight lower bound, and the finally updated weight coefficients are used for the comprehensive correlation evaluation of subsequent candidate causes.

10. The method for source tracing analysis of oilfield station anomaly influence domain based on full-station equilibrium simulation according to claim 9, characterized in that, After adaptively adjusting the evaluation weight coefficients, the following is also included: Newly confirmed cases of abnormal propagation and their causes are written into the historical abnormal event database. Using the Laplace smoothing algorithm, combined with the total number of abnormal cause categories recorded in the historical abnormal event database, the historical prior probability corresponding to each abnormal cause category is recalculated.