Long-distance pipeline leakage monitoring method and device based on pressure and flow rate changes
By analyzing the pressure and flow rate trends of long-distance pipelines, and using cumulative deviation and standard deviation to determine whether the pipeline is leaking, the problem of unreliable leak monitoring in existing technologies has been solved, enabling accurate monitoring of long-distance pipelines and reducing the risk of accidents.
Patent Information
- Application Number
- CN202510503012.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2045-04-22
AI Technical Summary
The lack of reliable methods for real-time monitoring of leaks in long-distance pipelines under current technology increases the risk of potential economic losses, fires, explosions, and environmental pollution.
By acquiring pipeline pressure and flow data, analyzing pressure and flow change trends, using cumulative deviation and standard deviation to determine whether the pipeline is leaking, and combining pressure and flow change trends for accurate monitoring.
It enables accurate and reliable monitoring of leaks in long-distance pipelines, improves the timeliness and accuracy of leak detection, and reduces the risk of accidents.
Smart Images

Figure CN120176034B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computers, and particularly relates to a long-distance pipeline leakage monitoring method and device based on pressure and flow changes and a storage medium. BACKGROUND
[0002] Long-distance crude oil and product oil pipelines have long distances and high pressures, and pass through complex natural and social environments, so are prone to leakage accidents due to reasons such as punching for oil stealing, third-party damage (mechanical excavation), geological disasters and corrosion perforation. Pipeline leakage not only can cause great economic losses, but also can cause fire and explosion accidents, resulting in serious personnel casualties or environmental pollution. In order to ensure the safe and stable operation of the pipeline, it is necessary to monitor pipeline leakage.
[0003] At present, there is a lack of a reliable leakage monitoring method for real-time monitoring of pipeline leakage. SUMMARY
[0004] The present application aims to provide a long-distance pipeline leakage monitoring method and device based on pressure and flow changes and a storage medium, and aims to solve the technical problem of unreliable leakage monitoring in the related art.
[0005] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:
[0006] The present application provides a long-distance pipeline leakage monitoring method based on pressure and flow changes, comprising:
[0007] Obtaining pipeline pressure data and pipeline flow data, the pipeline pressure data comprising pipeline upstream pressure collection data, pipeline downstream pressure collection data, pipeline upstream pressure prediction data and pipeline downstream pressure prediction data, the pipeline flow data comprising pipeline upstream flow data in a first time period and pipeline downstream flow data in the first time period; the pipeline upstream / downstream flow data comprising first pipeline flow data;
[0008] Determining a pipeline pressure change trend based on the prediction data and the collection data in the pipeline pressure data, the pipeline pressure change trend comprising an upstream pressure change trend and a downstream pressure change trend;
[0009] Obtaining a mean value of second pipeline flow data and a standard deviation of the second pipeline flow data, and determining a cumulative deviation of the first pipeline flow data based on the mean value, the standard deviation and the first pipeline flow data; the second pipeline flow data being pipeline upstream / downstream flow data other than the first pipeline flow data in all pipeline upstream / downstream flow data;
[0010] Based on the cumulative deviation of the first pipeline flow data, the upstream / downstream flow change trend of the pipeline within the first time period is determined; the pipeline flow change trend includes the upstream flow change trend and the downstream flow change trend.
[0011] Determine whether the pipeline is leaking based on the trends in pipeline pressure and / or pipeline flow.
[0012] In this application, by accumulating the deviation, it is possible to reflect the small but continuous trend in the flow signal change trend. Furthermore, by combining the pressure change trend, it is possible to accurately and reliably determine whether the pipeline is leaking.
[0013] In some embodiments, determining the pipeline pressure change trend based on predicted and acquired data from pipeline pressure data includes:
[0014] Based on the relationship between the magnitude of the upstream pressure data collected from the pipeline and the predicted upstream pressure data, the trend of upstream pressure change is determined.
[0015] The downstream pressure change trend is determined by the relationship between the numerical values of the downstream pressure data collected and the predicted downstream pressure data.
[0016] In some embodiments, acquiring collected data from pipeline pressure data includes:
[0017] Collect multiple pressure values according to a preset frequency and preset duration;
[0018] Calculate the mean of multiple pressure values and use the mean as the collected data.
[0019] In some embodiments, the first pipeline flow data includes multiple values; the cumulative deviation of the first pipeline flow data is the mean of the cumulative deviations corresponding to the multiple values; determining the cumulative deviation of the first pipeline flow data based on the mean, standard deviation, and the first pipeline flow data includes:
[0020] For the first value among multiple values, obtain the cumulative deviation corresponding to the second value, and determine the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation, so as to obtain the cumulative deviation of each of the multiple values; the first value and the second value are values among multiple values, and the collection point of the first value is the next collection point after the collection point of the second value.
[0021] If there are no sampling points before the sampling point of the first value, the preset cumulative deviation is determined as the cumulative deviation of the first value.
[0022] In some embodiments, determining the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation includes:
[0023] Calculate the first sum and the second sum; the first sum is the sum of the cumulative deviation corresponding to the second value and the first value; the second sum is the sum of the mean and the target standard deviation; the target standard deviation is the product of the standard deviation and the preset coefficient.
[0024] Subtracting the second sum from the first sum yields the cumulative deviation corresponding to the first value.
[0025] In some embodiments, the method further includes:
[0026] After determining the cumulative deviation of the first pipeline flow data, the mean and standard deviation of the third pipeline flow data are determined based on the first and second pipeline flow data. The mean and standard deviation of the third pipeline flow data are used to determine the cumulative deviation of the fourth pipeline flow data. The fourth pipeline flow data is the data collected in the next time period after the first time period.
[0027] In some embodiments, determining the pipeline flow rate change trend within a first time period based on the cumulative deviation of the first pipeline flow rate data includes:
[0028] Obtain the cumulative deviation of pipeline flow data within the second time period;
[0029] Calculate the difference between the cumulative deviation of the pipeline flow data in the second time period and the cumulative deviation of the pipeline flow data in the first time period;
[0030] If the cumulative deviation of the pipeline flow data in the second time period is greater than the cumulative deviation of the pipeline flow data in the first time period, and the difference is greater than the first threshold, the pipeline flow change trend in the first time period is determined to be an upward trend.
[0031] If the cumulative deviation of the pipeline flow data in the second time period is less than the cumulative deviation of the pipeline flow data in the first time period, and the difference is greater than the first threshold, then the pipeline flow change trend in the first time period is determined to be a downward trend.
[0032] In some embodiments, determining whether a pipeline is leaking based on pipeline pressure change trends and / or pipeline flow rate change trends includes:
[0033] When both upstream and downstream pressure trends are decreasing, a pipeline leak is identified.
[0034] A pipeline leak is identified when both upstream and downstream pressure trends are decreasing, upstream flow rate is increasing, and / or downstream flow rate is decreasing.
[0035] In some embodiments, this application provides an electronic device including: a processor and a memory configured to store processor-executable instructions; wherein the processor is configured to execute the instructions to implement any of the alternative methods described above.
[0036] In some embodiments, this application provides a computer-readable storage medium storing instructions that, when executed by an electronic device, enable the electronic device to perform any of the optional methods described above. Attached Figure Description
[0037] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0038] Figure 1 A schematic flowchart of a long-distance pipeline leakage monitoring method based on pressure and flow rate changes provided in this application;
[0039] Figure 2 A schematic diagram of the architecture of a long-distance pipeline leakage monitoring system based on pressure and flow rate changes provided in this application;
[0040] Figure 3 A schematic diagram of a data analysis and processing flow provided in this application;
[0041] Figure 4 This application provides a structural schematic diagram of a long-distance pipeline leakage monitoring device based on pressure and flow rate changes. Detailed Implementation
[0042] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0043] In the description of this application, it should be understood that the terms "upper," "lower," "left," "right," "front," "rear," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or relative positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and for simplification, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Unless otherwise specified, the above-mentioned orientational descriptions can be flexibly set in practical applications, provided that the relative positional relationships shown in the accompanying drawings are satisfied.
[0044] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0045] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "installation," "connection," "linking," and "communication" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection. They can refer to a direct connection or an indirect connection through an intermediate medium, or a connection within two components. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0046] In embodiments of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, article, or apparatus that includes that element.
[0047] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0048] For example, the electronic device executing the long-distance pipeline leakage monitoring method based on pressure and flow changes provided in this application embodiment can be a mobile phone, tablet computer, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device. This application embodiment does not impose any special limitations on the specific form of the electronic device. It can interact with the user through one or more methods such as a keyboard, touchpad, touchscreen, remote control, voice interaction, or handwriting device.
[0049] In the description of this specification, specific features, structures, materials, or characteristics may be combined in any suitable manner in one or more embodiments or examples.
[0050] like Figure 1 As shown, an embodiment of this application provides a method for monitoring leakage in long-distance pipelines based on pressure and flow rate changes, including steps S101-S105:
[0051] S101. Obtain pipeline pressure data and pipeline flow data.
[0052] Pipeline pressure data includes upstream pressure data, downstream pressure data, upstream pressure forecast data, and downstream pressure forecast data. Pipeline flow data includes upstream flow data and downstream flow data within a first time period. The upstream / downstream flow data includes the first pipeline flow data.
[0053] S102. Based on the predicted and collected data in the pipeline pressure data, determine the pipeline pressure change trend.
[0054] The pipeline pressure change trend includes the upstream pressure change trend and the downstream pressure change trend.
[0055] S103. Obtain the mean and standard deviation of the second pipeline flow data, and determine the cumulative deviation of the first pipeline flow data based on the mean, standard deviation and the first pipeline flow data.
[0056] The second pipeline flow data consists of the upstream / downstream flow data of all pipelines, excluding the first pipeline flow data.
[0057] S104. Based on the cumulative deviation of the first pipeline flow data, determine the upstream / downstream flow change trend of the pipeline within the first time period.
[0058] Pipeline flow rate trends include upstream flow rate trends and downstream flow rate trends.
[0059] S105. Determine whether the pipeline is leaking based on the trend of pipeline pressure change and / or pipeline flow change.
[0060] It should be understood that by accumulating the deviation, it is possible to reflect the small but continuous trend in the flow signal. Furthermore, by combining it with the pressure change trend, it is possible to accurately and reliably determine whether the pipeline is leaking.
[0061] In some embodiments, determining the pipeline pressure change trend based on predicted and collected pipeline pressure data includes: determining the upstream pressure change trend based on the magnitude relationship between the collected upstream pressure data and the predicted upstream pressure data; and determining the downstream pressure change trend based on the magnitude relationship between the collected downstream pressure data and the predicted downstream pressure data. By comparing the upstream and downstream pressure predictions with the actual data in real time, abnormal trends can be quickly identified, improving the timeliness of leak detection.
[0062] In some embodiments, acquiring collected data from pipeline pressure data includes: acquiring multiple pressure values at a preset frequency and for a preset duration; calculating the average of the multiple pressure values; and determining the average as the collected data. Averaging reduces interference from single-acquisition errors, ensuring the reliability of the pressure data.
[0063] In some embodiments, the first pipeline flow data includes multiple values; the cumulative deviation of the first pipeline flow data is the average of the cumulative deviations corresponding to the multiple values; determining the cumulative deviation of the first pipeline flow data based on the mean, standard deviation, and the first pipeline flow data includes: for a first value among the multiple values, obtaining the cumulative deviation corresponding to a second value, and determining the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation, so as to obtain the cumulative deviation of each of the multiple values; the first value and the second value are values among the multiple values, and the collection point of the first value is the next collection point after the collection point of the second value; if there is no collection point before the collection point of the first value, the preset cumulative deviation is determined as the cumulative deviation of the first value.
[0064] In some embodiments, determining the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation includes: calculating a first sum and a second sum; the first sum is the sum between the cumulative deviation corresponding to the second value and the first value; the second sum is the sum between the mean and the target standard deviation; the target standard deviation is the product of the standard deviation and a preset coefficient; and subtracting the second sum from the first sum yields the cumulative deviation corresponding to the first value.
[0065] In some embodiments, the method further includes: after determining the cumulative deviation of the first pipeline flow data, determining the mean and standard deviation of the third pipeline flow data based on the first and second pipeline flow data; the mean and standard deviation of the third pipeline flow data are used to determine the cumulative deviation of the fourth pipeline flow data; the fourth pipeline flow data is data collected in the next time period after the first time period. Thus, by dynamically updating the standard deviation and mean used to determine the cumulative deviation, the reliability and accuracy of subsequently determining the cumulative deviation of the fourth pipeline flow data can be guaranteed.
[0066] In some embodiments, determining the pipeline flow rate change trend within a first time period based on the cumulative deviation of the first pipeline flow rate data includes: obtaining the cumulative deviation of the pipeline flow rate data within a second time period; calculating the difference between the cumulative deviation of the pipeline flow rate data within the second time period and the cumulative deviation of the first pipeline flow rate data; if the cumulative deviation of the pipeline flow rate data within the second time period is greater than the cumulative deviation of the first pipeline flow rate data, and the difference is greater than a first threshold, the pipeline flow rate change trend within the first time period is determined to be an upward trend; if the cumulative deviation of the pipeline flow rate data within the second time period is less than the cumulative deviation of the first pipeline flow rate data, and the difference is greater than the first threshold, the pipeline flow rate change trend within the first time period is determined to be a downward trend. If the cumulative deviation of the pipeline flow rate data within the second time period is greater than the cumulative deviation of the first pipeline flow rate data, and the difference is greater than the first threshold, it indicates that the pipeline flow rate within the first time period has increased significantly compared to the pipeline flow rate within the second time period. In this case, the pipeline flow rate change trend within the first time period can be determined to be an upward trend. If the difference is less than the first threshold, it indicates that the pipeline flow rate has increased only slightly, possibly due to an occasional increase. In this case, the pipeline flow rate change trend within the first time period is not determined to be an upward trend. The same logic applies to downward trends.
[0067] In some embodiments, determining whether a pipeline is leaking based on pipeline pressure change trends and / or pipeline flow change trends includes: determining pipeline leakage when both upstream and downstream pressure change trends are decreasing; and determining pipeline leakage when both upstream and downstream pressure change trends are decreasing, upstream flow increases and / or downstream flow decreases.
[0068] The following is an exemplary description of the long-distance pipeline leakage monitoring method based on flow signal balance provided in this application:
[0069] For a long-distance pipeline comprising three stations and two valve chambers, pressure data from the stations and valve chambers, as well as flow signals from the stations, can typically be obtained. Real-time analysis of these signals allows for real-time monitoring to detect pipeline leaks. For example,...Figure 2 The diagram shown illustrates the architecture of a long-distance pipeline leakage monitoring system based on pressure and flow rate changes, as provided in this application. It includes a data processing center, station A, station B, station C, valve chamber A, and valve chamber B. The data processing center receives data from the acquisition devices at each of the stations: station A, station B, station C, valve chamber A, and valve chamber B. The acquisition devices at stations A, B, and C each include a pressure transmitter and an ultrasonic flow meter. The acquisition devices at valve chambers A and B each include only a pressure transmitter.
[0070] (1) Data acquisition: Pressure and flow data are acquired by installing acquisition equipment in the station and valve chamber. The acquisition equipment collects the current signal output of the pressure transmitter and flow meter, and the sampling rate is set to 1000Hz. The acquired data is transmitted to the data processing center for analysis and processing in real time every second.
[0071] (2) Data analysis and processing: After receiving the pressure and flow data, the data processing center analyzes the upstream and downstream pressure and flow signals simultaneously, and then makes a comprehensive judgment on the analysis results to determine whether the pipeline has leaked.
[0072] For example, such as Figure 3 The diagram shown is a flowchart of a data analysis and processing method provided in this application, including: reading data; pressure fitting, pressure deviation calculation, and determining whether the pressure has decreased; upstream flow cumulative deviation, mean difference calculation, and determining whether the flow has increased; downstream flow cumulative deviation, mean difference calculation, and determining whether the flow has decreased; comprehensively determining whether the pipeline is leaking; and in the case of pipeline leakage, locating the leak location and issuing an alarm.
[0073] Specifically, stress data analysis:
[0074] The data processing center receives pressure data from adjacent stations and valve chambers in real time. Each data reception lasts for 1 second, so the upstream and downstream pressures are respectively... and Data is processed every minute, meaning it's processed once every 60,000 data points. The pressure is assessed by comparing the deviation between measured and predicted values. Taking upstream pressure as an example, when upstream pressure data is available for two minutes, a linear fitting method is used to predict the data for the next minute, and the mean is calculated. After waiting for one minute for data collection, calculate the mean of the collected data. ,when and At that time, it was believed that the pressure decreased, among which This is the threshold value, typically set to 0.001.
[0075] The same method was used to analyze the downstream pressure data. When both upstream and downstream pressure data decreased, it was considered that an abnormal pressure had occurred, and a leak was suspected.
[0076] Specifically, traffic data analysis:
[0077] Since most flow meters installed at the station are ultrasonic flow meters, the flow signal itself fluctuates greatly. To identify flow changes caused by leaks under significant background noise interference, a method of calculating cumulative deviation is used to enhance the flow signal. Like pressure data, flow data is received once per second, with the received upstream and downstream flow rates being... and The cumulative deviation of the flow data is calculated to determine the trend of flow change.
[0078] The specific steps for judging the cumulative deviation of upstream flow data and flow trend are as follows:
[0079] Calculate the initial mean of the traffic data after receiving traffic data for one full minute. and standard deviation ;
[0080] Every minute of traffic data thereafter, it will be combined with the data from the previous minute to form a 2-minute traffic data set:
[0081] ;
[0082] Starting from the 1001st data point, the cumulative deviation is calculated sequentially, satisfying the following formula 1:
[0083] Formula 1;
[0084] in, , , This is the coefficient corresponding to the standard deviation.
[0085] Therefore, the cumulative deviation sequence can be obtained. .
[0086] calculate The mean and standard deviation of and Update;
[0087] Calculate the latest 1-minute cumulative mean deviation Average cumulative deviation from the previous minute The difference, when and At that time, it was believed that the upstream flow was increasing, among which This is the threshold value, typically set to 0.01.
[0088] The specific steps for determining the cumulative deviation of downstream flow data and the flow trend are as follows:
[0089] Calculate the initial mean of the traffic data after receiving traffic data for one full minute. and standard deviation ;
[0090] Every minute of traffic data thereafter, it will be combined with the data from the previous minute to form a 2-minute traffic data set:
[0091] ;
[0092] Starting from the 1001st data point, the cumulative deviation is calculated sequentially, satisfying the following formula 2:
[0093] Formula 2;
[0094] in, , .
[0095] Therefore, the cumulative deviation sequence can be obtained. .
[0096] calculate The mean and standard deviation of and Update;
[0097] Calculate the latest 1-minute cumulative mean deviation Average cumulative deviation from the previous minute The difference, when and At that time, it was assumed that the downstream flow rate had decreased, among which This is the threshold value, typically set to 0.01.
[0098] Specifically, the assessment of the leakage results:
[0099] Due to limitations in the distance between the station and valve chamber, it cannot be guaranteed that all monitored pipe sections will have flow signals, as shown in the attached diagram. Figure 2 As shown, the monitoring pipe section can be divided into 4 cases, each corresponding to 4 different judgment rules:
[0100] Upstream and downstream pressure + upstream and downstream flow (station A - station B):
[0101] According to the "three decreases and one increase" rule, when the upstream and downstream pressures decrease, the upstream flow rate increases, and the downstream flow rate decreases, it is determined that a pipeline leak has occurred.
[0102] Upstream and downstream pressure + upstream flow rate (station B - valve chamber A):
[0103] According to the "three decreases and one increase" rule, when the pressure in the upstream and downstream decreases and the flow rate in the upstream increases, it is determined that a pipeline leak has occurred.
[0104] Upstream and downstream pressure + downstream flow (valve chamber B - station C):
[0105] According to the "three decreases and one increase" rule, when the upstream and downstream pressures decrease and the downstream flow rate decreases, it is determined that a pipeline leak has occurred.
[0106] Upstream and downstream pressure (valve chamber A - valve chamber B):
[0107] At this point, the only way to determine whether there is a leak in the pipeline is by the pressure, and to determine if there is a leak in the valve chamber when the pressure drops in the upstream and downstream areas.
[0108] This application embodiment can divide electronic devices and the like into functional modules according to the above method examples. For example, each function can be divided into its own functional module, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; other division methods may be used in actual implementation.
[0109] When dividing each function into modules according to its corresponding function. Figure 4 This diagram illustrates a possible structural schematic of the long-distance pipeline leakage monitoring device based on pressure and flow rate changes involved in the above embodiments, as shown below. Figure 4 As shown, a long-distance pipeline leakage monitoring device based on pressure and flow rate changes may include: an acquisition module 401 and a processing module 402.
[0110] The acquisition module 401 is used to acquire pipeline pressure data and first pipeline flow data. The pipeline pressure data includes upstream pressure acquisition data, downstream pressure acquisition data, upstream pressure prediction data, and downstream pressure prediction data. The first pipeline flow data includes upstream flow data and downstream flow data within a first time period.
[0111] Processing module 402 is used to determine the pipeline pressure change trend based on predicted and collected data from the pipeline pressure data. The pipeline pressure change trend includes the upstream pressure change trend and the downstream pressure change trend.
[0112] Processing module 402 is used to obtain the mean and standard deviation of the second pipeline flow data, and to determine the cumulative deviation of the first pipeline flow data based on the mean, standard deviation, and the first pipeline flow data. The second pipeline flow data refers to the data excluding the first pipeline flow data from all pipeline flow data.
[0113] Processing module 402 is used to determine the pipeline flow rate change trend within a first time period based on the cumulative deviation of the first pipeline flow rate data. The pipeline flow rate change trend includes the upstream flow rate change trend and the downstream flow rate change trend.
[0114] Processing module 402 is used to determine whether a pipeline is leaking based on the pipeline pressure change trend and / or pipeline flow change trend.
[0115] In some embodiments, the processing module 402 is used to determine the upstream pressure change trend based on the magnitude relationship between the values of the upstream pressure collected data and the upstream pressure prediction data; the processing module 402 is also used to determine the downstream pressure change trend based on the magnitude relationship between the values of the downstream pressure collected data and the downstream pressure prediction data.
[0116] In some embodiments, the acquisition module 401 is used to acquire multiple pressure values according to a preset frequency and a preset duration; calculate the average of the multiple pressure values, and determine the average as the acquired data.
[0117] In some embodiments, the first pipeline flow data includes multiple values; the cumulative deviation of the first pipeline flow data is the average of the cumulative deviations corresponding to the multiple values; the processing module 402 is used to obtain the cumulative deviation corresponding to the second value among the multiple values, and determine the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the average, and the standard deviation, so as to obtain the cumulative deviation of each of the multiple values; the first value and the second value are values among the multiple values, and the collection point of the first value is the next collection point after the collection point of the second value; the processing module 402 is used to determine the preset cumulative deviation as the cumulative deviation of the first value when there is no collection point before the collection point of the first value.
[0118] In some embodiments, the processing module 402 is used to calculate a first sum and a second sum; the first sum is the sum between the cumulative deviation corresponding to the second value and the first value; the second sum is the sum between the mean and the target standard deviation; the target standard deviation is the product between the standard deviation and a preset coefficient; the processing module 402 is used to subtract the second sum from the first sum to obtain the cumulative deviation corresponding to the first value.
[0119] In some embodiments, the processing module 402 is configured to, after determining the cumulative deviation of the first pipeline flow data, determine the mean and standard deviation of the third pipeline flow data based on the first pipeline flow data and the second pipeline flow data; the mean and standard deviation of the third pipeline flow data are used to determine the cumulative deviation of the fourth pipeline flow data; the fourth pipeline flow data is data collected in the next time period after the first time period.
[0120] In some embodiments, the acquisition module 401 is further configured to acquire the cumulative deviation of the pipeline flow data within the second time period; the processing module 402 is configured to calculate the difference between the cumulative deviation of the pipeline flow data within the second time period and the cumulative deviation of the first pipeline flow data; the processing module 402 is configured to determine that the pipeline flow change trend within the first time period is an upward trend when the cumulative deviation of the pipeline flow data within the second time period is greater than the cumulative deviation of the first pipeline flow data and the difference is greater than a first threshold; the processing module 402 is configured to determine that the pipeline flow change trend within the first time period is a downward trend when the cumulative deviation of the pipeline flow data within the second time period is less than the cumulative deviation of the first pipeline flow data and the difference is greater than a first threshold.
[0121] In some embodiments, the processing module 402 is configured to determine a pipeline leak when both the upstream pressure change trend and the downstream pressure change trend are decreasing; the processing module 402 is configured to determine a pipeline leak when both the upstream pressure change trend and the downstream pressure change trend are decreasing, the upstream flow rate increases and / or the downstream flow rate decreases.
[0122] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for monitoring leakage in long-distance pipelines based on pressure and flow rate changes, characterized in that, The method includes: Acquire pipeline pressure data and pipeline flow data. The pipeline pressure data includes upstream pipeline pressure acquisition data, downstream pipeline pressure acquisition data, upstream pipeline pressure prediction data, and downstream pipeline pressure prediction data. The pipeline flow data includes upstream pipeline flow data and downstream pipeline flow data within a first time period. The upstream / downstream pipeline flow data includes first pipeline flow data. Based on the predicted and collected data in the pipeline pressure data, the pipeline pressure change trend is determined, including the upstream pressure change trend and the downstream pressure change trend. The mean and standard deviation of the second pipeline flow data are obtained, and the cumulative deviation of the first pipeline flow data is determined based on the mean, the standard deviation, and the first pipeline flow data; the second pipeline flow data is the upstream / downstream flow data of all pipeline upstream / downstream flow data excluding the first pipeline flow data. Based on the cumulative deviation of the first pipeline flow data, the upstream / downstream flow change trend of the pipeline within the first time period is determined; the pipeline flow change trend includes the upstream flow change trend and the downstream flow change trend. Determining whether the pipeline is leaking based on the pipeline pressure change trend and the pipeline flow change trend includes: determining whether the pipeline is leaking when both the upstream pressure change trend and the downstream pressure change trend are decreasing, the upstream flow rate is increasing and / or the downstream flow rate is decreasing; Wherein, the first pipeline flow data includes multiple values; the cumulative deviation of the first pipeline flow data is the mean of the cumulative deviations corresponding to the multiple values; determining the cumulative deviation of the first pipeline flow data based on the mean, the standard deviation, and the first pipeline flow data includes: For the first value among the plurality of values, the cumulative deviation corresponding to the second value is obtained, and based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation, the cumulative deviation corresponding to the first value is determined to obtain the cumulative deviation of each of the plurality of values; the first value and the second value are values among the plurality of values, and the collection point of the first value is the next collection point after the collection point of the second value. If there are no sampling points before the sampling point of the first value, the preset cumulative deviation is determined as the cumulative deviation of the first value.
2. The method according to claim 1, characterized in that, The process of determining the pipeline pressure change trend based on the predicted and collected data from the pipeline pressure data includes: Based on the relationship between the values of the upstream pressure data collected from the pipeline and the values of the predicted upstream pressure data from the pipeline, the trend of upstream pressure change is determined. The downstream pressure change trend is determined based on the relationship between the values of the downstream pressure collected data and the values of the downstream pressure prediction data.
3. The method according to claim 2, characterized in that, Acquiring the collected data from the pipeline pressure data includes: Collect multiple pressure values according to a preset frequency and preset duration; Calculate the average of the multiple pressure values and determine the average as the collected data.
4. The method according to claim 1, characterized in that, The step of determining the cumulative deviation corresponding to the first value based on the cumulative deviation corresponding to the second value, the first value, the mean, and the standard deviation includes: Calculate a first sum and a second sum; the first sum is the sum of the cumulative deviation corresponding to the second value and the first value; the second sum is the sum of the mean and the target standard deviation; the target standard deviation is the product of the standard deviation and a preset coefficient. Subtracting the second sum from the first sum yields the cumulative deviation corresponding to the first value.
5. The method according to claim 1, characterized in that, Determining the pipeline flow rate change trend within the first time period based on the cumulative deviation of the first pipeline flow rate data includes: Obtain the cumulative deviation of pipeline flow data within the second time period; Calculate the difference between the cumulative deviation of the pipeline flow data in the second time period and the cumulative deviation of the pipeline flow data in the first time period; If the cumulative deviation of the pipeline flow data in the second time period is greater than the cumulative deviation of the pipeline flow data in the first time period, and the difference is greater than the first threshold, the pipeline flow change trend in the first time period is determined to be an upward trend. If the cumulative deviation of the pipeline flow data in the second time period is less than the cumulative deviation of the pipeline flow data in the first time period, and the difference is greater than the first threshold, then the pipeline flow change trend in the first time period is determined to be a downward trend.
6. An electronic device, characterized in that, The electronic device includes: processor; A memory configured to store processor-executable instructions; The processor is configured to execute the instructions to implement the method as described in any one of claims 1-5.
7. A computer-readable storage medium storing instructions thereon, characterized in that, When the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is able to perform the method as described in any one of claims 1-5.
Citation Information
Patent Citations
Oil pipeline network leakage intelligent self-adaptation monitoring system and method based on big data
CN103939749A
Pipeline leakage detection method and device based on SCADA system and medium
CN114087542A