Method, device, medium and system for obtaining stable spectrum with high signal-to-noise ratio
By adjusting the integral time and cyclic sampling technology, the problem of poor signal-to-noise ratio and repetition of near-infrared spectral acquisition is solved, and efficient and low-cost spectral acquisition is achieved, which is suitable for solid samples, improving the performance and cost-effectiveness of the acquisition equipment.
Patent Information
- Application Number
- CN202411328528.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-24
AI Technical Summary
The prior art is difficult to ensure high signal-to-noise ratio and spectral repeatability at the same time in the near-infrared spectrum acquisition, and the cost is high. Conventional methods such as constant temperature of the system, increasing the luminous flux, using high-performance sensors or extending the exposure time will lead to stable system. Poor performance, high cost or data distortion.
By obtaining the initial standard integral time sent by the upper computer communicating with the spectral acquisition device, spectral sampling is performed based on the stationary sample, the integration time is adjusted to determine the updated integration time, and the sampling is cycled until the preset number is reached, forming a sub-sample, which is used to improve Spectral signal-to-noise ratio and consistency.
It improves the spectral signal-to-noise ratio and consistency, reduces R&D costs, improves acquisition efficiency, and obtains high signal-to-noise ratio spectral results with good repeatability in model prediction.
Smart Images

Figure CN119164908A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to a method, device, medium and system for obtaining a stable high signal-to-noise ratio spectrum, and belongs to the technical field of spectrum acquisition. Background Art
[0002] At present, in various industries involving near-infrared spectroscopy, there are some conventional methods to ensure that the collected spectra have a high signal-to-noise ratio and good repeatability. The specific methods include the following.
[0003] 1. Improve the light source input and perform system constant temperature treatment: While the signal-to-noise ratio is high, there is a system temperature rise. Performing constant temperature treatment improves acquisition repeatability. However, the system constant temperature risk increases and the cost increases significantly;
[0004] 2. Increase the light flux of the optical system: As the signal-to-noise ratio increases, the optical resolution will deteriorate, and it is impossible to take both into account at the same time;
[0005] 3. Anti-reflection coating of optical and sensor components: effectively improves the signal-to-noise ratio, but the coating cost is too high, and the coating consistency is uneven, and the system has stability deviation;
[0006] 4. Choose sensors with higher responsiveness: The cost is higher, and most high-performance detectors are imported devices, with long delivery cycles and huge R&D costs;
[0007] 5. Increase the exposure time of the sensor: Selecting a high-bit AD chip can prolong the exposure time to obtain more spectra, and average the spectra multiple times to obtain spectra with higher signal-to-noise ratio and better repeatability. However, as a high-performance imported device, the cost is relatively high. And at a higher exposure time, the detector will have nonlinear problems, resulting in data distortion. Summary of the invention
[0008] The present application provides a method, device, medium and system for obtaining a stable high signal-to-noise ratio spectrum. The spectrum acquisition is processed according to the near-infrared detection material, which can solve the problems of poor repeatability of model prediction results and poor spectral repeatability caused by too low spectral signal-to-noise ratio, as well as extremely high costs and extremely low efficiency in the research and development process. The present application provides the following technical solutions:
[0009] In a first aspect, a method for obtaining a stable high signal-to-noise ratio spectrum is provided, which is used in a spectrum acquisition device, and the method comprises:
[0010] Obtaining an initialization standard integration time sent by a host computer that is communicatively connected to the spectrum acquisition device;
[0011] Based on the initialization standard integration time, spectrally sampling the stationary sample to obtain a first sample spectrum;
[0012] The first sample spectrum is sent to the host computer, so that the host computer determines the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialized standard integration time, an updated integration time used in the next sampling is determined;
[0013] Obtaining the updated integration time generated by the host computer;
[0014] Based on the updated integration time, the stationary sample is sampled again to obtain a second sample spectrum; the first sample spectrum and the second sample spectrum are taken as a sub-sample;
[0015] When the number of the sub-samples does not reach the preset number, the step of obtaining the initialization standard integration time sent by the host computer connected to the spectrum acquisition device and subsequent steps are triggered to obtain a spectrum corresponding to each sub-sample.
[0016] Optionally, the method further comprises:
[0017] When the number of the sub-samples reaches the preset number, the spectrum corresponding to each sub-sample is predicted based on the pre-created spectrum prediction model to obtain the spectrum measurement value corresponding to each sub-sample;
[0018] Based on the spectral measurement values corresponding to each sub-sample, the spectral measurement value of the sample is determined.
[0019] Optionally, determining the spectral measurement value of the sample based on the spectral measurement values corresponding to each sub-sample includes:
[0020] The average value of the spectral measurement values corresponding to each sub-sample is determined to obtain the spectral measurement value.
[0021] In a second aspect, a method for obtaining a stable high signal-to-noise ratio spectrum is provided, which is used in a host computer, and the method comprises:
[0022] When a spectrum acquisition device connected to the host computer for communication acquires each sub-sample, an initialization standard integration time corresponding to the sub-sample is sent to the spectrum acquisition device;
[0023] Acquire a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time;
[0024] determining a sample energy based on the first sample spectrum;
[0025] Determining an updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time;
[0026] The updated integration time is sent to the spectrum acquisition device, so that the spectrum acquisition device re-samples the static sample based on the updated integration time to obtain a second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a sub-sample.
[0027] Optionally, the updated integration time used in the next sampling is determined based on the sample energy, the preset standard energy, and the initialized standard integration time, which is expressed by the following formula:
[0028] (Sample energy / standard energy)*initialize standard integration time.
[0029] Optionally, the method further comprises:
[0030] Determining whether the sample energy exceeds a preset energy range;
[0031] If the sample energy exceeds the preset energy range, the step of determining the updated integration time used for the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time is triggered.
[0032] Optionally, before sending the initialized standard integration time corresponding to the sub-sample to the spectrum acquisition device, the method further includes:
[0033] If the sub-sample is the first sub-sample of the sample, generating an initialization standard integration time corresponding to the first sub-sample based on the instrument characteristics of the spectrum acquisition device and the sample properties of the sample;
[0034] or,
[0035] If the sub-sample is a sub-sample after the first sub-sample, the updated integration time of the previous sub-sample is determined as the initialization standard integration time.
[0036] In a third aspect, a device for obtaining a stable high signal-to-noise ratio spectrum is provided, the device comprising a processor and a memory; a program is stored in the memory, and the program is loaded and executed by the processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum described in the first aspect or the second aspect.
[0037] In a fourth aspect, a computer-readable storage medium is provided, wherein a program is stored in the storage medium, and the program is loaded and executed by the processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum as described in the first aspect or the second aspect.
[0038] In a fifth aspect, a system for obtaining a stable high signal-to-noise ratio spectrum is provided, the system comprising: a spectrum acquisition device and a host computer communicatively connected to the spectrum acquisition device;
[0039] The host computer is used to send the initialization standard integration time corresponding to each sub-sample to the spectrum acquisition device which is communicatively connected to the host computer when the spectrum acquisition device acquires each sub-sample;
[0040] The spectrum acquisition device is used to obtain the initialization standard integration time sent by the host computer that is communicatively connected to the spectrum acquisition device; based on the initialization standard integration time, perform spectral sampling on the static sample to obtain a first sample spectrum; send the first sample spectrum to the host computer so that the host computer determines the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialization standard integration time, determine the updated integration time used for the next sampling;
[0041] The host computer is further used to obtain a first sample spectrum collected by the spectrum acquisition device based on the initialization standard integration time; determine a sample energy based on the first sample spectrum; determine an updated integration time to be used for next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time; send the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device can re-sample the stationary sample based on the updated integration time to obtain a second sample spectrum; and use the first sample spectrum and the second sample spectrum as a sub-sample;
[0042] The spectral acquisition device is used to obtain the updated integration time generated by the host computer; based on the updated integration time, re-sample the static sample to obtain a second sample spectrum; use the first sample spectrum and the second sample spectrum as a sub-sample; when the number of the sub-samples does not reach a preset number, trigger the execution of the step of obtaining the initialization standard integration time sent by the host computer and subsequent steps to obtain a spectrum corresponding to each sub-sample.
[0043] The beneficial effects of the present application are: by obtaining the initialization standard integration time sent by the host computer connected to the spectrum acquisition device for communication; based on the initialization standard integration time, spectrally sampling the static sample to obtain the first sample spectrum; sending the first sample spectrum to the host computer for the host computer to determine the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialization standard integration time, determining the updated integration time used for the next sampling; obtaining the updated integration time generated by the host computer; based on the updated integration time, re-sampling the static sample to obtain the second sample spectrum; taking the first sample spectrum and the second sample spectrum as a sub-sample; when the number of sub-samples does not reach the preset number, triggering the execution of the step of obtaining the initialization standard integration time sent by the host computer connected to the spectrum acquisition device for communication and subsequent steps, and obtaining a spectrum corresponding to each sub-sample; it can solve the problems of poor repeatability of model prediction results and poor spectral repeatability caused by too low spectral signal-to-noise ratio, as well as extremely high cost and extremely low efficiency in the research and development process; by correcting the spectral signal-to-noise ratio at different integration times, the spectral signal-to-noise ratio and spectral consistency can be improved. In addition, in the quantitative analysis of the model, the repeatability of the predicted results of multiple spectra with high signal-to-noise ratios is also very good. For solid sampling, the signal-to-noise ratio of the collected spectra is kept high and consistent, and the repeatability of the results of repeated measurements of the samples will also be very good.
[0044] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present application in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a schematic diagram of the structure of a system for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of a spectrum obtained by a traditional spectrum acquisition method provided in one embodiment of the present application;
[0047] Figure 3 is a schematic diagram of a spectrum obtained by a traditional spectrum acquisition method provided by another embodiment of the present application;
[0048] Figure 4 is a flow chart of a method for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application;
[0049] Figure 5 is a schematic diagram of a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application;
[0050] Figure 6 is a flow chart of a method for obtaining a stable high signal-to-noise ratio spectrum provided by another embodiment of the present application;
[0051] Figure 7 is a flow chart of a method for obtaining a stable high signal-to-noise ratio spectrum provided by another embodiment of the present application;
[0052] Figure 8 is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application;
[0053] Fig. 9 is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by another embodiment of the present application;
[0054] Fig.10 This is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by yet another embodiment of the present application. DETAILED DESCRIPTION
[0055] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application but are not intended to limit the scope of the present application.
[0056] Figure 1 FIG. 1 is a schematic diagram of a system for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application. Figure 1 As shown, the system at least includes: a spectrum acquisition device 110 and a host computer 120 communicatively connected to the spectrum acquisition device.
[0057] When light passes through a sample, the sample absorbs, scatters or reflects light of different wavelengths. The spectrum acquisition device 110 is used to detect the wavelength and intensity changes of light passing through the sample and generate a spectrum of the sample.
[0058] In traditional spectral acquisition equipment, the sample is usually kept static during the sample collection process. However, since the conventional (whether liquid or solid) sample collection method includes a certain number of sub-sampling times (automatic or manual repeated sampling times), that is, multiple collections are averaged to obtain the final result. However, the state of the sample is different each time it is collected, which will cause the signal-to-noise ratio of the sample spectrum to be inconsistent each time. For details, please refer to Figure 2 The spectrum with poor signal-to-noise ratio is shown in Figure 1. The spectrum with poor signal-to-noise ratio also has very poor repeatability. Figure 3 The spectrum shown has a poor signal-to-noise ratio. Correspondingly, the repeatability of the results after the spectrum is predicted by the model is also poor. Usually, the collected spectrum is also averaged multiple times, that is, multiple spectra are averaged into one, to improve the signal-to-noise ratio, but increasing the average will cause the collection time to be too long, affecting the collection progress and poor user experience.
[0059] This embodiment provides the following method to obtain a spectrum with high signal-to-noise ratio and relatively consistent, Figure 4 , the method specifically includes the following steps:
[0060] Step 401 : when the spectrum acquisition device acquires each sub-sample, the host computer sends the initialized standard integration time corresponding to the sub-sample to the spectrum acquisition device.
[0061] Optionally, when receiving a sub-sample acquisition request from the spectrum acquisition device, the host computer sends the initialization standard integration time corresponding to the sub-sample to the spectrum acquisition device. In other embodiments, the host computer may also send the waiting time after the updated integration time below, and when the updated integration time is reached, send the initialization standard integration time corresponding to the next sub-sample. This embodiment does not limit the triggering method of the host computer sending the initialization standard integration time.
[0062] The standard integration time refers to the reference integration time preset according to the instrument characteristics of the spectrometer and the properties of the sample in order to achieve a certain signal-to-noise ratio and detection sensitivity during the spectrum acquisition process. In this embodiment, the initialization standard integration time refers to the standard integration time when the first sample spectrum of the sub-sample, i.e., the first sample spectrum, is acquired.
[0063] Wherein, a sub-sample refers to a group of independent spectrum acquisitions performed according to a specific integration time and number of repetitions during the spectrum acquisition process. In this embodiment, each sub-sample consists of two independently acquired spectra, which can reduce the signal-to-noise ratio difference caused by changes in sample state and improve the consistency and reliability of spectral data.
[0064] Before the host computer sends the initialization standard integration time corresponding to the sub-sample to the spectrum acquisition device, the initialization standard integration time is obtained. Optionally, the initialization standard integration times corresponding to different sub-samples are the same or different. If the initialization standard integration times corresponding to different sub-samples are different, the initialization standard integration time is obtained, including: if the sub-sample is the first sub-sample of the sample, then based on the instrument characteristics of the spectrum acquisition device and the sample properties of the sample, the initialization standard integration time corresponding to the first sub-sample is generated; or, if the sub-sample is a sub-sample after the first sub-sample, the updated integration time of the previous sub-sample is determined as the initialization standard integration time.
[0065] In other embodiments, the initialization standard integration time may also be sent by other devices, or may be acquired by the host computer based on a human-computer interaction interface. This embodiment does not limit the method for acquiring the initialization standard integration time.
[0066] Step 402, the spectrum acquisition device obtains the initialization standard integration time sent by the host computer that is communicatively connected to the spectrum acquisition device; based on the initialization standard integration time, performs spectral sampling on the static sample to obtain a first sample spectrum; and sends the first sample spectrum to the host computer.
[0067] The first sample spectrum is used for the host computer to determine the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialized standard integration time, the updated integration time used in the next sampling is determined.
[0068] Step 403, the host computer obtains the first sample spectrum collected by the spectrum acquisition device based on the initialized standard integration time; determines the sample energy based on the first sample spectrum; determines the updated integration time used for the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time; and sends the updated integration time to the spectrum acquisition device.
[0069] The updated integration time is used for the spectrum acquisition device to resample the static sample based on the updated integration time to obtain a second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a sub-sample.
[0070] In one example, determining sample energy based on a first sample spectrum includes: integrating a spectrum curve within a specific wavelength range to obtain a total light intensity corresponding to the specific wavelength range; and converting the total light intensity into a corresponding energy value using a preset calibration curve.
[0071] In one example, based on the sample energy, the preset standard energy, and the initialized standard integration time, the updated integration time used in the next sampling is determined, which is expressed by the following formula:
[0072] (Sample energy / standard energy)*initialize standard integration time.
[0073] In this embodiment, the integration time is adjusted so that the energy corresponding to the collected second sample spectrum is close to the preset standard energy, thereby improving the signal-to-noise ratio and accuracy of the spectrum data.
[0074] Optionally, for sample energies that are not much different from the standard energy, there is no need to adjust the integration time. Based on this, the host computer can also determine whether the sample energy exceeds the preset energy range; if the sample energy exceeds the preset energy range, it triggers the execution of the step of determining the updated integration time used for the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time.
[0075] In step 404, the spectrum acquisition device obtains the updated integration time generated by the host computer; based on the updated integration time, the stationary sample is sampled again to obtain a second sample spectrum; the first sample spectrum and the second sample spectrum are taken as a sub-sample; when the number of sub-samples does not reach the preset number, step 401 is triggered to obtain a spectrum corresponding to each sub-sample.
[0076] For example, 10 sub-samples are equivalent to looping steps 401-404 10 times, collecting sample spectra twice in each loop, and finally outputting spectra of the number of sub-samples, i.e., 10 sub-samples correspond to 10 spectra.
[0077] Between the two acquisitions of each sub-sample, the integration time can be adjusted according to the results of the first acquisition to optimize the signal-to-noise ratio of the second acquisition. Thus, the integration time can be dynamically adjusted according to the actual energy level of the sample to ensure the signal-to-noise ratio while improving the acquisition efficiency. Figure 5 Each sub-sample shown corresponds to a spectrum, according to Figure 5 It can be seen that the repeatability and signal-to-noise ratio of this spectrum are better than Figure 2 and Figure 3 .
[0078] Optionally, refer to Figure 4 , step 405, when the number of sub-samples reaches a preset number, the spectral acquisition device predicts the spectrum corresponding to each sub-sample based on the pre-created spectral prediction model to obtain the spectral measurement value corresponding to each sub-sample; based on the spectral measurement values corresponding to each sub-sample, the spectral measurement value of the sample is determined.
[0079] In one example, determining the spectral measurement value of the sample based on the spectral measurement values corresponding to each sub-sample includes: determining an average value of the spectral measurement values corresponding to each sub-sample to obtain the spectral measurement value.
[0080] For example, the preset number is 10, 10 sub-samples correspond to 10 spectra, and the model prediction is performed through 10 spectra, that is, 10 spectral measurement values are obtained. The spectral measurement values are averaged, and finally 1 spectral measurement value is output, that is, the spectral measurement value of the sample.
[0081] Optionally, the spectral prediction model may be a regression model, a random forest model, a support vector machine model, etc. This embodiment does not limit the implementation method of the spectral preset model.
[0082] Optionally, the spectral measurement value is determined based on a measurement requirement, and the spectral measurement value may be the concentration, purity, absorption coefficient, etc. of the sample. This embodiment does not limit the implementation method of the spectral measurement value.
[0083] In summary, the system for obtaining a stable high signal-to-noise ratio spectrum provided in the present embodiment obtains the initialization standard integration time sent by the host computer connected to the spectrum acquisition device for communication; based on the initialization standard integration time, spectrally samples the static sample to obtain a first sample spectrum; sends the first sample spectrum to the host computer for the host computer to determine the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialization standard integration time, determines the updated integration time used for the next sampling; obtains the updated integration time generated by the host computer; based on the updated integration time, samples the static sample again to obtain a second sample spectrum; uses the first sample spectrum and the second sample spectrum as a sub-sample; when the number of sub-samples does not reach the preset number, triggers the execution of the step of obtaining the initialization standard integration time sent by the host computer connected to the spectrum acquisition device for communication and subsequent steps, and obtains a spectrum corresponding to each sub-sample; can solve the problems of poor repeatability of model prediction results and poor spectral repeatability caused by too low spectral signal-to-noise ratio, as well as extremely high cost and extremely low efficiency in the research and development process; by correcting the spectral signal-to-noise ratio at different integration times, the spectral signal-to-noise ratio and spectral consistency can be improved. In addition, in the quantitative analysis of the model, the repeatability of the predicted results of multiple spectra with high signal-to-noise ratios is also very good. For solid sampling, the signal-to-noise ratio of the collected spectra is kept high and consistent, and the repeatability of the results of repeated measurements of the samples will also be very good.
[0084] At the same time, the signal-to-noise ratio and consistency of solid and liquid samples, especially solid samples (powders, granules, large particles, etc.) can be improved. It is applicable to all near-infrared industry analysis samples on the market and has universal applicability. It also greatly reduces the equipment acquisition time, improves equipment performance, and has low system integration costs and higher efficiency.
[0085] Figure 6 is a flow chart of a method for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application. This embodiment applies the method to Figure 1 In the system for obtaining a stable high signal-to-noise ratio spectrum shown in FIG. 1 , the execution subject of each step is the spectrum acquisition device 110 in the system as an example for explanation. The method includes at least the following steps:
[0086] Step 601, obtaining an initialization standard integration time sent by a host computer that is communicatively connected to the spectrum acquisition device;
[0087] Step 602, based on the initialization standard integration time, perform spectral sampling on the stationary sample to obtain a first sample spectrum;
[0088] Step 603, sending the first sample spectrum to the host computer, so that the host computer can determine the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialized standard integration time, determine the updated integration time used for the next sampling;
[0089] Step 604, obtaining the updated integration time generated by the host computer;
[0090] Step 605, based on the updated integration time, re-sample the stationary sample to obtain a second sample spectrum; the first sample spectrum and the second sample spectrum are taken as a sub-sample;
[0091] Step 606 , when the number of the sub-samples does not reach the preset number, trigger the execution of step 601 to obtain a spectrum corresponding to each sub-sample.
[0092] For details of this embodiment, please refer to the above system embodiment.
[0093] Figure 7 is a flow chart of a method for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application. This embodiment applies the method to Figure 1 The system for obtaining a stable high signal-to-noise ratio spectrum is shown in the figure, and the execution subject of each step is the host computer 120 in the system as an example for explanation. The method includes at least the following steps:
[0094] Step 701, when a spectrum acquisition device connected to the host computer for communication acquires each sub-sample, an initialization standard integration time corresponding to the sub-sample is sent to the spectrum acquisition device;
[0095] Step 702, obtaining a first sample spectrum collected by the spectrum collection device based on the initialization standard integration time;
[0096] Step 703, determining sample energy based on the first sample spectrum;
[0097] Step 704, determining an updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time;
[0098] Step 705, sending the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device re-samples the static sample based on the updated integration time to obtain a second sample spectrum; and taking the first sample spectrum and the second sample spectrum as a sub-sample.
[0099] For details of this embodiment, please refer to the above system embodiment.
[0100] Figure 8 is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application. In this embodiment, the device is applied to Figure 1 The spectrum acquisition device 110 in the system for obtaining a stable high signal-to-noise ratio spectrum is used as an example for explanation. The device includes at least the following modules:
[0101] A first acquisition module 810 is used to acquire an initialization standard integration time sent by a host computer that is communicatively connected to the spectrum acquisition device;
[0102] A first acquisition module 820 is used to perform spectral sampling on a stationary sample based on the initialization standard integration time to obtain a first sample spectrum;
[0103] The spectrum sending module 830 is used to send the first sample spectrum to the host computer, so that the host computer can determine the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialized standard integration time, determine the updated integration time used in the next sampling;
[0104] A second acquisition module 820 is used to acquire the updated integration time generated by the host computer;
[0105] The second acquisition module 830 is used to re-sample the static sample based on the updated integration time to obtain a second sample spectrum; and to take the first sample spectrum and the second sample spectrum as a sub-sample;
[0106] The quantity judgment module 840 is used to trigger the first acquisition module 810 to execute the step of acquiring the initialization standard integration time sent by the upper computer connected to the spectrum acquisition device when the number of the sub-samples does not reach the preset number, so as to obtain a spectrum corresponding to each sub-sample.
[0107] For relevant details, refer to the above embodiments.
[0108] Fig. 9 is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application. In this embodiment, the device is applied to Figure 1 The host computer 120 in the system for obtaining a stable high signal-to-noise ratio spectrum is used as an example for explanation. The device includes at least the following modules:
[0109] A first sending module 910 is used to send an initialization standard integration time corresponding to each sub-sample to the spectrum acquisition device that is communicatively connected to the host computer when the spectrum acquisition device acquires each sub-sample;
[0110] A spectrum acquisition module 920, configured to acquire a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time;
[0111] An energy determination module 930, configured to determine sample energy based on the first sample spectrum;
[0112] A time determination module 940, for determining an updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time;
[0113] The second sending module 950 is used to send the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device re-samples the static sample based on the updated integration time to obtain a second sample spectrum; and regards the first sample spectrum and the second sample spectrum as a sub-sample.
[0114] For relevant details, refer to the above embodiments.
[0115] It should be noted that: the device for obtaining a stable high signal-to-noise ratio spectrum provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when obtaining a stable high signal-to-noise ratio spectrum. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device for obtaining a stable high signal-to-noise ratio spectrum is divided into different functional modules to complete all or part of the functions described above. In addition, the device for obtaining a stable high signal-to-noise ratio spectrum provided in the above embodiment and the method embodiment for obtaining a stable high signal-to-noise ratio spectrum belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0116] Fig.10 is a block diagram of a device for obtaining a stable high signal-to-noise ratio spectrum provided by an embodiment of the present application, and the device may be Figure 1 The spectrum acquisition device 110 or the host computer 120 in the system for obtaining a stable high signal-to-noise ratio spectrum is shown. The device at least includes a processor 1001 and a memory 1002.
[0117] The processor 1001 may include one or more processing cores, such as a 4-core processor, a 6-core processor, etc. The processor 1001 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1001 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1001 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0118] The memory 1002 may include one or more computer-readable storage media, which may be non-transitory. The memory 1002 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1002 is used to store at least one instruction, which is used to be executed by the processor 1001 to implement the method for obtaining a stable high signal-to-noise ratio spectrum provided in the method embodiment of the present application.
[0119] In some embodiments, the apparatus for obtaining a stable high signal-to-noise ratio spectrum may optionally include: a peripheral device interface and at least one peripheral device. The processor 1001, the memory 1002 and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral devices include but are not limited to: a radio frequency circuit, a touch display screen, an audio circuit, and a power supply.
[0120] Of course, the device for obtaining a stable high signal-to-noise ratio spectrum may also include fewer or more components, which is not limited in this embodiment.
[0121] Optionally, the present application also provides a computer-readable storage medium, in which a program is stored, and the program is loaded and executed by a processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum in the above method embodiment.
[0122] Optionally, the present application also provides a computer product, which includes a computer-readable storage medium, wherein the computer-readable storage medium stores a program, and the program is loaded and executed by a processor to implement the method of obtaining a stable high signal-to-noise ratio spectrum in the above method embodiment.
[0123] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described 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.
[0124] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for obtaining a stable high signal-to-noise ratio spectrum, characterized in that: For a spectral acquisition device, the method comprises: Obtaining an initialization standard integration time sent by a host computer that is communicatively connected to the spectrum acquisition device; Based on the initialization standard integration time, spectrally sampling the stationary sample to obtain a first sample spectrum; The first sample spectrum is sent to the host computer, so that the host computer determines the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialized standard integration time, an updated integration time used in the next sampling is determined; Obtaining the updated integration time generated by the host computer; Based on the updated integration time, the stationary sample is sampled again to obtain a second sample spectrum; the first sample spectrum and the second sample spectrum are taken as a sub-sample; When the number of the sub-samples does not reach the preset number, the step of obtaining the initialization standard integration time sent by the host computer connected to the spectrum acquisition device and subsequent steps are triggered to obtain a spectrum corresponding to each sub-sample.
2. The method according to claim 1, characterized in that The method further comprises: When the number of the sub-samples reaches the preset number, the spectrum corresponding to each sub-sample is predicted based on the pre-created spectrum prediction model to obtain the spectrum measurement value corresponding to each sub-sample; Based on the spectral measurement values corresponding to each sub-sample, the spectral measurement value of the sample is determined.
3. The method according to claim 2, characterized in that The step of determining the spectral measurement value of the sample based on the spectral measurement values corresponding to each sub-sample includes: The average value of the spectral measurement values corresponding to each sub-sample is determined to obtain the spectral measurement value.
4. A method for obtaining a stable high signal-to-noise ratio spectrum, characterized in that: For a host computer, the method includes: When a spectrum acquisition device connected to the host computer for communication acquires each sub-sample, an initialization standard integration time corresponding to the sub-sample is sent to the spectrum acquisition device; Acquire a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time; determining a sample energy based on the first sample spectrum; Determining an updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time; The updated integration time is sent to the spectrum acquisition device, so that the spectrum acquisition device re-samples the static sample based on the updated integration time to obtain a second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a sub-sample.
5. The method according to claim 4, characterized in that The updated integration time used in the next sampling is determined based on the sample energy, the preset standard energy, and the initialized standard integration time, which is expressed by the following formula: (Sample energy / standard energy)*initialize standard integration time.
6. The method according to claim 4, characterized in that The method further comprises: Determining whether the sample energy exceeds a preset energy range; If the sample energy exceeds the preset energy range, the step of determining the updated integration time used for the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time is triggered.
7. The method according to claim 4, characterized in that Before sending the initialization standard integration time corresponding to the sub-sample to the spectrum acquisition device, the method further includes: If the sub-sample is the first sub-sample of the sample, generating an initialization standard integration time corresponding to the first sub-sample based on the instrument characteristics of the spectrum acquisition device and the sample properties of the sample; or, If the sub-sample is a sub-sample after the first sub-sample, the updated integration time of the previous sub-sample is determined as the initialization standard integration time.
8. A device for obtaining a stable high signal-to-noise ratio spectrum, characterized in that: The device comprises a processor and a memory; a program is stored in the memory, and the program is loaded and executed by the processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum as described in any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The storage medium stores a program, and when the program is executed by a processor, it is used to implement the method for obtaining a stable high signal-to-noise ratio spectrum as described in any one of claims 1 to 7.
10. A system for obtaining a stable high signal-to-noise ratio spectrum, characterized in that: The system comprises: a spectrum acquisition device and a host computer connected to the spectrum acquisition device for communication; The host computer is used to send the initialization standard integration time corresponding to each sub-sample to the spectrum acquisition device which is communicatively connected to the host computer when the spectrum acquisition device acquires each sub-sample; The spectrum acquisition device is used to obtain the initialization standard integration time sent by the host computer that is communicatively connected to the spectrum acquisition device; based on the initialization standard integration time, perform spectral sampling on the static sample to obtain a first sample spectrum; send the first sample spectrum to the host computer so that the host computer determines the sample energy based on the first sample spectrum; based on the sample energy, the preset standard energy, and the initialization standard integration time, determine the updated integration time used for the next sampling; The host computer is further used to obtain a first sample spectrum collected by the spectrum acquisition device based on the initialization standard integration time; determine a sample energy based on the first sample spectrum; determine an updated integration time to be used for next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time; send the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device can re-sample the stationary sample based on the updated integration time to obtain a second sample spectrum; and use the first sample spectrum and the second sample spectrum as a sub-sample; The spectrum acquisition device is used to obtain the updated integration time generated by the host computer; Based on the updated integration time, re-sampling the stationary sample to obtain a second sample spectrum; The first sample spectrum and the second sample spectrum are taken as a sub-sample; when the number of the sub-samples does not reach the preset number, the step of obtaining the initialization standard integration time sent by the host computer and subsequent steps are triggered to obtain a spectrum corresponding to each sub-sample.
Citation Information
Patent Citations
Laser gas telemeter signal acquisition method and system
CN109916852A
Spectral acquisition method for improving Raman spectral signal-to-noise ratio
CN110196243A
Target spectral information acquisition method and device and medium
CN114255404A
Infrared image acquisition method and device with adjustable integral time
CN114494346A
Signal-to-noise ratio estimation method based on deep learning
CN116760491A
