Gas spectral line separation method and device, processor and electronic equipment
By separating the spectral lines in the gas absorption window, determining the target absorption window and separating the sub-spectral lines of each target gas, the problem of high overlap of gas absorption spectral is solved, and the effect of reducing the overlap of absorption spectral is achieved.
Patent Information
- Application Number
- CN202411583406.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-11-06
AI Technical Summary
Due to the influence of molecular collision, Doppler shift and measuring instruments, the line width of the absorption spectrum of the gas is widened, resulting in overlapping absorption spectrum between adjacent spectral lines, resulting in technical problems of high overlap.
By acquiring multiple absorption windows, the target absorption window is determined, and the intensity of absorbed light of each target gas is determined in the target absorption window, and the sub-spectral lines of each target gas are separated from the spectral lines based on these intensities.
It effectively avoids the overlap of absorption spectral between adjacent spectral lines, reduces the overlap of absorption spectra, and solves the problem of high overlap of absorption spectra.
Smart Images

Figure CN119619030A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of absorption spectroscopy, and in particular to a gas spectral line separation method, device, processor and electronic equipment. Background Art
[0002] Each gas usually has multiple absorption spectral lines. Due to the influence of molecular collisions, Doppler frequency shift and measuring instruments, the line width of the spectral lines will be broadened, causing the absorption spectrum to overlap between adjacent spectral lines, thus leading to the technical problem of high overlap of the absorption spectrum.
[0003] With respect to the technical problem of high degree of overlap of the above-mentioned absorption spectra, no effective solution has been proposed so far. Summary of the invention
[0004] The embodiments of the present invention provide a method, device, processor and electronic device for separating gas spectral lines, so as to at least solve the technical problem of high overlap of absorption spectra.
[0005] According to one aspect of an embodiment of the present invention, a method for predicting properties of electric current in a conductive medium is provided, the method comprising: acquiring a plurality of absorption windows, wherein the plurality of absorption windows absorb light using a plurality of gases, and wherein a plurality of gases exist in the absorption windows; determining a target absorption window from the plurality of absorption windows, wherein a confidence level of a feature in the target absorption window is higher than a confidence level of a feature in an absorption window other than the target absorption window in the plurality of absorption windows; determining, in the target absorption window, the intensity of light absorbed by the plurality of target gases respectively, wherein a plurality of target gases exist in the target absorption window; and separating, based on the intensity, sub-spectral lines of each of the plurality of target gases from the spectral lines in the target absorption window.
[0006] Optionally, determining a target absorption window from a plurality of absorption windows comprises: determining a first channel and a second channel from at least one channel of the plurality of absorption windows, respectively, wherein the intensity of light absorbed by a plurality of gases in the first channel is higher than the intensity of light absorbed by a plurality of gases in the second channel; determining the target absorption window based on the first channel and the second channel.
[0007] Optionally, based on the first channel and the second channel, a target absorption window is determined, including: inputting the number of first channels and the number of second channels into a prediction model for prediction to obtain confidences of features in multiple absorption windows, wherein the prediction model is used to at least represent a mapping relationship between the number of first channels, the number of second channels and the confidences of features in multiple absorption windows; determining a target confidence from the confidences of features in the multiple absorption windows, wherein the target confidence is greater than any confidence of the confidences of features in the multiple absorption windows except the target confidence; and determining the absorption window corresponding to the target confidence as the target absorption window.
[0008] Optionally, based on intensity, sub-spectral lines of each target gas among multiple target gases are separated from the spectral lines in the target absorption window, including: analyzing the spectral lines to obtain the positions of the peaks of the multiple target gases, wherein the peak value is used to represent the maximum intensity of light absorbed by the multiple target gases in the spectral line, and the position is used to represent the frequency that meets the maximum intensity in the spectral line; based on intensity and position, the sub-spectral lines are separated from the spectral lines.
[0009] Optionally, based on intensity and position, sub-spectral lines are separated from the spectral lines, including: using a baseline to correct the spectral lines, wherein the baseline is used to represent information about interference of the environment in which the target absorption window is located on the spectral lines; based on intensity and position, sub-spectral lines are separated from the corrected spectral lines.
[0010] Optionally, based on intensity and position, sub-spectral lines are separated from the corrected spectral lines, including: inputting the intensity and position into a separation model for separation to obtain a separation result, wherein the separation model is used to represent the mapping relationship between intensity, position and separation result, and the separation result is used to represent the relationship between the intensity of light absorbed by each target gas in a plurality of target gases and the frequency that satisfies the intensity of light absorbed by each target gas; using the separation result, sub-spectral lines are separated from the corrected spectral lines.
[0011] According to one aspect of an embodiment of the present invention, a gas spectral line separation device is provided, and the device may include: an acquisition unit, used to acquire multiple absorption windows, wherein the multiple absorption windows utilize multiple gases to absorb light, and multiple gases exist in the absorption windows; a first determination unit, used to determine a target absorption window from the multiple absorption windows, wherein the confidence of the feature in the target absorption window is higher than the confidence of the feature in the absorption windows other than the target absorption window in the multiple absorption windows; a second determination unit, used to determine the intensity of light absorbed by multiple target gases respectively in the target absorption window, wherein multiple target gases exist in the target absorption window; and a separation unit, used to separate sub-spectral lines of each target gas in the multiple target gases from the spectral lines in the target absorption window based on the intensity.
[0012] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein when the program is run by the processor, the gas spectral line separation method in the embodiment of the present invention is executed.
[0013] According to another aspect of an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein when the program is run, the gas spectral line separation method in each embodiment of the present invention is executed.
[0014] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the gas spectral line separation method in the present invention.
[0015] According to another aspect of an embodiment of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the gas spectral line separation method in the embodiment of the present invention is implemented.
[0016] According to another aspect of an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the gas spectral line separation method in the embodiment of the present invention is implemented.
[0017] According to another aspect of the embodiments of the present invention, the embodiments of the present application further provide a computer program, which, when executed by a processor, implements the gas spectral line separation method in the above-mentioned embodiments of the present invention.
[0018] In an embodiment of the present invention, when separating the spectral lines of the gas, multiple absorption windows can be obtained, and from the multiple absorption windows obtained, a target absorption window can be determined. In the above-mentioned target absorption window, the intensities of light absorbed by multiple target gases can be determined respectively, and based on the determined intensities, the sub-spectral lines of each target gas in the multiple target gases can be separated from the spectral lines in the target absorption window, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further achieving the technical effect of reducing the overlap of absorption spectra. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0020] Figure 1 is a flow chart of a gas spectral line separation method according to an embodiment of the present invention;
[0021] FIG2( a ) is a schematic diagram of an original spectrum of a gas according to an embodiment of the present invention;
[0022] FIG2( b ) is a schematic diagram of an original spectrum line within a window according to an embodiment of the present invention;
[0023] FIG3( a ) is a schematic diagram of an original spectrum line after derivation within a window according to an embodiment of the present invention;
[0024] FIG3( b ) is a schematic diagram of a corrected original spectrum line within a window according to an embodiment of the present invention;
[0025] FIG3( c ) is a schematic diagram of a spectrum line separated within a window according to an embodiment of the present invention;
[0026] Figure 4 Schematic diagram of a gas spectral line separation device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only embodiments of a part of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an embodiment of the present invention, a method for spectral line separation of a gas is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 1 is a flow chart of a gas spectral line separation method according to an embodiment of the present invention, the method may include the following steps:
[0031] Step S101, obtaining multiple absorption windows.
[0032] In the technical solution provided in step S101 of the present invention, the above-mentioned multiple absorption windows can utilize multiple gases to absorb light. Multiple gases can exist in the above-mentioned absorption windows. Among them, the multiple gases can be but are not limited to trace gases, which are only used as examples here and are not specifically limited.
[0033] In this embodiment, at least one of the following gases may exist in the absorption window: CO and CO2, etc. That is, the multiple absorption windows may utilize multiple gases such as CO and CO2 to absorb light, and the gases are only used as examples and are not specifically limited.
[0034] In this embodiment, multiple absorption windows are obtained. Optionally, this embodiment divides the spectral line of the gas to obtain multiple spectral lines. The range where each spectral line in the obtained multiple spectral lines is located is determined as an absorption window, thereby obtaining multiple absorption windows.
[0035] Step S102: determining a target absorption window from a plurality of absorption windows.
[0036] In the technical solution provided in the above step S102 of the present invention, the confidence level of the features in the above target absorption window may be higher than the confidence levels of the features in the absorption windows other than the target absorption window among the multiple absorption windows.
[0037] In this embodiment, the above confidence level can be obtained by scoring multiple absorption windows using a prediction model. Among the multiple absorption windows, there is at least one channel, which can include a first channel and a second channel. The intensity of light absorbed by multiple gases in the first channel can be higher than the intensity of light absorbed by multiple gases in the second channel. For example, the frequency at which the intensity of the absorbed light is higher than the full width at half maximum is regarded as a strong absorption channel at the center of the spectrum, and the frequency at which the intensity of the absorbed light is lower than the full width at half maximum is regarded as a weak absorption channel at the edge of the spectrum. This is only an example and is not specifically limited.
[0038] In this embodiment, the above prediction model can be used to at least represent the mapping relationship between the number of first channels, the number of second channels, and the confidence levels of features in multiple absorption windows.
[0039] In this embodiment, the above characteristics may include at least: the intensity of light absorbed by the gas (also referred to as absorbance) and the frequency of the light.
[0040] In this embodiment, after acquiring multiple absorption windows, a target absorption window is determined from the multiple absorption windows. Optionally, this embodiment can determine at least one channel of the multiple absorption windows based on the acquisition of multiple absorption windows. According to at least one channel of the determined multiple absorption windows, the target absorption window can be determined. That is, according to the intensity of light absorbed by multiple gases in the above-mentioned channels, the above-mentioned channels are divided to obtain a first channel and a second channel, and the target absorption window can be determined according to the first channel and the second channel obtained by the division.
[0041] Step S103, in the target absorption window, determining the intensity of light absorbed by the multiple target gases respectively.
[0042] In the technical solution provided in step S103 of the present invention, multiple target gases may exist in the target absorption window. For example, at least one of the following gases may exist in the target absorption window: CO and CO2. In other words, the target absorption window may utilize multiple gases such as CO and CO2 to absorb light, and the gases are only used as examples and are not specifically limited.
[0043] In this embodiment, after determining the target absorption window from multiple absorption windows, the intensity of light absorbed by multiple target gases is determined in the target absorption window. Optionally, based on the determination of the target absorption window, this embodiment uses a fitting model to perform multi-peak fitting on the data pairs existing in the target absorption window, and the intensity of light absorbed by multiple target gases in the target absorption window can be obtained. The data pair can be composed of the intensity of light absorbed by multiple target gases and the frequency of light, and the fitting model can be implemented based on the particle swarm algorithm. The algorithm is only used as an example and is not specifically limited.
[0044] Step S104 , separating sub-spectral lines of each target gas in the plurality of target gases from the spectral lines in the target absorption window based on the intensity.
[0045] In the technical solution provided in the above step S104 of the present invention, in the target absorption window, after determining the intensity of light absorbed by the multiple target gases respectively, the sub-spectral line of each target gas in the multiple target gases is separated from the spectrum line in the target absorption window based on the intensity. Optionally, this embodiment can determine the position of the peak value of the multiple target gases from the spectrum line in the target absorption window on the basis of determining the intensity of light absorbed by the multiple target gases respectively. According to the position of the peak value of the multiple target gases determined, the sub-spectral line of each target gas in the multiple target gases can be separated from the above-mentioned spectrum line. Among them, the above-mentioned peak value can be used to represent the maximum intensity of light absorbed by the multiple target gases in the spectrum line, and the position is used to represent the frequency that meets the maximum intensity in the spectrum line.
[0046] In the above steps S101 to S104 of the present application, when separating the spectral lines of the gas, multiple absorption windows can be obtained, and the target absorption window can be determined from the multiple absorption windows obtained. In the above target absorption window, the intensities of light absorbed by multiple target gases can be determined respectively, and according to the determined intensities, the sub-spectral lines of each target gas in the multiple target gases can be separated from the spectral lines in the target absorption window, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further realizing the technical effect of reducing the overlap of absorption spectra.
[0047] The above method of this embodiment is further introduced below.
[0048] As an optional implementation manner, step S102, determining a target absorption window from multiple absorption windows, includes: determining a first channel and a second channel from at least one channel of the multiple absorption windows respectively; and determining the target absorption window based on the first channel and the second channel.
[0049] In this embodiment, the intensity of light absorbed by the multiple gases in the first channel may be higher than the intensity of light absorbed by the multiple gases in the second channel. For example, the first channel may be a strong absorption channel in the channel, and the second channel may be a weak absorption channel in the channel, which is only an example and not specifically limited.
[0050] In this embodiment, after obtaining multiple absorption windows, the first channel and the second channel are determined from at least one channel of the multiple absorption windows. Optionally, this embodiment can determine at least one channel of the multiple absorption windows based on the acquisition of multiple absorption windows. According to the intensity of light absorbed by multiple gases in the above channels, the above channels are divided respectively, and the first channel and the second channel in the above channels can be obtained. For example, a strong absorption channel and a weak absorption channel in the channel can be obtained. This is only an example and is not specifically limited.
[0051] In this embodiment, after determining the first channel and the second channel from at least one channel of the plurality of absorption windows, the target absorption window is determined based on the first channel and the second channel. Optionally, based on the determination of the first channel and the second channel, the embodiment can determine the number of the first channel and the number of the second channel. The determined number of the first channel and the number of the second channel are input into the prediction model for prediction, thereby determining the target absorption window.
[0052] As an optional implementation method, a target absorption window is determined based on the first channel and the second channel, including: inputting the number of first channels and the number of second channels into a prediction model for prediction to obtain confidences of features in multiple absorption windows; determining a target confidence from the confidences of features in the multiple absorption windows; and determining the absorption window corresponding to the target confidence as the target absorption window.
[0053] In this embodiment, the prediction model can be used to at least represent the mapping relationship between the number of first channels, the number of second channels and the confidence of features in multiple absorption windows. The target confidence can be greater than any confidence of the features in the multiple absorption windows except the target confidence.
[0054] In this embodiment, after determining the first channel and the second channel from at least one channel of the multiple absorption windows, the number of the first channel and the number of the second channel are input into the prediction model for prediction, and the confidence of the features in the multiple absorption windows is obtained. Optionally, this embodiment can determine the number of the first channel and the number of the second channel based on the determination of the first channel and the second channel. The determined number of the first channel and the number of the second channel are input into the prediction model for prediction, and the confidence of the features in the multiple absorption windows can be obtained.
[0055] Optionally, the number of the first channels and the number of the second channels are input into the prediction model for prediction, and the confidence of the features in the multiple absorption windows can be obtained by the following equations (1) to (7):
[0056]
[0057] In formula (1) and formula (2), x ij It can be used to represent the original value of the i-th frequency signal under the j-th characteristic index, where the characteristic index can include the absorption peak height, absorption peak area, absorption bandwidth and absorption intensity at the central wavelength. For formula (3) and formula (4), p ij It can be used to represent the proportion of the i-th frequency signal on the j-th characteristic index, m can be used to represent the total number of evaluation objects, E j It can be used to represent the information entropy of the j-th feature index. It can be used to ensure that the entropy value ranges between 0 and 1. If p ij =0, then p ij ln(p ij )=0. For formula (5), w j It can be used to represent the weight of the jth feature index, and n can be used to represent the total number of feature indexes. If the information entropy of the jth feature index is smaller, it means that the amount of information of the jth feature index is larger, and the weight of the jth feature index is also larger. For formula (6), S i It can be used to represent the total score of the frequency sampling points. For formula (7), can be used to represent strong absorption channels, can be used to represent weak absorption channels, and can be used to represent the total number of channels in the mth absorption window. can be used to indicate the number of strong absorption channels. Can be used to represent the number of weak absorption channels, α can be used to represent the adjustment factor. When a=0 in formula (7), the absorption window is determined only by the strong absorption channel, while the weak absorption channel is ignored. When α=1 in formula (7), the absorption window is determined by both the strong absorption channel and the weak absorption channel. The value of the adjustment factor α can be determined empirically, or can be obtained by feedback on the confidence level of the feature (also called the evaluation result).
[0058] In this embodiment, after the number of the first channel and the number of the second channel are input into the prediction model for prediction and the confidences of the features in the multiple absorption windows are obtained, the target confidence is determined from the confidences of the features in the multiple absorption windows. Optionally, this embodiment determines the maximum confidence among the confidences of the features in the multiple absorption windows as the target confidence, based on the confidences of the features in the multiple absorption windows.
[0059] In this embodiment, after determining the target confidence from the confidences of the features in the multiple absorption windows, the absorption window corresponding to the target confidence is determined as the target absorption window.
[0060] As an optional implementation method, step S104 separates sub-spectral lines of each target gas among multiple target gases from the spectral lines in the target absorption window based on intensity, including: analyzing the spectral lines to obtain the positions of the peaks of the multiple target gases; and separating sub-spectral lines from the spectral lines based on intensity and position.
[0061] In this embodiment, the peak value can be used to indicate the maximum intensity of light absorbed by the target gases in the spectrum. The position can be used to indicate the frequency that satisfies the maximum intensity in the spectrum.
[0062] In this embodiment, the above analysis may be, but is not limited to, a second-order derivative operation, which is merely an example and not specifically limited here.
[0063] In this embodiment, after determining the intensity of light absorbed by the multiple target gases in the target absorption window, the spectrum line is analyzed to obtain the positions of the peaks of the multiple target gases. Optionally, this embodiment analyzes the spectrum line in the target absorption window on the basis of determining the intensity of light absorbed by the multiple target gases, and obtains the positions of the peaks of the multiple target gases, that is, the frequency that satisfies the maximum intensity of light absorbed by the multiple target gases in the above spectrum line can be obtained.
[0064] In this embodiment, after the spectral lines are analyzed to obtain the positions of the peaks of the multiple target gases, sub-spectral lines are separated from the spectral lines based on the intensity and position. Optionally, this embodiment corrects the spectral lines in the target absorption window based on the positions of the peaks of the multiple target gases, and the sub-spectral lines of each target gas in the multiple target gases can be separated from the corrected spectral lines.
[0065] As an optional implementation manner, sub-spectral lines are separated from the spectral lines based on intensity and position, including: correcting the spectral lines using a baseline; and separating the sub-spectral lines from the corrected spectral lines based on intensity and position.
[0066] In this embodiment, the baseline may be used to indicate information about interference of the spectral line by the environment in which the target absorption window is located.
[0067] In this embodiment, the correction operation may be implemented based on an adaptive sparse partial least squares algorithm (adaptivesparsity PLS, referred to asPLS for short). The algorithm is only used as an example and is not specifically limited.
[0068] In this embodiment, after the spectrum is analyzed to obtain the positions of the peaks of multiple target gases, the spectrum is corrected using the baseline. Optionally, this embodiment corrects the spectrum in the target absorption window using the baseline based on the positions of the peaks of multiple target gases. In other words, the spectrum in the target absorption window is subtracted from the baseline, thereby achieving the purpose of eliminating the error caused by the baseline drift of the absorption spectrum.
[0069] Optionally, using the baseline, the correction of the spectral line in the target absorption window can be achieved by the following equations (8) to (10):
[0070] A1=(W+λD T D) -1 WA0 (8)
[0071]
[0072] Wherein, for formula (8), A0 can be used to represent the spectrum line in the target absorption window, A1 can be used to represent the fitted baseline signal, D can be used to represent the coefficient of the second-order difference matrix, W can be used to represent the diagonal matrix of the weight vector, and the initial value of W can be used to represent the unit vector. For formula (9), It can be used to represent the standard deviation of the data set when the difference between the scanned absorption spectrum and the fitted spectrum is negative. It is iterated according to formula (9). When |WW i-1 | / |W i-1 |<ε, the iteration ends. For formula (10), n can be used to represent the number of absorption spectrum samples obtained from the spectrometer.
[0073] In this embodiment, after the spectrum line is corrected by using the baseline, the sub-spectral line is separated from the corrected spectrum line based on the intensity and position. Optionally, this embodiment can separate the sub-spectral line of each target gas from the spectrum line in the target absorption window based on the intensity of the absorption light of the multiple target gases and the position of the peak of the multiple target gases respectively.
[0074] As an optional implementation method, sub-spectral lines are separated from the corrected spectral lines based on intensity and position, including: inputting intensity and position into a separation model for separation to obtain separation results; and using the separation results to separate sub-spectral lines from the corrected spectral lines.
[0075] In this embodiment, the separation model is used to represent the mapping relationship between intensity, position and separation result, and the separation result is used to represent the relationship between the intensity of light absorbed by each target gas among multiple target gases and the frequency that satisfies the intensity of light absorbed by each target gas.
[0076] In this embodiment, after the spectrum is corrected by using the baseline, the intensity and position are input into the separation model for separation to obtain a separation result. Optionally, on the basis of the correction of the spectrum, the embodiment uses the intensity of the absorption light of multiple target gases and the position of the peak of multiple target gases to input into the separation layer of the separation model for separation to obtain a separation result, and the separation result is output by the output layer of the separation model.
[0077] Optionally, in the target absorption window, determining the intensity of light absorbed by multiple target gases can be achieved by the following equations (11) to (13):
[0078]
[0079] Where, for formula (11) and formula (12), v = (Δv 01 , Δγ1, ΔH1, .., Δv 0n , Δγ n , ΔH n ), P = (v 01 ,γ1,H1,...,v 0n , γ n , H n ), P can be used to indicate the position of each point on the spectrum line in the target absorption window, and V can be used to indicate the change of each point. best It can be used to represent the best historical position of each point itself, g best It can be used to represent the historical best position of the spectrum line, j can be used to represent the index of each point, t can be used to represent the index of the number of iterations, w can be used to represent the inertia weight, r1 and r2 can be used to represent two random values generated independently in the range of [0, 1], r1 and r2 can be used to introduce randomness, c1 and c2 can be used to represent the acceleration coefficients that control the influence of personal cognition and global components.
[0080] Optionally, for formula (13), F(P) can be used to represent the fit of the point at P, It can be used to represent the actual gas absorption spectrum of strong absorption channels. It can be used to represent the absorbance of the fitting curve at frequency vi. It can be used to represent the actual gas absorption spectrum of weak absorption channels. It can be used to represent the absorbance of the fitting curve at frequency vi. and It can be calculated by formula (14): and It can be calculated by formula (16). θ1 and θ2 can be used to represent the adjustment factor, and θ1+θ2=1.
[0081] Optionally, the intensity and position are input into the separation model for separation to obtain the separation result, which can be achieved by the following equations (14) to (16):
[0082]
[0083] Optionally, for formula (14), I0(v) can be used to represent the incident laser intensity, and I(v) can be used to represent the transmitted laser intensity. For formula (15), a(v) can be used to represent the absorbance of a single gas absorption line at the laser frequency, s can be used to represent the absorption line intensity, g can be used to represent the linear function, c can be used to represent the molecular number density, and l can be used to represent the effective absorption length. For formula (16), v0 can be used to represent the center frequency of the absorption line, γ i It can be used to indicate the half-width at half maximum of an absorption line, and n can be used to indicate the number of absorption spectral lines.
[0084] In this embodiment, after the intensity and position are input into the separation model for separation and the separation result is obtained, the sub-spectral line is separated from the corrected spectral line using the separation result. Optionally, in this embodiment, the sub-spectral line can be separated from the corrected spectral line according to the relationship between the intensity of the light absorbed by each target gas in the plurality of target gases and the frequency that satisfies the intensity of the light absorbed by each target gas.
[0085] In an embodiment of the present invention, when separating the spectral lines of the gas, multiple absorption windows can be obtained, and from the multiple absorption windows obtained, a target absorption window can be determined. In the above-mentioned target absorption window, the intensities of light absorbed by multiple target gases can be determined respectively, and based on the determined intensities, the sub-spectral lines of each target gas in the multiple target gases can be separated from the spectral lines in the target absorption window, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further achieving the technical effect of reducing the overlap of absorption spectra.
[0086] The technical solution of the embodiment of the present invention is illustrated below in conjunction with preferred implementation modes.
[0087] Each gas usually has multiple absorption spectral lines. Due to the influence of molecular collisions, Doppler frequency shift and measuring instruments, the line width of the spectral lines will be broadened, causing the absorption spectrum to overlap between adjacent spectral lines, thus leading to the technical problem of high overlap of the absorption spectrum.
[0088] In order to solve the above technical problems, an embodiment of the present invention proposes a gas spectral line separation method, which can determine a target absorption window from multiple absorption windows obtained, and in the determined target absorption window, the intensities of light absorbed by multiple target gases can be determined respectively, and based on the determined intensities, the sub-spectral lines of each target gas in the multiple target gases can be separated from the spectral lines in the target absorption window, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further achieving the technical effect of reducing the overlap of absorption spectra.
[0089] In this embodiment, the original spectrum of the gas can be shown in Figure 2(a), which is a schematic diagram of the original spectrum of a gas according to an embodiment of the present invention. When measuring multiple trace gas components, overlapping interference occurs between the absorption spectrum lines.
[0090] In this embodiment, in order to separate the overlapping absorption spectral lines, the following steps may be performed to separate the sub-spectral lines of each target gas in the plurality of target gases from the spectral lines in the target absorption window:
[0091] Step S1, determining characteristic indicators for evaluating the absorption spectrum window, wherein the characteristic indicators may include absorption peak height, absorption peak area, absorption bandwidth and absorption intensity at the center wavelength.
[0092] After determining the characteristic index for evaluating the absorption spectrum window, the process proceeds to step S2 to standardize the raw data.
[0093] In the technical solution provided in the above step S2 of the present invention, the original data is normalized according to the above formula (1) or the above formula (2).
[0094] After the original data is standardized, the process proceeds to step S3 to standardize the performance index of the decision matrix array, thereby obtaining the ratio of the ith frequency signal on the ith characteristic index.
[0095] In the technical solution provided in the above step S3 of the present invention, by calculating according to the above formula (3), the ratio of the i-th frequency signal on the i-th characteristic index can be obtained.
[0096] After the original data is standardized, the process proceeds to step S4 to calculate the information entropy of the characteristic index.
[0097] In the technical solution provided in the above step S4 of the present invention, the information entropy of the characteristic index can be obtained by calculating according to the above formula (4).
[0098] After the original data is standardized, the process proceeds to step S5 to determine the weight of the feature indicator according to the information entropy of the feature indicator.
[0099] In the technical solution provided in the above step S5 of the present invention, the weight of the characteristic index can be obtained by calculating according to the above formula (5).
[0100] After the original data is standardized, the process proceeds to step S6, where the comprehensive score of the frequency sampling point can be determined according to the weight of the characteristic index.
[0101] In the technical solution provided in the above step S6 of the present invention, the comprehensive score of the frequency sampling point can be obtained by calculating according to the above formula (6).
[0102] After the original data is standardized, the process proceeds to step S7 to determine a target absorption window from a plurality of absorption windows.
[0103] In the technical solution provided in the above step S7 of the present invention, the target absorption window can be obtained by calculating according to the above formula (7). Among them, the size and position of the window can reflect which parts of the spectrum contain important absorption information. Using the algorithm shown in the above formula (7), the window with the highest evaluation result score can be selected, thereby achieving the purpose of quantitative evaluation and preliminary screening of the absorption window of the gas absorption spectrum. In addition, for target gas detection, it is also possible to determine which frequency intervals have the strongest absorption characteristics, thereby achieving the purpose of effectively identifying the presence of gas and its concentration.
[0104] After the original data is standardized, the process proceeds to step S8 to perform a second-order derivative on the spectral line in the target absorption window.
[0105] In the technical solution provided in step S8 of the present invention, the minimum position of the spectrum line after the second-order derivative can correspond to the peak point of the sub-spectral line. In other words, the number and center position of the peak of the sub-spectral line can be determined by the distribution of the minimum value of the second-order derivative.
[0106] In this embodiment, the original spectral lines in the window may be as shown in FIG2( b ), which is a schematic diagram of the original spectral lines in a window according to an embodiment of the present invention. The spectral lines selected in the form of a rectangular frame are the spectral lines in the target absorption window.
[0107] In this embodiment, the original spectral line after differentiation within the window can be as shown in Figure 3(a). Figure 3(a) is a schematic diagram of the original spectral line after differentiation within a window according to an embodiment of the present invention. The minimum position of the spectral line after the second-order derivative is the peak point in the figure.
[0108] After the raw data is standardized, the process proceeds to step S9 to correct the spectral lines in the target absorption window using the baseline.
[0109] In the technical solution provided in step S9 of the present invention, the spectrum line in the target absorption window can be corrected by calculating according to the above formulas (8) to (10). In other words, the spectrum line in the target absorption window is subtracted from the above baseline, thereby achieving the purpose of eliminating the error caused by the baseline drift of the absorption spectrum.
[0110] After the original data is standardized, the process proceeds to step S10, where a fitting model based on a particle swarm algorithm is used to perform multi-peak fitting on the data in the target absorption window, thereby obtaining the intensity of light absorbed by various target gases in the target absorption window.
[0111] In the technical solution provided in the above step S10 of the present invention, the above data pair may be composed of the intensity of light absorbed by a plurality of target gases and the frequency of light.
[0112] In this embodiment, the calculation is performed according to the above formulas (11) to (13), that is, by iteratively calculating the positions and changes of multiple points, the optimal solution in the spectrum is searched, thereby obtaining the intensity of light absorbed by multiple target gases in the target absorption window. In the initial stage of iteration, the inertia weight is large, so that the point is searched in a wider area and an approximate solution is obtained quickly. In the later stage of iteration, a small inertia weight is used to enhance the local search ability of the point and obtain the optimal solution. When the optimal solution does not change or the number is reached, the iteration stops.
[0113] After the original data is standardized, the process proceeds to step S11 , where sub-spectral lines of each target gas in the plurality of target gases can be separated from the spectral lines in the target absorption window according to the intensities of the light absorbed by the plurality of target gases.
[0114] In the technical solution provided in step S10 of the present invention, g best Substituting the final value in each dimension of into formula (15), the sub-spectral line of each target gas after separation can be obtained.
[0115] In this embodiment, the separated spectral lines in the window can be as shown in Figure 3(c). Figure 3(c) is a schematic diagram of the separated spectral lines in a window according to an embodiment of the present invention. The three independent spectral lines are the sub-spectral lines of each target gas in the multiple target gases separated from the spectral lines in the target absorption window.
[0116] In this embodiment, when separating the spectral lines of the gas, multiple absorption windows can be obtained. From the multiple absorption windows obtained, the target absorption window can be determined. In the above target absorption window, the intensities of light absorbed by multiple target gases can be determined respectively, and based on the determined intensities, the sub-spectral lines of each target gas in the multiple target gases can be separated from the spectral lines in the target absorption window, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further achieving the technical effect of reducing the overlap of absorption spectra.
[0117] According to an embodiment of the present invention, a gas spectrum line separation device is also provided. It should be noted that the gas spectrum line separation device can be used to execute a gas spectrum line separation method in an embodiment.
[0118] Figure 4 FIG. 1 is a schematic diagram of a gas spectrum separation device according to an embodiment of the present invention. Figure 4 As shown, the gas spectrum line separation device 400 may include: an acquisition unit 401 , a first determination unit 402 , a second determination unit 403 and a separation unit 404 .
[0119] The acquisition unit 401 is used to acquire a plurality of absorption windows, wherein the plurality of absorption windows absorb light using a plurality of gases, and a plurality of gases exist in the absorption windows.
[0120] The first determining unit 402 is configured to determine a target absorption window from the multiple absorption windows, wherein the confidence of the features in the target absorption window is higher than the confidence of the features in the absorption windows other than the target absorption window among the multiple absorption windows.
[0121] The second determination unit 403 is used to determine the intensity of light absorbed by the multiple target gases in the target absorption window, wherein the multiple target gases exist in the target absorption window.
[0122] The separation unit 404 is used to separate the sub-spectral line of each target gas in the plurality of target gases from the spectral line in the target absorption window based on the intensity.
[0123] Optionally, the first determination unit 402 may include: a first determination module, used to determine a first channel and a second channel from at least one channel of a plurality of absorption windows, respectively, wherein the intensity of light absorbed by a plurality of gases in the first channel is higher than the intensity of light absorbed by a plurality of gases in the second channel; and a second determination module, used to determine a target absorption window based on the first channel and the second channel.
[0124] Optionally, the second determination module may include: a prediction submodule, used to input the number of first channels and the number of second channels into a prediction model for prediction to obtain the confidence of features in multiple absorption windows, wherein the prediction model is used to at least represent the mapping relationship between the number of first channels, the number of second channels and the confidence of features in multiple absorption windows; a first determination submodule, used to determine a target confidence from the confidences of features in the multiple absorption windows, wherein the target confidence is greater than any confidence of the confidences of features in the multiple absorption windows except the target confidence; and a second determination submodule, used to determine the absorption window corresponding to the target confidence as the target absorption window.
[0125] Optionally, the separation unit 404 may include: an analysis module, used to analyze the spectral lines to obtain the positions of the peaks of multiple target gases, wherein the peaks are used to indicate the maximum intensity of light absorbed by the multiple target gases in the spectral lines, and the positions are used to indicate the frequencies that satisfy the maximum intensity in the spectral lines; and a separation module, used to separate sub-spectral lines from the spectral lines based on the intensity and the position.
[0126] Optionally, the separation module may include: a correction submodule for correcting the spectral line using a baseline, wherein the baseline is used to represent information about interference of the environment in which the target absorption window is located on the spectral line; and a separation submodule for separating sub-spectral lines from the corrected spectral line based on intensity and position.
[0127] Optionally, the separation sub-module can separate sub-spectral lines from the corrected spectral lines based on intensity and position by performing the following steps: input the intensity and position into a separation model for separation to obtain a separation result, wherein the separation model is used to represent the mapping relationship between intensity, position and separation results, and the separation result is used to represent the relationship between the intensity of light absorbed by each target gas among multiple target gases and the frequency that satisfies the intensity of light absorbed by each target gas; using the separation result, separate the sub-spectral lines from the corrected spectral lines.
[0128] In this embodiment, an acquisition unit is used to acquire multiple absorption windows, wherein the multiple absorption windows absorb light using multiple gases, and multiple gases exist in the absorption windows; a first determination unit is used to determine a target absorption window from the multiple absorption windows, wherein the confidence of the features in the target absorption window is higher than the confidence of the features in the absorption windows other than the target absorption window among the multiple absorption windows; a second determination unit is used to determine the intensity of light absorbed by the multiple target gases in the target absorption window, wherein multiple target gases exist in the target absorption window; a separation unit is used to separate sub-spectral lines of each target gas in the multiple target gases from the spectral lines in the target absorption window based on the intensity, thereby achieving the purpose of avoiding the phenomenon of absorption spectrum overlap between adjacent spectral lines, thereby solving the technical problem of high overlap of absorption spectra, and further achieving the technical effect of reducing the overlap of absorption spectra.
[0129] According to an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein when the program is run by the processor, the gas spectral line separation method in the embodiment is executed.
[0130] According to an embodiment of the present invention, there is further provided an electronic device, comprising: a memory storing an executable program; and a processor for running the program, wherein the gas spectral line separation method in the embodiment is executed when the program is running.
[0131] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the gas spectral line separation method in the embodiment.
[0132] According to an embodiment of the present invention, a computer program product is further provided. The computer program product includes a computer program. When the computer program is executed by a processor, the gas spectral line separation method in the embodiment is implemented.
[0133] According to an embodiment of the present invention, a computer program product is also provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the gas spectral line separation method in the embodiment is implemented.
[0134] According to an embodiment of the present invention, a computer program is further provided. When the computer program is executed by a processor, the gas spectral line separation method in the embodiment is implemented.
[0135] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0136] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0137] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0138] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0139] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0140] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the relevant technology or the whole or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, referred to as Read-Only Memory), random access memory (RAM, referred to as Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0141] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for separating gas spectral lines, characterized in that: include: Acquiring a plurality of absorption windows, wherein the plurality of absorption windows absorb light using a plurality of gases, the plurality of gases being present in the absorption windows; Determining a target absorption window from the multiple absorption windows, wherein the confidence of the features in the target absorption window is higher than the confidence of the features in the absorption windows other than the target absorption window among the multiple absorption windows; In the target absorption window, determining the intensity of the light absorbed by a plurality of target gases respectively, wherein the plurality of target gases exist in the target absorption window; Based on the intensity, a sub-spectral line of each target gas in the plurality of target gases is separated from the spectral line in the target absorption window.
2. The method according to claim 1, characterized in that Determining a target absorption window from the plurality of absorption windows comprises: Determining a first channel and a second channel from at least one channel of the plurality of absorption windows, respectively, wherein the intensity of the light absorbed by the plurality of gases in the first channel is higher than the intensity of the light absorbed by the plurality of gases in the second channel; The target absorption window is determined based on the first channel and the second channel.
3. The method according to claim 2, characterized in that Determining the target absorption window based on the first channel and the second channel includes: Inputting the number of the first channels and the number of the second channels into a prediction model for prediction to obtain the confidences of the features in the multiple absorption windows, wherein the prediction model is used to at least represent a mapping relationship between the number of the first channels, the number of the second channels and the confidences of the features in the multiple absorption windows; Determining a target confidence from the confidences of the features in the multiple absorption windows, wherein the target confidence is greater than any confidence of the confidences of the features in the multiple absorption windows except the target confidence; The absorption window corresponding to the target confidence is determined as the target absorption window.
4. The method according to claim 1, characterized in that Based on the intensity, a sub-spectral line of each target gas in the plurality of target gases is separated from the spectral line in the target absorption window, comprising: Analyzing the spectrum line to obtain the positions of the peaks of the multiple target gases, wherein the peaks are used to indicate the maximum intensity of the light absorbed by the multiple target gases in the spectrum line, and the positions are used to indicate the frequency in the spectrum line that satisfies the maximum intensity; The sub-spectral line is separated from the spectral line based on the intensity and the position.
5. The method according to claim 4, characterized in that Separating the sub-spectral line from the spectral line based on the intensity and the position includes: Correcting the spectrum line using a baseline, wherein the baseline is used to indicate information about interference of the spectrum line by the environment in which the target absorption window is located; The sub-spectral line is separated from the corrected spectral line based on the intensity and the position.
6. The method according to claim 5, characterized in that Separating the sub-spectral line from the corrected spectral line based on the intensity and the position, comprising: Inputting the intensity and the position into a separation model for separation to obtain a separation result, wherein the separation model is used to represent a mapping relationship among the intensity, the position and the separation result, and the separation result is used to represent a relationship between the intensity of each target gas among the multiple target gases absorbing the light and a frequency satisfying the intensity of each target gas absorbing the light; The sub-spectral lines are separated from the corrected spectral lines using the separation result.
7. A gas spectrum separation device, characterized in that: include: an acquisition unit, configured to acquire a plurality of absorption windows, wherein the plurality of absorption windows absorb light using a plurality of gases, and the plurality of gases exist in the absorption windows; A first determining unit is configured to determine a target absorption window from the multiple absorption windows, wherein the confidence of the features in the target absorption window is higher than the confidence of the features in the absorption windows other than the target absorption window among the multiple absorption windows; a second determination unit, configured to determine, in the target absorption window, the intensity of the light absorbed by the plurality of target gases, wherein the plurality of target gases exist in the target absorption window; A separation unit is used to separate a sub-spectral line of each target gas in the plurality of target gases from the spectral line in the target absorption window based on the intensity.
8. A processor, characterized in that: The processor is used to run a program, wherein the program, when run by the processor, executes the gas spectral line separation method according to any one of claims 1 to 6.
9. An electronic device, characterized in that: include: A memory storing an executable program; A processor is used to run the program, wherein the program, when running, executes the gas spectral line separation method described in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored executable program, wherein when the executable program is run, the device where the storage medium is located is controlled to execute the gas spectral line separation method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Overlapped spectral line separation method based on MPT (Microwave Plasma Torch) spectral data
CN107884346A
Method and system for detecting sulfur hexafluoride decomposed gas based on absorption spectrum
CN113533238A
Spectral analysis method, sample component analysis method and device, equipment and medium
CN118169110A
Quantitative elemental profiling in optical emission spectroscopy
US20150025847A1
System and Method for Background Removal in Spectrometry System
US20180045694A1