An optical signal detection system and a compensation method thereof, a detection device and a storage medium
By adaptively modifying the calibration data in the optical signal detection system, the accuracy and reliability issues of the system during long-term operation or when periodic calibration is not possible are resolved, ensuring high-precision output of the system under any conditions.
Patent Information
- Application Number
- CN202411991335.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-12-09
- Estimated Expiration
- 2044-12-30
AI Technical Summary
Existing optical signal detection systems experience a decline in the reliability and accuracy of their outputs when operating for extended periods or when periodic calibration is not possible.
By acquiring spectral scanning data within a preset period, the characteristics and boundary frequency range of the signal group are obtained. The differences in signal group characteristics between adjacent periods are compared, and the calibration data is adaptively modified to maintain the accuracy of the system.
It achieves the goal of maintaining the accuracy and reliability of the optical signal detection system under any conditions, and improves the precision of the output results.
Smart Images

Figure CN119756583B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of optical signal detection, and in particular to an optical signal detection system, a compensation method thereof, a detection device and a storage medium. BACKGROUND
[0002] The detection results of an optical signal detection system usually rely on initial wavelength calibration data, according to which the detected optical signals can be converted into actual distances or events. However, in actual applications, the calibration data will change over time and with the continuous operation of the system due to 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, standard light sources are usually used for calibration at regular intervals to correct the calibration data and ensure that the output results of the optical signal detection system are accurate. However, in some cases, calibration may not be performed at regular intervals, or the system needs to work continuously for a long time and cannot be shut down for calibration, so the reliability and accuracy of the output of the optical signal detection system will decrease. SUMMARY
[0004] The technical problem to be solved by the embodiments of the present application is to provide an optical signal detection system, 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 will decrease in the prior art.
[0005] The present application discloses a compensation method of an optical signal detection system, which comprises:
[0006] acquiring spectral scanning data at a preset period;
[0007] acquiring a first signal group of the spectral scanning data in a current period, acquiring a first feature and a boundary frequency range of the first signal group;
[0008] In the spectral scanning data in the next period, based on the boundary frequency range and the first feature, a second signal group corresponding to each of the first signal groups is acquired, and a second feature of the second signal group is acquired.
[0009] acquiring a feature difference between the first feature and the second feature, and modifying the calibration data of the optical signal detection system based on the feature difference.
[0010] Optionally, the first signal group comprises at least one first signal, and the second signal group comprises at least one second signal.
[0011] The step of acquiring the first feature and the boundary frequency range of the first signal group comprises:
[0012] Acquiring at least one signal peak in the spectrum scanning data, each of the signal peaks corresponding to one of the first signals;
[0013] Acquiring a signal frequency boundary corresponding to each of the signal peaks, and taking all of the signal frequency boundaries as the boundary frequency range.
[0014] Optionally, the first feature comprises a first signal feature of each of the first signals, and the second feature comprises 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 spectrum scanning data in a next period according to the signal frequency boundary, and acquiring at least one signal segment;
[0017] Acquiring a signal segment feature of the signal segment, comparing the signal segment feature with a first signal feature of a corresponding first signal, and regarding the signal segment as a second signal corresponding to the first signal if a difference between the two is less than a preset requirement, wherein the signal segment feature is the second signal feature.
[0018] Optionally, the types of the first signal feature and the second signal feature comprise frequency features and power features.
[0019] Optionally, the step of modifying the calibration data of the optical signal detection system based on the feature difference comprises:
[0020] Acquiring a variation amount of each pair of first signal and second signal in the frequency feature, fitting based on the variation amount, and acquiring a wavelength compensation value.
[0021] Optionally, the step of comparing the signal segment feature with the first signal feature of the corresponding first signal comprises:
[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 acquiring the spectrum scanning data of the optical signal detection system according to a preset period, the method further comprises:
[0024] Performing fixed window smoothing processing on the spectrum scanning data.
[0025] The application further discloses an optical signal detection system, comprising:
[0026] The acquisition module is configured to acquire spectrum scanning data of the optical signal detection system according to a preset period.
[0027] The current module is configured to acquire a first signal group of the spectrum scanning data in a current period, acquire a first feature of the first signal group, and acquire a boundary frequency range.
[0028] The acquisition module is configured to acquire, in spectrum scanning data in a next period, 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 configured to acquire a feature difference between the first feature and the second feature, and modify calibration data of the optical signal detection system based on the feature difference.
[0030] The present application also discloses a computer readable storage medium storing a computer program, which is executed by a processor to make the processor execute the steps of the method.
[0031] The present application also discloses a detection device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to make the processor execute the steps of the method.
[0032] Compared with the prior art, the compensation method for the optical signal detection system provided by the embodiment of the present application has the beneficial effects that the feature difference between the signal features of the first signal group and the second signal group in different periods is obtained based on the spectrum scanning data acquired in two adjacent periods, the feature difference reflects the change of the calibration data, the calibration data of the optical signal detection system is modified based on the feature difference, the calibration data can be modified in time when the calibration data changes, and the adaptive calibration method helps the optical signal detection system to maintain accuracy under any condition and improves the accuracy and reliability of the output result. BRIEF DESCRIPTION OF DRAWINGS
[0033] The scheme of the present application will be further described in detail below with reference to the drawings and embodiments, and the drawings are as follows:
[0034] Figure 1 is a flowchart of a first embodiment of the compensation method for the optical signal detection system provided by the present application;
[0035] Figure 2 is a structural schematic diagram of an embodiment of the optical signal detection system provided by the present application.
[0036] In the drawings, various reference signs are as follows:
[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 the embodiments in the present application and the features in the embodiments can be combined with each other without conflict. Now, the preferred embodiments of the present application will be described in detail with reference to the drawings.
[0039] Please refer to Figure 1 , Figure 1 is a flowchart of the first embodiment of the compensation method of the optical signal detection system provided by the present application. The compensation method of the optical signal detection system provided by the present application includes the following steps:
[0040] S101: Collecting 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 multiple wavelengths of optical signals. When the optical signal detection system outputs the scanning optical signal, the scanning optical signal can be collected to obtain spectral scanning data, and the spectral scanning data includes information of the multiple optical signals.
[0042] In other implementation scenarios, after the spectral scanning data is obtained, a fixed window smoothing process is performed. Through the fixed window smoothing process, the noise in the spectral scanning data can be effectively reduced, and the data is more smooth and easy 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 loss of signal details, while a smaller window can retain more details, but may not effectively reduce noise. A suitable window function is selected for weighted processing of the data. Common window functions include rectangular window, Hamming window, Hanning window, etc. The selection of the window function will affect the smoothing effect and spectral characteristics, and needs to be adjusted according to the actual situation. The selected window function is applied to the spectral scanning data, and the data is smoothed through moving window averaging. Specifically, for each data point in the spectral scanning data, the data points within the window range are taken, and their weighted average value is calculated as the smoothed data point value. The window is continuously slid and the process is repeated until the entire spectral scanning data is processed.
[0043] In other implementation scenarios, the spectral scanning data can also be preprocessed by at least one of moving average, exponentially weighted moving average, wavelet transform, Kalman filtering, and local regression smoothing.
[0044] S102: Obtain a first signal group of the spectral scanning data in the current period, obtain a first feature of the first signal group and a boundary frequency range.
[0045] In a specific implementation scenario, when the optical signal detection system outputs a scanning optical signal, spectral scanning data is collected and analyzed to obtain all the optical signals of all wavelengths included in the current scanning optical signal as the first signals, and all the first signals are taken as the first signal group. The first feature of the first signal group and the boundary frequency range are obtained.
[0046] Specifically, the spectral scanning data includes a scanning waveform with the frequency as the horizontal axis and the power as the vertical axis, and the scanning waveform contains energy information of various frequency components. At least one signal peak is obtained from the scanning waveform, and the signal peak represents a signal point with significant power. In order to accurately extract the signal peak, a preset screening criterion can be used, for example, the signal power needs to exceed a preset power threshold value, and / or the power difference with the adjacent signal needs to exceed a preset difference threshold value. Each first signal has a signal peak, and therefore each signal peak corresponds to a first signal. 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, thereby obtaining the first signal corresponding to each signal peak and obtaining the signal frequency boundary of each first signal. The sum of the signal frequency boundaries of all the 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 can include the power feature and the frequency feature obtained from the scanning waveform, which can be a power value, a frequency value, or a power range, a frequency range.
[0048] S103: In the spectral scanning data in the next period, a second signal group corresponding to each first signal group is obtained based on the boundary frequency range and the first feature, and a second feature of the second signal group is obtained.
[0049] In a specific implementation scenario, when the optical signal detection system outputs a scanning optical signal, spectral scanning data of the scanning optical signal is collected and analyzed. The next output can be adjacent to the current output, or the output can be separated by several times, and the specific interval can be set according to actual needs. For example, when the precision requirement is high, the optical signal detection system outputs a scanning optical signal each time.
[0050] Specifically, a scanning waveform with frequency as the horizontal axis and power as the vertical axis is acquired, the scanning waveform is divided according to the boundary frequency range of the first signal group, a corresponding waveform segment is acquired, a waveform feature of the waveform segment is acquired, such as a frequency feature, a waveform feature, a power feature, etc., and if the waveform feature matches the first feature 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 feature of the waveform segment is the second feature corresponding to the second signal group.
[0051] In other implementation scenarios, a signal frequency boundary corresponding to each first signal in the first signal group can be acquired, and at least one signal segment can be acquired by dividing the scanning waveform according to the signal frequency boundaries. In theory, the number of signal segments should be the same as the number of first signals, and if the number of signal segments is much smaller than the number of first signals, it indicates that a large error occurs in the data acquisition process, and the claims S102-S103 can be re-executed.
[0052] A signal segment feature of each signal segment is acquired, a signal frequency boundary corresponding to the signal segment is acquired, a first signal corresponding to the signal frequency boundary is acquired, a first signal feature of the first signal is acquired, the signal segment and the corresponding first signal feature are compared, a difference therebetween is acquired, and if the difference is less than a preset requirement, the signal segment is considered as a second signal corresponding to the first signal, and a signal segment feature of the signal segment is considered as a second signal feature of the second signal. The second signal features of all second signals are taken as the second feature.
[0053] In other implementation scenarios, the signal types of the first signal feature and the second signal feature include a power signal and a frequency signal. The power feature and the frequency feature of the signal segment are compared with the corresponding power feature and frequency feature. If the difference between the frequency features and the difference between the power features of the two can meet the preset requirement, the signal segment is considered as the second signal corresponding to the first signal. If at least one of the differences between the frequency features and the power features of the two cannot meet the preset requirement, it is considered that the first signal does not have a corresponding second signal. It is inferred that a large error may occur in the data acquisition process, and the claims S102-S103 can be re-executed.
[0054] S104: Acquire a feature difference between the first feature and the second feature, and modify the calibration data of the optical signal 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, and if the feature difference is less than a first preset standard, it can be considered that the current calibration data has not changed significantly, and the calibration data can not be modified, the number of modifications of 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, facilitating subsequent data analysis. If the feature difference exceeds a 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 requirement, 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 result of the optical signal detection system.
[0056] Specifically, the correspondence between the calibrated center wavelength and the features can be obtained, and the variation of the calibration data is obtained based on the correspondence and the specific value of the feature difference, and the center wavelength is modified according to the variation. For example, the variation of the detection system calibration data 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 frequency features and power features, and when the power feature difference does not exceed the difference standard, the variation of the 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 power feature difference of each pair of first signals and second signals does not exceed the preset standard, the frequency feature difference value of each pair of first signals and second signals is obtained, the frequency feature difference values are fitted to obtain a frequency offset slope, the offset amount of the center wavelength is obtained based on the offset slope and the correspondence between the frequency and the wavelength, and the variation of the calibration data is obtained according to the offset amount of the center wavelength, for example, the offset amount can be directly used as the variation.
[0058] As described above, in the present embodiment, the difference between the signal features of the first signal group and the second signal group in different periods is compared based on the spectrum scanning data obtained in two adjacent periods, the feature difference reflects the change of the calibration data, and the calibration data of the optical signal detection system is modified based on the feature difference, so that the calibration data can be modified in time when it changes. This adaptive calibration method helps the optical signal detection system to maintain accuracy under any conditions and improves the accuracy and reliability of the output result.
[0059] Please refer to Figure 2 , Figure 2is a structural schematic view of an embodiment of the optical signal detection system provided by the present application. The optical signal detection system 10 comprises a collection module 11, a current module 12, an acquisition module 13, and a modification module 14.
[0060] The collection module 11 is configured to collect spectral scanning data of the optical signal detection system according to a preset period. The current module 12 is configured to acquire a first signal group of the spectral scanning data in a current period, acquire a first feature of the first signal group, and acquire a boundary frequency range. The acquisition module 13 is configured to acquire, in spectral scanning data in a next period, a second signal group corresponding to each first signal group based on the boundary frequency range, and acquire a second feature of the second signal group. The modification module 14 is configured to acquire a feature difference between the first feature and the second feature, and modify calibration data of the optical signal detection system based on the feature difference.
[0061] The first signal group comprises at least one first signal, and the second signal group comprises at least one second signal. The collection module 11 is further configured to acquire at least one signal peak in the spectral scanning data, each signal peak corresponding to a first signal, acquire a signal frequency boundary corresponding to each signal peak, and take all the signal frequency boundaries as the boundary frequency range.
[0062] The first feature comprises a first signal feature of each first signal, and the second feature comprises a second signal feature of each second signal. The acquisition module 13 is configured to divide the spectral scanning data in the next period according to the signal frequency boundary, acquire at least one signal segment, acquire a signal segment feature of the signal segment, compare the signal segment feature with the first signal feature of the corresponding first signal, and if a difference between the two is less than a preset requirement, consider the signal segment as a second signal corresponding to the first signal, and consider the signal segment feature as the second signal feature.
[0063] The types of the first signal feature and the second signal feature include a frequency feature and a power feature.
[0064] The acquisition module 13 is further configured to, when the difference between the two exceeds the preset requirement, consider that there is no second signal corresponding to the first signal.
[0065] The modification module 14 is further configured to acquire a variation amount of each pair of first signal and second signal in the frequency feature, perform fitting based on the variation amount, and acquire a wavelength compensation value.
[0066] The collection module 11 is further configured to perform fixed window smoothing processing on the spectral scanning data.
[0067] It can be known from the above description that, in the embodiment, the feature difference between the signal features of the first signal group and the second signal group in different periods is obtained based on the spectrum scanning data acquired in two adjacent periods, the feature difference reflects the change of the calibration data, and the calibration data of the optical signal detection system is modified based on the feature difference, so that the calibration data can be modified in time when the calibration data changes, and the adaptive calibration method helps the optical signal detection system to maintain accuracy under any condition and improves the accuracy and reliability of the output result.
[0068] The application further provides a detection device. The detection device comprises a processor and a memory. The processor is coupled to the memory. The memory stores a computer program, and the processor executes the computer program to implement the method as above when working. The detailed steps can be referred to the above description and will not be described here.
[0069] The application further provides a computer readable storage medium. The computer readable storage medium stores at least one computer program, and the computer program is used to be executed by a processor to implement the method as above. The detailed steps can be referred to the above description and will not be described here. In an embodiment, the computer readable storage medium can be a storage chip in a terminal, a hard disk, or a mobile hard disk or an optical disk, or other readable and writable storage tools, and can also be 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 a computer program instructing related hardware. The program can be stored in a non-volatile computer readable storage medium, and when the program is executed, the processes of the above-mentioned embodiments can be included. Any reference to memory, storage, database or other medium used in the embodiments provided by the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), 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), etc.
[0071] Any technical features in the above embodiments can be combined, and for the sake of brevity, not all possible combinations are described above, and it is understood that the scope of the present disclosure encompasses all possible combinations.
[0072] It should be understood that the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them. For those skilled in the art, the technical solutions described in the above embodiments can be modified, or some technical features can be replaced by equivalent; all these modifications and replacements shall fall within the protection scope of the present application.
Claims
1. A method of compensating an optical signal detection system, characterized by, The compensation method of the optical signal detection system comprises: acquiring the optical signals of all wavelengths of the spectral scanning data in the current period as first signals, taking all the first signals as a first signal group, obtaining the signal frequency boundary of the signal peak corresponding to each first signal according to a preset division standard, and obtaining the first signal feature of each first signal as the first feature of the first signal group; in the spectral scanning data in the next period, dividing the spectral scanning data in the next period according to each signal frequency boundary, obtaining at least one signal segment, obtaining the signal segment feature of the signal segment, comparing the signal segment feature with the first signal feature of the corresponding first signal, and if the difference between the two is less than a preset requirement, considering that the signal segment is a second signal corresponding to the first signal, the signal segment feature being a second signal feature; taking all the second signals as a second signal group, and taking all the signal segment features as the second feature of the second signal group; obtaining the feature difference between the first feature and the second feature, and modifying the calibration data of the optical signal detection system based on the feature difference. The types of the first signal feature and the second signal feature include frequency features and power features.
2. The compensation method of an optical signal detection system according to claim 1, characterized in that, The step of modifying the calibration data of the optical signal detection system based on the feature difference comprises:
3. The compensation method of an optical signal detection system according to claim 2, wherein, obtaining the variation of each pair of first signal and second signal in the frequency feature, fitting based on the variation, and obtaining a wavelength compensation value. After the step of comparing the signal segment feature with the first signal feature of the corresponding first signal, the method further comprises:
4. The compensation method of an optical signal detection system according to claim 1, wherein, if the difference between the two exceeds the preset requirement, considering that there is no second signal corresponding to the first signal. After the step of acquiring the optical signals of all wavelengths of the spectral scanning data in the current period as first signals, the method further comprises:
5. The method of claim 1-4, wherein, performing fixed window smoothing processing on the spectral scanning data. The method comprises:
6. An optical signal detection system, characterized by a collection module, configured to acquire the spectral scanning data of the optical signal detection system according to a preset period; a current module, configured to acquire the optical signals of all wavelengths of the spectral scanning data in the current period as first signals, take all the first signals as a first signal group, obtain the signal frequency boundary of the signal peak corresponding to each first signal according to a preset division standard, and obtain the first signal feature of each first signal as the first feature of the first signal group; a collection module, configured to acquire the spectral scanning data of the optical signal detection system according to a preset period; a current module, configured to acquire the optical signals of all wavelengths of the spectral scanning data in the current period as first signals, take all the first signals as a first signal group, obtain the signal frequency boundary of the signal peak corresponding to each first signal according to a preset division standard, and obtain the first signal feature of each first signal as the first feature of the first signal group; A modifying module is configured to obtain a feature difference between the first feature and the second feature, and modify calibration data of the optical signal detection system based on the feature difference.
7. A computer readable storage medium characterized in that, A computer program is stored in the memory and is executed by the processor to cause the processor to perform the steps of the method according to any one of claims 1 to 5.
8. A detection device, characterized in that A device comprises a memory and a processor, wherein the memory stores a computer program, and the computer program is executed by the processor to cause the processor to perform the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Spectrum correction method and device
CN118500545A
Optical spectrum analyzer and wavelength calibration control method
JP7136959B1