Long-distance pipeline leakage monitoring method and device based on pressure and flow change and storage medium
By acquiring and analyzing the pressure and flow data of long-distance pipelines, determining the change trend and using cumulative deviations to judge leakage, the problem of untimely monitoring in the existing technology is solved, and reliable monitoring and timely judgment of pipeline leakage is achieved.
Patent Information
- Application Number
- CN202510503012.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-06-20
- Estimated Expiration
- 2045-04-22
AI Technical Summary
There is a lack of a reliable monitoring method for long-distance pipeline leakage in the prior art, and it is impossible to monitor pipeline leakage in real time, resulting in potential economic losses, fires, explosions and environmental pollution risks.
By obtaining the pressure and flow data of the pipeline, determine the pressure and flow change trends, use the accumulated deviation to reflect the flow signal changes, and combine the pressure change trend to accurately determine whether the pipeline is leaking.
Reliable and real-time monitoring of long-distance pipeline leakage is achieved, the accuracy and timeliness of leakage judgment are improved, and potential safety and environmental risks are reduced.
Smart Images

Figure CN120176034A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and particularly to a method, device and storage medium for monitoring long-distance pipeline leakage based on pressure and flow changes. Background Art
[0002] Long-distance crude oil and refined oil pipelines are long in distance and high in pressure, and the natural and social environments along the way are complex. Leakage accidents are likely to occur due to reasons such as oil theft by drilling, third-party damage (mechanical excavation), geological disasters, and corrosion perforation. Pipeline leakage not only may cause relatively large economic losses, but the leaked oil products may also trigger fire and explosion accidents, resulting in serious casualties or environmental pollution. In order to ensure the safe and stable operation of pipelines, it is necessary to monitor pipeline leakage.
[0003] Currently, there is a lack of a reliable leakage monitoring method to monitor pipeline leakage in real time. Summary of the Invention
[0004] The purpose of the present application is to provide a method, device and storage medium for monitoring long-distance pipeline leakage based on pressure and flow changes, aiming to solve the technical problem of unreliable leakage monitoring methods in related technologies.
[0005] To achieve the above purpose, the present application adopts the following technical solutions:
[0006] The present application provides a method for monitoring long-distance pipeline leakage based on pressure and flow changes, including:
[0007] Obtain pipeline pressure data and first pipeline flow data. The pipeline pressure data includes pipeline upstream pressure acquisition data, pipeline downstream pressure acquisition data, pipeline upstream pressure prediction data, and pipeline downstream pressure prediction data. The first pipeline flow data includes pipeline upstream flow data within a first time period and pipeline downstream flow data within the first time period;
[0008] Based on the prediction data and acquisition data in the pipeline pressure data, determine the pipeline pressure change trend. The pipeline pressure change trend includes the upstream pressure change trend and the downstream pressure change trend;
[0009] Obtain the mean value of the second pipeline flow data and the standard deviation of the second pipeline flow data, and based on the mean value, standard deviation, and the first pipeline flow data, determine the cumulative deviation of the first pipeline flow data; the second pipeline flow data is the data in all pipeline flow data except the first pipeline flow data;
[0010] Based on the cumulative deviation of the first pipeline flow data, determine the pipeline flow change trend within the first time period; the pipeline flow change trend includes the upstream flow change trend and the downstream flow change trend
[0011] Determine whether the pipeline leaks based on the pipeline pressure change trend and / or the pipeline flow rate change trend.
[0012] In this application, through the cumulative deviation, the tiny but continuous trend in the change trend of the flow signal can be reflected. Further, combined with the pressure change trend, it can accurately and reliably determine whether the pipeline leaks.
[0013] In some embodiments, determining the pipeline pressure change trend based on the predicted data and the collected data in the pipeline pressure data includes:
[0014] Determine the upstream pressure change trend based on the magnitude relationship between the value of the pipeline upstream pressure collected data and the pipeline upstream pressure predicted data;
[0015] Determine the downstream pressure change trend based on the magnitude relationship between the value of the pipeline downstream pressure collected data and the pipeline downstream pressure predicted data.
[0016] In some embodiments, obtaining the collected data in the pipeline pressure data includes:
[0017] Collect multiple pressure values according to a preset frequency and a preset duration;
[0018] Calculate the mean value of the multiple pressure values and determine the mean value as the collected data.
[0019] In some embodiments, the first pipeline flow rate data includes multiple values; the cumulative deviation of the first pipeline flow rate data is the mean value of the cumulative deviations corresponding to the multiple values; determining the cumulative deviation of the first pipeline flow rate data based on the mean value, the standard deviation, and the first pipeline flow rate data includes:
[0020] For the first value among the multiple values, obtain the cumulative deviation corresponding to the second value, and based on the cumulative deviation corresponding to the second value, the first value, the mean value, and the standard deviation, determine the cumulative deviation corresponding to the first value to obtain the cumulative deviations of the multiple values respectively; 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;
[0021] In the case where there is no collection point before the collection point of the first value, determine the preset cumulative deviation 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 value, and the standard deviation includes:
[0023] Calculate the first sum value and the second sum value; the first sum value is the sum between the cumulative deviation corresponding to the second numerical value and the first numerical value; the second sum value is the sum between the mean value and the target standard deviation; the target standard deviation is the product of the standard deviation and a preset coefficient.
[0024] Subtract the second sum value from the first sum value to obtain the cumulative deviation corresponding to the first numerical value.
[0025] In some embodiments, the method further includes:
[0026] After determining the cumulative deviation of the first pipeline flow rate data, based on the first pipeline flow rate data and the second pipeline flow rate data, determine the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data; the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data are used to determine the cumulative deviation of the fourth pipeline flow rate data; the fourth pipeline flow rate data is the data collected in the next time period after the first time period.
[0027] In some embodiments, based on the cumulative deviation of the first pipeline flow rate data, determining the pipeline flow rate change trend within the first time period includes:
[0028] Obtain the cumulative deviation of the pipeline flow rate data within the second time period;
[0029] Calculate 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;
[0030] When 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, determine that the pipeline flow rate change trend within the first time period is an upward trend;
[0031] When 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, determine that the pipeline flow rate change trend within the first time period is a downward trend.
[0032] In some embodiments, based on the pipeline pressure change trend and / or the pipeline flow rate change trend, determining whether the pipeline leaks includes:
[0033] When both the upstream pressure change trend and the downstream pressure change trend are decreasing, determine that the pipeline leaks;
[0034] 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, determine that the pipeline leaks.
[0035] In some embodiments, the present 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 one of the above optional methods.
[0036] In some embodiments, the present application provides a computer-readable storage medium having instructions stored thereon, and when the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is enabled to execute any one of the above optional methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.
[0038] Figure 1 It is a schematic flowchart of a long-distance pipeline leakage monitoring method based on pressure and flow rate changes provided by the present application;
[0039] Figure 2 It is a schematic architecture diagram of a long-distance pipeline leakage monitoring system based on pressure and flow rate changes provided by the present application;
[0040] Figure 3 It is a schematic flowchart of data analysis and processing provided by the present application;
[0041] Figure 4 It is a schematic structural diagram of a long-distance pipeline leakage monitoring device based on pressure and flow rate changes provided by the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0043] In the description of the present application, it should be understood that the orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", "front", "rear", "inner", "outer", etc. is based on the orientation or relative positional relationship shown in the drawings, and is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation on the present application. Without special instructions, under the condition of satisfying the relative positional relationship shown in the drawings, the above-described orientation description can be flexibly set during the actual application process.
[0044] The terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present application, unless otherwise stated, the meaning of "a plurality" is two or more.
[0045] In the description of the present application, it should be noted that unless otherwise clearly specified and limited, the terms "mounted", "connected", "connected to", and "communicated with" should be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or an integral connection. It may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to specific circumstances.
[0046] In the embodiments of the present application, the term "comprising", "including" or any other variant thereof is intended to cover a non-exclusive inclusion, such that a process, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, article or device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, article or device comprising that element.
[0047] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary" or "for example" is intended to present relevant concepts in a specific manner.
[0048] Exemplarily, the electronic device that executes the long-distance pipeline leakage monitoring method based on pressure and flow rate changes provided in the embodiments of the present application can be a mobile phone, a tablet computer, a desktop type, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device. The embodiments of the present application do not impose special restrictions on the specific form of the electronic device. It can perform human-computer interaction with the user through one or more of a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device, etc.
[0049] In the description of this specification, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0050] As Figure 1 shown, a long-distance pipeline leakage monitoring method based on pressure and flow rate changes provided in the embodiments of the present application includes S101 - S105:
[0051] S101. Obtain pipeline pressure data and first pipeline flow rate data.
[0052] The pipeline pressure data includes pipeline upstream pressure acquisition data, pipeline downstream pressure acquisition data, pipeline upstream pressure prediction data, and pipeline downstream pressure prediction data. The first pipeline flow rate data includes pipeline upstream flow rate data within a first time period and pipeline downstream flow rate data within a first time period.
[0053] S102. Based on the prediction data and acquisition 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 value of the second pipeline flow rate data and the standard deviation of the second pipeline flow rate data, and based on the mean value, the standard deviation, and the first pipeline flow rate data, determine the cumulative deviation of the first pipeline flow rate data.
[0056] The second pipeline flow rate data is the data in all pipeline flow rate data except the first pipeline flow rate data.
[0057] S104. Based on the cumulative deviation of the first pipeline flow rate data, determine the pipeline flow rate change trend within the first time period.
[0058] The pipeline flow rate change trend includes the upstream flow rate change trend and the downstream flow rate change trend.
[0059] S105. Determine whether the pipeline is leaking based on the pipeline pressure change trend and / or the pipeline flow rate change trend.
[0060] It should be understood that through cumulative deviation, it is possible to reflect the tiny but continuous trend in the change trend of the flow rate signal. Further, by combining 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 the predicted data and the collected data in the pipeline pressure data includes: determining the upstream pressure change trend based on the magnitude relationship between the value of the collected data of the upstream pipeline pressure and the predicted data of the upstream pipeline pressure; determining the downstream pressure change trend based on the magnitude relationship between the value of the collected data of the downstream pipeline pressure and the predicted data of the downstream pipeline pressure. 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 leakage judgment.
[0062] In some embodiments, obtaining the collected data in the pipeline pressure data includes: collecting a plurality of pressure values at a preset frequency and a preset duration; calculating the mean value of the plurality of pressure values and determining the mean value as the collected data. Mean value processing reduces the interference of single - collection errors and ensures the reliability of the pressure data.
[0063] In some embodiments, the first pipeline flow rate data includes a plurality of values; the cumulative deviation of the first pipeline flow rate data is the mean value of the cumulative deviations corresponding to the plurality of values; determining the cumulative deviation of the first pipeline flow rate data based on the mean value, the standard deviation, and the first pipeline flow rate data includes: for the first value among the plurality of values, obtaining the cumulative deviation corresponding to the second value, and based on the cumulative deviation corresponding to the second value, the first value, the mean value, and the standard deviation, determining the cumulative deviation corresponding to the first value to obtain the cumulative deviations 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; in the case where there is no collection point before the collection point of the first value, determining the preset cumulative deviation 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 value, and the standard deviation includes: calculating a first sum value and a second sum value; the first sum value is the sum of the cumulative deviation corresponding to the second value and the first value; the second sum value is the sum of the mean value and the target standard deviation; the target standard deviation is the product of the standard deviation and a preset coefficient; subtracting the second sum value from the first sum value to obtain 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 rate data, based on the first pipeline flow rate data and the second pipeline flow rate data, determining the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data; the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data are used to determine the cumulative deviation of the fourth pipeline flow rate data; the fourth pipeline flow rate data is the data collected in the next time period after the first time period. In this way, by dynamically updating the standard deviation and mean value used to determine the cumulative deviation, the reliability and accuracy of determining the cumulative deviation of the fourth pipeline flow rate data in the subsequent stage can be ensured.
[0066] In some embodiments, determining the pipeline flow rate change trend in the 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 in the second time period; calculating the difference between the cumulative deviation of the pipeline flow rate data in the second time period and the cumulative deviation of the first pipeline flow rate data; when the cumulative deviation of the pipeline flow rate data in 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, determining that the pipeline flow rate change trend in the first time period is an upward trend; when the cumulative deviation of the pipeline flow rate data in 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, determining that the pipeline flow rate change trend in the first time period is a downward trend. When the cumulative deviation of the pipeline flow rate data in 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 in the first time period increases more compared with the pipeline flow rate in the second time period. At this time, it can be determined that the pipeline flow rate change trend in the first time period is an upward trend. If the difference is less than the first threshold, it indicates that the pipeline flow rate increases less, which may be an accidental increase. At this time, it is not determined that the pipeline flow rate change trend in the first time period is an upward trend. The same applies to the downward trend.
[0067] In some embodiments, determining whether the pipeline leaks based on the pipeline pressure change trend and / or the pipeline flow rate change trend includes: determining that the pipeline leaks when both the upstream pressure change trend and the downstream pressure change trend are decreasing; determining that the pipeline leaks 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.
[0068] The following is an exemplary description of the long-distance pipeline leakage monitoring method based on flow signal balance provided by this application:
[0069] For a long-distance pipeline including 3 station yards and 2 valve chambers, generally, the pressure data of the station yards and valve chambers and the flow rate signals of the station yards can be obtained. By obtaining these signals and analyzing them in real time, it is possible to monitor in real time whether the pipeline leaks. Exemplarily, such as Figure 2As shown in the figure, it is a schematic architecture diagram of a long-distance pipeline leakage monitoring system based on pressure and flow changes provided by this application, including a data processing center, station A, station B, station C, valve chamber A, and valve chamber B. Among them, the data processing center is used to receive data collected by the respective acquisition devices of station A, station B, station C, valve chamber A, and valve chamber B. The acquisition devices of station A, station B, and station C each include a pressure transmitter and an ultrasonic flowmeter. The acquisition devices of valve chamber A and valve chamber B only include pressure transmitters.
[0070] (1) Data acquisition: Pressure and flow data are obtained by installing acquisition devices at stations and valve chambers. The acquisition devices collect the current signal outputs of the pressure transmitters and flowmeters, and the sampling rate is set to 1000 Hz. The collected data is transmitted to the data processing center in real time every second for analysis and processing.
[0071] (2) Data analysis and processing: After the data processing center receives the pressure and flow data, it synchronously analyzes the upstream and downstream pressure and flow signals, and then makes a comprehensive judgment on the analysis results to determine whether the pipeline has leaked.
[0072] Exemplarily, as Figure 3 shown, it is a schematic flow diagram of data analysis and processing provided by this application, including: reading data; pressure fitting, calculating the pressure deviation value, and judging whether the pressure drops; calculating the cumulative deviation and mean difference of the upstream flow, and judging whether the flow rises; calculating the cumulative deviation and mean difference of the downstream flow, and judging whether the flow drops; comprehensively judging whether the pipeline has leaked; in the case of pipeline leakage, locating the leakage position and giving an alarm.
[0073] Specifically, for pressure data analysis:
[0074] The data processing center receives the pressure data uploaded by adjacent stations and valve chambers in real time. Each time the received data length is 1 second, then the upstream and downstream pressures are respectively and The data is processed once per minute, that is, processed once when the data reaches 60,000 points. The method of comparing the deviation between the measured value and the predicted value is used to judge whether the pressure drops. Taking the upstream pressure as an example, when the upstream pressure data reaches 2 minutes, the data in the next 1 minute is predicted by linear fitting and the mean value is After waiting for the collected data to reach one minute, calculate the mean value m of the collected data p , when and at the same time, it is considered that the pressure drops, where h p is the threshold, generally taking a value of 0.001.
[0075] Analyze the downstream pressure data in the same way. When both the upstream and downstream pressure data decrease, it is considered that pressure anomaly occurs and leakage is suspected.
[0076] Specifically, for the analysis of flow rate data:
[0077] Since most of the flow meters installed in the station are ultrasonic flow meters and the flow rate signals fluctuate greatly by themselves, in order to identify the flow rate changes caused by leakage under the interference of large background noise, the method of calculating the cumulative deviation is adopted here to enhance the flow rate signals. The flow rate data, like the pressure data, is received once per second. The received upstream and downstream flow rates are and Calculate the cumulative deviation of the flow rate data respectively to judge the flow rate change trend.
[0078] The specific steps for the cumulative deviation and flow rate trend judgment of the upstream flow rate data are as follows:
[0079] After receiving the flow rate data for 1 minute, calculate the initial mean value m f and the standard deviation std f ;
[0080] After that, every time the flow rate data reaches 1 minute, the 2-minute flow rate data composed of the data of the current minute and the previous minute is:
[0081]
[0082] Starting from the 1001st data, calculate the cumulative deviation in turn, satisfying the following formula 1:
[0083]
[0084] where n = 1001, 1002,..., 2000, k is the coefficient corresponding to the standard deviation.
[0085] Therefore, the cumulative deviation sequence
[0086] Calculate the mean value and standard deviation of m f and std f are updated;
[0087] Calculate the mean value of the latest 1-minute cumulative deviation and the difference from the mean value of the previous 1-minute cumulative deviation . When and , it is considered that the upstream flow rate increases, where h f is the threshold value, generally taking the value of 0.01.
[0088] The specific steps for cumulative deviation of downstream flow data and flow trend judgment are as follows:
[0089] After receiving the flow data for 1 minute, calculate the initial mean m of the flow data f and the standard deviation std f ;
[0090] After that, every time the flow data is full for one minute, the 2-minute flow data composed of the data of the current minute and the previous minute is:
[0091]
[0092] Starting from the 1001st data, calculate the cumulative deviation in turn, satisfying the following formula 2:
[0093]
[0094] where n = 1001, 1002,..., 2000,
[0095] Therefore, a cumulative deviation sequence can be obtained
[0096] Calculate the mean and standard deviation of m f and std f for updating;
[0097] Calculate the mean of the latest 1-minute cumulative deviation and the difference from the mean of the previous 1-minute cumulative deviation . When and , it is considered that the downstream flow is decreasing, where h f is the threshold, generally taking a value of 0.01.
[0098] Specifically, for leakage result judgment:
[0099] Limited by the distance between the station yard and the valve chamber, it cannot be guaranteed that there are flow signals in all monitored pipe sections. As shown in the appendix Figure 2 , the monitored pipe sections can be divided into 4 cases, corresponding to 4 different judgment rules respectively:
[0100] Upstream and downstream pressures + upstream and downstream flows (station yard A - station yard B):
[0101] According to the rule of "three decreases and one increase", when the upstream and downstream pressures decrease, the upstream flow increases, and the downstream flow decreases, it is judged that the pipeline has leaked.
[0102] Upstream and downstream pressures + upstream flow (station yard B - valve chamber A):
[0103] According to the rule of "three decreases and one increase", when the upstream and downstream pressures decrease and the upstream flow rate increases, it is determined that there is a pipeline leak.
[0104] Upstream and downstream pressures + downstream flow rate (valve chamber B - station C):
[0105] According to the rule of "three decreases and one increase", when the upstream and downstream pressures decrease and the downstream flow rate decreases, it is determined that there is a pipeline leak.
[0106] Upstream and downstream pressures (valve chamber A - valve chamber B):
[0107] At this time, it is only possible to determine whether there is a pipeline leak based on the pressure, and to determine the valve chamber leak when the upstream and downstream pressures decrease.
[0108] The embodiments of the present application can divide functional modules for electronic devices and the like according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0109] In the case of dividing each functional module corresponding to each function, Figure 4 FIG. shows a possible structural schematic diagram of a long-distance pipeline leak monitoring device based on pressure and flow rate changes in the above embodiments, as Figure 4 shown, the long-distance pipeline leak 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 rate data. The pipeline pressure data includes pipeline upstream pressure acquisition data, pipeline downstream pressure acquisition data, pipeline upstream pressure prediction data, and pipeline downstream pressure prediction data. The first pipeline flow rate data includes pipeline upstream flow rate data within a first time period and pipeline downstream flow rate data within a first time period.
[0111] The processing module 402 is used to determine the pipeline pressure change trend based on the prediction data and acquisition data in the pipeline pressure data. The pipeline pressure change trend includes the upstream pressure change trend and the downstream pressure change trend.
[0112] The processing module 402 is used to obtain the mean value and standard deviation of the second pipeline flow rate data, and determine the cumulative deviation of the first pipeline flow rate data based on the mean value, standard deviation, and the first pipeline flow rate data. The second pipeline flow rate data is the data in all pipeline flow rate data except the first pipeline flow rate data.
[0113] A processing module 402 is configured 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] The processing module 402 is configured to determine whether the pipeline leaks based on the pipeline pressure change trend and / or the pipeline flow rate change trend.
[0115] In some embodiments, the processing module 402 is configured to determine the upstream pressure change trend based on the magnitude relationship between the value of the pipeline upstream pressure acquisition data and the predicted data of the pipeline upstream pressure; the processing module 402 is configured to determine the downstream pressure change trend based on the magnitude relationship between the value of the pipeline downstream pressure acquisition data and the predicted data of the pipeline downstream pressure.
[0116] In some embodiments, an acquisition module 401 is configured to acquire a plurality of pressure values at a preset frequency and a preset duration; calculate the mean value of the plurality of pressure values, and determine the mean value as the acquisition data.
[0117] In some embodiments, the first pipeline flow rate data includes a plurality of values; the cumulative deviation of the first pipeline flow rate data is the mean value of the cumulative deviations corresponding to the plurality of values; the processing module 402 is configured to, for a first value among the plurality of values, obtain the cumulative deviation corresponding to a 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 value, and the standard deviation, so as to obtain the cumulative deviations of the plurality of values respectively; the first value and the second value are values among the plurality of values, and the acquisition point of the first value is the next acquisition point after the acquisition point of the second value; the processing module 402 is configured to, when there is no acquisition point before the acquisition point of the first value, determine the preset cumulative deviation as the cumulative deviation of the first value.
[0118] In some embodiments, the processing module 402 is configured to calculate a first sum value and a second sum value; the first sum value is the sum of the cumulative deviation corresponding to the second value and the first value; the second sum value is the sum of the mean value and the target standard deviation; the target standard deviation is the product of the standard deviation and a preset coefficient; the processing module 402 is configured to subtract the second sum value from the first sum value to obtain the cumulative deviation corresponding to the first value.
[0119] In some embodiments, after determining the cumulative deviation of the first pipeline flow rate data, the processing module 402 is configured to determine the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data based on the first pipeline flow rate data and the second pipeline flow rate data; the mean value of the third pipeline flow rate data and the standard deviation of the third pipeline flow rate data are used to determine the cumulative deviation of the fourth pipeline flow rate data; the fourth pipeline flow rate data is the data acquired in the next time period after the first time period.
[0120] In some embodiments, the obtaining module 401 is further configured to obtain the cumulative deviation of the pipeline flow rate data within a second time period; the processing module 402 is configured to calculate 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; the processing module 402 is configured to determine that the pipeline flow rate change trend within the first time period is an upward trend when 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 processing module 402 is configured to determine that the pipeline flow rate change trend within the first time period is a downward trend when 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 a first threshold.
[0121] In some embodiments, the processing module 402 is configured to determine pipeline leakage when both the upstream pressure change trend and the downstream pressure change trend are downward; the processing module 402 is configured to determine pipeline leakage when both the upstream pressure change trend and the downstream pressure change trend are downward, the upstream flow rate increases, and / or the downstream flow rate decreases.
[0122] The above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A long-distance pipeline leakage monitoring method based on pressure and flow changes, characterized in that: The method comprises: Acquire pipeline pressure data and first pipeline flow data, the pipeline pressure data including pipeline upstream pressure acquisition data, pipeline downstream pressure acquisition data, pipeline upstream pressure prediction data and pipeline downstream pressure prediction data, the first pipeline flow data including pipeline upstream flow data in a first time period and pipeline downstream flow data in the first time period; Determine a pipeline pressure change trend based on the predicted data and the collected data in the pipeline pressure data, wherein the pipeline pressure change trend includes an upstream pressure change trend and a downstream pressure change trend; Obtaining a mean value of the 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 is data in all pipeline flow data except the first pipeline flow data; Based on the accumulated deviation of the first pipeline flow data, determine the pipeline flow change trend within the first time period; the pipeline flow change trend includes the upstream flow change trend and the downstream flow change trend Whether the pipeline is leaking is determined based on the pipeline pressure change trend and / or the pipeline flow change trend.
2. The method according to claim 1, characterized in that The determining of the pipeline pressure change trend based on the predicted data and the collected data in the pipeline pressure data includes: Determining the upstream pressure change trend based on the magnitude relationship between the value of the pipeline upstream pressure acquisition data and the pipeline upstream pressure prediction data; Based on the magnitude relationship between the values of the pipeline downstream pressure acquisition data and the pipeline downstream pressure prediction data, the downstream pressure change trend is determined.
3. The method according to claim 2, characterized in that Acquiring the collected data in the pipeline pressure data includes: Collect multiple pressure values according to the preset frequency and preset duration; An average value of the plurality of pressure values is calculated, and the average value is determined as the collected data.
4. The method according to claim 1, characterized in that: 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; and 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 a first value among the multiple values, obtaining a cumulative deviation corresponding to a second value, and determining a 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 deviations of each of the multiple values; the first value and the second value are values among the multiple values, and a collection point of the first value is a next collection point after a collection point of the second value; In a case where there is no collection point before the collection point of the first value, a preset cumulative deviation is determined as the cumulative deviation of the first value.
5. The method according to claim 4, characterized in that The 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; The second sum value is subtracted from the first sum value to obtain a cumulative deviation corresponding to the first value.
6. The method according to claim 4, characterized in that The method further comprises: After determining the cumulative deviation of the first pipeline flow data, the mean of the third pipeline flow data and the standard deviation of the third pipeline flow data are determined based on the first pipeline flow data and the second pipeline flow data; the mean of the third pipeline flow data and the 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.
7. The method according to claim 1, characterized in that The determining, based on the accumulated deviation of the first pipeline flow data, a pipeline flow change trend within the first time period includes: Obtaining the cumulative deviation of pipeline flow data in a second time period; Calculating the difference between the cumulative deviation of the pipeline flow data in the second time period and the cumulative deviation of the first pipeline flow data; When the cumulative deviation of the pipeline flow data in 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, determining that the pipeline flow change trend in the first time period is an upward trend; When the cumulative deviation of the pipeline flow data in 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, it is determined that the pipeline flow change trend in the first time period is a downward trend.
8. The method according to claim 1, characterized in that The determining whether the pipeline is leaking based on the pipeline pressure change trend and / or the pipeline flow change trend includes: When both the upstream pressure change trend and the downstream pressure change trend are decreasing, determining that the pipeline is leaking; In the case where 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, it is determined that the pipeline is leaking.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory configured to store instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions in the computer-readable storage medium are executed by an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 8.
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
Pipeline leakage detection method and device and storage medium
CN114508704A
Leakage point detection method and device, electronic equipment and readable storage medium
CN117028872A
Oil pipeline leakage monitoring method based on pipeline pressure prediction model
CN119289297A
Cited By
Safety early warning system and method for medium and low pressure gas pipe network
CN121139879A