Spectrum reconstruction method and spectrometer
By using two-dimensional Hadamard mask sequence and fast Walsh Hadamard transform in Hadamard transform spectroscopy technology, the problem of noise and signal drift is solved, efficient spectral reconstruction and high-speed measurement are achieved, and the signal-to-noise is significantly improved. Compare.
Patent Information
- Application Number
- CN202210305617.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2021-03-26
- Filing Date
- 2022-03-25
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-03-25
AI Technical Summary
The existing Hadamard transform spectroscopy technology is easily affected by noise and signal drift in DC measurement mode, resulting in measurement errors, and the measurement time needs to be extended to reduce the error.
A two-dimensional Hadamard mask sequence is used to generate Hadamard matrices with different column rate values through the time dimension. A single-pixel detector is used to detect optical signals, and the Hadamard coefficients are obtained through fast Walsh Hadamard transformation to reconstruct the spectrum to be measured. Enhance signal-to-noise ratio.
The spectrum measurement speed is significantly improved, 28 to 140 times faster than traditional methods, and has good prospects in high-speed spectrum measurement applications.
Smart Images

Figure CN114674745B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a spectrum reconstruction method and a spectrometer. Background Art
[0002] Spectrometer is an important technology that can detect the properties of materials by analyzing the interaction between materials and light within a certain wavelength range. As an indispensable tool in material analysis, current spectrometers can be divided into four main categories according to their working principles.
[0003] The first type is a dispersive spectrometer, in which a dispersive grating maps light of different wavelengths to different angles in space, and is measured sequentially by a point detector or simultaneously by a one-dimensional detector. The second type is based on narrowband tunable filters, such as Fabry-Perot spectrometers, acousto-optic tunable filters, liquid crystal tunable filters, etc. Usually, this type of spectrometer only measures a very narrow wavelength range each time. These two types of spectroscopy techniques have a low signal-to-noise ratio. The third type is based on various interferometers, which require reprocessing of the measurement data, such as reconstructing the spectrum to be measured through Fourier transform. This type of method uses a single-pixel detector to measure signals of multiple wavelengths simultaneously, with a high signal-to-noise ratio. The fourth type is to use optical modulators such as digital micromirror arrays or liquid crystal spatial light modulators to achieve wavelength multiplexing to improve the signal-to-noise ratio.
[0004] In the fourth category of spectral methods based on wavelength multiplexing technology, Hadamard transform spectroscopy successfully achieves wavelength multiplexing in the spectral range from visible light to near-infrared light by placing a Hadamard mask on the exit plane of a traditional grating spectrometer and using a single-pixel detector instead of a two-dimensional detector.
[0005] Currently, all Hadamard transform spectroscopy techniques use a DC measurement method to obtain the Hadamard coefficient. This method is often affected by noise and signal drift, and requires extending the measurement time to reduce the measurement error. Summary of the invention
[0006] In order to solve the above technical problems, the present disclosure provides a spectrum reconstruction method and a spectrometer.
[0007] According to one aspect of the present disclosure, a spectral reconstruction method includes: generating a two-dimensional Hadamard mask sequence along a time dimension, wherein each two-dimensional Hadamard mask includes a wavelength dimension and a coefficient dimension; detecting an optical signal passing through the two-dimensional Hadamard mask sequence; and analyzing the optical signal to reconstruct a spectrum to be measured, wherein the two-dimensional Hadamard mask includes multiple columns in the wavelength dimension, each column corresponds to a different Hadamard coefficient, and has different column rate values in the time dimension.
[0008] According to at least one embodiment of the present disclosure, the two-dimensional Hadamard mask sequence is generated based on a column-rate ordered Hadamard matrix.
[0009] According to at least one embodiment of the present disclosure, different columns of the wavelength dimension of the two-dimensional Hadamard mask follow the principle of complementary variation in the time domain to enhance the signal-to-noise ratio of the optical signal to be detected.
[0010] According to at least one embodiment of the present disclosure, the optical signal is detected by a single-pixel detector.
[0011] According to at least one embodiment of the present disclosure, the step of analyzing the optical signal includes: performing a fast Walsh Hadamard transform on the optical signal to obtain a Hadamard coefficient.
[0012] According to at least one embodiment of the present disclosure, the step of reconstructing the spectrum to be measured includes: solving the equation system where y i (λ) is the Hadamard coefficient, x ij (λ) is the spectral element of the jth channel along the wavelength dimension and the ith channel along the coefficient dimension, x 1j (λ) is the spectral element of the jth channel along the wavelength dimension and the 1st channel along the coefficient dimension, s ij is the Hadamard matrix element corresponding to the spectrum of the j-th channel along the wavelength dimension and the i-th channel along the coefficient dimension, N is the number of channels along the wavelength dimension, a ij is the spectral intensity normalization coefficient.
[0013] According to at least one embodiment of the present disclosure, the step of reconstructing the spectrum to be measured includes a calibration step to obtain x 1j (λ), in the calibration step, a pre-calibrated spectrometer is used as a detector to detect the optical signal.
[0014] According to another aspect of the present disclosure, a spectrometer includes: one or more processors; an optical modulator, which communicates with at least one of the one or more processors; and a detector, which is used to detect an optical signal transmitted through the optical modulator, wherein the one or more processors are configured to: control the optical modulator to set a time dimension change to generate a two-dimensional Hadamard mask sequence, each two-dimensional Hadamard mask including a wavelength dimension and a coefficient dimension; receive an optical signal passing through the two-dimensional Hadamard mask sequence; and analyze the optical signal to reconstruct the spectrum to be measured, wherein the two-dimensional Hadamard mask includes multiple columns in the wavelength dimension, each column corresponds to a different Hadamard coefficient and has a different column rate value in the time dimension.
[0015] According to at least one embodiment of the present disclosure, the one or more processors are configured to control the optical modulator to generate the two-dimensional Hadamard mask sequence based on a column-rate ordered Hadamard matrix.
[0016] According to at least one embodiment of the present disclosure, different columns of the wavelength dimension of the two-dimensional Hadamard mask follow the principle of complementary variation in the time domain to enhance the signal-to-noise ratio of the optical signal to be detected.
[0017] According to at least one embodiment of the present disclosure, the detector is a single-pixel detector.
[0018] According to at least one embodiment of the present disclosure, the one or more processors are configured to analyze the optical signal and perform a fast Walsh Hadamard transform on the optical signal to obtain Hadamard coefficients.
[0019] According to at least one embodiment of the present disclosure, the one or more processors are configured to analyze the optical signal, wherein solving the system of equations where y i (λ) is the Hadamard coefficient, x ij (λ) is the spectral element of the jth channel along the wavelength dimension and the ith channel along the coefficient dimension, x 1j (λ) is the spectral element of the jth channel along the wavelength dimension and the 1st channel along the coefficient dimension, s ij is the Hadamard matrix element corresponding to the spectrum of the j-th channel along the wavelength dimension and the i-th channel along the coefficient dimension, N is the number of channels along the wavelength dimension, a ij is the spectral intensity normalization coefficient.
[0020] According to at least one embodiment of the present disclosure, the one or more processors are configured to reconstruct the measured spectrum, including a calibration step to obtain x 1j (λ), wherein in the calibration step, a pre-calibrated spectrometer is used as a detector to detect the optical signal.
[0021] According to at least one embodiment of the present disclosure, the light modulator includes one or more digital micromirror array devices or liquid crystal spatial light modulators. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.
[0023] Attached Figure 1It is the system setting of the Sequence-Value Encoded Hadamard Transform Spectroscopy (SEHTS) method.
[0024] Attached Figure 2 It is the Hadamard mask and Hadamard coefficient coding scheme used by SEHTS.
[0025] Attached Figure 3 It is the process of reconstructing the measured spectrum using four spectral channels.
[0026] Attached Figure 4 The process of reconstructing the spectrum to be measured through four spectral channels is shown in FIG. 1 when the wavelength dimension is varied in a complementary manner in the time domain.
[0027] Attached Figure 5 This is a schematic diagram of the distribution of the spectrum to be measured on the Hadamard mask.
[0028] Attached Figure 6 This is the spectrum to be measured after being modulated by Hadamard masks with different resolutions.
[0029] Attached Figure 7 is the spectrum of the halogen light source measured by SEHTS.
[0030] Attached Figure 8 is the spectrum of the xenon light source measured by SEHTS.
[0031] Attached Fig. 9 is the spectrum of the fluorescent particles measured by SEHTS. DETAILED DESCRIPTION
[0032] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementation methods. It is understood that the specific implementation methods described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.
[0033] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0034] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged in addition without departing from the technical concept of the present disclosure.
[0035] The terms used herein are for the purpose of describing specific embodiments, and are not intended to be restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values and / or the values provided that will be recognized by those of ordinary skill in the art.
[0036] The present disclosure provides a spectral reconstruction method, namely sequence encoding Hadamard transform spectrometry (SEHTS). In this method, the speed of data acquisition can be accelerated by measuring the Hadamard coefficients by alternating current (AC). A two-dimensional Hadamard mask is used to encode each Hadamard coefficient with a different sequence rate value so that all Hadamard coefficients can be measured simultaneously by a single pixel detector. The results show that when the relative root mean square error (RMSE) is ~3% or less, compared with the measurement using a traditional spectrometer, the SEHTS using a sequence-ordered Hadamard matrix (SOHM) with 32 spectral channels can speed up the spectral measurement from a white light source and fluorescent particles by about 28 times and 140 times, respectively. When only 8 spectral channels are used, that is, when a compression ratio (CR) of 4:1 is achieved, the speed can be increased by another 4 times, and the RMSE only changes slightly. Compared with the conventional Hadamard transform spectroscopy method based on sequential direct current (DC) measurement, the measurement speed of the column rate coded Hadamard transform spectroscopy method can be increased by three orders of magnitude. This technology has a good application prospect in applications that require high-speed spectral measurement.
[0037] Figure 1The system setup of SEHTS is shown. In this system, the incident light beam from the light source 100 passes through the multimode optical fiber 200 with a core diameter of 600 μm, passes through the pinhole 300 with a clear aperture of 100 μm and the collimating lens 400 with a focal length of 30 mm, and then irradiates the volume holographic grating 500, and the light of different wavelengths is emitted in the vertical direction. The dispersed light beam passes through the cylindrical lens 600 with a focal length of 100 mm and is focused onto the digital micromirror array 700 with a resolution of 1920×1080 pixels, which is located on the focal plane of the cylindrical lens. The two-dimensional Hadamard mask encoded by the column rate is sequentially projected onto the digital micromirror array under the control of the computer. The light reflected by the digital micromirror array is collected by the lens group 800 consisting of a lens with a focal length of 75 mm and a lens with a focal length of 30 mm, and then focused into the liquid optical waveguide 900 with a core diameter of 5.1 mm, and finally transmitted to the single pixel detector 10.
[0038] Assume that the spectrum X(λ) can be divided into N spectral elements x j (λ)(j=1,2,...,N), and satisfies Grating-based spectrometers require N consecutive measurements, each of which detects a spectral portion x. j (λ), so the signal-to-noise ratio of the measurement result is poor. As an alternative, the Hadamard transform spectroscopy method performs N measurements, but each measurement is a combination of at least half of the spectrum determined by the Hadamard matrix. The N measurements in the Hadamard transform spectroscopy method can be expressed by N linearly independent equations:
[0039]
[0040] where y i (λ)(i=1, 2, ..., N) is called the Hadamard coefficient and is the sum of N spectral parts, each of which has the i-th Hadamard mask s corresponding to the i-th row of the Hadamard matrix i (s i =[s i1 ,s i2 ,…,s iN ]) Determine the weight, x j (λ) is the jth spectral part. Solving formula 1, we can get the spectral part x j (λ) (j=1, 2, ..., N), and then add up the spectrum parts to obtain the original spectrum to be measured X(λ).
[0041] Figure 2 The Hadamard mask and Hadamard coefficient encoding scheme of SEHTS is schematically shown, where the number of channels N is set to 4. Figure 2(a) shows the column-rate coded 2D Hadamard mask and the corresponding SOHM. The 2D Hadamard mask contains N independent columns, each of which (along the y-axis) corresponds to s in formula 1. i Therefore, the incident light gets a Hadamard coefficient y under the modulation of each column. i When the incident light is dispersed along or parallel to the y-axis, each Hadamard coefficient y i The linear combination of the signals reflected by the micromirrors of the digital micromirror array in the column direction perpendicular to the x-axis. The total pixels along the y-axis are fixed. When the number of channels (along the y-axis) increases, the channel width decreases. Therefore, reducing the spectral channel width can improve the spectral resolution. The number of channels in each row (along the x-axis) of the two-dimensional Hadamard mask is equal to the order of the SOHM used. Figure 2 (b) shows the time sequence for column rate encoding in one cycle. A two-dimensional Hadamard mask sequence is generated along the time dimension (t axis), where each two-dimensional Hadamard mask contains a wavelength dimension (y axis) and a coefficient dimension (x axis). That is, it includes multiple columns of the wavelength dimension, each column changes at a different column rate value in the time dimension (the frequency of change of the Hadamard coefficient).
[0042] Each column of the 2D Hadamard mask can be encoded to obtain a different frequency of change, such as along Figure 2 The t-axis of (a) is shown. Figure 2 (b) shows that the frequency of change of the Hadamard coefficients in one cycle is encoded by column rate values 1, 3, 5 and 7. In general, the column rate value 2i-1 (i=1, 2, ..., N) of the even rows of the 2N×2N SOHM can be used to encode N Hadamard coefficients.
[0043] Based on the above description, the output of the two-dimensional Hadamard mask is the output signal after the spectrum to be measured is modulated, which is the corresponding Hadamard coefficient y i The weighted output, each y i In the time domain, it is encoded by different column rates. It can be expressed as:
[0044]
[0045] Where t represents time, w 2i (t) is the Walsh function determined by the even-numbered rows of the 2N×2N-order SOHM, and its column rate value is 2i-1 (i=1, 2, ..., N). Figure 2 (b) is the case where N=4.
[0046] If a single-pixel detector is used to detect the spectral signal described by formula (1), the output of the single-pixel detector can be obtained by integrating it with respect to the wavelength:
[0047]
[0048] in is the output of the single pixel detector after the i-th Hadamard mask, is the contribution of the jth (j=1, 2, ..., N) spectral part to the output of the single-pixel detector, r j is the spectral response of the jth spectral part to the single-pixel detector. Similarly, after encoding, integrating formula (2) with respect to wavelength can obtain the output of the single-pixel detector:
[0049]
[0050] The spectrum to be measured can be reconstructed according to f(t). Figure 3 It is the process of reconstructing a spectrum using four spectral channels. Figure 3 (a) shows the time domain signal containing two cycles after column rate coding. Figure 3 (b) shows the Figure 3 The signal in the time domain of (a) is transformed by fast Walsh Hadamard transform (FWHT) to obtain the signal spectrum in the rate domain. Figure 3 (c) shows the Hadamard coefficient. It is worth noting that FWHT requires the length of the time domain signal f(t) to be an integer power of 2, i.e. 2 n , when it is insufficient, we can use zero padding method to f(t). In the rate domain signal of f(t) ( Figure 3 (b)), each The position of is determined by the product of the period of f(t) and 2i. Figure 3 (d) Figure 3 (c) The spectrum reconstructed by multiplying the Hadamard coefficients of the SOHM by the inverse matrix and the reference spectrum.
[0051] In practice, a complementary pattern can be used to minimize the effect of noise. In SEHTS, the Hadamard coefficient is set to [s i s i * s i s i * …] instead of [s i 0s i 0…], where s i * For exchange i The result after the elements "1" and "0" in . It is worth noting that Figure 3 Compared with the time domain signal of (a), Figure 4 The time domain signal strength shown in (a) is not zero, so the complementary pattern can improve the signal-to-noise ratio.
[0052] In order to encode all Hadamard coefficients simultaneously, the beam needs to be directed along Figure 5 The coefficient dimension shown in (a) is expanded, and each coefficient (i.e. each column) will be encoded independently. Figure 5 (a) is the distribution of the spectrum to be measured when the mask is divided into four channels, where the x-axis and y-axis are the coefficient dimension and wavelength dimension respectively. Similar to formula (1), its output is:
[0053]
[0054] In fact, Figure 5 (a) shows the coefficient dimension, the intensity of the spectrum to be measured cannot be exactly the same. From a mathematical point of view, As i (i=1, 2, ..., N) changes, the following example will illustrate how to obtain X1(λ) of the spectrum to be measured.
[0055] Figure 5 As shown in (a), for the case of N = 4, x ij (λ)(i, j = 1, 2, 3, 4) represents the spectral distribution along the coefficient dimension and the wavelength dimension. Assume that the spectral shapes along the coefficient dimension are similar but the spectral intensities are different, such as Figure 5 (b) The coefficient strength of different columns can be calibrated as follows. Figure 5 The spectrum of any three columns of (a) can be expressed by the spectrum of the remaining column, that is, x ij (λ) = a ij x 1j (λ), where x ij (λ) is the spectral portion of the jth channel in the wavelength dimension and the ith channel in the coefficient dimension, a ij is the spectral intensity normalization coefficient, x 1j (λ) is the spectral part of the jth spectral channel in column 1. After calibration, formula (5) is:
[0056]
[0057] For a given Hadamard coefficient y i , solving formula (6) can obtain x 1j (λ). Then we can get the corresponding X1(λ) by summing.
[0058] When a single-pixel detector is used to detect the spectrum, the above spectral intensity is normalized by the coefficient a ij Substituting into formula (3) we can get:
[0059]
[0060] in is the output of the single-pixel detector after modulation by the i-th Hadamard mask, is the contribution of the jth (j=1, 2, ..., N) spectral component in column 1 to the output of a single pixel detector. j is the spectral response of a single pixel detector in the jth spectral part. For a given Hadamard coefficient Solving formula (7) yields
[0061] The calibration process can obtain the spectrum x of the broadband light source 1j (λ) and its corresponding single-pixel detector output The system may include two steps. In the first step, except that the single pixel detector is replaced by a commercial spectrometer (e.g., a pre-calibrated spectrometer), the system is configured as follows: Figure 1 The spectrometer is used to measure y expressed in formula (6) i (λ), and then solve formula (6) to get x 1j (λ). The second step is, Figure 1 As shown in the figure, the signal of the measured spectrum X(λ) modulated by the two-dimensional Hadamard mask is measured by a single pixel detector, and then the FWHT of the column rate encoded time series f(t) is performed using formula (4), and we can get Obtain Then, the corresponding
[0062] For the measurement of unknown spectrum X'(λ), only the output of a single pixel detector is needed. The time domain signal can be obtained similar to formula (4):
[0063]
[0064] in is the output of the single-pixel detector after the spectrum X'(λ) passes through the i-th Hadamard mask. Similarly, applying FWHT to f'(t) yields Then the jth spectrum in column 1 is partially The spectral response of a single pixel detector is:
[0065]
[0066] Among them, a ij is the spectral intensity normalization coefficient, is the contribution of the jth (j=1, 2, ..., N) channel in column 1 to the output of a single pixel detector. j is the spectral response of the single pixel detector of the jth channel. The Hadamard coefficient is obtained Then, solving formula (9) yields
[0067] Using the calibration data x of the known spectrum 1j (λ) and any arbitrary unknown spectrum after being modulated by the same two-dimensional Hadamard mask can be expressed as:
[0068]
[0069] The Hadamard coefficients expressed in formula (7) and formula (9) (and ) are (and ) and linear combinations of different column rate components. The Hadamard coefficients determined by the low column rate components mainly include the profile information of the measured spectrum, and the Hadamard coefficients determined by the high column rate components include the detailed information of the spectrum. Therefore, under appropriate accuracy requirements, in order to quickly obtain the spectrum to be measured, the main information of the spectrum X1'(λ) can be obtained using the of the low column rate components. Therefore, only the first M (M << N) Hadamard coefficients need to be encoded, and the main information of the spectrum X'(λ) to be measured can be obtained using a relatively large CR.
[0070] The spectral intensity normalization coefficient a ij can be obtained by assuming x ij (λ) = a ij x 1j (λ). In the calibration stage, first use a single-pixel detector to measure the spectral intensity x ij (λ) of each grid of the broadband light source, as Figure 5 (a) shows, and then use the ratio of x ij (λ) to x 1j (λ) to obtain a ij . In this disclosure, all calibration data are measured using a broadband light source and a commercial spectrometer.
[0071] Figure 6 (a) shows the relationship between the spectral resolution of the SEHTS system and the number of pixels in a single spectral channel. When the spectral channel width includes 1, 16, 32, and 64 pixels, the total number of spectral channels is N = 1024, 128, 32, and 16 respectively, and the spectral resolutions are 2.3 nm, 2.4 nm, 2.6 nm, and 4.1 nm respectively. Figure 6 (b) shows the spectrum of each spectral channel when the spectrum source to be measured is white light (LED). Figure 6 (c) shows the relationship between the central wavelength of each spectral channel in the SEHTS system and the number of channels.
[0072] Figure 7The figure shows the spectrum of the halogen light source measured by the system when the total spectral channel contains 32 channels and the system adopts column rate encoding Hadamard matrices with different column rate changes. Figure 7 (a) SOHM was used. Figure 7 In (b), the naturally-ordered Hadamard matrix (NOHM) is used.
[0073] Figure 8 (a) shows the spectrum of the xenon light source measured by the Andor spectrometer and the SEHTS system when the total spectral channels contain 32 channels. The reference spectrum has good consistency with the spectrum measured by the SEHTS system (CR = 1:1), with an RMSE of 1.87%. When the CR values are 2:1 and 4:1, the RMSE are ~1.92% and 2.03%, respectively. Figure 8 (b) shows the spectrum of the mercury-argon light source measured by the Andor spectrometer and SEHTS system when N=32. It is worth noting that the mercury-argon light source contains three peaks, each with a FWHM of 0.8nm, which exceeds the spectral resolution of the current system. In addition, the light source is a large repetition rate of 63kHz pulse, and this system cannot accurately reconstruct the amplitude of the spectrum. Therefore, the attached Figure 8 Only the normalized spectra are shown in (b).
[0074] Fig. 9 The spectrum of fluorescent particles measured by the SEHTS system is shown. Fig. 9 (a) shows the time domain signal containing two cycles detected by a single pixel detector. Fig. 9 (b) shows the spectra of Nile Red fluorescent particles measured by the Andor spectrometer and the SEHTS system. Compared with the reference spectrum, the RMSE of the spectrum measured by the SEHTS system is ∼3.34% (CR=1:1). When the CR value is 2:1 and 4:1, the RMSE is ∼3.36% and ∼3.63%, respectively.
[0075] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.
Claims
1. A spectrum reconstruction method, characterized in that: include: Generate a two-dimensional Hadamard mask sequence along a time dimension, wherein each two-dimensional Hadamard mask comprises a wavelength dimension and a coefficient dimension, and each two-dimensional Hadamard mask in the two-dimensional Hadamard mask sequence comprises a plurality of columns or rows along the wavelength dimension, wherein each column or each row corresponds to a different Hadamard coefficient and has a different column rate value in the time dimension, or each row or each column corresponds to a different wavelength and has a different column rate value in the time dimension; Detecting an optical signal modulated by the two-dimensional Hadamard mask sequence, wherein the Hadamard coefficient of each column or row or the wavelength of each row or column is encoded with different column rate values in the time dimension; Simultaneous detection of all Hadamard coefficients or all wavelengths, and The optical signal is analyzed to reconstruct the spectrum to be measured.
2. The method according to claim 1, characterized in that The two-dimensional Hadamard mask sequence is generated based on a column-rate ordered Hadamard matrix.
3. The method according to claim 1, characterized in that Different columns of the wavelength dimension of the two-dimensional Hadamard mask follow the principle of complementary variation in the time domain to enhance the signal-to-noise ratio of the optical signal to be detected.
4. The method according to claim 1, characterized in that The optical signal is detected by a single pixel detector.
5. The method according to claim 1, characterized in that The step of analyzing the optical signal includes: performing a fast Walsh Hadamard transform on the optical signal to obtain Hadamard coefficients.
6. The method according to claim 5, characterized in that The step of reconstructing the spectrum to be measured includes: solving the equation group where y i (λ) is the Hadamard coefficient, x ij (λ) is the spectral element of the jth channel along the wavelength dimension and the ith channel along the coefficient dimension, x 1j (λ) is the spectral element of the jth channel along the wavelength dimension and the 1st channel along the coefficient dimension, s ij is the Hadamard matrix element corresponding to the spectrum of the j-th channel along the wavelength dimension and the i-th channel along the coefficient dimension, N is the number of channels along the wavelength dimension, a ij is the spectral intensity normalization coefficient.
7. The method according to claim 6, characterized in that The step of reconstructing the spectrum to be measured includes a calibration step to obtain x 1j (λ), in the calibration step, a pre-calibrated spectrometer is used as a detector to detect the optical signal.
8. A spectrometer, characterized in that: include: one or more processors; an optical modulator in communication with at least one of the at least one or more processors; as well as a detector for detecting an optical signal transmitted by the optical modulator, Wherein, the one or more processors are configured to: Controlling the optical modulator to set a time dimension change to generate a two-dimensional Hadamard mask sequence, each two-dimensional Hadamard mask comprises a wavelength dimension and a coefficient dimension, and each two-dimensional Hadamard mask in the two-dimensional Hadamard mask sequence comprises a plurality of columns or rows along the wavelength dimension, wherein each column or each row corresponds to a different Hadamard coefficient and has a different column rate value in the time dimension, or each row or each column corresponds to a different wavelength and has a different column rate value in the time dimension; Receiving an optical signal modulated by the two-dimensional Hadamard mask sequence, wherein the Hadamard coefficient of each column or row or the wavelength of each row or column is encoded with different column rate values in the time dimension; Detect all Hadamard coefficients or all wavelengths simultaneously; and The optical signal is analyzed to reconstruct the spectrum to be measured.
9. The spectrometer according to claim 8, characterized in that The one or more processors are configured to control the optical modulator to generate the two-dimensional Hadamard mask sequence based on a column-rate ordered Hadamard matrix.
10. The spectrometer according to claim 8, characterized in that Different columns of the wavelength dimension of the two-dimensional Hadamard mask follow the principle of complementary variation in the time domain to enhance the signal-to-noise ratio of the optical signal to be detected.
11. The spectrometer according to claim 8, characterized in that The detector is a single pixel detector.
12. The spectrometer according to claim 8, characterized in that The one or more processors are configured to analyze the optical signal and perform a fast Walsh Hadamard transform on the optical signal to obtain Hadamard coefficients.
13. The spectrometer according to claim 12, characterized in that The one or more processors are configured to analyze the optical signal, wherein solving the system of equations where y i (λ) is the Hadamard coefficient, x ij (λ) is the spectral element of the jth channel along the wavelength dimension and the ith channel along the coefficient dimension, x 1j (λ) is the spectral element of the jth channel along the wavelength dimension and the 1st channel along the coefficient dimension, s ij is the Hadamard matrix element corresponding to the spectrum of the j-th channel along the wavelength dimension and the i-th channel along the coefficient dimension, N is the number of channels along the wavelength dimension, a ij is the spectral intensity normalization coefficient.
14. The spectrometer according to claim 13, characterized in that The one or more processors are configured to reconstruct the measured spectrum, including a calibration step to obtain x 1j (λ), wherein in the calibration step, a pre-calibrated spectrometer is used as a detector to detect the optical signal.
15. The spectrometer according to claim 8, characterized in that The light modulator includes one or more digital micromirror array devices or liquid crystal spatial light modulators.
