A method and system for improving the accuracy of TDLAS seawater methane detection

The improved wavelet threshold method is used to denoise the second harmonic signal of methane, which solves the problem of noise interference of methane detection signals in the marine environment, achieves higher detection accuracy and stability, and is suitable for in-situ real-time monitoring of complex environments. .

CN118518630BActive Publication Date: 2024-10-15QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES) +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410961474.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-15
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In a complex marine environment, methane detection signals are easily interfered by noise, resulting in insufficient detection accuracy and stability. Existing denoising methods have problems with constant deviation and signal mutation, which affect detection quality.

Method used

The improved wavelet threshold method is used to denoise the methane second harmonic signal, the signal is decomposed by discrete wavelet transform, a new threshold function is used to process the detail coefficients, and the signal is reconstructed using inverse wavelet transform to achieve higher quality signal reduction. noise.

Benefits of technology

Significantly improve the signal-to-noise ratio, avoid signal mutations, retain signal details, adapt to different noise intensities, achieve in-situ real-time online monitoring, and improve detection accuracy and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118518630B_ABST
    Figure CN118518630B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of methane monitoring, and specifically relates to a method and system for improving the accuracy of TDLAS seawater methane detection. The innovative wavelet threshold method can effectively remove noise while maintaining the high-frequency details of the signal, thereby improving the signal-to-noise ratio and avoiding the generation of artifacts and glitches. In addition, the improved wavelet threshold method has high computational efficiency and can meet the needs of real-time online monitoring. Through this innovative threshold processing method, the present invention significantly improves the noise reduction effect of the methane detection signal, ensures the accuracy of the detection and the stability of the signal, and provides reliable technical support for high-precision, real-time online monitoring of methane concentrations in the marine environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of methane monitoring, and in particular relates to a method and a system for improving the accuracy of TDLAS seawater methane detection. Background Art

[0002] In recent years, with the continuous advancement of environmental monitoring technology, researchers have begun to try to explore new methods for methane detection in marine environments by analyzing the spectral signals of methane gas in seawater. The methane signal in seawater contains rich environmental information, and its analysis is expected to achieve accurate monitoring of the concentration of methane in the ocean. Tunable diode laser absorption spectroscopy (TDLAS) technology uses the high selectivity and high sensitivity of lasers to capture the spectral characteristics of methane in seawater. In particular, through the second harmonic signal, the signal-to-noise ratio (SNR) of the signal can be significantly improved, thereby achieving accurate detection of methane concentration in a complex marine environment. The noise sources in the marine environment are complex, including natural noise (such as waves, currents, marine biological activities, etc.) and human activity noise (such as ship navigation, offshore equipment, etc.), which will interfere with the detection signal. By performing noise reduction processing on the second harmonic signal of methane, these interferences can be effectively filtered out and the quality of the detection signal can be improved.

[0003] At present, research on the denoising of the second harmonic signal for methane detection, such as in patent CN202311010362.4, Fang Yong et al. from Hefei University of Technology proposed a denoising method for the TDLAS gas monitoring system. According to the symmetry of the second harmonic signal, the distorted signal is eliminated, and an improved adaptive noise complete ensemble empirical mode decomposition (Improved Complete Ensemble Empirical Mode Decomposition, ICEEMD) is performed. Then, the traditional wavelet soft threshold function is used for denoising. Although this method has good continuity, there is a constant deviation, which seriously affects the quality of the reconstructed signal. Summary of the invention

[0004] This invention aims to solve the problem of methane concentration detection in marine environment by combining wavelet threshold method and TDLAS technology. The wavelet threshold method is used to perform in-situ noise reduction on the methane second harmonic signal, significantly improving the signal-to-noise ratio (SNR), thereby improving the accuracy and stability of detection, realizing in-situ real-time online monitoring, and adapting to complex marine environments. Its technical solution is:

[0005] A method for improving the accuracy of TDLAS seawater methane detection, comprising the following steps:

[0006] S1. Collect the noisy methane second harmonic signal;

[0007] S2. The extracted noisy methane second harmonic signal s(t) is subjected to discrete wavelet transform DWT, and the discrete signal is ;

[0008] S3. Decomposition of discrete methane second harmonic signal , we get the detail coefficients and approximation coefficients at different levels;

[0009] S4. Use the improved wavelet threshold denoising method to denoise the original methane second harmonic signal;

[0010] S5. Use inverse discrete wavelet transform to reconstruct the decomposed coefficients to obtain the denoised signal.

[0011] Preferably, in step S1,

[0012] S11. Generate a noisy methane second harmonic signal using a data processing module, a laser module, and a photodetector;

[0013] S12. Set the sampling frequency and sampling duration, and use the data acquisition module ADC to collect the methane second harmonic signal in real time.

[0014] Preferably, in step S2,

[0015] S21. Select appropriate wavelet basis functions and decomposition levels to decompose the signal into detail coefficients and approximate coefficients of different scales.

[0016] S22. For the discrete second harmonic signal of methane , its discrete wavelet transform can be expressed as:

[0017] The low frequency components are:

[0018] (1);

[0019] in is a scaling function, representing the low-pass filter of the jth layer, used to extract the low-frequency components of the signal; represents the kth approximation coefficient of the jth layer, N is the length of the representation signal;

[0020] High frequency components:

[0021] (2);

[0022] in is the wavelet basis function of the jth layer, which is used to extract the high-frequency components of the signal; represents the jth layer k A detail factor.

[0023] Preferably, in step S3, the discrete methane second harmonic signal is decomposed The first-level approximation coefficient and detail factor :

[0024] (3);

[0025] (4);

[0026] The signal Convolve with low-pass filter g and high-pass filter h respectively, and then downsample the result; where 2k-n represents the downsampling operation, and Represents the low-pass filter and high-pass filter coefficients, the filter function after scaling and translation, and the approximate coefficients of the first layer By performing the same decomposition, we get the approximate coefficients of the second layer. and detail factor :

[0027] (5);

[0028] (6);

[0029] This process is repeated until the predetermined decomposition level of 6 is reached;

[0030] (7);

[0031] (8);

[0032] After the above discrete wavelet transform, detail coefficients and approximation coefficients at different levels are obtained.

[0033] Preferably, in step S4,

[0034] S41. Select the VisuShrink threshold, threshold As shown in formula (9):

[0035] (9);

[0036] Wherein the It is expressed as:

[0037] (10);

[0038] Where medium represents the median value of the absolute value of the detail wavelet coefficients of a certain layer of decomposition, and N is the length of the signal;

[0039] S42. Detail coefficient Perform threshold processing,

[0040] (11);

[0041] (12);

[0042] represents the jth layer k Detail coefficients; is the high frequency coefficient of the jth layer after denoising, and is the new threshold function; is the threshold value; is a sign function.

[0043] Preferably, the new threshold function takes the straight line y=x as an asymptote. hour, Gradually approaching x;

[0044] When the new threshold function is All are set to zero within the range; when Approaching Threshold hour, Approximately equal to the soft threshold function.

[0045] Preferably, in step S5,

[0046] S51. Use thresholded detail coefficients for each layer and approximate coefficients Then upsampling and filtering are performed;

[0047] Approximately reconstructed signal :

[0048] (13);

[0049] Detail reconstruction signal :

[0050] (14);

[0051] S52. Combine the approximate and detailed reconstruction signals to obtain a higher-level signal:

[0052] (15);

[0053] Until the denoised methane second harmonic signal is recursively reconstructed .

[0054] A system for improving the accuracy of TDLAS seawater methane detection, comprising a data processing module, a DAC module, a laser module, a photoelectric detector, a data acquisition module ADC, and a waveform synthesis module;

[0055] Waveform synthesis module: superimpose a 20kHz sine wave and a 10Hz sawtooth wave;

[0056] DAC module: converts analog signals into voltage signals, which are used as modulation signal inputs for the laser module;

[0057] Laser module: emits a laser with a wavelength of 1653.72nm to illuminate the optical gas chamber, and the other end of the optical gas chamber is connected to the gas-liquid separation device; seawater enters the gas-liquid separation device under the action of pressure, and the gas enters the gas chamber module; at a wavelength of 1653.72nm, other gases do not interfere with the absorption of methane;

[0058] The photodetector receives the light signal after methane absorption, converts the light signal into a current signal, and then converts the current signal into a voltage signal through the I / V conversion module;

[0059] The data acquisition module ADC acquires the signal and stores the data in an array for data processing by the data processing module. After the digital phase-locked amplification processing of the data processing module, a methane second harmonic signal containing noise is generated.

[0060] Preferably, the data acquisition module ADC collects signals in the following steps:

[0061] After starting ADC sampling, the system enters a waiting state, waiting for the ADC sampling to complete and trigger an interrupt; when an ADC interrupt occurs, the interrupt service program is executed, the digital value converted by the ADC is read and stored in the buffer; when the buffer is full; the wavelet threshold denoising algorithm is executed, the signal is decomposed by discrete wavelet transform, the approximate coefficient and detail coefficient are calculated, and the detail coefficient is threshold processed to remove noise; then, the denoised signal is reconstructed by inverse wavelet transform, and the processed signal is sent to an external device or stored through the serial port.

[0062] Preferably, the sampling frequency of the data acquisition module ADC is 100-300kHz, and the sampling duration is 300-500ms.

[0063] Compared with the prior art, the present invention has the following beneficial effects:

[0064] 1. Overcoming the problem of signal mutation: The present invention directly applies the improved wavelet threshold function to process the methane detection signal, avoiding the discontinuous mutation at the threshold point of the traditional hard threshold denoising method, thereby generating a smoother denoising result. This continuity can avoid unnecessary signal mutations during the denoising process, thereby achieving higher quality signal denoising.

[0065] 2. Preserve signal details: The denoising method proposed in the present invention achieves a smooth transition near the threshold point, which can more effectively preserve signal details while suppressing noise. Although the traditional soft threshold denoising method also has a smooth transition, its denoising effect on the second harmonic signal of methane is not as delicate as the method proposed in the present invention. The present invention significantly improves the overall quality of the signal and the ability to retain details.

[0066] 3. Fine processing of noise of different intensities: The present invention introduces a combination of exponential and cube root to design a new threshold function, which can process noise of different intensities more finely. This design helps to effectively suppress noise without losing signal details. When processing signals, the new threshold function is more adaptive to the characteristic changes of the signal and can more flexibly deal with noise of different types and intensities, thereby enhancing the noise reduction effect.

[0067] 4. Realize in-situ measurement and in-situ denoising: The present invention not only innovates in the algorithm, but also realizes in-situ measurement and in-situ denoising. By applying the improved wavelet threshold denoising algorithm in real time on site, the collected methane detection signal can be directly denoised. This in-situ denoising method ensures the real-time and effectiveness of data processing, avoids potential errors caused by signal transmission, and improves the overall accuracy and reliability of the detection system. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Figure 1 It is the TDLAS seawater methane detection system.

[0069] Figure 2 It is the ADC acquisition and denoising process.

[0070] Figure 3 It is the wavelet threshold denoising process.

[0071] Figure 4 Compare the threshold functions.

[0072] Figure 5 It is the second harmonic signal of methane at a concentration of 100ppm; Figure 5 (a) is the extracted original noisy methane second harmonic signal. Figure 5 (b) is the result after being processed by the denoising method proposed in the present invention.

[0073] Figure 6The second harmonic signal spectra are obtained without denoising and after denoising by wavelet transform (using different threshold functions); Figure 6 (a) shows the comparison between the simulated pure signal and the signal after adding Gaussian white noise; Figure 6 (b) shows the comparison of the results after adding Gaussian white noise signal and denoising it with hard threshold function; Figure 6 (c) shows the comparison of the results after adding Gaussian white noise signal and denoising it with soft threshold function; Figure 6 (d) shows the comparison of the results after adding Gaussian white noise signal and denoising it with the new threshold function.

[0074] Figure 7 The signal spectra of methane second harmonic signals with different noise intensities after denoising; Figure 7 (a) shows the comparison of the methane second harmonic signal before and after denoising with a signal-to-noise ratio of 5dB; Figure 7 (b) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 10dB before and after denoising; Figure 7 (c) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 15dB before and after denoising; Figure 7 (d) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 20dB before and after denoising. DETAILED DESCRIPTION

[0075] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0076] How to build the TDLAS experimental system Figure 1 As shown: it includes data processing module, DAC module, laser module, photoelectric detector, data acquisition module ADC, and waveform synthesis module.

[0077] Waveform synthesis module: The TMS320F28335 core board modulates and generates a 20kHz sine wave and a 10Hz sawtooth wave superposition signal;

[0078] DAC module (DAC8830): The DAC8830 module performs digital-to-analog conversion into a voltage signal, which is used as the modulation signal input of the DFB laser;

[0079] (DFB) laser module: emits a laser with a wavelength of 1653.72nm to illuminate the optical gas chamber, the other end of which is connected to a gas-liquid separation device; seawater enters the gas-liquid separation device under the action of pressure, and the gas enters the gas chamber module; at a wavelength of 1653.72nm, other gases do not interfere with the absorption of methane;

[0080] The photodetector receives the light signal after methane absorption, converts the light signal into a current signal, and converts the current signal into a voltage signal through the I / V conversion module; the data acquisition module ADC (ADC9226) collects the signal and stores the data in an array for data processing through the data processing module. After the digital phase-locked amplification in the data processing module, a noisy methane second harmonic signal is generated.

[0081] The waveform synthesis module and data processing module are integrated on the TMS320F28335 core board.

[0082] The collection steps are as follows:

[0083] First, the TMS320F28335 core board modulates and generates a 20kHz sine wave and a 10Hz sawtooth wave superposition signal, which is converted into a voltage signal through the DAC8830 module for use as the modulation signal input of the DFB laser. The (DFB) laser module can take into account the temperature and current tuning functions, and emits a laser with a wavelength of 1653.72nm to irradiate the optical gas chamber. The other end of the optical gas chamber is connected to the gas-liquid separation device. Seawater enters the gas-liquid separation device under the action of pressure, and gas (methane, carbon dioxide, water vapor) enters the gas chamber module. At a wavelength of 1653.72nm, other gases do not interfere with the absorption of methane. The photodetector receives the light signal after methane absorption, converts the light signal into a current signal, and converts the current signal into a voltage signal through the I / V conversion module. The signal is collected through ADC9226 and the data is stored in an array. After digital phase-locked amplification in the TMS320F28335 core board, a noisy methane second harmonic signal is generated. Figure 2 As shown in the figure, the noisy methane second harmonic signal is denoised using the wavelet threshold method, and the processed data is transmitted to the host computer through the serial port. Acquisition of methane second harmonic signal: The ADC9226 acquisition module is used, and the sampling frequency of 200kHz and the sampling time of 400ms are set to collect the methane second harmonic signal in real time.

[0084] ADC acquisition and denoising process:

[0085] First, initialize the system and ADC module, set the sampling time and interrupt enable parameters. After starting ADC sampling, the system enters a waiting state, waiting for the ADC sampling to complete and trigger an interrupt. When the ADC interrupt occurs, the interrupt service routine is executed, the digital value converted by the ADC is read and stored in the buffer. When the buffer is full, the wavelet threshold denoising algorithm is executed, the signal is decomposed by discrete wavelet transform, the approximate coefficient and detail coefficient are calculated, and the detail coefficient is thresholded to remove noise. Subsequently, the denoised signal is reconstructed by inverse wavelet transform, and the processed signal is sent to an external device or stored through the serial port. The whole process ensures real-time acquisition, processing and transmission of signals, improving the quality and reliability of the signal.

[0086] Methane second harmonic signal processing: Data processing is performed on the collected original methane second harmonic signal. The improved wavelet threshold denoising method is used to denoise the original methane second harmonic signal to obtain high-quality purified methane second harmonic signal data, laying the foundation for subsequent methane concentration inversion.

[0087] (1) The extracted noisy methane second harmonic signal s(t) is subjected to discrete wavelet transform (DWT), and the discrete signal is , The original signal n Sample values. Select the appropriate wavelet basis function (sym10) and the decomposition level 6 to decompose the signal into detail coefficients and approximate coefficients of different scales. This process is achieved through recursive filtering and downsampling. The specific process is as follows Figure 3 As shown:

[0088] For the discrete methane second harmonic signal Its discrete wavelet transform can be expressed as:

[0089] Approximate coefficients (low frequency components):

[0090] (1);

[0091] in is a scaling function (or low-pass filter) that represents the j Low pass filter for the layer. Indicates j Layer k approximate coefficients, which represent the low-frequency components of the signal. N is the length of the signal.

[0092] Approximate coefficients (high frequency components):

[0093] (2);

[0094] in It isj The wavelet basis function (or high-frequency filter) of the layer is used to extract the high-frequency components of the signal. Indicates j Layer k These coefficients represent the high-frequency components of the signal.

[0095] Decomposing the discrete methane second harmonic signal The first-level approximation coefficient and detail factor :

[0096] (11);

[0097] (12);

[0098] The signal With low pass filter g and high pass filter h Convolution is performed, and then the result is downsampled (i.e., a value is taken for every other point). 2k-n Describe the downsampling operation, and Represents the low-pass filter and high-pass filter coefficients, the filter function after scaling and translation. Approximate coefficients for the first layer By performing the same decomposition, we get the approximate coefficients of the second layer. and detail factor :

[0099] (5);

[0100] (6);

[0101] This process is repeated until the predetermined decomposition level 6 is reached.

[0102] (7);

[0103] (8);

[0104] After the above discrete wavelet transform, we get detail coefficients and approximate coefficients at different levels, in order to achieve the purpose of denoising the second harmonic signal of methane. The approximate coefficients represent the characteristics of the signal in the low-frequency part, and these coefficients mainly retain most of the energy and main information of the signal. The detail coefficients represent the characteristics of the signal in the high-frequency part, and these coefficients mainly contain noise and some rapidly changing information. In the process of wavelet denoising, we mainly focus on the detail coefficients. Processing is performed because noise is usually concentrated in high-frequency components, while the main information of the signal is in low-frequency components.

[0105] (2) This design selects the VisuShrink threshold. As shown in formula (9):

[0106] (9);

[0107] Wherein the It is expressed as:

[0108] (10);

[0109] Where medium represents the median value of the absolute value of the detail wavelet coefficients of a certain layer, and N is the length of the signal. Threshold processing is performed, and the threshold function is shown in Formula 11. The present invention adopts a threshold function between soft and hard threshold functions, which is different from the soft and hard threshold functions. Figure 4 shown.

[0110] (11);

[0111] The improved threshold function complies with the design rules of the threshold function, eliminating the discontinuity of the threshold function and making the function quickly approach the hard threshold function. All are set to zero within the range, the same as soft and hard thresholds. Approaching Threshold hour, Approximately equal to the soft threshold function, thus eliminating the hard threshold function in The new threshold function takes the straight line y=x as the asymptote. hour, Gradually approaching , thus eliminating the defect of constant deviation of soft threshold function. Among them: is the high-frequency coefficient of the jth layer before denoising; is the high-frequency coefficient of the jth layer after denoising; is the threshold value; is a symbolic function, and the symbolic function expression is as follows

[0112] (12).

[0113] (3) After denoising each layer, the decomposed coefficients are reconstructed using inverse discrete wavelet transform to obtain the denoised signal.

[0114] First, for each layer, the thresholded detail coefficients are used and approximate coefficients , followed by upsampling and filtering.

[0115] Approximately reconstructed signal :

[0116] (13);

[0117] Detail reconstruction signal :

[0118] (14);

[0119] Merge the approximate and detailed reconstructed signals to obtain a higher-level signal:

[0120] (15);

[0121] Until the denoised methane second harmonic signal is recursively reconstructed .

[0122] The results show that the method proposed in the present invention has a significant effect on denoising the methane second harmonic signal. Figure 5 The denoising effect of the second harmonic signal of methane with a concentration of 100 ppm.

[0123] Figure 5 (a) is the extracted original noisy methane second harmonic signal. Figure 5 (b) is the result after being processed by the denoising method proposed in the present invention.

[0124] The denoising method proposed in the present invention achieves the expected denoising effect. In order to further verify the superiority and adaptability of the proposed method, we apply the method to MATLAB simulation experiments to test its performance under different environments. Wavelet denoising adopts the sym10 wavelet basis, and the number of decomposition layers is 6. The simulation is based on the HITRAN database, and the absorption peak position of 1653.72nm is selected to simulate the normalized absorption Lorentz linear function under standard atmospheric pressure and temperature. First, a 5kHz high-frequency modulated sine wave is superimposed on a 10Hz low-frequency scanning sawtooth wave as an ideal signal. The period of the sine wave is 400 times the sampling period, and the methane second harmonic signal is demodulated.

[0125] First, the superiority of the denoising method of the present invention is proved. Gaussian white noise is added to the demodulated methane second harmonic. The signal-to-noise ratio of the signal after adding noise is 20dB. The processing results are as follows:

[0126] Figure 6 (a) shows the comparison between the simulated pure signal and the signal after adding Gaussian white noise; Figure 6 Middle (b) is the comparison of the results after adding Gaussian white noise signal and denoising it with hard threshold function; Figure 6 (c) shows the comparison of the results after adding Gaussian white noise signal and denoising it with soft threshold function; Figure 6 (d) shows the comparison of the results after adding Gaussian white noise signal and denoising with the new threshold function. The signal-to-noise ratio (SNR), normalized correlation coefficient (NCC), and mean square error (MSE) after processing are shown in Table 1.

[0127] Table 1 Comparison of denoising effects of second harmonic signals using wavelet transform (using different threshold functions)

[0128]

[0129] According to the above Figure 6 It can be seen from Table 1 that the denoising effect of the filtering method proposed in the present invention is significantly better than that of the hard threshold denoising method. After denoising, the oscillation of the filtering method proposed in the present invention is reduced, the error caused by large-amplitude oscillation is avoided, and the denoising effect is better. Compared with the soft threshold denoising method, the filtering method proposed in the present invention can be more adaptable to the characteristic changes of the signal. For example, in peak processing, the denoising of the soft threshold denoising method damages the useful signal. After processing based on the denoising method proposed in the present invention, the signal-to-noise ratio is higher than that of the hard threshold denoising method and the soft threshold denoising method. This proves that the method for denoising the methane second harmonic signal proposed in the present invention is superior to the traditional soft threshold denoising method and the hard threshold denoising method, and has higher application value.

[0130] Secondly, the adaptability of the denoising method of the present invention is proved by generating multiple groups of simulation signals with different noise intensities. The signal-to-noise ratios of the methane second harmonic signal containing noise are 5dB, 10dB, 15dB, and 20dB respectively, and the concentration is 20ppm. The processing results are as follows:

[0131] Figure 7 (a) shows the comparison of the methane second harmonic signal before and after denoising with a signal-to-noise ratio of 5dB; Figure 7 (b) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 10dB before and after denoising; Figure 7 (c) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 15dB before and after denoising; Figure 7 (d) shows the comparison of the methane second harmonic signal with a signal-to-noise ratio of 20 dB before and after denoising. Table 2 shows the signal processing of different noise intensities using the denoising method proposed in the present invention.

[0132] Table 2 Signal processing of different noise intensities using the denoising method proposed in this invention

[0133]

[0134] Through the verification of the above two aspects, the results can not only prove the significant superiority of this method in denoising effect, but also demonstrate its wide applicability in different noise environments, providing a solid theoretical basis for further promotion and application.

[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (Rambus DRAM, referred to as RDRAM), and interface dynamic random access memory (DRDRAM).

[0136] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0137] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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 specification.

Claims

1. A method for improving the accuracy of TDLAS seawater methane detection, characterized in that: The following steps are involved: S1. Collect the noisy methane second harmonic signal; S2. The extracted noisy methane second harmonic signal s(t) is subjected to discrete wavelet transform DWT, and the discrete signal is s[n]; S3. Decompose the discrete methane second harmonic signal s[n] and obtain detail coefficients and approximate coefficients at different levels; S4. Use the improved wavelet threshold denoising method to denoise the original methane second harmonic signal; S41. Select the VisuShrink threshold, the threshold λ is as shown in formula (9): The σ in formula (9) is expressed as: Where medium represents the median value of the absolute value of the detail wavelet coefficients of a certain layer of decomposition, and N is the length of the signal; S42. Detail coefficient d j [k] performs threshold processing, d j [k] represents the kth detail coefficient of the jth layer; is the high frequency coefficient of the jth layer after denoising, is the new threshold function; λ is the threshold; sgn(d j [k]) is the sign function; S5. Use inverse discrete wavelet transform to reconstruct the decomposed coefficients to obtain the denoised signal.

2. A method for improving the detection accuracy of seawater methane by TDLAS according to claim 1, characterized in that: In step S1, S11. Generate a noisy methane second harmonic signal using a data processing module, a laser module, and a photodetector; S12. Set the sampling frequency and sampling duration, and use the data acquisition module ADC to collect the methane second harmonic signal in real time.

3. A method for improving the detection accuracy of seawater methane by TDLAS according to claim 1, characterized in that: In step S2, S21. Select appropriate wavelet basis functions and decomposition levels to decompose the signal into detail coefficients and approximate coefficients of different scales. S22. For the discrete methane second harmonic signal s[n], its discrete wavelet transform can be expressed as: The low frequency components are: where Φ j,k (n) is a scaling function, which represents the low-pass filter of the jth layer and is used to extract the low-frequency components of the signal; a j [k] represents the kth approximation coefficient of the jth layer, and N represents the length of the signal; High frequency components: where ψ j,k (n) is the wavelet basis function of the jth layer, which is used to extract the high-frequency components of the signal; d j [k] represents the kth detail coefficient of the jth layer.

4. A method for improving the detection accuracy of seawater methane by TDLAS according to claim 1, characterized in that: In step S3, the discrete methane second harmonic signal s[n] is decomposed into the first layer approximation coefficient a1[k] and detail coefficient d1[k]: a1[k]=∑ n s[n]·g[2k-n] (3) d1[k]=∑ n s[n]·h[2k-n] (4) The signal s(n) is convolved with the low-pass filter g and the high-pass filter h respectively, and then the result is downsampled; where 2k-n represents the downsampling operation, g[2k-n] and h[2k-n] represent the coefficients of the low-pass filter and the high-pass filter. After scaling and translating the filter function, the approximate coefficient a1 of the first layer is decomposed in the same way to obtain the approximate coefficient a2 and detail coefficient d2 of the second layer: <h2 style=";text-align:left;direction:ltr">a2[k]=∑<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> a1[n]·g[2k-n] (5) <h2 style=";text-align:left;direction:ltr">d2[k]=∑<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> a1[n]·h[2k-n] (6) This process is repeated until the predetermined decomposition level of 6 is reached; a6[k]=∑ n a5n]·g[2k-n] (7) <h2 style=";text-align:left;direction:ltr">d6[k]=∑<h2 style=";text-align:left;direction:ltr"> n <h2 style=";text-align:left;direction:ltr"> a5[n]·h[2k-n] (8) After the above discrete wavelet transform, detail coefficients and approximation coefficients at different levels are obtained.

5. A method for improving the detection accuracy of seawater methane by TDLAS according to claim 4, characterized in that: The new threshold function takes the straight line y=x as the asymptote. j When [k]→∞, Gradually approaching x; When the new threshold function is |d j [k]|<λ are all set to zero; when |d j When [k]| is close to the threshold λ, Approximately equal to sgn(d j [k])*(|d j [k]|-λ) function.

6. A method for improving the detection accuracy of seawater methane by TDLAS according to claim 1, characterized in that: In step S5, S51. Use thresholded detail coefficients for each layer and approximation coefficient a j , followed by upsampling and filtering; Approximately reconstruct the signal Detail reconstruction signal S52. Combine the approximate and detailed reconstruction signals to obtain a higher-level signal: Until the denoised methane second harmonic signal is recursively reconstructed 7. A system for improving the accuracy of TDLAS seawater methane detection according to any one of claims 1 to 6, characterized in that: It includes data processing module, DAC module, laser module, photoelectric detector, data acquisition module ADC, and waveform synthesis module; Waveform synthesis module: superimpose a 20kHz sine wave and a 10Hz sawtooth wave; DAC module: converts analog signals into voltage signals, which are used as modulation signal inputs for the laser module; Laser module: emits a laser with a wavelength of 1653.72nm to illuminate the optical gas chamber, and the other end of the optical gas chamber is connected to the gas-liquid separation device; seawater enters the gas-liquid separation device under the action of pressure, and the gas enters the gas chamber module; at a wavelength of 1653.72nm, other gases do not interfere with the absorption of methane; The photodetector receives the light signal after methane absorption, converts the light signal into a current signal, and then converts the current signal into a voltage signal through the I / V conversion module; The data acquisition module ADC acquires the signal and stores the data in an array for data processing by the data processing module. After the digital phase-locked amplification processing of the data processing module, a methane second harmonic signal containing noise is generated.

8. A system for improving the accuracy of TDLAS seawater methane detection according to claim 7, characterized in that: The steps for the data acquisition module ADC to collect signals are as follows: After starting ADC sampling, the system enters a waiting state, waiting for ADC sampling to complete and trigger an interrupt; when an ADC interrupt occurs, the interrupt service program is executed, the digital value converted by the ADC is read and stored in the buffer; when the buffer is full; the wavelet threshold denoising algorithm is executed, the signal is decomposed by discrete wavelet transform, the approximate coefficient and detail coefficient are calculated, and the detail coefficient is thresholded to remove noise; Subsequently, the denoised signal is reconstructed by inverse wavelet transform, and the processed signal is sent to an external device through a serial port or stored.

9. A system for improving the accuracy of TDLAS seawater methane detection according to claim 7, characterized in that: The sampling frequency of the data acquisition module ADC is 100-300kHz, and the sampling time is 300-500ms.