An online gas leak detection method, system, device and medium
By setting up a driving device at the water heater, applying preset pressure to the gas pipeline, and fully automatic detection using pressure sensors and processors, the problem of complex and time-consuming detection in the prior art is solved, real-time online leakage detection of the gas pipeline is realized, and detection efficiency and user experience are significantly improved.
Patent Information
- Application Number
- CN202411902748.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-04-04
AI Technical Summary
The existing gas pipeline leakage detection method has a complex process and is time-consuming. It is impossible to realize real-time online detection and cannot detect leakage risks in a timely manner.
The online gas leakage detection method is adopted, by setting up a driving device at the water heater, applying preset pressure to the gas pipeline, and fully automatic detection is performed using the pressure sensor and processor to analyze the pressure change to determine whether there is a leakage.
Real-time online leakage detection of gas pipelines is realized, avoiding the inconvenience caused by air inlet. After the inspection is completed, users can use gas equipment immediately, significantly improving detection efficiency and user experience.
Smart Images

Figure CN119756728A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of online detection, and in particular to an online gas leak detection method, system, equipment and medium. Background Art
[0002] As a clean energy, natural gas is widely used in civil and industrial fields. However, long-term use of gas pipelines will lead to problems such as aging and corrosion. In particular, the pipeline section between the gas meter and the water heater is more prone to leakage due to frequent use and temperature changes.
[0003] At present, the main method used for gas pipeline leak detection is the differential pressure detection method. This method introduces compressed air into the pipeline and uses the pressure change to determine whether there is a leak. However, this method requires the introduction of air or other gases into the pipeline during the detection process, resulting in the user having to wait for the exhaust gas to be exhausted before using the gas equipment normally. The detection process is complicated and time-consuming, and it is impossible to achieve real-time online detection and timely discover leakage hazards. This situation needs to be further improved. Summary of the invention
[0004] In order to solve the problem that the existing gas pipeline leakage detection method has a complicated detection process and cannot timely discover leakage hazards, the present application provides an online gas leakage detection method, system, equipment and medium, which adopts the following technical solutions: In a first aspect, the present application provides an online gas leakage detection method, which is applied to a gas pipeline system, and the system comprises: A gas meter, the gas meter comprising a pressure sensor and a processor; A stop valve installed at the inlet of the gas pipeline; A driving device disposed at the water heater, the driving device is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure; The processor is in communication with the pressure sensor, the shut-off valve and the drive device; The method is executed by the processor and comprises the following steps: Reading the pressure reference value of the pressure sensor, and sending a control signal to close the stop valve and start the driving device; Collecting a pressure data sequence according to a preset sampling period, and calculating a difference between a pressure value in the pressure data sequence and the pressure reference value as a pressure variation; Determine whether there is leakage according to the pressure change, and if it is determined to be leakage, keep the stop valve closed and generate an alarm signal; If it is determined to be normal, the stop valve is controlled to open and the drive device is closed, and the detection data is recorded and a detection report is generated.
[0005] By adopting the above technical scheme, in order to realize real-time online leakage detection of gas pipelines, the prior art usually adopts the method of introducing air or tracer gas into the pipeline, which results in the user having to wait for the exhaust gas to continue to use the gas equipment after the detection, seriously affecting the user experience; the present application sets a driving device at the water heater and utilizes the original gas in the pipeline for pressurized detection without introducing external gas. Specifically, the present application first closes the stop valve at the gas meter to isolate the pipe section to be tested from the external pipe network, and then starts the driving device to pressurize the pipeline. After that, it determines whether there is a leak by analyzing the pressure change, thus avoiding the inconvenience caused by the introduction of air, and realizes fully automatic detection through the cooperation of the pressure sensor and the processor. After the detection, the user can use the gas equipment immediately, and the leakage risk can be discovered in time, which significantly improves the detection efficiency and user experience.
[0006] Optionally, the gas meter further includes a temperature sensor, which reads the pressure reference value of the pressure sensor and sends a control signal to close the stop valve and start the drive device, specifically including the following steps: Reading the temperature value of the temperature sensor; Determine the target pressure range from a preset temperature-pressure correspondence table according to the temperature value; Determining whether the real-time pressure value of the pressure sensor is within the target pressure range; If the real-time pressure value is within the target pressure range, a control signal is sent to close the stop valve, and after waiting for a preset stabilization time, the current pressure value of the pressure sensor is recorded as the pressure reference value, and then the driving device is started; If the real-time pressure value is not within the target pressure range, a pressure abnormality prompt message is generated.
[0007] By adopting the above technical solution, since the gas pressure will fluctuate with temperature, directly using a fixed pressure reference value for leak detection under different temperature conditions is prone to misjudgment. The present application first reads the temperature value and looks up the table to obtain the corresponding target pressure range, and then determines whether the real-time pressure is within the range. If it is within the range, detection can be started and the reference value can be recorded. If it exceeds the range, an alarm will be issued in time. The temperature compensation mechanism significantly improves the accuracy of detection, avoids false alarms caused by temperature fluctuations, and can also detect abnormal pipeline pressure in time.
[0008] Optionally, the pressure data sequence includes pressure data of multiple detection cycles, and the pressure data sequence is collected according to a preset sampling cycle, and the difference between the pressure value in the pressure data sequence and the pressure reference value is calculated as the pressure variation, which specifically includes the following steps: In each detection cycle, multiple pressure values are continuously collected according to a preset sampling period; Arranging the pressure values in each detection cycle in chronological order to form a pressure change curve; Calculate the change rate of the pressure change curve, where an increase is a positive change rate and a decrease is a negative change rate; Taking the difference between the last pressure value of each detection cycle and the pressure reference value as the pressure variation; The corresponding relationship between the pressure change amount and the change rate is recorded.
[0009] By adopting the above technical scheme, since there are different types of gas pipeline leakage, it is difficult to accurately judge the leakage situation only by relying on a single pressure measurement value. For example, a slow leakage caused by a tiny crack may not show obvious pressure change in a single detection, while a fast leakage caused by a loose pipeline joint will cause the pressure to drop rapidly. If a unified judgment standard is adopted, it may be missed or misjudged. The present application collects multiple pressure data points at fixed time intervals in each detection cycle, arranges these data points in time series to form a pressure change curve, calculates the rate of change of the curve and records the corresponding relationship with the pressure change amount. Through the dual feature analysis of the pressure change amount and the rate of change, not only the amplitude of the pressure change can be detected, but also the speed characteristics of the pressure change can be identified, which provides a basis for accurately distinguishing different types of leakage.
[0010] Optionally, judging whether there is leakage according to the pressure change, and if it is judged to be leakage, keeping the stop valve closed and generating an alarm signal, specifically comprises the following steps: Obtain the pressure change and corresponding change rate of three consecutive detection cycles; Calculating the variation range between each two adjacent pressure values in the three consecutive detection cycles; If the variation is greater than the preset fluctuation threshold, the sampling time of the current detection cycle is extended and re-sampled; If the change amplitude is less than or equal to the preset fluctuation threshold, the pressure change trend of the three consecutive detection cycles is determined: When the pressure shows a continuous upward trend and the rate of change is within the preset normal range, it is judged to be normal; When the pressure shows a downward trend or the rate of change is lower than the preset normal range, it is judged as a leak; When the pressure shows an upward trend but the rate of change exceeds the upper limit of the preset normal range, it is determined that the drive device is abnormal; A corresponding alarm signal is generated according to the determination result, and the stop valve is kept in a closed state.
[0011] By adopting the above technical scheme, since the gas pipeline will be interfered by various factors during the detection process, resulting in fluctuations in pressure data, it is easy to make misjudgments based on a single cycle or simple threshold judgment; this application analyzes the pressure change characteristics of three consecutive detection cycles, and makes a comprehensive judgment based on multi-dimensional characteristics such as pressure change amount, change rate and change trend; first, the pressure data of three consecutive cycles is obtained, and the change amplitude of adjacent data points is calculated. When abnormal fluctuations are found, the sampling time is automatically extended to ensure data stability, and then the pressure change trend and change rate are analyzed to divide the situation into three categories: a continuous and stable pressure increase is a normal state, a pressure drop or a too low change rate is a leakage state, and a too fast pressure rise is an abnormal equipment state. It can not only effectively filter out misjudgments caused by interference factors, but also identify abnormal situations such as equipment failures, significantly improving the reliability and practicality of detection.
[0012] Optionally, the driving device comprises: A solenoid valve disposed on the air inlet pipe of the water heater; a booster pump connected in series with the solenoid valve; The output end of the booster pump is in communication with the gas pipeline; The processor applies a preset pressure to the gas pipeline by controlling the switching states of the solenoid valve and the booster pump.
[0013] By adopting the above technical solution, the present application sets a combination structure of a solenoid valve and a booster pump on the air inlet pipe of the water heater, utilizes the original gas in the pipeline for pressurized detection, the solenoid valve is used to control the gas circulation, the booster pump is connected to the solenoid valve in series and communicates with the gas pipeline, the processor can accurately control the switching state of these two components to achieve pressurization of the pipeline, and integrates the detection device on the water heater, which not only simplifies the detection process and avoids the connection and disassembly of external equipment, but also realizes fully automatic detection through electronic control.
[0014] Optionally, the system further comprises a pressure relief valve disposed on the gas pipeline, and the pressure relief valve is communicatively connected to the processor; the method further comprises the following steps: During the detection process, the pressure value of the pressure sensor is monitored in real time; When it is detected that the pressure value exceeds the preset safety pressure upper limit, the driving device is immediately closed and the pressure relief valve is opened; When the pressure value drops to a safe range, the pressure relief valve is closed; The pressure over-limit event information is recorded, wherein the pressure over-limit event information includes the occurrence time, the maximum pressure value and the duration.
[0015] By adopting the above technical scheme, the pipeline pressure may exceed the limit due to abnormal conditions such as loss of control of the drive device and pipeline blockage during the detection process. The traditional detection method lacks an effective safety protection mechanism. For example, when the booster pump control fails and continues to pressurize, the pipeline pressure may rise sharply to a dangerous level in a short period of time. In this case, if it is not discovered and handled in time, it may cause pipeline damage or even a safety accident. The system of this application continuously monitors the pipeline pressure. When the pressure exceeds the safety upper limit, the drive device is immediately turned off and the pressure relief valve is opened to reduce the pressure. The pressure relief valve is automatically closed after the pressure returns to a safe range. At the same time, the system will record in detail the occurrence time, maximum pressure value and duration of each pressure overlimit event, thereby realizing the safety and controllability of the detection process. It can not only respond to pressure anomalies in a timely manner, but also optimize system operating parameters through historical data analysis, provide a basis for equipment maintenance, and significantly improve the safety and reliability of the system.
[0016] In a second aspect, the present application provides an online gas leak detection system, comprising: A gas meter, the gas meter comprising a pressure sensor and a processor; Stop valve, installed at the inlet of gas pipeline; A driving device is arranged at the water heater, and is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure; The processor is in communication with the pressure sensor, the shut-off valve and the drive device; The processor performs the following steps: Reading the pressure reference value of the pressure sensor, and sending a control signal to close the stop valve and start the driving device; Collecting a pressure data sequence according to a preset sampling period, and calculating a difference between a pressure value in the pressure data sequence and the pressure reference value as a pressure variation; Determine whether there is leakage according to the pressure change, and if it is determined to be leakage, keep the stop valve closed and generate an alarm signal; If it is determined to be normal, the stop valve is controlled to open and the drive device is closed, and the detection data is recorded and a detection report is generated.
[0017] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned online gas leak detection method when executing the computer program.
[0018] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above-mentioned online gas leak detection method when executed by a processor.
[0019] In summary, the present application includes at least one of the following beneficial technical effects: 1. This application first closes the stop valve at the gas meter to isolate the pipe section to be tested from the external pipe network, then starts the driving device to pressurize the pipeline, and then determines whether there is a leak by analyzing the pressure change, avoiding the inconvenience caused by the introduction of air, and realizes full-automatic detection through the cooperation of the pressure sensor and the processor. After the detection, the user can use the gas equipment immediately, and the leakage risk can be discovered in time, which significantly improves the detection efficiency and user experience; 2. Since the gas pressure will fluctuate with the temperature, it is easy to misjudge if a fixed pressure reference value is directly used for leak detection under different temperature conditions. This application first reads the temperature value and looks up the table to obtain the corresponding target pressure range, and then determines whether the real-time pressure is within the range. If it is within the range, the detection can be started and the reference value can be recorded. If it is out of the range, an alarm will be issued in time. The temperature compensation mechanism significantly improves the accuracy of detection, avoids false alarms caused by temperature fluctuations, and can also detect abnormal pipe network pressure in time; 3. Since the gas pipeline will be disturbed by various factors during the detection process, resulting in fluctuations in pressure data, it is easy to make misjudgments based on a single cycle or simple threshold judgment; this application analyzes the pressure change characteristics of three consecutive detection cycles, and makes a comprehensive judgment based on multi-dimensional characteristics such as pressure change amount, change rate and change trend; first, the pressure data of three consecutive cycles is obtained, and the change amplitude of adjacent data points is calculated. When abnormal fluctuations are found, the sampling time is automatically extended to ensure data stability, and then the pressure change trend and change rate are analyzed to divide the situation into three categories: a continuous and stable pressure increase is a normal state, a pressure drop or a too low change rate is a leakage state, and a too fast pressure rise is an abnormal equipment state. It can not only effectively filter out misjudgments caused by interference factors, but also identify abnormal situations such as equipment failures, significantly improving the reliability and practicality of detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a flow chart of an online gas leak detection method according to an embodiment of the present application; Figure 2 It is a flow chart of step S110 in an online gas leak detection method according to an embodiment of the present application; Figure 3 It is a flow chart of step S120 in an online gas leak detection method according to an embodiment of the present application; Figure 4 It is a flow chart of step S130 in an online gas leak detection method according to an embodiment of the present application; Figure 5 It is a schematic diagram of a pressure relief process in an online gas leak detection method according to an embodiment of the present application; Figure 6 It is a structural schematic diagram of an online gas leak detection system according to an embodiment of the present application; Figure 7 It is a diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0021] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to any or all possible combinations comprising one or more listed items.
[0022] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0023] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.
[0024] In a first aspect, the present application provides an online gas leak detection method, which is applied to a gas pipeline system, wherein the system includes a gas meter, a stop valve and a drive device, wherein the gas meter includes a pressure sensor and a processor, the stop valve is arranged at the inlet of the gas pipeline, and the drive device is arranged at the water heater, and is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure, and the processor is communicatively connected with the pressure sensor, the stop valve and the drive device.
[0025] Reference Figure 1 , the method is executed by the processor, comprising the following steps: S110, reading the pressure reference value of the pressure sensor, and sending a control signal to close the stop valve and start the drive device.
[0026] The pressure reference value refers to the standard pressure value of the system under normal working conditions. In this embodiment, before the detection starts, the processor first reads the current real-time pressure value of the pressure sensor as the reference value, and stores the value in the memory for subsequent calculations; at the same time, it sends a closing signal to the stop valve to ensure that the pipe section to be tested is isolated from the external gas source, and then starts the drive device to apply a preset pressure to the pipeline.
[0027] In this embodiment, the driving device may be a variable frequency centrifugal fan or a booster pump, which is controlled by a PWM signal sent by a processor to ensure that the system pressure is increased steadily and reliably.
[0028] Specifically, after the drive device is started, the pressure in the pipeline is increased to a level 0.5kPa to 1kPa higher than the pressure reference value. For example, when the pressure reference value is 1.5kPa, the drive device will increase the pipeline pressure to a range of 2.0kPa to 2.5kPa. This pressurization process usually lasts 15 to 30 seconds, and the system will wait for the pressure to stabilize before entering the next step.
[0029] S120, collecting a pressure data sequence according to a preset sampling period, and calculating the difference between the pressure value in the pressure data sequence and the pressure reference value as the pressure variation.
[0030] The preset sampling period refers to the time interval for the system to collect pressure data. In this embodiment, pressure data is collected every 5 seconds. The processor combines the multiple pressure values collected continuously into a pressure data sequence and calculates the pressure change by subtracting the pressure reference value from the current pressure value.
[0031] Specifically, the system will continuously collect 12 pressure data points in one detection cycle, forming a 1-minute detection sequence. For example, if the pressure reference value is 1.5 kPa, and the pressure value collected at a certain time is 1.8 kPa, then the pressure change at this point is 0.3 kPa.
[0032] S130. Determine whether there is a leakage according to the pressure change. If it is determined to be a leakage, keep the stop valve closed and generate an alarm signal.
[0033] The system determines whether there is a leak based on the magnitude of the pressure change. This embodiment sets a warning threshold. When the pressure change exceeds the threshold, the system determines that there is a risk of leakage. If a leak is confirmed, the processor will keep the shut-off valve closed to prevent further leakage of gas.
[0034] Specifically, when the pressure change is detected to be reduced by more than 0.2kPa, the system determines that a leak has occurred. At this time, the processor will immediately generate an alarm signal, which can be an audible and visual alarm, or an alarm message sent to the user's mobile phone. For example, when the pressure is detected to drop from 2.0kPa to 1.7kPa, since the pressure change is -0.3kPa, which exceeds the warning threshold, the system will trigger an alarm.
[0035] Furthermore, in one embodiment, the system uses multi-level leakage location technology to achieve precise positioning, and divides the pipeline from the user end to the gas meter into 3-5 pressure detection sub-intervals according to the distribution of branches, and a micro pressure sensor is set in each sub-interval. When a leak occurs, the sub-interval where the leak occurs is determined by analyzing the propagation delay of the air pressure wave between adjacent sensors. At the same time, acoustic sensors are arranged at key nodes of the pipeline to collect sound wave characteristics, and the scope of the leak location is further narrowed by comparing the sound spectrum characteristics under normal flow and leakage conditions. The system stores the maintenance records of all gas facilities of the same type, including information such as location, cause, and treatment method, in a database to establish a regional fault distribution map. When more than three similar faults occur in different gas facilities in the same building unit or the same pipe section, or when the failure rate of gas facilities installed in the same year of construction, the same manufacturer, and the same batch exceeds 5%, such facilities are automatically listed as key monitoring objects and special maintenance plans are formulated.
[0036] S140: If it is determined to be normal, the stop valve is controlled to open and the drive device is closed, and the test data is recorded and a test report is generated.
[0037] When the system determines that the pipeline is in normal condition, the processor will perform a recovery operation to return the system to normal working condition. At the same time, the system will record and organize the relevant data of this test and generate a test report in a standard format.
[0038] Specifically, the processor first sends an opening signal to the stop valve to restore the gas supply, and at the same time turns off the drive device to stop pressurization. The test report contains information such as the test time, pressure reference value, pressure change data, and judgment results. For example, the report will record detailed information such as "Testing was performed at 10:00:00 on February 1, 2024, the pressure reference value was 1.5kPa, the maximum pressure change was 0.1kPa, and the judgment result was: normal".
[0039] Furthermore, the system divides each day into six time periods based on the historical gas usage data collected by the gas meter. The processor identifies the user's fixed gas usage pattern by analyzing the gas usage data for 30 consecutive days. At the same time, the system divides users into three categories according to their gas usage patterns: breakfast type (morning gas usage accounts for more than 40%), dinner type (evening gas usage accounts for more than 50%), and balanced type (the difference in gas usage in each time period is within 20%). Depending on the user type, the processor increases the detection frequency to once an hour during peak gas usage and reduces it to once every 4 hours during low gas usage. In addition, when the system detects a sudden increase of more than 50% in gas usage for three consecutive days, it determines it as a holiday gas usage mode and adjusts the detection parameters accordingly.
[0040] In one embodiment, the gas meter further includes a temperature sensor, referring to Figure 2In step S110, the pressure reference value of the pressure sensor is read, and a control signal is sent to close the stop valve and start the drive device, which specifically includes the following steps: S111. Read the temperature value of the temperature sensor.
[0041] The temperature sensor is installed inside the gas meter to measure the real-time temperature of the gas. In this embodiment, the measurement range of the temperature sensor is -20°C to 60°C, and the measurement accuracy is ±0.5°C. Before each detection, the current temperature value needs to be read as a reference for the pressure reference value.
[0042] Specifically, the processor reads the data of the temperature sensor in real time through the digital interface, with a sampling time of 100ms, and takes the average value after 5 consecutive samplings as the current temperature value. For example, during a certain detection, the consecutively sampled temperature values are 22.3℃, 22.5℃, 22.4℃, 22.3℃, and 22.4℃, respectively, and the final temperature value is 22.38℃.
[0043] S112, determining a target pressure range from a preset temperature-pressure correspondence table according to the temperature value.
[0044] The temperature-pressure correspondence table is a query table pre-established according to the physical characteristics of the gas and stored in the memory of the processor. In this embodiment, the table divides the temperature range of -20°C to 60°C into 8 intervals, each of which corresponds to a reasonable pressure range.
[0045] Specifically, when the temperature is between 20°C and 25°C, the corresponding target pressure range is 1.8kPa to 2.2kPa; when the temperature is between 25°C and 30°C, the corresponding target pressure range is 1.6kPa to 2.0kPa. For example, when the measured temperature is 22.38°C, the system will look up the table to determine that the target pressure range is 1.8kPa to 2.2kPa.
[0046] S113: Determine whether the real-time pressure value of the pressure sensor is within the target pressure range.
[0047] The processor reads the real-time pressure value of the pressure sensor and compares it with the target pressure range determined in step S112.
[0048] Specifically, the system continuously collects pressure data within 5 seconds and calculates an average value, and compares the average value with the target pressure range.
[0049] S114. If the real-time pressure value is within the target pressure range, a control signal is sent to close the stop valve, and after waiting for a preset stabilization time, the current pressure value of the pressure sensor is recorded as the pressure reference value, and then the drive device is started.
[0050] The preset stabilization time refers to the time to wait for the system pressure to stabilize after closing the stop valve. In this embodiment, the preset stabilization time is 30 seconds, during which the system will continue to monitor the changing trend of the pressure value to ensure that the pressure reaches a stable state.
[0051] Specifically, when the real-time pressure value is confirmed to be within the target range, the processor first sends a closing signal to the stop valve, and then waits for 30 seconds. If the pressure fluctuation does not exceed ±0.05kPa during this 30 seconds, the pressure is considered to be stable. For example, after the stop valve is closed during a test, the pressure value monitored by the system within 30 seconds is stable within the range of 1.95kPa±0.03kPa, and 1.95kPa is recorded as the pressure reference value.
[0052] S115. If the real-time pressure value is not within the target pressure range, a pressure abnormality prompt message is generated.
[0053] The abnormal pressure prompt information includes abnormal type, actual pressure value, target pressure range, etc. In this embodiment, the system will display the abnormal information on the display screen of the gas meter and send it to the relevant monitoring system through the communication interface.
[0054] Specifically, when a pressure abnormality is detected, the system will generate a prompt message containing specific data.
[0055] In one embodiment, the pressure data sequence includes pressure data of multiple detection cycles. Figure 3 In step S120, a pressure data sequence is collected according to a preset sampling period, and the difference between the pressure value in the pressure data sequence and the pressure reference value is calculated as the pressure variation, which specifically includes the following steps: S121. In each detection cycle, a plurality of pressure values are continuously collected according to a preset sampling cycle.
[0056] The detection period refers to the time required for a complete pressure data collection process, which is set to 2 minutes in this embodiment. The preset sampling period is 5 seconds, that is, in each detection period, the system collects pressure values every 5 seconds, and collects a total of 24 data points.
[0057] Specifically, the system starts timing from the start of the driving device and records the current pressure value at each 5-second sampling point.
[0058] S122, arranging the pressure values in each detection cycle in chronological order to form a pressure change curve.
[0059] The pressure change curve is a two-dimensional curve drawn with time as the horizontal axis and pressure value as the vertical axis. In this embodiment, the processor arranges the collected 24 pressure values in the order of sampling time to form a curve reflecting the pressure change trend over time.
[0060] Specifically, the system uses an array to store the pressure value corresponding to each time point and establishes a time-pressure correspondence.
[0061] S123. Calculate the rate of change of the pressure change curve, where an increase is a positive rate of change and a decrease is a negative rate of change.
[0062] The rate of change indicates the magnitude of the pressure change per unit time, and is used to reflect the speed of pressure change. In this embodiment, the system calculates the pressure difference between two adjacent sampling points and divides it by the time interval (5 seconds) to obtain the rate of change in kPa / s.
[0063] Specifically, when the pressure value of the next sampling point is greater than that of the previous sampling point, the calculated change rate is a positive value; otherwise, it is a negative value. For example, if the pressure drops from 2.5kPa to 2.48kPa with a time interval of 5 seconds, the change rate is -0.004kPa / s. The system records the change rate between every two adjacent sampling points to form a change rate sequence.
[0064] S124: taking the difference between the last pressure value of each detection cycle and the pressure reference value as the pressure variation.
[0065] The pressure change is used to indicate the degree of deviation from the reference pressure at the end of the current detection cycle. In this embodiment, the system takes the pressure value of the last sampling point (i.e., the 24th point) of each detection cycle, subtracts the initially recorded pressure reference value, and obtains the pressure change of the detection cycle.
[0066] S125. Record the corresponding relationship between the pressure change amount and the change rate.
[0067] The corresponding relationship between the pressure change amount and the change rate is an important basis for judging the operating state of the system. In this embodiment, the system stores the pressure change amount and its corresponding change rate sequence in each detection cycle in a database.
[0068] Specifically, the data recorded by the system includes information such as the detection cycle number, pressure change, and change rate at each time point.
[0069] In one embodiment, referring to Figure 4 In step S130, it is determined whether there is leakage according to the pressure change. If it is determined to be leakage, the stop valve is kept closed and an alarm signal is generated, which specifically includes the following steps: S131, obtaining the pressure change amount and the corresponding change rate of three consecutive detection cycles.
[0070] The three consecutive detection cycles are to ensure the accuracy of the judgment result and avoid the accidental results of single or double detection. In this embodiment, each detection cycle lasts for 2 minutes, and the system will obtain the pressure change data within the last 6 minutes for analysis.
[0071] Specifically, the system reads complete data records of the last three detection cycles from the database.
[0072] S132, calculating the variation range between every two adjacent pressure values in three consecutive detection cycles.
[0073] The variation amplitude refers to the difference in pressure variation between adjacent detection cycles.
[0074] In this embodiment, the system calculates the difference between the pressure changes in two adjacent detection cycles to evaluate the stability of the pressure change.
[0075] S133: If the variation is greater than a preset fluctuation threshold, extend the sampling time of the current detection cycle and perform re-sampling.
[0076] The preset fluctuation threshold is a standard for judging whether the pressure change is stable. In this embodiment, the preset fluctuation threshold is set to 0.05 kPa. When the change amplitude of adjacent cycles exceeds this value, it indicates that the pressure change is not stable enough.
[0077] Specifically, if the calculated change is greater than 0.05 kPa, the system will extend the current detection cycle by 1 minute and continue to collect 12 new pressure data points during the extended time. For example, if the change in the adjacent cycles is 0.06 kPa in a certain detection, which exceeds the threshold, an additional 1 minute of data will be collected on the basis of the original 2 minutes.
[0078] S134. If the change amplitude is less than or equal to the preset fluctuation threshold, determine the pressure change trend of three consecutive detection cycles; specifically, include: When the pressure shows a continuous upward trend and the rate of change is within the preset normal range, it is judged to be normal; When the pressure shows a downward trend or the rate of change is lower than the preset normal range, it is judged as a leak; When the pressure shows an upward trend but the rate of change exceeds the upper limit of the preset normal range, it is determined that the drive device is abnormal; S135. Generate a corresponding alarm signal according to the determination result, and keep the stop valve closed.
[0079] Different determination results correspond to different types of alarm signals. In this embodiment, the system is designed with three alarm levels: leakage alarm, equipment abnormality alarm and normal operation prompt.
[0080] Specifically, when a leak is detected, the system will issue a high-frequency sound and light alarm and send a text message notification to the management personnel; when the drive device is detected to be abnormal, the system will issue a low-frequency sound and light alarm; when it is detected to be normal, the system will display a green operating indicator light. In any abnormal situation, the system will keep the stop valve closed until the maintenance personnel have completed the processing.
[0081] In one embodiment, the driving device includes a solenoid valve arranged on the air inlet pipe of the water heater and a booster pump connected in series with the solenoid valve; the output end of the booster pump is connected to the gas pipeline; the processor applies a preset pressure to the gas pipeline by controlling the switching state of the solenoid valve and the booster pump.
[0082] In one embodiment, the system further comprises a pressure relief valve disposed on the gas pipeline, the pressure relief valve being communicatively connected to the processor; Figure 5 , the method further comprises the steps of: S510 , monitoring the pressure value of the pressure sensor in real time during the detection process.
[0083] Among them, real-time monitoring means that the system continuously collects pressure data during the entire detection process. In this embodiment, the sampling frequency of the pressure sensor is set to once every 100ms to ensure that pressure anomalies can be discovered in time.
[0084] Specifically, the processor reads the value of the pressure sensor every 100ms and stores the data in a temporary buffer. For example, if the pressure values collected continuously at a certain moment are [2.8kPa, 2.85kPa, 2.9kPa, 2.95kPa], the system will compare these values with the safety pressure limit in real time.
[0085] S520: When it is detected that the pressure value exceeds the preset upper limit of the safety pressure, the driving device is immediately closed and the pressure relief valve is opened.
[0086] The preset safety pressure upper limit is the maximum allowable pressure value determined according to the strength of the pipeline material and the safety requirements for use. In this embodiment, the safety pressure upper limit is set to 3.0 kPa. Once the pressure is detected to exceed this value, the system will immediately start the safety protection mechanism.
[0087] Specifically, when the pressure value detected exceeds 3.0 kPa, the processor will perform two actions at the same time: sending a closing signal to the drive device and sending an opening signal to the pressure relief valve.
[0088] S530: When the pressure value drops to a safe range, close the pressure relief valve.
[0089] The safety range refers to the normal working pressure range, which is less than 80% of the preset safety pressure upper limit. In this embodiment, when the pressure value drops below 2.4 kPa, the system considers that the pressure has returned to the safety range.
[0090] Specifically, the system continuously monitors the pressure changes during the pressure relief process. When it is observed that the pressure value is lower than 2.4 kPa for five consecutive measurements, the processor sends a closing signal to the pressure relief valve.
[0091] S540. Record pressure over-limit event information, where the pressure over-limit event information includes occurrence time, maximum pressure value, and duration.
[0092] Among them, the pressure over-limit event information is an important record content of the system safety monitoring. In this embodiment, after each pressure over-limit event occurs, the system will record a complete set of event information in the memory.
[0093] Specifically, the recorded information includes: the timestamp of the event, the maximum pressure, the duration of the over-limit (in seconds), and the processing process. For example: "2024-02-15 14:30:22, the maximum pressure is 3.1kPa, the duration is 8 seconds, and the system has automatically performed pressure relief". These records are exported through the communication interface for subsequent equipment maintenance and safety analysis.
[0094] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0095] In a second aspect, the present application provides an online gas leakage detection system. The online gas leakage detection system of the present application is described below in combination with the above-mentioned online gas leakage detection method.
[0096] Reference Figure 6 , an online gas leak detection system, comprising: A gas meter, the gas meter includes a pressure sensor and a processor; Stop valve, installed at the inlet of gas pipeline; A driving device is arranged at the water heater, and is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure; The processor is in communication connection with the pressure sensor, the stop valve and the drive device; The processor performs the following steps: Read the pressure reference value of the pressure sensor and send a control signal to close the stop valve and start the drive device; Collecting a pressure data sequence according to a preset sampling period, and calculating the difference between the pressure value in the pressure data sequence and the pressure reference value as the pressure variation; Determine whether there is a leak based on the pressure change. If it is a leak, keep the stop valve closed and generate an alarm signal; If it is judged to be normal, the stop valve is controlled to open and the drive device is closed, and the test data is recorded and a test report is generated.
[0097] In one embodiment, the present application provides an electronic device, which may be a server, and its internal structure diagram may be as follows: Figure 7 As shown. The electronic device includes a processor, a memory and a network interface connected through a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the electronic device is used to store data. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an online gas leak detection method is implemented.
[0098] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0099] In one embodiment, an electronic device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0100] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).
[0101] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. An online gas leak detection method, characterized in that: Applied to a gas pipeline system, the system comprising: A gas meter, the gas meter comprising a pressure sensor and a processor; A stop valve installed at the inlet of the gas pipeline; A driving device disposed at the water heater, the driving device is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure; The processor is in communication with the pressure sensor, the shut-off valve and the drive device; The method is executed by the processor and comprises the following steps: Reading the pressure reference value of the pressure sensor, and sending a control signal to close the stop valve and start the driving device; Collecting a pressure data sequence according to a preset sampling period, and calculating a difference between a pressure value in the pressure data sequence and the pressure reference value as a pressure variation; Determine whether there is leakage according to the pressure change, and if it is determined to be leakage, keep the stop valve closed and generate an alarm signal; If it is determined to be normal, the stop valve is controlled to open and the drive device is closed, and the detection data is recorded and a detection report is generated.
2. The online gas leak detection method according to claim 1, characterized in that: The gas meter further includes a temperature sensor, which reads the pressure reference value of the pressure sensor and sends a control signal to close the stop valve and start the drive device, specifically including the following steps: Reading the temperature value of the temperature sensor; Determine the target pressure range from a preset temperature-pressure correspondence table according to the temperature value; Determining whether the real-time pressure value of the pressure sensor is within the target pressure range; If the real-time pressure value is within the target pressure range, a control signal is sent to close the stop valve, and after waiting for a preset stabilization time, the current pressure value of the pressure sensor is recorded as the pressure reference value, and then the driving device is started; If the real-time pressure value is not within the target pressure range, a pressure abnormality prompt message is generated.
3. The online gas leakage detection method according to claim 1, characterized in that: The pressure data sequence includes pressure data of multiple detection cycles, the pressure data sequence is collected according to a preset sampling cycle, and the difference between the pressure value in the pressure data sequence and the pressure reference value is calculated as the pressure variation, which specifically includes the following steps: In each detection cycle, multiple pressure values are continuously collected according to a preset sampling period; Arranging the pressure values in each detection cycle in chronological order to form a pressure change curve; Calculate the change rate of the pressure change curve, where an increase is a positive change rate and a decrease is a negative change rate; Taking the difference between the last pressure value of each detection cycle and the pressure reference value as the pressure variation; The corresponding relationship between the pressure change amount and the change rate is recorded.
4. The online gas leakage detection method according to claim 3, characterized in that: Determining whether there is a leakage according to the pressure change, and if it is determined to be a leakage, keeping the stop valve closed and generating an alarm signal, specifically includes the following steps: Obtain the pressure change and corresponding change rate of three consecutive detection cycles; Calculating the variation range between each two adjacent pressure values in the three consecutive detection cycles; If the variation is greater than the preset fluctuation threshold, the sampling time of the current detection cycle is extended and re-sampled; If the change amplitude is less than or equal to the preset fluctuation threshold, the pressure change trend of the three consecutive detection cycles is determined: When the pressure shows a continuous upward trend and the rate of change is within the preset normal range, it is judged to be normal; When the pressure shows a downward trend or the rate of change is lower than the preset normal range, it is judged as a leak; When the pressure shows an upward trend but the rate of change exceeds the upper limit of the preset normal range, it is determined that the drive device is abnormal; A corresponding alarm signal is generated according to the determination result, and the stop valve is kept in a closed state.
5. The online gas leakage detection method according to claim 1, characterized in that: The driving device comprises: A solenoid valve disposed on the air inlet pipe of the water heater; a booster pump connected in series with the solenoid valve; The output end of the booster pump is in communication with the gas pipeline; The processor applies a preset pressure to the gas pipeline by controlling the switching states of the solenoid valve and the booster pump.
6. The online gas leakage detection method according to claim 5, characterized in that: The system further includes a pressure relief valve disposed on the gas pipeline, and the pressure relief valve is communicatively connected to the processor; the method further includes the following steps: During the detection process, the pressure value of the pressure sensor is monitored in real time; When it is detected that the pressure value exceeds the preset safety pressure upper limit, the driving device is immediately closed and the pressure relief valve is opened; When the pressure value drops to a safe range, the pressure relief valve is closed; The pressure over-limit event information is recorded, wherein the pressure over-limit event information includes the occurrence time, the maximum pressure value and the duration.
7. An online gas leak detection system, characterized in that: include: A gas meter, the gas meter comprising a pressure sensor and a processor; Stop valve, installed at the inlet of gas pipeline; A driving device is arranged at the water heater, and is used to apply a preset pressure to the gas pipeline during the detection process so that the pressure in the pipeline is higher than the atmospheric pressure; The processor is in communication with the pressure sensor, the shut-off valve and the drive device; The processor performs the following steps: Reading the pressure reference value of the pressure sensor, and sending a control signal to close the stop valve and start the driving device; Collecting a pressure data sequence according to a preset sampling period, and calculating a difference between a pressure value in the pressure data sequence and the pressure reference value as a pressure variation; Determine whether there is leakage according to the pressure change, and if it is determined to be leakage, keep the stop valve closed and generate an alarm signal; If it is determined to be normal, the stop valve is controlled to open and the drive device is closed, and the detection data is recorded and a detection report is generated.
8. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the online gas leakage detection method according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the online gas leakage detection method according to any one of claims 1 to 6 are implemented.
Citation Information
Cited By
Sensor positioning method, device and equipment for underground pipe network and medium
CN120316396A