Optical signal detection system and compensation method thereof, detection equipment and storage medium
By collecting periodic comparison of spectral scanning data in the optical signal detection system, acquiring the difference in signal group characteristics and modifying the calibration data, the problem of the reduction in accuracy of the optical signal detection system when the calibration data changes is solved, and the system's adaptability and reliability of the output results are improved.
Patent Information
- Application Number
- CN202411991335.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2044-12-30
AI Technical Summary
Under the influence of factors such as light source aging and environmental changes, the calibration data changes lead to a decrease in the accuracy of the system. When the existing optical signal detection system cannot be calibrated in time, the reliability and accuracy of the output results will decrease.
By acquiring spectral scan data in a preset period, obtaining the signal group characteristic differences in the current period and the next period, modifying the calibration data of the light detection system based on these differences to adaptively adjust the calibration data.
It realizes timely modification of calibration data when the calibration data changes, and improves the accuracy and reliability of the optical signal detection system under any conditions and the accuracy and reliability of the output results.
Smart Images

Figure CN119756583A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of optical signal detection, and in particular to an optical signal detection system and a compensation method thereof, a detection device and a storage medium. Background Art
[0002] The detection results of the optical signal detection system usually rely on the initial wavelength calibration data, which can convert the detected optical signal into the actual distance or event. However, in actual applications, as time goes by and the system continues to work, the calibration data will change due to the aging of the light source, changes in environmental conditions or other factors.
[0003] When the calibration data changes significantly, the accuracy of the optical signal detection system will decrease and the output results will become inaccurate. In order to ensure the accuracy of the system, it is usually calibrated regularly using a standard light source to correct the calibration data to ensure that the output results of the optical signal detection system are accurate. However, in some cases, it may not be possible to calibrate regularly, or the system needs to work continuously for a long time without stopping for calibration, then the reliability and accuracy of the optical signal detection system output will decrease. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to provide an optical signal detection system and a compensation method thereof, a detection device and a storage medium to solve the problem that the reliability and accuracy of the output of the optical signal detection system in the prior art will decrease.
[0005] The present invention discloses a compensation method for an optical signal detection system, the compensation method for the optical detection system comprising:
[0006] Collect spectral scanning data according to a preset period;
[0007] Acquire a first signal group of the spectrum scanning data in a current period, and acquire a first feature and a boundary frequency range of the first signal group;
[0008] In the spectrum scanning data in the next cycle, based on the boundary frequency range and the first feature, a second signal group corresponding to each of the first signal groups is obtained, and a second feature of the second signal group is obtained;
[0009] A feature difference between the first feature and the second feature is obtained, and calibration data of the light detection system is modified based on the feature difference.
[0010] Optionally, the first signal group includes at least one first signal, and the second signal group includes at least one second signal;
[0011] The step of obtaining the first characteristic and the boundary frequency range of the first signal group includes:
[0012] Acquire at least one signal peak value in the spectrum scanning data, each of the signal peak values corresponding to one of the first signals;
[0013] The signal frequency boundary corresponding to each of the signal peaks is obtained, and all of the signal frequency boundaries are used as the boundary frequency range.
[0014] Optionally, the first feature includes a first signal feature of each of the first signals, and the second feature includes a second signal feature of each of the second signals;
[0015] The step of acquiring the second signal group corresponding to each of the first signal groups based on the boundary frequency range comprises:
[0016] Dividing the spectrum scanning data in the next period according to the signal frequency boundary to obtain at least one signal segment;
[0017] Obtain a signal segment feature of the signal segment, and compare the signal segment feature with the first signal feature of the corresponding first signal. If the difference between the two is less than a preset requirement, it is considered that the signal segment is the second signal corresponding to the first signal, and the signal segment feature is the second signal feature.
[0018] Optionally, types of the first signal feature and the second signal feature include frequency features and power features.
[0019] Optionally, the step of modifying calibration data of the light detection system based on the characteristic difference comprises:
[0020] The variation of each pair of the first signal and the second signal in the frequency characteristic is obtained, and fitting is performed based on the variation to obtain a wavelength compensation value.
[0021] Optionally, the step of comparing the signal segment feature with a first signal feature of a corresponding first signal includes:
[0022] When the difference between the two exceeds the preset requirement, it is considered that there is no second signal corresponding to the first signal.
[0023] Optionally, after the step of collecting the spectral scanning data of the light detection system according to a preset period, the method further comprises:
[0024] The spectrum scanning data is subjected to fixed window smoothing processing.
[0025] The present invention also discloses an optical signal detection system, comprising:
[0026] An acquisition module, used for acquiring spectral scanning data of the light detection system according to a preset period;
[0027] The current module is used to obtain a first signal group of the spectrum scanning data in a current period, and obtain a first feature and a boundary frequency range of the first signal group;
[0028] an acquisition module, configured to acquire, in the spectrum scanning data in the next cycle, a second signal group corresponding to each of the first signal groups based on the boundary frequency range, and acquire a second feature of the second signal group;
[0029] The modification module is used to obtain a feature difference between the first feature and the second feature, and modify the calibration data of the light detection system based on the feature difference.
[0030] The present invention also discloses a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the processor executes the steps of the method described above.
[0031] The present invention also discloses a detection device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.
[0032] Compared with the prior art, the compensation method for the optical signal detection system provided by the embodiment of the present invention has the beneficial effect of comparing the difference between the signal characteristics of the first signal group and the second signal group in different periods based on the spectral scanning data obtained in two adjacent periods. The characteristic difference reflects the change of the calibration data. The calibration data of the optical detection system is modified based on the characteristic difference, so that the calibration data can be modified in time when the calibration data changes. Such an adaptive calibration method helps the optical detection system to maintain accuracy under any conditions and improves the accuracy and reliability of the output results. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The scheme of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments, in which:
[0034] Figure 1 is a flow chart of a first embodiment of a compensation method for an optical signal detection system provided by the present invention;
[0035] Figure 2 It is a structural schematic diagram of an embodiment of the optical signal detection system provided by the present invention.
[0036] The reference numerals in the figures are:
[0037] 10. Optical signal detection system; 11. Acquisition module; 12. Current module; 13. Acquisition module; 14. Modification module. DETAILED DESCRIPTION
[0038] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. Now, in conjunction with the accompanying drawings, the preferred embodiments of the present invention are described in detail.
[0039] See also Figure 1 , Figure 1 1 is a flow chart of a first embodiment of a compensation method for an optical signal detection system provided by the present invention. The compensation method for an optical signal detection system provided by the present invention comprises the following steps:
[0040] S101: Collect spectral scanning data according to a preset period.
[0041] In a specific implementation scenario, the optical signal detection system outputs a scanning optical signal according to a preset period and collects spectral scanning data of the scanning optical signal. The scanning optical signal includes optical signals of multiple wavelengths. When the optical signal detection system outputs the scanning optical signal, the scanning optical signal can be collected to obtain spectral scanning data, which includes information of the multiple optical signals.
[0042] In other implementation scenarios, after the spectral scan data is acquired, a fixed window smoothing process is performed. Through the fixed window smoothing process, the noise in the spectral scan data can be effectively reduced, making the data smoother and easier to analyze. First, a suitable window size needs to be selected. The window size determines the number of data points considered in the smoothing process. A larger window can provide smoother results, but may cause the loss of signal details, while a smaller window can retain more details, but may not effectively reduce noise. Select an appropriate window function to weight the data. Common window functions include rectangular windows, Hamming windows, Hanning windows, etc. The choice of window function will affect the smoothing effect and spectral characteristics, and needs to be adjusted according to actual conditions. Apply the selected window function to the spectral scan data and smooth the data by moving the window average. Specifically, for each data point in the spectral scan data, take the data points within the window range and calculate their weighted average as the smoothed data point value. Keep sliding the window and repeating this process until the entire spectral scan data is processed.
[0043] In other implementation scenarios, the spectral scanning data may be preprocessed by at least one of moving average, exponentially weighted moving average, wavelet transform, Kalman filtering, and local regression smoothing.
[0044] S102: Acquire a first signal group of spectrum scanning data in a current period, and acquire a first feature and a boundary frequency range of the first signal group.
[0045] In a specific implementation scenario, when the optical signal detection system outputs a scanning optical signal for the first time, spectrum scanning data is collected, the spectrum scanning data is analyzed, and optical signals of all wavelengths included in the current scanning optical signal are obtained as the first signal, and all the first signals are used as the first signal group. The first feature and boundary frequency range of the first signal group are obtained.
[0046] Specifically, the spectral scanning data includes a scanning waveform with the horizontal axis being frequency and the vertical axis being power, which contains energy information of various frequency components. At least one signal peak is obtained from the scan, and the signal peak represents a signal point with significant power. In order to accurately extract the signal peak, a screening criterion can be preset, for example, the signal power needs to exceed a preset power threshold, and / or the power difference with the adjacent signal needs to exceed a preset difference threshold. Each first signal has a signal peak, so each signal peak corresponds to a first signal, and the signal frequency boundary corresponding to the signal peak is obtained according to the preset division criterion, that is, the signal frequency boundary of the first signal corresponding to the signal peak. The same operation is performed on each signal peak in the scanning waveform, so as to obtain the first signal corresponding to each signal peak, and obtain the signal frequency boundary of each first signal. The sum of the signal frequency boundaries of all first signals in the scanning waveform is taken as the boundary frequency range, thereby effectively defining the overall signal frequency range.
[0047] In other implementation scenarios, the first feature of the first signal group may include a power feature and a frequency feature obtained according to the scanning waveform, which may be a power value, a frequency value, or a power range, a frequency range.
[0048] S103: In the spectrum scanning data in the next cycle, based on the boundary frequency range and the first feature, obtain a second signal group corresponding to each first signal group, and obtain a second feature of the second signal group.
[0049] In a specific implementation scenario, when the optical signal detection system outputs a scanning optical signal again, the spectrum scanning data of the scanning optical signal is collected and analyzed. It can be the next output adjacent to the current output scanning optical signal, or it can be the output separated by several times, and the specific interval length can be set according to actual needs. For example, when the accuracy requirement is high, the spectrum scanning data is collected for each output of the scanning optical signal by the optical signal detection system.
[0050] Specifically, a scanning waveform with the horizontal axis being frequency and the vertical axis being power is obtained, the scanning waveform is divided according to the boundary frequency range of the first signal group, the corresponding waveform segments are obtained, and features are extracted from the waveform segments to obtain their waveform features, such as frequency features, waveform features, power features, etc. If the waveform features match the first features of the first signal group, the signal group corresponding to the waveform segment is the second signal group corresponding to the first signal group, and the waveform features of the waveform segment are the second features corresponding to the second signal group.
[0051] In other implementation scenarios, the signal frequency boundary corresponding to each first signal in the first signal group can be obtained, and the scanning waveform can be divided according to these signal frequency boundaries to obtain at least one signal segment. Theoretically, the number of signal segments should be the same as the number of first signals. If the number of signal segments is much smaller than the number of first signals, it means that a large error has occurred in the data acquisition process, and claims S102-S103 can be re-executed.
[0052] The signal segment feature of each signal segment is obtained, the signal frequency boundary corresponding to the signal segment is obtained, and then the first signal corresponding to the signal frequency boundary is obtained, and the first signal feature of the first signal is obtained. The signal segment and the corresponding first signal feature are compared to obtain the difference between the two. If the difference is less than the preset requirement, the signal segment is considered to be the second signal corresponding to the first signal, and the signal segment feature of the signal segment is the second signal feature of the second signal. The second signal features of all second signals are used as the second features.
[0053] In other implementation scenarios, the signal types of the first signal feature and the second signal feature include power signals and frequency signals. The power feature and frequency feature of the signal segment are compared with the corresponding power feature and frequency feature. If the difference in the frequency features and the difference in the power features of the two can meet the preset requirements, the signal segment can be identified as the second signal corresponding to the first signal. If at least one of the differences in the frequency features and the power features of the two cannot meet the preset requirements, it is considered that there is no corresponding second signal for the first signal. It is inferred that a large error may have occurred during the data collection process, and claims S102-S103 can be re-executed.
[0054] S104: Acquire a feature difference between the first feature and the second feature, and modify calibration data of the light detection system based on the feature difference.
[0055] In a specific implementation scenario, the feature difference between the first feature and the second feature is obtained. If the feature difference is less than the first preset standard, it can be considered that the current calibration data has not changed significantly, and the calibration data can be left unchanged. The number of modifications to the calibration data can be reduced, unnecessary intervention and adjustment can be reduced, and the stability and consistency of the detection data can be maintained, which is convenient for subsequent data analysis. If the feature difference exceeds the second preset standard, it can be considered that the difference is too large, and a large deviation may occur when collecting data, and steps S102-S104 are re-executed. When the feature difference meets the preset requirements, it indicates that the calibration data has changed significantly, and the calibration data can be modified according to the feature difference to ensure the accuracy and reliability of the detection results of the optical signal detection system.
[0056] Specifically, the correspondence between the calibrated central wavelength and the feature can be obtained, the change in the calibration data can be obtained based on the correspondence and the specific value of the feature difference, and the central wavelength can be modified according to the change. For example, the change in the calibration data of the detection system can be estimated by using an interpolation method based on the specific value of the feature difference. Interpolation is a mathematical technique used to estimate the value of an unknown data point between known data points. Common interpolation methods include linear interpolation, polynomial interpolation (such as Lagrange interpolation or Newton interpolation), spline interpolation, etc.
[0057] In one implementation scenario, the first feature and the second feature include a frequency feature and a power feature, and when the power feature difference does not exceed a difference standard, the change in calibration data is obtained based on the difference between the frequency features. Specifically, the frequency features and power features of all pairs of first signals and second signals are compared, and when the difference in the power features of each pair of first signals and second signals does not exceed a preset standard, the frequency feature difference value of each pair of first signals and second signals is obtained, and these frequency feature difference values are fitted to obtain the offset slope in frequency, and the offset of the center wavelength is obtained based on the offset slope and the corresponding relationship between the frequency and the wavelength, and the change in calibration data is obtained according to the offset of the center wavelength, for example, the offset can be directly used as the change.
[0058] It can be seen from the above description that in this embodiment, the difference between the signal characteristics of the first signal group and the second signal group in different periods is compared based on the spectral scanning data obtained in two adjacent periods. The characteristic difference reflects the change of the calibration data. The calibration data of the optical detection system is modified based on the characteristic difference, which can make the calibration data modified in time when the calibration data changes. Such an adaptive calibration method helps the optical detection system to maintain accuracy under any conditions and improve the accuracy and reliability of the output results.
[0059] Please refer to Figure 2 , Figure 2The optical signal detection system 10 includes: a collection module 11 , a current module 12 , an acquisition module 13 , and a modification module 14 .
[0060] The acquisition module 11 is used to collect the spectral scanning data of the optical detection system according to a preset period. The current module 12 is used to obtain the first signal group of the spectral scanning data in the current period, and obtain the first feature and boundary frequency range of the first signal group. The acquisition module 13 is used to obtain the second signal group corresponding to each first signal group based on the boundary frequency range in the spectral scanning data in the next period, and obtain the second feature of the second signal group. The modification module 14 is used to obtain the feature difference between the first feature and the second feature, and modify the calibration data of the optical detection system based on the feature difference.
[0061] The first signal group includes at least one first signal, and the second signal group includes at least one second signal; the acquisition module 11 is also used to obtain at least one signal peak in the spectral scanning data, each signal peak corresponds to a first signal; obtain the signal frequency boundary corresponding to each signal peak, and use all signal frequency boundaries as the boundary frequency range.
[0062] The first feature includes the first signal feature of each first signal, and the second feature includes the second signal feature of each second signal; the acquisition module 13 is used to divide the spectral scanning data in the next period according to the signal frequency boundary to obtain at least one signal segment; obtain the signal segment feature of the signal segment, and compare the signal segment feature with the first signal feature of the corresponding first signal. If the difference between the two is less than the preset requirement, it is considered that the signal segment is the second signal corresponding to the first signal, and the signal segment feature is the second signal feature.
[0063] Types of the first signal feature and the second signal feature include frequency features and power features.
[0064] The acquisition module 13 is further configured to determine that there is no second signal corresponding to the first signal when the difference between the two exceeds a preset requirement.
[0065] The modification module 14 is further used to obtain the variation of each pair of the first signal and the second signal in the frequency characteristics, and perform fitting based on the variation to obtain the wavelength compensation value.
[0066] The acquisition module 11 is also used to perform fixed-window smoothing processing on the spectral scanning data.
[0067] It can be seen from the above description that in this embodiment, the difference between the signal characteristics of the first signal group and the second signal group in different periods is compared based on the spectral scanning data obtained in two adjacent periods. The characteristic difference reflects the change of the calibration data. The calibration data of the optical detection system is modified based on the characteristic difference, which can make the calibration data modified in time when the calibration data changes. Such an adaptive calibration method helps the optical detection system to maintain accuracy under any conditions and improve the accuracy and reliability of the output results.
[0068] The present invention also provides a detection device. The detection device includes a processor and a memory. The processor is coupled to the memory. A computer program is stored in the memory, and the processor executes the computer program when working to implement the above method. The detailed steps can be found above and will not be repeated here.
[0069] The present invention also provides a computer-readable storage medium. The computer-readable storage medium stores at least one computer program, which is used to be executed by a processor to implement the above method. The detailed steps can be referred to above and will not be repeated here. In one embodiment, the computer-readable storage medium can be a storage chip, a hard disk, or a mobile hard disk or a USB flash drive, an optical disk, or other readable and writable storage tools in a terminal, or a server, etc.
[0070] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0071] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0072] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some of the technical features therein can be replaced by equivalents; and all these modifications and replacements should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A compensation method for an optical signal detection system, characterized in that: The compensation method of the optical detection system comprises: Collect spectral scanning data according to a preset period; Acquire a first signal group of the spectrum scanning data in a current period, and acquire a first feature and a boundary frequency range of the first signal group; In the spectrum scanning data in the next cycle, based on the boundary frequency range and the first feature, a second signal group corresponding to each of the first signal groups is obtained, and a second feature of the second signal group is obtained; A feature difference between the first feature and the second feature is obtained, and calibration data of the light detection system is modified based on the feature difference.
2. The compensation method of the optical signal detection system according to claim 1, characterized in that: The first signal group includes at least one first signal, and the second signal group includes at least one second signal; The step of obtaining the first characteristic and the boundary frequency range of the first signal group includes: Acquire at least one signal peak value in the spectrum scanning data, each of the signal peak values corresponding to one of the first signals; The signal frequency boundary corresponding to each of the signal peaks is obtained, and all of the signal frequency boundaries are used as the boundary frequency range.
3. The compensation method of the optical signal detection system according to claim 2, characterized in that: The first characteristic comprises a first signal characteristic of each of the first signals, and the second characteristic comprises a second signal characteristic of each of the second signals; The step of acquiring the second signal group corresponding to each of the first signal groups based on the boundary frequency range comprises: Dividing the spectrum scanning data in the next period according to the signal frequency boundary to obtain at least one signal segment; Obtain a signal segment feature of the signal segment, and compare the signal segment feature with the first signal feature of the corresponding first signal. If the difference between the two is less than a preset requirement, it is considered that the signal segment is the second signal corresponding to the first signal, and the signal segment feature is the second signal feature.
4. The compensation method of the optical signal detection system according to claim 3, characterized in that: Types of the first signal feature and the second signal feature include frequency features and power features.
5. The compensation method of the optical signal detection system according to claim 3, characterized in that: The step of modifying the calibration data of the light detection system based on the characteristic difference comprises: The variation of each pair of the first signal and the second signal in the frequency characteristic is obtained, and fitting is performed based on the variation to obtain a wavelength compensation value.
6. The compensation method of the optical signal detection system according to claim 3, characterized in that: After the step of comparing the signal segment feature with the first signal feature of the corresponding first signal, the method further comprises: When the difference between the two exceeds the preset requirement, it is considered that there is no second signal corresponding to the first signal.
7. The compensation method of the optical signal detection system according to any one of claims 1 to 6, characterized in that: After the step of collecting the spectrum scanning data of the light detection system according to a preset period, the method further comprises: The spectrum scanning data is subjected to fixed window smoothing processing.
8. An optical signal detection system, characterized in that: include: An acquisition module, used for acquiring spectral scanning data of the light detection system according to a preset period; The current module is used to obtain a first signal group of the spectrum scanning data in a current period, and obtain a first feature and a boundary frequency range of the first signal group; an acquisition module, configured to acquire, in the spectrum scanning data in the next cycle, a second signal group corresponding to each of the first signal groups based on the boundary frequency range, and acquire a second feature of the second signal group; The modification module is used to obtain a feature difference between the first feature and the second feature, and modify the calibration data of the light detection system based on the feature difference.
9. A computer-readable storage medium, characterized in that: A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.
10. A detection device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Spectrum correction method and device
CN118500545A
Optical spectrum analyzer and wavelength calibration control method
JP7136959B1
Methods and assemblies for determining and using standardized spectral responses for calibration of spectroscopic analyzers
US20220268694A1