Open laser gas detection method and system based on variable area phase-locked amplification
By using variable-area lock-in amplification technology in the open laser gas detection system, dynamically detecting signal quality and performing lock-in amplification calculations, the problem of false alarms and accuracy of the detection system under the influence of long distances and environmental factors is solved, and a better solution is achieved. Efficient gas concentration measurement.
Patent Information
- Application Number
- CN202210909602.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-29
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-07-29
AI Technical Summary
Open laser gas detection systems are affected by weak diffuse reflection echo signals and noise interference during long-distance detection, resulting in reduced detection sensitivity and accuracy, and environmental factors cause false alarms.
Using a method based on variable area lock-in amplification, the signal to be analyzed within the detection period is divided into multiple areas, the signal quality is dynamically detected, and the lock-in amplification calculation is performed based on the quality to extract the amplitude of the second harmonic and the first harmonic. The ratio is used to calculate gas concentration, dynamically eliminate abnormal signals, and improve detection accuracy.
It effectively reduces the probability of false alarms caused by environmental factors, improves detection accuracy and efficiency, simplifies the circuit structure, eliminates abnormal data through baseline adjustment and polynomial fitting, and improves the accuracy of gas detection.
Smart Images

Figure CN115389457B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of open laser gas detection, and in particular to an open laser gas detection method and system based on variable region phase-locked amplification. Background Art
[0002] Traditional portable methane detectors detect methane by contacting the detector with gas. This method is not only inefficient and slow, but also limited in practical application. For example, when the pipeline or facility to be detected is difficult to reach, or when inspecting gas pipelines in closed rooms, traditional portable detectors are difficult to use. Therefore, open laser gas detection systems have appeared in the market.
[0003] The open laser gas detection system uses tunable semiconductor laser absorption spectroscopy technology to emit a laser beam to the target point (gas pipeline, ceiling, wall, floor, ground, etc.) through a laser. The laser beam will be diffusely reflected by background objects such as the ground or wall. The diffusely reflected light is collected by the system's converging lens, received by the detector and converted into an electrical signal, realizing continuous and simultaneous real-time monitoring of target gases (such as methane, etc.) over a large range. Therefore, the open laser gas detection system can perform long-distance telemetry and detect gas leaks without personnel approaching the leak point. It has the advantages of fast response speed, non-contact measurement, explosion-proof and strong anti-electromagnetic interference, and is particularly suitable for leak detection in areas that are difficult for personnel to reach, such as overhead pipelines, risers, buried pipelines, pipelines in narrow spaces, etc.
[0004] It should be noted that Tunable DiodeLaser Absorption Spectrometry (TDLAS) uses the narrow line width and wavelength of tunable semiconductor lasers that change with the injected current to measure a single or several absorption lines of molecules that are very close and difficult to distinguish. It mainly includes direct absorption technology and wavelength modulation technology:
[0005] 1) Direct absorption technology (TDLAS-DAS)
[0006] The scanning current is directly input into the laser to adjust the laser to generate scanning laser, and the absorption signal of the absorption spectrum is directly detected at the detection end to obtain the concentration value of the gas, but the error is large in the case of low concentration absorption;
[0007] 2) Wavelength modulation technology (TDLAS-WMS)
[0008] Wavelength modulation technology includes modulation-driven luminescence-absorption-reception conversion, loading low-frequency scanning sawtooth wave and high-frequency modulated sine wave onto the laser at the same time, removing some low-frequency noise through sine wave modulation; the modulated laser beam is absorbed by the gas and reaches the detector, which performs photoelectric conversion and uses a phase-locked amplifier to demodulate the echo harmonic signals of various orders to calculate the gas concentration. Wavelength modulation technology reduces the noise contained in direct absorption and is widely used in trace gas detection.
[0009] Therefore, open laser gas detection systems usually use wavelength modulation spectroscopy technology and harmonic detection technology to detect gas, and obtain gas concentration based on the linear relationship between the second harmonic and concentration; in order to eliminate interference caused by factors such as light intensity fluctuations, phase-locked amplification technology can also be used to detect the echo first harmonic signal and the second harmonic signal, and the gas concentration can be inverted and calculated using the amplitude ratio of the second harmonic to the first harmonic. Among them, phase-locked amplification technology includes hardware phase-locked and software phase-locked. Hardware phase-locked usually uses a phase-locked amplifier, and software phase-locked uses a digital phase-locked amplification algorithm implemented by software, such as the "Theoretical Study of TDLAS Gas Detection Based on Software Phase-locked" section in "Research on Key Technologies of TDLAS Optical Fiber Hybrid Gas Sensing Based on Software Phase-locked".
[0010] However, due to the long measurement distance, the open laser gas detection system receives diffuse reflection echo signals, and the light signals are very weak. Sometimes the noise even drowns out the real gas concentration information, seriously affecting the sensitivity and accuracy of the system in detecting gas. Therefore, in order to improve the detection accuracy, the existing technology usually adopts corresponding noise reduction algorithms to process the collected signals.
[0011] Existing noise reduction algorithms usually use some optimization algorithms to reduce noise after phase-locked amplification. Usually, after obtaining the second harmonic signal, some algorithms (such as least squares method, wavelet analysis) are used to reduce the noise of the second harmonic signal. However, these algorithms are based on the harmonic signal detected during the entire sampling period. Although noise reduction has been performed, in actual use, there are still problems such as inaccurate gas detection results due to the influence of reflective objects (such as cement roads, gravel roads, window glass on roadside buildings, various tiles and other environmental factors), which in turn cause false alarms.
[0012] In order to solve the above problems, people have been seeking an ideal technical solution. Summary of the invention
[0013] The purpose of the present invention is to address the deficiencies of the prior art and thus provide an open laser gas detection method and system based on variable region phase-locked amplification.
[0014] In order to achieve the above object, the technical solution adopted by the present invention is:
[0015] The first aspect of the present invention provides an open laser gas detection method based on variable region phase-locked amplification, the method comprising the following steps:
[0016] Reading a signal to be analyzed obtained within a detection period T; wherein the signal to be analyzed is an echo signal to be analyzed;
[0017] The signal to be analyzed is divided into an area to be analyzed I, an area to be analyzed II and an area to be analyzed III, wherein the area to be analyzed I corresponds to a sampling start point to an Nth sampling point of a detection period T, the area to be analyzed II corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and the area to be analyzed III corresponds to an M+1th sampling point to an Mth sampling end point of a detection period T; wherein M>N+1;
[0018] When it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified, performing phase-locked amplification calculation based on the area to be analyzed II and the area to be analyzed III;
[0019] When it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified, performing phase-locked amplification calculation based on the area to be analyzed I and the area to be analyzed II;
[0020] When it is determined that the target echo signal qualities of the to-be-analyzed area I and the to-be-analyzed area III are both unqualified, performing phase-locked amplification calculation based on the to-be-analyzed area II;
[0021] When the target echo signal qualities of the area to be analyzed I and the area to be analyzed III are both qualified, performing phase-locked amplification calculation based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III;
[0022] After performing the phase-locked amplification calculation, the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted, and the concentration value of the gas to be measured is calculated according to the ratio between the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic.
[0023] The second aspect of the present invention provides an open laser gas detection system based on variable region phase-locked amplification, which includes a data reading module, a region division module, a region I echo signal quality detection module, a region III echo signal quality detection module, a phase-locked amplification module and a gas concentration calculation module to be measured, wherein:
[0024] The data reading module is used to read the signal to be analyzed obtained within a detection period T and transmit it to the area division module; wherein the signal to be analyzed is the echo signal to be analyzed;
[0025] The region division module is used to divide the signal to be analyzed into region I to be analyzed, region II to be analyzed and region III to be analyzed, wherein region I to be analyzed corresponds to a sampling start point to an Nth sampling point of a detection period T, region II to be analyzed corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and region III to be analyzed corresponds to an M+1th sampling point to an Mth sampling point of a detection period T; wherein M>N+1;
[0026] The region I echo signal quality detection module is used to read the target echo signal of the region I to be analyzed, and detect whether the quality of the target echo signal of the region I to be analyzed is qualified;
[0027] The region III echo signal quality detection module is used to read the target echo signal of the region III to be analyzed, and detect whether the quality of the target echo signal of the region III to be analyzed is qualified;
[0028] The phase-locked amplification module is used to perform phase-locked amplification calculation based on the area to be analyzed II and the area to be analyzed III when it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified; perform phase-locked amplification calculation based on the area to be analyzed I and the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified; perform phase-locked amplification calculation based on the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both unqualified; perform phase-locked amplification calculation based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III when the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both qualified;
[0029] The measured gas concentration calculation module is used to extract the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic after performing phase-locked amplification calculation, and calculate the measured gas concentration value according to the ratio between the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic.
[0030] A third aspect of the present invention provides an open laser gas detection device based on variable-area phase-locked amplification, which includes a memory, a processor, and an open laser gas detection program based on variable-area phase-locked amplification stored in the memory and executable on the processor. When the open laser gas detection program based on variable-area phase-locked amplification is executed by the processor, the steps of the open laser gas detection method based on variable-area phase-locked amplification as described above are implemented.
[0031] A fourth aspect of the present invention provides a readable storage medium having instructions stored thereon, which, when executed by a processor, implement the steps of the open laser gas detection method based on variable-region phase-locked amplification as described above.
[0032] The beneficial effects of the present invention are:
[0033] 1) The present invention proposes an open laser gas detection method and system based on variable-area phase-locked amplification, which divides the signal to be analyzed within a detection period T into area I to be analyzed, area II to be analyzed, and area III to be analyzed, and detects whether the signal quality of area I to be analyzed and area III to be analyzed is qualified, and dynamically selects certain areas of area I to be analyzed, area II to be analyzed, and area III to be analyzed for phase-locked amplification calculation according to the signal quality detection result, and then extracts the ratio between the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic to calculate the concentration of the gas to be measured; thereby dynamically eliminating some abnormal signals in the signal to be analyzed, effectively solving the problem of abnormal calculation results of the concentration of the gas to be measured caused by various environmental factors such as reflective cement roads, gravel roads, window glass on roadside buildings, various tiles, etc., thereby reducing the probability of false alarms;
[0034] 2) Before performing phase-locked amplification calculation based on the area II to be analyzed and the area III to be analyzed, or the area I to be analyzed and the area II to be analyzed, or the area II to be analyzed, or the area I to be analyzed, the area II to be analyzed, and the area III to be analyzed, a step of detecting the signal quality of the area II to be analyzed is further provided to determine whether the target echo signal of the area II to be analyzed is distorted. If no distortion occurs, no phase-locked amplification calculation is performed, thereby reducing the amount of calculation and improving the detection efficiency on the basis of improving the detection accuracy;
[0035] 3) When the present invention dynamically selects certain areas of the to-be-analyzed area I, the to-be-analyzed area II and the to-be-analyzed area III for phase-locked amplification calculation, a digital phase-locked amplification algorithm is used for software phase-locking, which simplifies the circuit structure and effectively improves the detection accuracy;
[0036] 4) The present invention is based on a gas leakage and diffusion model, and performs real-time dynamic baseline adjustment according to the on-site environment to improve gas detection accuracy. The concentration of the gas to be measured is corrected with the baseline value, and combined with a polynomial fitting method, abnormal data that does not meet the normal gas leakage model due to external environmental factors can also be eliminated, thereby reducing the false alarm rate of gas detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 The process diagram of the open laser gas detection method based on variable region phase-locked amplification of the present invention is as follows Figure 1 ;
[0038] Figure 2 The process diagram of the open laser gas detection method based on variable region phase-locked amplification of the present invention is as follows Figure 2 ;
[0039] Figure 3 It is a schematic flow chart of an open laser gas detection method with a low false alarm rate of the present invention;
[0040] Figure 4 It is a schematic diagram of the structure of an open laser gas detection system;
[0041] Figure 5 The structure of the open laser gas detection system based on variable region phase-locked amplification of the present invention is shown in FIG. Figure 1 ;
[0042] Figure 6 The structure of the open laser gas detection system based on variable region phase-locked amplification of the present invention is shown in FIG. Figure 2 ;
[0043] Figure 7 It is a schematic diagram of the echo signal waveform when detecting the gas to be tested (the horizontal axis is the number of points or time, the vertical axis is the amplitude, the unit is mV);
[0044] Figure 8 yes Figure 7 Schematic diagram of the target echo signal waveform in a detection period T (the horizontal axis is the number of points or time, the vertical axis is the amplitude, the unit is mV). DETAILED DESCRIPTION
[0045] The technical solution of the present invention is further described in detail below through specific implementation methods.
[0046] Attached Figure 4 A structural schematic diagram of an open laser gas detection system is shown, which includes a laser, a laser driving circuit, a laser temperature control circuit, a detector, an I / V conversion circuit, a signal amplification and filtering circuit, a signal acquisition circuit, a processor, a wireless communication circuit, a remote online cloud platform, etc.; the output wavelength of the laser has a tunable characteristic, and both the current and voltage can be tuned; the laser temperature control circuit stabilizes the laser temperature at a certain temperature (such as 25°C), and the output wavelength of the laser is basically not affected by external temperature changes.
[0047] The laser is used to emit a laser beam, and the laser driving circuit uses a driving waveform of a sawtooth wave (or a triangle wave, a square wave, a horizontal line and then an upward slant, or a horizontal line and then an downward slant, etc.) superimposed on a sine wave to modulate the laser beam emitted by the laser; the modulated laser beam is diffusely reflected by a background object and then absorbed by the detector, the detector performs photoelectric conversion on the received light signal, the I / V conversion circuit converts the current signal output by the detector into a voltage signal, the signal amplification and filtering circuit performs filtering processing on the voltage signal output by the I / V conversion circuit, and the signal acquisition circuit converts the analog signal after filtering processing into a digital signal as the echo signal to be analyzed.
[0048] Example 1
[0049] Attached Figure 1 A flow chart of an open laser gas detection method based on variable region phase-locked amplification is shown, the method comprising the following steps:
[0050] Reading a signal to be analyzed obtained within a detection period T; wherein the signal to be analyzed is an echo signal to be analyzed;
[0051] The signal to be analyzed is divided into an area to be analyzed I, an area to be analyzed II and an area to be analyzed III, wherein the area to be analyzed I corresponds to a sampling start point to an Nth sampling point of a detection period T, the area to be analyzed II corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and the area to be analyzed III corresponds to an M+1th sampling point to an Mth sampling end point of a detection period T;
[0052] When it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified, a phase-locked amplification calculation is performed based on the area to be analyzed II and the area to be analyzed III, and the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted, and the concentration value of the gas to be measured is calculated according to the ratio between the extracted amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic;
[0053] When it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified, a phase-locked amplification calculation is performed based on the area to be analyzed I and the area to be analyzed II, and the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted, and the concentration value of the gas to be measured is calculated according to the ratio between the extracted amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic;
[0054] When it is determined that the target echo signal qualities of the area to be analyzed I and the area to be analyzed III are both unqualified, a phase-locked amplification calculation is performed based on the area to be analyzed II, the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted, and the concentration value of the gas to be measured is calculated according to the ratio between the extracted amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic;
[0055] When the target echo signal qualities of the area to be analyzed I and the area to be analyzed III are both qualified, phase-locked amplification calculation is performed based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III, the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted, and the concentration value of the gas to be measured is calculated according to the ratio between the extracted amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic.
[0056] Where, M and N are both natural numbers greater than or equal to 1, M>N+1, as shown in the attached Figure 8 As shown;
[0057] It should be noted that, within a detection cycle, the laser outputs a laser of a specific wavelength at a specific moment, and the laser center wavelength is pre-adjusted to the absorption spectrum line of the gas to be measured; after being modulated by the laser driving circuit, the laser wavelength output by the laser changes periodically near the absorption spectrum line of the gas to be measured;
[0058] Therefore, the values of N and M are pre-configured before leaving the factory according to the detection period T, the time corresponding to the laser central wavelength, etc.; the values of N and M will reserve enough redundancy when configuring and will be modified according to actual conditions.
[0059] Specifically, the detection period T is the same as the period T of the fundamental wave (sawtooth wave, triangle wave, etc.) in the driving waveform of the laser driving circuit, and the period T of the triangle wave is greater than the period T0 of the sine wave.
[0060] In a specific implementation, taking a methane laser as an example, the central wavelength of its output laser beam is 1653.7nm, the sawtooth wave is used to gradually change the laser output wavelength from 1652.7nm to 1654.7nm (within one detection cycle), and the sine wave is used for modulation; wherein the sawtooth wave period is 2.6ms, the sine wave period is 10khz, and the sampling frequency is 200khz;
[0061] 1) During normal gas measurement
[0062] The laser beam emitted by the laser is directed to the area where the gas to be tested is located. When the laser output wavelength scans to 1653.7nm, if methane gas is encountered, the sine wave of the area to be analyzed II (corresponding to 1653.7nm) will have a benign distortion (absorption pit), as shown in the attached figure. Figure 7The curve graph shown in the upper middle part;
[0063] If no methane gas is encountered, the received echo signal is not distorted, the sine wave in the analyzed area II has no absorption pit, the extracted second harmonic amplitude is about 0mV, and the concentration value of the gas to be measured is close to 0;
[0064] 2) When the laser beam emitted by the laser encounters background objects such as glass, edges and corners during the gas measurement process
[0065] When the laser output wavelength is scanned to 1653.7nm, if methane gas is encountered, in addition to the benign distortion of the sine wave in the analyzed area II (corresponding to 1653.7nm), the analyzed area III also has undesirable distortion, as shown in the attached figure. Figure 7 The curve graph shown in the lower middle part;
[0066] If methane gas is not encountered, due to the interference of background objects such as glass, the sine wave in the analysis area II does not have benign distortion, but the area to be analyzed III has bad distortion; if the phase-locked amplification algorithm is used to extract the first and second harmonics of the entire detection cycle, the concentration value of the gas to be measured is greater than 0, resulting in the measured gas concentration value being greater than the actual gas concentration value, which will cause a false alarm;
[0067] If the open laser gas detection method based on variable-area phase-locked amplification in this embodiment is used, the data of the area to be analyzed III will be discarded, and phase-locked amplification calculation will be performed based on the area to be analyzed I and the area to be analyzed II, then the extracted second harmonic amplitude is approximately 0mV, and the concentration value of the gas to be measured is close to 0, thereby improving the detection accuracy.
[0068] In another specific embodiment, taking a methane laser as an example, the central wavelength of its output laser beam is 1653.7 nm, and the function of the triangular wave is to gradually change the laser output wavelength from 1652.7 nm to 1654.7 nm, wherein the sawtooth wave period is 2.6 ms, the sine wave period is 10 khz, and the sampling frequency is 200 khz;
[0069] When the laser beam emitted by the laser dynamically scans the intersection of gravel roads, cement roads, wall bases, etc., and shines toward the sky, resulting in no background reflectors: when the laser output wavelength scans to 1653.7nm, although no methane gas is encountered, due to interference caused by factors such as cloudy days, the sine wave in the analysis area II does not show benign distortion, but the area to be analyzed I shows bad distortion;
[0070] If the phase-locked amplification algorithm is used to extract the first harmonic and the second harmonic of the entire detection cycle, the amplitude of the extracted first harmonic is small (greater than 0mV), and the amplitude of the extracted second harmonic is greater than 0mV, resulting in the measured gas concentration value being greater than the actual gas concentration value, triggering an alarm;
[0071] If the open laser gas detection method based on variable-area phase-locked amplification in this embodiment is used, the data of the area to be analyzed I will be discarded, and phase-locked amplification calculation will be performed based on the area to be analyzed II and the area to be analyzed III. The extracted first harmonic amplitude is normal (greater than 0mV), and the extracted second harmonic amplitude is close to 0mV, and the concentration value of the gas to be measured is close to 0, thereby improving the detection accuracy.
[0072] It should be noted that, in the prior art, when performing open laser gas detection, the target echo signal is usually obtained within a fixed detection period T for phase-locked amplification calculation, and the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic are extracted;
[0073] However, due to poor lighting conditions caused by weather and other reasons, or the laser beam emitted by the laser hitting the window glass, various tiles, etc. on the roadside buildings, the target echo signal obtained within a detection period T may be locally abnormal (quality failure), and the location of the abnormality in the target echo signal is different under different detection conditions; if the phase-locked amplification calculation and gas concentration calculation are still performed according to a fixed area, the calculated gas concentration will be greater than the gas concentration in the actual environment, thereby causing a false alarm;
[0074] To solve this problem, this embodiment proposes an open laser gas detection method based on variable-area phase-locked amplification. Before extracting the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic, phase-locked amplification calculation and gas concentration calculation are performed on different areas in the target echo signal according to different detection conditions, so as to eliminate abnormal signals before the phase-locked amplification calculation, avoid the influence of unqualified quality areas on the amplitude of the first harmonic and the amplitude of the second harmonic extracted by the phase-locked amplification algorithm, and effectively improve the detection accuracy while reducing the amount of phase-locked amplification calculation.
[0075] Example 2
[0076] It should be noted that factors such as low light intensity in the detection environment will cause the target echo signal quality of the area to be analyzed I to be unqualified, and the unqualified target echo signal quality of the area to be analyzed I will cause the amplitude V of the first harmonic f corresponding to the entire detection cycle to be fThe ratio between the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic is too large, and even a false alarm is caused. In this embodiment, the target echo signal of the area to be analyzed I with unqualified quality is eliminated by comparing the similarity S1 between the target echo signal of the area to be analyzed I and the standard signal with the similarity threshold TOS1, or comparing the signal distortion amount S_I of the area to be analyzed I with the distortion threshold Sth1, thereby effectively improving the detection accuracy and reducing the amount of phase-locked amplification calculation.
[0077] The presence of glass, edges and corners in the detection environment may cause the target echo signal of area III to be unqualified in quality. The unqualified quality of the target echo signal of area III to be analyzed may cause the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic corresponding to the entire detection period to be abnormal, thereby causing the ratio between the two to be too large, and even causing a false alarm. In this embodiment, the target echo signal of area III to be analyzed with unqualified quality is eliminated through the comparison result between the similarity S3 between the target echo signal of area III to be analyzed and the standard signal and the similarity threshold TOS3, or the comparison result between the signal distortion amount S_III of area III to be analyzed and the distortion threshold Sth3, thereby effectively improving the detection accuracy while reducing the amount of phase-locked amplification calculation.
[0078] It can be understood that the area to be analyzed I is used as the gas measurement light intensity calculation area, the area to be analyzed III is used as the gas measurement waveform normal area, the area to be analyzed I and the area to be analyzed III can also be called gas-free absorption areas, and for judging the signal quality in the gas-free absorption areas, this embodiment provides several signal quality detection methods.
[0079] In a specific implementation, when judging whether the quality of the target echo signal of the area to be analyzed I is qualified, the following is performed: calculating the similarity S1 between the target echo signal of the area to be analyzed I and the standard signal of the area to be analyzed I, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; judging that the similarity S1 is less than the similarity threshold TOS1, if so, judging that the quality of the target echo signal of the area to be analyzed I is unqualified, otherwise judging that the quality of the target echo signal of the area to be analyzed I is qualified;
[0080] When judging whether the quality of the target echo signal of the area III to be analyzed is qualified, the following is performed: calculating the similarity S3 between the target echo signal of the area III to be analyzed and the standard signal, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; judging that the similarity S3 is less than the similarity threshold TOS3, if so, judging that the quality of the target echo signal of the area III to be analyzed is unqualified, otherwise judging that the quality of the target echo signal of the area I to be analyzed is qualified.
[0081] It should be noted that when the region I to be analyzed has no adverse distortion, the two (the target echo signal of the region I to be analyzed and the standard signal of the region I to be analyzed) are exactly the same, and the similarity is 1. The more serious the adverse distortion of the region I to be analyzed, the smaller the similarity value between the target echo signal of the region I to be analyzed and the standard signal of the region I to be analyzed.
[0082] When there is no adverse distortion in the area III to be analyzed, the two (the target echo signal of the area III to be analyzed and the standard signal of the area III to be analyzed) are exactly the same, and the similarity is 1. The more serious the adverse distortion of the area III to be analyzed, the smaller the similarity value between the target echo signal of the area III to be analyzed and the standard signal of the area III to be analyzed.
[0083] In another specific implementation, when judging whether the quality of the target echo signal of the area to be analyzed I is qualified, the following is performed: calculating the similarity S1 between the target echo signal of the area to be analyzed I and the standard signal, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; judging that the similarity S1 is less than the similarity threshold TOS1, if so, judging that the quality of the target echo signal of the area to be analyzed I is unqualified, otherwise judging that the quality of the target echo signal of the area to be analyzed I is qualified;
[0084] When judging whether the quality of the target echo signal of the area to be analyzed III is qualified, the following is performed: performing FFT (Fast Fourier Transform) calculation on the target echo signal of the area to be analyzed III to obtain the amplitude V' of the first harmonic f respectively. f , the amplitude of the second harmonic 2f is V' 2f The amplitude of the nth harmonic nf is V' nf The signal distortion variable S_Ⅲ of the region to be analyzed is calculated using the following formula:
[0085]
[0086] It is determined whether the signal distortion amount S of the area III to be analyzed is greater than the distortion threshold Sth3. If so, it is determined that the quality of the target echo signal of the area III to be analyzed is unqualified; otherwise, it is determined that the quality of the target echo signal of the area III to be analyzed is qualified.
[0087] It should be noted that when the region III to be analyzed has no adverse distortion, the signal distortion variable S of the region III to be analyzed is 1. The more severe the adverse distortion of the region III to be analyzed is, the greater the signal distortion variable S of the region III to be analyzed is.
[0088] In another specific implementation, when judging whether the quality of the target echo signal in the area to be analyzed I is qualified, the following steps are performed: performing FFT calculation on the target echo signal in the area to be analyzed I to obtain the amplitude V of the first harmonic f respectively. f , the amplitude of the second harmonic 2f is V 2f The amplitude of the nth harmonic nf is V nf The signal distortion variable S_Ⅰ of the region to be analyzed I is calculated using the following formula:
[0089]
[0090] Determine whether the signal distortion amount S of the area to be analyzed I is greater than the distortion threshold Sth1, if so, determine that the quality of the target echo signal of the area to be analyzed I is unqualified, otherwise determine that the quality of the target echo signal of the area to be analyzed I is qualified;
[0091] When judging whether the quality of the target echo signal of the area III to be analyzed is qualified, the following is performed: calculating the similarity S3 between the target echo signal of the area III to be analyzed and the standard signal, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; judging that the similarity S3 is less than the similarity threshold TOS3, if so, judging that the quality of the target echo signal of the area III to be analyzed is unqualified, otherwise judging that the quality of the target echo signal of the area I to be analyzed is qualified.
[0092] It should be noted that when the region I to be analyzed has no adverse distortion, the signal distortion amount S of the region I to be analyzed is 1. The more severe the adverse distortion of the region I to be analyzed is, the greater the signal distortion amount S of the region I to be analyzed is.
[0093] In another specific implementation, when judging whether the quality of the target echo signal in the area to be analyzed I is qualified, the following steps are performed: performing FFT calculation on the target echo signal in the area to be analyzed I to obtain the amplitude V of the first harmonic f respectively. f , the amplitude of the second harmonic 2f is V 2f The amplitude of the nth harmonic nf is V nf The signal distortion variable S_Ⅰ of the region to be analyzed I is calculated using the following formula:
[0094]
[0095] Determine whether the signal distortion amount S of the area to be analyzed I is greater than the distortion threshold Sth1, if so, determine that the quality of the target echo signal of the area to be analyzed I is unqualified, otherwise determine that the quality of the target echo signal of the area to be analyzed I is qualified;
[0096] When judging whether the quality of the target echo signal of the area to be analyzed III is qualified, the following is performed: performing FFT calculation on the target echo signal of the area to be analyzed III to obtain the amplitude V' of the first harmonic f respectively. f , the amplitude of the second harmonic 2f is V' 2f The amplitude V' of the nth harmonic nf nf The signal distortion variable S_Ⅲ of the region to be analyzed is calculated using the following formula:
[0097]
[0098] It is determined whether the signal distortion amount S of the area III to be analyzed is greater than the distortion threshold Sth3. If so, it is determined that the quality of the target echo signal of the area III to be analyzed is unqualified; otherwise, it is determined that the quality of the target echo signal of the area III to be analyzed is qualified.
[0099] Furthermore, when calculating the similarity S1 between the target echo signal of the to-be-analyzed area I and the standard signal of the to-be-analyzed area I, the following formula is used:
[0100]
[0101] Wherein, W represents the number of sampling points corresponding to the target echo signal of the area to be analyzed I, X represents the sampling point amplitude corresponding to the target echo signal of the area to be analyzed I, and Y represents the sampling point amplitude corresponding to the standard signal of the area to be analyzed I.
[0102] It can be understood that the formula used to calculate the similarity S3 between the target echo signal of the area III to be analyzed and the standard signal is similar to the formula for calculating the similarity S1; the difference is that W is the number of sampling points corresponding to the target echo signal of the area III to be analyzed, X is the sampling point amplitude corresponding to the target echo signal of the area III to be analyzed, and Y is the sampling point amplitude corresponding to the standard signal of the area III to be analyzed.
[0103] Specifically, the value range of n is a natural number greater than 3. Taking into account both the amount of calculation and the accuracy, the value of n can be 4; then the calculation formula of the signal distortion variable S_I of the area to be analyzed I can be:
[0104]
[0105] The calculation formula of the signal distortion variable S_III of the area to be analyzed can be:
[0106] .
[0107] It should be noted that the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic in Example 1 refer to the harmonic amplitudes extracted after the phase-locked amplification of the target echo signal in the variable region, which are used to calculate the concentration of the gas to be measured. The amplitude V' of the first harmonic f in this embodiment is f , the amplitude of the second harmonic 2f is V' 2f The amplitude of the nth harmonic nf is V' nf It refers to the harmonic amplitude extracted after FFT calculation based on the target echo signal of area I or area III to be analyzed, which is used for signal quality evaluation.
[0108] Specifically, the similarity threshold TOS1 may be in the range of 0.1 to 0.3, such as 0.15; the similarity threshold TOS3 may be in the range of 0.1 to 0.3, such as 0.15;
[0109] The distortion threshold Sth1 has a value range of 1.05 to 1.3, for example, 1.1; the distortion threshold Sth3 has a value range of 1.05 to 1.3, for example, 1.1.
[0110] Example 3
[0111] It should be noted that, in order to reduce the amount of calculation, this embodiment also detects the signal quality of the area II to be analyzed; Figure 2 As shown, the difference between this embodiment and the above embodiment is that:
[0112] Before performing the phase-locked amplification calculation, the following steps are further performed: calculating the similarity S2 between the target echo signal of the area II to be analyzed and the standard signal of the area II to be analyzed, and determining whether the similarity S2 is within a preset similarity range;
[0113] If it is not within the preset similarity range, the target echo signal quality of the to-be-analyzed area II is determined to be unqualified, and the phase-locked amplification calculation is not performed;
[0114] If it is within the preset similarity range, it is determined that the target echo signal of the area to be analyzed II has (benign) distortion, and phase-locked amplification calculation is performed based on the area to be analyzed II and the area to be analyzed III, or based on the area to be analyzed I and the area to be analyzed II, or based on the area to be analyzed II, or based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III.
[0115] Furthermore, the formula for calculating the similarity S2 between the target echo signal of the area II to be analyzed and the standard signal is similar to the formula for calculating the similarity S1; the difference is that W is the number of sampling points corresponding to the target echo signal of the area II to be analyzed, X is the sampling point amplitude corresponding to the target echo signal of the area II to be analyzed, and Y is the sampling point amplitude corresponding to the standard signal of the area II to be analyzed.
[0116] Specifically, the preset similarity range is 0.15 to 1, such as 0.15 to 0.6;
[0117] It can be understood that when there is no benign distortion in the area II to be analyzed, the two (the target echo signal of the area II to be analyzed and the standard signal of the area II to be analyzed) are exactly the same, and the similarity is 1. The more serious the benign distortion of the area II to be analyzed, the smaller the similarity value between the target echo signal of the area II to be analyzed and the standard signal of the area II to be analyzed.
[0118] Example 4
[0119] Based on the above embodiments, this embodiment provides an open laser gas detection method with low false alarm rate, as shown in the attached Figure 3 As shown;
[0120] The open laser gas detection method based on variable region phase-locked amplification also includes the following steps:
[0121] After calculating the concentration of the gas to be measured by the open laser gas detection method based on variable region phase-locked amplification in Embodiment 1, 2 or 3, the following is performed:
[0122] Step 0, recording the concentration value of the gas to be measured corresponding to each detection period T, and counting the number of the concentration values of the gas to be measured;
[0123] When the number of gas concentration values to be measured is equal to the preset value A, the A gas concentration values to be measured are used as the i-th group of gas concentration data for polynomial fitting to obtain the fitting curve corresponding to the group of gas concentration data, and the fitting curve slope K is generated. i and the median value C of the fitting curve i ; where i≥0;
[0124] Step 1: Determine the slope K of the fitting curve i Is it greater than the rising slope threshold (the rising slope threshold is greater than 0), if so, perform polynomial fitting on the i+1th group of gas concentration data to obtain the fitting curve slope K corresponding to this group of gas concentration data i+1 and the median value C of the fitting curve i+1 ;
[0125] Step 2: Determine the slope K of the fitting curve i+1Is it greater than the rising slope threshold? If so, calculate the median C of the fitting curve respectively. i , the median value of the fitting curve C i+1 The difference between the initial baseline value and the initial baseline value is used as the corrected gas concentration.
[0126] Step 3: Perform polynomial fitting on the i+2th group of gas concentration data to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+2 and the median value C of the fitting curve i+2 , calculate the median value C of the fitting curve i+2 The difference between the initial baseline value and the gas concentration after correction is taken as the difference;
[0127] Step 4: Perform polynomial fitting on the i+jth group of gas concentration data to obtain the slope K of the fitting curve corresponding to the group of gas concentration data. i+j and the median value C of the fitting curve i+j ; where j≥0;
[0128] The slope K of the fitting curve i+j When the slope is less than the descending slope threshold (the descending slope threshold is less than 0), a polynomial fitting is performed on the i+g group of gas concentration data to obtain the slope K of the fitting curve corresponding to the group of gas concentration data. i+g and the median value C of the fitting curve i+g ; Wherein, g>j, and g is a positive integer;
[0129] If the slope of the fitting curve K i+g If it is less than the falling slope threshold, the falling flag is set to 1;
[0130] Step 5: When the drop mark 1 is read and the slope K of the fitting curve corresponding to a set of gas concentration data is near 0, the median of the fitting curve corresponding to the set of gas concentration data is used as the new baseline value.
[0131] It should be noted that the initial baseline value is pre-set, and in the actual detection process, the value can be automatically updated to a new baseline value as the detection environment changes;
[0132] Specifically, when it is detected that the slope of the fitting curve corresponding to two consecutive groups (or one or more groups) of gas concentration data is less than the slope threshold, it means that the leaked gas is dissipating or the user has left the gas leakage area with the handheld detector; if it is detected again that the slope of the fitting curve corresponding to a group of gas concentration data is near 0, the median value of the fitting curve corresponding to the group of gas concentration data is used as the new baseline value.
[0133] Furthermore, A gas concentration values to be measured are used as the i-th group of gas concentration data for polynomial fitting, and a fitting curve corresponding to the group of gas concentration data is obtained, and the slope of the fitting curve and the median of the fitting curve are generated, and the following formula is used: y=a*x+b; wherein y represents the detected gas concentration value to be measured, x represents the number of collected data points, a represents the slope of the fitting curve, and b is the intercept of the fitting curve on the y-axis;
[0134] Substitute the absolute value of A / 2 as x into the above formula, and use the resulting y value as the median of the fitting curve.
[0135] In a specific implementation, taking the preset value A as 10 as an example, multiple arrays are preset to record the concentration value of the gas to be measured corresponding to each detection period T, and the size of each array is 10;
[0136] When the first array is full of gas concentration values to be measured, a polynomial fitting is performed on the gas concentration values to be measured in the first array to obtain a fitting curve corresponding to the group of gas concentration data, and a fitting curve slope K is generated. 1 and the median value C of the fitting curve 1 ; Assume that the slope of the fitting curve is K 1 If it is near 0, the median value C of the fitting curve 1 The current gas concentration is used as an output, and an alarm detection is performed based on the current gas concentration; if the alarm threshold is exceeded, an alarm instruction is generated, otherwise no alarm instruction is generated;
[0137] By analogy, when the i-th array is full of the gas concentration values to be measured, a polynomial fitting is performed on the gas concentration values to be measured in the i-th array to obtain the fitting curve corresponding to the group of gas concentration data, and the fitting curve slope K is generated. i and the median value C of the fitting curve i ; Assume that the slope of the fitting curve is K i > Rising slope threshold;
[0138] When the i+1th array is full of gas concentration values to be measured, a polynomial fitting is performed on the gas concentration values to be measured in the i+1th array to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+1 and the median value C of the fitting curve i+1 ; Assume that the slope of the fitting curve is K i+1 > rising slope threshold, then the median value C of the fitting curve i - Default baseline value and median value of fitting curve C i+1 - The calculation result of the default baseline value is output as the corrected gas concentration, and alarm detection is performed based on the corrected gas concentration; if the alarm threshold is exceeded, an alarm instruction is generated, otherwise no alarm instruction is generated;
[0139] When the i+2th array is full of gas concentration values to be measured, a polynomial fitting is performed on the gas concentration values to be measured in the i+2th array to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+2 and the median value C of the fitting curve i+2 , the median value C of the fitting curve i+2 - The calculation result of the default baseline value is output as the corrected gas concentration, and alarm detection is performed based on the corrected gas concentration; if the alarm threshold is exceeded, an alarm instruction is generated, otherwise no alarm instruction is generated;
[0140] Similarly, calculate the fitting curve slopes K corresponding to the i+2th array to the i+(j-1th)th array, assuming that the fitting curve slopes K are all greater than or equal to the descending slope threshold;
[0141] When the i+jth array is full of gas concentration values to be measured, a polynomial fitting is performed on the gas concentration values to be measured in the i+jth array to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+j and the median value C of the fitting curve i+j ; Assume that the slope of the fitting curve is K i+j <Descending slope threshold;
[0142] Perform polynomial fitting on the gas concentration values to be measured in the i+gth array to obtain the fitting curve slope K corresponding to the group of gas concentration data i+g and the median value C of the fitting curve i+g ; Assume that the slope of the fitting curve is K i+g <Descending slope threshold, set the descending flag bit to 1;
[0143] When the drop mark 1 is read and the slope K of the new fitting curve is near 0, the median of the fitting curve corresponding to the group of gas concentration data is used as the new baseline value.
[0144] Example 5
[0145] On the basis of the above embodiments, this embodiment provides a specific implementation of an open laser gas detection system based on variable region phase-locked amplification;
[0146] As attached Figure 5 As shown, the open laser gas detection system based on variable region phase-locked amplification includes a data reading module, a region division module, a region I echo signal quality detection module, a region III echo signal quality detection module, a phase-locked amplification module and a gas concentration calculation module to be measured, wherein:
[0147] The data reading module is used to read the signal to be analyzed obtained within a detection period T and transmit it to the area division module; wherein the signal to be analyzed is the echo signal to be analyzed;
[0148] The region division module is used to divide the signal to be analyzed into region I to be analyzed, region II to be analyzed and region III to be analyzed, wherein region I to be analyzed corresponds to a sampling start point to an Nth sampling point of a detection period T, region II to be analyzed corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and region III to be analyzed corresponds to an M+1th sampling point to an Mth sampling point of a detection period T; wherein M>N+1;
[0149] The region I echo signal quality detection module is used to read the target echo signal of the region I to be analyzed, and detect whether the quality of the target echo signal of the region I to be analyzed is qualified;
[0150] The region III echo signal quality detection module is used to read the target echo signal of the region III to be analyzed, and detect whether the quality of the target echo signal of the region III to be analyzed is qualified;
[0151] The phase-locked amplification module is used to perform phase-locked amplification calculation based on the area to be analyzed II and the area to be analyzed III when it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified; perform phase-locked amplification calculation based on the area to be analyzed I and the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified; perform phase-locked amplification calculation based on the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both unqualified; perform phase-locked amplification calculation based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III when the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both qualified;
[0152] The measured gas concentration calculation module is used to extract the amplitude Vf of the first harmonic and the amplitude V2f of the second harmonic after performing phase-locked amplification calculation, and calculate the measured gas concentration value according to the ratio between the amplitude V2f of the second harmonic and the amplitude Vf of the first harmonic.
[0153] Attached Figure 4The invention shows a schematic structural diagram of an open laser gas detection system, which includes a laser, a laser driving circuit, a laser temperature control circuit, a detector, an I / V conversion circuit, a signal amplification and filtering circuit, a signal acquisition circuit, a processor, a wireless communication circuit, a remote online cloud platform, etc. The data reading module, the area division module, the area I echo signal quality detection module, the area III echo signal quality detection module, the phase-locked amplification module and the measured gas concentration calculation module, etc. are pre-installed in the processor. When the processor dynamically selects certain areas of the area I to be analyzed, the area II to be analyzed and the area III to be analyzed for phase-locked amplification calculation, the digital phase-locked amplification algorithm is used for software phase locking, which simplifies the circuit structure and effectively improves the detection accuracy.
[0154] Attached Figure 6 As shown, the open laser gas detection system based on variable region phase-locked amplification also includes a region II echo signal quality detection module, which is used to:
[0155] Before performing the phase-locked amplification calculation, the following steps are further performed: calculating the similarity S2 between the target echo signal of the area II to be analyzed and the standard signal, and determining whether the similarity S2 is within a preset similarity range;
[0156] If it is not within the preset similarity range, the target echo signal quality of the to-be-analyzed area II is determined to be unqualified, and the phase-locked amplification calculation is not performed;
[0157] If it is within the preset similarity range, it is determined that the target echo signal of the area to be analyzed II is distorted, and phase-locked amplification calculation is performed based on the area to be analyzed II and the area to be analyzed III, or based on the area to be analyzed I and the area to be analyzed II, or based on the area to be analyzed II, or based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III.
[0158] Example 6
[0159] On the basis of the above embodiments, this embodiment provides a specific implementation of an open laser gas detection device based on variable-area phase-locked amplification, which includes a memory, a processor, and an open laser gas detection program based on variable-area phase-locked amplification stored in the memory and executable on the processor. When the open laser gas detection program based on variable-area phase-locked amplification is executed by the processor, the steps of the open laser gas detection method based on variable-area phase-locked amplification as described above are implemented.
[0160] On the basis of the above embodiment, this embodiment also provides a specific implementation of a readable storage medium, on which instructions are stored, and when the instructions are executed by a processor, the steps of the open laser gas detection method based on variable-region phase-locked amplification as described above are implemented.
[0161] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0162] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0163] In the embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the above modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0164] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0165] If the above-mentioned integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.
Claims
1. An open laser gas detection method based on variable region phase-locked amplification, characterized in that: The following steps are involved: Reading a signal to be analyzed obtained within a detection period T; wherein the signal to be analyzed is an echo signal to be analyzed; The signal to be analyzed is divided into an area to be analyzed I, an area to be analyzed II and an area to be analyzed III, wherein the area to be analyzed I corresponds to a sampling start point to an Nth sampling point of a detection period T, the area to be analyzed II corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and the area to be analyzed III corresponds to an M+1th sampling point to an Mth sampling end point of a detection period T; wherein M>N+1; When it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified, performing phase-locked amplification calculation based on the area to be analyzed II and the area to be analyzed III; When it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified, performing phase-locked amplification calculation based on the area to be analyzed I and the area to be analyzed II; When it is determined that the target echo signal qualities of the to-be-analyzed area I and the to-be-analyzed area III are both unqualified, performing phase-locked amplification calculation based on the to-be-analyzed area II; When the target echo signal qualities of the area to be analyzed I and the area to be analyzed III are both qualified, performing phase-locked amplification calculation based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III; After performing phase-locked amplification calculation, the amplitude V of the first harmonic is extracted. f and the amplitude of the second harmonic V 2f , and according to the amplitude of the second harmonic V 2f and the amplitude of the first harmonic V f The concentration of the gas to be tested is calculated by the ratio between them; Before performing the phase-locked amplification calculation, the following is also executed: Calculate the similarity S2 between the target echo signal of the area II to be analyzed and the standard signal, and determine whether the similarity S2 is within a preset similarity range; If it is not within the preset similarity range, the target echo signal quality of the to-be-analyzed area II is determined to be unqualified, and the phase-locked amplification calculation is not performed; If it is within the preset similarity range, it is determined that the target echo signal of the area to be analyzed II is distorted, and phase-locked amplification calculation is performed based on the area to be analyzed II and the area to be analyzed III, or based on the area to be analyzed I and the area to be analyzed II, or based on the area to be analyzed II, or based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III.
2. The open laser gas detection method based on variable region phase-locked amplification according to claim 1 is characterized in that: When judging whether the target echo signal quality of the to-be-analyzed area I is qualified, the following is performed: Calculate the similarity S1 between the target echo signal of the area to be analyzed I and the standard signal, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; It is determined that the similarity S1 is less than a similarity threshold TOS1. If so, it is determined that the quality of the target echo signal of the area to be analyzed I is unqualified; otherwise, it is determined that the quality of the target echo signal of the area to be analyzed I is qualified.
3. The open laser gas detection method based on variable region phase-locked amplification according to claim 1 is characterized in that: When judging whether the target echo signal quality of the to-be-analyzed area I is qualified, the following is performed: Perform FFT calculation on the target echo signal of the area to be analyzed I, and obtain the amplitude V of the first harmonic f respectively. f , the amplitude of the second harmonic 2f is V 2f The amplitude of the nth harmonic nf is V nf ; The signal distortion amount S_I of the area to be analyzed I is calculated using the following formula: It is determined whether the signal distortion amount S of the area to be analyzed I is greater than the distortion threshold Sth1. If so, it is determined that the quality of the target echo signal of the area to be analyzed I is unqualified; otherwise, it is determined that the quality of the target echo signal of the area to be analyzed I is qualified.
4. The open laser gas detection method based on variable region phase-locked amplification according to claim 1 is characterized in that: When judging whether the target echo signal quality of the to-be-analyzed area III is qualified, the following is performed: Calculate the similarity S3 between the target echo signal of the area III to be analyzed and the standard signal, wherein the standard signal is a sine wave with the same frequency, amplitude and phase as the laser modulated sine wave; It is determined that the similarity S3 is less than the similarity threshold TOS3. If so, it is determined that the quality of the target echo signal of the area to be analyzed III is unqualified, otherwise it is determined that the quality of the target echo signal of the area to be analyzed I is qualified.
5. The open laser gas detection method based on variable region phase-locked amplification according to claim 1 is characterized in that: When judging whether the target echo signal quality of the to-be-analyzed area III is qualified, the following is performed: Perform FFT calculation on the target echo signal of the area to be analyzed III to obtain the amplitude V' of the first harmonic f f , the amplitude of the second harmonic 2f is V' 2f The amplitude V' of the nth harmonic nf nf ; The signal distortion variable S_Ⅲ of the region to be analyzed is calculated using the following formula: It is determined whether the signal distortion amount S of the area III to be analyzed is greater than the distortion threshold Sth3. If so, it is determined that the quality of the target echo signal of the area III to be analyzed is unqualified; otherwise, it is determined that the quality of the target echo signal of the area III to be analyzed is qualified.
6. The open laser gas detection method based on variable region phase-locked amplification according to claim 1 is characterized in that: After calculating the concentration of the gas to be measured, execute: Step 0, record the concentration value of the gas to be tested corresponding to each detection period T, and count the number of the concentration values of the gas to be tested; When the number of gas concentration values to be measured is equal to the preset value A, the A gas concentration values to be measured are used as the i-th group of gas concentration data for polynomial fitting to obtain the fitting curve corresponding to the group of gas concentration data, and the fitting curve slope K is generated. i and the median value C of the fitting curve i ; Step 1: Determine the slope K of the fitting curve i Is it greater than the rising slope threshold? If so, perform polynomial fitting on the i+1th group of gas concentration data to obtain the fitting curve slope K corresponding to this group of gas concentration data. i+1 and the median value C of the fitting curve i+1 ; Step 2: Determine the slope K of the fitting curve i+1 Is it greater than the rising slope threshold? If so, calculate the median C of the fitting curve respectively. i , the median value of the fitting curve C i+1 The difference between the initial baseline value and the initial baseline value is used as the corrected gas concentration. Step 3: Perform polynomial fitting on the i+2th group of gas concentration data to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+2 and the median value C of the fitting curve i+2 , calculate the median value C of the fitting curve i+2 The difference between the initial baseline value and the gas concentration after correction is taken as the difference; Step 4: Perform polynomial fitting on the i+jth group of gas concentration data to obtain the slope K of the fitting curve corresponding to the group of gas concentration data. i+j and the median value C of the fitting curve i+j ; The slope K of the fitting curve i+j When the slope is less than the descending slope threshold, a polynomial fitting is performed on the i+g group of gas concentration data to obtain the fitting curve slope K corresponding to the group of gas concentration data. i+g and the median value C of the fitting curve i+g ; If the slope of the fitting curve K i+g If it is less than the falling slope threshold, the falling flag is set to 1; Step 5: When the drop mark 1 is read and the slope K of the fitting curve corresponding to a set of gas concentration data is near 0, the median of the fitting curve corresponding to the set of gas concentration data is used as the new baseline value.
7. An open laser gas detection system based on variable area phase-locked amplification, characterized in that: It includes a data reading module, a region division module, a region I echo signal quality detection module, a region III echo signal quality detection module, a phase-locked amplification module and a measured gas concentration calculation module, wherein: The data reading module is used to read the signal to be analyzed obtained within a detection period T and transmit it to the area division module; wherein the signal to be analyzed is the echo signal to be analyzed; The region division module is used to divide the signal to be analyzed into region I to be analyzed, region II to be analyzed and region III to be analyzed, wherein region I to be analyzed corresponds to a sampling start point to an Nth sampling point of a detection period T, region II to be analyzed corresponds to an N+1th sampling point to an Mth sampling point of a detection period T, and region III to be analyzed corresponds to an M+1th sampling point to an Mth sampling point of a detection period T; wherein M>N+1; The region I echo signal quality detection module is used to read the target echo signal of the region I to be analyzed, and detect whether the quality of the target echo signal of the region I to be analyzed is qualified; The region III echo signal quality detection module is used to read the target echo signal of the region III to be analyzed, and detect whether the quality of the target echo signal of the region III to be analyzed is qualified; The phase-locked amplification module is used to perform phase-locked amplification calculation based on the area to be analyzed II and the area to be analyzed III when it is determined that the target echo signal quality of the area to be analyzed I is unqualified and the target echo signal quality of the area to be analyzed III is qualified; perform phase-locked amplification calculation based on the area to be analyzed I and the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed III is unqualified and the target echo signal quality of the area to be analyzed I is qualified; perform phase-locked amplification calculation based on the area to be analyzed II when it is determined that the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both unqualified; perform phase-locked amplification calculation based on the area to be analyzed I, the area to be analyzed II and the area to be analyzed III when the target echo signal quality of the area to be analyzed I and the area to be analyzed III are both qualified; The gas concentration calculation module to be measured is used to extract the amplitude V of the first harmonic after performing phase-locked amplification calculation. f and the amplitude of the second harmonic V 2f , and according to the amplitude of the second harmonic V 2f and the amplitude of the first harmonic V f The concentration of the gas to be measured is calculated from the ratio between them.
8. An open laser gas detection device based on variable area phase-locked amplification, characterized in that: The invention comprises a memory, a processor and an open laser gas detection program based on variable area phase-locked amplification stored in the memory and executable on the processor. When the open laser gas detection program based on variable area phase-locked amplification is executed by the processor, the steps of the open laser gas detection method based on variable area phase-locked amplification as described in any one of claims 1 to 6 are implemented.
9. A readable storage medium having instructions stored thereon, characterized in that: When the instruction is executed by the processor, the steps of the open laser gas detection method based on variable-area phase-locked amplification as described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and system for reducing data false alarm rate of laser gas telemeter
CN109916831A
Multi-component gas concentration detection and temperature error correction method
CN111829982A
Multi-gas sensing system and detection method
CN112763454A
Underwater multi-target tracking method based on slope constraint and backtracking search
CN113280821A
Gas concentration measuring instrument
JP2010164413A
Cited By
High-sensitivity high-concentration gas detection method meeting industrial temperature
CN116008185A
Highly sensitive, high-concentration gas detection method that meets industrial temperature requirements
CN116008185B
