Abnormal flow measurement method and system for safe gas operation
By analyzing the interaction characteristics of gas pipeline node flow data and leakage, and calculating the flow abnormality probability, the problem of high false detection rate in the existing technology is solved, and more accurate gas leakage detection is achieved.
Patent Information
- Application Number
- CN202411116556.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-15
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-15
Smart Images

Figure CN118641124B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flow monitoring, and in particular to an abnormal flow measurement method and system for safe gas operation. Background Art
[0002] Gas operation refers to the installation, inspection, maintenance, and modification of gas pipelines and gas facilities. Since gas is flammable and explosive, once gas leaks or is improperly operated, it will cause fires, explosions, and other accidents. Therefore, gas operations must comply with regulations and standards and be carried out in a scientific, safe, and efficient manner.
[0003] In gas safety operations, the monitoring and measurement of abnormal gas flow in the pipeline is very important, which can help to timely detect pipeline leaks or other safety hazards; the principle of realizing gas pipeline leak detection through abnormal flow monitoring and measurement is: theoretically, if the gas pipeline is intact, the gas flow in it should be in a stable and non-fluctuating state, and once the pipeline leaks, it will cause the gas flow rate in the pipeline system to increase, so that the actual flow value measured by the flow meter exceeds the expected value under normal operating conditions. However, in reality, due to the aging of equipment in the pipeline system during use, even if the pipeline does not leak, the gas flow in the pipeline itself will fluctuate within a certain range, so the existing method of directly judging whether the pipeline is leaking based on the original gas flow data in the pipeline will have a high probability of false detection. Summary of the invention
[0004] In order to solve the technical problem that the existing method of directly judging whether the pipeline is leaking based on the original gas flow data in the pipeline has a high probability of false detection, the purpose of the present invention is to provide an abnormal flow measurement method and system for gas safety operation. The technical solution adopted is as follows:
[0005] A method for measuring abnormal flow rate in safe gas operation, comprising:
[0006] Obtain flow monitoring data at different nodes of the gas pipeline;
[0007] Based on the fluctuation of the flow monitoring data of each node and the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each node in different time periods is calculated;
[0008] Based on the abnormal flow probability of each node in different time periods, abnormal flow measurement for safe gas operation is achieved.
[0009] Furthermore, the acquisition of flow monitoring data of different nodes of the gas pipeline includes:
[0010] A node is set at a preset distance along the longitudinal direction of the gas pipeline, and a flow sensor is installed at each node to monitor the gas flow in the pipeline at the corresponding node;
[0011] According to the set sampling frequency and sampling period, the flow sensor is used to collect the gas flow data at each node in each sampling period according to the set sampling frequency to obtain the flow monitoring data of different nodes of the gas pipeline.
[0012] Furthermore, the fluctuation of the flow monitoring data of each node is combined with the mutual influence characteristics between nodes when the pipeline leaks, and the flow abnormality probability of each node in different time periods is calculated, including:
[0013] For the flow monitoring data of different nodes of the gas pipeline obtained in the current sampling period, the flow monitoring data of each node is sorted in time sequence, and then the sorted flow monitoring data of each node is divided into multiple segments in time sequence to obtain the flow monitoring data of each node in different time periods;
[0014] Based on the fluctuation of traffic monitoring data, the traffic data characteristics of each node in different time periods are calculated;
[0015] Based on the flow data characteristics of each node in different time periods and the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each node in different time periods is calculated.
[0016] Furthermore, based on the fluctuation of the traffic monitoring data, the traffic data characteristics of each node in different time periods are calculated, including:
[0017] For the flow monitoring data of the current node in different time periods, starting from the flow monitoring data corresponding to the m+1th time period, for the subsequent time periods, the data rising trend of the flow monitoring data corresponding to each time period is calculated respectively; wherein m is a preset integer value greater than 1;
[0018] Taking the current time period as the center, m time periods before and after it are selected as reference time periods;
[0019] The flow data characteristics of the current time period are calculated based on the data upward trend and numerical difference of the flow monitoring data corresponding to the current time period and the reference time period.
[0020] Furthermore, the calculation process of the data upward trend includes:
[0021] Obtain the instantaneous slope of each data in the flow monitoring data corresponding to each time period; use the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the baseline instantaneous slope corresponding to each data on the data baseline, and obtain the mean of the baseline instantaneous slopes corresponding to the data on the data baseline;
[0022] The data rising trend of the flow monitoring data corresponding to each time period is calculated by the following formula:
[0023] ;
[0024] in, Indicates the data rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the mean value of the instantaneous slope of the baseline corresponding to the data baseline of the flow monitoring data corresponding to the nth node in the i-th time period; represents the instantaneous slope of the jth data in the flow monitoring data corresponding to the nth node in the i-th time period; D represents the number of data in the flow monitoring data corresponding to the nth node in the i-th time period; Indicates taking the absolute value.
[0025] Furthermore, the calculation process of the flow data feature includes:
[0026] The autoregressive moving average model ARIMA is used to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the value of each data on the data baseline, and obtain the numerical mean on the data baseline, which is recorded as the baseline numerical mean;
[0027] The flow data characteristics of each time period are calculated using the following formula:
[0028] ;
[0029] in, Represents the traffic data characteristics of the nth node in the i-th time period; represents the normalization function; Indicates the characteristic performance of the traffic monitoring data corresponding to the nth node in the i-th time period; Indicates the data rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the baseline value mean of the traffic monitoring data corresponding to the nth node in the i-th time period; represents the maximum value of the characteristic performance of the flow monitoring data corresponding to all reference time periods corresponding to the i-th time period of the n-th node and the characteristic performance of the flow monitoring data corresponding to the i-th time period of the n-th node; Indicates the characteristic performance of the flow monitoring data corresponding to the rth reference time period corresponding to the i-th time period of the n-th node; m is a preset integer value greater than 1; Indicates taking the absolute value.
[0030] Furthermore, the flow data characteristics of each node in different time periods are combined with the mutual influence characteristics between nodes when the pipeline leaks to calculate the flow anomaly probability of each node in different time periods, including:
[0031] Number each node according to the distance between its location and the starting end of the pipeline;
[0032] Number each time period of each node in chronological order;
[0033] Construct a rectangular coordinate system; wherein the horizontal axis of the coordinate system represents the node number, the direction in which the node number increases is the positive direction of the horizontal axis, and the vertical axis of the coordinate system represents the time period number, the direction in which the time period number increases is the positive direction of the vertical axis;
[0034] The node number is used as the horizontal coordinate of the data point, and the time period number is used as the vertical coordinate of the data point. The data point corresponding to each time period of each node is plotted in the coordinate system;
[0035] The abnormal coefficient of each data point is calculated, and the abnormal points among all the data points in the coordinate system are screened out; wherein the abnormal point refers to the data point whose abnormal coefficient is greater than the first preset threshold; the calculation formula of the abnormal coefficient is as follows:
[0036] ;
[0037] in, represents the abnormal coefficient of the data point in the i-th time period corresponding to the n-th node in the coordinates; Represents the traffic data characteristics of the nth node in the i-th time period; Indicates the nth node Traffic data characteristics of each time period; represents the normalization function;
[0038] Based on the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each abnormal point is calculated. According to the number of the node corresponding to the current abnormal point and the number of the time period, the node and time period corresponding to the current abnormal point are determined. The flow anomaly probability of the current abnormal point is used as the flow anomaly probability of the node corresponding to the current abnormal point in the corresponding time period.
[0039] Furthermore, the flow anomaly probability of each abnormal point is calculated based on the mutual influence characteristics between nodes when the pipeline leaks, including:
[0040] In the coordinate system, for the current abnormal point whose traffic abnormality probability is to be calculated, the data points corresponding to each node are traversed along the left and right directions of the current abnormal point, and the nodes that are located on the left side of the current abnormal point and are continuous and contain the abnormal point, and the nodes that are located on the right side of the current abnormal point and are continuous and contain the abnormal point, are respectively selected as response nodes;
[0041] By selecting an outlier point from all data points corresponding to each response node, and then combining the outlier points corresponding to all selected response nodes with the current outlier point, all possible and non-repetitive outlier point combinations are obtained;
[0042] For each abnormal point combination, in the coordinate system, the abnormal points therein are sequentially connected along one direction of the horizontal axis to form a curve, and the curve corresponding to each abnormal point combination is used as a response curve corresponding to the current abnormal point. After the curves corresponding to all abnormal point combinations are drawn, multiple response curves corresponding to the current abnormal point are obtained;
[0043] All response curves are screened in the following manner: taking the current abnormal point as the center, the abnormal points in the current response curve are traversed along the left and right directions of the current abnormal point respectively. If the slope of each abnormal point located on the left side of the current abnormal point along the negative direction of the horizontal axis is negative and the slope of each abnormal point located on the right side of the current abnormal point along the positive direction of the horizontal axis is negative, then the current response curve is determined to be the abnormal curve corresponding to the current abnormal point;
[0044] Calculate the leakage response capability of each abnormal curve;
[0045] Based on the leakage response capability of each abnormal curve, the flow anomaly probability of the current abnormal point is calculated; if the current abnormal point has no corresponding abnormal curve, the flow anomaly probability of the current abnormal point is assigned a value of 0.
[0046] Furthermore, the calculation formula of the leakage response capability is:
[0047] ;
[0048] in, Indicates The leakage response capability of the xth abnormal curve corresponding to the abnormal point; Indicates The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the left of the outlier point; Indicates The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the right of the outlier point; Indicates The number of abnormal points in the xth abnormal curve corresponding to the abnormal point; Indicates taking the absolute value;
[0049] The leakage response capability based on each abnormal curve is used to calculate the flow abnormality probability of the current abnormal point, including:
[0050] According to the leakage response capabilities of each abnormal curve, the abnormal curve with the greatest leakage response capability is selected;
[0051] The traffic anomaly probability of the current anomaly point is calculated using the following formula:
[0052] ;
[0053] in, Indicates The probability of traffic anomaly at each abnormal point; represents an exponential function with natural number e as base; represents the normalization function; Indicates The maximum value of the leakage response capability of the abnormal curve corresponding to the abnormal point; Indicates The range of the flow data characteristics corresponding to all data points in the abnormal curve with the largest leakage response capability corresponding to the abnormal point.
[0054] An abnormal flow metering system for safe gas operation, comprising:
[0055] A data acquisition module is used to obtain flow monitoring data of different nodes of the gas pipeline;
[0056] The flow anomaly probability calculation module is used to calculate the flow anomaly probability of each node in different time periods based on the fluctuation of the flow monitoring data at each node and the mutual influence characteristics between nodes when the pipeline leaks;
[0057] The abnormal flow metering module is used to realize abnormal flow metering for gas safety operation based on the abnormal flow probability of each node in different time periods calculated by the abnormal flow probability calculation module.
[0058] The present invention has the following beneficial effects:
[0059] The present invention obtains the abnormal flow performance of the time period by analyzing the flow data performance characteristics within a local time period of any node in the pipeline, thereby avoiding the interference of fluctuations in actual flow data on monitoring results and improving the accuracy of abnormal flow monitoring; at the same time, based on the mutual influence characteristics between nodes when the pipeline leaks, the present invention constructs a two-dimensional coordinate system of node data and analyzes the data point characteristics therein to obtain the leakage response characteristics of the node, and combines the above-mentioned abnormal flow performance to obtain the probability of leakage, thereby avoiding the influence of the randomness of single node data characteristics on the identification of abnormal flow data segments, and eliminating the interference of response time between nodes on monitoring results, thereby improving the time of abnormal flow generation when leakage occurs and the positioning accuracy of the node. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1 A schematic diagram of the execution flow of the abnormal flow measurement method for gas safety operation;
[0062] Figure 2 Structural block diagram of the abnormal flow metering system for gas safety operations. DETAILED DESCRIPTION
[0063] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the abnormal flow metering method and system for safe gas operation proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present invention.
[0064] First embodiment
[0065] The specific scheme of the abnormal flow measurement method for safe gas operation provided by the present invention is described in detail below with reference to the accompanying drawings.
[0066] A method for measuring abnormal flow rate in gas safety operation; Figure 1 As shown, the execution steps of this method are as follows:
[0067] S1, obtain the flow monitoring data of different nodes of the gas pipeline.
[0068] Specifically, in this embodiment, the implementation process of the above S1 is as follows:
[0069] S11, setting a node at a preset distance along the longitudinal direction of the gas pipeline, and installing a flow sensor at each node to monitor the gas flow in the pipeline at the corresponding node;
[0070] The node spacing may be set based on field experience, and this embodiment does not impose any specific limitation on this. The flow sensor may be any existing flow sensor, such as a differential pressure flow meter, and this embodiment does not impose any specific limitation on this.
[0071] S12, according to the set sampling frequency and sampling period, using the flow sensor to collect the gas flow data at each node in each sampling period according to the set sampling frequency, to obtain the flow monitoring data of different nodes of the gas pipeline;
[0072] The sampling period set in this embodiment is one week, and the sampling frequency is 1 time / second.
[0073] S2, based on the fluctuation of the flow monitoring data of each node and the mutual influence characteristics between nodes when the pipeline leaks, calculate the flow anomaly probability of each node in different time periods.
[0074] Specifically, in this embodiment, the implementation process of the above S2 is as follows:
[0075] S21, for the flow monitoring data of different nodes of the gas pipeline obtained in the current sampling period, sort the flow monitoring data of each node in a time sequence, and then divide the sorted flow monitoring data of each node into D segments in time sequence, so as to obtain the flow monitoring data of each node in different time periods;
[0076] Wherein, D is a preset integer value, specifically, in this embodiment, its value is 100.
[0077] S22, based on the fluctuation of the traffic monitoring data, calculate the traffic data characteristics of each node in different time periods;
[0078] It should be noted that, according to prior knowledge, under normal conditions, the flow change in the pipeline is locally smooth, with a small but stable fluctuation overall; when a gas leak occurs, the flow change in the pipeline is the first to fluctuate, and the flow change at this time will break the overall balance of the flow data, and in this process, when the pressure inside the pipeline and the external pressure reach a balance in the region, the flow data will stop fluctuating; based on this, the data at the node can be analyzed, and the process is as follows:
[0079] S221, for the flow monitoring data of the current node in different time periods, starting from the flow monitoring data corresponding to the m+1th time period, for the subsequent time periods, respectively calculate the data rising trend of the flow monitoring data corresponding to each time period; wherein m is a preset integer value greater than 1, and the value of this embodiment is 3; the calculation process of the data rising trend includes:
[0080] S2211, obtaining the instantaneous slope of each data in the flow monitoring data corresponding to each time period; using the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, obtaining the baseline instantaneous slope corresponding to each data on the data baseline, and obtaining the mean of the baseline instantaneous slopes corresponding to the data on the data baseline;
[0081] When using the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, the flow monitoring data corresponding to each time period is arranged in chronological order to obtain a flow monitoring data sequence. Since the autoregressive moving average model ARIMA can predict the current value through the observation values of the previous few time points, a sliding window of a set size is constructed on the flow monitoring data sequence. The set size can be 1*5, and the sliding window is moved to the starting position of the flow monitoring data sequence, that is, the first flow monitoring data in the sliding window is the first flow monitoring data in the flow monitoring data sequence, and all the flow monitoring data in the flow monitoring data sequence located in the current sliding window are input into the autoregressive moving average model ARIMA, and the autoregressive moving average model ARIMA outputs a predicted value, and then the sliding window is continuously slid along the flow monitoring data sequence, sliding one flow monitoring data each time, until the last flow monitoring data in the sliding window is the last flow monitoring data in the flow monitoring data sequence, and all the flow monitoring data in the sliding window obtained after each sliding are input into the autoregressive moving average model ARIMA, and the autoregressive moving average model ARIMA outputs a predicted value. Arrange all the obtained predicted values in the order in which they are obtained, so as to obtain a predicted value sequence, which is the data baseline required. Then, determine the difference between each predicted value on the data baseline and its previous predicted value, and the difference is the baseline instantaneous slope corresponding to each predicted value on the data baseline. It should be understood that since the first predicted value on the data baseline does not have a previous predicted value, the first predicted value does not have a baseline instantaneous slope, and since the subsequent data upward trend of the flow monitoring data is evaluated by calculating the mean of all baseline instantaneous slopes, the absence of a baseline instantaneous slope for the first predicted value will not affect subsequent calculations.
[0082] S2212, calculate the data rising trend of the flow monitoring data corresponding to each time period by the following formula:
[0083] ;
[0084] in, Indicates the data rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the mean value of the instantaneous slope of the baseline corresponding to the data baseline of the flow monitoring data corresponding to the nth node in the i-th time period; represents the instantaneous slope of the jth data in the flow monitoring data corresponding to the nth node in the i-th time period; D represents the number of data in the flow monitoring data corresponding to the nth node in the i-th time period; Indicates taking the absolute value;
[0085] In this embodiment, the instantaneous slope value and the absolute value of the instantaneous slope value of the data at each sampling time in the local time period are accumulated to obtain: , the value range is between [-1,1]. The closer the value is to 1, the more traffic data in the corresponding time period are in an increasing trend, and the higher the upward trend of the traffic data in this time period is; at the same time, the larger the slope mean of the data baseline obtained in the local time period, the faster the rising rate of the traffic data in the corresponding time period is, indicating that the higher the trend of traffic increase is, the greater the possibility of traffic anomaly is at this time; combining the above two equations, we can get the upward trend of the data.
[0086] Furthermore, according to the above analysis, when a leak occurs, the abnormal growth of traffic data will gradually tend to balance. Therefore, it is necessary to judge the difference in traffic values in different time periods to reflect the abnormal traffic performance of a certain time period. The process is as follows:
[0087] S222, taking the current time period as the center, selecting m time periods before and after the current time period as reference time periods;
[0088] S223, calculating the flow data characteristics of the current time period according to the data rising trend and the value difference of the flow monitoring data corresponding to the current time period and the reference time period; the calculation process of the flow data characteristics includes:
[0089] S2231, using the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the value of each data on the data baseline, and obtain the value mean on the data baseline, which is recorded as the baseline value mean;
[0090] S2232, calculate the flow data characteristics of each time period by the following formula:
[0091] ;
[0092] in, Represents the traffic data characteristics of the nth node in the i-th time period; represents the normalization function; Indicates the characteristic performance of the traffic monitoring data corresponding to the nth node in the i-th time period; Indicates the data rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the baseline value mean of the traffic monitoring data corresponding to the nth node in the i-th time period; represents the maximum value of the characteristic performance of the flow monitoring data corresponding to all reference time periods corresponding to the i-th time period of the n-th node and the characteristic performance of the flow monitoring data corresponding to the i-th time period of the n-th node; Indicates the characteristic performance of the flow monitoring data corresponding to the rth reference time period corresponding to the i-th time period of the n-th node; m is a preset integer value greater than 1; Indicates taking the absolute value;
[0093] It should be noted that whether the flow data in the pipeline is abnormal can be judged according to its rising rate and the size of the actual monitoring value. Therefore, the data value of the baseline can be used to quantify the interference caused by the fluctuation of the actual monitoring flow data. At the same time, the different states of the rising rate of abnormal flow in different situations are considered, and the two are combined using the Euclidean norm to obtain the characteristic performance of the flow monitoring data. This value represents the characteristic performance of the corresponding time period. The higher the rising trend of the data and the higher the numerical mean of the baseline, the higher the possibility of abnormal flow data in the corresponding time period. In addition, by comparing the difference in the characteristic performance of the flow monitoring data between any surrounding reference time period and the current time period, it can be obtained , the larger the value, the more obvious the abnormal traffic performance is in the current time period compared with the reference time period; It reflects the prominence of the characteristics of the traffic monitoring data in the current time period among all reference time periods including the current time period itself. The larger the value, the higher the possibility of abnormal data in the current time period.
[0094] S23, based on the flow data characteristics of each node in different time periods and combined with the mutual influence characteristics between nodes when the pipeline leaks, the flow abnormality probability of each node in different time periods is calculated;
[0095] It should be noted that when a gas leak occurs in any section of the pipeline, the flow change generated is the highest at the leak. As the location of the monitoring node gradually moves away from the leak, the flow change caused by the leaking node gradually becomes smaller. Therefore, based on the overall monitoring data change performance between each node, the possible data anomaly degree of a single node location can be analyzed to obtain the flow anomaly probability of a single node in different time periods. The specific process is as follows:
[0096] S231, numbering each node according to the distance between the node location and the starting end of the pipeline;
[0097] S232, numbering each time period of each node in chronological order;
[0098] S233, constructing a rectangular coordinate system; wherein the horizontal axis of the coordinate system represents the node number, and the direction in which the node number increases is the positive direction of the horizontal axis; and the vertical axis of the coordinate system represents the time period number, and the direction in which the time period number increases is the positive direction of the vertical axis;
[0099] S234, using the node number as the horizontal coordinate of the data point and the time period number as the vertical coordinate of the data point, plotting the data point corresponding to each time period of each node in the coordinate system;
[0100] S235, calculating the abnormal coefficient of each data point, and screening out the abnormal points among all the data points in the coordinate system; wherein the abnormal point refers to the data point whose abnormal coefficient is greater than the first preset threshold; the first preset threshold can be set according to experience, and the value determines the precision of the screening process. The larger the value, the higher the screening accuracy of the abnormal points. Therefore, the first preset threshold can be set according to experience. Specifically, the first preset threshold is set to 0.7 in this embodiment;
[0101] The calculation formula of the abnormal coefficient is as follows:
[0102] ;
[0103] in, represents the abnormal coefficient of the data point in the i-th time period corresponding to the n-th node in the coordinates; Represents the traffic data characteristics of the nth node in the i-th time period; Indicates the nth node Traffic data characteristics of each time period; represents the normalization function;
[0104] It should be noted that, since there is no previous time period before the first time period, the abnormal coefficient of the data point in the first time period is set equal to the abnormal coefficient of the data point in the second time period.
[0105] S236, based on the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each abnormal point is calculated, and the node and time period corresponding to the current abnormal point are determined according to the number of the node corresponding to the current abnormal point and the number of the time period, and the flow anomaly probability of the current abnormal point is used as the flow anomaly probability of the node corresponding to the current abnormal point in the corresponding time period;
[0106] It should be noted that, according to the above analysis, if any data point in the coordinate system is a data point corresponding to a leaking node, the expressive characteristic values at other nodes on both sides thereof will have different degrees of lag in time, and there will be different degrees of expressive differences between the adjacent time periods before the respective nodes. At this time, if these affected time periods are connected in sequence, an arc convex along the negative direction of the vertical axis of the coordinate system can be obtained in the coordinate system; for this arc, in the process of extending from the point where the leakage may occur to both sides of the positive and negative directions of the horizontal axis, the two adjacent affected time periods are The expressiveness values between points tend to decrease gradually, and finally stop extending when they are approximately consistent with the surrounding points. This feature shows that the expressiveness gradually decreases as the distance between the node and the leakage point increases. The curvature of the arc shows the size of the response time of the node affected. The smaller the curvature, the faster the response time. According to the above analysis, for the point where the leakage occurs, the higher its expressiveness, the faster it affects the monitoring data of the surrounding nodes, and the smaller the curvature. Therefore, combined with the above analysis, the probability of anomalies occurring at a node corresponding to any point in a certain time period can be obtained. The process is as follows:
[0107] S2361, in the coordinate system, for the current abnormal point whose traffic abnormality probability is to be calculated, traverse the data points corresponding to each node along the left direction and the right direction of the current abnormal point, and select the nodes that are located on the left side of the current abnormal point and are continuous, and the nodes that are located on the right side of the current abnormal point and are continuous, as response nodes;
[0108] S2362, selecting an outlier point from all data points corresponding to each response node, and then combining the outliers corresponding to all selected response nodes with the current outlier point to obtain all possible and non-repetitive outlier point combinations;
[0109] S2363, for each abnormal point combination, in the coordinate system, sequentially connect the abnormal points along one direction of the horizontal axis to form a curve, and use the curve corresponding to each abnormal point combination as a response curve corresponding to the current abnormal point, and after drawing the curves corresponding to all abnormal point combinations, obtain multiple response curves corresponding to the current abnormal point;
[0110] S2364, screening all the response curves, the screening method is: taking the current abnormal point as the center, traversing the abnormal points in the current response curve along the left direction and the right direction of the current abnormal point respectively, if the slope of each abnormal point located on the left side of the current abnormal point traversed along the negative direction of the horizontal axis is negative and the slope of each abnormal point located on the right side of the current abnormal point traversed along the positive direction of the horizontal axis is negative, then the current response curve is determined to be the abnormal curve corresponding to the current abnormal point;
[0111] Among them, it should be noted that when the slope of the abnormal point in the response curve conforms to the above rule, it means that the corresponding response curve is convex along the negative direction of the vertical axis of the coordinate system, that is, the curve at this time conforms to the time lag that should exist in the data expressive characteristic values of other nodes on both sides of the node corresponding to the current abnormal point when a leak occurs. Based on this, all response curves corresponding to the current node can be screened to screen out the curve that can characterize whether the node corresponding to the current abnormal point is abnormal.
[0112] S2365, calculating the leakage response capability of each abnormal curve; the calculation formula of the leakage response capability is:
[0113] ;
[0114] in, Indicates The leakage response capability of the xth abnormal curve corresponding to the abnormal point; Indicates The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the left of the outlier point; Indicates The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the right of the outlier point; Indicates The number of abnormal points in the xth abnormal curve corresponding to the abnormal point; Indicates taking the absolute value;
[0115] It should be noted that since the slopes of the outliers on both sides of the current outlier are negative after screening, the average slopes of the outliers on both sides are accumulated and the absolute value is taken to obtain , this value reflects the curvature of the curve. The smaller the value, the smaller the curvature of the curve, which also indicates that the response rate of other nodes is faster, and the possibility of data anomaly in the current node is higher; at the same time, for any combination of abnormal points, the more abnormal points there are, the greater the impact of the abnormal traffic data at the node position corresponding to the current abnormal point on other nodes, indicating that the possibility of data anomaly is greater.
[0116] S2366, based on the leakage response capability of each abnormal curve, calculating the flow abnormality probability of the current abnormal point; wherein, if the current abnormal point has no corresponding abnormal curve, the flow abnormality probability of the current abnormal point is assigned a value of 0;
[0117] The leakage response capability based on each abnormal curve is used to calculate the flow abnormality probability of the current abnormal point, including:
[0118] S23661, based on the leakage response capabilities of the abnormal curves, screen out the abnormal curve with the greatest leakage response capability;
[0119] S23662, calculate the traffic anomaly probability of the current anomaly point using the following formula:
[0120] ;
[0121] in, Indicates The probability of traffic anomaly at each abnormal point; represents an exponential function with natural number e as base; represents the normalization function; Indicates The maximum value of the leakage response capability of the abnormal curve corresponding to the abnormal point; Indicates The range of the flow data characteristics corresponding to all data points in the abnormal curve with the largest leakage response capability corresponding to the abnormal point;
[0122] It reflects the influence of the leaked node on other nodes. The closer the value is to 1, the smaller the influence of the leaked node on other nodes and the smaller the probability of abnormal data in the current node.
[0123] The above method of directly judging whether a pipeline is leaking based on the original gas flow data in the pipeline has a technical problem that there is a high probability of false detection. In the process of obtaining the flow anomaly probability of each node in different time periods, when a gas leak occurs in any section of the pipeline, the flow change generated is the highest at the leakage point. As the location of the monitoring node gradually moves away from the leakage point, its impact on the flow change generated by other monitoring nodes gradually becomes smaller. Therefore, the possible data anomaly degree of a single node position can be analyzed based on the overall monitoring data change performance between the nodes. At the same time, based on the mutual influence characteristics between nodes during pipeline leakage, a two-dimensional coordinate system of node data is constructed. Assuming that any data point in the coordinate system is the data point corresponding to the leaking node, the performance characteristic values at other nodes on both sides of it will have different degrees of lag in time, and there will be different degrees of performance differences between the adjacent time periods before each node. At this time, if these affected time periods are connected in sequence, an arc convex along the negative direction of the vertical axis of the coordinate system can be obtained in the coordinate system; for this arc, in the process of extending from the point where the leakage may occur to both sides of the positive and negative directions of the horizontal axis, the performance value between the two adjacent affected points tends to gradually decrease, and finally stops extending when it is approximately consistent with the surrounding points. This feature shows that the performance gradually decreases with the increasing distance of the node from the leakage point; and the curvature of the arc shows the size of the response time of the node affected, and the smaller the curvature, the faster the response time. According to the above analysis, for the point where the leakage occurs, the higher its performance, the faster it affects the monitoring data of the surrounding nodes, and the smaller the curvature. Compared with the normal fluctuations of gas flow in the pipeline when there is no leakage due to normal conditions, equipment aging, etc., the data fluctuations generated by abnormal flow data have the above-mentioned obvious performance lag. Therefore, the fluctuations of the flow monitoring data based on each node, combined with the mutual influence characteristics between nodes when the pipeline leaks, can distinguish between normal and abnormal flow fluctuations, thereby obtaining an accurate flow abnormality probability. Furthermore, based on the flow abnormality probability, abnormal flow measurement for gas safety operations can be achieved, thereby improving the accuracy of pipeline leakage detection and avoiding the problem of false detection of gas leaks due to the inability to distinguish between normal and abnormal flow fluctuations.
[0124] S3, based on the abnormal flow probability of each node in different time periods, realizes the abnormal flow measurement for gas safety operation.
[0125] Specifically, in this embodiment, the implementation process of the above S3 is as follows:
[0126] S31, comparing the traffic anomaly probability of each node in different time periods with a second preset threshold value; wherein the second preset threshold value can be set based on experience, and in this embodiment, its value is 0.5;
[0127] S32, when the probability of flow anomaly is greater than the second preset threshold, it is determined that the corresponding node has flow anomaly in the corresponding time period, so as to locate the leakage position and leakage time, and count all the leakage locations and specific leakage times, and feed back the statistical data to the staff, notifying the staff to conduct actual inspection and maintenance of the corresponding nodes.
[0128] In summary, this embodiment provides an abnormal flow metering method for safe gas operation. The method obtains the abnormal flow performance of the time period by analyzing the flow data performance characteristics of any node in the pipeline within a local time period, thereby avoiding the interference of fluctuations in actual flow data on the monitoring results and improving the accuracy of abnormal flow monitoring. At the same time, based on the mutual influence characteristics between nodes when the pipeline leaks, the method constructs a two-dimensional coordinate system of node data and analyzes the data point characteristics therein to obtain the leakage response characteristics of the nodes. Combined with the above-mentioned abnormal flow performance, the probability of leakage is obtained, thereby avoiding the influence of the randomness of the data characteristics of a single node on the identification of abnormal flow data segments, and eliminating the interference of the response time between each node on the monitoring results, thereby improving the time of abnormal flow generation when a leak occurs and the positioning accuracy of the node.
[0129] Second embodiment
[0130] The specific scheme of an abnormal flow metering system for safe gas operation provided by the present invention is described in detail below with reference to the accompanying drawings.
[0131] The structure of the abnormal flow metering system for gas safety operation is as follows: Figure 2 As shown, it includes the following modules:
[0132] A data acquisition module is used to obtain flow monitoring data of different nodes of the gas pipeline;
[0133] The flow anomaly probability calculation module is used to calculate the flow anomaly probability of each node in different time periods based on the fluctuation of the flow monitoring data at each node and the mutual influence characteristics between nodes when the pipeline leaks;
[0134] The abnormal flow metering module is used to realize abnormal flow metering for gas safety operation based on the abnormal flow probability of each node in different time periods calculated by the abnormal flow probability calculation module.
[0135] It should be noted that, for the sake of convenience, Figure 2Only the main components of the system are shown. The abnormal flow metering system for safe gas operation of this embodiment corresponds to the abnormal flow metering method for safe gas operation of the first embodiment; wherein, the functions implemented by each functional module in the abnormal flow metering system for safe gas operation of this embodiment correspond to each process step in the abnormal flow metering method for safe gas operation of the first embodiment; therefore, no further description is given here.
[0136] In addition, it should be noted that the above is only a preferred embodiment of the present invention. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. And although the preferred embodiments of the present invention have been described, it is obvious to a person skilled in the art that once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for measuring abnormal flow rate in gas safety operation, characterized in that: include: Obtain flow monitoring data at different nodes of the gas pipeline; Based on the fluctuation of the flow monitoring data of each node and the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each node in different time periods is calculated; Based on the abnormal flow probability of each node in different time periods, abnormal flow measurement for gas safety operation is realized; The method of obtaining flow monitoring data of different nodes of the gas pipeline includes: A node is set at a preset distance along the longitudinal direction of the gas pipeline, and a flow sensor is installed at each node to monitor the gas flow in the pipeline at the corresponding node; According to the set sampling frequency and sampling period, the flow sensor is used to collect gas flow data at each node in each sampling period according to the set sampling frequency to obtain flow monitoring data of different nodes of the gas pipeline; The calculation of the flow anomaly probability of each node in different time periods based on the fluctuation of the flow monitoring data of each node and the mutual influence characteristics between nodes when the pipeline leaks includes: For the flow monitoring data of different nodes of the gas pipeline obtained in the current sampling period, the flow monitoring data of each node is sorted in time sequence, and then the sorted flow monitoring data of each node is divided into multiple segments in time sequence to obtain the flow monitoring data of each node in different time periods; Based on the fluctuation of traffic monitoring data, the traffic data characteristics of each node in different time periods are calculated; Based on the flow data characteristics of each node in different time periods and the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each node in different time periods is calculated; The flow data characteristics of each node in different time periods are calculated based on the fluctuation of the flow monitoring data, including: For the traffic monitoring data of the current node in different time periods, starting from the traffic monitoring data corresponding to the m+1th time period, for each subsequent time period, calculate the data upward trend of the traffic monitoring data corresponding to each time period; where m is a preset integer value greater than 1; Taking the current time period as the center, m time periods before and after it are selected as reference time periods; Calculate the flow data characteristics of the current time period based on the data upward trend and numerical difference of the flow monitoring data corresponding to the current time period and the reference time period; The calculation process of the data upward trend includes: Obtain the instantaneous slope of each data in the flow monitoring data corresponding to each time period; use the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the baseline instantaneous slope corresponding to each data on the data baseline, and obtain the mean of the baseline instantaneous slopes corresponding to the data on the data baseline; The upward trend of the traffic monitoring data corresponding to each time period is calculated using the following formula: ; in, Indicates the rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the mean value of the instantaneous slope of the baseline corresponding to the flow monitoring data of the nth node in the i-th time period; represents the instantaneous slope of the jth data in the flow monitoring data corresponding to the nth node in the i-th time period; D represents the number of data in the flow monitoring data corresponding to the nth node in the i-th time period; Indicates taking the absolute value; The calculation process of the traffic data characteristics includes: The autoregressive moving average (ARIMA) model is used to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the value of each data on the data baseline, and obtain the numerical mean of the data baseline, which is recorded as the baseline numerical mean; The traffic data characteristics of each time period are calculated using the following formula: ; in, Represents the traffic data characteristics of the nth node in the i-th time period; represents the normalization function; Indicates the characteristic performance of the traffic monitoring data corresponding to the nth node in the i-th time period; Indicates the rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the baseline value mean of the traffic monitoring data corresponding to the nth node in the i-th time period; The maximum value among the characteristic performances of the flow monitoring data corresponding to all reference time periods corresponding to the i-th time period of the n-th node and the characteristic performances of the flow monitoring data corresponding to the i-th time period of the n-th node; Indicates the characteristic performance of the flow monitoring data corresponding to the rth reference time period corresponding to the i-th time period of the n-th node; m is a preset integer value greater than 1; Indicates taking the absolute value; The calculation of the flow anomaly probability of each node in different time periods based on the flow data characteristics of each node in different time periods and the mutual influence characteristics between nodes when the pipeline leaks includes: Number each node according to its distance from the starting end of the pipeline; Number each time period of each node in chronological order; Construct a rectangular coordinate system; wherein the horizontal axis of the coordinate system represents the node number, and the direction of increasing node number is the positive direction of the horizontal axis; the vertical axis of the coordinate system represents the time period number, and the direction of increasing time period number is the positive direction of the vertical axis; The node number is used as the horizontal coordinate of the data point, and the time period number is used as the vertical coordinate of the data point. The data point corresponding to each time period of each node is plotted in the coordinate system. Calculate the anomaly coefficient of each data point and filter out the anomaly points among all the data points in the coordinate system; wherein, the anomaly point refers to the data point whose anomaly coefficient is greater than the first preset threshold; the calculation formula of the anomaly coefficient is as follows: ; in, represents the abnormal coefficient of the data point in the i-th time period corresponding to the n-th node in the coordinates; Represents the traffic data characteristics of the nth node in the i-th time period; Indicates the nth node Traffic data characteristics of each time period; represents the normalization function; Based on the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each abnormal point is calculated. According to the node number and time period number corresponding to the current abnormal point, the node and time period corresponding to the current abnormal point are determined. The flow anomaly probability of the current abnormal point is used as the flow anomaly probability of the node corresponding to the current abnormal point in the corresponding time period; The calculation of the flow anomaly probability of each abnormal point based on the mutual influence characteristics between nodes when the pipeline leaks includes: In the coordinate system, for the current abnormal point whose traffic abnormality probability is to be calculated, the data points corresponding to each node are traversed along the left and right directions of the current abnormal point, and the nodes that contain abnormal points and are continuous to the left of the current abnormal point and the nodes that contain abnormal points and are continuous to the right of the current abnormal point are respectively screened out as response nodes; By selecting an outlier from all data points corresponding to each response node, and then combining the outlier points corresponding to all selected response nodes with the current outlier point, all possible and non-repeated outlier point combinations are obtained; For each abnormal point combination, in the coordinate system, the abnormal points are sequentially connected along one direction of the horizontal axis to form a curve, and the curve corresponding to each abnormal point combination is used as a response curve corresponding to the current abnormal point. After the curves corresponding to all abnormal point combinations are plotted, multiple response curves corresponding to the current abnormal point are obtained; All response curves are screened in the following manner: with the current outlier as the center, the outliers in the current response curve are traversed along the left and right directions of the current outlier respectively. If the slope of each outlier located to the left of the current outlier along the negative direction of the horizontal axis is negative and the slope of each outlier located to the right of the current outlier along the positive direction of the horizontal axis is negative, then the current response curve is determined to be the outlier curve corresponding to the current outlier; Calculate the leakage response capability of each abnormal curve; Based on the leakage response capability of each abnormal curve, the flow abnormality probability of the current abnormal point is calculated; if the current abnormal point has no corresponding abnormal curve, the flow abnormality probability of the current abnormal point is assigned to 0; The calculation formula of the leakage response capability is: ; in, Indicates the The leakage response capability of the xth abnormal curve corresponding to the abnormal point; Indicates the The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the left of the outlier point; Indicates the The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the right of the outlier point; Indicates the The number of abnormal points in the x-th abnormal curve corresponding to the abnormal point; Indicates taking the absolute value; The calculation of the flow anomaly probability of the current anomaly point based on the leakage response capability of each anomaly curve includes: According to the leakage response capabilities of each abnormal curve, the abnormal curve with the greatest leakage response capability is selected; The traffic anomaly probability of the current anomaly point is calculated using the following formula: ; in, Indicates the The probability of traffic anomaly at each abnormal point; represents the exponential function with the natural number e as the base; represents the normalization function; Indicates the The maximum value of the leakage response capability of the abnormal curve corresponding to the abnormal point; Indicates the The range of the flow data characteristics corresponding to all data points in the abnormal curve with the largest leakage response capability corresponding to the abnormal point is 2. An abnormal flow metering system for gas safety operation, characterized in that: include: Data acquisition module, used to obtain flow monitoring data of different nodes of the gas pipeline; The flow anomaly probability calculation module is used to calculate the flow anomaly probability of each node in different time periods based on the fluctuation of the flow monitoring data at each node and the mutual influence characteristics between nodes when the pipeline leaks; An abnormal flow metering module is used to realize abnormal flow metering for gas safety operation based on the abnormal flow probability of each node in different time periods calculated by the abnormal flow probability calculation module; The method of obtaining flow monitoring data of different nodes of the gas pipeline includes: A node is set at a preset distance along the longitudinal direction of the gas pipeline, and a flow sensor is installed at each node to monitor the gas flow in the pipeline at the corresponding node; According to the set sampling frequency and sampling period, the flow sensor is used to collect gas flow data at each node in each sampling period according to the set sampling frequency to obtain flow monitoring data of different nodes of the gas pipeline; The calculation of the flow anomaly probability of each node in different time periods based on the fluctuation of the flow monitoring data of each node and the mutual influence characteristics between nodes when the pipeline leaks includes: For the flow monitoring data of different nodes of the gas pipeline obtained in the current sampling period, the flow monitoring data of each node is sorted in time sequence, and then the sorted flow monitoring data of each node is divided into multiple segments in time sequence to obtain the flow monitoring data of each node in different time periods; Based on the fluctuation of traffic monitoring data, the traffic data characteristics of each node in different time periods are calculated; Based on the flow data characteristics of each node in different time periods and the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each node in different time periods is calculated; The flow data characteristics of each node in different time periods are calculated based on the fluctuation of the flow monitoring data, including: For the traffic monitoring data of the current node in different time periods, starting from the traffic monitoring data corresponding to the m+1th time period, for each subsequent time period, calculate the data upward trend of the traffic monitoring data corresponding to each time period; where m is a preset integer value greater than 1; Taking the current time period as the center, m time periods before and after it are selected as reference time periods; Calculate the flow data characteristics of the current time period based on the data upward trend and numerical difference of the flow monitoring data corresponding to the current time period and the reference time period; The calculation process of the data upward trend includes: Obtain the instantaneous slope of each data in the flow monitoring data corresponding to each time period; use the autoregressive moving average model ARIMA to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the baseline instantaneous slope corresponding to each data on the data baseline, and obtain the mean of the baseline instantaneous slopes corresponding to the data on the data baseline; The upward trend of the traffic monitoring data corresponding to each time period is calculated using the following formula: ; in, Indicates the rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the mean value of the instantaneous slope of the baseline corresponding to the flow monitoring data of the nth node in the i-th time period; represents the instantaneous slope of the jth data in the flow monitoring data corresponding to the nth node in the i-th time period; D represents the number of data in the flow monitoring data corresponding to the nth node in the i-th time period; Indicates taking the absolute value; The calculation process of the traffic data characteristics includes: The autoregressive moving average (ARIMA) model is used to obtain the data baseline of the flow monitoring data corresponding to each time period, obtain the value of each data on the data baseline, and obtain the numerical mean of the data baseline, which is recorded as the baseline numerical mean; The traffic data characteristics of each time period are calculated using the following formula: ; in, Represents the traffic data characteristics of the nth node in the i-th time period; represents the normalization function; Indicates the characteristic performance of the traffic monitoring data corresponding to the nth node in the i-th time period; Indicates the rising trend of the traffic monitoring data corresponding to the nth node in the i-th time period; It represents the baseline value mean of the traffic monitoring data corresponding to the nth node in the i-th time period; The maximum value among the characteristic performances of the flow monitoring data corresponding to all reference time periods corresponding to the i-th time period of the n-th node and the characteristic performances of the flow monitoring data corresponding to the i-th time period of the n-th node; Indicates the characteristic performance of the flow monitoring data corresponding to the rth reference time period corresponding to the i-th time period of the n-th node; m is a preset integer value greater than 1; Indicates taking the absolute value; The calculation of the flow anomaly probability of each node in different time periods based on the flow data characteristics of each node in different time periods and the mutual influence characteristics between nodes when the pipeline leaks includes: Number each node according to its distance from the starting end of the pipeline; Number each time period of each node in chronological order; Construct a rectangular coordinate system; wherein the horizontal axis of the coordinate system represents the node number, and the direction of increasing node number is the positive direction of the horizontal axis; the vertical axis of the coordinate system represents the time period number, and the direction of increasing time period number is the positive direction of the vertical axis; The node number is used as the horizontal coordinate of the data point, and the time period number is used as the vertical coordinate of the data point. The data point corresponding to each time period of each node is plotted in the coordinate system. Calculate the anomaly coefficient of each data point and filter out the anomaly points among all the data points in the coordinate system; wherein, the anomaly point refers to the data point whose anomaly coefficient is greater than the first preset threshold; the calculation formula of the anomaly coefficient is as follows: ; in, represents the abnormal coefficient of the data point in the i-th time period corresponding to the n-th node in the coordinates; Represents the traffic data characteristics of the nth node in the i-th time period; Indicates the nth node Traffic data characteristics of each time period; represents the normalization function; Based on the mutual influence characteristics between nodes when the pipeline leaks, the flow anomaly probability of each abnormal point is calculated. According to the node number and time period number corresponding to the current abnormal point, the node and time period corresponding to the current abnormal point are determined. The flow anomaly probability of the current abnormal point is used as the flow anomaly probability of the node corresponding to the current abnormal point in the corresponding time period; The calculation of the flow anomaly probability of each abnormal point based on the mutual influence characteristics between nodes when the pipeline leaks includes: In the coordinate system, for the current abnormal point whose traffic abnormality probability is to be calculated, the data points corresponding to each node are traversed along the left and right directions of the current abnormal point, and the nodes that contain abnormal points and are continuous to the left of the current abnormal point and the nodes that contain abnormal points and are continuous to the right of the current abnormal point are respectively screened out as response nodes; By selecting an outlier from all data points corresponding to each response node, and then combining the outlier points corresponding to all selected response nodes with the current outlier point, all possible and non-repeated outlier point combinations are obtained; For each abnormal point combination, in the coordinate system, the abnormal points are sequentially connected along one direction of the horizontal axis to form a curve, and the curve corresponding to each abnormal point combination is used as a response curve corresponding to the current abnormal point. After the curves corresponding to all abnormal point combinations are plotted, multiple response curves corresponding to the current abnormal point are obtained; All response curves are screened in the following manner: with the current outlier as the center, the outliers in the current response curve are traversed along the left and right directions of the current outlier respectively. If the slope of each outlier located to the left of the current outlier along the negative direction of the horizontal axis is negative and the slope of each outlier located to the right of the current outlier along the positive direction of the horizontal axis is negative, then the current response curve is determined to be the outlier curve corresponding to the current outlier; Calculate the leakage response capability of each abnormal curve; Based on the leakage response capability of each abnormal curve, the flow abnormality probability of the current abnormal point is calculated; if the current abnormal point has no corresponding abnormal curve, the flow abnormality probability of the current abnormal point is assigned to 0; The calculation formula of the leakage response capability is: ; in, Indicates the The leakage response capability of the xth abnormal curve corresponding to the abnormal point; Indicates the The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the left of the outlier point; Indicates the The xth abnormal curve corresponding to the abnormal point is located at The mean slope of the data points on the curve to the right of the outlier point; Indicates the The number of abnormal points in the x-th abnormal curve corresponding to the abnormal point; Indicates taking the absolute value; The calculation of the flow anomaly probability of the current anomaly point based on the leakage response capability of each anomaly curve includes: According to the leakage response capabilities of each abnormal curve, the abnormal curve with the greatest leakage response capability is selected; The traffic anomaly probability of the current anomaly point is calculated using the following formula: ; in, Indicates the The probability of traffic anomaly at each abnormal point; represents the exponential function with the natural number e as the base; represents the normalization function; Indicates the The maximum value of the leakage response capability of the abnormal curve corresponding to the abnormal point; Indicates the The range of the flow data characteristics corresponding to all data points in the abnormal curve with the largest leakage response capability corresponding to the abnormal point is
