A wavelength calibration method for a spectrometer
By collecting the full-spectrum light intensity of the spectrometer, finding the maximum light intensity neighborhood near the theoretical characteristic peak wavelength, and performing normalization and fitting iteration, the problem of decreased wavelength accuracy of the spectrometer was solved, and higher wavelength measurement accuracy was achieved.
Patent Information
- Application Number
- CN202311784962.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-24
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2043-12-24
AI Technical Summary
During prolonged use, the wavelength accuracy of a spectrometer decreases due to factors such as ambient temperature, pressure, and mechanical and optical defects in optical components, which in turn affects the accuracy of the algorithm.
By collecting the full-spectrum light intensity of the light source, the maximum light intensity neighborhood near the theoretical characteristic peak wavelength is found, normalized, an optical model is constructed, the fitted characteristic peak wavelength is iteratively obtained, and wavelength correction is performed based on the difference to achieve calibration.
The wavelength of the spectrometer is effectively calibrated, overcoming systematic deviations caused by external factors and improving the accuracy of wavelength measurement and algorithm precision.
Smart Images

Figure CN117889958B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to spectral measurement in the field of optics / materials, and more specifically, to a wavelength calibration method for a spectrometer. Background Technology
[0002] Spectrometers are widely used in astronomy, biology, chemistry, semiconductors, and component analysis. These fields obtain results by collecting data from spectrometers and processing it using algorithms; however, the wavelength accuracy of the spectrometer directly affects the precision of the final algorithm. During prolonged use, external environmental factors such as temperature, pressure, and mechanical and optical defects in optical components can affect the wavelength accuracy of the spectrometer, thus necessitating wavelength calibration. Summary of the Invention
[0003] This invention addresses the technical problems existing in the prior art by providing a wavelength calibration method for a spectrometer, comprising:
[0004] The light intensity of the light source is collected by a spectrometer, and the full spectrum light intensity includes light intensity information corresponding to all original wavelengths;
[0005] Based on multiple theoretical characteristic peak wavelengths, the maximum light intensity within the range near each theoretical characteristic peak wavelength is found on the full spectrum of light intensity, and all light intensities in the neighborhood of the maximum light intensity are obtained and normalized.
[0006] Based on the original wavelengths corresponding to all normalized light intensities in each neighborhood, the corresponding fitting characteristic peak wavelengths are iteratively obtained.
[0007] Based on the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, each original wavelength is corrected using a preset correction method to obtain the wavelength after calibration of the original wavelength.
[0008] Based on the above technical solution, the present invention can also be improved as follows.
[0009] Optionally, finding the maximum light intensity within a range near the wavelength of each theoretical characteristic peak across the full spectrum of light intensity, based on the wavelengths of multiple theoretical characteristic peaks, includes:
[0010] Based on the wavelength of each theoretical characteristic peak, find the original wavelength closest to the wavelength of each theoretical characteristic peak on the full spectrum of light intensity;
[0011] By setting a nearby range, the maximum light intensity and the wavelength corresponding to the maximum light intensity are found within the set nearby range of the nearest original wavelength.
[0012] Optionally, obtaining all light intensities within the neighborhood of the maximum light intensity and normalizing all light intensities within the neighborhood includes:
[0013] Set the range parameter of the maximum light intensity neighborhood, and obtain all light intensities within the neighborhood of the maximum light intensity;
[0014] Based on the maximum light intensity, all light intensities within the neighborhood are normalized to obtain multiple normalized light intensities within the neighborhood.
[0015] Optionally, the step of fitting and iteratively obtaining the corresponding fitting characteristic peak wavelength based on the original wavelengths corresponding to all normalized light intensities within each neighborhood includes:
[0016] Construct an optical model of the spectrometer, the optical model including model parameters, the model parameters including the wavelength of the fitted characteristic peak;
[0017] Substitute multiple normalized light intensities and their corresponding original wavelengths into the optical model of the spectrometer, and iterate to obtain the model parameters of the optical model.
[0018] Optionally, the optical model is a Gauss model, a Lorentz model, or a Voigt model;
[0019] The expression for the Gauss model is:
[0020]
[0021] The expression for the Lorentz model is:
[0022]
[0023] The expression for the Voigt model is:
[0024]
[0025] Where x is the original wavelength, f(x) is the normalized light intensity, y is a value in the range of [+∞, -∞], a0, a, b, c and d are model parameters, and c is the wavelength of the fitted characteristic peak.
[0026] Optionally, the step of correcting each original wavelength using a preset correction method based on the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood to obtain the calibrated wavelength includes:
[0027] Calculate the difference between the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, and record it as the wavelength drift value;
[0028] Based on the fitted characteristic peak wavelengths and corresponding wavelength drift values in multiple neighborhoods, a curve showing the relationship between the fitted characteristic peak wavelengths and wavelength drift values is obtained.
[0029] Based on each original wavelength, find the corresponding wavelength drift value on the relationship curve;
[0030] Based on the wavelength drift value, each original wavelength is corrected to obtain the calibrated wavelength.
[0031] Optionally, the step of fitting a curve relating the fitted characteristic peak wavelength to the wavelength shift value based on the fitted characteristic peak wavelength and the corresponding wavelength shift value within multiple neighborhoods includes:
[0032] Based on the fitted characteristic peak wavelengths and corresponding wavelength drift values in multiple neighborhoods, a curve relating the fitted characteristic peak wavelengths to the wavelength drift values is obtained by fitting using polynomial fitting, spline interpolation, or b-spline interpolation methods.
[0033] Optionally, the fitting iteration method for fitting the corresponding fitting characteristic peak wavelength based on the original wavelengths corresponding to all normalized light intensities in each neighborhood includes traversal methods, global optimization methods, and local optimization algorithms.
[0034] The present invention provides a wavelength calibration method for a spectrometer, which calibrates the wavelength of the spectrometer by using multiple characteristic peaks of the light source. This overcomes the problem of systematic deviation between the displayed wavelength and the actual wavelength caused by factors such as external temperature, pressure, and mechanical and optical defects of optical components during the use of the spectrometer. Attached Figure Description
[0035] Figure 1 This is a schematic diagram of the optical system.
[0036] Figure 2 A flowchart of a wavelength calibration method for a spectrometer provided by the present invention;
[0037] Figure 3 A schematic diagram showing the relationship between the characteristic peak wavelength and the wavelength shift value. Detailed Implementation
[0038] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention. In addition, the technical features of the various embodiments or individual embodiments provided by the present invention can be arbitrarily combined with each other to form feasible technical solutions. Such combinations are not constrained by the order of steps and / or structural composition patterns, but must be based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0039] In practical applications, external environmental factors such as temperature, pressure, and mechanical and optical defects in optical components can affect the wavelength accuracy of a spectrometer. Therefore, wavelength calibration of the spectrometer is necessary. See also Figure 1 The basic configuration for wavelength calibration of a spectrometer includes: light source 1, collimating lens 2, converging lens 3, and spectrometer 4.
[0040] Figure 2 A flowchart of a wavelength calibration method for a spectrometer provided by the present invention is shown below. Figure 2 As shown, the method includes:
[0041] Step 1: Collect the full-spectrum light intensity of the light source based on the spectrometer. The full-spectrum light intensity includes the light intensity information corresponding to all original wavelengths.
[0042] Understandably, the full-spectrum light intensity of a light source is collected based on measurement equipment such as a spectrometer. The full-spectrum light intensity includes the light intensity information corresponding to all original wavelength points. For example, if there are 300 original wavelength points, then there are also 300 corresponding light intensity information points. The 300 original wavelength points and the corresponding 300 light intensity information points constitute the full-spectrum light intensity.
[0043] Step 2: Based on multiple theoretical characteristic peak wavelengths, find the maximum light intensity within the range near each theoretical characteristic peak wavelength on the full spectrum of light intensity, and obtain all light intensities in the neighborhood of the maximum light intensity, and normalize all light intensities in the neighborhood.
[0044] As an example, based on the wavelength of each theoretical characteristic peak, the original wavelength closest to the wavelength of each theoretical characteristic peak is found on the full spectrum of light intensity; by setting a nearby range, the maximum light intensity and the wavelength corresponding to the maximum light intensity are found within the set nearby range of the nearest original wavelength.
[0045] Understandably, the first step is to collect the full-spectrum light intensity of light sources such as mercury lamps using a spectrometer, and then find the closest wavelength between the original wavelength of the spectrometer and each theoretical characteristic peak wavelength by using multiple theoretical characteristic peak wavelengths.
[0046] num(i) = min(abs(wvl) o -wvl c (i))) (1);
[0047] Where num(i) is the index of the wavelength closest to the i-th characteristic peak wavelength, wvl o For the original wavelength, wvl c (i) represents the wavelength of the i-th theoretical characteristic peak.
[0048] After finding the original wavelength closest to each theoretical characteristic peak wavelength, each original wavelength wvl is found by setting a range. o The wavelength corresponding to the maximum light intensity near (num(i)).
[0049] num c (i)=max(I(num(i)-N:num(i)+N)) (2);
[0050] Where num c (i) The index of the maximum light intensity near the i-th nearest original wavelength, where I is the full-spectrum light intensity and N is the light intensity range parameter.
[0051] Understandably, the original wavelength closest to the i-th characteristic peak wavelength is found, and the index of this original wavelength is num(i). The maximum light intensity is found in the vicinity of this original wavelength, where (num(i)-N:num(i)+N) is the vicinity of the num(i)-th original wavelength. The maximum light intensity and the wavelength corresponding to the maximum light intensity are found in this vicinity.
[0052] As an example, obtaining all light intensities within the neighborhood of the maximum light intensity and normalizing all light intensities within the neighborhood includes: setting a range parameter for the neighborhood of the maximum light intensity, obtaining all light intensities within the neighborhood of the maximum light intensity; and normalizing all light intensities within the neighborhood based on the maximum light intensity to obtain multiple normalized light intensities within the neighborhood.
[0053] Specifically, by setting the range parameter N0, light intensity data within the neighborhood of the maximum light intensity is extracted. All light intensities within this neighborhood are then normalized to the maximum light intensity.
[0054]
[0055] I i For the num c(i) Normalized light intensity groups within the neighborhood of the maximum light intensity.
[0056] According to formula (3), multiple light intensities in the neighborhood of each maximum light intensity are obtained, and the corresponding original wavelengths are obtained.
[0057] Step 3: Based on the original wavelengths corresponding to all normalized light intensities in each neighborhood, iteratively fit and derive the corresponding fitted characteristic peak wavelengths.
[0058] As an example, the step of fitting and iterating to obtain the corresponding fitting characteristic peak wavelength based on the original wavelengths corresponding to all normalized light intensities in each neighborhood includes: constructing an optical model of the spectrometer, the optical model including model parameters, the model parameters including the fitting characteristic peak wavelength; substituting multiple normalized light intensities and their corresponding original wavelengths into the optical model of the spectrometer, and fitting and iterating to obtain the model parameters of the optical model.
[0059] Understandably, step 2 above yields multiple light intensity information and corresponding original wavelengths within each neighborhood. An optical model of the spectrometer is then constructed, including model parameters, among which the model parameters include the wavelength of the fitted characteristic peak. Multiple original wavelengths and their corresponding light intensity information are substituted into the optical model, and the fitted characteristic peak wavelength is iteratively obtained through fitting.
[0060] Specifically, since spectral linewidth is mainly caused by factors such as the natural linewidth, Doppler effect broadening, broadening caused by particle collisions, and broadening caused by the instrument response function, the optical model of the communication spectrometer can be fitted using three functional models: the Gauss model, the Lorentz model, and the Voigt model.
[0061] The Gaussian model is expressed as follows:
[0062]
[0063] The expression for the Lorentz model is:
[0064]
[0065] The expression for the Voigt model is:
[0066]
[0067] Where x is the original wavelength, f(x) is the normalized light intensity, y is a value in the range of [+∞, -∞], a0, a, b, c and d are model parameters, and c is the wavelength of the fitted characteristic peak.
[0068] The optical model of the spectrometer can choose one of the following function models. Multiple original wavelengths and their corresponding normalized light intensity information within each neighborhood are substituted into the model, and the model parameters are iteratively fitted. These model parameters include the fitted characteristic peak wavelengths. For example, through light intensity group I... i Perform fitting iterations to obtain the corresponding fitting characteristic peak wavelength wvl fit (i). For each group of light intensity in a neighborhood, a fitting characteristic peak wavelength can be iteratively fitted.
[0069] Among them, the fitting iterative implementation methods include, but are not limited to, traversal methods, global optimization methods (such as particle swarm optimization, ant colony optimization, etc.) and local optimization algorithms (such as Levenberg-Marquardt method, Newton's method, gradient descent method, conjugate gradient method, etc.).
[0070] Step 4: Based on the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, correct each original wavelength using a preset correction method to obtain the wavelength after original wavelength calibration.
[0071] Understandably, based on the wavelength wvl of the theoretical characteristic peak... c wavelength wvl of the fitted characteristic peak fit Wavelength correction is performed on the original wavelength, and the correction methods include, but are not limited to, polynomial correction, spline interpolation correction, and b-spline interpolation correction. When there are too many characteristic peaks, using low-order polynomials can easily lead to excessive errors, while using high-order polynomials can easily cause severe oscillations in the entire curve. Therefore, it is recommended to use spline interpolation or b-spline interpolation for correction.
[0072] Understandably, methods for correcting the original wavelength include: calculating the difference between the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, denoted as the wavelength drift value delta, where the expression for the wavelength drift value delta is:
[0073] delta = Interp(wvl) c ,wvl fit ,wvl o (7);
[0074] Among them, wvl c wvl is the theoretical characteristic peak wavelength. fit To fit the characteristic peak wavelength, wvl o The original wavelength is given by formula (7), which represents the wavelength shift value of the original wavelength calculated based on the theoretical characteristic peak wavelength and the fitted characteristic peak wavelength.
[0075] Based on the fitted characteristic peak wavelengths and corresponding wavelength shift values within multiple neighborhoods, a relationship curve between the fitted characteristic peak wavelengths and wavelength shift values is obtained. This relationship curve is shown below. Figure 3 As shown, Figure 3 The horizontal axis represents the fitted characteristic peak wavelength, and the vertical axis represents the wavelength drift value. For each original wavelength, the corresponding wavelength drift value is found on the relationship curve. Based on the wavelength drift value, each original wavelength is corrected using the following expression:
[0076] wvl r =delta+wvl0 (8);
[0077] Among them, wvl r This indicates the original wavelength wvl o The corrected wavelength.
[0078] The present invention provides a wavelength calibration method for a spectrometer, which calibrates the wavelength of the spectrometer by using multiple characteristic peaks of the light source. This overcomes the problem of systematic deviation between the displayed wavelength and the actual wavelength caused by factors such as external temperature, pressure, and mechanical and optical defects of optical components during the use of the spectrometer.
[0079] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0080] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention.
[0081] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A wavelength calibration method for a spectrometer, characterized in that, include: The light intensity of the light source is collected by a spectrometer, and the full spectrum light intensity includes light intensity information corresponding to all original wavelengths; Based on multiple theoretical characteristic peak wavelengths, the original wavelength closest to each theoretical characteristic peak wavelength is found on the full spectrum of light intensity. By setting a nearby range, the maximum light intensity and the original wavelength corresponding to the maximum light intensity are found within the set nearby range of the nearest original wavelength. All light intensities in the neighborhood of the maximum light intensity are obtained, and all light intensities in the neighborhood are normalized. Based on the original wavelengths corresponding to all normalized light intensities in each neighborhood, the corresponding fitting characteristic peak wavelengths are iteratively obtained. Based on the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, each original wavelength is corrected using a preset correction method to obtain the wavelength after calibration of the original wavelength. The step of iteratively fitting the corresponding fitting characteristic peak wavelength based on the original wavelengths corresponding to all normalized light intensities within each neighborhood includes: Construct an optical model for the spectrometer, wherein the optical model is a Gauss model, a Lorentz model, or a Voigt model; The optical model includes model parameters, and the model parameters include the wavelength of the fitted characteristic peak; Substituting multiple normalized light intensities and their corresponding original wavelengths into the optical model of the spectrometer, the model parameters of the optical model are fitted and iterated to obtain the fitted characteristic peak wavelength. The step of correcting each original wavelength using a preset correction method based on the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood to obtain the calibrated wavelength includes: Calculate the difference between the fitted characteristic peak wavelength and the theoretical characteristic peak wavelength in each neighborhood, and record it as the wavelength drift value; Based on the fitted characteristic peak wavelengths and corresponding wavelength drift values in multiple neighborhoods, a curve showing the relationship between the fitted characteristic peak wavelengths and wavelength drift values is obtained. Based on each original wavelength, find the corresponding wavelength drift value on the relationship curve; Based on the wavelength drift value, each original wavelength is corrected to obtain the calibrated wavelength.
2. The wavelength calibration method according to claim 1, characterized in that, The step of obtaining all light intensities within the neighborhood of the maximum light intensity and normalizing all light intensities within the neighborhood includes: Set the range parameter of the maximum light intensity neighborhood, and obtain all light intensities within the neighborhood of the maximum light intensity; Based on the maximum light intensity, all light intensities within the neighborhood are normalized to obtain multiple normalized light intensities within the neighborhood.
3. The wavelength calibration method according to claim 1, characterized in that, The expression for the Gauss model is: ; The expression for the Lorentz model is: ; The expression for the Voigt model is: ; Where x is the original wavelength, f(x) is the normalized light intensity, and y is a wavelength that takes values in the range of […]. , The values of ] are a0, a, b and d, which are model parameters, and c is the wavelength of the fitted characteristic peak.
4. The wavelength calibration method according to claim 1, characterized in that, The step of fitting a curve relating the fitted characteristic peak wavelength to the wavelength drift value based on the fitted characteristic peak wavelength and the corresponding wavelength drift value within multiple neighborhoods includes: Based on the fitted characteristic peak wavelengths and corresponding wavelength drift values in multiple neighborhoods, a curve relating the fitted characteristic peak wavelengths to the wavelength drift values is obtained by fitting using polynomial fitting, spline interpolation, or b-spline interpolation methods.
5. The wavelength calibration method according to claim 1, characterized in that, The fitting iterative method that fits and iterates the corresponding fitting characteristic peak wavelength based on the original wavelengths corresponding to all normalized light intensities in each neighborhood includes traversal method, global optimization method and local optimization algorithm.
Citation Information
Patent Citations
Broadband spectrograph spectral signal real-time calibration method
CN109724698A
Multi-wavelength calibration system for spectrograph
CN202676288U
