Gas concentration determination method and device, electronic equipment and storage medium
By removing detection data near the peak position in gas detection, a real-time fitted reference curve is generated, and a gas concentration model is used to calculate the gas concentration, the problem of low gas concentration calculation accuracy is solved, and higher detection accuracy is achieved.
Patent Information
- Application Number
- CN202510696804.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2045-05-27
AI Technical Summary
In the prior art, due to the diverse influencing factors during data collection, the gas concentration calculation accuracy is low, especially in gas leakage detection in industrial production and household scenarios, it is difficult to accurately determine the gas concentration.
By obtaining the original detection data of the space to be detected, removing the detection data near the peak position, performing the first fitting process, generating a reference curve, and calculating the difference between the reference curve and the original detection data near the peak position, the gas concentration is determined using the pre-constructed gas concentration model.
The calculation accuracy of gas concentration is improved, and the generated reference curve is fitted in real time, which reduces the impact of environmental factors on detection and improves the accuracy of detection.
Smart Images

Figure CN120507296A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of gas detection technology, and in particular to a method, device, electronic device and storage medium for determining gas concentration. Background Art
[0002] In scenarios where gas is used, such as industrial production and household use, it is necessary to detect the gas concentration to determine whether there is a safety hazard of gas leakage. In the current related technology, a laser transmitter is used to emit a laser into the space that needs to be detected. The gas molecules absorb the laser light energy of a specific wavelength, causing the reflected light intensity to attenuate, and the collected original detection data will also attenuate. The original detection data is fitted to obtain the original data curve. The higher the gas concentration, the more obvious the concave area of the original data curve. The gas concentration can be determined by calculating the area of the concave area between the original data curve and the pre-calibrated reference curve.
[0003] Since there are many factors affecting data collection, such as temperature, randomness of airflow, and hardware fluctuations, calculating the area of the concave region based on a pre-calibrated reference curve will result in low calculation accuracy of the gas concentration. Summary of the Invention
[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device, and storage medium for determining gas concentration to improve the calculation accuracy of gas concentration. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a method for determining gas concentration, the method comprising:
[0006] In the case of emitting laser light of various wavelengths to the space to be detected, obtaining raw detection data, wherein the raw detection data is determined based at least on the intensity of reflected light of the laser light of various wavelengths by the gas in the space to be detected;
[0007] Removing original detection data corresponding to a first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is original detection data within a second preset range near a peak position in the original detection data, the peak position being a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by gas in the space to be detected, and the second preset range includes the first preset range;
[0008] performing a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength;
[0009] calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position;
[0010] The gas concentration corresponding to the difference is determined by a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration.
[0011] Optionally, before removing the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data, the method further includes:
[0012] performing a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process;
[0013] Based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength, the peak position is determined from the fitting curve.
[0014] Optionally, the step of determining the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength includes:
[0015] Calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength;
[0016] The wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve is taken as the peak position.
[0017] Optionally, the step of removing original detection data corresponding to the first preset range from the candidate detection data to obtain remaining detection data includes:
[0018] Establishing a first window with a size of a second preset range with the peak position in the original detection data as the center;
[0019] The original detection data corresponding to a first preset range in the center of the first window is removed from the original detection data of the first window to obtain remaining detection data.
[0020] Optionally, the step of calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position includes:
[0021] Establishing a second window with a size of a third preset range with the peak position in the original detection data as the center;
[0022] Establishing a third window with a size of a fourth preset range with the peak position in the reference curve as the center;
[0023] The difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window is calculated.
[0024] Optionally, before the step of determining the gas concentration corresponding to the difference by using a pre-built gas concentration model to obtain the gas concentration in the space to be detected, the method further includes:
[0025] If the number of frames of raw detection data obtained does not reach the first preset number, returning to the step of obtaining raw detection data when emitting laser light of each laser wavelength to the space to be detected, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength;
[0026] If the number of frames of the acquired original detection data reaches the first preset number, sorting the first preset number of differences;
[0027] The first number of differences at the front and the second number of differences at the back are removed to obtain the remaining differences;
[0028] Based on the residual difference, the difference between the data of the reference curve and the original detection data is determined, and the step of determining the gas concentration corresponding to the difference through the pre-built gas concentration model is performed to obtain the gas concentration in the space to be detected.
[0029] Optionally, the step of determining the difference between the data of the reference curve and the original detection data based on the residual difference includes:
[0030] The sum of the remaining differences is calculated to obtain the difference between the data of the reference curve and the original detection data.
[0031] Optionally, the step of calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position includes:
[0032] Within a third preset range near the peak position, the concave area of the raw data curve relative to the reference curve is calculated as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength.
[0033] Optionally, the gas concentration model is constructed by:
[0034] For each preset temperature, when emitting laser light of various laser wavelengths to the space to be detected, original calibration data is obtained, wherein the original calibration data is obtained when the gas concentration is known;
[0035] Removing the original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data, wherein the candidate calibration data is the original calibration data within the second preset range near a peak position in the original calibration data, where the peak position is a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by the gas;
[0036] performing the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;
[0037] calculating a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position;
[0038] A gas concentration model corresponding to the preset temperature is constructed based on the correspondence between the known gas concentration and the calibration difference.
[0039] Optionally, the step of constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference includes:
[0040] By polynomial linear regression, based on the corresponding relationship between the known gas concentration and the calibration difference, a gas concentration expression corresponding to the preset temperature is constructed.
[0041] Optionally, before the step of constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference, the method further includes:
[0042] If the number of frames of the acquired raw calibration data does not reach the second preset number, returning to the step of acquiring raw calibration data when emitting laser light of each laser wavelength to the space to be detected, wherein each frame of raw calibration data includes raw calibration data corresponding to each laser wavelength;
[0043] If the number of frames of the acquired original calibration data reaches the second preset number, sorting the second preset number of calibration differences;
[0044] The third number of calibration differences that are arranged at the front and the fourth number of calibration differences that are arranged at the back are removed to obtain the remaining calibration differences;
[0045] Based on the residual calibration difference, a calibration difference between the data of the calibration reference curve and the original calibration data is determined, and the step of constructing a gas concentration model corresponding to the preset temperature through the correspondence between the known gas concentration and the calibration difference is performed.
[0046] In a second aspect, an embodiment of the present application provides a device for determining gas concentration, the device comprising:
[0047] a detection data acquisition module, configured to acquire raw detection data when emitting laser light of various laser wavelengths to the space to be detected, wherein the raw detection data is determined based at least on the intensity of reflected light of the laser light of various laser wavelengths by the gas in the space to be detected;
[0048] a detection data removal module, configured to remove original detection data corresponding to a first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is original detection data within a second preset range near a peak position in the original detection data, the peak position being a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by gas in the space to be detected, and the second preset range includes the first preset range;
[0049] a first fitting module, configured to perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength;
[0050] a first difference determination module, configured to calculate the difference between the data of the reference curve and the original detection data within a third preset range near the peak position;
[0051] A concentration determination module is used to determine the gas concentration corresponding to the difference through a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration.
[0052] Optionally, the device further includes:
[0053] a second fitting module, configured to perform a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process;
[0054] The peak position determination module is used to determine the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength.
[0055] Optionally, the peak position determination module includes:
[0056] A quotient calculation submodule, for calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength;
[0057] The peak position determination submodule is used to take the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve as the peak position.
[0058] Optionally, the detection data removal module includes:
[0059] A first window establishment submodule is configured to establish a first window with a size of a second preset range centered on the peak position in the original detection data;
[0060] The detection data removal submodule is configured to remove the original detection data corresponding to a first preset range in the center of the first window from the original detection data of the first window to obtain remaining detection data.
[0061] Optionally, the first difference determination module includes:
[0062] A second window establishment submodule is configured to establish a second window with a size of a third preset range centered on the peak position in the original detection data;
[0063] A third window establishment submodule, configured to establish a third window with a size of a fourth preset range, with the peak position in the reference curve as the center;
[0064] The difference calculation submodule is used to calculate the difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window.
[0065] Optionally, the device further includes:
[0066] a first return module, configured to trigger the detection data acquisition module when the number of frames of acquired raw detection data does not reach a first preset number, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength;
[0067] a first sorting module, configured to sort the first preset number of differences when the number of frames of the acquired original detection data reaches the first preset number;
[0068] A first difference removal module is used to remove a first number of differences that are arranged at the front and a second number of differences that are arranged at the back to obtain remaining differences;
[0069] The second difference determination module is configured to determine the difference between the data of the reference curve and the original detection data based on the residual difference, and trigger the concentration determination module.
[0070] Optionally, the second difference determination module includes:
[0071] The difference determination submodule is used to calculate the sum of the remaining differences to obtain the difference between the data of the reference curve and the original detection data.
[0072] Optionally, the first difference determination module includes:
[0073] An area calculation submodule is configured to calculate, within a third preset range near the peak position, a concave area of the raw data curve relative to the reference curve as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength.
[0074] Optionally, the device further includes:
[0075] a calibration data acquisition module, configured to acquire original calibration data for each preset temperature when emitting laser light of various laser wavelengths to the space to be detected, wherein the original calibration data is acquired when the gas concentration is known;
[0076] a calibration data removal module, configured to remove original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data, wherein the candidate calibration data is original calibration data within a second preset range near a peak position in the original calibration data, where the peak position is a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by the gas;
[0077] a third fitting module, configured to perform the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;
[0078] a first calibration difference determination module, configured to calculate a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position;
[0079] The model building module is used to build a gas concentration model corresponding to the preset temperature according to the corresponding relationship between the known gas concentration and the calibration difference.
[0080] Optionally, the model building module includes:
[0081] The model building submodule is used to build a gas concentration expression corresponding to the preset temperature based on the corresponding relationship between the known gas concentration and the calibration difference through polynomial linear regression.
[0082] Optionally, the device further includes:
[0083] a second returning module, configured to trigger the calibration data acquiring module when the number of frames of the acquired original calibration data does not reach a second preset number, wherein each frame of original calibration data includes original calibration data corresponding to each laser wavelength;
[0084] a second sorting module, configured to sort the second preset number of calibration differences when the number of frames of the acquired original calibration data reaches the second preset number;
[0085] a second difference removal module, configured to remove the third number of calibration differences arranged in the front and the fourth number of calibration differences arranged in the back, to obtain remaining calibration differences;
[0086] The second calibration difference determination module is configured to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the residual calibration difference, and trigger the model construction module.
[0087] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0088] Memory for storing computer programs;
[0089] The processor is configured to implement any of the methods described in the first aspect above when executing a program stored in the memory.
[0090] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the methods described in the first aspect above.
[0091] Beneficial effects of the embodiments of the present application:
[0092] In the solution provided by an embodiment of the present application, when laser light of various wavelengths is emitted into a space to be inspected, an electronic device can obtain raw detection data, wherein the raw detection data is determined based at least on the reflected light intensity of the laser light of various wavelengths by the gas in the space to be inspected; remove the raw detection data corresponding to a first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is the raw detection data within a second preset range near a peak position in the raw detection data, where the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by absorption of the laser light by the gas in the space to be inspected, and the second preset range includes the first preset range; perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; calculate the difference between the data of the reference curve and the raw detection data within a third preset range near the peak position; determine the gas concentration corresponding to the difference using a pre-established gas concentration model to obtain the gas concentration in the space to be inspected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration. Since the remaining detection data does not include the raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the reference curve. Since the reference curve is generated by real-time fitting after each acquisition of raw detection data, rather than a pre-calibrated fixed curve, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration. Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0094] Figure 1 A flow chart of a method for determining gas concentration provided in an embodiment of the present application;
[0095] Figure 2 Based on Figure 1 A schematic diagram of a curve generated by a fitting process in the illustrated embodiment;
[0096] Figure 3 Based on Figure 1 A flow chart of a method for determining a peak position in the illustrated embodiment;
[0097] Figure 4 for Figure 3 A specific flow chart of step S302 in the embodiment shown;
[0098] Figure 5 for Figure 1 A specific flow chart of step S102 in the embodiment shown;
[0099] Figure 6 for Figure 1 A specific flow chart of step S104 in the embodiment shown;
[0100] Figure 7 Based on Figure 1 A flow chart of a difference removal method according to the illustrated embodiment;
[0101] Figure 8 Based on Figure 1 A flow chart of a method for constructing a gas concentration model according to the embodiment shown;
[0102] Figure 9 Based on Figure 1 Another flow chart of the difference removal method of the illustrated embodiment;
[0103] Figure 10 Based on Figure 1 A flow chart of a method for determining differences in the illustrated embodiment;
[0104] Figure 11 Based on Figure 1 Another flow chart of the method of constructing the gas concentration model of the illustrated embodiment;
[0105] Figure 12 Based on Figure 1 A flow chart of a method for determining gas concentration in the illustrated embodiment;
[0106] Figure 13 A schematic diagram of the structure of a device for determining gas concentration provided in an embodiment of the present application;
[0107] Figure 14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0108] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.
[0109] To improve the calculation accuracy of gas concentration, embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for determining gas concentration. A method for determining gas concentration provided by embodiments of the present application is first introduced below.
[0110] The method for determining gas concentration provided in the embodiments of the present application can be applied to any electronic device that needs to determine gas concentration, such as a gas detector, a gas alarm, etc., without specific limitation herein. For clarity of description, the electronic device will be referred to as such in the following text.
[0111] like Figure 1 As shown, a method for determining gas concentration includes:
[0112] S101, acquiring raw detection data when emitting lasers of various laser wavelengths at a space to be detected;
[0113] The original detection data is determined based at least on the reflected light intensity of the gas in the to-be-detected space to the laser beams of various laser wavelengths.
[0114] S102, removing original detection data corresponding to the first preset range from the candidate detection data to obtain remaining detection data;
[0115] Among them, the alternative detection data is the original detection data within a second preset range near the peak position of the original detection data, the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by the gas in the space to be detected absorbing the laser, and the second preset range includes the first preset range.
[0116] S103, performing a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength;
[0117] S104, calculating the difference between the data of the reference curve and the original detection data within a third preset range near the peak position;
[0118] S105 , determining the gas concentration corresponding to the difference through a pre-built gas concentration model, and obtaining the gas concentration in the space to be detected.
[0119] The gas concentration model is used to characterize the difference between the detection data and the data of the corresponding reference curve and the corresponding relationship between the gas concentrations.
[0120] As can be seen, in embodiments of the present application, the electronic device can obtain raw detection data by emitting laser light of various wavelengths into the space to be detected, wherein the raw detection data is determined based at least on the reflected light intensity of the laser light of various wavelengths by the gas in the space to be detected; remove the raw detection data corresponding to the first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is the raw detection data within a second preset range near a peak position in the raw detection data, where the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by the absorption of the laser light by the gas in the space to be detected, and the second preset range includes the first preset range; perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; calculate the difference between the data of the reference curve and the raw detection data within a third preset range near the peak position; determine the gas concentration corresponding to the difference using a pre-established gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration. Since the remaining detection data does not include the raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the reference curve. Since the reference curve is generated by real-time fitting after each acquisition of the original detection data, rather than a fixed curve calibrated in advance, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration.
[0121] When determining the gas concentration in the space to be detected, lasers of various wavelengths can be emitted into the space to be detected, and raw detection data can be acquired, i.e., step S101 is executed. The raw detection data is determined by the absorption intensity of the lasers of various wavelengths by the gas in the space to be detected, the hardware parameters of the laser emitter, the emission intensity of the laser generator, the temperature and humidity in the space to be detected, and the gas concentration in the space to be detected. Therefore, the raw detection data can represent the data collected when the gas concentration in the current space to be detected is a certain value.
[0122] Gas absorbs laser light of a specific wavelength, causing the reflected light intensity corresponding to that wavelength to attenuate. This wavelength position is referred to as the peak position. In step S102, the electronic device may identify the raw detection data within a second preset range near the peak position as candidate detection data. Next, the raw detection data corresponding to the first preset range is removed from the candidate detection data to obtain the remaining detection data. The second preset range may include the first preset range. For example, the first preset range may be 1 / 3, 1 / 4, or so forth, of the second preset range, which is all reasonable.
[0123] After obtaining the remaining detection data, the electronic device can perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength, that is, execute step S103. Figure 2 This is a schematic diagram of a curve generated by fitting processing. The fitting curve may be shown as the upper curve, and the lower curve may be a curve composed of original detection data.
[0124] Because the baseline curve data represents data collected in the absence of gas, while the raw detection data is collected in the presence of gas, to determine the gas concentration, the electronic device can calculate the difference between the baseline curve data and the raw detection data within a third preset range near the peak position, thereby executing step S104. The third preset range can be set based on actual needs and is not specifically limited here.
[0125] During the pre-calibration process, a gas concentration model can be constructed. This model can be used to characterize the relationship between the difference between the test data and the corresponding reference curve data and the gas concentration, specifically, how large the difference corresponds to a higher gas concentration. Specifically, the gas concentration model can be a gas concentration expression.
[0126] In this way, after calculating the difference between the data of the reference curve and the original detection data, the electronic device can determine the gas concentration corresponding to the difference through the pre-built gas concentration model, and obtain the gas concentration in the space to be detected, that is, execute step S105.
[0127] As can be seen, in the embodiment of the present application, since the remaining detection data does not include the original detection data near the peak position, a first fitting process can be performed on the remaining detection data to obtain a reference curve. Because the reference curve is generated by real-time fitting after each acquisition of the original detection data, rather than a fixed, pre-calibrated curve, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration.
[0128] As an implementation method of the present application, Figure 3 As shown, before the step of removing the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data, the method may further include:
[0129] S301, performing a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength;
[0130] To determine the peak position in the raw detection data, the electronic device may perform a preliminary fitting on the raw detection data, i.e., a second fitting process, to obtain a fitting curve of the raw detection data with respect to the laser wavelength. The second fitting process may have a lower accuracy than the first fitting process.
[0131] S302 : determining a peak position from the fitting curve based on a difference between original detection data corresponding to each laser wavelength and data of a fitting curve corresponding to the laser wavelength.
[0132] Since the difference between the original detection data corresponding to the peak position and the data of the fitting curve is large, the electronic device can determine the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength.
[0133] It can be seen that in the embodiment of the present application, the electronic device can perform a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process; based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength, the peak position is determined from the fitting curve. In this way, a linear fitting can be performed on the original detection data of the entire band by means of preliminary fitting. Taking advantage of the small proportion of depressions, the peak position can be roughly found. Then, based on the peak position, a small range is expanded to both sides, and the peak position can be avoided while narrowing the fitting range, thereby improving the fitting accuracy of the reference curve. The accuracy of peak position positioning can be improved through preliminary fitting. After the preliminary fitting, the remaining detection data is subjected to a secondary fitting by excluding the center and narrowing the range, so as to obtain the reference curve.
[0134] As an implementation method of the present application, Figure 4 As shown, the step of determining the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength may include:
[0135] S401, calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength;
[0136] Since the quotient between two data can reflect the degree of difference between the two data, the electronic device can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength.
[0137] S402 , taking the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve as the peak position.
[0138] After obtaining the quotient values corresponding to the respective laser wavelengths, the electronic device may use the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient values in the fitting curve as the peak position.
[0139] Specifically, if the numerator of the quotient is the original detection data and the denominator is the data of the fitted curve, then the wavelength position of the laser wavelength corresponding to the maximum value in the quotient can be used as the wavelength position of the fitted curve. If the numerator of the quotient is the data of the fitted curve and the denominator is the original detection data, then the wavelength position of the laser wavelength corresponding to the minimum value in the quotient can be used as the wavelength position of the fitted curve.
[0140] It can be seen that in the embodiment of the present application, the electronic device can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength; and the wavelength position corresponding to the laser wavelength corresponding to the maximum value in the quotient in the fitting curve is used as the peak position. Since the size of the quotient between two data can reflect the degree of difference between the two data, the electronic device can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength. Furthermore, based on the specific calculation method of the quotient, the wavelength position corresponding to the laser wavelength corresponding to the maximum or minimum quotient in the fitting curve is used as the peak position. In this way, the accuracy of peak finding can be improved.
[0141] As an implementation method of the present application, Figure 5 As shown, the above step of removing the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data may include:
[0142] S501, establishing a first window with a size of a second preset range, with the peak position in the original detection data as the center;
[0143] After determining the peak position, the electronic device can establish a first window with a size of a second preset range centered on the peak position in the original detection data. The original detection data included in the first window is the aforementioned candidate detection data.
[0144] S502 : Remove the original detection data corresponding to a first preset range in the center of the first window from the original detection data of the first window to obtain remaining detection data.
[0145] In order to remove the original detection data near the peak position, the electronic device may remove the original detection data corresponding to the first preset range in the center of the first window from the original detection data of the first window to obtain the remaining detection data.
[0146] For example, assuming that the first preset range is 1 / 4 of the second preset range, the electronic device may remove the original detection data in the center 1 / 4 of the second preset range to obtain the remaining detection data.
[0147] As can be seen, in the embodiment of the present application, the electronic device can establish a first window with a size of a second preset range centered at the peak position in the raw detection data; and remove the raw detection data corresponding to the first preset range at the center of the first window from the raw detection data in the first window to obtain the remaining detection data. By establishing the first window and the second window, the raw detection data near the peak position can be quickly removed to obtain the remaining detection data.
[0148] As an implementation method of the present application, Figure 6 As shown, the step of calculating the difference between the data of the reference curve and the original detection data in the third preset range near the peak position may include:
[0149] S601, establishing a second window with a size of a third preset range, with the peak position in the original detection data as the center;
[0150] In order to select the original detection data near the peak position, the electronic device may establish a second window with a size of a third preset range centered on the peak position in the original detection data.
[0151] S602, establishing a third window with a size of a fourth preset range, with the peak position in the reference curve as the center;
[0152] To select data of the reference curve near the peak position, the electronic device can establish a third window with a size of a fourth preset range centered on the peak position of the reference curve. The fourth preset range can be the same as or different from the third preset range, which is reasonable.
[0153] S603: Calculate the difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window.
[0154] After establishing the second and third windows, the electronic device may calculate the difference between the raw detection data in the second window and the data of the reference curve corresponding to the wavelength position in the third window. Specifically, for each wavelength position in the overlapping portion between the second and third windows, the electronic device may calculate the difference between the raw detection data corresponding to the wavelength position and the data of the reference curve corresponding to the wavelength position.
[0155] As can be seen, in this embodiment of the present application, the electronic device can establish a second window with a size within a third preset range centered on the peak position in the raw detection data; establish a third window with a size within a fourth preset range centered on the peak position in the reference curve; and calculate the difference between the raw detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window. In this way, the difference between the raw detection data and the data of the reference curve can be calculated quickly and accurately.
[0156] As an implementation method of the present application, Figure 7 As shown, before the step of determining the gas concentration corresponding to the difference by using the pre-built gas concentration model to obtain the gas concentration in the space to be detected, the method may further include:
[0157] S701, determining whether the number of frames of the acquired original detection data reaches a first preset number; if not, executing step S702; if yes, executing step S703;
[0158] To improve the accuracy of gas concentration calculations, the electronic device may cyclically collect a first preset number of frames of raw detection data. In step S701, the electronic device may determine whether the number of frames of acquired raw detection data has reached the first preset number, thereby determining whether to continue subsequent processing. Each frame of raw detection data may include raw detection data corresponding to each laser wavelength.
[0159] S702, returning to the step of acquiring raw detection data when emitting lasers of various laser wavelengths to the space to be detected;
[0160] If the number of frames of the acquired raw detection data does not reach the first preset number, the electronic device may return to the above-mentioned step of acquiring raw detection data when emitting lasers of various laser wavelengths to the space to be detected, to continue acquiring raw detection data until the number of frames of the acquired raw detection data reaches the first preset number.
[0161] S703, sorting the first preset number of differences;
[0162] Since each frame of raw detection data corresponds to a difference between the data of the reference curve and the raw detection data, when the number of frames of raw detection data reaches a first preset number, the number of differences obtained is also the first preset number. Since large or small differences may have a large error, the electronic device can sort the first preset number of differences and subsequently remove the smaller or larger differences.
[0163] S704: remove the first number of differences that are at the front and the second number of differences that are at the back to obtain the remaining differences;
[0164] To remove differences with large errors, the electronic device may remove a first number of differences from the front and a second number of differences from the back to obtain remaining differences. The first numbers may be the same or different, which is reasonable.
[0165] In one embodiment, the electronic device may remove a preset proportion of the first differences and a preset proportion of the last differences to obtain the remaining differences. For example, assuming the preset proportion is 1 / 3, the electronic device may remove the first 1 / 3 of the differences and the last 1 / 3 of the differences to obtain the middle 1 / 3 of the differences as the remaining differences.
[0166] S705, based on the residual difference, determining the difference between the data of the reference curve and the original detection data, and executing the step of determining the gas concentration corresponding to the difference through the pre-built gas concentration model to obtain the gas concentration in the space to be detected.
[0167] After obtaining the residual difference, the electronic device can determine the difference between the data of the baseline curve and the original detection data based on the residual difference, and execute the above-mentioned steps of determining the gas concentration corresponding to the difference through the pre-built gas concentration model to obtain the gas concentration in the space to be detected.
[0168] In one embodiment, the electronic device may calculate the sum of the remaining differences to obtain the difference between the data of the reference curve and the original detection data. In another embodiment, the electronic device may calculate the average of the remaining differences to obtain the difference between the data of the reference curve and the original detection data.
[0169] As can be seen, in this embodiment of the present application, if the number of frames of raw detection data obtained does not reach the first preset number, the electronic device can return to the step of obtaining raw detection data while emitting laser light of various laser wavelengths into the space to be inspected, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength. If the number of frames of raw detection data obtained reaches the first preset number, the electronic device can sort the first preset number of differences; remove the first number of differences that are ranked first and the second number of differences that are ranked last to obtain remaining differences; based on the remaining differences, determine the difference between the data of the baseline curve and the raw detection data, and perform the step of determining the gas concentration corresponding to the difference using a pre-built gas concentration model to obtain the gas concentration in the space to be inspected. Because both large and small differences may have significant errors, the electronic device can sort the first preset number of differences and then remove the smaller and larger differences to obtain the remaining differences. In this way, by screening multiple differences, the accuracy of gas concentration calculation can be further improved.
[0170] As an implementation of an embodiment of the present application, the step of determining the difference between the data of the reference curve and the original detection data based on the residual difference may include:
[0171] The sum of the remaining differences is calculated to obtain the difference between the data of the reference curve and the original detection data.
[0172] After obtaining the residual differences, the electronic device may calculate the sum of the residual differences to obtain the difference between the data of the reference curve and the original detection data.
[0173] It can be seen that in the embodiment of the present application, the electronic device can calculate the sum of the remaining differences to obtain the difference between the data of the reference curve and the original detection data. In this way, the difference between the data of the reference curve and the original detection data can be determined quickly and accurately.
[0174] As an implementation manner of an embodiment of the present application, the step of calculating the difference between the data of the reference curve and the original detection data within the third preset range near the peak position may include:
[0175] In a third preset range near the peak position, a concave area of the original data curve relative to the reference curve is calculated as a difference between the data of the reference curve and the original detection data.
[0176] The above raw data curve can be a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength. The calculation method of the above concave area can be specifically as follows:
[0177] The electronic device can calculate the logarithm of the quotient of the data of the reference curve corresponding to each wavelength position within the third preset range and the data of the original data curve, that is, log(data of the reference curve / data of the original data curve). This formula can also be expressed as log(data of the reference curve)-log(data of the original data curve), which can characterize the difference between the data of the reference curve and the data of the original data curve.
[0178] After calculating the logarithm corresponding to each wavelength position within the third preset range, the logarithm corresponding to each wavelength position can be integrated from the lower limit to the upper limit of the wavelength in the third preset range to obtain the concave area of the original data curve relative to the reference curve, which is used as the difference between the data of the reference curve and the original detection data.
[0179] As can be seen, in the embodiment of the present application, the electronic device can calculate the concave area of the raw data curve relative to the reference curve within a third preset range near the peak position as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength. Because the concave area can represent the degree of difference between the raw data curve and the reference curve, the electronic device can calculate the concave area of the raw data curve relative to the reference curve as the difference between the data of the reference curve and the raw detection data.
[0180] As an implementation method of the present application, Figure 8 As shown, the construction method of the above-mentioned gas concentration model may include:
[0181] S801, for each preset temperature, obtaining original calibration data when emitting laser light of various laser wavelengths into the space to be detected;
[0182] The process of building a gas concentration model is similar to the steps performed in the aforementioned gas concentration calculation process, except for the specific data used. For example, the gas concentration model construction process uses raw calibration data, while the gas concentration calculation process uses raw detection data. Therefore, in the following embodiments, each step of the gas concentration model construction process will not be described in detail. For details, please refer to the corresponding steps in the aforementioned gas concentration calculation process.
[0183] Since different gas concentration models are used at different temperatures, the electronic device can obtain original calibration data for each preset temperature by emitting laser light of various wavelengths to the detection space. The original calibration data can be obtained when the gas concentration is known.
[0184] In one embodiment, before executing step S802, the electronic device may further perform a second fitting process on the original calibration data to obtain a calibration fitting curve of the original calibration data with respect to the laser wavelength; based on the difference between the original calibration data corresponding to each laser wavelength and the data of the calibration fitting curve corresponding to the laser wavelength, the peak position is determined from the calibration fitting curve.
[0185] As a specific method of determining the peak position, the electronic device can calculate the quotient between the original calibration data corresponding to each laser wavelength and the data of the calibration fitting curve corresponding to the laser wavelength; and take the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the calibration fitting curve as the peak position.
[0186] S802, removing original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data;
[0187] After obtaining the original calibration data, the electronic device may remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data, wherein the candidate calibration data may be the original calibration data within the second preset range near the peak position in the original calibration data.
[0188] As an embodiment, the electronic device can establish a first window with a size of a second preset range centered on the peak position in the original calibration data; from the original calibration data of the first window, remove the original calibration data corresponding to the first preset range at the center of the first window to obtain the remaining calibration data.
[0189] S803, performing the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;
[0190] Next, the electronic device may perform a first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength.
[0191] S804, calculating a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position;
[0192] After obtaining the calibration reference curve, the electronic device can calculate the calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position.
[0193] In one embodiment, the electronic device can establish a second window with a size of a third preset range centered on the peak position in the original calibration data; establish a third window with a size of a fourth preset range centered on the peak position in the calibration reference curve; and calculate the calibration difference between the original calibration data in the second window and the data of the calibration reference curve at the corresponding wavelength position in the third window.
[0194] As a specific method for calculating the calibration difference, the electronic device can calculate the concave area of the original calibration data curve relative to the calibration reference curve within a third preset range near the peak position, and use this as the calibration difference between the data of the calibration reference curve and the original calibration data. The original calibration data curve can be a curve showing the relationship between the original calibration data and the laser wavelength within the third preset range.
[0195] S805 , constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference.
[0196] To establish a computational relationship between gas concentration and variance, the electronic device can construct a gas concentration model corresponding to the preset temperature using the correspondence between known gas concentration and calibrated variance. This allows for a gas concentration model to be derived for each preset temperature. In one embodiment, the electronic device can construct a gas concentration model using calibrated variances corresponding to the same gas concentration at different preset temperatures.
[0197] As can be seen, in the embodiment of the present application, the electronic device can obtain original calibration data for each preset temperature when emitting laser light of various laser wavelengths into the detection space, wherein the original calibration data is obtained when the gas concentration is known; remove the original calibration data corresponding to the first preset range from the alternative calibration data to obtain remaining calibration data, wherein the alternative calibration data is the original calibration data within a second preset range near the peak position of the original calibration data, where the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by the gas absorbing the laser; perform a first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength; calculate the calibration difference between the data of the calibration reference curve and the original calibration data within a third preset range near the peak position; and construct a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference. In this way, a gas concentration model corresponding to each preset temperature can be constructed relatively accurately.
[0198] As an implementation of an embodiment of the present application, the step of constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference may include:
[0199] By polynomial linear regression, based on the corresponding relationship between the known gas concentration and the calibration difference, a gas concentration expression corresponding to the preset temperature is constructed.
[0200] Since polynomial linear regression can be used to determine the correspondence between characteristic variables and target variables, the electronic device can construct a gas concentration expression corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference through polynomial linear regression.
[0201] As can be seen, in the embodiment of the present application, the electronic device can construct a gas concentration expression corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference through polynomial linear regression. In this way, the gas concentration expression corresponding to each preset temperature can be constructed quickly and accurately.
[0202] As an implementation method of the present application, Figure 9 As shown, before the step of constructing the gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference, the method may further include:
[0203] S901, determining whether the number of frames of the acquired original calibration data reaches a second preset number; if not, executing step S902; if yes, executing step S903;
[0204] To improve the accuracy of calculating the calibration difference, the electronic device can cyclically collect a second preset number of frames of raw calibration data. In step S901, the electronic device can determine whether the number of frames of acquired raw calibration data has reached the second preset number, thereby determining whether to continue subsequent processing. Each frame of raw calibration data can include raw calibration data corresponding to each laser wavelength. The second preset number can be set based on actual needs and is not specifically limited here.
[0205] S902, returning to the step of acquiring original calibration data when emitting lasers of various laser wavelengths in the space to be detected;
[0206] If the number of frames of the acquired original calibration data does not reach the second preset number, the electronic device may return to the above-mentioned step of acquiring the original calibration data when emitting lasers of various laser wavelengths to the space to be detected, to continue acquiring the original calibration data until the number of frames of the acquired original calibration data reaches the second preset number.
[0207] S903, sorting the second preset number of calibration differences;
[0208] If the number of frames of the acquired original calibration data reaches a second preset number, the electronic device may sort the second preset number of calibration differences.
[0209] S904: remove the third number of calibration differences that are arranged at the front and the fourth number of calibration differences that are arranged at the back to obtain remaining calibration differences;
[0210] Because both larger and smaller calibration differences may have large errors, the electronic device may remove the third number of calibration differences from the front and the fourth number of calibration differences from the back to obtain the remaining calibration differences. The third number may be equal to the first number, and the fourth number may be equal to the second number.
[0211] S905, based on the remaining calibration difference, determining the calibration difference between the data of the calibration reference curve and the original calibration data, and executing the step of constructing a gas concentration model corresponding to the preset temperature through the correspondence between the known gas concentration and the calibration difference.
[0212] Next, the electronic device can determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the obtained residual calibration difference. Specifically, the electronic device can calculate the sum of the residual calibration differences to obtain the calibration difference between the data of the calibration reference curve and the original calibration data.
[0213] Furthermore, the electronic device may execute the above-mentioned step of constructing a gas concentration model corresponding to the preset temperature through the correspondence between the known gas concentration and the calibration difference.
[0214] As an implementation method of the embodiment of the present application, a flow chart of a difference determination method can be as follows: Figure 10 As shown, the following steps may be specifically included:
[0215] S1001, single frame original detection data;
[0216] The electronic device can obtain a single frame of raw detection data.
[0217] S1002, fitting the entire data segment to obtain a fitting curve;
[0218] The electronic device can perform a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength.
[0219] S1003, calculating the quotient between the original detection data and the data of the fitting curve;
[0220] The electronic device may calculate a quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength.
[0221] S1004, peak search;
[0222] The electronic device may use the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve as the peak position.
[0223] S1005, establishing a first window centered on the peak position of the original detection data;
[0224] The electronic device may establish a first window with a size of a second preset range, centered at the peak position in the original detection data.
[0225] S1006, removing the original detection data in a first preset range at the center of the first window;
[0226] The electronic device may remove the original detection data corresponding to the first preset range in the center of the first window from the original detection data of the first window to obtain the remaining detection data.
[0227] S1007, fitting the remaining detection data to obtain a reference curve;
[0228] The electronic device may perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength;
[0229] S1008, establishing a second window with the peak position of the original detection data as the center, and establishing a third window with the peak position of the reference curve as the center;
[0230] The electronic device can establish a second window with a size of a third preset range centered on the peak position in the original detection data; and establish a third window with a size of a fourth preset range centered on the peak position in the reference curve.
[0231] S1009, calculating the difference between the original detection data in the second window and the data of the reference curve in the third window;
[0232] Next, the electronic device may calculate the difference between the original detection data in the second window and the data of the reference curve corresponding to the wavelength position in the third window.
[0233] S1010, store in cache.
[0234] The electronic device may store the calculated difference in a cache.
[0235] As an implementation method of the embodiment of the present application, a flow chart of the method for constructing the gas concentration model can be as follows: Figure 11 As shown, the following steps may be specifically included:
[0236] S1101, adjusting the preset temperature;
[0237] The electronic device can adjust the preset temperature to determine the gas concentration model at each preset temperature.
[0238] S1102, obtaining original calibration data at the preset temperature and calculating the calibration difference;
[0239] The electronic device can obtain the original calibration data at the preset temperature and calculate the calibration difference.
[0240] S1103, buffering calibration differences corresponding to a second preset number of frames of original calibration data;
[0241] The electronic device may repeatedly obtain a second preset number of frames of original calibration data at the preset temperature, calculate the calibration difference corresponding to each frame of original calibration data, and then cache the calibration differences corresponding to the second preset number of frames of original calibration data.
[0242] S1104: remove the third number of calibration differences that are arranged at the front and the fourth number of calibration differences that are arranged at the back to obtain remaining calibration differences;
[0243] Next, the electronic device may sort the calibration differences, remove the third number of calibration differences that are ranked first and the fourth number of calibration differences that are ranked last, and obtain remaining calibration differences.
[0244] S1105, summing the remaining calibration differences;
[0245] The electronic device may sum the remaining calibration differences to obtain a summed result.
[0246] S1106, the summation result and the preset temperature are transferred to the database; if the preset temperature traversal is complete, step S1107 is executed; if the preset temperature traversal is not complete, return to step S1101;
[0247] The electronic device may transfer the summation result and the preset temperature to a database to record the summation result and the preset temperature.
[0248] S1107, polynomial linear regression;
[0249] If the preset temperature traversal is completed, the electronic device can construct a gas concentration model corresponding to each preset temperature through polynomial linear regression based on the corresponding relationship between the known gas concentration and the calibration difference.
[0250] S1108, gas concentration model.
[0251] In this way, the electronic device can obtain the gas concentration model corresponding to each preset temperature.
[0252] As an implementation method of the embodiment of the present application, a flow chart of a method for determining gas concentration can be as follows: Figure 12 As shown, the following steps may be specifically included:
[0253] S1201, determining the difference between the data of the reference curve and the original detection data;
[0254] The electronic device may determine the difference between the data of the reference curve and the raw detection data.
[0255] S1202, obtaining differences corresponding to a first preset number of frames of original detection data;
[0256] In order to improve the calculation accuracy of the gas concentration, the electronic device may obtain the differences corresponding to the first preset number of frames of original detection data.
[0257] S1203: remove the first number of differences that are at the front and the second number of differences that are at the back to obtain the remaining differences;
[0258] The electronic device may sort the first preset number of differences, and remove the first number of differences that are at the front and the second number of differences that are at the back, to obtain remaining differences.
[0259] S1204, calculating the sum of the remaining differences to obtain a sum result;
[0260] Next, the electronic device can calculate the sum of the remaining differences to obtain a summation result.
[0261] S1205, inputting the summation result into the gas concentration model;
[0262] The electronics can input the summed result into a gas concentration model.
[0263] S1206, obtaining the current ambient temperature;
[0264] The electronic device can obtain the current ambient temperature and determine the gas concentration model corresponding to the current ambient temperature.
[0265] S1207, obtain the gas concentration.
[0266] In this way, the electronic device can obtain the gas concentration output by the gas concentration model corresponding to the current ambient temperature.
[0267] In the technical solution of this application, the operations involved in obtaining, storing, using, processing, transmitting, providing and disclosing user personal information are all carried out with the user's authorization.
[0268] Corresponding to the above-mentioned method for determining gas concentration, an embodiment of the present application further provides a device for determining gas concentration. The following describes a device for determining gas concentration provided in an embodiment of the present application.
[0269] like Figure 13 As shown, a device for determining gas concentration, the device comprising:
[0270] The detection data acquisition module 1301 is configured to acquire raw detection data when emitting laser light of various wavelengths to the space to be detected, wherein the raw detection data is determined based at least on the intensity of reflected light of the laser light of various wavelengths by the gas in the space to be detected;
[0271] The detection data removal module 1302 is configured to remove the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data, wherein the candidate detection data is the original detection data within a second preset range near a peak position in the original detection data, the peak position being the wavelength position corresponding to the attenuation of the reflected light intensity caused by the absorption of the laser by the gas in the space to be detected, and the second preset range includes the first preset range;
[0272] A first fitting module 1303 is configured to perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength;
[0273] A first difference determination module 1304 is configured to calculate the difference between the data of the reference curve and the original detection data within a third preset range near the peak position;
[0274] The concentration determination module 1305 is used to determine the gas concentration corresponding to the difference through a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration.
[0275] As can be seen, in embodiments of the present application, the electronic device can obtain raw detection data by emitting laser light of various wavelengths into the space to be detected, wherein the raw detection data is determined based at least on the reflected light intensity of the laser light of various wavelengths by the gas in the space to be detected; remove the raw detection data corresponding to the first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is the raw detection data within a second preset range near a peak position in the raw detection data, where the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by the absorption of the laser light by the gas in the space to be detected, and the second preset range includes the first preset range; perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; calculate the difference between the data of the reference curve and the raw detection data within a third preset range near the peak position; determine the gas concentration corresponding to the difference using a pre-established gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration. Since the remaining detection data does not include the raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the reference curve. Since the reference curve is generated by real-time fitting after each acquisition of the original detection data, rather than a fixed curve calibrated in advance, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration.
[0276] As an implementation of the embodiment of the present application, the above-mentioned device may further include:
[0277] a second fitting module, configured to perform a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process;
[0278] The peak position determination module is used to determine the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength.
[0279] As an implementation of an embodiment of the present application, the peak position determination module may include:
[0280] A quotient calculation submodule, for calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength;
[0281] The peak position determination submodule is used to take the wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve as the peak position.
[0282] As an implementation of the embodiment of the present application, the detection data removal module 1302 may include:
[0283] A first window establishment submodule is configured to establish a first window with a size of a second preset range centered on the peak position in the original detection data;
[0284] The detection data removal submodule is configured to remove the original detection data corresponding to a first preset range in the center of the first window from the original detection data of the first window to obtain remaining detection data.
[0285] As an implementation of the embodiment of the present application, the first difference determination module 1304 may include:
[0286] A second window establishment submodule is configured to establish a second window with a size of a third preset range centered on the peak position in the original detection data;
[0287] A third window establishment submodule, configured to establish a third window with a size of a fourth preset range, with the peak position in the reference curve as the center;
[0288] The difference calculation submodule is used to calculate the difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window.
[0289] As an implementation of the embodiment of the present application, the above-mentioned device may further include:
[0290] A first return module, configured to trigger the detection data acquisition module 1301 if the number of frames of acquired raw detection data does not reach a first preset number, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength;
[0291] a first sorting module, configured to sort the first preset number of differences when the number of frames of the acquired original detection data reaches the first preset number;
[0292] A first difference removal module is used to remove a first number of differences that are arranged at the front and a second number of differences that are arranged at the back to obtain remaining differences;
[0293] The second difference determination module is configured to determine the difference between the data of the reference curve and the original detection data based on the residual difference, and trigger the concentration determination module 1305 .
[0294] As an implementation of an embodiment of the present application, the second difference determination module may include:
[0295] The difference determination submodule is used to calculate the sum of the remaining differences to obtain the difference between the data of the reference curve and the original detection data.
[0296] As an implementation of the embodiment of the present application, the first difference determination module 1304 may include:
[0297] An area calculation submodule is configured to calculate, within a third preset range near the peak position, a concave area of the raw data curve relative to the reference curve as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength.
[0298] As an implementation of the embodiment of the present application, the above-mentioned device may further include:
[0299] a calibration data acquisition module, configured to acquire original calibration data for each preset temperature when emitting laser light of various laser wavelengths to the space to be detected, wherein the original calibration data is acquired when the gas concentration is known;
[0300] a calibration data removal module, configured to remove original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data, wherein the candidate calibration data is original calibration data within a second preset range near a peak position in the original calibration data, where the peak position is a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by the gas;
[0301] a third fitting module, configured to perform the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;
[0302] a first calibration difference determination module, configured to calculate a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position;
[0303] The model building module is used to build a gas concentration model corresponding to the preset temperature according to the corresponding relationship between the known gas concentration and the calibration difference.
[0304] As an implementation of the embodiment of the present application, the above-mentioned model building module may include:
[0305] The model building submodule is used to build a gas concentration expression corresponding to the preset temperature based on the corresponding relationship between the known gas concentration and the calibration difference through polynomial linear regression.
[0306] As an implementation of the embodiment of the present application, the above-mentioned device may further include:
[0307] a second returning module, configured to trigger the calibration data acquiring module when the number of frames of the acquired original calibration data does not reach a second preset number, wherein each frame of original calibration data includes original calibration data corresponding to each laser wavelength;
[0308] a second sorting module, configured to sort the second preset number of calibration differences when the number of frames of the acquired original calibration data reaches the second preset number;
[0309] a second difference removal module, configured to remove the third number of calibration differences arranged in the front and the fourth number of calibration differences arranged in the back, to obtain remaining calibration differences;
[0310] The second calibration difference determination module is configured to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the residual calibration difference, and trigger the model construction module.
[0311] The present application also provides an electronic device, such as Figure 14 Shown, including:
[0312] Memory 1401, used for storing computer programs;
[0313] The processor 1402 is configured to implement the method for determining the gas concentration described in any of the above embodiments when executing the program stored in the memory 1401 .
[0314] Furthermore, the electronic device may further include a communication bus and / or a communication interface, and the processor 1402, the communication interface, and the memory 1401 communicate with each other via the communication bus.
[0315] As can be seen, in embodiments of the present application, the electronic device can obtain raw detection data by emitting laser light of various wavelengths into the space to be detected, wherein the raw detection data is determined based at least on the reflected light intensity of the laser light of various wavelengths by the gas in the space to be detected; remove the raw detection data corresponding to the first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is the raw detection data within a second preset range near a peak position in the raw detection data, where the peak position is the wavelength position corresponding to the attenuation of the reflected light intensity caused by the absorption of the laser light by the gas in the space to be detected, and the second preset range includes the first preset range; perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; calculate the difference between the data of the reference curve and the raw detection data within a third preset range near the peak position; determine the gas concentration corresponding to the difference using a pre-established gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration. Since the remaining detection data does not include the raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the reference curve. Since the reference curve is generated by real-time fitting after each acquisition of the original detection data, rather than a fixed curve calibrated in advance, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration.
[0316] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.
[0317] The communication interface is used for communication between the above electronic device and other devices.
[0318] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one storage device located away from the processor.
[0319] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.
[0320] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for determining the gas concentration are implemented.
[0321] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any method for determining the gas concentration in the above embodiments.
[0322] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state drive (SSD).
[0323] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.
[0324] Each embodiment in this specification is described in a related manner. Similar portions between embodiments can be referenced to each other. Each embodiment focuses on the differences between other embodiments. In particular, the device, electronic device, computer-readable storage medium, and computer program product embodiments are generally similar to the method embodiments, so their descriptions are relatively simple. For related portions, reference can be made to the descriptions of the method embodiments.
[0325] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.
Claims
1. A method for determining gas concentration, characterized in that: The method comprises: In the case of emitting laser light of various wavelengths to the space to be detected, obtaining raw detection data, wherein the raw detection data is determined based at least on the reflected light intensity of the laser light of various wavelengths by the gas in the space to be detected; Removing original detection data corresponding to a first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is original detection data within a second preset range near a peak position in the original detection data, the peak position being a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by gas in the space to be detected, and the second preset range includes the first preset range; performing a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position; The gas concentration corresponding to the difference is determined by a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration.
2. The method according to claim 1, characterized in that Before the step of removing the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data, the method further includes: performing a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process; Based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength, the peak position is determined from the fitting curve.
3. The method according to claim 2, characterized in that The step of determining the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength includes: Calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength; The wavelength position corresponding to the laser wavelength corresponding to the maximum value of the quotient in the fitting curve is taken as the peak position.
4. The method according to claim 1, wherein The step of removing the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data includes: Establishing a first window with a size of a second preset range with the peak position in the original detection data as the center; The original detection data corresponding to a first preset range in the center of the first window is removed from the original detection data of the first window to obtain remaining detection data.
5. The method according to claim 1, wherein The step of calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position comprises: Establishing a second window with a size of a third preset range with the peak position in the original detection data as the center; Establishing a third window with a size of a fourth preset range with the peak position in the reference curve as the center; The difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window is calculated.
6. The method according to any one of claims 1 to 5, characterized in that Before the step of determining the gas concentration corresponding to the difference by using a pre-built gas concentration model to obtain the gas concentration in the space to be detected, the method further includes: If the number of frames of raw detection data obtained does not reach the first preset number, returning to the step of obtaining raw detection data when emitting laser light of each laser wavelength to the space to be detected, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength; If the number of frames of the acquired original detection data reaches the first preset number, sorting the first preset number of differences; The first number of differences at the front and the second number of differences at the back are removed to obtain the remaining differences; Based on the residual difference, the difference between the data of the reference curve and the original detection data is determined, and the step of determining the gas concentration corresponding to the difference through the pre-built gas concentration model is performed to obtain the gas concentration in the space to be detected.
7. The method according to claim 6, characterized in that The step of determining the difference between the data of the reference curve and the original detection data based on the residual difference comprises: The sum of the remaining differences is calculated to obtain the difference between the data of the reference curve and the original detection data.
8. The method according to any one of claims 1 to 5, characterized in that The step of calculating the difference between the data of the reference curve and the original detection data in a third preset range near the peak position comprises: Within a third preset range near the peak position, the concave area of the raw data curve relative to the reference curve is calculated as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength.
9. The method according to any one of claims 1 to 5, characterized in that The method for constructing the gas concentration model includes: For each preset temperature, when emitting laser light of various laser wavelengths to the space to be detected, original calibration data is obtained, wherein the original calibration data is obtained when the gas concentration is known; Removing the original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data, wherein the candidate calibration data is the original calibration data within the second preset range near a peak position in the original calibration data, where the peak position is a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by the gas; performing the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength; calculating a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position; A gas concentration model corresponding to the preset temperature is constructed based on the correspondence between the known gas concentration and the calibration difference.
10. The method according to claim 9, characterized in that The step of constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference includes: By polynomial linear regression, based on the corresponding relationship between the known gas concentration and the calibration difference, a gas concentration expression corresponding to the preset temperature is constructed.
11. The method according to claim 9, characterized in that Before the step of constructing a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference, the method further includes: If the number of frames of the acquired raw calibration data does not reach the second preset number, returning to the step of acquiring raw calibration data when emitting laser light of each laser wavelength to the space to be detected, wherein each frame of raw calibration data includes raw calibration data corresponding to each laser wavelength; If the number of frames of the acquired original calibration data reaches the second preset number, sorting the second preset number of calibration differences; The third number of calibration differences that are arranged at the front and the fourth number of calibration differences that are arranged at the back are removed to obtain the remaining calibration differences; Based on the residual calibration difference, a calibration difference between the data of the calibration reference curve and the original calibration data is determined, and the step of constructing a gas concentration model corresponding to the preset temperature through the correspondence between the known gas concentration and the calibration difference is performed.
12. A device for determining gas concentration, characterized in that: The device comprises: a detection data acquisition module, configured to acquire raw detection data when emitting laser light of various laser wavelengths to the space to be detected, wherein the raw detection data is determined based at least on the intensity of reflected light of the laser light of various laser wavelengths by the gas in the space to be detected; a detection data removal module, configured to remove original detection data corresponding to a first preset range from the candidate detection data to obtain remaining detection data, wherein the candidate detection data is original detection data within a second preset range near a peak position in the original detection data, the peak position being a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by gas in the space to be detected, and the second preset range includes the first preset range; a first fitting module, configured to perform a first fitting process on the remaining detection data to obtain a reference curve of the remaining detection data with respect to the laser wavelength; a first difference determination module, configured to calculate the difference between the data of the reference curve and the original detection data within a third preset range near the peak position; A concentration determination module is used to determine the gas concentration corresponding to the difference through a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected, wherein the gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of the corresponding reference curve and the gas concentration.
13. The device according to claim 12, characterized in that The device further comprises: a second fitting module, configured to perform a second fitting process on the original detection data to obtain a fitting curve of the original detection data with respect to the laser wavelength, wherein the accuracy of the second fitting process is lower than that of the first fitting process; a peak position determination module for determining the peak position from the fitting curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength; and / or, The peak position determination module includes: A quotient calculation submodule, for calculating the quotient between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to the laser wavelength; a peak position determination submodule, configured to use the wavelength position of the laser wavelength corresponding to the maximum value of the quotient in the fitting curve as the peak position; and / or, The detection data removal module includes: A first window establishment submodule is configured to establish a first window with a size of a second preset range centered on the peak position in the original detection data; a detection data removal submodule, configured to remove, from the original detection data of the first window, the original detection data corresponding to a first preset range in the center of the first window, to obtain remaining detection data; and / or The first difference determination module includes: A second window establishment submodule is configured to establish a second window with a size of a third preset range centered on the peak position in the original detection data; A third window establishment submodule, configured to establish a third window with a size of a fourth preset range, with the peak position in the reference curve as the center; a difference calculation submodule, configured to calculate the difference between the original detection data in the second window and the data of the reference curve at the corresponding wavelength position in the third window; and / or, The device further comprises: a first return module, configured to trigger the detection data acquisition module when the number of frames of acquired raw detection data does not reach a first preset number, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength; a first sorting module, configured to sort the first preset number of differences when the number of frames of the acquired original detection data reaches the first preset number; A first difference removal module is used to remove a first number of differences that are arranged at the front and a second number of differences that are arranged at the back to obtain remaining differences; a second difference determination module, configured to determine the difference between the data of the reference curve and the original detection data based on the residual difference, and trigger the concentration determination module; and / or, The second difference determination module includes: a difference determination submodule, configured to calculate the sum of the remaining differences to obtain the difference between the reference curve data and the original detection data; and / or, The first difference determination module includes: an area calculation submodule, configured to calculate, within a third preset range near the peak position, a concave area of the raw data curve relative to the reference curve as the difference between the data of the reference curve and the raw detection data, wherein the raw data curve is a curve showing the relationship between the raw detection data within the third preset range and the laser wavelength; and / or, The device further comprises: a calibration data acquisition module, configured to acquire original calibration data for each preset temperature when emitting laser light of various laser wavelengths to the space to be detected, wherein the original calibration data is acquired when the gas concentration is known; a calibration data removal module, configured to remove original calibration data corresponding to the first preset range from the candidate calibration data to obtain remaining calibration data, wherein the candidate calibration data is original calibration data within a second preset range near a peak position in the original calibration data, where the peak position is a wavelength position corresponding to attenuation of reflected light intensity caused by absorption of laser light by the gas; a third fitting module, configured to perform the first fitting process on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength; a first calibration difference determination module, configured to calculate a calibration difference between the data of the calibration reference curve and the original calibration data in a third preset range near the peak position; a model building module, configured to build a gas concentration model corresponding to the preset temperature based on a correspondence between a known gas concentration and the calibration difference; and / or, The model building module includes: a model building submodule for building a gas concentration expression corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference through polynomial linear regression; and / or, The device further comprises: a second returning module, configured to trigger the calibration data acquiring module when the number of frames of the acquired original calibration data does not reach a second preset number, wherein each frame of original calibration data includes original calibration data corresponding to each laser wavelength; a second sorting module, configured to sort the second preset number of calibration differences when the number of frames of the acquired original calibration data reaches the second preset number; a second difference removal module, configured to remove the third number of calibration differences arranged in the front and the fourth number of calibration differences arranged in the back, to obtain remaining calibration differences; The second calibration difference determination module is configured to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the residual calibration difference, and trigger the model construction module.
14. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 11 when executing a program stored in a memory.
15. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Fit dynamic peak searching method for detecting gas concentration by laser
CN101915748A
Precision control method and system for photoelectric sensor of industrial internet and electronic equipment
CN115687877A
Gas concentration inversion method and device, storage medium and electronic equipment
CN117451671A
Alkane gas background spectrum baseline reconstruction system and method
CN118090650A
Chromatograph baseline real-time automatic correction method and system and electronic equipment
CN119915955A