A method for identifying biogas under a gas pipeline adjacent underground space methane alarm
By preprocessing and correlation analysis of methane concentration data in underground spaces adjacent to gas pipelines, the causes of gas leaks and biogas generation are identified, solving the problem of inaccurate identification in existing technologies and improving the efficiency of emergency response.
Patent Information
- Application Number
- CN202211650471.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-21
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2042-12-21
AI Technical Summary
Existing technologies cannot effectively distinguish whether methane generation in underground spaces is due to gas leaks or the growth of methane within the well, leading to inaccurate emergency response.
By acquiring methane concentration data from underground spaces adjacent to gas pipelines, performing preprocessing, and conducting correlation analysis, the corresponding periods of the three highest amplitudes were obtained, and an autocorrelation test was performed. The cause of biogas generation was determined by combining the concentration fluctuation rate.
It enables accurate identification of gas leaks and biogas production, improves the efficiency of emergency response, and avoids the waste of human resources.
Smart Images

Figure CN115964609B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of gas and biogas identification technology, specifically to a method for identifying gas and biogas under methane alarm conditions in underground spaces adjacent to gas pipelines. Background Technology
[0002] With the accelerating pace of urbanization, underground pipe networks are becoming increasingly dense. Due to the flammable and explosive nature of natural gas, once a buried gas pipeline leaks, it can spread to adjacent underground pipe networks, accumulating and exploding. Several such accidents have occurred in my country, drawing significant public attention. Installing combustible gas monitoring equipment in adjacent underground spaces to monitor the accumulation of combustible gases in real time can effectively provide early warnings of such accidents. Methane can be generated in underground spaces through two pathways: gas leaks and methane formation within wells. Since different handling units are required for these pathways, it is necessary to identify whether underground space alarms involve natural gas or methane.
[0003] In the prior art, patent document CN111076096B discloses a method and device for identifying gas pipeline leaks. It also discloses that by using the spatiotemporal coupling characteristics of gas pipeline leak points and performing spatiotemporal clustering analysis using the DBSCAN algorithm, the risk of gas leaks in a certain area can be identified. However, due to the different pathways of methane generation in underground spaces, the existing technology is unable to distinguish whether the methane is generated by gas leaks or by the growth of methane in wells. Based on the identification results, different emergency measures are used for accurate handling. Summary of the Invention
[0004] The purpose of this invention is to provide a method for identifying gas and biogas under methane alarm conditions in underground spaces adjacent to gas pipelines, thereby solving the following technical problems: Due to the different pathways of methane generation in underground spaces, existing technologies struggle to distinguish whether methane is generated from gas leaks or from biogas production within wells, and different emergency response measures should be adopted based on the identification results for accurate handling.
[0005] The objective of this invention can be achieved through the following technical solutions: A method for identifying biogas under methane alarm conditions in underground spaces adjacent to gas pipelines includes the following steps: S101. Obtain methane concentration data in the underground space adjacent to the gas pipeline and perform preprocessing. S102. Based on the preprocessed monitoring data, perform correlation analysis to obtain the cycles corresponding to the three highest amplitudes, and perform autocorrelation test on the potential cycles. S103. Identify biogas and natural gas based on the obtained periodic features; S104. Output the identification results.
[0006] Preferably, in step S101, the methane concentration data preprocessing method includes the following steps: Data Acquisition: When acquiring data, obtain the concentration time series data (df) for the fifteen days prior to the alarm point; Data resampling: Based on the different concentration upload periods, the concentration data is resampled every 5 minutes; Filling blanks and deburring: Replace all values with a concentration of 0 or NAN with 0.01 and perform shift smoothing to form the concentration time series df2.
[0007] Preferably, the concentration time series data df includes time and alarm concentration.
[0008] Preferably, in step S102, correlation analysis is performed based on the preprocessed monitoring data, including the following steps: The df2 is decomposed using the seasonal decompose function in an additive model to obtain its trend data Tt, periodicity St, and random residual Rt; Remove the trending data from df2 to form a new dataset df3; Perform a Fourier transform on df3 to obtain the periods corresponding to the three highest amplitudes, and perform an autocorrelation test on the potential periods.
[0009] Preferably, the new dataset df3 can be calculated as follows: .
[0010] Preferably, in step S103, the identification of biogas based on the obtained periodic characteristics further includes the following identification method: Analyze whether any of the three cycles falls within the range of 288±12 sampling points. If the autocorrelation coefficient of that cycle is ≥0.4, the biogas identification result is biogas; otherwise, proceed to the next step. The 3-day, 7-day, and 15-day concentration volatility of the time series data df3 are calculated as follows:
[0011] Where x represents the time series data to be calculated; wr represents the calculated volatility index value; quantile(x,0.9) represents the 90th quantile of data x; quantile(x, 0.1) represents the 10th quantile of data x; Identification based on volatility.
[0012] The preferred identification method is as follows: If it is determined to be non-biogas, and the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is ≥0.3, the biogas identification result is biogas; If the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is less than 0.3, the identification result for biogas is suspected to be biogas.
[0013] Preferably, the volatility is calculated using the 90th and 10th percentiles of the daily alarm concentration.
[0014] The beneficial effects of this invention are: This invention performs correlation analysis on preprocessed monitoring data to obtain the corresponding periods of the three highest amplitudes, and performs autocorrelation tests on potential periods. Based on the obtained periodic characteristics, it identifies gas and biogas, analyzes whether any of the three periods is within a preset range, and judges the gas and biogas results based on their autocorrelation coefficients. At the same time, it calculates the concentration fluctuation rate of time series data and judges whether it is a gas leak based on the standard deviation of the concentration transmission rate within any period. Compared to the existing DBSCAN algorithm, which uses spatiotemporal clustering analysis to identify gas leak risks in a certain area, this invention can effectively identify the cause of methane leaks and accurately handle them using different emergency measures based on the identified cause. The identification results of this invention can effectively improve the emergency response efficiency of gas companies and avoid the waste of human resources caused by frequent methane alarms. Attached Figure Description
[0015] The invention will now be further described with reference to the accompanying drawings.
[0016] Figure 1 This is a schematic diagram of the process for identifying gas and biogas under methane alarm conditions in an underground space adjacent to a gas pipeline, according to the present invention. Figure 2 This is a schematic diagram of test example 1 of the present invention. Figure 1 ; Figure 3 This is a schematic diagram of test example 1 of the present invention. Figure 2 ; Figure 4 This is a schematic diagram of test example 2 of the present invention. Figure 1 ; Figure 5 This is a schematic diagram of test example 2 of the present invention. Figure 2 . Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] Please see Figure 1As shown, this invention provides a method for identifying gas and biogas under methane alarm conditions in underground spaces adjacent to gas pipelines, comprising the following steps: S101. Obtain methane concentration data in the underground space adjacent to the gas pipeline and perform preprocessing. S102. Based on the preprocessed monitoring data, perform correlation analysis to obtain the cycles corresponding to the three highest amplitudes, and perform autocorrelation test on the potential cycles. S103. Identify biogas and natural gas based on the obtained periodic features; S104. Output the identification results.
[0019] Specifically, in step S101, the methane concentration data preprocessing also includes the following steps: S1011, Data Acquisition: When acquiring data, acquire the time series data df of the concentration 15 days prior to the alarm point. The data includes the time and the alarm concentration. S1012, Data resampling: Based on the different concentration upload cycles, the concentration data is resampled for 5 minutes; S1013, Filling in blanks and deburring: For all concentrations of 0 or NAN (Not a Number), replace them with 0.01 and perform shift smoothing to form the concentration time series df2; It can be explained that concentration monitors can be evenly distributed at alarm points. After the concentration monitor detects the leakage concentration data at the corresponding alarm point, it can simultaneously obtain the detection time as time data and obtain the location information of the alarm point, such as urban construction coordinates or Beidou latitude and longitude coordinates, as spatial data.
[0020] In step S102, the correlation analysis based on the preprocessed monitoring data also includes the following steps: S1021. Decompose df2 using the seasonal decompose function (time series decomposition function) with an "additive" model to obtain its trend data Tt, periodicity St, and random residual Rt. S1022. Remove the trend-related data from df2 to form a new dataset df3, i.e. ; S1023. Perform a Fourier transform on df3 to obtain the periods corresponding to the three highest amplitudes, and perform an autocorrelation test on the potential periods.
[0021] In step S103, the identification of biogas based on the obtained periodic characteristics also includes the following identification method: S1031. Analyze whether any of the above three cycles falls within the range of 288±12 collection points. If the autocorrelation coefficient of that cycle is ≥0.4, then the biogas identification result is biogas; otherwise, proceed to the next step. S1032. Calculate the 3-day, 7-day, and 15-day concentration volatility of the time-series data df3, respectively. The volatility is calculated using the 90th and 10th percentiles of the daily alarm concentration, as follows:
[0022] Where x represents the time series data to be calculated; wr represents the calculated volatility index value; quantile(x,0.9) represents the 90th quantile of data x; quantile(x, 0.1) represents the 10th quantile of data x; S1033, if it is determined to be non-biogas, and the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is ≥0.3, the biogas identification result is biogas; If the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is less than 0.3, the identification result for biogas is suspected to be biogas.
[0023] Test Example 1, please refer to Figures 2-3 : Calculation result: Smoothed data periodic analysis: lag: 1344 fft acf: -0.03896712208835757 lag: 2016 fft acf: 0.12107040604389371 Periodic analysis after removing trend data: -trendlag: 403 fft acf: 0.2610323940876531 -trendlag: 212 fft acf: 0.12451553612450963 3-day volatility (std) 0.158804 7-day volatility (std) is 0.247528. 15-day volatility (std) is 0.318501. In summary, the data does not have a good fluctuation period of one day (288), and the potential fluctuation period has a low autocorrelation coefficient; the 3-day and 7-day volatility is less than 0.30, and the 15-day volatility is greater than 0.3; the result is a gas leak, which is consistent with the on-site verification results; Test Example 2, please refer to Figures 4-5 : Calculation result: Smoothed data periodic analysis: Lag: 2145 fft acf: -0.26977777745287485 Lag: 4290 fft acf: 0.000127970462888943 Periodic analysis after removing trend data: -trendlag: 268 fft acf: 0.5362933559160494 -trendlag: 286 fft acf: 0.629435643494256 3-day volatility (std) 0.452124 7-day volatility (std) 0.272809 15-day volatility (std) is 0.315697. In summary, after removing trend-related data, we can see that there is a one-day fluctuation cycle and a high autocorrelation coefficient; the result is biogas accumulation, which is consistent with the on-site verification results.
[0024] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Furthermore, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0025] The foregoing has provided a detailed description of one embodiment of the present invention, but this description is merely a preferred embodiment and should not be construed as limiting the scope of the invention. All equivalent variations and modifications made within the scope of the claims of this invention should still fall within the patent coverage of this invention.
Claims
1. A method for identifying biogas under methane alarm conditions in underground spaces adjacent to gas pipelines, characterized in that, Includes the following steps: S101. Obtain methane concentration data in the underground space adjacent to the gas pipeline and perform preprocessing. S102. Based on the preprocessed monitoring data, perform correlation analysis to obtain the cycles corresponding to the three highest amplitudes, and perform autocorrelation test on the potential cycles. S103. Identify biogas and natural gas based on the obtained periodic features; S104. Output the identification results; In step S101, the methane concentration data preprocessing method includes the following steps: Data Acquisition: When acquiring data, obtain the concentration time series data (df) for the fifteen days prior to the alarm point; Data resampling: Based on the different concentration upload periods, the concentration data is resampled every 5 minutes; Filling blanks and deburring: Replace all values with a concentration of 0 or NAN with 0.01 and perform shift smoothing to form the concentration time series df2; In step S102, correlation analysis is performed based on the preprocessed monitoring data, including the following steps: The df2 is decomposed using the seasonal decompose function in an additive model to obtain its trend data Tt, periodicity St, and random residual Rt; Remove the trending data from df2 to form a new dataset df3; Perform a Fourier transform on df3 to obtain the periods corresponding to the three highest amplitudes, and perform an autocorrelation test on the potential periods to obtain the autocorrelation coefficients. The new dataset df3 can be calculated using the following formula: ; In step S103, the identification of biogas based on the obtained periodic characteristics also includes the following identification method: Analyze whether any of the three cycles falls within the range of 288±12 sampling points. If there is a cycle within this range and the autocorrelation coefficient of that cycle is ≥0.4, then the biogas identification result is biogas; otherwise, proceed to the next step. The 3-day, 7-day, and 15-day concentration volatility of the time series data df3 are calculated as follows: Where x represents the time series data to be calculated; wr represents the calculated volatility index value; quantile(x,0.9) represents the 90th quantile of data x; quantile(x, 0.1) represents the 10th quantile of data x; Identification based on volatility; The identification method is as follows: If it is determined to be non-biogas, and the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is ≥0.3, the biogas identification result is biogas; If the concentration fluctuation rate of df3 over any of the 3-day, 7-day, and 15-day periods is less than 0.3, the identification result for biogas is suspected to be biogas.
2. The method for identifying gas and biogas under methane alarm conditions in underground spaces adjacent to gas pipelines according to claim 1, characterized in that, The concentration time series data df includes time and alarm concentration.
Citation Information
Patent Citations
Methods and devices for identifying gas pipeline leaks
CN111076096B
Gas leakage judging method and device, and electronic equipment
CN109215295A
Gateway electric energy meter data anomaly detection method and system based on pseudo abnormal point identification
CN112213687A
