Harmful substance leakage positioning method and device, computer equipment and program product

By using a dynamic dual-threshold calibration algorithm and MEMS microphone verification, the problems of high false alarm rate and low positioning accuracy in the detection of hazardous substance leakage in substations have been solved, and rapid and accurate leakage source positioning has been achieved in complex environments.

CN121933199APending Publication Date: 2026-04-28GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
Filing Date
2026-01-22
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing technologies for detecting hazardous substance leakage in substations suffer from frequent false peaks, high false alarm rates, and weak anti-interference capabilities, resulting in low positioning accuracy and low inspection efficiency.

Method used

A dynamic dual-threshold calibration algorithm is adopted. By collecting the voltage signal of harmful substances in the environmental background, filtering and amplifying it, and then performing first-order differential operation, combined with the threshold division of the drift region and the jump region, the secondary threshold is dynamically adjusted. Combined with MEMS microphone to verify the spectral intensity, the real leakage signal can be judged and the three-dimensional coordinates can be determined.

Benefits of technology

In complex airflow and background noise environments, it can quickly and accurately locate the source of hazardous substance leakage, reduce false alarm rate, and improve positioning accuracy and inspection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121933199A_ABST
    Figure CN121933199A_ABST
Patent Text Reader

Abstract

The invention relates to a harmful substance leakage positioning method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a voltage signal corresponding to a harmful substance in an environmental background, filtering and amplifying the voltage signal to obtain a processed voltage signal, and performing first-order differential operation to determine a voltage variation between two adjacent sampling points; dividing the processed voltage signal into a drift region or a jump region; determining an initial mean value and an initial standard deviation of background noise in the environment background, and determining a secondary threshold value of the jump region based on the initial mean value and the initial standard deviation; whether the processed voltage signal is a real leakage signal or not is judged based on the size relation between the secondary threshold value and the processed voltage signal located in the jump region; and under the condition that the processed voltage signal is a real leakage signal, determining a three-dimensional coordinate of the leakage source. By adopting the method, the accuracy of harmful substance leakage positioning can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of substation safety monitoring technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for locating leaks of hazardous substances. Background Technology

[0002] As the core hub of the power system, substations have many concealed areas within their indoor environment, including cable trenches, flange connections, and equipment interfaces. These areas are prone to leakage risks of SF6 gas and toxic volatile substances. Such leaks can not only corrode equipment and affect the stable operation of the power system, but also endanger the personal safety of inspection personnel. Therefore, the detection of hazardous substance leaks in substations is a crucial aspect of safe power operation and maintenance.

[0003] In related technologies, existing technologies use a single fixed threshold, which cannot adapt to complex airflow disturbances (such as local airflow changes caused by the start of exhaust fans) and background noise interference in substations. This easily leads to false signal peaks, causing repeated alarms from the device. Inspection personnel need to make multiple trips to confirm, which seriously reduces inspection efficiency. Furthermore, no special suppression mechanism has been designed for the power frequency interference and environmental noise unique to substations. In complex environments, the signal stability is poor and the accuracy of leakage source location is low. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for locating leaks of hazardous substances that can improve the accuracy of leak source location, in order to address the above-mentioned technical problems.

[0005] In a first aspect, this application provides a method for locating leaks of hazardous substances, comprising:

[0006] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0007] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0008] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0009] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0010] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0011] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0012] In one embodiment, dividing the processed voltage signal into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold includes:

[0013] If the voltage change at multiple consecutive sampling points exceeding a preset number is less than the drift region threshold, the voltage signal in the processed voltage signal is determined to be located in the drift region.

[0014] If the voltage change at the target sampling point is greater than the threshold of the jump zone, the voltage signal corresponding to the target sampling point is determined to have entered the jump zone.

[0015] In one embodiment, determining the initial mean and initial standard deviation of background noise in the environmental background includes:

[0016] Perform automatic zero-point drift learning and collect raw voltage signals from the environmental background;

[0017] Based on the original voltage signal, the initial mean and initial standard deviation of the background noise are calculated.

[0018] In one embodiment, determining whether the processed voltage signal is a true leakage signal based on the magnitude relationship between the secondary threshold and the processed voltage signal located within the jump zone includes:

[0019] If the target voltage signal corresponding to the target sampling point does not exceed the secondary threshold, the process returns to the step of collecting the voltage signal corresponding to the hazardous substance in the environmental background.

[0020] If the target voltage signal corresponding to the target sampling point exceeds the secondary threshold, an ambient acoustic signal is acquired, and the spectral intensity of the ambient acoustic signal is determined.

[0021] Based on the relationship between the spectral intensity and the reference spectral intensity, it is determined whether the processed voltage signal is a true leakage signal.

[0022] In one embodiment, determining whether the processed voltage signal is a true leakage signal based on the relationship between the spectral intensity and the reference spectral intensity includes:

[0023] If the spectral intensity is less than or equal to the reference spectral intensity, the processed voltage signal is determined to be the true leakage signal;

[0024] If the spectral intensity is greater than the reference spectral intensity, the duration of the processed voltage signal is extended by a preset duration. If the processed voltage signal is greater than the secondary threshold within the preset duration, the processed voltage signal is determined to be a real leakage signal.

[0025] In one embodiment, determining the three-dimensional coordinates of the leakage source when the processed voltage signal is a real leakage signal includes:

[0026] Determine the preset orientation coordinates of the sensor used to acquire voltage signals;

[0027] The three-dimensional coordinates of the leakage source are obtained by performing a weighted average calculation on the preset azimuth coordinates and the target sampling point.

[0028] Secondly, this application also provides a leakage location device for hazardous substances, comprising:

[0029] The processing module is used to collect voltage signals corresponding to harmful substances in the environmental background, and to filter and amplify the voltage signals to obtain processed voltage signals.

[0030] The determination module is used to perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points.

[0031] The segmentation module divides the processed voltage signal into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold.

[0032] The determining module is further configured to determine the initial mean and initial standard deviation of the background noise in the environmental background, and to determine the secondary threshold of the jump zone based on the initial mean and the initial standard deviation;

[0033] The judgment module is used to determine whether the processed voltage signal is a real leakage signal based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone.

[0034] The determining module is also used to determine the three-dimensional coordinates of the leakage source when the processed voltage signal is a real leakage signal.

[0035] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0036] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0037] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0038] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0039] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0040] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0041] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0042] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0043] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0044] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0045] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0046] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0047] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0048] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0049] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0050] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0051] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0052] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0053] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0054] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0055] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0056] The aforementioned method, apparatus, computer equipment, computer-readable storage medium, and computer program product for locating leaks of hazardous substances first collect voltage signals corresponding to the hazardous substances in the environmental background, and then filter and amplify these voltage signals to obtain processed voltage signals. A first-order difference operation is performed on the processed voltage signals to determine the voltage change between two adjacent sampling points. Based on the voltage change, a preset drift zone threshold, and a preset jump zone threshold, the processed voltage signals are divided into drift zones or jump zones. The initial mean and initial standard deviation of the background noise in the environmental background are determined, and a secondary threshold for the jump zone is determined based on these initial mean and initial standard deviation. Based on the relationship between the secondary threshold and the processed voltage signal located within the jump zone, it is determined whether the processed voltage signal is a real leak signal. If the processed voltage signal is a real leak signal, the three-dimensional coordinates of the leak source are determined. Thus, by combining a dynamic dual-threshold calibration algorithm with a power-on self-calibration mechanism, the problems of high false alarm rate, complex calibration, and weak anti-interference capability of existing technologies are effectively solved. In complex airflow and background noise environments within substations, the leak source of hazardous substances can be quickly and accurately located. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 This is an application environment diagram of a method for locating leaks of hazardous substances in one embodiment;

[0059] Figure 2 This is a flowchart illustrating a method for locating the leakage of hazardous substances in one embodiment.

[0060] Figure 3 This is a structural block diagram of a hazardous substance leakage location device in one embodiment;

[0061] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0062] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0063] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.

[0064] The method for locating leaks of hazardous substances provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104 or located on the cloud or other network servers. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. Server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.

[0065] In one exemplary embodiment, such as Figure 2As shown, a method for locating leaks of hazardous substances is provided, which can be applied to... Figure 1 Taking terminal 102 as an example, the explanation includes the following steps 202 to 212. Wherein:

[0066] Step 202: Collect the voltage signals corresponding to harmful substances in the environmental background, and filter and amplify the voltage signals to obtain the processed voltage signals.

[0067] The hazardous substances may be sulfur hexafluoride (SF6), toxic and harmful volatile substances, flammable gases, etc., or other hazardous substances that can threaten the safety of substations. This application does not limit the specific hazardous substances.

[0068] For example, a sliding window method is used to continuously collect voltage signals corresponding to harmful substances in the environmental background. Power frequency filtering is used to remove power grid interference from the voltage signal, and then the weak signal is amplified to obtain the processed voltage signal.

[0069] Step 204: Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points.

[0070] Optionally, a first-order difference operation is performed on the processed voltage signal V'(t) to calculate the voltage change ΔV between two adjacent sampling points. The specific calculation formula is shown in formula (1):

[0071] △V(k)=V'(k)-V'(k-1)(1)

[0072] Where k is the current sampling point number, V'(k) is the voltage signal processed at the current sampling point, and V'(k-1) is the voltage signal processed at the previous sampling point.

[0073] Step 206: Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0074] For example, based on the voltage change between different sampling points, a preset drift region threshold T1, and a preset jump region threshold T2, the processed voltage signal is divided into a drift region or a jump region according to the degree of change.

[0075] Step 208: Determine the initial mean and initial standard deviation of the background noise in the environment, and determine the secondary threshold of the jump zone based on the initial mean and initial standard deviation.

[0076] Optionally, the initial mean μ and initial standard deviation σ of the background noise in the environment are determined, and the secondary threshold T3 of the jump zone is calculated based on the initial mean and initial standard deviation. The specific calculation formula is shown in formula (2):

[0077] T3=μ+3σ(2)

[0078] In one embodiment, when the voltage signal is in the drift region, the signal in that region is continuously detected in real time, and the mean and standard deviation of the background noise are updated periodically.

[0079] Step 210: Based on the relationship between the secondary threshold and the processed voltage signal located in the jump zone, determine whether the processed voltage signal is a real leakage signal.

[0080] For example, the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone is used to determine whether the processed voltage signal is a real leakage signal.

[0081] Step 212: If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0082] Optionally, if it is determined that the processed voltage signal is a real leakage signal, the three-dimensional coordinates of the leakage source can be determined by combining the preset orientation coordinates of the voltage signal sensor.

[0083] In one embodiment, the three-dimensional coordinates (x0, y0, z0) of the leakage source are converted into the orientation angle relative to the device and transmitted to the display unit for real-time display in the form of arrows. At the same time, an alarm is triggered, activating an audible and visual alarm.

[0084] In another embodiment, after the coordinates of the leakage source are locked, the signal continues to be collected in a sliding window manner. The method of locating the leakage of hazardous substances is repeated at fixed intervals. If V'(t) is detected to fall below the secondary threshold T3 and remain below it for a fixed period of time, it indicates that the leakage signal has disappeared or the environment has returned to stability. The device automatically deactivates the alarm and returns to the normal detection mode.

[0085] If V'(t) remains above T3, the leakage source coordinates are continuously updated, and the arrow direction is refreshed in real time in the display unit. At the same time, μ and σ in the drift region are still updated at a fixed period, and T3 is dynamically adjusted synchronously.

[0086] In the aforementioned method for locating leaks of hazardous substances, the voltage signal corresponding to the hazardous substance in the environmental background is collected, and the voltage signal is filtered and amplified to obtain a processed voltage signal. A first-order difference operation is performed on the processed voltage signal to determine the voltage change between two adjacent sampling points. Based on the voltage change, a preset drift zone threshold, and a preset jump zone threshold, the processed voltage signal is divided into a drift zone or a jump zone. The initial mean and initial standard deviation of the background noise in the environmental background are determined, and a secondary threshold for the jump zone is determined based on the initial mean and initial standard deviation. Based on the relationship between the secondary threshold and the processed voltage signal located within the jump zone, it is determined whether the processed voltage signal is a real leak signal. If the processed voltage signal is a real leak signal, the three-dimensional coordinates of the leak source are determined. Thus, by combining a dynamic dual-threshold calibration algorithm with a power-on self-calibration mechanism, the problems of high false alarm rate, complex calibration, and weak anti-interference ability in existing technologies are effectively solved. In complex airflow and background noise environments inside substations, the leak source of hazardous substances can be quickly and accurately located.

[0087] In an exemplary embodiment, the processed voltage signal is divided into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold. This includes: determining that the voltage signal in the processed voltage signal is located in the drift region when the voltage change of multiple consecutive sampling points exceeding a preset number is less than the drift region threshold; and determining that the voltage signal corresponding to the target sampling point enters the jump region when the voltage change of the target sampling point is greater than the jump region threshold.

[0088] In actual implementation, the voltage change ΔV(k) at each sampling point is judged. If the voltage change ΔV(k) at multiple consecutive sampling points is less than the drift region threshold T1, it indicates that the signal fluctuation is smooth. At this time, the signal is mainly affected by background noise, and it is determined that the corresponding voltage signal in the processed voltage signal is located in the drift region.

[0089] If the voltage change ΔV(k) at any target sampling point is greater than the jump zone threshold T2, it indicates that the signal fluctuates significantly, and the voltage signal corresponding to the target sampling point is determined to have entered the jump zone.

[0090] In the above embodiments, by using first-order difference and a fixed threshold, the system can quickly identify the parts of the signal that undergo significant abrupt changes. Only these parts of the signal will enter the subsequent more complex and resource-intensive verification process, significantly improving the system's processing efficiency and response speed. This avoids unnecessary in-depth analysis of a large amount of gently fluctuating background noise, saving computing resources and enabling handheld devices to lock onto suspicious events more quickly.

[0091] In one exemplary embodiment, determining the initial mean and initial standard deviation of background noise in an environmental background includes: performing automatic zero-point drift learning to acquire the original voltage signal of the environmental background; and calculating the initial mean and initial standard deviation of the background noise based on the original voltage signal.

[0092] In actual implementation, before collecting the voltage signals corresponding to harmful substances in the environmental background, zero-point drift learning is performed to analyze the collected background signals and calculate the initial mean μ and initial standard deviation σ of the background noise. The calculation formulas are shown in formulas (3) and (4):

[0093] (3)

[0094] (4)

[0095] in, Let be the sampled value of the i-th original voltage signal, and N be the total number of signals collected during the learning phase.

[0096] In the above embodiments, by performing calibration before formal testing, the influence of environmental factors on the final test results is eliminated.

[0097] In an exemplary embodiment, determining whether the processed voltage signal is a real leakage signal based on the magnitude relationship between a secondary threshold and the processed voltage signal located within the jump zone includes: if the target voltage signal corresponding to the target sampling point does not exceed the secondary threshold, returning to the step of collecting the voltage signal corresponding to the hazardous substance in the environmental background; if the target voltage signal corresponding to the target sampling point exceeds the secondary threshold, collecting the environmental acoustic signal and determining the spectral intensity of the environmental acoustic signal; and determining whether the processed voltage signal is a real leakage signal based on the magnitude relationship between the spectral intensity and the reference spectral intensity.

[0098] In practice, after the processed voltage signal enters the jump zone, the magnitude relationship between the target voltage signal corresponding to the target sampling point and the secondary threshold is determined. If the target voltage signal is less than or equal to the secondary threshold, the target voltage signal is determined to be a false signal caused by background noise, and the process returns to the step of collecting the voltage signal corresponding to the harmful substances in the environmental background to continue collecting.

[0099] When the target voltage signal is greater than the second threshold, the MEMS (Micro-Electro-Mechanical Systems) microphone is activated to verify environmental interference. The ambient acoustic signal S(t) is collected by the MEMS microphone, and the time domain signal is converted into the frequency domain signal |S(f)| based on the Fast Fourier Transform (FFT). The specific calculation formula is shown in formula (5):

[0100] |S(f)|=|FFT[S(t)]|(5)

[0101] Where f is the frequency, and |S(f)| corresponds to the spectral intensity of the frequency.

[0102] Based on the relationship between the spectral intensity and the reference spectral intensity, determine whether the processed voltage signal is a true leakage signal.

[0103] In the above embodiments, entering the "jump region" based solely on the first-order difference only indicates a rapid change in the signal. However, this change could be a false peak caused by instantaneous airflow disturbances, electromagnetic pulses, or other interference. Only by comparing the signal with a secondary threshold based on real-time background statistics can we determine whether the absolute intensity of the abrupt signal has significantly exceeded the reasonable fluctuation range of normal noise, thus making the final result more accurate.

[0104] In an exemplary embodiment, determining whether the processed voltage signal is a real leakage signal based on the relationship between the spectral intensity and the reference spectral intensity includes: determining that the processed voltage signal is a real leakage signal when the spectral intensity is less than or equal to the reference spectral intensity; extending the duration of the processed voltage signal by a preset duration when the spectral intensity is greater than the reference spectral intensity; and determining that the processed voltage signal is a real leakage signal when both the processed voltage signal and the reference spectral intensity are greater than a secondary threshold within the preset duration.

[0105] In practice, the characteristic frequency range of typical interference sources in the substation is determined (e.g., around 50Hz corresponding to the exhaust fan), and the spectral intensity |S(f)| is compared with the product of the reference spectral intensity and the preset multiple threshold |S0(f0)| before the voltage signal corresponding to the harmful substance is collected.

[0106] When the spectral intensity is less than or equal to the reference spectral intensity, i.e., |S(f)|≤K*|S0(f0)|, it indicates that there is no obvious airflow interference in the result, and the processed voltage signal is determined to be the real leakage signal. Then, the three-dimensional coordinate determination step of the leakage source is carried out.

[0107] When the spectral intensity is greater than the reference spectral intensity, i.e., |S(f)|>K*|S0(f0)|, the lock-in time of the signal is extended. During the extended period, the processed voltage signal is maintained above the secondary threshold T3, and the processed voltage signal is determined to be the real leakage signal.

[0108] In the above embodiments, simple filtering may miss real leaks, while direct alarms may cause false alarms. The dynamic delay strategy of this method requires the signal to remain stable above the threshold during the duration of interference, thereby effectively distinguishing between instantaneous false peaks caused by interference and real leakage signals that persist under the interference background.

[0109] In an exemplary embodiment, if the processed voltage signal is a real leakage signal, determining the three-dimensional coordinates of the leakage source includes: determining the preset orientation coordinates of the sensor used to collect the voltage signal; and performing a weighted average calculation on the preset orientation coordinates and the target sampling point to obtain the three-dimensional coordinates of the leakage source.

[0110] In actual implementation, after determining that the processed signal is the real leakage signal, the starting sampling point of the jump zone, i.e. the target sampling point K0 (the first sampling point that satisfies ΔV(k) greater than the jump zone threshold and the processed voltage signal corresponding to the target sampling point is greater than the secondary threshold), is determined. The preset orientation coordinates (x(i), y(i), z(i)) of the sensor used to collect the voltage signal are determined, where i is the sensor number. The three-dimensional coordinates (x0, y0, z0) of the leakage source are calculated using a weighted average algorithm. The specific calculation formulas are shown in formulas (6)-(8):

[0111] (6)

[0112] (7)

[0113] (8)

[0114] in, The signal strength of the first n sampling points in the jump zone (as weights) Let x be the x-axis coordinate of the i-th sensor. Let be the y-axis coordinate of the i-th sensor. Let be the z-axis coordinate of the i-th sensor.

[0115] In the above embodiments, the signal strength differences collected by the sensor array (multiple sensors arranged in a geometric layout) are combined with a weighted averaging algorithm to map the signal strength information into spatial coordinates. This allows the positioning accuracy to overcome the physical limitations of a single sensor, solving the problem that handheld devices, due to size constraints, cannot achieve precise positioning through physical scanning (such as laser or ultrasound). Utilizing algorithms and array layout, it achieves sub-meter level or even higher accuracy in orientation determination with a compact device, significantly improving positioning accuracy.

[0116] To illustrate the method for locating the leakage of hazardous substances in this application in detail, an embodiment is described below. For example, this application describes a method for locating the leakage of hazardous substances in a specific scenario.

[0117] First, the voltage signals corresponding to harmful substances in the environmental background are continuously collected using a sliding window method. Power frequency filtering is used to remove power grid interference from the voltage signals, and then the weak signals are amplified by a signal amplifier to obtain the processed voltage signals.

[0118] The processed voltage signal V'(t) is subjected to a first-order difference operation to calculate the voltage change ΔV between two adjacent sampling points. The specific calculation formula is shown in formula (1). Based on the voltage change between different sampling points, the preset drift region threshold T1, and the preset jump region threshold T2, the processed voltage signal is divided into a drift region or a jump region according to the degree of change.

[0119] Determine the initial mean μ and initial standard deviation σ of the background noise in the environment. Calculate the secondary threshold T3 of the jump zone based on the initial mean and initial standard deviation, as shown in formula (2). Determine whether the processed voltage signal is a true leakage signal based on the relationship between the secondary threshold and the processed voltage signal located within the jump zone.

[0120] Once it is confirmed that the processed voltage signal is a real leakage signal, the three-dimensional coordinates of the leakage source are determined by combining the preset orientation coordinates of the voltage signal sensor.

[0121] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.

[0122] Based on the same inventive concept, this application also provides a hazardous substance leakage locating device for implementing the hazardous substance leakage locating method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more hazardous substance leakage locating device embodiments provided below can be found in the limitations of the hazardous substance leakage locating method described above, and will not be repeated here.

[0123] In one exemplary embodiment, such as Figure 3 As shown, a leakage location device for hazardous substances is provided, comprising: a processing module 301, a determining module 302, a dividing module 303, and a judging module 304, wherein:

[0124] The processing module is used to collect voltage signals corresponding to harmful substances in the environmental background, and to filter and amplify the voltage signals to obtain processed voltage signals.

[0125] The determination module is used to perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points.

[0126] The segmentation module divides the processed voltage signal into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold.

[0127] The determining module is further configured to determine the initial mean and initial standard deviation of the background noise in the environmental background, and to determine the secondary threshold of the jump zone based on the initial mean and the initial standard deviation;

[0128] The judgment module is used to determine whether the processed voltage signal is a real leakage signal based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone.

[0129] The determining module is also used to determine the three-dimensional coordinates of the leakage source when the processed voltage signal is a real leakage signal.

[0130] In one exemplary embodiment, the division module described above is further configured to:

[0131] If the voltage change at multiple consecutive sampling points exceeding a preset number is less than the drift region threshold, the voltage signal in the processed voltage signal is determined to be located in the drift region.

[0132] If the voltage change at the target sampling point is greater than the threshold of the jump zone, the voltage signal corresponding to the target sampling point is determined to have entered the jump zone.

[0133] In one exemplary embodiment, the above-described apparatus further includes a calibration module for:

[0134] Perform automatic zero-point drift learning and collect raw voltage signals from the environmental background;

[0135] Based on the original voltage signal, calculate the initial mean and initial standard deviation of the background noise.

[0136] In one exemplary embodiment, the determination module is further configured to:

[0137] If the target voltage signal corresponding to the target sampling point does not exceed the secondary threshold, return to the step of collecting the voltage signal corresponding to the hazardous substance in the environmental background;

[0138] When the target voltage signal corresponding to the target sampling point exceeds the secondary threshold, the ambient acoustic signal is acquired and the spectral intensity of the ambient acoustic signal is determined.

[0139] Based on the relationship between the spectral intensity and the reference spectral intensity, it is determined whether the processed voltage signal is a true leakage signal.

[0140] In one exemplary embodiment, the determination module is further configured to:

[0141] When the spectral intensity is less than or equal to the reference spectral intensity, the processed voltage signal is determined to be the true leakage signal;

[0142] If the spectral intensity is greater than the reference spectral intensity, the duration of the processed voltage signal is extended by a preset duration. If the processed voltage signal is greater than the second threshold within the preset duration, the processed voltage signal is determined to be the real leakage signal.

[0143] In one exemplary embodiment, the determining module is further configured to:

[0144] Determine the preset orientation coordinates of the sensor used to acquire voltage signals;

[0145] The three-dimensional coordinates of the leakage source are obtained by performing a weighted average calculation on the preset azimuth coordinates and the target sampling point.

[0146] Each module in the aforementioned hazardous substance leakage location device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0147] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When executed by the processor, the computer program implements a method for locating leaks of hazardous substances. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

[0148] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0149] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0150] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0151] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0152] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0153] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0154] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0155] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0156] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0157] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0158] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0159] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0160] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0161] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0162] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0163] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:

[0164] The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals.

[0165] Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points;

[0166] Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region.

[0167] Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation;

[0168] Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal.

[0169] If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

[0170] 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 used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0171] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0172] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0173] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for locating the leakage of hazardous substances, characterized in that, The method includes: The voltage signals corresponding to harmful substances in the environmental background are collected, and the voltage signals are filtered and amplified to obtain the processed voltage signals. Perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points; Based on the voltage change, the preset drift region threshold, and the preset jump region threshold, the processed voltage signal is divided into a drift region or a jump region. Determine the initial mean and initial standard deviation of the background noise in the environmental background, and determine the quadratic threshold of the jump zone based on the initial mean and the initial standard deviation; Based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone, it is determined whether the processed voltage signal is a real leakage signal. If the processed voltage signal is a real leakage signal, determine the three-dimensional coordinates of the leakage source.

2. The method according to claim 1, characterized in that, The step of dividing the processed voltage signal into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold includes: If the voltage change at multiple consecutive sampling points exceeding a preset number is less than the drift region threshold, the voltage signal in the processed voltage signal is determined to be located in the drift region. If the voltage change at the target sampling point is greater than the threshold of the jump zone, the voltage signal corresponding to the target sampling point is determined to have entered the jump zone.

3. The method according to claim 2, characterized in that, Determining the initial mean and initial standard deviation of background noise in the environmental background includes: Perform automatic zero-point drift learning and collect raw voltage signals from the environmental background; Based on the original voltage signal, the initial mean and initial standard deviation of the background noise are calculated.

4. The method according to claim 3, characterized in that, The step of determining whether the processed voltage signal is a true leakage signal based on the magnitude relationship between the secondary threshold and the processed voltage signal located within the jump zone includes: If the target voltage signal corresponding to the target sampling point does not exceed the secondary threshold, the process returns to the step of collecting the voltage signal corresponding to the hazardous substance in the environmental background. If the target voltage signal corresponding to the target sampling point exceeds the secondary threshold, an ambient acoustic signal is acquired, and the spectral intensity of the ambient acoustic signal is determined. Based on the relationship between the spectral intensity and the reference spectral intensity, it is determined whether the processed voltage signal is a true leakage signal.

5. The method according to claim 4, characterized in that, The step of determining whether the processed voltage signal is a true leakage signal based on the relationship between the spectral intensity and the reference spectral intensity includes: If the spectral intensity is less than or equal to the reference spectral intensity, the processed voltage signal is determined to be the true leakage signal; If the spectral intensity is greater than the reference spectral intensity, the duration of the processed voltage signal is extended by a preset duration. If the processed voltage signal is greater than the secondary threshold within the preset duration, the processed voltage signal is determined to be a real leakage signal.

6. The method according to claim 5, characterized in that, Determining the three-dimensional coordinates of the leakage source when the processed voltage signal is a real leakage signal includes: Determine the preset orientation coordinates of the sensor used to acquire voltage signals; The three-dimensional coordinates of the leakage source are obtained by performing a weighted average calculation on the preset azimuth coordinates and the target sampling point.

7. A leakage location device for hazardous substances, characterized in that, The device includes: The processing module is used to collect voltage signals corresponding to harmful substances in the environmental background, and to filter and amplify the voltage signals to obtain processed voltage signals. The determination module is used to perform a first-order difference operation on the processed voltage signal to determine the voltage change between two adjacent sampling points. The segmentation module divides the processed voltage signal into a drift region or a jump region based on the voltage change, a preset drift region threshold, and a preset jump region threshold. The determining module is further configured to determine the initial mean and initial standard deviation of the background noise in the environmental background, and to determine the secondary threshold of the jump zone based on the initial mean and the initial standard deviation; The judgment module is used to determine whether the processed voltage signal is a real leakage signal based on the magnitude relationship between the secondary threshold and the processed voltage signal located in the jump zone. The determining module is also used to determine the three-dimensional coordinates of the leakage source when the processed voltage signal is a real leakage signal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.