A method and device for determining a gas concentration, an electronic device, and a storage medium

By removing detection data near the peak position in gas detection, performing first fitting processing and difference calculation, and utilizing a pre-built gas concentration model, the problem of low gas concentration calculation accuracy is solved, and higher detection accuracy is achieved.

CN120507296BActive Publication Date: 2026-07-31HANGZHOU HIKFIRE TECH LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HANGZHOU HIKFIRE TECH LTD
Filing Date
2025-05-27
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

In existing technologies, the accuracy of gas concentration calculation is low due to the variety of influencing factors during data acquisition.

Method used

By emitting lasers of various wavelengths in the space to be detected, the original detection data is obtained. The detection data near the peak position is removed, and the first fitting process is performed to generate a reference curve. The difference between the reference curve and the original detection data near the peak position is calculated, and the gas concentration is determined using a pre-built gas concentration model.

Benefits of technology

The accuracy of gas concentration calculation has been improved by replacing the pre-calibrated fixed curve with a benchmark curve generated by real-time fitting, thereby enhancing the accuracy of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120507296B_ABST
    Figure CN120507296B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, electronic device, and storage medium for determining gas concentration, relating to the field of gas detection technology. The electronic device can acquire raw detection data; remove raw detection data corresponding to a first preset range from candidate detection data to obtain remaining detection data; 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; and determine the gas concentration corresponding to the difference using a pre-constructed gas concentration model to obtain the gas concentration in the space to be detected. Since the reference curve is generated in real-time after each acquisition of raw detection data, rather than being a pre-calibrated fixed curve, the fitting accuracy of the reference curve can be improved, thereby improving the calculation accuracy of the gas concentration.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of gas detection technology, and in particular to a method, apparatus, electronic device and storage medium for determining gas concentration. Background Technology

[0002] In industrial production and household gas usage scenarios, it is necessary to detect gas concentration to determine the presence of potential gas leaks and safety hazards. Current technologies involve using a laser emitter to project a laser beam into the target area. Gas molecules absorb the specific wavelength of laser light, causing a decrease in the intensity of the reflected light, which in turn attenuates the original detection data. The original detection data is then fitted to obtain a raw data curve. The higher the gas concentration, the more pronounced the dip in the raw data curve. By calculating the area of ​​the dip between the raw data curve and a pre-calibrated baseline curve, the gas concentration can be determined.

[0003] Because many factors influence data acquisition, such as temperature, airflow randomness, and hardware fluctuations, calculating the area of ​​the concave region based on a pre-calibrated baseline curve will result in lower accuracy in calculating gas concentration. Summary of the Invention

[0004] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for determining gas concentration, so as to improve the accuracy of gas concentration calculation. The specific technical solution is as follows:

[0005] In a first aspect, embodiments of this application provide a method for determining gas concentration, the method comprising:

[0006] When lasers of various wavelengths are emitted into the space to be tested, raw detection data is acquired, wherein the raw detection data is determined at least based on the intensity of reflected light from the gas in the space to be tested for each laser wavelength.

[0007] From the candidate detection data, remove the original detection data corresponding to the first preset range to obtain the remaining detection data. The candidate detection data is the original detection data within the second preset range that is near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser by the gas in the space to be detected. The second preset range includes the first preset range.

[0008] The remaining detection data is subjected to a first fitting process to obtain a baseline curve of the remaining detection data with respect to the laser wavelength;

[0009] Within a third preset range near the peak position, the difference between the data of the reference curve and the original detection data is calculated;

[0010] By using a pre-built gas concentration model, the gas concentration corresponding to the difference is determined, and the gas concentration in the space to be detected is obtained. The gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of its corresponding benchmark curve and the gas concentration.

[0011] Optionally, 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:

[0012] The original detection data is subjected to a second fitting process 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] The peak position is determined 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 that laser wavelength.

[0014] Optionally, the step of determining the peak position from the fitted curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength includes:

[0015] Calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength;

[0016] The wavelength position of the laser wavelength corresponding to the extreme value in the quotient is taken as the wavelength position in the fitted curve.

[0017] Optionally, 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:

[0018] A first window with a size of a second preset range is established, centered on the peak position in the original detection data;

[0019] Remove the original detection data corresponding to the first preset range at the center of the first window from the original detection data of the first window to obtain the remaining detection data.

[0020] Optionally, the step of calculating the difference between the data of the reference curve and the original detection data within a third preset range near the peak position includes:

[0021] A second window with a size of a third preset range is established, centered on the peak position in the original detection data;

[0022] A third window with a size of a fourth preset range is established, centered on the peak position in the reference curve;

[0023] 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.

[0024] Optionally, before 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 detected, the method further includes:

[0025] If the number of frames of the acquired raw detection data does not reach the first preset number, return to the step of acquiring raw detection data when lasers of various wavelengths are emitted in 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 raw detection data reaches the first preset number, sort the first preset number of differences;

[0027] Remove the first number of differences at the very beginning and the second number of differences at the very end to obtain the remaining differences;

[0028] Based on the remaining difference, the difference between the data of the baseline curve and the original detection data is determined, and the step of determining the gas concentration corresponding to the difference by using a 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 baseline curve data and the original detection data based on the remaining difference includes:

[0030] The sum of the remaining differences is calculated to obtain the difference between the baseline curve data 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 within a third preset range near the peak position includes:

[0032] Within a third preset range near the peak position, the area of ​​the depression of the original data curve relative to the reference curve is calculated as the difference between the data of the reference curve and the original detection data, wherein the original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range.

[0033] Optionally, the method for constructing the gas concentration model includes:

[0034] For each preset temperature, raw calibration data is obtained when lasers of various wavelengths are emitted into the space to be tested. The raw calibration data is obtained when the gas concentration is known.

[0035] From the candidate calibration data, remove the original calibration data corresponding to the first preset range to obtain the remaining calibration data. The candidate calibration data is the original calibration data within the second preset range that is near the peak position in the original calibration data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by gas absorption of laser.

[0036] The remaining calibration data is subjected to the first fitting process to obtain the calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;

[0037] Within a third preset range near the peak position, calculate the calibration difference between the data of the calibration reference curve and the original calibration data;

[0038] By using the known correspondence between gas concentration and the calibration difference, a gas concentration model corresponding to the preset temperature is constructed.

[0039] Optionally, the step of constructing a gas concentration model corresponding to the preset temperature based on the known correspondence between gas concentration and the calibration difference includes:

[0040] By using polynomial linear regression, an expression for the gas concentration corresponding to the preset temperature is constructed based on the known correspondence between gas concentration and the calibration difference.

[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, return to the step of acquiring raw calibration data when lasers of various wavelengths are emitted in 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 raw calibration data reaches the second preset number, sort the second preset number of calibration differences;

[0044] Remove the third number of calibration differences from the top and the fourth number of calibration differences from the bottom to obtain the remaining calibration differences;

[0045] Based on the remaining calibration difference, determine the calibration difference between the data of the calibration reference curve and the original calibration data, and perform the step of constructing a gas concentration model corresponding to the preset temperature by using the known correspondence between the gas concentration and the calibration difference.

[0046] Secondly, embodiments of this application provide a device for determining gas concentration, the device comprising:

[0047] The detection data acquisition module is used to acquire raw detection data when lasers of various wavelengths are emitted in the space to be detected, wherein the raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength.

[0048] The detection data removal module is used to remove the original detection data corresponding to a first preset range from the candidate detection data to obtain the remaining detection data. The candidate detection data is the original detection data within a second preset range that is near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser by the gas in the space to be detected. The second preset range includes the first preset range.

[0049] The first fitting module is used 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] The first difference determination module is used 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] The concentration determination module is used to determine the gas concentration corresponding to the difference by using a pre-built gas concentration model, thereby obtaining the gas concentration in the space to be detected. The gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of its corresponding benchmark curve and the gas concentration.

[0052] Optionally, the device further includes:

[0053] The second fitting module is used 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 that laser wavelength.

[0055] Optionally, the peak position determination module includes:

[0056] The quotient calculation submodule is used to calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength.

[0057] The peak position determination submodule is used to determine the wavelength position of the laser wavelength corresponding to the extreme value in the quotient as the peak position in the fitted curve.

[0058] Optionally, the detection data removal module includes:

[0059] The first window creation submodule is used to create 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 used to 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, so as to obtain the remaining detection data.

[0061] Optionally, the first difference determination module includes:

[0062] The second window creation submodule is used to create a second window with a size of a third preset range, centered on the peak position in the original detection data.

[0063] The third window creation submodule is used to create a third window with a size of a fourth preset range, centered on the peak position in the reference curve.

[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] The first return module is used to trigger the detection data acquisition module when the number of frames of the acquired raw detection data has not reached a first preset number, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength.

[0067] The first sorting module is used to sort the first preset number of differences when the number of frames of the acquired raw detection data reaches the first preset number.

[0068] The first difference removal module is used to remove the first number of differences at the beginning and the second number of differences at the end to obtain the remaining differences;

[0069] The second difference determination module is used to determine the difference between the data of the baseline curve and the original detection data based on the remaining difference, and to 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 baseline curve data and the original detection data.

[0072] Optionally, the first difference determination module includes:

[0073] An area calculation submodule is used to calculate the area of ​​the depression of the original 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 original detection data, wherein the original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range.

[0074] Optionally, the device further includes:

[0075] The calibration data acquisition module is used to acquire raw calibration data for each preset temperature, under the condition that lasers of various wavelengths are emitted into the space to be tested, wherein the raw calibration data is acquired under the condition that the gas concentration is known;

[0076] The calibration data removal module is used to remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data. The candidate calibration data is the original calibration data within the second preset range that is near the peak position in the original calibration data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by gas absorption of laser.

[0077] The third fitting module is used to perform the first fitting process on the remaining calibration data to obtain the calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;

[0078] The first calibration difference determination module is used to 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.

[0079] The model building module is used to construct a gas concentration model corresponding to the preset temperature by using the correspondence between the known gas concentration and the calibration difference.

[0080] Optionally, the model building module includes:

[0081] The model building submodule is used to construct an expression for the gas concentration corresponding to the preset temperature based on the known correspondence between the gas concentration and the calibration difference through multinomial linear regression.

[0082] Optionally, the device further includes:

[0083] The second return module is used to trigger the calibration data acquisition module when the number of frames of the acquired raw calibration data has not reached the second preset number, wherein each frame of raw calibration data includes raw calibration data corresponding to each laser wavelength.

[0084] The second sorting module is used 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] The second difference removal module is used to remove the first three number of calibration differences and the last four number of calibration differences to obtain the remaining calibration differences.

[0086] The second calibration difference determination module is used to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the remaining calibration difference, and to trigger the model building module.

[0087] Thirdly, embodiments of this application provide an electronic device, including:

[0088] Memory, used to store computer programs;

[0089] When a processor executes a program stored in memory, it implements any of the methods described in the first aspect above.

[0090] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the methods described in the first aspect above.

[0091] Beneficial effects of the embodiments in this application:

[0092] In the solution provided in this application embodiment, when lasers of various wavelengths are emitted into the space to be detected, the electronic device can acquire raw detection data. The raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength. From the candidate detection data, raw detection data corresponding to a first preset range is removed to obtain remaining detection data. The candidate detection data is raw detection data within a second preset range near the peak position in the raw detection data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by the absorption of laser light by the gas in the space to be detected. The second preset range includes the first preset range. A first fitting process is performed on the remaining detection data to obtain a baseline curve of the remaining detection data with respect to the laser wavelength. Within a third preset range near the peak position, the difference between the data of the baseline curve and the raw detection data is calculated. Using a pre-constructed gas concentration model, the gas concentration corresponding to the difference is determined to obtain the gas concentration in the space to be detected. The gas concentration model is used to characterize the relationship between the difference between the detection data and the corresponding baseline curve data and the gas concentration. Since the remaining detection data does not include raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the baseline curve. Because the baseline curve is generated in real-time after each acquisition of raw detection data, rather than being a pre-calibrated, fixed curve, the fitting accuracy of the baseline curve can be improved, thereby increasing the accuracy of the gas concentration calculation. Of course, implementing any product or method of this application does not necessarily require achieving all of the advantages described above simultaneously. Attached Figure Description

[0093] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other embodiments can be obtained based on these drawings.

[0094] Figure 1 A flowchart illustrating a method for determining gas concentration provided in an embodiment of this application;

[0095] Figure 2 For based on Figure 1 A schematic diagram of a curve generated by fitting processing in the illustrated embodiment;

[0096] Figure 3 For based on Figure 1 A flowchart illustrating a method for determining the peak position in the illustrated embodiment;

[0097] Figure 4 for Figure 3 A specific flowchart of step S302 in the illustrated embodiment;

[0098] Figure 5 for Figure 1 A specific flowchart of step S102 in the illustrated embodiment;

[0099] Figure 6 for Figure 1 A specific flowchart of step S104 in the illustrated embodiment;

[0100] Figure 7 For based on Figure 1 A flowchart of a difference removal method in the illustrated embodiment;

[0101] Figure 8 For based on Figure 1 A flowchart illustrating a method for constructing a gas concentration model in the illustrated embodiment;

[0102] Figure 9 For based on Figure 1 Another flowchart of the difference removal method in the illustrated embodiment;

[0103] Figure 10 For based on Figure 1 A flowchart illustrating a method for determining differences in the illustrated embodiment;

[0104] Figure 11 For based on Figure 1 Another flowchart illustrating the construction method of the gas concentration model in the illustrated embodiment;

[0105] Figure 12 For based on Figure 1 A flowchart illustrating a method for determining gas concentration in the embodiment shown;

[0106] Figure 13 A schematic diagram of a gas concentration determination device provided in an embodiment of this application;

[0107] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0108] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art based on this application are within the scope of protection of this application.

[0109] To improve the accuracy of gas concentration calculation, embodiments of this application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for determining gas concentration. The method for determining gas concentration provided in this application embodiment will be described first below.

[0110] The method for determining gas concentration provided in this 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 limitations. For clarity, it will be referred to as an electronic device herein.

[0111] like Figure 1 As shown, a method for determining gas concentration includes:

[0112] S101: Acquire raw detection data when lasers of various wavelengths are emitted into the space to be detected;

[0113] The original detection data is determined at least based on the intensity of reflected light from the gas in the space to be detected for each laser wavelength.

[0114] S102, Remove the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data;

[0115] The alternative detection data are the original detection data within a second preset range near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser light by the gas in the space to be detected. The second preset range includes the first preset range.

[0116] S103, 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;

[0117] S104, within a third preset range near the peak position, calculate the difference between the data of the reference curve and the original detection data;

[0118] S105, by using a pre-built gas concentration model, determine the gas concentration corresponding to the difference, and obtain 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 corresponding baseline curve data, and the correspondence between the gas concentrations.

[0120] As can be seen, in this embodiment, the electronic device can acquire raw detection data when emitting lasers of various wavelengths into the space to be detected. The raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength. From the candidate detection data, raw detection data corresponding to a first preset range is removed to obtain remaining detection data. The candidate detection data is raw detection data within a second preset range near the peak position in the raw detection data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by the absorption of laser light by the gas in the space to be detected. The second preset range includes the first preset range. A first fitting process is performed on the remaining detection data to obtain a baseline curve of the remaining detection data with respect to the laser wavelength. Within a third preset range near the peak position, the difference between the data of the baseline curve and the raw detection data is calculated. Using a pre-constructed gas concentration model, the gas concentration corresponding to the difference is determined to obtain the gas concentration in the space to be detected. The gas concentration model is used to characterize the relationship between the difference between the detection data and the corresponding baseline curve data and the gas concentration. Since the remaining detection data does not include raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the baseline curve. Since the baseline curve is generated in real time after each acquisition of raw detection data, rather than a pre-calibrated fixed curve, the fitting accuracy of the baseline curve can be improved, thereby improving the calculation accuracy of the gas concentration.

[0121] When it is necessary to determine the gas concentration in the space to be tested, lasers of various wavelengths can be emitted into the space to be tested, and raw detection data can be obtained, i.e., step S101 can be executed. The raw detection data is determined by the absorption intensity of the gas in the space to be tested for each laser wavelength, the hardware parameters of the laser emitter, the emitted intensity of the laser generator, the temperature and humidity in the space to be tested, and the gas concentration in the space to be tested. Therefore, the raw detection data can characterize what the collected data looks like when the gas concentration in the current space to be tested is a certain value.

[0122] The gas absorbs laser light of a specific wavelength, causing a decrease in the intensity of the reflected light corresponding to that wavelength; this wavelength position is the peak position. In step S102, the electronic device can identify 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 could be 1 / 3, 1 / 4, etc., of the second preset range; these are 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, i.e., execute step S103. For example, Figure 2 This is a schematic diagram of a curve generated through fitting processing. The fitted curve can be as shown in the curve above, while the curve below can be a curve composed of the original detection data.

[0124] Since the baseline curve data represents data collected in the absence of gas, while the original detection data represents data collected in the presence of gas, in order to determine the gas concentration, the electronic device can calculate the difference between the baseline curve data and the original detection data within a third preset range near the peak position, i.e., execute step S104. The third preset range can be set according to actual needs and is not specifically limited here.

[0125] During the pre-calibration process, a gas concentration model can be constructed. This model characterizes the relationship between the difference between the detected data and its corresponding baseline curve, and the gas concentration; that is, how much difference corresponds to how high a gas concentration. Specifically, the gas concentration model can be expressed as a gas concentration expression.

[0126] In this way, after calculating the difference between the baseline curve data 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 this embodiment of the application, since the remaining detection data does not include the original detection data near the peak position, the remaining detection data can be subjected to a first fitting process to obtain a baseline curve. Because the baseline curve is generated in real-time after each acquisition of the original detection data, rather than being a pre-calibrated, fixed curve, the fitting accuracy of the baseline curve can be improved, thereby improving the calculation accuracy of the gas concentration.

[0128] As one implementation method of this application, such as 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, 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;

[0130] To determine the peak positions in the original detection data, the electronic device can perform a preliminary fitting, or 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. The accuracy of the second fitting process can be lower than that of the first fitting process.

[0131] S302, Based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitting curve corresponding to that laser wavelength, determine the peak position from the fitting curve.

[0132] Since there is a large difference between the original detection data corresponding to the peak position and the data of the fitted curve, the electronic device can determine the peak position from the fitted curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength.

[0133] As can be seen, in this embodiment, 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. 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 that laser wavelength, the peak position is determined from the fitting curve. In this way, linear fitting can be performed on the original detection data across the entire wavelength band through preliminary fitting. Taking advantage of the small proportion of depressions, the peak position is roughly identified. Then, based on the peak position, a small range is expanded to both sides, narrowing the fitting range while avoiding the peak position, thereby improving the fitting accuracy of the reference curve. Preliminary fitting can improve the accuracy of peak position localization. After preliminary fitting, by excluding the center and narrowing the range, a second fitting is performed on the remaining detection data to obtain the reference curve.

[0134] As one implementation method of this application, such as Figure 4 As shown, the step of determining the peak position from the fitted curve based on the difference between the original detection data corresponding to each laser wavelength and the fitted curve corresponding to that laser wavelength may include:

[0135] S401, calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength;

[0136] Since the quotient between two data points can reflect the degree of difference between them, electronic devices can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength.

[0137] S402, the wavelength position of the laser wavelength corresponding to the extreme value in the quotient is taken as the wavelength position in the fitted curve.

[0138] After obtaining the quotient values ​​corresponding to each laser wavelength, the electronic device can use the wavelength position of the laser wavelength corresponding to the extreme value in the quotient in the fitted curve as the peak position.

[0139] Specifically, if the numerator of the quotient is the original detection data and the denominator is the data from the fitted curve, then the wavelength position of the laser corresponding to the maximum value in the quotient can be taken as the peak position in the fitted curve. If the numerator of the quotient is the data from the fitted curve and the denominator is the original detection data, then the wavelength position of the laser corresponding to the minimum value in the quotient can be taken as the peak position in the fitted curve.

[0140] As can be seen, in this embodiment, the electronic device can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength; the wavelength position of the laser wavelength corresponding to the maximum or minimum value of the quotient in the fitted curve is taken as the peak position. Since the magnitude of the quotient between two data points can reflect the degree of difference between the two data points, the electronic device can calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength. Furthermore, based on the specific calculation method of the quotient, the wavelength position of the laser wavelength corresponding to the maximum or minimum value of the quotient in the fitted curve is taken as the peak position. This can improve the accuracy of peak finding.

[0141] As one implementation method of this application, such as Figure 5 As shown, 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 may include:

[0142] S501, with the peak position in the original detection data as the center, establish a first window with a size of a second preset range;

[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 alternative detection data.

[0144] S502, remove the original detection data corresponding to the first preset range at the center of the first window from the original detection data of the first window to obtain the remaining detection data.

[0145] In order to remove the raw detection data near the peak position, the electronic device can remove the raw detection data corresponding to the first preset range in the center of the first window from the raw detection data in the first window to obtain the remaining detection data.

[0146] For example, assuming the first preset range is 1 / 4 of the second preset range, the electronic device can remove the original detection data located in the center 1 / 4 of the second preset range to obtain the remaining detection data.

[0147] As can be seen, in this embodiment of the application, 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; from the original detection data in the first window, the original detection data corresponding to the first preset range at the center of the first window is removed to obtain the remaining detection data. By establishing a first window and a second window, the original detection data near the peak position can be quickly removed to obtain the remaining detection data.

[0148] As one implementation method of this application, such as Figure 6 As shown, 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:

[0149] S601, A second window with a size of a third preset range is established, centered on the peak position in the original detection data;

[0150] In order to select the raw detection data near the peak position, the electronic device can establish a second window with a size of a third preset range, centered on the peak position in the raw detection data.

[0151] S602, with the peak position in the reference curve as the center, establish a third window with a size of a fourth preset range;

[0152] To select data for a reference curve near the peak position, the electronic device can create a third window with a size of a fourth preset range, centered on the peak position of the reference curve. This fourth preset range can be the same as or different from the third preset range; both are acceptable.

[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 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 is calculated. Specifically, the electronic device can calculate the difference between the raw detection data corresponding to each wavelength position and the data of the reference curve corresponding to that wavelength position for each wavelength position in the overlapping part between the second and third windows.

[0155] As can be seen, in this 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 detection data; and establish a third window with a size of a fourth preset range, centered on the peak position in the reference curve; and 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. In this way, the difference between the original detection data and the data of the reference curve can be calculated quickly and accurately.

[0156] As one implementation method of this application, such as Figure 7 As shown, before the step of determining 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, the above method may further include:

[0157] S701, determine whether the number of frames of the acquired raw detection data has reached the first preset number; if not, proceed to step S702; if yes, proceed to step S703;

[0158] To improve the accuracy of gas concentration calculation, the electronic device can collect a first preset number of frames of raw detection data in a cyclical manner. In step S701, the electronic device can determine whether the number of frames of raw detection data acquired 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, Return to the step of obtaining raw detection data when lasers of various wavelengths are emitted into 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 can return to the steps described above for acquiring raw detection data when lasers of various wavelengths are emitted into the space to be detected, in order to continue acquiring raw detection data until the number of frames of the acquired raw detection data reaches the first preset number.

[0161] S703, sort the first preset number of differences;

[0162] Since each frame of raw detection data corresponds to a difference between the baseline curve data and the raw detection data, the number of differences obtained is also the first preset number when the number of frames of raw detection data reaches a first preset number. Because both large and small differences may contain significant errors, the electronic device can sort the first preset number of differences, and subsequently remove smaller or larger differences.

[0163] S704, remove the first number of differences at the very beginning and the second number of differences at the very end to obtain the remaining differences;

[0164] To remove significant differences, the electronic device can remove the first number of differences at the beginning and the second number of differences at the end, leaving the remaining differences. The first number can be the same or different; both are acceptable.

[0165] In one implementation, the electronic device can remove a preset percentage of differences at the beginning and a preset percentage of differences at the end to obtain the remaining differences. For example, assuming the preset percentage is 1 / 3, the electronic device can 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 remaining difference, determine the difference between the data of the baseline curve and the original detection data, and execute 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 remaining difference, the electronic device can determine the difference between the baseline curve data and the original detection data based on the remaining difference, and perform the above-mentioned steps 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.

[0168] In one implementation, the electronic device can calculate the sum of the remaining differences to obtain the difference between the baseline curve data and the original detection data. In another implementation, the electronic device can calculate the average of the remaining differences to obtain the difference between the baseline curve data and the original detection data.

[0169] As can be seen, in this embodiment, if the number of frames of the acquired raw detection data does not reach the first preset number, the electronic device can return to the step of acquiring raw detection data when lasers of various wavelengths are emitted into the space to be detected. Each frame of raw detection data includes raw detection data corresponding to each laser wavelength. If the number of frames of the acquired raw detection data reaches the first preset number, the electronic device can sort the first preset number of differences; remove the first preset number of differences and the last preset number of differences to obtain the remaining differences; based on the remaining differences, determine the difference between the baseline curve data and the raw detection data, and execute 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 detected. Since both large and small differences may have large errors, the electronic device can sort the first preset number of differences and then remove the smaller or larger differences to obtain the remaining differences. In this way, by filtering multiple differences, the calculation accuracy of the gas concentration can be further improved.

[0170] As one embodiment of this application, the step of determining the difference between the baseline curve data and the original detection data based on the remaining difference may include:

[0171] The sum of the remaining differences is calculated to obtain the difference between the baseline curve data and the original detection data.

[0172] After obtaining the remaining differences, the electronic device can calculate the sum of the remaining differences to obtain the difference between the baseline curve data and the original detection data.

[0173] As can be seen, in this embodiment, the electronic device can calculate the sum of the remaining differences to obtain the difference between the baseline curve data and the original detection data. This allows for a quick and accurate determination of the difference between the baseline curve data and the original detection data.

[0174] As one embodiment of this 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] Within a third preset range near the peak position, the area of ​​the depression in the original data curve relative to the reference curve is calculated as the difference between the data of the reference curve and the original detection data.

[0176] The aforementioned 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 specific method for calculating the aforementioned depression area is as follows:

[0177] The electronic device can calculate the logarithm of the quotient of the data of the reference curve and the data of the original data curve for each wavelength position within the third preset range, i.e., 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 third preset range to obtain the area of ​​the indentation of the original data curve relative to the reference curve, which serves as the difference between the data of the reference curve and the original detection data.

[0179] As can be seen, in this embodiment, the electronic device can calculate the area of ​​the depression in the original 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 original detection data. The original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range. Since the aforementioned depression area can characterize the degree of difference between the original data curve and the reference curve, the electronic device can calculate the area of ​​the depression in the original data curve relative to the reference curve, as the difference between the data of the reference curve and the original detection data.

[0180] As one implementation method of this application, such as Figure 8 As shown, the construction methods for the above-mentioned gas concentration model can include:

[0181] S801 acquires raw calibration data for each preset temperature by emitting lasers of various wavelengths in the space to be tested.

[0182] The process of constructing the gas concentration model is similar to the steps performed in the gas concentration calculation process described above, except that the specific data used is different. 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 in the gas concentration model construction process will not be described in detail; please refer to the corresponding steps in the gas concentration calculation process described above.

[0183] Because different gas concentration models are used at different temperatures, the electronic device can acquire raw calibration data for each preset temperature, emitting lasers of various wavelengths in the space to be detected. This raw 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 that laser wavelength, the peak position is determined from the calibration fitting curve.

[0185] As a specific way to determine 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 that laser wavelength; the wavelength position of the laser wavelength corresponding to the extreme value in the quotient in the calibration fitting curve is taken as the peak position.

[0186] S802, Remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data;

[0187] After obtaining the original calibration data, the electronic device can remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data. The candidate calibration data can be the original calibration data within a second preset range that is near the peak position in the original calibration data.

[0188] As one implementation method, 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; and remove the original calibration data corresponding to the first preset range at the center of the first window from the original calibration data in the first window to obtain the remaining calibration data.

[0189] S803, Perform the first fitting process on the remaining calibration data to obtain the calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;

[0190] Next, the electronic device can perform a first fitting process on the remaining calibration data to obtain the calibration reference curve of the remaining calibration detection data with respect to the laser wavelength.

[0191] S804, within a third preset range near the peak position, calculate the calibration difference between the data of the calibration reference curve and the original calibration data;

[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 within a third preset range near the peak position.

[0193] In one implementation, 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 calibration differences, the electronic device can calculate the area of ​​the depression between the original calibration data curve and the calibration reference curve within a third preset range near the peak position, and use this area as the calibration difference between the data of the calibration reference curve and the original calibration data. The original calibration data curve can be the relationship curve of the original calibration data with respect to the laser wavelength within the third preset range.

[0195] S805, by using the known correspondence between the gas concentration and the calibration difference, construct a gas concentration model corresponding to the preset temperature.

[0196] To establish the calculation relationship between gas concentration and its variation, the electronic device can construct a gas concentration model corresponding to a preset temperature based on the known correspondence between gas concentration and calibration variation. This allows for the acquisition of a gas concentration model for each preset temperature. In one embodiment, the electronic device can construct a gas concentration model based on the calibration variation corresponding to the same gas concentration at different preset temperatures.

[0197] As can be seen, in this embodiment, the electronic device can acquire original calibration data for each preset temperature, assuming the emission of lasers of various wavelengths in the space to be detected. The original calibration data is acquired when the gas concentration is known. From the candidate calibration data, the original calibration data corresponding to a first preset range is removed to obtain the remaining calibration data. The candidate calibration data is the original calibration data within a second preset range near the peak position, where the peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by the absorption of laser light by the gas. A first fitting process is performed on the remaining calibration data to obtain a calibration reference curve of the remaining calibration detection data with respect to the laser wavelength. Within a third preset range near the peak position, the calibration difference between the data of the calibration reference curve and the original calibration data is calculated. Based on the known correspondence between the gas concentration and the calibration difference, a gas concentration model corresponding to the preset temperature is constructed. In this way, a gas concentration model corresponding to each preset temperature can be constructed relatively accurately.

[0198] As one embodiment of this application, the step of constructing a gas concentration model corresponding to the preset temperature based on the known correspondence between gas concentration and the calibration difference may include:

[0199] By using polynomial linear regression, an expression for the gas concentration corresponding to the preset temperature is constructed based on the known correspondence between gas concentration and the calibration difference.

[0200] Since polynomial linear regression can be used to determine the correspondence between feature variables and target variables, electronic devices can use polynomial linear regression to construct an expression for the gas concentration corresponding to the preset temperature based on the known correspondence between gas concentration and calibration difference.

[0201] As can be seen, in this embodiment, the electronic device can construct an expression for the gas concentration corresponding to the preset temperature through polynomial linear regression, based on the known correspondence between gas concentration and calibration difference. This allows for the rapid and accurate construction of the gas concentration expression for each preset temperature.

[0202] As one implementation method of this application, such as Figure 9 As shown, before the step of constructing the gas concentration model corresponding to the preset temperature based on the known correspondence between gas concentration and the calibration difference, the above method may further include:

[0203] S901, determine whether the number of frames of the acquired raw calibration data has reached the second preset number; if not, proceed to step S902; if yes, proceed to step S903;

[0204] To improve the accuracy of calibration difference calculation, the electronic device can collect a second preset number of frames of raw calibration data in a cyclic manner. In step S901, the electronic device can determine whether the number of frames of raw calibration data acquired has reached the second preset number, thereby determining whether to continue subsequent processing. Each frame of raw calibration data may include raw calibration data corresponding to each laser wavelength, and the second preset number can be set according to actual needs, without specific limitations here.

[0205] S902, return to the step of obtaining the original calibration data when emitting lasers of various wavelengths in the space to be tested;

[0206] If the number of frames of the acquired raw calibration data does not reach the second preset number, the electronic device can return to the steps described above for acquiring raw calibration data when emitting lasers of various wavelengths in the space to be detected, to continue acquiring raw calibration data until the number of frames of the acquired raw calibration data reaches the second preset number.

[0207] S903, sort the second preset number of calibration differences;

[0208] If the number of frames of the acquired raw calibration data reaches the second preset number, the electronic device can sort the second preset number of calibration differences.

[0209] S904, remove the third number of calibration differences at the beginning and the fourth number of calibration differences at the end to obtain the remaining calibration differences;

[0210] Since both large and small calibration differences can lead to significant errors, electronic devices can remove the first three calibration differences and the last four calibration differences to obtain the remaining calibration differences. The third number can be equal to the first number mentioned above, and the fourth number can be equal to the second number mentioned above.

[0211] S905, based on the remaining calibration difference, determine the calibration difference between the data of the calibration reference curve and the original calibration data, and execute the step of constructing a gas concentration model corresponding to the preset temperature by using the known correspondence between the gas concentration and the calibration difference.

[0212] Next, the electronic device can determine the calibration difference between the calibration reference curve data 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 calibration reference curve data and the original calibration data.

[0213] Furthermore, the electronic device can perform the steps described above to construct a gas concentration model corresponding to the preset temperature based on the correspondence between the known gas concentration and the calibration difference.

[0214] As one embodiment of this application, a flowchart of the difference determination method can be shown as follows: Figure 10 As shown, the specific steps may include:

[0215] S1001, raw detection data for a single frame;

[0216] Electronic devices can acquire raw detection data for a single frame.

[0217] S1002, take the full segment of data and fit it to obtain the fitted 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, calculate the quotient between the original detection data and the data of the fitted curve;

[0220] Electronic devices can calculate the quotient between the raw detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength.

[0221] S1004, Seeking the Peak;

[0222] Electronic devices can use the wavelength position of the laser wavelength corresponding to the extreme value in the quotient as the peak position in the fitted curve.

[0223] S1005, establish the first window centered on the peak position of the original detection data;

[0224] 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.

[0225] S1006, Remove the original detection data within the first preset range at the center of the first window;

[0226] The electronic device can remove the original detection data corresponding to the first preset range in the center of the first window from the original detection data in the first window to obtain the remaining detection data.

[0227] S1007, Fit the remaining detection data to obtain the baseline curve;

[0228] 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;

[0229] S1008, establish a second window centered on the peak position of the original detection data, and establish a third window centered on the peak position of the reference curve;

[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, Calculate the difference between the original detection data in the second window and the data of the baseline curve in the third window;

[0232] Next, the electronic device can 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.

[0233] S1010, store in cache.

[0234] Electronic devices can store the calculated differences in a cache.

[0235] As one embodiment of this application, a flowchart of the method for constructing a gas concentration model can be shown as follows: Figure 11 As shown, the specific steps may include:

[0236] S1101, Adjust the preset temperature;

[0237] Electronic devices can adjust preset temperatures to determine the gas concentration model at each preset temperature.

[0238] S1102, Obtain the original calibration data at the preset temperature and calculate the calibration difference;

[0239] The electronic device can acquire the original calibration data at the preset temperature and calculate the calibration difference.

[0240] S1103, cache the calibration differences corresponding to the original calibration data of the second preset number of frames;

[0241] The electronic device can repeatedly acquire 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 difference corresponding to the second preset number of frames of original calibration data.

[0242] S1104, remove the third number of calibration differences at the beginning and the fourth number of calibration differences at the end to obtain the remaining calibration differences;

[0243] Next, the electronic device can sort the calibration differences, remove the third number of calibration differences at the top and the fourth number of calibration differences at the bottom, and obtain the remaining calibration differences.

[0244] S1105, sum the remaining calibration differences;

[0245] The electronic device can sum the remaining calibration differences to obtain the summation result.

[0246] S1106, Input the summation result and the preset temperature into the database; If the preset temperature iteration is complete, proceed to step S1107; If the preset temperature iteration is not complete, return to step S1101.

[0247] Electronic devices can input the summation result and preset temperature into a database to record the summation result and preset temperature.

[0248] S1107, Multinomial Linear Regression;

[0249] Once the preset temperatures have been traversed, the electronic device can construct a gas concentration model corresponding to each preset temperature using polynomial linear regression, based on the known correspondence between gas concentration and calibration differences.

[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 one embodiment of this application, a flowchart of a method for determining gas concentration can be shown as follows: Figure 12 As shown, the specific steps may include:

[0253] S1201, Determine the difference between the baseline curve data and the original detection data;

[0254] Electronic devices can determine the difference between the baseline data and the original test data.

[0255] S1202, Obtain the differences corresponding to the original detection data of the first preset number of frames;

[0256] To improve the accuracy of gas concentration calculation, the electronic device can acquire the differences corresponding to the first preset number of frames of original detection data.

[0257] S1203, remove the first number of differences at the very beginning and the second number of differences at the very end to obtain the remaining differences;

[0258] The electronic device can sort a first preset number of differences, and remove the first number of differences at the top and the second number of differences at the bottom to obtain the remaining differences.

[0259] S1204, calculate the sum of the remaining differences to obtain the summation result;

[0260] Next, the electronic device can calculate the sum of the remaining differences to obtain the summation result.

[0261] S1205, input the summation result into the gas concentration model;

[0262] Electronic devices can input the summation results into the gas concentration model.

[0263] S1206, Obtain the current ambient temperature;

[0264] Electronic devices can acquire the current ambient temperature and determine the corresponding gas concentration model for that ambient temperature.

[0265] S1207, the gas concentration is obtained.

[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 of 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-described method for determining gas concentration, this application also provides a device for determining gas concentration. The device for determining gas concentration provided in this application will be described below.

[0269] like Figure 13 As shown, a device for determining the concentration of natural gas includes:

[0270] The detection data acquisition module 1301 is used to acquire raw detection data when lasers of various wavelengths are emitted in the space to be detected, wherein the raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength.

[0271] The detection data removal module 1302 is used to remove the original detection data corresponding to the first preset range from the candidate detection data to obtain the remaining detection data. The candidate detection data is the original detection data in the second preset range that is near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser by the gas in the space to be detected. The second preset range includes the first preset range.

[0272] The first fitting module 1303 is used 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] The first difference determination module 1304 is used 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 by using a pre-built gas concentration model, and to obtain the gas concentration in the space to be detected. The gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of its corresponding reference curve and the gas concentration.

[0275] As can be seen, in this embodiment, the electronic device can acquire raw detection data when emitting lasers of various wavelengths into the space to be detected. The raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength. From the candidate detection data, raw detection data corresponding to a first preset range is removed to obtain remaining detection data. The candidate detection data is raw detection data within a second preset range near the peak position in the raw detection data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by the absorption of laser light by the gas in the space to be detected. The second preset range includes the first preset range. A first fitting process is performed on the remaining detection data to obtain a baseline curve of the remaining detection data with respect to the laser wavelength. Within a third preset range near the peak position, the difference between the data of the baseline curve and the raw detection data is calculated. Using a pre-constructed gas concentration model, the gas concentration corresponding to the difference is determined to obtain the gas concentration in the space to be detected. The gas concentration model is used to characterize the relationship between the difference between the detection data and the corresponding baseline curve data and the gas concentration. Since the remaining detection data does not include raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the baseline curve. Since the baseline curve is generated in real time after each acquisition of raw detection data, rather than a pre-calibrated fixed curve, the fitting accuracy of the baseline curve can be improved, thereby improving the calculation accuracy of the gas concentration.

[0276] As one embodiment of this application, the above-described apparatus may further include:

[0277] The second fitting module is used 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 that laser wavelength.

[0279] As one embodiment of this application, the peak position determination module may include:

[0280] The quotient calculation submodule is used to calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength.

[0281] The peak position determination submodule is used to determine the wavelength position of the laser wavelength corresponding to the extreme value in the quotient as the peak position in the fitted curve.

[0282] As one embodiment of this application, the detection data removal module 1302 described above may include:

[0283] The first window creation submodule is used to create 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 used to 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, so as to obtain the remaining detection data.

[0285] As one embodiment of this application, the first difference determination module 1304 described above may include:

[0286] The second window creation submodule is used to create a second window with a size of a third preset range, centered on the peak position in the original detection data.

[0287] The third window creation submodule is used to create a third window with a size of a fourth preset range, centered on the peak position in the reference curve.

[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 one embodiment of this application, the above-described apparatus may further include:

[0290] The first return module is used to trigger the detection data acquisition module 1301 when the number of frames of the 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] The first sorting module is used to sort the first preset number of differences when the number of frames of the acquired raw detection data reaches the first preset number.

[0292] The first difference removal module is used to remove the first number of differences at the beginning and the second number of differences at the end to obtain the remaining differences;

[0293] The second difference determination module is used to determine the difference between the data of the baseline curve and the original detection data based on the remaining difference, and to trigger the concentration determination module 1305.

[0294] As one embodiment of this application, the second difference determination module described above may include:

[0295] The difference determination submodule is used to calculate the sum of the remaining differences to obtain the difference between the baseline curve data and the original detection data.

[0296] As one embodiment of this application, the first difference determination module 1304 described above may include:

[0297] An area calculation submodule is used to calculate the area of ​​the depression of the original 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 original detection data, wherein the original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range.

[0298] As one embodiment of this application, the above-described apparatus may further include:

[0299] The calibration data acquisition module is used to acquire raw calibration data for each preset temperature, under the condition that lasers of various wavelengths are emitted into the space to be tested, wherein the raw calibration data is acquired under the condition that the gas concentration is known;

[0300] The calibration data removal module is used to remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data. The candidate calibration data is the original calibration data within the second preset range that is near the peak position in the original calibration data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by gas absorption of laser.

[0301] The third fitting module is used to perform the first fitting process on the remaining calibration data to obtain the calibration reference curve of the remaining calibration detection data with respect to the laser wavelength;

[0302] The first calibration difference determination module is used to 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.

[0303] The model building module is used to construct a gas concentration model corresponding to the preset temperature by using the correspondence between the known gas concentration and the calibration difference.

[0304] As one embodiment of this application, the above-mentioned model building module may include:

[0305] The model building submodule is used to construct an expression for the gas concentration corresponding to the preset temperature based on the known correspondence between the gas concentration and the calibration difference through multinomial linear regression.

[0306] As one embodiment of this application, the above-described apparatus may further include:

[0307] The second return module is used to trigger the calibration data acquisition module when the number of frames of the acquired raw calibration data has not reached the second preset number, wherein each frame of raw calibration data includes raw calibration data corresponding to each laser wavelength.

[0308] The second sorting module is used 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] The second difference removal module is used to remove the first three number of calibration differences and the last four number of calibration differences to obtain the remaining calibration differences.

[0310] The second calibration difference determination module is used to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the remaining calibration difference, and to trigger the model building module.

[0311] This application also provides an electronic device, such as... Figure 14 As shown, it includes:

[0312] Memory 1401 is used to store computer programs;

[0313] The processor 1402, when executing the program stored in the memory 1401, implements the method for determining the gas concentration as described in any of the above embodiments.

[0314] Furthermore, the aforementioned electronic device may also include a communication bus and / or a communication interface, with the processor 1402, the communication interface, and the memory 1401 communicating with each other via the communication bus.

[0315] As can be seen, in this embodiment, the electronic device can acquire raw detection data when emitting lasers of various wavelengths into the space to be detected. The raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength. From the candidate detection data, raw detection data corresponding to a first preset range is removed to obtain remaining detection data. The candidate detection data is raw detection data within a second preset range near the peak position in the raw detection data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by the absorption of laser light by the gas in the space to be detected. The second preset range includes the first preset range. A first fitting process is performed on the remaining detection data to obtain a baseline curve of the remaining detection data with respect to the laser wavelength. Within a third preset range near the peak position, the difference between the data of the baseline curve and the raw detection data is calculated. Using a pre-constructed gas concentration model, the gas concentration corresponding to the difference is determined to obtain the gas concentration in the space to be detected. The gas concentration model is used to characterize the relationship between the difference between the detection data and the corresponding baseline curve data and the gas concentration. Since the remaining detection data does not include raw detection data near the peak position, the first fitting process can be performed on the remaining detection data to obtain the baseline curve. Since the baseline curve is generated in real time after each acquisition of raw detection data, rather than a pre-calibrated fixed curve, the fitting accuracy of the baseline curve can be improved, thereby improving the calculation accuracy of the gas concentration.

[0316] The communication bus mentioned in the above electronic devices can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, only one thick line is used to represent it in the diagram, but this does not mean that there is only one bus or one type of bus.

[0317] The communication interface is used for communication between the aforementioned electronic devices and other devices.

[0318] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.

[0319] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0320] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of any of the above-described methods for determining gas concentration.

[0321] In another embodiment provided in this application, a computer program product containing instructions is also provided, which, when run on a computer, causes the computer to execute any of the gas concentration determination methods described in the above embodiments.

[0322] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially 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, all or part of the processes or functions described in the embodiments of this application are generated. 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. 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 wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. 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 integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a solid-state drive (SSD), etc.

[0323] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0324] The various embodiments in this specification are described in a related manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, the embodiments of apparatus, electronic devices, computer-readable storage media, and computer program products are basically similar to the method embodiments, and therefore the descriptions are relatively simple; relevant parts can be referred to the descriptions of the method embodiments.

[0325] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application are included within the scope of protection of this application.

Claims

1. A method for determining the concentration of natural gas, characterized in that, The method includes: When lasers of various wavelengths are emitted into the space to be tested, raw detection data is acquired, wherein the raw detection data is determined at least based on the intensity of reflected light from the gas in the space to be tested for each laser wavelength. From the candidate detection data, remove the original detection data corresponding to the first preset range to obtain the remaining detection data. The candidate detection data is the original detection data within the second preset range that is near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser by the gas in the space to be detected. The second preset range includes the first preset range. The remaining detection data is subjected to a first fitting process to obtain a baseline curve of the remaining detection data with respect to the laser wavelength; Within a third preset range near the peak position, the difference between the data of the reference curve and the original detection data is calculated; By using a pre-built gas concentration model, the gas concentration corresponding to the difference is determined, and the gas concentration in the space to be detected is obtained. The gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of its corresponding benchmark curve and the gas concentration. 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: A first window with a size of a second preset range is established, centered on the peak position in the original detection data; Remove the original detection data corresponding to the first preset range at the center of the first window from the original detection data of the first window to obtain the remaining detection data; The step of calculating the difference between the data of the reference curve and the original detection data within a third preset range near the peak position includes: A second window with a size of a third preset range is established, centered on the peak position in the original detection data; A third window with a size of a fourth preset range is established, centered on the peak position in the reference curve; 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.

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: The original detection data is subjected to a second fitting process 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; The peak position is determined 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 that laser wavelength.

3. The method according to claim 2, characterized in that, The step of determining the peak position from the fitted curve based on the difference between the original detection data corresponding to each laser wavelength and the fitted curve corresponding to that laser wavelength includes: Calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength; The wavelength position of the laser wavelength corresponding to the extreme value in the quotient is taken as the wavelength position in the fitted curve.

4. The method according to any one of claims 1-3, characterized in that, Before 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 detected, the method further includes: If the number of frames of the acquired raw detection data does not reach the first preset number, return to the step of acquiring raw detection data when lasers of various wavelengths are emitted in 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 raw detection data reaches the first preset number, sort the first preset number of differences; Remove the first number of differences at the very beginning and the second number of differences at the very end to obtain the remaining differences; Based on the remaining difference, the difference between the data of the baseline curve and the original detection data is determined, and the step of determining the gas concentration corresponding to the difference by using a pre-built gas concentration model is performed to obtain the gas concentration in the space to be detected.

5. The method according to claim 4, characterized in that, The step of determining the difference between the baseline curve data and the original detection data based on the remaining difference includes: The sum of the remaining differences is calculated to obtain the difference between the baseline curve data and the original detection data.

6. The method according to any one of claims 1-3, characterized in that, The step of calculating the difference between the data of the reference curve and the original detection data within a third preset range near the peak position includes: Within a third preset range near the peak position, the area of ​​the depression of the original data curve relative to the reference curve is calculated as the difference between the data of the reference curve and the original detection data, wherein the original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range.

7. The method according to any one of claims 1-3, characterized in that, The method for constructing the gas concentration model includes: For each preset temperature, raw calibration data is obtained when lasers of various wavelengths are emitted into the space to be tested. The raw calibration data is obtained when the gas concentration is known. From the candidate calibration data, remove the original calibration data corresponding to the first preset range to obtain the remaining calibration data. The candidate calibration data is the original calibration data within the second preset range that is near the peak position in the original calibration data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by gas absorption of laser. The remaining calibration data is subjected to the first fitting process to obtain the calibration reference curve of the remaining calibration data with respect to the laser wavelength; Within a third preset range near the peak position, calculate the calibration difference between the data of the calibration reference curve and the original calibration data; By using the known correspondence between gas concentration and the calibration difference, a gas concentration model corresponding to the preset temperature is constructed.

8. The method according to claim 7, 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 using polynomial linear regression, an expression for the gas concentration corresponding to the preset temperature is constructed based on the known correspondence between gas concentration and the calibration difference.

9. The method according to claim 7, 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, return to the step of acquiring raw calibration data when lasers of various wavelengths are emitted in 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 raw calibration data reaches the second preset number, sort the second preset number of calibration differences; Remove the third number of calibration differences from the top and the fourth number of calibration differences from the bottom to obtain the remaining calibration differences; Based on the remaining calibration difference, determine the calibration difference between the data of the calibration reference curve and the original calibration data, and perform the step of constructing a gas concentration model corresponding to the preset temperature by using the known correspondence between the gas concentration and the calibration difference.

10. A device for determining the concentration of a fuel gas, characterized in that, The device includes: The detection data acquisition module is used to acquire raw detection data when lasers of various wavelengths are emitted in the space to be detected, wherein the raw detection data is determined at least based on the reflected light intensity of the gas in the space to be detected for each laser wavelength. The detection data removal module is used to remove the original detection data corresponding to a first preset range from the candidate detection data to obtain the remaining detection data. The candidate detection data is the original detection data within a second preset range that is near the peak position in the original detection data. The peak position is the wavelength position corresponding to the intensity attenuation of reflected light caused by the absorption of laser by the gas in the space to be detected. The second preset range includes the first preset range. The first fitting module is used 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. The first difference determination module is used 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; The concentration determination module is used to determine the gas concentration corresponding to the difference by using a pre-built gas concentration model, thereby obtaining the gas concentration in the space to be detected. The gas concentration model is used to characterize the correspondence between the difference between the detection data and the data of its corresponding benchmark curve and the gas concentration. The detection data removal module includes: The first window creation submodule is used to create a first window with a size of a second preset range, centered on the peak position in the original detection data. The detection data removal submodule is used to 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. The first difference determination module includes: The second window creation submodule is used to create a second window with a size of a third preset range, centered on the peak position in the original detection data. The third window creation submodule is used to create a third window with a size of a fourth preset range, centered on the peak position in the reference curve. 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.

11. The apparatus according to claim 10, characterized in that, The device further includes: The second fitting module is used 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 is used to determine the peak position from the fitted curve based on the difference between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength; and / or, The peak position determination module includes: The quotient calculation submodule is used to calculate the quotient between the original detection data corresponding to each laser wavelength and the data of the fitted curve corresponding to that laser wavelength. The peak position determination submodule is used to determine the peak position by taking the wavelength position in the fitted curve corresponding to the extreme value of the quotient as the wavelength position of the laser wavelength corresponding to the extreme value in the quotient; and / or, The device further includes: The first return module is used to trigger the detection data acquisition module when the number of frames of the acquired raw detection data has not reached a first preset number, wherein each frame of raw detection data includes raw detection data corresponding to each laser wavelength. The first sorting module is used to sort the first preset number of differences when the number of frames of the acquired raw detection data reaches the first preset number. The first difference removal module is used to remove the first number of differences at the beginning and the second number of differences at the end to obtain the remaining differences; The second difference determination module is used to determine the difference between the baseline curve data and the original detection data based on the remaining difference, and to trigger the concentration determination module; and / or, The second difference determination module includes: The difference determination submodule is used to calculate the sum of the remaining differences to obtain the difference between the baseline curve data and the original detection data; and / or, The first difference determination module includes: An area calculation submodule is used to calculate the area of ​​the depression of the original 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 original detection data, wherein the original data curve is the relationship curve of the original detection data with respect to the laser wavelength within the third preset range; and / or, The device further includes: The calibration data acquisition module is used to acquire raw calibration data for each preset temperature, under the condition that lasers of various wavelengths are emitted into the space to be tested, wherein the raw calibration data is acquired under the condition that the gas concentration is known; The calibration data removal module is used to remove the original calibration data corresponding to the first preset range from the candidate calibration data to obtain the remaining calibration data. The candidate calibration data is the original calibration data within the second preset range that is near the peak position in the original calibration data. The peak position is the wavelength position corresponding to the attenuation of reflected light intensity caused by gas absorption of laser. The third fitting module is used to perform the first fitting process on the remaining calibration data to obtain the calibration reference curve of the remaining calibration data with respect to the laser wavelength; The first calibration difference determination module is used to 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. The model building module is used to construct a gas concentration model corresponding to the preset temperature based on the known correspondence between gas concentration and the calibration difference; and / or, The model building module includes: The model construction submodule is used to construct an expression for the gas concentration corresponding to the preset temperature based on the known correspondence between the gas concentration and the calibration difference using polynomial linear regression; and / or, The device further includes: The second return module is used to trigger the calibration data acquisition module when the number of frames of the acquired raw calibration data has not reached the second preset number, wherein each frame of raw calibration data includes raw calibration data corresponding to each laser wavelength. The second sorting module is used 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. The second difference removal module is used to remove the first three number of calibration differences and the last four number of calibration differences to obtain the remaining calibration differences. The second calibration difference determination module is used to determine the calibration difference between the data of the calibration reference curve and the original calibration data based on the remaining calibration difference, and to trigger the model building module.

12. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the method described in any one of claims 1-9.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method described in any one of claims 1-9.