Background correction method, equipment and medium for narrow-band absorption in optical detectionTechnical Field
The present invention relates to a photoelectric detection system, and more particularly, to a method, an apparatus, and a medium for background correction of narrow-band absorption in optical detection.
Background
Photoelectric detection systems such as molecular absorption spectrometers and atomic absorption spectrometers are important instruments in spectroscopy. The gas phase molecular absorption spectrometer carries out quantitative determination based on the principle that the relation between the absorption intensity of gas decomposed into measured components to light and the concentration of the measured components complies with the light absorption law; depending on the absorption wavelength, the component to be measured can be identified and qualitative analysis can be performed. The gas phase molecular absorption spectrometer can comprise a light source, a collimating and focusing lens group, an absorption cell, a monochromator and a photoelectric detection device, and system errors are caused by factors such as background interference in the detection process. How to reduce background interference and improve the detection accuracy of a photoelectric detection system is a technical problem to be solved urgently in the field.
Disclosure of Invention
The present invention aims to overcome the above-mentioned drawbacks of the prior art and provide a background correction method, apparatus and medium for effectively reducing background interference and improving narrow-band absorption in optical detection with high accuracy.
The purpose of the invention can be realized by the following technical scheme:
a background correction method for narrow-band absorption in optical detection, for background error correction of an optical detection system, the method comprising the steps of:
acquiring original detection data of an optical detection system of the optical detection system;
performing background correction on the original detection data based on a background correction coefficient obtained in advance;
wherein the background correction coefficient is obtained by: and acquiring a group of detection data of the optical detection system, and obtaining the optimal background correction coefficient in a reverse deduction and verification mode.
Further, the background correction coefficient is used for characterizing background stray light of the optical detection system.
Further, the optical detection system is a spectral detection system and device based on the lambert-beer law, and comprises a molecular absorption spectrometer or an atomic absorption spectrometer and the like.
Further, the light source of the optical detection system is a continuous light source or an acute line light source containing background interference.
Further, when the light source is a continuous light source, the background correction coefficient is a ratio of the composite light intensity to the incident light intensity.
Further, the data for background correction includes transmittance, and the relationship between the corrected transmittance and the original transmittance is:
wherein T' is the corrected transmittance, T is the original transmittance, and C is the background correction coefficient.
Further, the value range of the background correction coefficient is 0-1.
The invention also provides a sample concentration gradient experimental data processing method of the gas phase molecular absorption spectrometry, which is characterized in that the experimental data is subjected to background correction by adopting the background correction method, and fitting curves of different concentrations and absorbances are obtained according to the corrected data.
The present invention also provides an electronic device, comprising: one or more processors; a memory; and one or more programs stored in the memory, the one or more programs including instructions for performing the background correction method as described above.
The present invention also provides a computer readable storage medium comprising one or more programs for execution by one or more processors of an electronic device, the one or more programs including instructions for performing the background correction method as described above.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention can effectively carry out background correction on the detection data, reduce background errors and improve the linear range and the test precision by correcting according to the optical absorption characteristic theory.
2. The background correction coefficient is obtained when each optical detection system is individually factory-set, the pertinence is strong, the reliability is high, the coefficient is a fixed coefficient, the real-time correction of the test result through software is facilitated, and the user experience is improved.
3. The curve quality is improved after the correction of the invention, the concentration test of the sample to be detected and the quality control sample is also corrected according to the background correction coefficient, the good linear relation is satisfied, and the result accuracy completely meets the requirement.
4. The correction method of the invention can reduce the dependence of hardware structure on the light splitting system to the maximum extent by users and equipment manufacturers, and reduce the technical difficulty and cost of hardware design and production.
5. The method has wide applicability, can be applied to the measurement background correction of the narrow-band absorption sample in the molecular spectrum to ensure that the result is more accurate, can also be applied to the atomic spectroscopy, and is convenient to be applied to the background correction of a continuous light source and the interference elimination of the adjacent spectral line generated by impurity elements in an acute-line light source.
Drawings
FIG. 1 is a schematic flow diagram of the present invention;
FIG. 2 is a graph of a curve fit before background correction in an example;
FIG. 3 is a graph of a curve fit after background correction in an example.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Example 1
The embodiment provides a background correction method of narrow-band absorption in optical detection, which is used for performing error correction on an optical detection system, and the method comprises the following steps: acquiring original detection data of an optical detection system of the optical detection system; and performing background correction on the original detection data based on a background correction coefficient obtained in advance. The background correction coefficient is obtained by: and acquiring a group of detection data of the optical detection system, and acquiring the optimal background correction coefficient in a reverse deduction and verification mode. The background correction factor is used to characterize background stray light of the optical detection system. The different instruments may have differences in the light splitting system in mass production, and the coefficient may be slightly different because each instrument needs to be set up one by one.
The method is suitable for molecular spectroscopy or atomic spectroscopy, and is conveniently applied to background correction of a continuous light source and adjacent spectral line interference elimination generated by impurity elements in an acute line light source. This example illustrates a gas phase molecular absorption spectrometer with a continuous light source as an optical detection system, and the components include a deuterium lamp (kohamamatsu type L6309-50), a collimating and focusing lens set, a long-range absorption cell, a C-T type monochromator (spectral bandwidth 2nm, spectroscopic system), and a photomultiplier (kohamamatsu type R928).
Gas phase molecular absorption spectroscopy measures mainly 5 items, including: nitrite nitrogen, ammonia nitrogen, nitrate nitrogen, total nitrogen, and sulfides. The ammonia nitrogen is chemically oxidized and then converted into nitrite nitrogen, the total nitrogen is chemically digested at high temperature and then converted into nitrate nitrogen, the nitrite nitrogen chemically reacts to generate nitrogen dioxide of the gas to be detected, the nitrate nitrogen chemically reacts to generate nitric oxide of the gas to be detected, and the sulfide chemically reacts to generate hydrogen sulfide of the gas to be detected. Aiming at the three detection gases, the photoelectric detection system is adopted for detection, samples to be detected with different contents are used for reaction to generate the detection gases with different concentrations, a concentration gradient experiment is carried out, and unitary linear regression straight line fitting is carried out on the experiment result. The linear regression of nitric oxide gas with a single element without correction has a poor fit (γ < 0.999) with large errors, as shown in table 1 and fig. 2.
TABLE 1 items of data before background correction
| Concentration c | Absorbance | | 1/T | T | |
| 1 | 0.0281 | 1.066842 | 0.937346 |
| 2 | 0.06 | 1.148154 | 0.870964 |
| 3 | 0.0916 | 1.23481 | 0.809841 |
| 4 | 0.1189 | 1.314922 | 0.760501 |
| 5 | 0.1441 | 1.393478 | 0.717629 |
The inventor conducts extensive analysis, creatively finds that the error is caused by strong background stray light existing in the spectroscopic system due to the fact that the absorption band of the measured substance is smaller than the spectral bandwidth of the spectroscopic system when the spectroscopic system measures the substance, and designs a method for carrying out background correction on the detection data based on the creatively found result.
Consider lambert beer's law:
A=lg(1/T)
T=I/I0
where A is absorbance and T is transmittance (transmittance).
The Lambert beer's law is defined under the condition that the relation between the absorbance and the concentration of a substance is on the premise that incident light is monochromatic light, and light emitted by a continuous light source after passing through a light splitting system is composite light which has composite light intensity. The part of light exists in I0 In the system, the light passes through the light absorption cell without being absorbed and becomes a part of I, and the part of light is used as a system error, so that the whole light splitting detection system has stronger background stray light.
Therefore, consider that0 And the composite intensity I in Ix Deduction, T' thus obtained and calculation from TAbs of (2)(NEW) The real absorbance value really accords with the lambert beer law, and the process is a background correction technology:
wherein: 0-woven C-wovenfabric 1
Abs(NEW) =lg(1/T′)
Background subtraction can be achieved by the above background correction.
The optimal background correction coefficient is obtained through a reverse deduction and verification mode, specifically, a background correction coefficient is initialized through an enumeration method based on a dichotomy thought, and whether the current background correction coefficient is adjusted or not is judged based on the relation between a corrected fitting curve and a fitted curve before correction until the optimal background correction coefficient is obtained.
As shown in fig. 2 and fig. 3, C =0.44 in this embodiment. As can be seen from the implementation results, the problem of deterioration of the correlation coefficient (curve curvature, narrowing of the linear range) caused by correction of stray light is effectively solved.
Table 2 background corrected data items
| Concentration c | T-C | (1-C)/(T-C) | Absorbance (new) |
| 1 | 0.937346 | 1.066841742 | 0.0281 |
| 2 | 0.870964 | 1.148153621 | 0.06 |
| 3 | 0.809841 | 1.234809608 | 0.0916 |
| 4 | 0.760501 | 1.314922025 | 0.1189 |
| 5 | 0.717629 | 1.393477626 | 0.1441 |
The above functions, if implemented in the form of software functional units and sold or used as a separate product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, and various media capable of storing program codes.
Example 2
The embodiment provides a sample concentration gradient experimental data processing method for gas phase molecular absorption spectrometry, which is implemented by performing background correction on experimental data by using the background correction method described inembodiment 1, and obtaining fitted curves of different concentrations and absorbances according to the corrected data.
Example 3
The present embodiments provide an electronic device comprising one or more processors, memory, and one or more programs stored in the memory, the one or more programs including instructions for performing the background correction method as described above.
The foregoing detailed description of the preferred embodiments of the invention has been presented. It should be understood that numerous modifications and variations can be devised by those skilled in the art in light of the above teachings. Therefore, the technical solutions that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the prior art according to the concepts of the present invention should be within the scope of protection determined by the claims.