Spectral information reconstruction method and system based on scanning grating micromirror spectrometer

By generating position sequences and reconstructing wavelengths, and combining light intensity signals, the problem that the micro near-infrared spectrometer system based on scanning grating micromirror cannot provide the spectral information needed by users is solved, and effective reconstruction and reflection of spectral information is achieved.

CN114838823BActive Publication Date: 2025-04-04CHONGQING CHUANYI AUTOMATION CO LTD

Patent Information

Application Number
CN202210410648.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-19
Publication Date
2025-04-04
Estimated Expiration
2042-04-19

AI Technical Summary

Technical Problem

A micro near-infrared spectrometer system based on scanning grating micromirrors cannot directly provide the spectral information needed by users.

Method used

By acquiring the data to be reconstructed from the scanning grating micromirror spectrometer, a position sequence and reconstruction wavelength are generated, and the reconstruction spectral information is generated based on this information and the light intensity signal.

Benefits of technology

In a micro near-infrared spectrometer system based on scanning grating micromirrors, spectral information directly reflects user needs is generated by combining the light intensity signal of a single-tube photodetector and the scanning speed feedback signal of the scanning grating micromirror.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114838823B_ABST
    Figure CN114838823B_ABST
Patent Text Reader

Abstract

The present invention provides a spectral information reconstruction method and system based on a scanning grating micromirror spectrometer. The method obtains data to be reconstructed from the scanning grating micromirror spectrometer, generates a position sequence according to a scanning speed feedback signal, a preset length and a preset time interval, generates a reconstructed wavelength corresponding to each position sequence value according to a wavelength value of a characteristic peak of a light source and each position sequence value, and generates reconstructed spectral information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and a light intensity signal corresponding to each position sequence value. Through the spectral information reconstruction method, in the design of a miniature near-infrared spectrometer system based on a scanning grating micromirror, reconstructed spectral information can be generated by combining a light intensity signal of a single-tube photoelectric detector and a scanning speed feedback signal of a scanning grating micromirror, thereby directly reflecting the spectral information required by a user and meeting the user's needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of micro-optical-mechanical-electrical technology, and in particular to a spectrum information reconstruction method and system based on a scanning grating micromirror spectrometer. Background Art

[0002] See also Figure 1 , Figure 1 The structure diagram of a micro near-infrared spectrometer system based on a scanning grating micromirror is shown in the related art. In the micro near-infrared spectrometer system based on a scanning grating micromirror, a sine wave signal is used to drive the scanning grating micromirror 1 to perform reciprocating scanning of a corresponding period (as shown in the direction of the arrow in the figure, reciprocating scanning), and at the same time, the light captured in the incident slit 2 is adjusted through optical fiber coupling and a corresponding optical path (such as a collimating lens 6, etc.), and enters the surface of the scanning grating micromirror 1 and completes the light splitting. After the light splitting, the monochromatic light of different wavelengths will be focused by the focusing lens 3 in turn and enter the single-tube detector 5 through the exit slit 4. When the scanning grating micromirror 1 is driven to rotate, the spectrum detection requirements within the different wavelength ranges can be achieved by designing a reasonable mechanical rotation angle, thereby replacing the expensive array detector with a single-tube detector, reducing the design cost.

[0003] However, in the micro near-infrared spectrometer system with scanning grating micromirror, the spectral information acquisition module ( Figure 1 The signal acquisition board in the system only collects the scanning speed feedback signal of the scanning grating micromirror and the corresponding light intensity signal, which cannot directly reflect the required spectral information and cannot meet user needs. Summary of the invention

[0004] In view of the above-mentioned shortcomings of the prior art, an object of the present invention is to provide a spectral information reconstruction method and system based on a scanning grating micromirror spectrometer, which is used to solve the technical problem in the related art that the spectrometer based on a scanning grating micromirror cannot provide the spectral information required by the user.

[0005] The present invention provides a method for reconstructing spectral information of a scanning grating micromirror spectrometer, the method comprising:

[0006] Acquire data to be reconstructed of a scanning grating micromirror spectrometer, wherein the data to be reconstructed includes at least four characteristic peak wavelength values ​​of a light source, a scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and a light intensity signal of a single-tube photodetector;

[0007] Generate a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval, the position sequence including position sequence values ​​of a plurality of sampling points, and generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value;

[0008] The reconstructed spectrum information of the scanning grating micromirror spectrometer is generated based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values.

[0009] Optionally, before generating the position sequence according to the scanning speed feedback signal, the preset length and the preset time interval, the method further includes:

[0010] sequentially determining each optional sampling point in the scanning speed feedback signal as a second sampling point, wherein the optional sampling points do not include a first sampling point and a last sampling point in the scanning speed feedback signal;

[0011] Determine a speed difference of a scanning speed value between a first continuous sampling point and a second continuous sampling point, wherein the second continuous sampling point is a previous continuous sampling point of the first continuous sampling point;

[0012] If the speed difference is greater than or equal to a preset difference threshold, obtain a scanning speed value of a third sampling point, where the third sampling point is a sampling point after the second sampling point, determine an average speed value of the scanning speed values ​​between the third sampling point and the first sampling point, and determine the average speed value as a new scanning speed value of the second sampling point.

[0013] Optionally, generating a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval includes:

[0014] Obtaining a maximum scanning speed value and a minimum scanning speed value in the scanning speed feedback signal;

[0015] generating a normalized scanning speed signal according to the maximum scanning speed value, the minimum scanning speed value and the scanning speed feedback signal, wherein the normalized scanning speed signal includes normalized scanning speed signal values ​​of a plurality of sampling points;

[0016] Determine the total scanning displacement and the scanning sampling point displacement respectively according to the normalized scanning speed signal and the preset time interval;

[0017] The position sequence is determined according to the preset length, the total scanning displacement and the scanning sampling point displacement.

[0018] Optionally, the normalized scanning speed signal value is determined by:

[0019]

[0020] in, is the normalized scanning velocity signal value at sampling point i, V i is the scanning speed feedback signal value of sampling point i, V min is the minimum scanning speed value, V max is the maximum scanning speed value, and the sampling point of the scanning speed feedback signal is [z1,z2];

[0021] The method for determining the total scanning displacement includes:

[0022]

[0023] Where L is the total scanning displacement, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning velocity signal value of the sampling point (z2-1), is the normalized scanning velocity signal value of sampling point z2;

[0024] The method for determining the displacement of the scanning sampling point includes:

[0025]

[0026] Among them, L i is the displacement of the scanning sampling point, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning speed signal value at sampling point i, and the sampling point of the scanning speed feedback signal is [z1,z2];

[0027] The method for determining the position sequence value includes:

[0028]

[0029] Among them, A j is the jth position sequence value, L i is the displacement of the scanning sampling point, L is the total scanning displacement, M is the preset length, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+j), is the normalized scanning speed signal value of the sampling point z2, j is the sequence number of the position sequence value in the position sequence, and the sampling point of the scanning speed feedback signal is [z1, z2].

[0030] Optionally, generating a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value includes:

[0031] Determine a wavelength calibration coefficient group corresponding to each position sequence value according to at least 4 light source characteristic peak wavelength values ​​and each position sequence value in the position sequence, wherein the wavelength calibration coefficient group includes a first wavelength calibration coefficient, a second wavelength calibration coefficient, a third wavelength calibration coefficient and a fourth wavelength calibration coefficient;

[0032] The reconstructed wavelength corresponding to each position sequence value is determined according to the wavelength calibration coefficient group and each position sequence value in the position sequence.

[0033] Optionally, the wavelength calibration coefficient group is determined by:

[0034] λ m =a0+a1*A j +a2*A j 2 +a3*A j 3 ,

[0035] Among them, λ m is the characteristic peak wavelength value of the mth light source, m≥4, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the j-th position sequence value;

[0036] The method for determining the reconstruction wavelength includes:

[0037]

[0038] in, is the reconstructed wavelength corresponding to the jth position sequence value, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the j-th position sequence value.

[0039] Optionally, generating the reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values ​​includes:

[0040] If the sum of the scanning speed values ​​in the scanning speed feedback signal is greater than zero, generating reconstructed spectrum information according to the reconstructed wavelength and light intensity signals corresponding to the position sequence values;

[0041] If the sum of the scanning speed values ​​in the scanning speed feedback signal is less than zero, the light intensity signal includes multiple light intensity values, and the light intensity values ​​are re-sorted in reverse order of the sampling order to obtain a reconstructed light intensity signal, and reconstructed spectral information is generated according to the reconstructed wavelength corresponding to each position sequence value and the reconstructed light intensity signal.

[0042] The present invention also provides a spectral information reconstruction system based on a scanning grating micromirror spectrometer, the system comprising:

[0043] An acquisition module is used to acquire data to be reconstructed from a scanning grating micromirror spectrometer, wherein the data to be reconstructed includes at least four characteristic peak wavelength values ​​of a light source, a scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and a light intensity signal of a single-tube photodetector;

[0044] A generating module, configured to generate a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval, wherein the position sequence includes position sequence values ​​of a plurality of sampling points, and to generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value;

[0045] A reconstruction module is used to generate reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values.

[0046] The present invention also provides an electronic device, comprising a processor, a memory and a communication bus;

[0047] The communication bus is used to connect the processor and the memory;

[0048] The processor is used to execute the computer program stored in the memory to implement the method as described in any one of the above embodiments.

[0049] The present invention also provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and the computer program is used to enable a computer to execute the method described in any one of the above embodiments.

[0050] As described above, the present invention provides a method and system for reconstructing spectral information based on a scanning grating micromirror spectrometer, which has the following beneficial effects:

[0051] The method obtains data to be reconstructed from a scanning grating micromirror spectrometer, generates a position sequence according to a scanning speed feedback signal, a preset length and a preset time interval, generates a reconstructed wavelength corresponding to each position sequence value according to a characteristic peak wavelength value of a light source and each position sequence value, and generates reconstructed spectral information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each position sequence value. Through the spectral information reconstruction method, in the design of a miniature near-infrared spectrometer system based on a scanning grating micromirror, reconstructed spectral information can be generated by combining a single-tube photoelectric detector light intensity signal and a scanning speed feedback signal of a scanning grating micromirror, thereby directly reflecting the spectral information required by a user and meeting the user's needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1A structural diagram of a micro near-infrared spectrometer system based on a scanning grating micromirror provided as the background technology of the present invention;

[0053] Figure 2 A schematic flow chart of a method for reconstructing spectral information based on a scanning grating micromirror spectrometer provided in one embodiment of the present invention;

[0054] Figure 3 A specific flow chart of a method for reconstructing spectral information based on a scanning grating micromirror spectrometer provided in one embodiment of the present invention;

[0055] Figure 4 A schematic structural diagram of a spectral information reconstruction system based on a scanning grating micromirror spectrometer provided in one embodiment of the present invention;

[0056] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention;

[0057] Figure 6 A schematic diagram of characteristic peaks of a mercury lamp provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0059] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0060] Embodiment 1

[0061] See also Figure 2 The embodiment of the present invention provides a method for reconstructing spectral information of a scanning grating micromirror spectrometer, comprising:

[0062] Step S201: obtaining data to be reconstructed from a scanning grating micromirror spectrometer.

[0063] The data to be reconstructed include: at least 4 characteristic peak wavelength values ​​of the light source, the scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and the light intensity signal of a single-tube photodetector.

[0064] It should be noted that Figure 1 The diagram is only a schematic diagram of the structure of a scanning grating micromirror spectrometer, and the method provided in this embodiment can also be applied to scanning grating micromirror spectrometers of other structures with the same principle.

[0065] The wavelength value of the characteristic peak of the light source may be the wavelength value of the standard characteristic peak of the light source of the scanning grating micromirror spectrometer light source, and the number of the standard characteristic peaks of the light source of the scanning grating micromirror spectrometer light source is not less than 4. Taking a mercury lamp light source as an example, there are 6 standard characteristic peaks of a mercury lamp light source, from which at least 4 characteristic peaks can be selected, and the wavelength values ​​of the at least 4 characteristic peaks are used as at least 4 light source characteristic peak wavelength values. The wavelength of the standard characteristic peak of the mercury lamp light source can be determined in a manner known to those skilled in the art, which is not limited here.

[0066] Optionally, a spectral signal acquisition module and other related equipment are used to respectively acquire the light intensity signal of the single-tube photodetector and the scanning speed feedback signal of the scanning grating micromirror, and the corresponding acquired data are recorded as S n and V n ; where S n is the light intensity signal of the single-tube photodetector, V n is the speed feedback signal of the scanning grating micromirror, and n is the number of sampling points.

[0067] Optionally, the scanning grating micromirror is driven by a sinusoidal wave signal. In this case, the scanning speed feedback signal of a single spectral signal cycle can be the signal value of a sampling point between two adjacent zero-point sampling points in the sinusoidal wave signal.

[0068] In one embodiment, a scanning speed feedback signal of a single spectral signal cycle of a scanning grating micromirror is obtained by:

[0069] Acquire a scanning speed multi-cycle feedback signal of multiple spectral signal cycles of the scanning grating micromirror, wherein the scanning speed multi-cycle feedback signal includes scanning speed values ​​of multiple sampling points;

[0070] A scanning speed multi-cycle feedback signal between two adjacent target sampling points is intercepted and determined as a scanning speed feedback signal, wherein the scanning speed value of the target sampling point is 0.

[0071] In one embodiment, a method of intercepting a scanning speed feedback signal of a scanning grating micromirror of a single spectral signal cycle is:

[0072] Determine and determine the two adjacent zero-crossing points of the scanning speed signal and record them as V z1 and V z2 , where z1 and z2 are the sampling order points (sampling points) for intercepting the scanning speed signal;

[0073] Then, according to V z1 and V z2 The scanning speed between the two determines the reciprocating cycle of the scan. z1 and V z2 When the scanning speed between is greater than 0, it is recorded as forward scanning, and F=1; when V z1 and V z2 When the scanning speed between is less than 0, it is recorded as reverse scanning and F=0.

[0074] The light intensity signal of the single-tube photodetector is a light intensity signal of the same spectral signal period as the scanning speed feedback signal. The light intensity signal can be collected in a manner known to those skilled in the art. The light intensity signal includes the light intensity value of each sampling point (at least a portion of the sampling points) within a single spectral signal period. Optionally, the light intensity signal and the scanning speed feedback signal are collected synchronously to facilitate subsequent reconstruction of spectral information.

[0075] Step S202: Generate a position sequence according to the scanning speed feedback signal, the preset length and the preset time interval, and generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value. The position sequence includes position sequence values ​​of multiple sampling points.

[0076] In some embodiments, before generating the position sequence according to the scanning speed feedback signal, the preset length and the preset time interval, the method further includes filtering the scanning speed feedback signal. One way of filtering is as follows:

[0077] sequentially determining each optional sampling point in the scanning speed feedback signal as a second sampling point, wherein the optional sampling points do not include a first sampling point and a last sampling point in the scanning speed feedback signal;

[0078] Determine a speed difference of a scanning speed value between a first continuous sampling point and a second continuous sampling point, the second continuous sampling point being a previous continuous sampling point of the first continuous sampling point;

[0079] If the speed difference is greater than or equal to the preset difference threshold, obtain the scanning speed value of the third sampling point, the third sampling point is the sampling point after the second sampling point, determine the average speed value of the scanning speed values ​​between the third sampling point and the first sampling point, and determine the average speed value as the new scanning speed value of the second sampling point.

[0080] Optionally, the above method can be understood as filtering the scanning speed feedback signal. The above scanning speed feedback signal is filtered (or filtered after obtaining the scanning speed multi-cycle feedback signal, and then intercepting the scanning speed feedback signal) as follows:

[0081] The difference in the scanning speed value of the speed signal between adjacent sampling points is determined as:

[0082] ΔV i =V i -V i-1 Formula (1),

[0083] When ΔV i ≥V SET When V is removed i , and using interpolation, let

[0084] When ΔV i <V SET When V i The speed signal remains unchanged, where V SET It is the set value for filtering judgment (preset difference threshold).

[0085] Where, ΔV i is the speed difference, V i is the scanning speed value of sampling point i, V i+1 is the scanning speed value of sampling point (i+1), V i+1 is the scanning speed value of sampling point (i-1), V SET is the preset difference threshold, wherein i is neither the first sampling point nor the last sampling point in the scanning speed feedback signal.

[0086] In one embodiment, generating a position sequence according to a scanning speed feedback signal, a preset length and a preset time interval includes:

[0087] Obtaining the maximum scanning speed value and the minimum scanning speed value in the scanning speed feedback signal;

[0088] Generate a normalized scanning speed signal according to the maximum scanning speed value, the minimum scanning speed value and the scanning speed feedback signal, wherein the normalized scanning speed signal includes normalized scanning speed signal values ​​of a plurality of sampling points;

[0089] Determine the total scanning displacement and the scanning sampling point displacement respectively according to the normalized scanning speed signal and the preset time interval;

[0090] The position sequence is determined according to the preset length, the total scanning displacement and the scanning sampling point displacement.

[0091] A method for determining the normalized scanning speed signal value includes:

[0092]

[0093] in, is the normalized scanning velocity signal value at sampling point i, V i is the scanning speed feedback signal value of sampling point i, V min is the minimum scanning speed value, V max is the maximum scanning speed value, and the sampling point of the scanning speed feedback signal is [z1,z2].

[0094] A method for determining the total scanning displacement includes:

[0095]

[0096] Where L is the total scanning displacement, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning velocity signal value of the sampling point (z2-1), is the normalized scanning velocity signal value of sampling point z2.

[0097] Among them, a method for determining the displacement of the scanning sampling point includes:

[0098]

[0099] Among them, L i is the displacement of the scanning sampling point, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning speed signal value at sampling point i, and the sampling point of the scanning speed feedback signal is [z1,z2].

[0100] Among them, a method for determining the position sequence value includes:

[0101]

[0102] Among them, A j is the jth position sequence value, L i is the displacement of the scanning sampling point, L is the total scanning displacement, M is the preset length, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+j), is the normalized scanning speed signal value of the sampling point z2, j is the sequence number of the position sequence value in the position sequence, and the sampling point of the scanning speed feedback signal is [z1, z2].

[0103] In one embodiment, the method further comprises:

[0104] The position sequence and the light intensity signal are combined to reconstruct the initial spectral information. At this time, according to the forward scanning (the sum of the scanning speed values ​​in the scanning speed feedback signal is greater than zero) and the reverse scanning (the sum of the scanning speed values ​​in the scanning speed feedback signal is less than zero) of the scanning grating micromirror, that is, in the case of F=1 and F=0 in the above embodiment, the sampling points of the scanning speed feedback signal are [z1, z2], and the light intensity signal is expressed as (S z1 , S z1+1 , S z1+j ……S z2 ), the position sequence is expressed as (A0...A j ...A z2-z1 ), so the reconstructed initial spectral information can be expressed as:

[0105] When F = 1, it can be expressed as (A0, S z1 ),...,(A j ,S z1+j ),...,(A z2-z1 ,S z2 ),

[0106] where j∈[0,z2-z1], A j ∈[0,M];

[0107] When F = 0, it can be expressed as (A0, S z2 ),...,(A j ,S z2-j ),...,(A z2-z1 ,S z1 ),

[0108] where j∈[0,z2-z1], A j ∈[0,M];

[0109] Thus, spectra of different scanning positions and corresponding light intensities are obtained.

[0110] In one embodiment, generating a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value includes:

[0111] Determine a wavelength calibration coefficient group corresponding to each position sequence value according to at least four light source characteristic peak wavelength values ​​and each position sequence value in the position sequence, wherein the wavelength calibration coefficient group includes a first wavelength calibration coefficient, a second wavelength calibration coefficient, a third wavelength calibration coefficient and a fourth wavelength calibration coefficient;

[0112] The reconstructed wavelength corresponding to each position sequence value is determined according to the wavelength calibration coefficient group and each position sequence value in the position sequence.

[0113] Optionally, the wavelength calibration coefficient group is determined by:

[0114] λ m =a0+a1*A j +a2*A j 2 +a3*A j 3 Formula (7),

[0115] Among them, λ m is the characteristic peak wavelength value of the mth light source, m≥4, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the j-th position sequence value.

[0116] Taking the characteristic peak wavelengths of four light sources, λ1, λ2, λ3, and λ4, as an example, the following equations can be obtained:

[0117]

[0118] Since λ1, λ2, λ3, λ4 and A j They are all known numbers, so the specific values ​​of the wavelength calibration coefficient group (a0, a1, a2, a3) can be obtained according to the equation group.

[0119] It should be noted that when the characteristic peak wavelength values ​​of the light source exceed 4, those skilled in the art can also obtain the specific values ​​of the wavelength calibration coefficient group (a0, a1, a2, a3) according to the above method.

[0120] Optionally, a method for determining the reconstruction wavelength includes:

[0121]

[0122] in, is the reconstructed wavelength corresponding to the jth position sequence value, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the jth position sequence value. Due to the wavelength calibration coefficient group (a0, a1, a2, a3) and A jare all known, so we can get The numerical value of .

[0123] Step S203: generating reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each position sequence value.

[0124] In one embodiment, generating reconstructed spectrum information of a scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each position sequence value includes:

[0125] If the sum of the scanning speed values ​​in the scanning speed feedback signal is greater than zero, F=1, and the reconstructed spectrum information is generated according to the reconstructed wavelength and light intensity signals corresponding to each position sequence value;

[0126] If the sum of the scanning speed values ​​in the scanning speed feedback signal is less than zero, F=0, the light intensity signal includes multiple light intensity values, and the light intensity values ​​are re-sorted in reverse order of the sampling order to obtain a reconstructed light intensity signal, and reconstructed spectrum information is generated according to the reconstructed wavelength corresponding to each position sequence value and the reconstructed light intensity signal. For example, each reconstructed wavelength and the reconstructed light intensity signal with the same order are combined into a group of data, and the obtained multiple groups of data are arranged according to the order of the reconstructed wavelengths, and the obtained array is the reconstructed spectrum information.

[0127] Optionally, based on the initial spectrum information, the corresponding position sequence value may be replaced with the reconstructed wavelength determined in the above embodiment to obtain the reconstructed spectrum information.

[0128] In one embodiment, the method further comprises generating a near infrared spectrum map according to the reconstructed spectrum information.

[0129] It should be noted that the above embodiment only takes the generation of reconstructed spectral information of a single spectral signal period as an example, and those skilled in the art may repeatedly implement or apply the above method to achieve the generation of reconstructed spectral information of multiple spectral signal periods.

[0130] The spectral information reconstruction method based on the scanning grating micromirror spectrometer provided in the present embodiment obtains the data to be reconstructed of the scanning grating micromirror spectrometer, generates a position sequence according to a scanning speed feedback signal, a preset length and a preset time interval, generates a reconstructed wavelength corresponding to each position sequence value according to the wavelength value of the characteristic peak of the light source and each position sequence value, and generates the reconstructed spectral information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and the light intensity signal corresponding to each position sequence value. Through the spectral information reconstruction method, in the design of a miniature near-infrared spectrometer system based on a scanning grating micromirror, reconstructed spectral information can be generated by combining the light intensity signal of a single-tube photodetector and the scanning speed feedback signal of the scanning grating micromirror, which can directly reflect the spectral information required by the user and meet the user's needs.

[0131] Optionally, reconstructing the spectral information is helpful to reconstruct a standard near-infrared spectrum, thereby replacing expensive array detectors with single-tube detectors and reducing design costs.

[0132] Optionally, the position sequence value is calibrated and calibrated by the wavelength value of the characteristic peak of the light source (such as the wavelength of the standard characteristic peak of a mercury lamp light source), so that the scanning speed feedback signal can be converted into a wavelength value array to obtain reconstructed spectral information.

[0133] The following is a specific example to illustrate the method provided in the above embodiment, which is applied to the reconstruction of the signal collected by the spectrometer based on the scanning grating micromirror, taking the light source as a mercury lamp light source as an example, see Figure 3 , the specific method includes:

[0134] Step S301: using a spectrum signal acquisition module to respectively acquire the light intensity signal of the single-tube photodetector and the scanning speed multi-cycle feedback signal of the scanning grating micromirror;

[0135] Step S302: filtering the multi-cycle feedback signal of the scanning speed of the scanning grating micromirror to remove invalid signals;

[0136] Step S303: intercepting a scanning speed feedback signal of the scanning grating micromirror of a single spectral signal period;

[0137] Step S304: using the intercepted scanning speed feedback signal, combined with the light intensity signal of the single-tube photoelectric detector, to convert into spectral information between scanning position and light intensity;

[0138] Step S305: calibrate and calibrate the converted spectral information using the standard characteristic peak of the mercury lamp light source.

[0139] In step S301, the spectral signal acquisition module is used to respectively acquire the light intensity signal of the single-tube photodetector and the scanning speed multi-cycle feedback signal of the scanning grating micromirror, and the corresponding acquired data is recorded as S n and V n ; where S n is the light intensity signal of the single tube detector, V n is the scanning speed multi-cycle feedback signal of the scanning grating micromirror, and n is the number of sampling points. The light intensity signal and scanning speed multi-cycle feedback signal collected by this part may include a signal with one or more spectral signal cycles.

[0140] In step S302, the filtering method of the scanning speed multi-cycle feedback signal of the scanning grating micromirror includes:

[0141] Determine the difference between adjacent speed signals as ΔV i =V i -Vi-1 ;

[0142] When ΔV i ≥V H When V is removed i , and using interpolation, let

[0143] When ΔV i <V H When V i The speed signal remains unchanged;

[0144] Among them, V H is the setting value for filtering judgment (preset difference threshold); V n is (V1, V2, V n-1 , V n ) as an example, i∈【2,n-1】.

[0145] In step S303, the scanning speed feedback signal of the scanning grating micromirror intercepting a single spectral signal cycle includes:

[0146] First, determine and identify two adjacent zero-crossing sampling points from the scanning speed multi-cycle feedback signal and record them as V z1 and V z2 , where z1 and z2 are the sampling order points for intercepting the scanning speed signal, and V z1 To V z2 The signal formed by the scanning points between is used as the scanning speed feedback signal;

[0147] Then, according to V z1 and V z2 The scanning speed between the two determines the reciprocating cycle of the scan. z1 and V z2 When the scanning speed between is greater than 0, it is recorded as forward scanning, and F=1; when V z1 and V z2 When the scanning speed between is less than 0, it is recorded as reverse scanning and F=0.

[0148] In step S304, the method of combining the intercepted scanning speed feedback signal with the light intensity signal of the single-tube photoelectric detector to convert the signal into spectral information between the scanning position and the light intensity is as follows:

[0149] First, the intercepted scanning speed feedback signal is normalized:

[0150] The normalized scanning speed feedback signal is Where V max and V min are the maximum and minimum values ​​of the intercepted scanning speed signal, respectively. is the normalized scanning speed signal;

[0151] Then, the scanning displacement is calculated based on the normalized scanning speed feedback information:

[0152] Since the scanning speed feedback signal of the scanning grating micromirror is a standard sine wave, the scanning displacement corresponding to the intercepted scanning grating micromirror speed feedback signal can be expressed as; Where T is the time interval corresponding to the signal;

[0153] The displacement corresponding to the i-th point can be expressed as:

[0154] The intercepted scanning speed feedback signal can be standardized into a position sequence of length M:

[0155] where j∈[0,z2-z1];

[0156] Finally, the converted position sequence is combined with the light intensity signal of the single-tube photodetector (the light intensity signal corresponding to the scanning speed feedback signal, that is, the light intensity signal and the scanning speed feedback signal belong to the same spectral signal period, and the sampling method of the two is the same) to reconstruct the spectral information. At the same time, due to the forward and reverse scanning of the scanning grating micromirror, that is, there are F = 1 and F = 0, so the reconstructed spectral information can be expressed as:

[0157] When F = 1, it can be expressed as (A0, S z1 ),...,(A j ,S z1+j ),...,(A z2-z1 ,S z2 ),

[0158] where j∈[0,z2-z1],A j ∈[0,M];

[0159] When F = 0, it can be expressed as (A0, S z2 ),...,(A j ,S z2-j ),...,(A z2-z1 ,S z1 ),

[0160] where j∈[0,z2-z1],A j ∈[0,M];

[0161] Thus, spectra of different scanning positions and corresponding light intensities are obtained.

[0162] In step S305, the converted spectral information is calibrated and corrected using the standard characteristic peak of the mercury lamp light source as follows:

[0163] First, select the 6 standard characteristic peak wavelength information and 6 corresponding wavelength values ​​in the mercury lamp light source, such as: 1016nm, 1130nm, 1208nm, 1370nm, 1632nm, 1692nm, 1707nm, see Figure 6 , Figure 6 It is a schematic diagram of characteristic peaks of a mercury lamp;

[0164] Then, by comparing the obtained spectrum, we can obtain the six characteristic peaks in the spectrum. j The third-order least squares fitting is performed to obtain the wavelength calibration coefficient, where the wavelength is related to A in the spectrum. j The mathematical expression of the corresponding relationship of the position is: Among them, a0, a1, a2, a3 are wavelength calibration coefficients;

[0165] Finally, after obtaining the wavelength calibration coefficient, the reconstructed spectral data is converted between scanning position and wavelength, and calibrated and calibrated to ensure the accuracy of the spectral data.

[0166] The light intensity signal of the single-tube detector and the scanning speed feedback signal of the scanning grating micromirror are collected through the spectral signal acquisition module. At the same time, the scanning speed multi-cycle feedback signal of the scanning micromirror is filtered and processed. The intercepted scanning speed feedback signal is combined with the light intensity signal of the single-tube photodetector and converted into spectral information between the scanning position and the light intensity, thereby realizing the preliminary reconstruction of the spectral information. Finally, the standard characteristic peak of the mercury lamp light source is used to calibrate the preliminary reconstructed spectral information, so as to obtain a standard spectral information graph.

[0167] See also Figure 4 The embodiment of the present invention further provides a spectral information reconstruction system 400 based on a scanning grating micromirror spectrometer, the system comprising:

[0168] An acquisition module 401 is used to acquire data to be reconstructed of a scanning grating micromirror spectrometer, wherein the data to be reconstructed includes at least four characteristic peak wavelength values ​​of a light source, a scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and a light intensity signal of the single-tube photodetector;

[0169] A generating module 402 is used to generate a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval, wherein the position sequence includes position sequence values ​​of a plurality of sampling points, and to generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value;

[0170] The reconstruction module 403 is used to generate the reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values.

[0171] In this embodiment, the system is essentially provided with multiple modules for executing the method of the above embodiment. The specific functions and technical effects can be referred to the above method embodiment, which will not be described in detail here.

[0172] See also Figure 5 , an embodiment of the present invention further provides an electronic device 800, including a processor 801, a memory 802 and a communication bus 803;

[0173] The communication bus 803 is used to connect the processor 801 and the memory 802;

[0174] The processor 801 is used to execute the computer program stored in the memory 802 to implement the method as described in any one of the above-mentioned embodiments.

[0175] The embodiment of the present application also provides a non-volatile readable storage medium, which stores one or more modules (programs). When the one or more modules are applied to a device, the device can execute instructions (instructions) of the steps included in the embodiment 1 of the embodiment of the present application.

[0176] An embodiment of the present invention further provides a computer-readable storage medium, characterized in that a computer program is stored thereon, and the computer program is used to enable a computer to execute any method described in the above-mentioned embodiment 1.

[0177] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0178] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0179] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0180] The flow chart and block diagram in the accompanying drawings illustrate the possible implementation architecture, function and operation of the method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0181] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.

Claims

1. A spectral information reconstruction method based on a scanning grating micromirror spectrometer, characterized in that: The method comprises: Acquire data to be reconstructed of a scanning grating micromirror spectrometer, wherein the data to be reconstructed includes at least four characteristic peak wavelength values ​​of a light source, a scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and a light intensity signal of a single-tube photodetector; Generate a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval, the position sequence including position sequence values ​​of a plurality of sampling points, and generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value; According to the positive or negative condition of the sum of the scanning speed values ​​in the scanning speed feedback signal, the reconstructed spectrum information of the scanning grating micromirror spectrometer is generated based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values; Generating a position sequence according to the scanning speed feedback signal, the preset length and the preset time interval comprises: determining a total scanning displacement and a scanning sampling point displacement according to the scanning speed feedback signal and the preset time interval respectively; determining a position sequence according to the preset length, the total scanning displacement and the scanning sampling point displacement; Generating a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value includes: determining a wavelength calibration coefficient group corresponding to each position sequence value according to at least 4 characteristic peak wavelength values ​​of the light source and each position sequence value in the position sequence, wherein the wavelength calibration coefficient group includes a first wavelength calibration coefficient, a second wavelength calibration coefficient, a third wavelength calibration coefficient and a fourth wavelength calibration coefficient; and determining a reconstructed wavelength corresponding to each position sequence value according to the wavelength calibration coefficient group and each position sequence value in the position sequence.

2. The method according to claim 1, characterized in that Before generating the position sequence according to the scanning speed feedback signal, the preset length and the preset time interval, the method further includes: sequentially determining each optional sampling point in the scanning speed feedback signal as a second sampling point, wherein the optional sampling points do not include a first sampling point and a last sampling point in the scanning speed feedback signal; Determine a speed difference of a scanning speed value between a first continuous sampling point and a second continuous sampling point, wherein the second continuous sampling point is a previous continuous sampling point of the first continuous sampling point; If the speed difference is greater than or equal to a preset difference threshold, obtain a scanning speed value of a third sampling point, where the third sampling point is a sampling point after the second sampling point, determine an average speed value of the scanning speed values ​​between the third sampling point and the first sampling point, and determine the average speed value as a new scanning speed value of the second sampling point.

3. The method according to claim 1, characterized in that Determining the total scanning displacement and the scanning sampling point displacement respectively according to the scanning speed feedback signal and the preset time interval comprises: Obtaining a maximum scanning speed value and a minimum scanning speed value in the scanning speed feedback signal; generating a normalized scanning speed signal according to the maximum scanning speed value, the minimum scanning speed value and the scanning speed feedback signal, wherein the normalized scanning speed signal includes normalized scanning speed signal values ​​of a plurality of sampling points; The total scanning displacement and the scanning sampling point displacement are determined respectively according to the normalized scanning speed signal and the preset time interval.

4. The method according to claim 3, characterized in that The normalized scanning speed signal value is determined by: in, is the normalized scanning velocity signal value at sampling point i, V i is the scanning speed feedback signal value of sampling point i, V min is the minimum scanning speed value, V max is the maximum scanning speed value, and the sampling point of the scanning speed feedback signal is [z1,z2]; The method for determining the total scanning displacement includes: Where L is the total scanning displacement, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning velocity signal value of the sampling point (z2-1), is the normalized scanning velocity signal value of sampling point z2; The method for determining the displacement of the scanning sampling point includes: Among them, L i is the displacement of the scanning sampling point, T is the preset time interval, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+1), is the normalized scanning speed signal value at sampling point i, and the sampling point of the scanning speed feedback signal is [z1,z2]; The method for determining the position sequence value includes: Among them, A j is the jth position sequence value, L i is the displacement of the scanning sampling point, L is the total scanning displacement, M is the preset length, is the normalized scanning velocity signal value of sampling point z1, is the normalized scanning velocity signal value of the sampling point (z1+j), is the normalized scanning speed signal value of the sampling point z2, j is the sequence number of the position sequence value in the position sequence, and the sampling point of the scanning speed feedback signal is [z1, z2].

5. The method according to any one of claims 3 or 4, characterized in that The wavelength calibration coefficient group is determined in the following manner: λ (m) =a0+a1*A j +a2*A j 2 +a3*A j 3 , Among them, λ m is the characteristic peak wavelength value of the mth light source, m≥4, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the j-th position sequence value; The method for determining the reconstruction wavelength includes: in, is the reconstructed wavelength corresponding to the jth position sequence value, a0 is the first wavelength calibration coefficient, a1 is the second wavelength calibration coefficient, a2 is the third wavelength calibration coefficient, a3 is the fourth wavelength calibration coefficient, A j is the j-th position sequence value.

6. The method according to any one of claims 1 to 4, characterized in that: Generating the reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each of the position sequence values ​​includes: If the sum of the scanning speed values ​​in the scanning speed feedback signal is greater than zero, generating reconstructed spectrum information according to the reconstructed wavelength and light intensity signals corresponding to the position sequence values; If the sum of the scanning speed values ​​in the scanning speed feedback signal is less than zero, the light intensity signal includes multiple light intensity values, and the light intensity values ​​are re-sorted in reverse order of the sampling order to obtain a reconstructed light intensity signal, and reconstructed spectral information is generated according to the reconstructed wavelength corresponding to each position sequence value and the reconstructed light intensity signal.

7. A spectral information reconstruction system based on a scanning grating micromirror spectrometer, characterized in that: The system comprises: An acquisition module is used to acquire data to be reconstructed from a scanning grating micromirror spectrometer, wherein the data to be reconstructed includes at least four characteristic peak wavelength values ​​of a light source, a scanning speed feedback signal of a single spectral signal cycle of the scanning grating micromirror, and a light intensity signal of a single-tube photodetector; A generating module, configured to generate a position sequence according to the scanning speed feedback signal, a preset length and a preset time interval, wherein the position sequence includes position sequence values ​​of a plurality of sampling points, and to generate a reconstructed wavelength corresponding to each position sequence value according to the characteristic peak wavelength value of the light source and each position sequence value; A reconstruction module, for generating the reconstructed spectrum information of the scanning grating micromirror spectrometer based on the reconstructed wavelength and light intensity signal corresponding to each position sequence value according to the positive or negative condition of the sum of each scanning speed value in the scanning speed feedback signal; The generating module is specifically used to determine the total scanning displacement and the scanning sampling point displacement according to the scanning speed feedback signal and the preset time interval respectively; and to determine the position sequence according to the preset length, the total scanning displacement and the scanning sampling point displacement; The generation module is also specifically used to determine a wavelength calibration coefficient group corresponding to each position sequence value according to at least 4 light source characteristic peak wavelength values ​​and each position sequence value in the position sequence, wherein the wavelength calibration coefficient group includes a first wavelength calibration coefficient, a second wavelength calibration coefficient, a third wavelength calibration coefficient and a fourth wavelength calibration coefficient; and determine a reconstructed wavelength corresponding to each position sequence value according to the wavelength calibration coefficient group and each position sequence value in the position sequence.

8. An electronic device, characterized in that: including a processor, a memory and a communication bus; The communication bus is used to connect the processor and the memory; The processor is configured to execute the computer program stored in the memory to implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program is used to make a computer execute the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Spectral signal processing method and system

    CN115358256A

Cited By

  • Micro spectrum sensing system and method based on MEMS raster scanning

    CN121740235A

  • Miniaturized spectral sensing system and method based on MEMS grating scanning

    CN121740235B