Method, apparatus, medium, and system for obtaining stable high signal-to-noise ratio spectrum
By dynamically adjusting the integration time and spectral prediction model, the problems of low signal-to-noise ratio and poor repeatability in near-infrared spectral acquisition are solved, achieving efficient and low-cost spectral acquisition and ensuring spectral consistency and model prediction accuracy.
Patent Information
- Application Number
- CN202411328528.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2025-11-18
- Estimated Expiration
- 2044-09-24
AI Technical Summary
Existing technologies for near-infrared spectral acquisition suffer from low signal-to-noise ratio, poor repeatability, and high cost, making it difficult to simultaneously achieve system stability and efficiency.
By acquiring the initial standard integration time sent by the host computer, the integration time of the spectral acquisition device is adjusted, the spectral sampling is dynamically optimized, a subsample spectrum is formed, and the signal-to-noise ratio is corrected using a spectral prediction model to ensure the consistency and repeatability of the spectrum.
It improves the spectral signal-to-noise ratio and consistency, reduces acquisition costs, improves acquisition efficiency, and ensures the repeatability and accuracy of model prediction results.
Smart Images

Figure CN119164908B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to a method, device, medium and system for obtaining stable high signal-to-noise ratio spectrum, and belongs to the technical field of spectrum acquisition. BACKGROUND
[0002] At present, in various industries related to near-infrared spectrum, in order to ensure that the collected spectrum has high signal-to-noise ratio and good repeatability, some conventional methods are used, including the following methods.
[0003] 1. Improving light source input and system constant temperature treatment: while improving the signal-to-noise ratio, the system temperature rises. Constant temperature treatment is used to improve the collection repeatability. However, the risk of system constant temperature treatment is increased, and the cost is greatly increased;
[0004] 2. Increasing the light flux of the optical system: while increasing the signal-to-noise ratio, the optical resolution will be reduced, and it is difficult to balance the two;
[0005] 3. Coating an anti-reflection film on the optical and sensor device: the signal-to-noise ratio is effectively improved, but the coating cost is too high, and the consistency of the coating is uneven, and the system has a stability deviation;
[0006] 4. Selecting a sensor device with higher response: the cost is higher, and most high-performance detectors are imported devices, which have a long delivery cycle and a high research and development cost;
[0007] 5. Increasing the exposure time of the sensor device: selecting a high-bit AD chip can obtain more spectrum by prolonging the exposure time, and the spectrum is averaged multiple times, so that a spectrum with higher signal-to-noise ratio and better repeatability is obtained. However, as a high-performance imported device, the cost is high. In addition, at a high exposure time, the detector has a nonlinearity problem, which causes data distortion. SUMMARY
[0008] The application provides a method, device, medium and system for obtaining stable high signal-to-noise ratio spectrum. According to the method for processing the spectrum acquisition of the near-infrared detection substance, the problems of poor repeatability of model prediction results, poor repeatability of spectrum and high cost and low efficiency in the research and development process caused by low spectrum signal-to-noise ratio can be solved. The application provides the following technical solutions:
[0009] In a first aspect, a method for obtaining stable high signal-to-noise ratio spectrum is provided, which is used for a spectrum acquisition device, and the method comprises the following steps.
[0010] An initialization standard integration time sent by an upper computer connected in communication with the spectrum acquisition device is acquired;
[0011] Based on the initialization standard integration time, a spectrum of a static sample is sampled to obtain a first sample spectrum;
[0012] sending the first sample spectrum to the host computer, so that the host computer determines a sample energy based on the first sample spectrum; determining 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;
[0013] obtaining the updated integration time generated by the host computer;
[0014] based on the updated integration time, resampling the static sample to obtain a second sample spectrum; and taking the first sample spectrum and the second sample spectrum as one sub-sample;
[0015] if the number of sub-samples does not reach a preset number, triggering the steps of obtaining the initialization standard integration time sent by the host computer in communication with the spectrum acquisition device and the subsequent steps, to obtain a spectrum corresponding to each sub-sample.
[0016] Optionally, the method further comprises:
[0017] if the number of sub-samples reaches the preset number, predicting the spectrum corresponding to each sub-sample based on a pre-created spectrum prediction model to obtain a spectrum measurement value corresponding to each sub-sample;
[0018] determining a spectrum measurement value of the sample based on the spectrum measurement values corresponding to each sub-sample.
[0019] Optionally, the determining of the spectrum measurement value of the sample based on the spectrum measurement values corresponding to each sub-sample comprises:
[0020] determining an average value of the spectrum measurement values corresponding to each sub-sample to obtain the spectrum measurement value.
[0021] In a second aspect, a method for obtaining a stable high signal-to-noise ratio spectrum is provided, and the method comprises:
[0022] sending an initialization standard integration time corresponding to the sub-sample to a spectrum acquisition device in communication with the host computer when the spectrum acquisition device acquires each sub-sample;
[0023] obtaining 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 for next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time;
[0026] The updated integration time is sent to the spectral acquisition device so that the spectral acquisition device can resample the stationary 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 subsample.
[0027] Optionally, the updated integration time for the next sampling, determined based on the sample energy, the preset standard energy, and the initial standard integration time, is expressed by the following formula:
[0028] (Sample energy / Standard energy) * Initial standard integration time.
[0029] Optionally, the method further includes:
[0030] Determine whether the energy of the sample exceeds a preset energy range;
[0031] If the sample energy exceeds the preset energy range, the step of determining the updated integration time to be used for the next sampling is triggered based on the sample energy, the preset standard energy, and the initial standard integration time.
[0032] Optionally, before sending the initial standard integration time corresponding to the subsample to the spectral acquisition device, the method further includes:
[0033] If the subsample is the first subsample of the sample, then based on the instrument characteristics of the spectral acquisition device and the sample properties of the sample, the initialization standard integration time corresponding to the first subsample is generated;
[0034] or,
[0035] If the subsample is a subsample after the first subsample, then the updated integration time of the previous subsample is determined as the initial standard integration time.
[0036] Thirdly, an apparatus for obtaining a stable high signal-to-noise ratio spectrum is provided, the apparatus comprising a processor and a memory; the memory stores a program, which 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 or second aspect.
[0037] Fourthly, a computer-readable storage medium is provided, wherein a program is stored therein, the program being 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 or second aspect.
[0038] Fifthly, a system for obtaining a stable high signal-to-noise ratio spectrum is provided, the system comprising: a spectral acquisition device and a host computer communicatively connected to the spectral acquisition device;
[0039] The host computer is used to send the initialization standard integration time corresponding to each subsample to the spectral acquisition device when the spectral acquisition device connected to the host computer acquires each subsample.
[0040] The spectral acquisition device is used to acquire the initial standard integration time sent by a host computer that is communicatively connected to the spectral acquisition device; to perform spectral sampling on a stationary sample based on the initial standard integration time to obtain a first sample spectrum; 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; and to determine the updated integration time to be used for the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time.
[0041] The host computer is further configured to acquire the first sample spectrum acquired by the spectral acquisition device based on the initial standard integration time; determine the sample energy based on the first sample spectrum; determine the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time; send the updated integration time to the spectral acquisition device so that the spectral acquisition device can resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and use the first sample spectrum and the second sample spectrum as a subsample.
[0042] The spectral acquisition device is used to acquire the updated integration time generated by the host computer; based on the updated integration time, the stationary sample is resampled to obtain a second sample spectrum; the first sample spectrum and the second sample spectrum are used as a subsample; if the number of subsamples does not reach a preset number, the step of acquiring the initial standard integration time sent by the host computer and subsequent steps are triggered to obtain a spectrum corresponding to each subsample.
[0043] The beneficial effects of this application are as follows: It obtains the initial standard integration time sent by a host computer connected to the spectral acquisition device; based on the initial standard integration time, it performs spectral sampling on a stationary sample to obtain a first sample spectrum; it sends 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 initial standard integration time, it determines the updated integration time to be used for the next sampling; it obtains the updated integration time generated by the host computer; based on the updated integration time, it resamples the stationary sample to obtain a second sample spectrum; it uses the first sample spectrum and the second sample spectrum as a subsample; if the number of subsamples does not reach the preset number, it triggers the execution of the steps of obtaining the initial standard integration time sent by the host computer connected to the spectral acquisition device and subsequent steps, obtaining a spectrum corresponding to each subsample; this can solve the problems of poor repeatability of model prediction results and poor spectral repeatability caused by low spectral signal-to-noise ratio, as well as extremely high cost and extremely low efficiency in the research and development process; through spectral signal-to-noise ratio correction under different integration times, it can improve the spectral signal-to-noise ratio and spectral consistency. Furthermore, in the quantitative analysis of the model, the repeatability of prediction results from multiple high signal-to-noise ratio spectra is also excellent. For solid sampling, maintaining a high and consistent signal-to-noise ratio in the acquired spectra and repeating the measurement of samples multiple times also yields excellent repeatability.
[0044] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, the preferred embodiments of this application are described in detail below with reference to the accompanying drawings. Attached Figure Description
[0045] Figure 1 This is a schematic diagram of the structure of a system for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application;
[0046] Figure 2 This is a schematic diagram of a spectrum obtained by a conventional spectral acquisition method according to an embodiment of this application;
[0047] Figure 3 This is a schematic diagram of a spectrum obtained by a conventional spectral acquisition method according to another embodiment of this application;
[0048] Figure 4 This is a flowchart of a method for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of a stable high signal-to-noise ratio spectrum provided in one embodiment of this application;
[0050] Figure 6 This is a flowchart of a method for obtaining a stable high signal-to-noise ratio spectrum according to another embodiment of this application;
[0051] Figure 7 This is a flowchart of a method for obtaining a stable high signal-to-noise ratio spectrum according to another embodiment of this application;
[0052] Figure 8 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to one embodiment of this application;
[0053] Figure 9 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to another embodiment of this application;
[0054] Figure 10 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum, provided in another embodiment of this application. Detailed Implementation
[0055] The specific embodiments of this application will be described in further detail below with reference to the accompanying drawings and examples. The following examples are used to illustrate this application, but are not intended to limit the scope of this application.
[0056] Figure 1 This is a schematic diagram of the structure of a system for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application, as shown below. Figure 1 As shown, the system includes at least: a spectral acquisition device 110 and a host computer 120 that is communicatively connected to the spectral acquisition device.
[0057] When light passes through a sample, the sample absorbs, scatters, or reflects light of different wavelengths. The spectral acquisition device 110 is used to detect the changes in wavelength and intensity of light as it passes through the sample, generating the sample's spectrum.
[0058] In traditional spectral acquisition equipment, the sample is typically kept stationary during the acquisition process. However, conventional sample acquisition methods (whether liquid or solid) involve a certain number of sample loading attempts (automatic or manual reloading), meaning multiple acquisitions are performed and the average is calculated to obtain the final result. Since the sample state differs in each acquisition, this results in inconsistent signal-to-noise ratios in the spectra of each acquisition. (See [reference needed] for details.) Figure 2 The spectrum shown has a poor signal-to-noise ratio. Spectra with a poor signal-to-noise ratio also have extremely poor repeatability; see reference [link / reference needed]. Figure 3 The spectrum shown has a poor signal-to-noise ratio, and correspondingly, the repeatability of the results predicted by the model is also poor. Typically, acquired spectra are averaged multiple times (multiple spectra averaged into one) to improve the signal-to-noise ratio. However, increasing the averaging time leads to excessively long acquisition times, affecting the acquisition progress and resulting in a poor user experience.
[0059] This embodiment provides the following method to obtain a spectrum with high signal-to-noise ratio and relatively consistent performance, referencing... Figure 4 The method specifically includes the following steps:
[0060] Step 401: When the host computer acquires each subsample, it sends the initialization standard integration time corresponding to the subsample to the spectral acquisition device.
[0061] Optionally, upon receiving a subsample acquisition request from the spectral acquisition device, the host computer sends the initialization standard integration time corresponding to the subsample to the spectral acquisition device. In other embodiments, the host computer may also send a waiting time after the updated integration time (described below), and upon reaching the updated integration time, send the initialization standard integration time corresponding to the next subsample. This embodiment does not limit the triggering method for the host computer to send the initialization standard integration time.
[0062] Standard integration time refers to the baseline integration time preset during spectral acquisition to achieve a certain signal-to-noise ratio and detection sensitivity, based on the instrument characteristics of the spectrometer and the properties of the sample. In this embodiment, the initial standard integration time refers to the standard integration time when acquiring the first sample spectrum, i.e., the first sample spectrum.
[0063] In this context, a subsample refers to a set of independent spectral acquisitions performed according to a specific integration time and number of repetitions during the spectral acquisition process. In this embodiment, each subsample consists of two independently acquired spectra, which reduces signal-to-noise ratio differences caused by changes in sample state and improves the consistency and reliability of spectral data.
[0064] Before the host computer sends the initial standard integration time corresponding to the subsample to the spectral acquisition device, it acquires the initial standard integration time. Optionally, the initial standard integration times corresponding to different subsamples may be the same or different. If the initial standard integration times corresponding to different subsamples are different, the acquisition of the initial standard integration time includes: if the subsample is the first subsample of the sample, then based on the instrument characteristics of the spectral acquisition device and the sample properties, the initial standard integration time corresponding to the first subsample is generated; or, if the subsample is a subsample after the first subsample, then the updated integration time of the previous subsample is determined as the initial standard integration time.
[0065] In other embodiments, the initialization standard integration time may be sent by other devices or obtained by the host computer based on the human-computer interaction interface. This embodiment does not limit the method of obtaining the initialization standard integration time.
[0066] Step 402: The spectral acquisition device obtains the initialization standard integration time sent by the host computer that is connected to the spectral acquisition device; based on the initialization standard integration time, the stationary sample is spectrally sampled to obtain the first sample spectrum; the first sample spectrum is sent to the host computer.
[0067] The first sample spectrum is used by 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 initial standard integration time, the updated integration time used for the next sampling is determined.
[0068] Step 403: The host computer acquires the spectrum of the first sample acquired by the spectral acquisition device based on the initial standard integration time; determines the sample energy based on the first sample spectrum; determines the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time; and sends the updated integration time to the spectral acquisition device.
[0069] The updated integration time is used by the spectral acquisition device to resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a subsample.
[0070] In one example, determining the sample energy based on the spectrum of a first sample includes: integrating the spectral curve over a specific wavelength range to obtain the total light intensity corresponding to that specific wavelength range; and converting the total light intensity into the corresponding energy value using a preset calibration curve.
[0071] In one example, based on the sample energy, the preset standard energy, and the initial standard integration time, the updated integration time used for the next sampling is determined, expressed by the following formula:
[0072] (Sample energy / Standard energy) * Initial standard integration time.
[0073] In this embodiment, by adjusting the integration time, the energy corresponding to the acquired second sample spectrum is made close to the preset standard energy, thereby improving the signal-to-noise ratio and accuracy of the spectral data.
[0074] Optionally, for sample energies that are not significantly 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 step of determining the updated integration time to be used for the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time.
[0075] Step 404: The spectral acquisition device obtains the updated integration time generated by the host computer; based on the updated integration time, the stationary sample is resampled to obtain the second sample spectrum; the first sample spectrum and the second sample spectrum are used as a subsample; if the number of subsamples does not reach the preset number, step 401 is triggered to obtain a spectrum corresponding to each subsample.
[0076] For example, 10 subsamples are equivalent to steps 401-404 being repeated 10 times, with the sample spectrum collected twice in each cycle, and the final output being the spectrum of the number of subsamples. 10 subsamples correspond to 10 spectra.
[0077] Between two acquisitions of each subsample, the integration time can be adjusted based on the results of the first acquisition to optimize the signal-to-noise ratio (SNR) of the second acquisition. This allows for dynamic adjustment of the integration time based on the actual energy level of the sample, improving acquisition efficiency while maintaining the SNR. For example, referencing... Figure 5 The spectrum corresponding to each of the subsamples shown is based on Figure 5 It can be seen that the repeatability and signal-to-noise ratio of this spectrum are both superior. Figure 2 and Figure 3 .
[0078] Optionally, refer to Figure 4 In step 405, when the number of subsamples reaches the preset number, the spectral acquisition device predicts the spectrum corresponding to each subsample based on the pre-created spectral prediction model to obtain the spectral measurement value corresponding to each subsample; based on the spectral measurement value corresponding to each subsample, the spectral measurement value of the sample is determined.
[0079] In one example, the spectral measurement value of a sample is determined based on the spectral measurement values corresponding to each subsample, including: determining the average value of the spectral measurement values corresponding to each subsample to obtain the spectral measurement value.
[0080] For example, if the preset quantity is 10, the 10 samples correspond to 10 spectra. The model predicts using the 10 spectra, resulting in 10 spectral measurements. The average of these spectral measurements is then used to output a single spectral measurement, which is the spectral measurement of the sample.
[0081] Optionally, the spectral prediction model can 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 the measurement requirements. The spectral measurement value can 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 stable high signal-to-noise ratio spectra provided in this embodiment solves the problems of poor repeatability of model prediction results and spectral repeatability caused by low spectral signal-to-noise ratio, as well as extremely high cost and low efficiency in the research and development process. Furthermore, it addresses these issues by correcting the spectral signal-to-noise ratio under different integration times. The system also improves spectral signal-to-noise ratio by correcting the spectral signal-to-noise ratio under different integration times. Finally, it improves spectral signal-to-noise ratio by obtaining the initial standard integration time sent by a host computer connected to the spectral acquisition device. The system then performs spectral sampling on a stationary sample to obtain a first sample spectrum. This process involves: acquiring the initial standard integration time sent by the host computer connected to the spectral acquisition device based on the initial standard integration time; obtaining a second sample spectrum based on the updated integration time; using the first and second sample spectra as a subsample; and triggering the acquisition of the initial standard integration time sent by the host computer connected to the spectral acquisition device and subsequent steps when the number of subsamples is less than a preset number. This improves spectral signal-to-noise ratio and spectral consistency by correcting the spectral signal-to-noise ratio under different integration times. Furthermore, in the quantitative analysis of the model, the repeatability of prediction results from multiple high signal-to-noise ratio spectra is also excellent. For solid sampling, maintaining a high and consistent signal-to-noise ratio in the acquired spectra and repeating the measurement of samples multiple times also yields excellent repeatability.
[0084] Simultaneously, the signal-to-noise ratio and consistency of solid-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, demonstrating universality. Furthermore, it significantly reduces equipment acquisition time, improves equipment performance, and simultaneously reduces system integration costs and increases efficiency.
[0085] Figure 6 This is a flowchart of a method for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application. This embodiment applies the method to... Figure 1 The method for obtaining a stable high signal-to-noise ratio spectrum is illustrated using the spectral acquisition device 110 within the system as an example. This method includes at least the following steps:
[0086] Step 601: Obtain the initialization standard integration time sent by the host computer that is communicatively connected to the spectral acquisition device;
[0087] Step 602: Based on the initial standard integration time, perform spectral sampling on the stationary sample to obtain the spectrum of the first sample;
[0088] Step 603: 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; and determine the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time.
[0089] Step 604: Obtain the updated integration time generated by the host computer;
[0090] Step 605: Based on the updated integration time, resample the stationary sample to obtain the second sample spectrum; combine the first sample spectrum and the second sample spectrum as a subsample;
[0091] Step 606: If the number of subsamples does not reach the preset number, step 601 is triggered to obtain a spectrum corresponding to each subsample.
[0092] For details regarding this embodiment, please refer to the above system embodiment.
[0093] Figure 7 This is a flowchart of a method for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application. This embodiment applies the method to... Figure 1 The system for obtaining a stable high signal-to-noise ratio spectrum is illustrated below, with the host computer 120 in the system serving as the execution entity for each step. This method includes at least the following steps:
[0094] Step 701: When the spectral acquisition device connected to the host computer acquires each subsample, send the initialization standard integration time corresponding to the subsample to the spectral acquisition device.
[0095] Step 702: Obtain the first sample spectrum acquired by the spectral acquisition device based on the initialization standard integration time;
[0096] Step 703: Determine the sample energy based on the spectrum of the first sample;
[0097] Step 704: Based on the sample energy, the preset standard energy, and the initial standard integration time, determine the updated integration time to be used in the next sampling.
[0098] Step 705: The updated integration time is sent to the spectral acquisition device so that the spectral acquisition device can resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a subsample.
[0099] For details regarding this embodiment, please refer to the above system embodiment.
[0100] Figure 8 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to one embodiment of this application. This embodiment applies the apparatus to... Figure 1 The spectral acquisition device 110 in the system for obtaining a stable high signal-to-noise ratio spectrum is used as an example for illustration. This device includes at least the following modules:
[0101] The first acquisition module 810 is used to acquire the initialization standard integration time sent by the host computer that is communicatively connected to the spectral acquisition device.
[0102] The first acquisition module 820 is used to perform spectral sampling on a stationary sample based on the initial standard integration time to obtain the spectrum of the first sample.
[0103] The spectral transmission module 830 is used to send the spectrum of the first sample to the host computer, so that the host computer can determine the sample energy based on the spectrum of the first sample; and determine the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time.
[0104] The second acquisition module 840 is used to acquire the updated integration time generated by the host computer.
[0105] The second acquisition module 850 is used to resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and to combine the first sample spectrum and the second sample spectrum as a subsample.
[0106] The quantity judgment module 860 is used to trigger the first acquisition module 810 to perform the step of acquiring the initialization standard integration time sent by the host computer that is connected to the spectral acquisition device when the number of subsamples does not reach the preset number, so as to obtain a spectrum corresponding to each subsample.
[0107] For relevant details, please refer to the above embodiments.
[0108] Figure 9 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to one embodiment of this application. This embodiment applies the apparatus 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 illustration. This device includes at least the following modules:
[0109] The first sending module 910 is used to send the initialization standard integration time corresponding to each subsample to the spectral acquisition device when the spectral acquisition device, which is connected to the host computer, acquires each subsample.
[0110] The spectrum acquisition module 920 is used to acquire the spectrum of the first sample acquired by the spectrum acquisition device based on the initialization standard integration time.
[0111] Energy determination module 930 is used to determine the sample energy based on the spectrum of the first sample.
[0112] The time determination module 940 is used to determine the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time.
[0113] The second sending module 950 is used to send the updated integration time to the spectral acquisition device, so that the spectral acquisition device can resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and take the first sample spectrum and the second sample spectrum as a subsample.
[0114] For relevant details, please refer to the above embodiments.
[0115] It should be noted that the apparatus for obtaining stable high signal-to-noise ratio spectra provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the apparatus for obtaining stable high signal-to-noise ratio spectra can be divided into different functional modules to complete all or part of the functions described above. Furthermore, the apparatus for obtaining stable high signal-to-noise ratio spectra provided in the above embodiments and the method embodiments for obtaining stable high signal-to-noise ratio spectra belong to the same concept, and their specific implementation process is detailed in the method embodiments, which will not be repeated here.
[0116] Figure 10 This is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of this application. The apparatus may be... Figure 1 The system shown obtains a stable high signal-to-noise ratio spectrum using a spectral acquisition device 110 or a host computer 120. This device includes at least a processor 1001 and a memory 1002.
[0117] Processor 1001 may include one or more processing cores, such as a 4-core processor, a 6-core processor, etc. Processor 1001 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1001 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1001 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1001 may also include an AI (Artificial Intelligence) processor, which is used to handle computational 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 high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1002 is used to store at least one instruction, which is executed by the processor 1001 to implement the method for obtaining a stable high signal-to-noise ratio spectrum provided in the method embodiments of this 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, memory 1002, and peripheral device interface can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface via a bus, signal line, or circuit board. Indicatively, peripheral devices include, but are not limited to: radio frequency circuitry, a touch display screen, audio circuitry, and a power supply.
[0120] Of course, the apparatus for obtaining a stable high signal-to-noise ratio spectrum may also include fewer or more components, and this embodiment does not limit this.
[0121] Optionally, this application also provides a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the method of obtaining a stable high signal-to-noise ratio spectrum described in the above method embodiments.
[0122] Optionally, this application also provides a computer product including a computer-readable storage medium storing a program that is loaded and executed by a processor to implement the method of obtaining a stable high signal-to-noise ratio spectrum described in the above method embodiments.
[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.
[0124] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method for obtaining a stable high signal-to-noise ratio spectrum, characterized in that, For use in a spectral acquisition device, the method includes: Obtain the initialization standard integration time sent by the host computer that is communicatively connected to the spectral acquisition device; Based on the initial standard integration time, spectral sampling is performed on the stationary sample to obtain the spectrum of the first sample; The first sample spectrum is sent 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 initial standard integration time, the updated integration time to be used in the next sampling is determined; Obtain the updated integral time generated by the host computer; Based on the updated integration time, the stationary sample is resampled to obtain the second sample spectrum; the first sample spectrum and the second sample spectrum are used as a subsample; If the number of subsamples does not reach the preset number, the step of obtaining the initialization standard integration time sent by the host computer connected to the spectral acquisition device and subsequent steps are triggered to obtain a spectrum corresponding to each subsample. Specifically, the total light intensity corresponding to a specific wavelength range is obtained by integrating the spectral curve over that range; the total light intensity is then converted into a corresponding energy value using a preset calibration curve to determine the sample energy. Based on the sample energy, the preset standard energy, and the initial standard integration time, the updated integration time to be used in the next sampling is determined and expressed as (sample energy / standard energy) * initial standard integration time.
2. The method according to claim 1, characterized in that, The method further includes: When the number of subsamples reaches the preset number, the spectrum corresponding to each subsample is predicted based on the pre-created spectral prediction model to obtain the spectral measurement value corresponding to each subsample. The spectral measurement values of the sample are determined based on the spectral measurement values corresponding to each subsample.
3. The method according to claim 2, characterized in that, The process of determining the spectral measurement value of the sample based on the spectral measurement values corresponding to each subsample includes: The average value of the spectral measurements corresponding to each subsample is determined to obtain the spectral measurements.
4. A method for obtaining a stable high signal-to-noise ratio spectrum, characterized in that, For use in a host computer, the method includes: When the spectral acquisition device, which is connected to the host computer, acquires each subsample, the initialization standard integration time corresponding to the subsample is sent to the spectral acquisition device. The first sample spectrum acquired by the spectral acquisition device based on the initial standard integration time is obtained; The sample energy is determined based on the spectrum of the first sample. Based on the sample energy, the preset standard energy, and the initial standard integration time, determine the updated integration time to be used in the next sampling. The updated integration time is sent to the spectral acquisition device so that the spectral acquisition device can resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and the first sample spectrum and the second sample spectrum are used as a subsample; Specifically, by integrating the spectral curve within a specific wavelength range, the total light intensity corresponding to that specific wavelength range is obtained; the total light intensity is converted into a corresponding energy value using a preset calibration curve to determine the sample energy; the spectral curve is generated by the spectral acquisition device triggering the execution of the step of obtaining the initialization standard integration time sent by the host computer connected to the spectral acquisition device when the number of subsamples does not reach a preset number, and subsequent steps, to obtain a spectrum corresponding to each subsample. Based on the sample energy, the preset standard energy, and the initial standard integration time, the updated integration time to be used in the next sampling is determined and expressed as (sample energy / standard energy) * initial standard integration time.
5. The method according to claim 4, characterized in that, The updated integration time for the next sampling, determined based on the sample energy, the preset standard energy, and the initial standard integration time, is expressed by the following formula: (Sample energy / Standard energy) * Initial standard integration time.
6. The method according to claim 4, characterized in that, The method further includes: Determine whether the energy of the sample exceeds a preset energy range; If the sample energy exceeds the preset energy range, the step of determining the updated integration time to be used for the next sampling is triggered based on the sample energy, the preset standard energy, and the initial standard integration time.
7. The method according to claim 4, characterized in that, Before sending the initial standard integration time corresponding to the subsample to the spectral acquisition device, the method further includes: If the subsample is the first subsample of the sample, then based on the instrument characteristics of the spectral acquisition device and the sample properties of the sample, the initialization standard integration time corresponding to the first subsample is generated; or, If the subsample is a subsample after the first subsample, then the updated integration time of the previous subsample is determined as the initial standard integration time.
8. An apparatus for obtaining a stable high signal-to-noise ratio spectrum, characterized in that, The device includes a processor and a memory; the memory stores a program that 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 that, when executed by a processor, 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 includes: a spectral acquisition device and a host computer that is communicatively connected to the spectral acquisition device; The host computer is used to send the initialization standard integration time corresponding to each subsample to the spectral acquisition device when the spectral acquisition device connected to the host computer acquires each subsample. The spectral acquisition device is used to acquire the initial standard integration time sent by a host computer that is communicatively connected to the spectral acquisition device; to perform spectral sampling on a stationary sample based on the initial standard integration time to obtain a first sample spectrum; 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; and to determine the updated integration time to be used for the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time. The host computer is further configured to acquire the first sample spectrum acquired by the spectral acquisition device based on the initial standard integration time; determine the sample energy based on the first sample spectrum; determine the updated integration time to be used in the next sampling based on the sample energy, the preset standard energy, and the initial standard integration time; send the updated integration time to the spectral acquisition device so that the spectral acquisition device can resample the stationary sample based on the updated integration time to obtain the second sample spectrum; and use the first sample spectrum and the second sample spectrum as a subsample. The spectral acquisition device is used to acquire the updated integration time generated by the host computer; based on the updated integration time, the stationary sample is resampled to obtain the second sample spectrum; the first sample spectrum and the second sample spectrum are used as a subsample; if the number of subsamples does not reach the preset number, the step of acquiring the initial standard integration time sent by the host computer and subsequent steps are triggered to obtain a spectrum corresponding to each subsample. Specifically, the total light intensity corresponding to a specific wavelength range is obtained by integrating the spectral curve over that range; the total light intensity is then converted into a corresponding energy value using a preset calibration curve to determine the sample energy. Based on the sample energy, the preset standard energy, and the initial standard integration time, the updated integration time to be used in the next sampling is determined and expressed as (sample energy / standard energy) * initial standard integration time.
Citation Information
Patent Citations
Signal-to-noise ratio estimation method based on deep learning
CN116760491A
Computer operated spectrometric instrument and associated calculator
US6122052A