Calibration method for hadamard transform spectrometer
By establishing an actual coding matrix model for the Hadamard transform spectrometer, the measurement deviation problem caused by inter-wavelength crosstalk in the DMD spectrometer was solved, resulting in more accurate spectral measurement results, which are suitable for spectral recovery of multiple samples.
Patent Information
- Application Number
- CN202411924649.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-12-25
AI Technical Summary
The DMD-based Hadamard transform spectrometer suffers from a bias problem caused by the mutual influence between adjacent wavelength codes during each measurement. This results in a relative root mean square error of up to 5% in the measurement results, affecting the accuracy of the measurement of trace samples.
By establishing a mathematical model, the actual coding matrix of the Hadamard matrix is determined, which is divided into a left actual coding matrix and a right actual coding matrix. The coefficients in the coding matrix are corrected, and the actual coding matrix is used to correct the measurement data and reduce spectral bias.
Without changing the encoding method, the accuracy of spectral measurement is improved, the original signal-to-noise ratio advantage is retained, and the actual encoding coefficients do not need to be repeatedly acquired, making it suitable for spectral recovery of multiple samples.
Smart Images

Figure CN119756581B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of optical imaging technology, and more particularly to a calibration method for a Hadamard transform spectrometer. Background Technology
[0002] Near-infrared spectroscopy, with its advantages of non-destructive analysis and rapid detection, has become a major analytical tool in various scientific and industrial fields, and is widely used in agricultural production, food analysis, pharmaceutical industry, clinical medicine, materials science, and other areas. The near-infrared spectral band typically refers to the wavelength range between 780 and 2500 nm. This spectral range encompasses the overtones and combined absorption spectra of vibrations in various H-containing molecules such as CH, NH, OH, and SH in organic compounds, carrying valuable information about the chemical composition and molecular structure of the sample. Therefore, it is particularly suitable for the analysis and identification of organic compounds, including polymers, food, pharmaceuticals, and biological tissue samples.
[0003] With the continuous development of microcomputer technology, the miniaturization of NIR spectrometers has gradually become a research hotspot. A DMD (Digital Micromirror Device), as a spatial light modulation device, consists of numerous orderly arranged reflective micromirrors. Each micromirror can be individually encoded to control the light incident upon it. Initially widely used in projection and imaging, researchers later combined it with the Hadamard transform method and introduced it into the field of spectral analysis, designing a Hadamard transform spectrometer based on the DMD. The Hadamard transform is a discrete linear orthogonal transform that transforms the input vector through the Hadamard matrix, converting data from the time or spatial domain to the column rate domain. Similar to the Fourier transform, the Hadamard transform can also perform frequency domain analysis of signals. Unlike the Fourier transform, which uses sine and cosine basis functions, the Hadamard transform uses orthogonal square wave basis functions, making it more suitable for transformation and frequency domain analysis in the field of digital discrete signals.
[0004] The DMD-based Hadamard transform spectrometer uses a DMD to perform Hadamard encoding modulation on the incident light after grating dispersion. Different wavelengths of incident light are encoded with different Hadamard orthogonal sequences in the time domain. Then, an inverse Hadamard transform is performed on the measured time-domain signal to obtain the spectral intensity information from the Hadamard spectrum. Because each time-domain signal measured by the detector is the result of encoding and multiplexing all wavelengths, the intensity level of the detected signal is significantly improved, thereby increasing the signal-to-noise ratio of the spectral measurement and enabling reliable measurement of weak signals. Furthermore, replacing the traditional mechanically moving encoding mask with a DMD reduces measurement errors introduced by mechanical vibration and reduces the size of the spectrometer. It also overcomes the limitation that the encoding matrix can only be a cyclically left-shifted quadratic residue structure Hadamard matrix, allowing the introduction of other Hadamard matrices for transformation encoding, such as sequential Hadamard matrices with energy compression characteristics. These matrices can shorten the spectral measurement time by sacrificing some spectral resolution. Therefore, DMD-based Hadamard transform spectrometers have been widely used.
[0005] Hadamard-coded spectral measurements using DMD often suffer from inaccuracies due to various reasons. Quan et al. categorized spectral noise into multiplicative noise and time-dependent noise, proposing corresponding denoising equations for each type to improve measurement accuracy. However, this method requires two sets of correction matrices, which are difficult to obtain, and time-dependent noise needs to be recalibrated in each measurement. Lu et al. employed a dual-filter strategy to effectively suppress stray light noise in spectral measurements, but each spectrum required two measurements followed by stitching. Zhang et al. proposed a spectrometer based on a one-dimensional Hadamard-coded spectrometer that performs secondary encoding of the Hadamard coefficient. This fully utilizes the two-dimensional encoding characteristics of DMD and combines it with a complementary symmetric encoding matrix, effectively improving spectral measurement speed and signal-to-noise ratio; however, the two-dimensional encoding is relatively complex.
[0006] It is worth noting that no literature has yet been found to address the deviation problem in DMD-based Hadamard transform spectrometers (which encode multiple wavelengths simultaneously in each measurement) caused by the mutual influence of adjacent wavelength encodings, compared to traditional DMD-based scanning measurements (which encode only one wavelength per measurement). The relative root mean square error between these two types of results can reach as high as 5% in experiments. Without correction, such a large deviation could lead to erroneous results in measurements of trace samples and comparisons of similar samples. Summary of the Invention
[0007] To address the above problems, this invention proposes a calibration method for Hadamard transform spectrometers. This invention establishes a mathematical model for inter-wavelength crosstalk in spectrometers that cause measurement deviations, obtains an actual coding matrix, and uses the actual coding matrix to correct the measurement data. It has good universality and is easy to implement, and can effectively reduce the spectral deviation of Hadamard transform.
[0008] The calibration method for a Hadamard transform spectrometer, with the following specific steps:
[0009] S1, determine the Hadamard matrix, and construct the ideal encoding matrix based on any column or row of the Hadamard matrix;
[0010] S2, based on the crosstalk effect model, the actual coding matrix is obtained from the ideal coding matrix;
[0011] S3, when performing Hadamard coding measurements on arbitrary spectra, uses the actual coding matrix to obtain the corrected recovered spectrum.
[0012] Preferably, S2 includes the following steps:
[0013] S21, the ideal coding matrix is divided into a left ideal coding matrix and a right ideal matrix according to spatial position. The left actual coding coefficient and the right actual coding coefficient are determined according to the inter-wavelength crosstalk phenomenon. The left ideal coding matrix is modified based on the left actual coding coefficient to obtain the left actual coding matrix. The right ideal coding matrix is modified based on the right actual coding coefficient to obtain the right actual coding matrix. The left actual coding matrix and the right actual coding matrix are combined to form the actual coding matrix containing coefficients.
[0014] S22, the coding sequence of the actual coding matrix containing coefficients is represented by the Hadamard sequence of the Hadamard matrix to establish the correlation between the left actual coding coefficients, the right actual coding coefficients, the anomalous peak intensity values and the input spectrum;
[0015] S23. Use a spectrometer to perform Hadamard coding measurements on any set of input spectra. Based on the measured values and the intensity values of abnormal peaks, calculate the actual coding coefficient values on the left and right sides. Substitute these values into the actual coding matrix containing the coefficients to obtain the actual coding matrix.
[0016] Preferably, in S21, the division of the ideal coding matrix into a left ideal coding matrix and a right ideal matrix according to spatial position is specifically expressed as follows:
[0017]
[0018] Where S represents the ideal encoding matrix; S L S represents the left ideal coding matrix, corresponding to the left half of the wavelength micromirror column; R This represents the right ideal coding matrix, corresponding to the right half of the wavelength micromirror column;
[0019] The parameterized actual coding matrix, composed of the left and right actual coding matrices, is represented as follows:
[0020]
[0021] Where S′ represents the actual coding matrix containing coefficients; S′ L S′ represents the left actual coding matrix; R This represents the right actual coding matrix.
[0022] Preferably, in S21, the process of obtaining the left actual coding matrix and the right actual coding matrix is as follows:
[0023] Determine the left actual coding coefficients and obtain the left actual coding matrix:
[0024] The left ideal coding matrix contains n columns, each column corresponding to a wavelength; ensure that each coding state of all wavelengths is only affected by the state of the micromirrors of the wavelength to its left; for a non-zero element in the (j+1)th column, if the element in the j-th column of the same row is 1, the element in the (j+1)th column is affected, using the left actual coding coefficient l. j The affected value is represented by the non-zero element in the (j+1)th column. Replace all affected elements in the left ideal coding matrix with the left actual coding coefficients to obtain the left actual coding matrix.
[0025] Determine the right actual coding coefficients and obtain the right actual coding matrix:
[0026] The right ideal coding matrix contains n columns, each corresponding to a wavelength. Each coding state of all wavelengths is only affected by the state of the micromirrors on its right. For a non-zero element in the j-th column, if the element in the (j+1)-th column of the same row is 1, the element in the j-th column is affected, using the right actual coding coefficient r. i The affected value is represented by the non-zero element in the j-th column. Replace all affected elements in the right ideal coding matrix with the right actual coding coefficients to obtain the right actual coding matrix.
[0027] Where j = 1, 2, ..., n-1, n represents the number of wavelengths to be encoded; the rows and columns of the above matrix can be interchanged without affecting the effectiveness of the method.
[0028] Preferably, in S22, the selected coding sequence is modified by substituting coefficients according to the crosstalk influence model, and the coding sequence of the actual coding matrix containing coefficients is represented by the Hadamard sequence of the Hadamard matrix, as expressed by the formula:
[0029]
[0030] Among them, S′ L(:,j+1) represents the encoding sequence of the (j+1)th column in the left actual encoding matrix; S′ R (:,j) represents the encoding sequence of the j-th column of the right actual encoding matrix; H(:,1) represents the Hadamard sequence of the 1-th column of the Hadamard matrix; H Coding H represents the corresponding sequence in the Hadamard matrix that has the same encoded waveform as the encoded sequence S(:,j); Left_side H represents the Hadamard sequence corresponding to the left-hand side of the encoded sequence that causes crosstalk; Right_side H represents the Hadamard sequence corresponding to the right-hand side of the encoded sequence that causes crosstalk; Abnormal This represents the Hadamard sequence corresponding to the abnormal peak.
[0031] Preferably, in S22, if the selected encoding sequence is the corresponding encoding sequence of all even-numbered sequence items of the Hadamard matrix, then the encoding sequence of the actual encoding matrix containing coefficients is represented using the corresponding Hadamard sequence in the Hadamard matrix, as expressed by the formula:
[0032]
[0033] Where H(:,2(j+1)) represents the Hadamard sequence in the 2(j+1)th column of the Hadamard matrix; H(:,2j) represents the Hadamard sequence in the 2jth column of the Hadamard matrix.
[0034] Preferably, in S22, the establishment of the correlation between the left actual coding coefficient, the right actual coding coefficient, the abnormal peak intensity value, and the input spectrum is as follows:
[0035] When n Hadamard sequences are used to encode n consecutive wavelengths of the input spectrum on the DMD, there are n-1 regions in the entire micromirror encoding area where the encoded sequences are adjacent to each other and produce anomalous peaks; the intensity value of each anomalous peak is represented by d. j For the j-th abnormal peak intensity value d j All are made of S′ L (:,j+1) and S′ R (:,j) represents the spectral input value X=[x1,x2,......,x n ] T x in j+1 and x j The combined contribution of the encoded anomalous peaks is represented as:
[0036]
[0037] Since the coding coefficients in the left and right actual coding matrices are continuous at adjacent points, let the relationship between the left and right actual coding coefficients be l. j =r j=f j Then the actual coding coefficient f j The calculation formula is:
[0038]
[0039] Preferably, after step S2, the method further includes: verifying the obtained actual encoding matrix, as follows:
[0040] The first measured value is obtained by measuring a set of input spectra using the scanning measurement method of the spectrometer. The second measured value is obtained by measuring the same set of input spectra using the Hadamard measurement method of the spectrometer. The measured column rate spectrum is obtained by decoding the second measured value.
[0041] The first measured value is encoded using the obtained actual coding matrix to obtain the simulated measured value; the simulated measured value is then inversely transformed to obtain the simulated column rate spectrum.
[0042] Calculate the relative root mean square error between the measured column rate spectrum and the simulated column rate spectrum. If the relative root mean square error is less than the preset percentage threshold, the obtained actual coding matrix meets the requirements.
[0043] Preferably, when performing Hadamard coding measurements on arbitrary spectra, the corrected recovered spectrum is obtained using the actual coding matrix, expressed as:
[0044]
[0045] Among them, Y Test This represents the measured value obtained by using Hadamard coding to measure the spectrum; Represents the actual encoding matrix The inverse matrix of X; Corrested This indicates the corrected recovered spectrum.
[0046] Preferably, the mask required for the Hadamard transform spectrometer is implemented using a digital micromirror device (DMD).
[0047] Another calibration method for a Hadamard transform spectrometer, based on the crosstalk phenomenon between wavelengths, uses zero-insertion to reduce the influence between adjacent codes. Specifically, when encoding the input spectrum, a zero-code row or a zero-code column is set between the codes of every two adjacent wavelengths; the number of the rows or columns is greater than or equal to 1.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] This invention uses the corrected actual coding matrix to perform an inverse transformation on the measured values of Hadamard coding to obtain the corrected column rate spectrum. This method does not require changing the coding method and can retain the original spectral information to the greatest extent. It can also obtain a more accurate spectrum of the measurement results without significantly affecting the original signal-to-noise ratio advantage. Furthermore, the actual coding coefficients do not need to be obtained repeatedly. The actual coding coefficients and the actual coding matrix obtained from measuring one sample can be directly used to recover the spectra of other samples. Attached Figure Description
[0050] The present invention will now be described in further detail with reference to the accompanying drawings;
[0051] Figure 1 This is a flowchart of the calibration method for a Hadamard transform spectrometer according to an embodiment of the present invention;
[0052] Figure 2 A structural diagram of the spectrometer for the calibration method of the Hadamard transform spectrometer according to an embodiment of the present invention;
[0053] Figure 3 This is a comparison diagram of the ideal Hadamard encoding results of the second measured value and the first measured value of the Hadamard encoding output domain spectrum of the Hadamard transform spectrometer in this embodiment of the invention; wherein, (a) represents the comparison between the measured data of the Hadamard encoding output result and its reference data; (b) represents the comparison between the column rate spectrum recovered from the measured data and the reference spectrum;
[0054] Figure 4 This is a schematic diagram of the abnormal peak intensity and coding coefficient at adjacent wavelengths in the calibration method of the Hadamard transform spectrometer according to an embodiment of the present invention.
[0055] Figure 5 The simulation of the Hadamard column rate spectrum recovered from the measured results of the calibration method of the Hadamard transform spectrometer in this embodiment of the invention and the calibration column rate spectrum obtained using the correction matrix; wherein, (a) represents the spectrum of an empty cuvette sample; (b) represents the spectrum of a water sample; (c) represents the spectrum of an alcohol sample; and (d) represents the spectrum of an edible oil sample.
[0056] Figure 6 The calibrated column rate spectra obtained by the zero-interpolation method of the Hadamard transform spectrometer in this embodiment of the invention are shown. To facilitate comparison of differences, all spectra have been normalized. Among them, (a) represents the spectrum of the empty cuvette sample; (b) represents the spectrum of the water sample; (c) represents the spectrum of the alcohol sample; and (d) represents the spectrum of the edible oil sample. Detailed Implementation
[0057] The present invention will be further described below through specific embodiments.
[0058] See Figure 1The calibration method for the Hadamard transform spectrometer is shown below:
[0059] This embodiment uses a Texas Instruments NIR spectrometer (EVM, DLPNIRSCANEVM, Texas Instruments) for testing, and its optical path is as follows: Figure 2 As shown, the spectrometer uses a tungsten-halogen lamp (L8008, INTERLIGHT) as its light source. The emitted broadband light passes through the sample, then through a 25µm x 4.2mm slit, a collimating lens, and a bandpass filter with a passband of 1350-2450nm. It is then focused by a reflective grating and a lens onto a digital micromirror device (DMD, DLP4500NIR, Texas Instruments). Light of each wavelength illuminates micromirrors located in different columns on the DMD; therefore, the micromirrors are encoded column by column. When one or more columns of micromirrors are in an "on" encoded state, the light illuminating these micromirrors is collected by a collection mirror assembly and its intensity is detected by a single-pixel InGaAs photodetector (InGaAs Photodetector, G12183-120K, Hamamatsu).
[0060] S1, determine the Hadamard matrix, and construct the ideal encoding matrix based on any column or row of the Hadamard matrix.
[0061] DMD scanning measurement mode and Hadamard coding measurement mode:
[0062] A DMD (Dispersive Dynamics Device) is a spatial light modulation device that can control the collection of each tiny incident light beam hitting a specific micromirror by individually encoding each micromirror. This aligns well with spectral measurement methods that use Hadamard transform to multiplex and encode the spectrum. DMDs typically offer two measurement modes: scanning measurement and Hadamard-encoded measurement.
[0063] Scanning measurement involves sequentially setting the micromirrors of the DMD to the "on" state along the wavelength unfolding direction, and the detector sequentially records the intensity of each wavelength. The measurement result is as follows:
[0064]
[0065] Where X is the incident spectrum, E is the encoding matrix for scanning measurement, and Y is the intensity value measured by the detector. In scanning measurement mode, the value y received by the detector is... i Equal to the intensity x of each wavelength iThe advantage of the scanning measurement method is its simplicity; it obtains the spectrum without complex data processing. Therefore, the measured spectrum is used as a reference result in this study. Its disadvantages include low light source utilization, generally low detected signal intensity, significant susceptibility to noise, and poor signal-to-noise ratio.
[0066] Hadamard coding measurement utilizes the concept of a weighing design method. To accurately obtain the weight of multiple small objects, the weight of the objects in a regular combination is first measured, because the instrument is much more accurate in measuring large physical quantities than in measuring small ones. Then, mathematical methods are used to calculate the weight of each individual small object. The combined measurement result is as follows:
[0067]
[0068] In this matrix, each row of the S matrix (ideal coding matrix) represents the wavelength combination of a Hadamard coded data yi, and each column of the matrix represents the coding sequence for each wavelength. In Eq.(2), only the even-numbered columns of the 8th-order Sequency-Ordered Hadamard Matrix (SOHM), namely 2, 4, 6, and 8, are selected as the coding sequences for the four wavelengths. The reason why all sequences are not used in order is that selecting sequences with a certain carrier frequency interval can effectively reduce the aliasing between coding sequences. By completing the other sequences of the S matrix and replacing the 0 values in the matrix with -1, the corresponding 8th-order Hadamard matrix can be obtained:
[0069]
[0070] From Eq.(2), we can see that the measurement data of basically each detector is... Since all combinations are half-wavelength light intensities, the Hadamard coding method has a high utilization rate of light intensity, thus possessing advantages such as high signal-to-noise ratio and strong noise immunity. The inverse Hadamard transform X′=H is performed on the measurement data Y. -1 *Y, yielding the columnar frequency spectrum X′, where the values of even-numbered columnar frequency terms are...
[0071] Accuracy assessment of spectral reconstruction using the Hadamard coding method:
[0072] To better assess the accuracy of spectral reconstruction, the spectrum obtained by scanning methods was used as the reference spectrum of the sample. This spectrum was compared with the spectrum obtained by Hadamard encoding, and the relative root mean square error (RMSE) was calculated. The formula for calculating the relative RMSE is as follows:
[0073]
[0074] Where, xi This is a reference value for the light intensity at the i-th wavelength measured using a scanning method. This represents the light intensity at the i-th wavelength measured using the Hadamard encoding method. A smaller relative root mean square error indicates a more accurate measured spectrum.
[0075] Comparison of the output results of Hadamard encoding using DMD and the corresponding spectral reconstruction results with their respective reference values:
[0076] Figure 3 The output results of Hadamard encoding using DMD and the corresponding spectral reconstruction results are shown, along with a comparison of the two results with their respective reference values. Specifically, Figure 3 (a) Comparison of the measured data of the Hadamard encoding output with its reference data. The encoding order refers to the sequence number of the Hadamard encoding on the DMD, that is, the sequence number of each row in the S matrix in Eq.(2), and the corresponding output is also the y in Eq.(2). i (The y-axis is on the left). "Reference Intensity" is the reference result obtained by directly performing a Hadamard transform on the spectrum obtained using the scanning measurement method, while "Measured Intensity" is the actual measurement result after DMD encoding. "Percentage Deviation" represents the percentage deviation between the two. The corresponding y-axis is on the right.
[0077] Figure 3 (b) Comparison between the column rate spectrum reconstructed from the measured data and the reference spectrum. Each column rate corresponds to a sequence of column vectors in the Hadamard matrix. If the S-matrix sequence of the Hadamard column vectors corresponding to a given column rate is used to encode a wavelength, its intensity will theoretically be equal to half the intensity of that wavelength in the spectrum. A large number of column rate values close to zero in the "measured spectrum" data represent sequences that were not selected as encoding sequences. The highlighted values are non-coding sequences with non-zero column rate intensities, i.e., anomalous peaks.
[0078] For example, using a sequence of all even columns of a 256th-order S-matrix (column ratios of 2, 4, ..., 256), 128 wavelengths of light absorbed by an empty cuvette were encoded, with the exposure time for each wavelength combination measured at 2000 μs. The experimental results of DMD encoding are shown below. Figure 3 The “measured intensity” shown in (a) is used as a reference value for the wavelength combination result. Substituting the spectrum X obtained by the scanning measurement method into Eq.(2) yields Y. 理论参考 .Depend on Figure 3 (a) It is evident that there is a significant numerical deviation between the actual coding results and the theoretical reference results. Figure 3The percentage deviation shown in (a) indicates that the measurement deviation is most significant at the beginning and end of the data, and smallest in the middle. Observing the DMD encoding arrays corresponding to these three data points (as shown in Eq.(2)), it is not difficult to find that the DMD encoding at the beginning and end of the rows corresponds to the measurement of the combined intensity of consecutive adjacent wavelengths. At this time, when multiple 1s appear consecutively in the encoding, such as... The measurement deviation is quite significant (>1%). In the middle section, the DMD encoding corresponds to the combined intensity of the measured wavelength intervals; at this point, the encoding shows alternating 0 and 1 values, such as... The measurement deviation is small (<1%).
[0079] Figure 3 (b) shows the measured spectral curve, which is the column rate spectrum obtained by performing a Hadamard transform on the measured DMD data. After Hadamard sequence encoding, the wavelength intensity values of the spectrum will correspond one-to-one with the column rate intensity of the encoded sequence in the column rate spectrum. Therefore, the Reference spectrum can also be correlated with the column rate and displayed. Figure 3 In (b), the measured spectrum and the reference spectrum in the figure show significant differences in the overall curve shape, and some abnormal peaks even appear at certain column rate positions in the measured spectrum, such as... Figure 3 The marked sequences in (b) show anomalous peaks that were not selected for wavelength encoding, indicating that the measured encoding results show sequence components that are not wavelength encoded and have significant numerical values.
[0080] S2, based on the crosstalk effect model, the actual coding matrix is obtained from the ideal coding matrix.
[0081] S21, the ideal coding matrix is divided into a left ideal coding matrix and a right ideal matrix according to its spatial position. The left actual coding coefficients and the right actual coding coefficients are determined according to the inter-wavelength crosstalk phenomenon. The left ideal coding matrix is modified based on the left actual coding coefficients to obtain the left actual coding matrix. The right ideal coding matrix is modified based on the right actual coding coefficients to obtain the right actual coding matrix. The left actual coding matrix and the right actual coding matrix form the actual coding matrix containing coefficients.
[0082] Based on the percentage distribution of deviations in the measured values, the following assumptions are made: When performing Hadamard encoding on wavelengths in a DMD, for any encoding combination displayed on the DMD, when the micromirror corresponding to a certain wavelength is set to "on," it means that this wavelength needs to participate in the encoding combination. The light intensity corresponding to this part of the micromirror will be affected by the light intensity corresponding to the two wavelengths adjacent to this wavelength when the micromirrors are encoded as "on," causing a significant deviation in the measurement results after Hadamard encoding, thus leading to distortion in spectral recovery. When the wavelength encoding combination appears in intervals of 0 and 1, i.e., 0, 1, 0, 1, 0, 1, 0, 1, ..., the measurement deviation is negligible. Therefore, it is considered that when the wavelength encoding is 0, it has no effect on the encoded output result. Based on this phenomenon, a crosstalk influence model is established, and an actual encoding matrix is proposed. The correctness of this assumption is verified by observing whether the spectral accuracy can be improved after performing inverse operations on it.
[0083] First, because the actual coding coefficients of the micromirrors encoding each wavelength on the DMD are affected by the coding of the two wavelengths to its left and right, the original ideal coding matrix is modified as follows:
[0084]
[0085] Wherein, the left ideal coding matrix S L And the right ideal coding matrix S R Each value in the table represents the ideal coding coefficient for the left and right halves of the corresponding wavelength micromirror column; S is the ideal coding matrix, i.e., the ideal coding coefficient is 1 or 0.
[0086] For example, consider the 8th-order S-matrix used in Eq.(2) that encodes the four wavelengths using the Sequential Hadamard matrix (SOHM).
[0087]
[0088] Each row corresponds to the DMD encoding at a different time, and each column corresponds to a different wavelength. Columns not used for encoding in the traditional S-matrix are omitted to avoid confusion. Although the DMD has two-dimensional pixels, considering that the grating in the spectrometer only performs one-dimensional spectral dispersion, the DMD is encoded in one dimension here, with each column of micromirrors having the same encoding.
[0089] Since the actual coding matrix is divided according to spatial location, for S L In the matrix, for each element, every encoded state of all wavelengths is only affected by the state of the micromirror of its left-hand wavelength. For example, if the left-hand element S(1,1) of element S(1,2) (the first row and second column of matrix S) is 1, then S... L(1,2) will be affected and become l1, representing that its actual coding coefficients have changed due to the influence of the left micromirror state. Similarly, assuming that the actual coding coefficients of each column change in the same way when affected, the left ideal coding matrix S... L Modified to the left actual coding matrix S′ L :
[0090]
[0091] Where L = [l1, l2, l3] is the transformed left actual coding coefficient matrix of columns 2, 3, and 4. Similarly, for S... R For each element in the matrix, every encoding state of all wavelengths is only affected by the state of the micromirror on its right-hand side. Therefore, the right-hand ideal encoding matrix S R Modified to the right actual coding matrix S′ R :
[0092]
[0093] Where R = [r1, r2, r3] is the transformed right actual coding coefficient matrix of columns 1, 2, and 3. Assuming that the influence of micromirrors corresponding to adjacent wavelengths is roughly the same, the final actual coding matrix containing coefficients can be obtained as follows:
[0094]
[0095] S22, the coding sequence of the actual coding matrix containing coefficients is represented by the Hadamard sequence of the Hadamard matrix to establish the correlation between the left actual coding coefficients, the right actual coding coefficients, the anomalous peak intensity values and the input spectrum;
[0096] In an ideal coding matrix S, each column represents the coding sequence for each wavelength. After the Hadamard transform, the sequence will have two peaks in the Hadamard frequency spectrum. Taking the second column element of matrix S, S(:,2), as an example:
[0097]
[0098] Therefore, the encoded sequence S(:,2) will have values at both column rates 1 and 4 in the column rate spectrum. For any encoded sequence S(:,j), we have:
[0099]
[0100] After each wavelength is encoded by a different coding sequence, the measured time-domain results are subjected to an inverse Hadamard transform to obtain the Hadamard column rate spectrum. The peak values of different column rates in the column rate spectrum correspond to the intensity of each wavelength, and are therefore equivalent to the spectrum.
[0101] For S′ L and S′ R The coded sequences in the Hadamard rate spectrum will not have peak positions exactly equivalent to S. L and S R The corresponding encoding sequence. Taking S′ in Eq.(7) and Eq.(8) as an example. L (:,2) and S′ R For example, (:,2)
[0102]
[0103] S′ L (:,2) and S′ R In the column rate spectrum of (:, 2), there are 4 column rate values, of which the first two are S. L (:,2) and S R (:,2) The inherent column rates 1 and 4, the third term is the column rate of the left and right encoded sequences that affect the encoding of this sequence, and the last fourth term is Figure 3 The column rate positions corresponding to several abnormal peaks in the middle.
[0104] Generalizing this rule to S′ L S′ R If all even-numbered columns are encoded in the given sequence, then:
[0105]
[0106] Where j = 1, 2, ..., n-1, and n is the number of wavelengths to be encoded. Since S′ L (:,1) and S′ R (:,n) represents the two outermost sequences and is not affected by neighboring encoded sequences. Therefore, Eq.(14) and Eq.(15) do not contain these two terms. The first two terms in Eq.(14) and Eq.(15) are the same as the two terms in Eq.(11), the third term is the neighboring sequence that affects this sequence, and the fourth term H Abnormal The Hadamard sequence representing the abnormal peak. H Abnormal For a sequence of the Hadamard matrix, which cannot be further divided into a linear combination of multiple sequences, each actual encoded sequence produces only one anomalous peak in the column rate spectrum.
[0107] If the chosen encoding sequence is not limited to all even-numbered sequence items of the Hadamard matrix, and the encoding sequence of the actual encoding matrix containing coefficients is represented using the Hadamard sequence of the Hadamard matrix, then the formula is expressed as:
[0108]
[0109] Among them, S′ L(:,j+1) represents the encoding sequence of the (j+1)th column in the left actual encoding matrix; S′ R (:,j) represents the encoding sequence of the j-th column of the right actual encoding matrix; H(:,1) represents the Hadamard sequence of the 1-th column of the Hadamard matrix; H Coding H represents the corresponding sequence in the Hadamard matrix that has the same encoded waveform as the encoded sequence S(:,j); Left_side H represents the Hadamard sequence corresponding to the left-hand side of the encoded sequence that causes crosstalk; Right_side H represents the Hadamard sequence corresponding to the right-hand side of the encoded sequence that causes crosstalk; Abnormal This represents the Hadamard sequence corresponding to the abnormal peak. The rows and columns of the above matrix can be interchanged without affecting the effectiveness of the method.
[0110] Furthermore, the anomalous peaks generated by different actual coding sequences are not entirely the same. When the sequence coding is determined, the column rate value of the anomalous peak in the column rate spectrum is also uniquely determined. In particular, when the coefficient interval between adjacent coding sequences is fixed to a specific value, the generated anomalous peak will also repeatedly appear at several specific column rates in the column rate spectrum. If a sequence with a coefficient interval of 2 in a 256-order S matrix is selected, that is, a sequence with column rates of 2, 4, ..., 256, the wavelength is encoded sequentially. Calculated by Eq.(14) and Eq.(15), the anomalous peak will repeatedly appear at column rates of 3, 7, and 15, which is consistent with... Figure 3 (b) The column rates of the anomalous peaks match. Since the anomalous peaks repeat at certain column rates, they will accumulate into significant values in the column rate spectrum. When the same wavelength is encoded using a sequence of column rates 2, 3, 4, ..., 129 from a 256th-order S matrix, calculations show that the anomalous peaks repeat at column rates 2, 4, and 8. In this case, the column rate of the anomalous peaks is the same as that of some carrier frequency sequences, which will cause more severe crosstalk distortion in the recovered spectrum.
[0111] When n Hadamard sequences are used to encode n consecutive wavelengths on a DMD, there are n-1 regions in the entire micromirror coding region where the coding sequences are adjacent to each other and produce anomalous peaks. Assume the intensity of each anomalous peak (regardless of its position) is d. j Then we have D = [d1, d2, ..., d n-1 For any anomalous peak intensity value d i All are made of S′ L (:,j+1) and S′ R (:,j) for the spectrum X=[x1,x2,......,x n x in ] j+1 x j The encoded anomalous peaks contribute together, and the corresponding correlation is as follows:
[0112]
[0113] Because S′ R and S′ L To ensure the continuity of adjacent values of the two sets of actual coding coefficients, for ease of calculation, let in Eq.(18):
[0114] l j =r j =f j
[0115] Therefore, Eq.(18) can be simplified to:
[0116]
[0117] Then the actual coding coefficient f is obtained. j The calculation formula is:
[0118]
[0119] Applying the calculation of the actual coding coefficients to the entire spectral measurement, we have:
[0120]
[0121] Where F = [f1, f2, ..., f n-1 [] represents the actual coding coefficients during the actual coding process. The average intensity of adjacent points in the spectrum, D = [d1, d2, ..., d]. n-1 Let be the relative intensity of each anomalous peak at (n-1). The intensity of the anomalous peak generated by each pair of adjacent wavelengths is uniquely determined by the average intensity of these two pairs of adjacent wavelengths and their actual coding coefficients after their interaction on the DMD.
[0122] S23. Use a spectrometer to perform Hadamard coding measurements on any set of input spectra. Based on the measured values and the intensity values of abnormal peaks, calculate the left and right actual coding coefficient values, and substitute them into the actual coding matrix containing the coefficients to obtain the actual coding matrix.
[0123] As can be seen from Eq.(21), the actual coding coefficients F can be calculated by obtaining a set of reference spectra X and the abnormal peak intensities D generated by adjacent wavelengths.
[0124] Since F reflects the actual coding coefficient changes of micromirrors at different positions on the DMD due to coding influence, the actual coding coefficient is determined once the position is determined. Therefore, although different reference spectra x have different anomalous peak intensities D, the coding coefficient F during actual coding should be the same. Substituting the actual coding coefficient F into Eq.(9) yields the actual coding matrix. (i.e., the numerical solution of S′).
[0125] Verifying the obtained actual coding matrix and using it to simulate the measured coding data, we get:
[0126]
[0127] Among them, X Reference For the reference spectrum obtained using the scanning method, Y Simulated To simulate the measured data, Y Simulated An inverse transform is performed to obtain the corresponding simulated column rate spectrum. Reference and measured spectra are obtained by replacing multiple different samples. If the measured and simulated column rate spectra always match well (e.g., the relative root mean square error is less than a preset percentage threshold), then the model's correctness and universality can be demonstrated. The specific verification process is illustrated in the experimental verification results of this embodiment.
[0128] S3, when performing Hadamard-coded measurements on arbitrary spectra, uses the actual coding matrix to obtain the corrected recovered spectrum.
[0129] If the actual encoding matrix If the measured data can be simulated well, then it can be considered that:
[0130]
[0131] At this time Y Test This represents the measured intensity value of the wavelength-coded DMD. If a direct inverse Hadamard transform is performed, the result is...
[0132]
[0133] Where, X′ Test The even-numbered sequence corresponds to the intensity of each wavelength in the spectrum, i.e., the recovered spectrum X. Test .
[0134] Because Y is generated Test Encoding sequence X no longer has a corresponding relationship with the Hadamard transformation as it does with the theoretical S-matrix. Test Reference value X of X Reference There will also be discrepancies between them (as...) Figure 3 (Observed in).
[0135] At this point, the actual encoding matrix can be used to decode the measured encoded data, resulting in:
[0136]
[0137] Thus, the corrected recovery spectrum X is obtained. Corrected .
[0138] The experimental verification results of this embodiment are as follows:
[0139] 1. Obtain coding coefficients
[0140] Figure 4 This paper presents the statistical analysis of the intensity of anomalous peaks generated by actual coding measurements of each pair of adjacent wavelengths in the spectrum of an empty cuvette, and the actual coding coefficients calculated from the intensity of these anomalous peaks. The experimental samples were empty cuvettes, and the absorption spectrum from 1350 to 2450 nm was divided into 128 bands (λ1, λ2, ..., λ...). 128 Each measurement used only sequences with column rates of 2 and 4 in the 256th order S matrix to encode two adjacent wavelengths sequentially, namely λ1 and λ2, λ2 and λ3, etc., and a total of 127 column rate spectra were recovered. The intensity values of 256 coded combinations were recorded in a single measurement, the exposure time of a single coded combination was 2000 μs, and the interval between two adjacent measurements was 30 s. Since the coding sequence is determined, it can be seen from Eq.(14) and Eq.(15) that a unique anomalous peak will appear at the column rate value of 3 in the column rate spectrum generated by encoding adjacent wavelengths with sequences with column rates of 2 and 4. The intensity values of column rate 3 in the Hadamard column rate spectra of these 127 sets of measurement data were statistically analyzed. Figure 4 The solid line marked with a sphere represents the anomalous peak intensity value D = [d1, d2, ..., d] generated by Hadamard encoding each pair of adjacent wavelengths in the empty cuvette. n-1 Substituting the measured abnormal peak intensities into Eq.(21), we can obtain the actual coding coefficients F = [f1, f2, ..., f] when the coding of each wavelength on the DMD is affected by the coding of adjacent micromirrors. n-1 ]( Figure 4 dotted line).
[0141] 2. Simulation and Reconstruction of Actual Measurements by Coding Coefficients
[0142] Figure 5 This demonstrates the simulation of the measured column rate spectrum recovered using reference spectra of four samples, and the correction of the column rate spectrum obtained by correcting the measured encoding results of the four samples. Figure 4 Substitute the coding coefficient F obtained from the actual coding process into S′ L and S′ R In this process, the final actual encoding matrix is obtained. by As the encoding matrix, the spectra of various samples obtained using the scanning measurement method are used as reference spectra and substituted into equation Eq.(22). The calculated simulated encoded measurement result Y... Simulated Then, the inverse Hadamard transform is performed to obtain the simulated column rate spectrum, such as... Figure 5 The simulated spectrum curve is shown in the figure. The simulated spectrum curve and the measured column rate spectrum curve recovered from the actual measurements not only show excellent agreement at the column rate of wavelength encoding, but also accurately simulate the intensity values of the column rate corresponding to the abnormal peaks. This phenomenon demonstrates the correctness of the actual encoding matrix model. Furthermore, the fact that the encoding coefficients obtained in one set of samples (empty cuvettes) can be used to simulate the measured recovered column rate spectra of several other samples further verifies the correctness and universality of the encoding coefficients. In addition, since the actual wavelength encoding matrix on the DMD was obtained... The correctness of the model was verified, therefore it can be used... The measured coding results are corrected to obtain the corrected column rate spectrum.
[0143] Because the actual coding coefficients of the micromirror coding wavelength change, the measured coding result Y... Test The Hadamard column rate spectrum obtained by performing the inverse transform cannot be directly recovered using the ideal Hadamard transform method to obtain the column rate spectrum corresponding to the spectral intensity values. Instead, it is necessary to transform Y... Test Substituting into Eq.(25) above, the calculated X Corrested like Figure 5 The “correction spectrum” curve is shown in the figure. Compared with the “measured spectrum” curve of the column rate spectrum recovered using the ideal Hadamard transform method, the “correction spectrum” is significantly closer to the “reference spectrum”.
[0144] Table 1 shows Figure 5 The results of the spectrum recovery using the ideal coding matrix (measured spectrum) and the results of the spectrum recovery using the actual coding matrix (corrected spectrum) are compared with the relative root mean square error calculated from the reference spectrum. The smaller the relative root mean square error, the closer the recovered spectrum is to the reference spectrum. The spectral error is significantly reduced when using the correction matrix (i.e., the actual coding matrix), and the spectral accuracy is significantly improved.
[0145] Table 1: Comparison of errors in spectral reconstruction results using different reconstruction methods.
[0146]
[0147] The corrected column rate spectrum is obtained by inversely transforming the measured data using the corrected actual coding matrix. This method does not require changing the coding scheme and can preserve the original spectral information to the greatest extent. It also yields more accurate spectra without significantly affecting the original signal-to-noise ratio advantage. Furthermore, the coding coefficients do not need to be repeatedly obtained; the coding coefficients and actual coding matrix obtained from measuring one sample can be directly used to recover the spectra of other samples.
[0148] It is worth noting that the interference between adjacent wavelengths can be reduced by increasing the distance between the micromirrors corresponding to the adjacent wavelength codes, i.e., the zero-placing method, as follows:
[0149] The main reason for deviations in spectral measurements is that the actual encoding coefficients of light intensity by the micromirrors change due to the influence of the encoding states of adjacent micromirrors. Therefore, in addition to the aforementioned correction matrix method, the influence of this interference can also be reduced by increasing the distance between micromirrors corresponding to adjacent wavelength encodings. Specifically, a column or row (or more columns / rows) of micromirrors that remain closed throughout the entire measurement process is set between micromirrors of different encoding sequences. These micromirrors will no longer participate in the Hadamard sequence encoding of wavelengths, thus effectively reducing the mutual influence of encoding coefficients between encoding sequences.
[0150] Figure 6 The results show the spectra obtained using the zero-placing method. After normalization, the measured spectra are close to the normalized reference spectra, and the relative root mean square error is reduced to below 1% compared to the uncorrected version. The advantages of zero-placing are that it only requires modification of a portion of the coded micromirrors, making it easy to implement, and the FWHT algorithm can still be used for rapid processing of experimental data in subsequent data processing. The disadvantage is a slight reduction in micromirror utilization.
[0151] Table 2 shows the error comparison before and after correction using the correction matrix method and the zero-placing method for several other Hadamard coding methods. In this embodiment, the Hadamard matrix used for encoding the spectrum on the DMD is the Sequential Hadamard matrix (SOHM). In addition, the Natural Order Hadamard matrix (NOHM) and the Quadratic Residual Structure Hadamard matrix (QRHM) are also widely used for spectral coding. Due to the similarity in principle among the various Hadamard coding methods, the influence of adjacent coding sequences on the actual coding coefficients of the wavelength light intensity by the micromirror can also lead to serious measurement biases. This bias can also be corrected using the two methods proposed in this study. As shown in Table 2, the relative root mean square error of the spectrum obtained after correction using the correction matrix method and the zero-placing method is significantly improved compared to the uncorrected spectrum.
[0152] Table 2: Comparison of relative root mean square errors of NOHM and QRHM matrix encodings before and after correction by the modified matrix method and zero-plugging method.
[0153]
[0154] The data above are all intensity spectra. In practice, it is often necessary to obtain the absorption spectrum based on the spectrum of the empty cuvette and the intensity spectrum after adding the sample. From Eq.(24), we know that X Test With X Reference (ieX in Eq.(2)) are related by a matrix. According to the Beer-Lambert Law, absorbance Among them, I Input I is the incident light intensity. Output This represents the intensity of the emitted light. Since it is impossible to measure I simultaneously... Input and I Output To measure the absorption spectrum of a sample, it is necessary to measure the transmission intensity spectrum X of the sample in both an empty cuvette and a cuvette containing the sample. Empty and X Sample Then, substitute the values into the absorption spectrum calculation formula to obtain the absorption spectrum of the sample. If the absorption spectrum of the sample is calculated using an uncalibrated intensity spectrum, then... Therefore, if the absorption spectrum is calculated using the uncorrected intensity spectrum, the influence of S′ in the ratio of the absorption spectrum obtained by matrix multiplication will not be canceled out, and there will be a significant deviation from the ratio of the reference spectrum. However, the deviation of the absorption spectrum can be significantly reduced by using the corrected intensity spectrum.
[0155] In studying the causes of anomalous peaks in the column rate spectrum, the carrier frequency sequences of each wavelength can be completely scrambled before encoding. In this case, the coefficient intervals between the carrier frequency sequences encoding adjacent wavelengths are no longer fixed values. According to the model's definition of the column rate value for anomalous peaks, the anomalous peaks generated by each pair of adjacent encoded sequences will no longer appear only at a few specific column rate values, so no numerically significant anomalous peaks will appear in the column rate spectrum. However, the mutual influence between the encoded sequences still exists, and the recovered spectrum still deviates significantly from the reference spectrum. The anomalous peaks in the column rate spectrum are distributed across the entire column rate spectrum as many smaller column rate components (results are not shown due to space limitations).
[0156] It is worth noting that since the correction matrix method and zero-placing method can effectively eliminate abnormal peaks in the column rate spectrum, a sequence of continuous column rate coefficients can be selected when choosing the carrier frequency sequence for the wavelength to improve the measurement speed. For example, when using the sequence of columns 2 to 128 in a 128th-order SOHM matrix to encode 127 wavelengths, compared to using the sequence of columns 2, 4, 6, ..., 256 in a 256th-order SOHM matrix to encode 128 wavelengths, the sequence utilization rate of the column rate spectrum is significantly higher. Upgraded to This represents an improvement of nearly double. The new sequence selection method only requires measuring coded combinations of 128 wavelengths, thus reducing the total measurement time to half of the original, while maintaining essentially the same spectral resolution.
[0157] The above are merely specific embodiments of the present invention, but the design concept of the present invention is not limited thereto. Any non-substantial modifications made to the present invention using this concept shall be considered as infringing upon the protection scope of the present invention.
Claims
1. A calibration method for a Hadamard transform spectrometer, characterized in that, Includes the following steps: S1, determine the Hadamard matrix, and construct the ideal encoding matrix based on any column or row of the Hadamard matrix; S2, According to the crosstalk influence model, the actual coding matrix is obtained from the ideal coding matrix; the actual coding matrix is obtained by correcting the element values in the ideal coding matrix according to the crosstalk influence model; the crosstalk influence model is: the coding state of each wavelength will be affected by the coding states of a finite number of wavelengths adjacent to that wavelength; S3, When performing Hadamard coding measurement on any spectrum, the corrected recovered spectrum is obtained using the actual coding matrix.
2. The calibration method for a Hadamard transform spectrometer according to claim 1, characterized in that, S2 includes the following steps: S21, the ideal coding matrix is divided into a left ideal coding matrix and a right ideal coding matrix according to spatial position. The left actual coding coefficient and the right actual coding coefficient are determined according to the inter-wavelength crosstalk phenomenon. The left ideal coding matrix is modified based on the left actual coding coefficient to obtain the left actual coding matrix. The right ideal coding matrix is modified based on the right actual coding coefficient to obtain the right actual coding matrix. The left actual coding matrix and the right actual coding matrix are combined to form the actual coding matrix containing coefficients. S22, the coding sequence of the actual coding matrix containing coefficients is represented by the Hadamard sequence of the Hadamard matrix to establish the correlation between the left actual coding coefficients, the right actual coding coefficients, the anomalous peak intensity values and the input spectrum; S23. Use a spectrometer to perform Hadamard coding measurements on any set of input spectra. Based on the measured values and the intensity values of abnormal peaks, calculate the actual coding coefficient values on the left and right sides. Substitute these values into the actual coding matrix containing the coefficients to obtain the actual coding matrix.
3. The calibration method for a Hadamard transform spectrometer according to claim 2, characterized in that, In S21, the division of the ideal coding matrix into a left ideal coding matrix and a right ideal coding matrix according to spatial position is specifically expressed as follows: in, Represents the ideal encoding matrix; This represents the left ideal coding matrix, corresponding to the left half of the wavelength micromirror column; This represents the right ideal coding matrix, corresponding to the right half of the wavelength micromirror column; The parameterized actual coding matrix, composed of the left and right actual coding matrices, is represented as follows: in, This represents the actual coding matrix containing coefficients; Represents the left actual coding matrix; This represents the right actual coding matrix.
4. The calibration method for a Hadamard transform spectrometer according to claim 3, characterized in that, In S21, the specific process of obtaining the left and right actual coding matrices is as follows: Determine the left actual coding coefficients and obtain the left actual coding matrix: The left ideal encoding matrix contains Each column corresponds to a wavelength; ensure that each encoded state of all wavelengths is only affected by the state of the micromirror on its left; for a non-zero element in the (j+1)th column, if the element in the j-th column of the same row is 1, the element in the (j+1)th column is affected, using the left actual encoding coefficient. The affected value is represented by the non-zero element in the (j+1)th column. Replace all affected elements in the left ideal coding matrix with the left actual coding coefficients to obtain the left actual coding matrix. Determine the right actual coding coefficients and obtain the right actual coding matrix: The right ideal encoding matrix contains Each column corresponds to a wavelength; ensure that each encoded state of all wavelengths is only affected by the state of the micromirror on its right; for a non-zero element in the j-th column, if the element in the (j+1)-th column of the same row is 1, the element in the j-th column is affected, using the right actual encoding coefficient. The affected value is represented by the non-zero element in the j-th column. Replace all affected elements in the right ideal coding matrix with the right actual coding coefficients to obtain the right actual coding matrix. in, , This represents the number of wavelengths to be encoded; the rows and columns of the above matrix can be interchanged without affecting the effectiveness of the method.
5. The calibration method for a Hadamard transform spectrometer according to claim 4, characterized in that, In S22, the selected coding sequence is modified by substituting coefficients according to the crosstalk effect model, and the coding sequence of the actual coding matrix containing coefficients is represented by the Hadamard sequence of the Hadamard matrix, as shown in the formula: in, Indicates the left actual coding matrix of the first... The coded sequence of the column; Represents the right actual coding matrix of the first The coded sequence of the column; This represents the Hadamard sequence in the first column of the Hadamard matrix; Represents the relationship between the Hadamard matrix and the encoded sequence Corresponding sequences with the same coded waveforms; This represents the Hadamard sequence corresponding to the left-hand sequence that causes crosstalk to the encoded sequence; This represents the Hadamard sequence corresponding to the right-hand side of the sequence that causes crosstalk to the encoded sequence. This represents the Hadamard sequence corresponding to the abnormal peak.
6. The calibration method for a Hadamard transform spectrometer according to claim 5, characterized in that, In S22, the establishment of the correlation between the left actual coding coefficient, the right actual coding coefficient, the abnormal peak intensity value, and the input spectrum is as follows: When n Hadamard sequences are used to encode n consecutive wavelengths of the input spectrum on the DMD, there are n-1 regions in the entire micromirror encoding area where the encoded sequences are adjacent to each other and produce anomalous peaks; the intensity value of each anomalous peak is expressed as... For the j-th abnormal peak intensity value All are made by and Spectral input values In and The combined contribution of the encoded anomalous peaks is represented as: Since the coding coefficients in the left and right actual coding matrices are continuous at adjacent points, let the relationship between the left and right actual coding coefficients be: Then the actual coding coefficients The calculation formula is: 。 7. The calibration method for a Hadamard transform spectrometer according to claim 1, characterized in that, Following S2, the process further includes: verifying the obtained actual encoding matrix, as follows: The first measured value is obtained by measuring a set of input spectra using the scanning measurement method of the spectrometer. The second measured value is obtained by measuring the same set of input spectra using the Hadamard measurement method of the spectrometer. The measured column rate spectrum is obtained by decoding the second measured value. The first measured value is encoded using the obtained actual coding matrix to obtain the simulated measured value; the simulated measured value is then inversely transformed to obtain the simulated column rate spectrum. Calculate the relative root mean square error between the measured column rate spectrum and the simulated column rate spectrum. If the relative root mean square error is less than the preset percentage threshold, the obtained actual coding matrix meets the requirements.
8. The calibration method for a Hadamard transform spectrometer according to claim 1, characterized in that, When performing Hadamard coding measurements on arbitrary spectra, the corrected recovered spectrum is obtained using the actual coding matrix, as follows: in, This represents the measured value obtained by using Hadamard coding to measure the spectrum; Represents the actual encoding matrix The inverse matrix; This indicates the corrected recovered spectrum.
9. The calibration method for a Hadamard transform spectrometer according to claim 1, characterized in that, The mask required for the Hadamard transform spectrometer is implemented using a digital micromirror device (DMD).
Citation Information
Patent Citations
Calibration System and Method for Hadamard Transform Spectral Imager
CN102288292A
Spectroscopic apparatus and scanning microscope apparatus
JP2011017658A
