Gas leakage detection method and device, electronic equipment and storage medium
The time domain data is obtained through mechanical wave sensors and the location of gas leakage is determined, which solves the problem of difficulty in identifying the spectrum analysis method in the frequency domain, and achieves higher detection reliability and accuracy.
Patent Information
- Application Number
- CN202510445441.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-10
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, spectrum analysis methods are difficult to accurately identify gas leakage when gas leakage signals overlap with background noise in the frequency domain, resulting in leakage detection and safety hazards.
The time domain data is obtained by using a mechanical wave sensor to determine the abnormal data point, amplitude value and arrival time, and calculate the distance of the sensor relative to the target position of the gas leakage, and then determine the gas leakage position.
It improves the reliability and accuracy of gas leakage detection, avoids the shortcomings of relying on spectrum characteristics, and achieves higher detection accuracy.
Smart Images

Figure CN120332681A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of gas pipeline safety, and particularly to a gas leakage detection method and device, an electronic device, and a storage medium. Background Art
[0002] With the continuous improvement of industrial safety requirements, the importance of gas leakage detection technology in modern production has become increasingly prominent.
[0003] Gas leakage detection is based on the identification and measurement of the physical or chemical properties of the target gas, to determine whether gas in the pipeline leaks, the location where the leakage occurs, etc., and to give an alarm or close the valve, reminding relevant safety personnel to remove the fault in time, so as to avoid the leakage of toxic and flammable gases and prevent the occurrence of production safety accidents.
[0004] In the related art, the spectrum analysis method is used to identify gas leakage. By analyzing the spectrum characteristics of the vibration or noise signals generated when the gas leaks, the leaked gas is identified. However, since this method relies on spectrum characteristics, it is difficult to accurately identify when the signals of the leaked gas and the background noise overlap in the frequency domain; moreover, in some cases, the leaked gas may be missed due to insignificant spectrum characteristics, posing a safety hazard. Summary of the Invention
[0005] In view of the above problems, a gas leakage detection method and device, an electronic device, and a storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:
[0006] A gas leakage detection method, the method including:
[0007] Obtain time-domain data collected by at least two sensors, and determine a plurality of abnormal data points in each time-domain data; wherein, the sensors are mechanical wave sensors, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time;
[0008] According to the amplitude value, determine a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs;
[0009] According to the distance comparison result, determine a target abnormal data point corresponding to each sensor among the plurality of abnormal data points, and determine a target arrival time in the target abnormal data points;
[0010] Determine the position information of the target position according to the target arrival time.
[0011] Optionally, the determining a plurality of abnormal data points in each time-domain data includes:
[0012] In each piece of time-domain data, determine a first time range in which the downward trend index of the amplitude value does not meet the preset range;
[0013] Within the first time range, determine the multiple abnormal data points according to the amplitude value.
[0014] Optionally, the determining the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs according to the amplitude value includes:
[0015] In each piece of time-domain data, determine a second time range earlier than the first time range and a third time range later than the first time range;
[0016] Within the second time range and the third time range, determine the upper envelope variance index value of the amplitude value;
[0017] According to the comparison result of the upper envelope variance index values of the at least two sensors, determine the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs.
[0018] Optionally, before determining the target abnormal data point corresponding to each sensor among the multiple abnormal data points according to the distance comparison result, the method further includes:
[0019] Within the second time range, determine the floating range of the lower envelope of the amplitude value;
[0020] Filter the multiple abnormal data points according to the floating range of the lower envelope.
[0021] Optionally, the determining the position information of the target position according to the target arrival time includes:
[0022] Obtain a pre-calibrated gas leakage speed value;
[0023] Determine the position information of the target position according to the target arrival time and the gas leakage speed value.
[0024] Optionally, after obtaining the time-domain data collected by at least two sensors, the method further includes:
[0025] Perform filtering processing on the time-domain data.
[0026] Optionally, the mechanical wave sensor includes a negative pressure wave sensor or a infrasonic wave sensor.
[0027] A gas leakage detection device, the device includes:
[0028] An abnormal data point determination module, configured to obtain time-domain data collected by at least two sensors, and determine a plurality of abnormal data points in each piece of time-domain data; wherein, the sensors are mechanical wave sensors, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time;
[0029] A distance comparison result determination module, configured to determine a distance comparison result of the at least two sensors relative to a target location where gas leakage occurs according to the amplitude value;
[0030] A target arrival time determination module, configured to determine a target abnormal data point corresponding to each sensor among the plurality of abnormal data points according to the distance comparison result, and determine the target arrival time in the target abnormal data points;
[0031] A position information determination module, configured to determine the position information of the target location according to the target arrival time.
[0032] An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where when the computer program is executed by the processor, the gas leakage detection method as described above is implemented.
[0033] A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the gas leakage detection method as described above is implemented.
[0034] The embodiments of the present invention have the following advantages: By obtaining time-domain data collected by at least two sensors, and determining a plurality of abnormal data points in each piece of time-domain data; wherein, the sensors are mechanical wave sensors, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time; according to the amplitude value, determining a distance comparison result of the at least two sensors relative to a target location where gas leakage occurs; according to the distance comparison result, determining a target abnormal data point corresponding to each sensor among the plurality of abnormal data points, and determining the target arrival time in the target abnormal data points; determining the position information of the target location according to the target arrival time, without relying on the spectral characteristics of the mechanical wave, but analyzing the abnormal data points of the time-domain data to obtain the target arrival times of at least two sensors, and then determining the position information of the target location, with higher reliability and accuracy. Description of the Drawings
[0035] In order to more clearly illustrate the technical solutions of the present invention, the drawings required for the description of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.
[0036] Figure 1 is a flowchart of the steps of a gas leakage detection method provided by an embodiment of the present invention;
[0037] Figure 2 is a curve graph of the mechanical wave time-domain data collected by two sensors provided by an embodiment of the present invention;
[0038] Figure 3 is a process diagram of the implementation of a gas leakage detection method provided by an embodiment of the present invention;
[0039] Figure 4 is a structural block diagram of a gas leakage detection device provided by an embodiment of the present invention. Detailed implementation manners
[0040] In order to make the above objects, features and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific implementation manners. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0041] Referring to Figure 1 , a flowchart of the steps of a gas leakage detection method provided by an embodiment of the present invention is shown, which may specifically include the following steps:
[0042] Step 101, obtain time-domain data collected by at least two sensors, and determine a plurality of abnormal data points in each time-domain data; wherein, the sensor is a mechanical wave sensor, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time;
[0043] The time-domain data refers to the time-domain data of the mechanical wave generated by the vibration when gas (such as gas, toxic gas, etc.) is transmitted in the pipeline, including the arrival time of the mechanical wave (i.e., the time when the mechanical wave reaches the sensor), and the amplitude value (i.e., the signal intensity value) corresponding to the arrival time.
[0044] The abnormal data point is the data point corresponding to the time when gas leakage is suspected to occur.
[0045] In specific implementation, if there is no gas leakage, the amplitude value of its mechanical wave signal should tend to be stable; if gas leakage occurs, the amplitude value may mutate, and these data points with mutations can be considered as abnormal data points. Based on this, a preset algorithm can be used to analyze the time-domain data to determine the abnormal data points therein.
[0046] As an example, the PELT (Pruned Exact Linear Time) algorithm can be used to analyze abnormal data points in time-domain data. PELT is an algorithm for segment structure detection and is suitable for detecting change points in time series data. By dividing the time series into several time subsequences, making the change in each segment "optimal", and identifying these change points by minimizing a certain loss function to identify abnormal data points in the time-domain data.
[0047] Specifically, the loss function can be:
[0048]
[0049] where y s:t is the time subsequence from time s to time t, is the predicted value (mean) of this time subsequence. This loss function measures the fitting error of each time subsequence.
[0050] In practical applications, two sensors can be taken as a group, and multiple groups of sensors can be set in the gas pipeline to collect the time-domain data of the mechanical waves generated by the gas in the pipeline in real time.
[0051] In some embodiments of the present invention, after obtaining the time-domain data collected by at least two sensors, the method further includes:
[0052] Performing filtering processing on the time-domain data.
[0053] In this embodiment, after obtaining the time-domain data collected by at least two sensors, the time-domain data can be preprocessed. By filtering the time-domain data, the noise therein can be removed to obtain more accurate data.
[0054] As an example, Gaussian filtering can be used to preprocess the time-domain data. Gaussian filtering uses a weighted average smoothing method, using the Gaussian function (normal distribution curve) as the weight, and performs neighborhood weighted averaging on each point in the time-domain data to suppress noise while retaining the main features.
[0055] In some embodiments of the present invention, the mechanical wave sensor includes a negative pressure wave sensor or a infrasonic wave sensor.
[0056] Negative Pressure Wave refers to a fluctuation with a pressure lower than the atmospheric pressure. In gas leakage, gas flows from a high-pressure area (such as a pipeline) to a low-pressure area, which may cause local negative pressure. This negative pressure wave will propagate to the surrounding environment, affecting the direction of gas flow, and thus can affect the measurement results of the sensor.
[0057] Infrasound refers to sound waves with a frequency below 20 Hz. It has a long penetration distance and strong propagation ability. The infrasound generated during gas leakage can be detected by sensors on the ground or in the air, providing an early signal of leakage.
[0058] In practical applications, when a mechanical wave sensor uses a negative pressure wave sensor, the time-domain data is the time-domain data of the negative pressure wave; when the mechanical wave sensor uses an infrasound sensor, the time-domain data is the time-domain data of the infrasound.
[0059] In some embodiments of the present invention, determining a plurality of abnormal data points in each time-domain data includes:
[0060] Sub-step 1011: In each time-domain data, determine the first time range in which the downward trend index of the amplitude value does not conform to the preset range;
[0061] The downward trend index of the amplitude value is an index that characterizes the downward trend of the amplitude value within a certain time range and the specific degree of the decrease. The larger the downward trend index, the faster and more significant the decrease in the amplitude value. The preset range can be a normal value range predefined based on actual needs. When it is determined that the downward trend index of the amplitude value in a certain time range does not conform to the preset range, it is considered that the time range may include the time of gas leakage.
[0062] In some examples, the time-domain data can be first divided into multiple time ranges, and the slope of the amplitude value in each time range is calculated by the linear regression slope algorithm. If the slope is negative, it is the downward trend index of the amplitude value, and its magnitude reflects the degree of decrease in the amplitude value.
[0063] Sub-step 1012: In the first time range, determine the plurality of abnormal data points according to the amplitude value.
[0064] By determining the first time range in the time-domain data to initially determine the time range where the abnormal data points are located, and then determining the abnormal data points within the first time range, the data processing efficiency can be improved, and the accuracy of locating the abnormal data points can be improved.
[0065] Step 102: According to the amplitude value, determine the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs;
[0066] The distance comparison result refers to the distance of at least two sensors relative to the target position where gas leakage occurs. For example, if there are two sensors A and B, the distance comparison result can characterize that the distance of sensor A relative to the target position is closer or farther than the distance of sensor B relative to the target position.
[0067] In the specific implementation, since the distances between sensors set at different positions and the target positions are different, the upper and lower limits of the amplitude values, distribution patterns and other indicators are also different. Therefore, the amplitude values received by each sensor can be compared and analyzed through a preset algorithm to obtain the distance comparison result.
[0068] In some embodiments of the present invention, determining, according to the amplitude value, a comparison result of the distances of the at least two sensors relative to a target location where a gas leakage occurs, includes:
[0069] Sub-step 1021, determining, in each time domain data, a second time range earlier than the first time range, and a third time range later than the first time range;
[0070] The first time range is the time range (hereinafter referred to as the fuzzy state period) within which the suspected gas leakage occurs (hereinafter referred to as the gas leakage time), the second time range that is earlier than the first time range can be considered as the time range where no gas leakage occurs (hereinafter referred to as the no leakage state period), and the third time range that is later than the first time range can be considered as the time range where gas leakage occurs (hereinafter referred to as the leakage state period, i.e., after the gas leakage lasts for a period of time, the amplitude value of the mechanical wave decreases and tends to be stable again, and it can be considered that no new gas leakage will occur).
[0071] As an example, Figure 2 As shown, the time domain data curve graph of two negative pressure wave sensors (respectively denoted as sensor1 and sensor2) is shown, in which the amplitude value of 5-20s decreases significantly, which is the fuzzy state period, 0-5s earlier than the fuzzy state period is the non-leakage state period, and the time range after 20s later than the fuzzy state period is the leakage state period.
[0072] Sub-step 1022, determining an upper envelope variance index value of the amplitude value within the second time range and the third time range;
[0073] The upper envelope is the line connecting the local maximum values of the mechanical wave signal in the time domain, which is used to describe the peak change trend of the amplitude value. It reflects the maximum energy boundary of the mechanical wave signal generated by the gas during the propagation or attenuation process. The upper envelope variance index value is a statistic of the degree of deviation between the amplitude value of the upper envelope and its mean.
[0074] In the specific implementation, the closer the distance to the target position is, the more drastic the change in the amplitude of the mechanical wave is (directly affected by the leakage shock), resulting in more significant fluctuations in the upper envelope, and the closer the distance between the sensor and the target position is. Based on this, by calculating the upper envelope of the amplitude value in the non-leakage state period and the leakage state period, and then calculating the upper envelope variance index value, the distance between each sensor and the target position can be reflected.
[0075] Sub-step 1023: Determine the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs according to the comparison result of the upper envelope variance index values of the at least two sensors.
[0076] In a specific implementation, after calculating the upper envelope variance index value corresponding to each sensor and then making a comparison, the comparison result of the upper envelope variance index values can be obtained, and further the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs can be obtained. For example, if the upper envelope variance index value of sensor A is greater than that of sensor B, a distance comparison result indicating that sensor A is closer to the target position than sensor B can be obtained.
[0077] Step 103: Determine the target abnormal data point corresponding to each sensor among the multiple abnormal data points according to the distance comparison result, and determine the target arrival time in the target abnormal data points;
[0078] The target abnormal data point is clearly the abnormal data point corresponding to gas leakage.
[0079] The target arrival time is the time when the mechanical wave generated at the moment of gas leakage reaches the sensor, that is, the gas leakage time. Due to the different distances of the sensors from the target position and the different characteristics of the sensors themselves, the target arrival time corresponding to each sensor may also be different.
[0080] In a specific implementation, the arrival times that do not conform to the actual situation can be screened through the distance comparison result, and then the abnormal data points can be screened. By combining other data analysis or processing, such as combining the difference in the arrival times of the abnormal data points of each sensor, etc., the target abnormal data point corresponding to each sensor can be determined among the multiple abnormal data points.
[0081] As an example, such as Figure 2As shown in the figure, assume that sensor1 is placed 300 meters along the pipeline, and sensor2 is placed 600 meters along the pipeline. The dotted lines 1-3 represent the abnormal data points corresponding to sensor1, and the arrival times are 11.8s, 15.4s, and 19.2s respectively. The dotted lines 4-6 represent the abnormal data points corresponding to sensor2, and the arrival times are 10.5s, 14.3s, and 18.2s respectively. Therefore, there are a total of 3×3 = 9 possible combinations of target arrival times. The distance comparison result indicates that the distance between sensor1 and the target position is closer than that between sensor2 and the target position. Therefore, the target arrival time of sensor1 is earlier than that of sensor2. Based on this, the combinations in which the target arrival time of sensor1 is later than that of sensor2 among the 9 combinations (such as the combination of dotted line 1 and dotted line 4) are excluded, and the remaining 3 combinations, namely the combination of dotted line 1 and dotted line 5, the combination of dotted line 1 and dotted line 6, and the combination of dotted line 2 and dotted line 6, are left. Further, since the installation positions of the sensors are not far apart (300 meters), the time difference between the mechanical waves generated by the same target position where gas leakage occurs and reaching the two sensors is not too large. Based on this, by comparing the differences in arrival times among the 3 combinations, the combination with the smallest difference, that is, the combination of dotted line 1 and dotted line 5, is determined as the combination of target arrival times. Therefore, the target arrival time corresponding to sensor1 is 11.8s, and the target arrival time corresponding to sensor2 is 14.3s.
[0082] In some embodiments of the present invention, before determining the target abnormal data point corresponding to each sensor among the multiple abnormal data points according to the distance comparison result, the method further includes:
[0083] Determine the floating range of the lower envelope line of the amplitude value within the second time range;
[0084] Screen the multiple abnormal data points according to the floating range of the lower envelope line.
[0085] The lower envelope line is the connection of local minimum values of the mechanical wave signal in the time domain, which is used to describe the change trend of the trough values of the amplitude value. It reflects the minimum energy boundary of the mechanical wave signal generated by the gas during the propagation or attenuation process. The floating range of the lower envelope line can be the range composed of the maximum value and the minimum value of the lower envelope line within a certain time range, which is used to quantify the fluctuation amplitude of the lower envelope line.
[0086] In a specific implementation, first calculate the lower envelope line of the amplitude value during the non-leakage state period, and then determine the maximum value and the minimum value in the lower envelope line to form the floating range of the lower envelope line. Further, exclude the abnormal data points whose amplitude values do not conform to the floating range of the lower envelope line among the multiple abnormal data points to exclude the abnormal data points that do not conform to the physical law, and conduct a preliminary screening of the abnormal data points to improve the accuracy of the data.
[0087] Step 104: Determine the location information of the target position according to the target arrival time.
[0088] The location information of the target position, that is, the specific information that can characterize the location where the gas leakage occurs, such as location information such as coordinates, distances, location identifiers, etc.
[0089] In practical applications, when the target arrival time is known, that is, when the gas leakage time is known, if two sensors are set, the gas leakage speed can be obtained by estimation or calculation first, and then, based on the mathematical relationship between time, speed, and distance, the distances between the target position and the two sensors can be calculated. Combining with the location information of the sensors, the location information of the target position can be further determined; if at least three sensors are set, the double time difference method can be used. Without knowing the gas leakage speed, two sets of time difference equations can be formed by using three sensors (for example, sensors A and B, sensors B and C respectively form two sets of time difference equations), and the distance between one of the sensors and the target position can be obtained, and then the location information of the target position can be obtained.
[0090] In some embodiments of the present invention, the determining the location information of the target position according to the target arrival time includes:
[0091] Sub-step 1041: Obtain the pre-calibrated gas leakage speed value.
[0092] The gas leakage speed value is the speed value at which the gas travels in the air during gas leakage.
[0093] In practical applications, multiple experiments can be carried out on the pipeline where the sensors are set, or simulation tests can be carried out to calibrate the gas leakage speed value therein.
[0094] Specifically, a leakage point can be set at a preset position in the pipeline. At this time, the position of the leakage point is known and the positions of the sensors are known. According to the time when the mechanical wave generated by the gas at the leakage point reaches the two sensors, the gas leakage speed value can be calculated; then, close the valve, set leakage points at different positions, and conduct tests again. Multiple gas leakage speed values are obtained through multiple tests, and then the average of these gas leakage speed values is used as the calibrated gas leakage speed value.
[0095] Sub-step 1042: Determine the location information of the target position according to the target arrival time and the gas leakage speed value.
[0096] Based on the gas leakage speed value, and then through the mathematical relationship between time, speed, and distance, the distances between the target position and the two sensors can be calculated, and then the location information of the target position can be obtained.
[0097] In some embodiments, such as Figure 3As shown in the figure, an implementation process diagram of a gas leakage detection method is also provided, as follows:
[0098] Filter the time-domain data collected by the sensor, that is, the original data, and determine whether there is a time range with a significant decrease in the amplitude value through the threshold of the amplitude value. If so, determine it as a fuzzy state period, and determine the period later than the fuzzy state period as the leakage state period, and the period earlier than the fuzzy state period as the non-leakage state period;
[0099] Then, extract the abnormal data points in the fuzzy state period based on the outlier detection algorithm, and calculate the variance index of the upper envelope line of the leakage state period and the non-leakage state period, as well as the floating range of the lower envelope line of the non-leakage state period;
[0100] Furthermore, screen the abnormal data points according to the floating range of the lower envelope line;
[0101] Furthermore, judge the relative position relationship between each sensor and the leakage port according to the variance index, that is, the distance comparison result, further determine the target abnormal data points among the screened abnormal data points, and determine the target arrival time in the target abnormal data points, which is the gas leakage moment;
[0102] Finally, combine the leakage moment and the pre-calibrated gas leakage speed to determine the gas leakage position. Among them, the gas leakage speed is calibrated through the leakage moment and the sensor position information in multiple tests to form prior knowledge.
[0103] The embodiments of the present invention have the following advantages: By obtaining the time-domain data collected by at least two sensors and determining multiple abnormal data points in each time-domain data; wherein, the sensor is a mechanical wave sensor, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time; according to the amplitude value, determine the distance comparison result of at least two sensors relative to the target position where gas leakage occurs; according to the distance comparison result, determine the target abnormal data points corresponding to each sensor among the multiple abnormal data points, and determine the target arrival time in the target abnormal data points; determine the position information of the target position according to the target arrival time, without relying on the spectral characteristics of the mechanical wave, but analyzing the abnormal data points of the time-domain data to obtain the target arrival time of at least two sensors, and then determining the position information of the target position, with higher reliability and accuracy.
[0104] It should be noted that, for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequences, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.
[0105] Referring to Figure 4 , a schematic structural diagram of a gas leakage detection device provided by an embodiment of the present invention is shown, which may specifically include the following modules:
[0106] An abnormal data point determination module 401, configured to obtain time-domain data collected by at least two sensors, and determine a plurality of abnormal data points in each time-domain data; wherein, the sensor is a mechanical wave sensor, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time;
[0107] A distance comparison result determination module 402, configured to determine a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs according to the amplitude value;
[0108] A target arrival time determination module 403, configured to determine a target abnormal data point corresponding to each sensor among the plurality of abnormal data points according to the distance comparison result, and determine a target arrival time in the target abnormal data points;
[0109] A position information determination module 404, configured to determine position information of the target position according to the target arrival time.
[0110] In some embodiments of the present invention, the abnormal data point determination module 401 includes:
[0111] A first time range determination sub-module, configured to determine a first time range in each time-domain data where the decline trend index of the amplitude value does not conform to a preset range;
[0112] An abnormal data point determination sub-module, configured to determine the plurality of abnormal data points according to the amplitude value within the first time range.
[0113] In some embodiments of the present invention, the distance comparison result determination module 402 includes:
[0114] A second time range determination sub-module, configured to determine a second time range earlier than the first time range and a third time range later than the first time range in each time-domain data;
[0115] The upper envelope variance index value determination sub-module is used to determine the upper envelope variance index value of the amplitude value within the second time range and the third time range;
[0116] The distance comparison result determination sub-module is used to determine the distance comparison result of the at least two sensors relative to the target position where gas leakage occurs according to the comparison result of the upper envelope variance index values of the at least two sensors.
[0117] In some embodiments of the present invention, the device further includes:
[0118] The lower envelope floating range determination module is used to determine the lower envelope floating range of the amplitude value within the second time range;
[0119] The abnormal data point screening module is used to screen the plurality of abnormal data points according to the lower envelope floating range.
[0120] In some embodiments of the present invention, the position information determination module 404 includes:
[0121] The gas leakage speed value acquisition sub-module is used to acquire a pre-calibrated gas leakage speed value;
[0122] The position information determination sub-module is used to determine the position information of the target position according to the target arrival time and the gas leakage speed value.
[0123] In some embodiments of the present invention, the device further includes:
[0124] The filtering module is used to perform filtering processing on the time-domain data.
[0125] In some embodiments of the present invention, the mechanical wave sensor includes a negative pressure wave sensor or a infrasonic wave sensor.
[0126] Some embodiments of the present invention further provide an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the above gas leakage detection method is implemented.
[0127] Some embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor, the above gas leakage detection method is implemented.
[0128] Some embodiments of the present invention further provide a computer program product, including a computer program. When the computer program is executed by the processor, the above gas leakage detection method is implemented.
[0129] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, please refer to the corresponding descriptions in the method embodiments.
[0130] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data that have been authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0131] Each embodiment in this specification is described in a progressive manner. The key points of each embodiment are the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.
[0132] Those skilled in the art should understand that the embodiments of the present invention can be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention can take the form of completely hardware embodiments, completely software embodiments, or embodiments combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.
[0133] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram can be implemented by computer program instructions, and the combination of the processes and / or blocks in the flowchart and / or block diagram can also be implemented. These computer program instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processors of the computer or other programmable data processing terminal devices generate a device for implementing the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0134] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one process or multiple processes and / or blocks Figure 1 one block or multiple blocks.
[0135] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable terminal device provide for implementing the steps in a process Figure 1 one process or multiple processes and / or blocks Figure 1 the steps of the functions specified in one block or multiple blocks.
[0136] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications once they learn the basic creative concept. Therefore, the appended claims are intended to be construed as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present invention.
[0137] Finally, it should also be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising the above element.
[0138] The above provides a detailed introduction to a gas leakage detection method, device, electronic device, and storage medium. Specific examples are used in this article to elaborate on the principles and implementation manners of the present invention. The description of the above embodiments is only used to help understand the method and its core idea of the present invention; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present invention.
Claims
1. A gas leakage detection method, characterized in that The method includes: Obtaining time-domain data collected by at least two sensors, and determining a plurality of abnormal data points in each time-domain data; wherein, the sensors are mechanical wave sensors, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time; Determining a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs according to the amplitude value; Determining a target abnormal data point corresponding to each sensor among the plurality of abnormal data points according to the distance comparison result, and determining a target arrival time in the target abnormal data points; Determining position information of the target position according to the target arrival time.
2. The method according to claim 1, wherein The determining a plurality of abnormal data points in each time-domain data includes: In each time-domain data, determining a first time range in which a decline trend index of the amplitude value does not conform to a preset range; Determining the plurality of abnormal data points according to the amplitude value within the first time range.
3. The method according to claim 2, wherein The determining a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs according to the amplitude value includes: In each time-domain data, determining a second time range earlier than the first time range and a third time range later than the first time range; Determining an upper envelope variance index value of the amplitude value within the second time range and the third time range; Determining a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs according to a comparison result of the upper envelope variance index values of the at least two sensors.
4. The method according to claim 3, wherein Before determining a target abnormal data point corresponding to each sensor among the plurality of abnormal data points according to the distance comparison result, the method further includes: Determining a lower envelope floating range of the amplitude value within the second time range; Filtering the plurality of abnormal data points according to the lower envelope floating range.
5. The method according to claim 1, characterized in that, The determining position information of the target position according to the target arrival time includes: Obtaining a pre-calibrated gas leakage speed value; Determining position information of the target position according to the target arrival time and the gas leakage speed value.
6. The method according to claim 1, wherein After obtaining the time-domain data collected by at least two sensors, the method further includes: Performing a filtering process on the time-domain data.
7. The method according to claim 1, characterized in that, The mechanical wave sensor includes a negative pressure wave sensor or a infrasonic wave sensor.
8. A gas leakage detection device, characterized in that The device includes: An abnormal data point determination module, configured to obtain time-domain data collected by at least two sensors, and determine a plurality of abnormal data points in each time-domain data; wherein, the sensors are mechanical wave sensors, and the time-domain data includes the arrival time of the mechanical wave and the amplitude value corresponding to the arrival time; A distance comparison result determination module, configured to determine a distance comparison result of the at least two sensors relative to a target position where gas leakage occurs according to the amplitude value; A target arrival time determination module, configured to determine a target abnormal data point corresponding to each sensor among the plurality of abnormal data points according to the distance comparison result, and determine a target arrival time in the target abnormal data points; A location information determination module, configured to determine the location information of the target location according to the target arrival time.
9. An electronic device, characterized in that, It includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the gas leakage detection method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, it implements the gas leakage detection method according to any one of claims 1 to 7.