A laser sensor data processing method based on gas concentration detection

By analyzing the peak point abnormality and decomposition influence in the sawtooth wave current data, the smoothing window is adaptively determined, which solves the problem of low signal accuracy caused by inappropriate smoothing window settings in the existing technology, and achieves more accurate gas concentration detection. .

CN118258787BActive Publication Date: 2024-08-23SUZHOU ANYIDE SAFETY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410352663.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-08-23
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

In the prior art, due to inappropriate window settings during the smoothing process, the noise cannot be reasonably smoothed, which in turn makes the accuracy of the decomposed signal low, resulting in large errors in gas concentration identification.

Method used

By analyzing the abnormality and decomposition influence of each peak point in the sawtooth wave current data, combined with the distribution and fluctuation of peak points in different absorption periods, the smoothing window is adaptively determined, and local mean processing and LMD decomposition are performed to improve signal accuracy.

Benefits of technology

The accuracy of noise identification is improved, noise misjudgments are reduced, smoothing accuracy is enhanced, and more accurate gas concentration detection results are obtained.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118258787B
    Figure CN118258787B
Patent Text Reader

Abstract

The present invention relates to the field of laser gas detection technology, and in particular to a laser sensor data processing method based on gas concentration detection. The method obtains absorption cycles and peak points according to data changes in sawtooth current data; obtains the abnormality of each peak point through changes in the neighborhood data corresponding to each peak point in each absorption cycle; obtains the decomposition influence of each peak point through differences in distribution, fluctuation and abnormality of peak points at the same position between different absorption cycles; comprehensively determines the smoothing window based on the decomposition influence and abnormality of the neighborhood peak points of each peak point, as well as the distribution; smoothes the sawtooth current data according to the smoothing window, and decomposes it for gas detection. The present invention adjusts the smoothing window by comprehensively analyzing the difference between the noise corresponding peak and the normal absorption peak, improves the smoothing accuracy and makes the subsequent decomposition signal more accurate, thereby being able to analyze and obtain more accurate gas concentration detection results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of laser gas detection, and in particular to a laser sensor data processing method based on gas concentration detection. Background Art

[0002] The principle of laser detection of gas concentration is to use lasers of specific wavelengths to interact with gas molecules, and to infer the concentration of the gas by measuring signals such as laser absorption, scattering or fluorescence. In particular, the use of tunable semiconductor laser absorption spectroscopy has become a widely used gas detection method. This method relies on the interaction between lasers and gas molecules, and measures the degree of laser absorption by the gas to infer the concentration of the gas. In order to improve the sensitivity of gas detection, new laser materials are used to generate lasers of specific wavelengths, and the absorption effect between these lasers and specific gas molecules is stronger. However, due to the high sensitivity, the variety of gases and the harsh detection environment, such as underground coal mines and chemical sites, more signal noise will be generated during the detection process due to human negligence, improper operation, equipment aging and harsh environment, which will bring great challenges to accurate gas detection.

[0003] In the existing gas concentration detection method, the gas type identification and concentration detection are performed based on tunable semiconductor laser absorption spectroscopy technology. The LMD decomposition algorithm is usually used to decompose and analyze the sawtooth current data obtained by scanning. In the process of laser passing through the gas chamber using sawtooth current scanning, due to the different response degrees of different gases to the laser of the same wavelength, multiple peaks corresponding to the absorption peaks are generated in the sawtooth current data, but the noise also exists in the form of peaks. Therefore, when the LMD algorithm is used for decomposition, the data will be smoothed first to obtain the mean curve for subsequent decomposition, that is, the local mean processing method is usually used to smooth the original data first, and due to the inappropriate setting of the window during the smoothing process, the noise cannot be reasonably smoothed, and the accuracy of the decomposed signal is low. For example, the noise is mistakenly marked as a feature point for decomposition to form a pseudo component, which makes the subsequent interpretation of the signal characteristics difficult. At the same time, if there is a lot of noise in any window, the local area of ​​the PF signal decomposed by the LMD algorithm will be overly prominent, thereby losing the effective information in the signal, and ultimately causing a large error in gas concentration identification. Summary of the invention

[0004] In order to solve the technical problem in the prior art that the noise cannot be reasonably smoothed due to inappropriate window setting during the smoothing process, which leads to low accuracy of the decomposed signal and ultimately leads to large errors in gas concentration identification, the purpose of the present invention is to provide a laser sensor data processing method based on gas concentration detection, and the technical solution adopted is as follows:

[0005] The present invention provides a laser sensor data processing method based on gas concentration detection, the method comprising:

[0006] After performing sawtooth wave current scanning on the laser beam, the sawtooth wave current data after gas absorption is obtained; according to the data value change of the data in the sawtooth wave current data in the time sequence, the absorption cycle and the peak point in each absorption cycle are obtained;

[0007] According to the change trend and change amplitude of the neighborhood data of each peak point in each absorption cycle, the abnormality of each peak point is obtained; combined with the distribution position of each peak point in the absorption cycle, according to the distribution of peak points at the same corresponding distribution position in different absorption cycles and the fluctuation of the peak point data value, as well as the deviation degree of the corresponding abnormality of the peak point, the decomposed influence of each peak point is obtained;

[0008] According to the decomposition influence and abnormality of each peak point and the corresponding neighboring peak point in the sawtooth current data, as well as the distribution of the neighboring peak points of each peak point, the smoothing window of the sawtooth current data is determined; the sawtooth current data is smoothed through the smoothing window and decomposed for gas detection.

[0009] Further, obtaining the absorption cycle and the peak point in each absorption cycle according to the data value change in the time sequence of the sawtooth current data includes:

[0010] In the sawtooth current data, the moment when the maximum and minimum values ​​coexist is regarded as the change moment; the data between any two adjacent change moments is regarded as an absorption cycle; the time period corresponding to each absorption cycle is mapped to the same time range, and the start time of each absorption cycle is recorded as zero;

[0011] For any absorption cycle, the point corresponding to the minimum value at the start time of the absorption cycle is taken as the starting point, and the point corresponding to the maximum value at the end time of the absorption cycle is taken as the end point; the line connecting the starting point and the end point is taken as the baseline of the absorption cycle; the extreme value points in the absorption cycle are obtained; the extreme value points not on the baseline are taken as the peak points of the absorption cycle.

[0012] Furthermore, the method for obtaining the abnormality degree includes:

[0013] Each peak point in each absorption cycle is taken as the target point in turn, and the data points that are continuously distributed on both sides of the target point and are not on the baseline are taken as the change points of the target point;

[0014] Obtain the slope of each change point; use the difference in slope between each change point and the next change point as a change indicator for each change point;

[0015] The data value of each data point on the baseline at the corresponding moment is used as the baseline value of each data point; the difference between the data value of each change point and the baseline value is used as the change fluctuation value of the change point;

[0016] According to the distribution number of the target point corresponding to the change point and the data deviation degree of the target point, the fluctuation weight of the target point is obtained; the product of the change fluctuation value of each change point and the fluctuation weight of the corresponding target point is used as the fluctuation index of each change point;

[0017] The Euclidean norm of the change index and the fluctuation index of each change point is calculated to obtain the abnormal index of each change point; the cumulative value of the abnormal index of the target point corresponding to all change points is calculated to obtain the abnormal degree of the target point.

[0018] Furthermore, the method for obtaining the fluctuation weight includes:

[0019] The total number of target point change points is counted as the change value; the difference between the target point data value and the reference value is taken as the change amplitude of the target point;

[0020] The ratio of the change amplitude of the target point to the change value is normalized to obtain the fluctuation weight of the target point.

[0021] Furthermore, the method for obtaining the decomposed influence degree includes:

[0022] Arrange the data points of each absorption cycle in time sequence to obtain a data point sequence; take each peak point in each absorption cycle as a reference point in turn, and obtain the serial number of the reference point in the data point sequence of the absorption cycle as a reference serial number;

[0023] Among the data points corresponding to the reference serial numbers of all absorption cycles, the probability of the data points being peak points is calculated and negative correlation mapping is performed to obtain the distribution influence index of the reference points; among the data points corresponding to the reference serial numbers of all absorption cycles, the data value variance of the data points that are peak points is calculated to obtain the numerical influence index of the reference points;

[0024] The data points corresponding to the reference number in all other absorption cycles except the absorption cycle where the reference point is located are used as other periodic points of the reference point; the abnormal impact index of the reference point is obtained through the deviation of the abnormality between the reference point and other periodic points;

[0025] According to the distribution influence index, numerical influence index and abnormal influence index of the reference point, the decomposed influence degree of the reference point is obtained; the distribution influence index, numerical influence index and abnormal influence index are all positively correlated with the decomposed influence degree.

[0026] Furthermore, the method for obtaining the abnormal impact indicator includes:

[0027] When other periodic points are not peak points, the anomaly of other periodic points is recorded as zero; the difference in anomaly between the reference point and each other periodic point is calculated to obtain the anomaly difference of the reference point; the accumulated value of all anomaly differences of the reference point is normalized to obtain the anomaly deviation weight of the reference point;

[0028] The product of the abnormality degree of the reference point and the abnormal deviation weight is used as the abnormal impact indicator of the reference point.

[0029] Furthermore, the method for obtaining the smoothing window includes:

[0030] Select at least two preset initial windows, and use each preset initial window as a window to be analyzed in turn;

[0031] For any peak point, the total number of peak points in the window to be analyzed corresponding to the peak point is counted as the number of neighboring peak points in the window to be analyzed for the peak point; the ratio of the number of neighboring peak points of the peak point to the side length of the corresponding window to be analyzed is calculated to obtain the peak point distribution index of the peak point in the corresponding window to be analyzed;

[0032] In the window to be analyzed corresponding to the peak point, the product of the abnormality and the decomposition influence of each peak point is calculated to obtain the influence of each peak point in the window to be analyzed corresponding to the peak point; the influence of all peak points in the analysis window corresponding to the peak point is cumulatively multiplied to obtain the peak point influence index in the window to be analyzed corresponding to the peak point;

[0033] The product of the peak point distribution index and the peak point influence index of the peak point in the corresponding window to be analyzed is used as the evaluation index of the window to be analyzed corresponding to the peak point;

[0034] The accumulated value of the evaluation index of the window to be analyzed corresponding to all peak points in the sawtooth current data is used as the evaluation degree of the window to be analyzed; among the evaluation degrees of all preset initial windows, the preset initial window corresponding to the minimum evaluation degree is used as the smoothing window of the sawtooth current data.

[0035] Furthermore, the sawtooth wave current data is smoothed by a smoothing window and decomposed for gas detection, including:

[0036] The sawtooth current data is processed by the local mean function through a smoothing window to obtain the mean curve for LMD decomposition. The component signals obtained by LMD decomposition are further processed based on tunable semiconductor laser absorption spectroscopy technology to obtain the gas type and corresponding concentration.

[0037] Furthermore, the method for selecting the preset initial window includes:

[0038] The side length of each preset initial window is selected within a preset size range, and the side lengths are all integers.

[0039] Furthermore, the minimum value of the preset size range is 3 and the maximum value is 20.

[0040] The present invention has the following beneficial effects:

[0041] The present invention takes into account the characteristic of the normal absorption peak being gentle in fluctuation, and analyzes the fluctuation of the change of the neighborhood data corresponding to each peak point in each absorption cycle in the sawtooth current data, obtains the abnormality of each peak point, and improves the recognition accuracy of abnormal noise. And further combined with the periodic characteristics of the normal absorption peak, through the distribution and fluctuation of the peak points between different absorption cycles, and the difference in the abnormality, the decomposition influence of each peak point is obtained, reflecting the degree of influence of each peak point on the subsequent decomposition, and less noise misjudgment. At the same time, considering the inaccurate smoothing result caused by the window size setting during the smoothing process, which will cause the decomposition signal to be distorted, the local peak distribution characteristics of each peak point, that is, the decomposition influence and abnormality of the neighborhood peak point, and the distribution are comprehensively determined to determine the smoothing window, and finally the sawtooth current data is more appropriately smoothed and decomposed according to the smoothing window for gas detection. The present invention adjusts the smoothing window by comprehensively analyzing the difference between the noise corresponding peak and the normal absorption peak, improves the smoothing accuracy and makes the subsequent decomposition signal more accurate, and then can analyze and obtain more accurate gas concentration detection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A flow chart of a laser sensor data processing method based on gas concentration detection provided by an embodiment of the present invention;

[0044] Figure 2 A waveform diagram of a sawtooth current provided by an embodiment of the present invention;

[0045] Figure 3 A waveform diagram of a sawtooth current after gas absorption provided by an embodiment of the present invention;

[0046] Figure 4 A schematic diagram of data distribution in an absorption cycle provided by an embodiment of the present invention;

[0047] Figure 5 A schematic diagram of a peak point in an absorption cycle provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the laser sensor data processing method based on gas concentration detection proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0049] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0050] The following is a detailed description of a specific scheme of a laser sensor data processing method based on gas concentration detection provided by the present invention in conjunction with the accompanying drawings.

[0051] See also Figure 1 , which shows a flow chart of a laser sensor data processing method based on gas concentration detection provided by an embodiment of the present invention, the method comprising the following steps:

[0052] S1: After performing sawtooth current scanning on the laser beam, the sawtooth current data after gas absorption is obtained; according to the data value change in the time sequence of the sawtooth current data, the absorption cycle and the peak point in each absorption cycle are obtained.

[0053] In the embodiment of the present invention, based on the tunable semiconductor laser absorption spectroscopy technology, a light power wave is outputted through a laser emitter of a new laser material, so that it passes through the gas chamber to the reflector, and the reflector returns the light power wave through the gas chamber again. When passing through the gas chamber twice, a sawtooth current is used to scan the absorbing gas, and an absorption peak is generated in the sawtooth current according to the concentration value of the absorbed gas, causing the current to change. Therefore, after the laser beam is scanned with a sawtooth current, the sawtooth current is received and identified by the control unit to obtain the sawtooth current data after the gas is absorbed. It should be noted that the tunable semiconductor laser absorption spectroscopy technology is a technical means well known to those skilled in the art, and the specific method of using a sawtooth current to modulate the absorption method is a well-known technical means and will not be further elaborated here. Please refer to Figure 2 , which shows a waveform diagram of a sawtooth current provided by an embodiment of the present invention, that is, a waveform diagram of the sawtooth current used in scanning in an embodiment of the present invention. Figure 3 , which shows a waveform schematic diagram of a sawtooth current after gas absorption provided by an embodiment of the present invention, in which multiple absorption peaks appear in the original sawtooth current.

[0054] Normal sawtooth current is affected by the gas in the gas chamber that responds to the current wavelength, and will appear as several periodically distributed absorption peaks in the data curve, while noise will usually appear as extreme point characteristics, and also exist in the form of peaks in the sawtooth current data. Therefore, it is necessary to analyze according to the degree of noise to reduce its impact on the decomposition process. Since the sawtooth current data is the time series data collected after the sawtooth current absorbs the gas, the sawtooth current data itself also has a sawtooth characteristic, and the sawtooth current data is divided according to the characteristics of the sawtooth periodic change, that is, according to the change of the data value in the time series of the sawtooth current data, the absorption cycle and the peak point in each absorption cycle are obtained, and each peak point that may be noise is analyzed through periodic changes.

[0055] Preferably, in the sawtooth wave current data, the moment when the maximum and minimum values ​​coexist is regarded as the change moment, and the data corresponding to the time period between any two adjacent change moments is regarded as an absorption cycle. The change moment is the moment when the sawtooth wave data changes from the maximum value to the minimum value, see Figure 4 , which shows a schematic diagram of data distribution of an absorption cycle provided by an embodiment of the present invention, which reflects that when dividing the data curve distribution of a single absorption cycle, the sawtooth distribution of the original sawtooth wave current is combined. Since the absorption peak in the absorption cycle changes with the sawtooth wave cycle, but the appearance of noise is relatively random, in order to facilitate the subsequent analysis between different absorption cycles, in one embodiment of the present invention, the time period corresponding to each absorption cycle is mapped to the same time range, and the starting time of each absorption cycle is recorded as zero. For example, when the total length of the time period corresponding to each absorption cycle is 10 seconds, the starting time of each absorption cycle is 0 seconds and the ending time is 10 seconds.

[0056] Furthermore, no matter it is a peak corresponding to noise or a normal absorption peak, each peak will correspond to an extreme point in the sawtooth current data. Therefore, according to the change of data value, the extreme point characterizing the peak can be screened out as the peak point for subsequent analysis. In one embodiment of the present invention, for any absorption cycle, the same analysis is performed on all absorption cycles, and the point corresponding to the minimum value at the start time of the absorption cycle is taken as the starting point, and the point corresponding to the maximum value at the end time of the absorption cycle is taken as the end point. The line connecting the starting point and the end point is taken as the baseline of the absorption cycle. This baseline reflects the data distribution when no gas is absorbed. Obtain the extreme points in the absorption cycle, and take the extreme points that are not on the baseline as the peak points of the absorption cycle. Please refer to Figure 5 , which shows a peak point schematic diagram in an absorption cycle provided by an embodiment of the present invention, Figure 5 It shows the characteristics of the local peak. The dotted line part represents the baseline part. When there is a peak, the extreme point that deviates from the baseline is the peak point. Figure 5 The point corresponding to A is the peak point, and the extreme point where the deviation begins is not analyzed on the baseline. It should be noted that the acquisition of extreme points is a technical means well known to those skilled in the art, such as taking the point where the first-order derivative is zero as the extreme point, etc., which will not be elaborated here.

[0057] At this point, the preliminary periodic analysis of the sawtooth current data is completed, a plurality of periodically changing absorption periods are divided, and the peak point in each absorption period is obtained for subsequent analysis.

[0058] S2: Obtain the abnormality of each peak point according to the change trend and change amplitude of the neighborhood data of each peak point in each absorption cycle; Combined with the distribution position of each peak point in the absorption cycle, obtain the decomposed influence of each peak point according to the distribution of peak points at the same corresponding distribution position in different absorption cycles and the fluctuation of peak point data values, as well as the degree of deviation of the corresponding abnormality of the peak point.

[0059] First, compared with the peak corresponding to the noise, the normal absorption peak changes more slowly and smoothly. Therefore, based on the fluctuation change of the peak corresponding to each peak point, the abnormal possibility of each peak is obtained. That is, the abnormality of each peak point is obtained according to the change trend and change amplitude of the neighborhood data of each peak point in each absorption cycle.

[0060] Preferably, each peak point in each absorption cycle is taken as the target point in turn, and the data points that are continuously distributed on both sides of the target point and are not on the baseline are taken as the change points of the target point. The change points are also the data points of the target point in the neighborhood, and also represent the data points within the corresponding peak range of the target point. For example, in an absorption cycle where the baseline is monotonically increasing, the change points on the left side of the peak point are data points that are continuously monotonically decreasing and not on the baseline, and the change points on the right side of the peak point are data points that are continuously monotonically increasing and not on the baseline, that is, the data points that are continuously distributed on both sides of the peak point are taken as the change points of the peak point in turn, until the continuously distributed data points are points on the baseline.

[0061] Furthermore, when the peak point corresponds to a more abnormal peak, its change is faster, so the slope of each change point is obtained, and the difference in slope between each change point and the next change point is used as the change index of each change point, and the change in slope reflects the degree of smooth change of the peak. It should be noted that the calculation of the slope is a calculation method well known to those skilled in the art and will not be described in detail here.

[0062] The data value of each data point on the baseline at the corresponding moment is taken as the baseline value of each data point. The baseline value represents the size of the data value when the data point does not deviate. The baseline value is the theoretical value of each data point. Since the change points are all points that deviate from the baseline, each change point corresponds to a different data value on the baseline. The difference between the data value of each change point and the baseline value is taken as the change fluctuation value of the change point. The greater the deviation of the data value of the change point, the greater the change fluctuation value.

[0063] Furthermore, the fluctuation weight of the target point is obtained according to the distribution number of the change points corresponding to the target point and the data deviation degree of the target point. In one embodiment of the present invention, the total number of change points of the target point is counted as the change value, the difference between the data value of the target point and the reference value is taken as the change amplitude of the target point, and the ratio of the change amplitude of the target point to the change value is normalized to obtain the fluctuation weight of the target point. Since the more abnormal the peak performance is, the shorter the time required for the data change when the data value increases greatly, the rapid change degree of the peak can be analyzed according to the data deviation degree of the target point and the range of change points corresponding to the entire peak.

[0064] Therefore, the volatility weight can reflect the abnormal degree of the overall volatility, and then weight the volatility of each change point, that is, the product of the change volatility value of each change point and the volatility weight of the corresponding target point is used as the volatility index of each change point. The volatility index reflects the abnormal possibility of each change point in fluctuation.

[0065] Finally, the Euclidean norm of the change index and the fluctuation index of each change point is calculated to obtain the abnormal index of each change point, and the abnormal situation of each change point is obtained by combining the change rate and the fluctuation degree. The cumulative value of the abnormal index of the target point corresponding to all the change points is calculated to obtain the abnormal degree of the target point. In the embodiment of the present invention, the specific expression of the abnormal degree is:

[0066]

[0067] In the formula, E r Expressed as the abnormality of the rth peak point, N r Expressed as the change value of the rth peak point, V r Represented as the data value of the rth peak point, V 0,r Expressed as the reference value of the rth peak point, V i It is represented as the data value of the i-th change point corresponding to the r-th peak point, V 0,i It is expressed as the reference value of the i-th change point corresponding to the r-th peak point, k i It is expressed as the slope of the i-th change point corresponding to the r-th peak point, k i+1It is expressed as the slope of the i+1th change point corresponding to the rth peak point, || is expressed as the absolute value extraction function, norm() is expressed as the normalization function. It should be noted that normalization is a technical means well known to those skilled in the art. The normalization function can be linear normalization or standard normalization, etc. The specific normalization method is not limited here.

[0068] in, It is expressed as the fluctuation weight of the rth peak point. When the fluctuation weight is larger, it means that the corresponding peak point changes more and more rapidly, and the peak fluctuation is more likely to be abnormal. i -V 0,i | is represented by the change fluctuation value of the i-th change point corresponding to the r-th peak point, It is expressed as the fluctuation index of the ith change point corresponding to the rth peak point. The greater the fluctuation degree and the greater the possibility of abnormal fluctuation of the peak, the greater the abnormal degree reflected by the change point. i -k i+1 | represents the change index of the i-th change point corresponding to the r-th peak point. In the embodiment of the present invention, if there is no i+1-th change point, it means that the change point is the last change point, and the change index is not calculated.

[0069] It is expressed as the abnormal index of the ith change point corresponding to the rth peak point. It should be noted that the data involved in the calculation in the embodiment of the present invention have been dimensioned. The calculation of dimension removal and Euclidean norm are well-known calculation methods well known to those skilled in the art, and the specific calculation will not be described in detail here.

[0070] At this point, by calculating the degree of abnormality of the peak point with respect to the data points in the peak area and the theoretical value, as well as the slope difference of adjacent data points, the fluctuation severity of the peak corresponding to each peak point is obtained, and the abnormality is judged from the fluctuation of the peak itself.

[0071] The degree of abnormality can only show the local abnormal performance of each peak point. Adapting the size of the window only through the local degree of abnormality will lead to over-smoothing of normal signal data changes, causing distortion of the final monitored gas concentration data. Therefore, taking into account the fact that the real normal absorption peak also shows periodic changes in each absorption cycle, and the generation of noise is random, the influence of each peak point in the subsequent decomposition is analyzed through the difference in the distribution and abnormality of the peak points between different absorption cycles, that is, combining the distribution position of each peak point in the absorption cycle, according to the peak point distribution at the same corresponding distribution position in different absorption cycles and the fluctuation of the peak point data value, as well as the deviation degree of the corresponding abnormality of the peak point, the decomposition influence of each peak point is obtained.

[0072] Preferably, the data points of each absorption cycle are arranged in a time series order to obtain a data point sequence, and the data point sequence can reflect the distribution of each data point in the absorption cycle. Each peak point in each absorption cycle is sequentially used as a reference point, and the serial number of the reference point in the data point sequence of the absorption cycle is obtained as a reference serial number, and the reference serial number is the distribution position of the reference point in the absorption cycle. In the embodiment of the present invention, since the moments of all absorption cycles have been aligned in step S1, the corresponding moments of the reference points in the absorption cycle can be directly used to characterize the distribution position of the reference points in the absorption cycle, and no limitation is made here.

[0073] Furthermore, among the data points corresponding to the reference numbers of all absorption cycles, the probability of the statistical points being peak points is calculated and negative correlation mapping is performed to obtain the distribution influence index of the reference points. The fewer the peak points at the same position, the less periodic the peak corresponding to the peak point is, and the more likely it is to be a peak corresponding to noise, and the greater the impact on the decomposition process.

[0074] Furthermore, among the data points corresponding to the reference numbers of all absorption cycles, the data value variance of the data points that are peak points is calculated to obtain the numerical influence index of the reference point. When the data value distribution of the peak point at the same position is more chaotic, it means that the peak corresponding to the peak point is less periodic and more likely to be a peak corresponding to noise, and its influence on the decomposition process will be greater.

[0075] The data points corresponding to the reference number in all absorption cycles except the absorption cycle where the reference point is located are taken as other periodic points of the reference point. The abnormal impact index of the reference point is obtained through the deviation of the abnormality between the reference point and other periodic points. The difference in abnormality reflects the fluctuation difference between the peak point and other points at the same position. The greater the difference, the less periodic change the peak corresponding to the peak point is, and the more likely it is to be a peak corresponding to noise, and the greater the impact on the decomposition process.

[0076] In one embodiment of the present invention, when other periodic points are not peak points, it means that other absorption periods at the same position no longer correspond to the absorption period in peak point distribution, and the abnormality of other periodic points is recorded as zero to highlight the differences in fluctuation abnormalities. The difference in abnormality between the reference point and each other periodic point is calculated to obtain the abnormal difference of the reference point. The accumulated value of all abnormal differences of the reference point is normalized to obtain the abnormal deviation weight of the reference point. The greater the deviation between the reference point and other periodic points in abnormal situations, the more likely it is a noise point, and the higher the credibility of its abnormality. The product of the abnormality of the reference point and the abnormal deviation weight is used as the abnormal impact index of the reference point.

[0077] According to the distribution influence index, numerical influence index and abnormal influence index of the reference point, the decomposition influence degree of the reference point is obtained, and the decomposition influence degree also reflects the degree to which the corresponding peak of the reference point is a noise point. The distribution influence index, numerical influence index and abnormal influence index are all positively correlated with the decomposition influence degree. In the embodiment of the present invention, the expression of the decomposition influence degree is:

[0078]

[0079] In the formula, μ r Expressed as the decomposition influence of the rth peak point, P r It is expressed as the probability that the data point corresponding to the reference number of the rth peak point in all absorption cycles is a peak point, S r It is expressed as the numerical influence index of the r-th peak point, E r It is expressed as the abnormality of the rth peak point, M r It is expressed as the total number of other periodic points of the r-th peak point, E z It is expressed as the abnormality of the zth other periodic point corresponding to the rth peak point, || is expressed as the absolute value extraction function, and norm() is expressed as the normalization function.

[0080] in, It is expressed as the distribution impact index of the r-th peak point. Since the r-th peak point is definitely a peak point, the frequency of the peak point will never be negative, that is, the negative correlation mapping is performed in the form of inverse proportion, the denominator will not be zero, and the formula will not be meaningless. |E r -E z | is expressed as the abnormal difference between the rth peak point and the corresponding zth other periodic point, It is expressed as the abnormal deviation weight of the r-th peak point, It is represented as the abnormal influence index of the r-th peak point. The distribution influence index, the numerical influence index and the abnormal influence index are all positively correlated with the decomposition influence degree in the form of product. In other embodiments of the present invention, other basic mathematical operations can also be used to reflect that the distribution influence index, the numerical influence index and the abnormal influence index are all positively correlated with the decomposition influence degree, such as addition or power operation, etc., which are not limited here.

[0081] Since the normal absorption peak is periodically distributed in different absorption cycles, the greater the peak point distribution degree of the normal absorption peak in different absorption cycles, the more similar the peak point values ​​are, and the more consistent the peak point anomaly is. Therefore, when the distribution influence index, the value influence index and the anomaly influence index are larger, it means that the peak point distribution degree at the corresponding position is smaller, the peak point values ​​are more complex, and the peak point anomaly difference is greater. Therefore, the position corresponding to the peak point is more likely to be an abnormal noise point, and the corresponding peak of the peak point has a greater impact on the subsequent decomposition.

[0082] At this point, the abnormality and decomposition influence of each peak point are obtained through the abnormality of the fluctuation of the peak corresponding to each peak point and the periodic distribution of the peak corresponding to the peak point in different absorption periods.

[0083] S3: Determine the smoothing window of the sawtooth current data according to the decomposition influence and abnormality of each peak point and the corresponding neighboring peak point in the sawtooth current data, as well as the distribution of the neighboring peak points of each peak point; smooth the sawtooth current data through the smoothing window, and decompose it for gas detection.

[0084] When using the LMD signal decomposition algorithm to decompose the signal data, it is necessary to obtain the mean curve, that is, the local mean smoothing of the original signal will be performed. This processing involves selecting a smoothing window, sliding the smoothing window in the signal data and calculating the mean of the data curve in the smoothing window. The absorption coefficients of different gases at different wavelengths are different, and their performance after being scanned by the sawtooth current is also different. If the smoothing window of the same size is set, it is not applicable to the corresponding sawtooth current signal under all wavelengths. The signal will be advanced or delayed due to too many smoothing times during the decomposition process, resulting in distortion of the final decomposed data. Therefore, it is necessary to adapt the smoothing window size in the corresponding sawtooth current data at different wavelengths, that is, to select the smoothing window size according to the overall distribution of peak points in the sawtooth current data. Therefore, the smoothing window of the sawtooth current data is determined according to the decomposition influence and abnormality of each peak point and the corresponding neighborhood peak point in the sawtooth current data, as well as the distribution of the neighborhood peak points of each peak point.

[0085] Preferably, at least two preset initial windows are selected, and each preset initial window is sequentially used as a window to be analyzed. In an embodiment of the present invention, the method for selecting the preset initial window is that the side length of the preset initial window is selected within a preset size range, and the side lengths are all integers. The minimum value of the preset size range is set to 3, and the maximum value is set to 20, that is, a maximum of 18 preset initial windows can be selected for analysis and calculation. It should be noted that the size of the preset size range can be adjusted according to the specific implementation situation, and is not limited here. By analyzing multiple preset initial windows of different sizes, the optimal window size is found. For absorption peaks, the larger the window, the greater the probability of multiple absorption peaks appearing therein. At the same time, the greater the characteristic difference between different absorption peaks, the greater the impact on the final authenticity of the LMD decomposition, and the less conducive to the LMD decomposition.

[0086] For any peak point, count the total number of peak points in the window to be analyzed corresponding to the peak point, as the number of neighboring peak points of the window to be analyzed corresponding to the peak point, calculate the ratio of the number of neighboring peak points of the peak point to the side length of the corresponding window to be analyzed, and obtain the peak point distribution index of the peak point in the corresponding window to be analyzed. The distribution degree of peak points in the window to be analyzed reflects the influence of the window to be analyzed on the authenticity of the decomposition.

[0087] In the window to be analyzed corresponding to the peak point, the product of the abnormality and the decomposition influence of each peak point is calculated to obtain the influence of each peak point in the window to be analyzed corresponding to the peak point. The influence of the peak point corresponding to all peak points in the analysis window is multiplied to obtain the peak point influence index in the window to be analyzed corresponding to the peak point. The fluctuation characteristics and distribution abnormal characteristics of each peak point in the window to be analyzed can reflect the characteristic abnormality between the peaks corresponding to the peak points in the window to be analyzed.

[0088] The product of the peak distribution index and the peak influence index of the peak point in the corresponding window to be analyzed is used as the evaluation index of the window to be analyzed corresponding to the peak point. The more peak points are distributed in the window to be analyzed and the greater the characteristic abnormality is, the greater the influence of the window to be analyzed at the peak point during decomposition and the more unfavorable the decomposition is.

[0089] The cumulative value of the evaluation index of the window to be analyzed corresponding to all peak points in the sawtooth current data is used as the evaluation degree of the window to be analyzed, and the influence of all peak points in the window to be analyzed is accumulated. When the evaluation degree is smaller, it means that the peak point noise has less influence on the decomposition under the window size at this time. Therefore, among the evaluation degrees of all preset initial windows, the preset initial window corresponding to the minimum evaluation degree is used as the smoothing window of the sawtooth current data. In the embodiment of the present invention, the expression of the evaluation degree is:

[0090]

[0091] In the formula, Q h It is represented as the evaluation degree of the hth preset initial window, R is represented as the total number of peak points in the sawtooth current data, and D h Represents the side length of the h-th preset initial window, n r,h It is expressed as the number of neighborhood peaks corresponding to the hth preset initial window of the rth peak point, μ t It is expressed as the decomposition influence of the r-th peak point corresponding to the t-th peak point in the h-th preset initial window, E t It is expressed as the abnormality of the t-th peak point in the h-th preset initial window corresponding to the r-th peak point, and ∏ is represented by the cumulative multiplication symbol.

[0092] in, It is expressed as the peak distribution index of the rth peak point corresponding to the hth preset initial window, μ t ×Et It is shown as the influence of the rth peak point corresponding to the tth peak point in the hth preset initial window, It is expressed as the peak point influence index of the rth peak point corresponding to the hth preset initial window, It is expressed as the evaluation index of the hth preset initial window corresponding to the rth peak point. By analyzing the window selection situation at each peak point position, the most suitable smoothing window can be selected from multiple windows of different sizes.

[0093] Furthermore, the smoothing window is the most suitable calculation window for the sawtooth current data, which prevents the mean smoothing process from having a significant impact on the subsequent decomposition. Therefore, the sawtooth current data is smoothed through the smoothing window and decomposed for gas detection. Preferably, the sawtooth current data is processed by the smoothing window using a local mean function to obtain a mean curve for LMD decomposition. LMD decomposition can effectively improve the resolution and sensitivity of the signal, thereby realizing the detection of weak absorption features in the gas. The component signals obtained by LMD decomposition are processed based on tunable semiconductor laser absorption spectroscopy technology to obtain the gas type and corresponding concentration, and obtain more accurate detection results. It should be noted that LMD decomposition and tunable semiconductor laser absorption spectroscopy technology for gas detection are both technical means well known to those skilled in the art, and will not be elaborated here.

[0094] In summary, the present invention takes into account the characteristics of the normal absorption peak in the gentle fluctuation, and analyzes the change fluctuation of the neighborhood data corresponding to each peak point in each absorption cycle in the sawtooth current to obtain the abnormality of each peak point, thereby improving the recognition accuracy of abnormal noise. And further combined with the periodic characteristics of the normal absorption peak, through the distribution and fluctuation of the peak points between different absorption cycles, and the difference in the abnormality, the decomposition influence of each peak point is obtained, reflecting the degree of influence of each peak point on the subsequent decomposition, and less noise misjudgment. At the same time, considering the inaccurate smoothing result caused by the window size setting during the smoothing process, the decomposition signal will be distorted, combined with the local peak distribution characteristics of each peak point, that is, the decomposition influence and abnormality of the neighborhood peak point, and the distribution situation to comprehensively determine the smoothing window, and finally according to the smoothing window, the sawtooth current data is more appropriately smoothed and decomposed for gas detection. The present invention adjusts the smoothing window by comprehensively analyzing the difference between the noise corresponding peak and the normal absorption peak, improves the smoothing accuracy and makes the subsequent decomposition signal more accurate, and then can analyze and obtain more accurate gas concentration detection results.

[0095] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0096] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A laser sensor data processing method based on gas concentration detection, characterized in that: The method comprises: After performing sawtooth wave current scanning on the laser beam, the sawtooth wave current data after gas absorption is obtained; according to the data value change of the data in the sawtooth wave current data in the time sequence, the absorption cycle and the peak point in each absorption cycle are obtained; According to the change trend and change amplitude of the neighborhood data of each peak point in each absorption cycle, the abnormality of each peak point is obtained; combined with the distribution position of each peak point in the absorption cycle, according to the distribution of peak points at the same corresponding distribution position in different absorption cycles and the fluctuation of the peak point data value, as well as the deviation degree of the corresponding abnormality of the peak point, the decomposed influence of each peak point is obtained; According to the decomposition influence and abnormality of each peak point and the corresponding neighboring peak point in the sawtooth current data, as well as the distribution of the neighboring peak points of each peak point, the smoothing window of the sawtooth current data is determined; the sawtooth current data is smoothed through the smoothing window and decomposed for gas detection; The step of obtaining the absorption cycle and the peak point in each absorption cycle according to the data value change in the time sequence of the sawtooth wave current data includes: In the sawtooth current data, the moment when the maximum and minimum values ​​coexist is regarded as the change moment; the data between any two adjacent change moments is regarded as an absorption cycle; the time period corresponding to each absorption cycle is mapped to the same time range, and the start time of each absorption cycle is recorded as zero; For any absorption cycle, the point corresponding to the minimum value at the start time of the absorption cycle is taken as the starting point, and the point corresponding to the maximum value at the end time of the absorption cycle is taken as the end point; the line connecting the starting point and the end point is taken as the baseline of the absorption cycle; the extreme value point in the absorption cycle is obtained; the extreme value point not on the baseline is taken as the peak point of the absorption cycle; The method for obtaining the abnormality degree includes: Each peak point in each absorption cycle is taken as the target point in turn, and the data points that are continuously distributed on both sides of the target point and are not on the baseline are taken as the change points of the target point; Obtain the slope of each change point; use the difference in slope between each change point and the next change point as a change indicator for each change point; The data value of each data point on the baseline at the corresponding moment is used as the baseline value of each data point; the difference between the data value of each change point and the baseline value is used as the change fluctuation value of the change point; According to the distribution number of the target point corresponding to the change point and the data deviation degree of the target point, the fluctuation weight of the target point is obtained; the product of the change fluctuation value of each change point and the fluctuation weight of the corresponding target point is used as the fluctuation index of each change point; Calculate the Euclidean norm of the change index and the fluctuation index of each change point to obtain the abnormal index of each change point; calculate the cumulative value of the abnormal index of all change points corresponding to the target point to obtain the abnormal degree of the target point; The method for obtaining the decomposition influence comprises: Arrange the data points of each absorption cycle in time sequence to obtain a data point sequence; take each peak point in each absorption cycle as a reference point in turn, and obtain the serial number of the reference point in the data point sequence of the absorption cycle as a reference serial number; Among the data points corresponding to the reference serial numbers of all absorption cycles, the probability of the data points being peak points is calculated and negative correlation mapping is performed to obtain the distribution influence index of the reference points; among the data points corresponding to the reference serial numbers of all absorption cycles, the data value variance of the data points that are peak points is calculated to obtain the numerical influence index of the reference points; The data points corresponding to the reference number in all other absorption cycles except the absorption cycle where the reference point is located are used as other periodic points of the reference point; the abnormal impact index of the reference point is obtained through the deviation of the abnormality between the reference point and other periodic points; According to the distribution influence index, numerical influence index and abnormal influence index of the reference point, the decomposed influence degree of the reference point is obtained; the distribution influence index, numerical influence index and abnormal influence index are all positively correlated with the decomposed influence degree; The expression of decomposition influence is: In the formula, μ r Expressed as the decomposition influence of the rth peak point, P r It is expressed as the probability that the data point corresponding to the reference number of the rth peak point in all absorption cycles is a peak point, S r It is expressed as the numerical influence index of the r-th peak point, E r It is expressed as the abnormality of the rth peak point, M r It is expressed as the total number of other periodic points of the r-th peak point, E z It is represented as the abnormality of the zth other periodic point corresponding to the rth peak point, || is represented as the absolute value extraction function, and norm() is represented as the normalization function. It is expressed as the distribution influence index of the r-th peak point, It is expressed as the abnormal impact index of the r-th peak point; The method for obtaining the smoothing window includes: Select at least two preset initial windows, and use each preset initial window as a window to be analyzed in turn; For any peak point, the total number of peak points in the window to be analyzed corresponding to the peak point is counted as the number of neighboring peak points in the window to be analyzed for the peak point; the ratio of the number of neighboring peak points of the peak point to the side length of the corresponding window to be analyzed is calculated to obtain the peak point distribution index of the peak point in the corresponding window to be analyzed; In the window to be analyzed corresponding to the peak point, the product of the abnormality and the decomposition influence of each peak point is calculated to obtain the influence of each peak point in the window to be analyzed corresponding to the peak point; the influence of all peak points in the analysis window corresponding to the peak point is cumulatively multiplied to obtain the peak point influence index in the window to be analyzed corresponding to the peak point; The product of the peak point distribution index and the peak point influence index of the peak point in the corresponding window to be analyzed is used as the evaluation index of the window to be analyzed corresponding to the peak point; The accumulated value of the evaluation index of the window to be analyzed corresponding to all peak points in the sawtooth current data is used as the evaluation degree of the window to be analyzed; among the evaluation degrees of all preset initial windows, the preset initial window corresponding to the minimum evaluation degree is used as the smoothing window of the sawtooth current data.

2. The laser sensor data processing method based on gas concentration detection according to claim 1 is characterized in that: The method for obtaining the fluctuation weight includes: The total number of target point change points is counted as the change value; the difference between the target point data value and the reference value is taken as the change amplitude of the target point; The ratio of the change amplitude of the target point to the change value is normalized to obtain the fluctuation weight of the target point.

3. The laser sensor data processing method based on gas concentration detection according to claim 1 is characterized in that: The method for obtaining the abnormal impact indicator includes: When other periodic points are not peak points, the anomaly of other periodic points is recorded as zero; the difference in anomaly between the reference point and each other periodic point is calculated to obtain the anomaly difference of the reference point; the accumulated value of all anomaly differences of the reference point is normalized to obtain the anomaly deviation weight of the reference point; The product of the abnormality degree of the reference point and the abnormal deviation weight is used as the abnormal impact indicator of the reference point.

4. The laser sensor data processing method based on gas concentration detection according to claim 1 is characterized in that: The method of smoothing the sawtooth wave current data through a smoothing window and decomposing the data for gas detection includes: The sawtooth current data is processed by the local mean function through a smoothing window to obtain the mean curve for LMD decomposition. The component signals obtained by LMD decomposition are further processed based on tunable semiconductor laser absorption spectroscopy technology to obtain the gas type and corresponding concentration.

5. The laser sensor data processing method based on gas concentration detection according to claim 1 is characterized in that: The method for selecting the preset initial window includes: The side length of each preset initial window is selected within a preset size range, and the side lengths are all integers.

6. The laser sensor data processing method based on gas concentration detection according to claim 5 is characterized in that: The minimum value of the preset size range is 3 and the maximum value is 20.