[go: up one dir, main page]

CN119164908A - Method, device, medium and system for obtaining stable high signal-to-noise ratio spectrum - Google Patents

Method, device, medium and system for obtaining stable high signal-to-noise ratio spectrum Download PDF

Info

Publication number
CN119164908A
CN119164908A CN202411328528.1A CN202411328528A CN119164908A CN 119164908 A CN119164908 A CN 119164908A CN 202411328528 A CN202411328528 A CN 202411328528A CN 119164908 A CN119164908 A CN 119164908A
Authority
CN
China
Prior art keywords
spectrum
sample
integration time
subsamples
energy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202411328528.1A
Other languages
Chinese (zh)
Other versions
CN119164908B (en
Inventor
肖依仑
兰树明
刘杨
李伟
王甜甜
王丽华
印伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Intelligent Analysis Service Co ltd
Original Assignee
Wuxi Intelligent Analysis Service Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Intelligent Analysis Service Co ltd filed Critical Wuxi Intelligent Analysis Service Co ltd
Priority to CN202411328528.1A priority Critical patent/CN119164908B/en
Publication of CN119164908A publication Critical patent/CN119164908A/en
Application granted granted Critical
Publication of CN119164908B publication Critical patent/CN119164908B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/17Systems in which incident light is modified in accordance with the properties of the material investigated
    • G01N21/25Colour; Spectral properties, i.e. comparison of effect of material on the light at two or more different wavelengths or wavelength bands
    • G01N21/31Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry
    • G01N21/35Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light
    • G01N21/359Investigating relative effect of material at wavelengths characteristic of specific elements or molecules, e.g. atomic absorption spectrometry using infrared light using near infrared light

Landscapes

  • Physics & Mathematics (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Or Analysing Materials By Optical Means (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The application relates to a method, a device, a medium and a system for obtaining a stable high signal-to-noise ratio spectrum, belonging to the technical field of spectrum acquisition; the method comprises the steps of carrying out spectrum sampling on a static sample based on an initialization standard integration time to obtain a first sample spectrum, sending the first sample spectrum to an upper computer to determine updated integration time used in next sampling by the upper computer, carrying out resampling on the static sample based on the updated integration time to obtain a second sample spectrum, taking the first sample spectrum and the second sample spectrum as a sub-sample, and circularly obtaining one spectrum corresponding to each sub-sample, wherein the problems of poor model prediction result repeatability, poor spectrum repeatability, extremely high cost and extremely low efficiency in a research and development process caused by extremely low spectrum signal-to-noise ratio can be solved, and the spectrum signal-to-noise ratio and spectrum consistency and spectrum prediction result repeatability can be improved.

Description

Method, device, medium and system for obtaining stable high signal-to-noise ratio spectrum
Technical Field
The application relates to a method, a device, a medium and a system for obtaining a stable high signal-to-noise ratio spectrum, and belongs to the technical field of spectrum acquisition.
Background
Currently, in various industries related to near infrared spectrum, in order to ensure high signal-to-noise ratio and good repeatability of the collected spectrum, some conventional methods exist, and specific methods include the following steps.
1. Improving light source input, and performing constant temperature treatment on the system: at the same time as the signal-to-noise ratio is high, there is a system temperature rise. The constant temperature treatment is carried out to improve the acquisition repeatability. However, the constant temperature risk of the system is increased, and the cost is greatly increased;
2. Increasing the luminous flux of the optical system, wherein the optical resolution is deteriorated when the signal to noise ratio is increased, and the optical resolution cannot be simultaneously considered;
3. The optical and sensing devices are coated with an antireflection film, so that the signal to noise ratio is effectively improved, but the coating cost is too high, the consistency of the coating is uneven, and the stability of the system is deviated;
4. the sensor with higher responsivity is selected, the cost is higher, most of high-performance detectors are imported devices, the delivery period is long, and the research and development cost is high;
5. the exposure time of the sensing device is increased, namely, the AD chip with high bit number is selected, more spectrums can be obtained by prolonging the exposure time, and the spectrums are averaged for multiple times, so that the spectrums with higher signal-to-noise ratio and better repeatability are obtained. But as a high performance imported device, the cost is high. And at higher exposure times can cause non-linearities in the detector, resulting in data distortion.
Disclosure of Invention
The application provides a method, a device, a medium and a system for obtaining a stable high signal-to-noise ratio spectrum, which are used for processing the spectrum acquisition according to a near infrared detection substance and can solve the problems of poor model prediction result repeatability, poor spectrum repeatability, extremely high cost and extremely low efficiency in the research and development process caused by the fact that the spectrum signal-to-noise ratio is too low. The application provides the following technical scheme:
in a first aspect, there is provided a method of obtaining a stable high signal-to-noise ratio spectrum for a spectrum acquisition device, the method comprising:
acquiring an initialization standard integration time sent by an upper computer in communication with the spectrum acquisition equipment;
Performing spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum;
The method comprises the steps of receiving a first sample spectrum from a host computer, sending the first sample spectrum to the host computer, and determining sample energy based on the first sample spectrum by the host computer;
Acquiring the updated integration time generated by the upper computer;
Resampling the stationary sample based on the updated integration time to obtain a second sample spectrum; taking the first sample spectrum and the second sample spectrum as a subsamples;
And triggering and executing the step of acquiring the initialization standard integration time sent by the upper computer which is in communication connection with the spectrum acquisition equipment and the subsequent step under the condition that the number of the subsamples does not reach the preset number, so as to obtain a spectrum corresponding to each subsamples.
Optionally, the method further comprises:
under the condition that the number of the subsamples reaches the preset number, respectively predicting the spectrum corresponding to each subsample based on a pre-established spectrum prediction model to obtain a spectrum measurement value corresponding to each subsample;
and determining the spectrum measured value of the sample based on the spectrum measured value corresponding to each subsamples.
Optionally, the determining the spectral measurement value of the sample based on the spectral measurement value corresponding to each subsamples includes:
and determining the average value of the spectrum measured values corresponding to the subsamples to obtain the spectrum measured values.
In a second aspect, a method for obtaining a stable high signal-to-noise ratio spectrum is provided, and the method is used for a host computer, and includes:
When spectrum acquisition equipment in communication with the upper computer acquires each subsamples, the spectrum acquisition equipment is sent with initialization standard integration time corresponding to the subsamples;
acquiring 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 for use at a next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time;
And sending the updated integration time to the spectrum acquisition equipment so that the spectrum acquisition equipment resamples a 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 subsamples.
Optionally, the determining the updated integration time used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time is expressed by the following formula:
(sample energy/standard energy) initialize the standard integration time.
Optionally, the method further comprises:
determining whether the sample energy exceeds a preset energy range;
And if the sample energy exceeds the preset energy range, triggering and executing the step of determining the updated integration time used in the next sampling based on the sample energy, the preset standard energy and the initialized standard integration time.
Optionally, before sending the initialization standard integration time corresponding to the subsamples to the spectrum acquisition device, the method further includes:
If the subsamples are the first subsamples of the sample, generating an initialization standard integration time corresponding to the first subsamples based on the instrument characteristics of the spectrum acquisition equipment and the sample properties of the sample;
Or alternatively
And if the subsamples are the subsamples after the first subsamples, determining the updated integration time of the last subsamples as the initialization standard integration time.
In a third aspect, there is provided an apparatus for obtaining a stable high signal to noise ratio spectrum, the apparatus comprising a processor and a memory, the memory having stored therein a program loaded and executed by the processor to implement the method for obtaining a stable high signal to noise ratio spectrum of the first or second aspect.
In a fourth aspect, a computer readable storage medium is provided, in which a program is stored, the program being loaded and executed by the processor to implement the method of obtaining a stable high signal to noise ratio spectrum according to the first or second aspect.
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;
The upper computer is used for sending an initialization standard integration time corresponding to each subsample to the spectrum acquisition equipment when the spectrum acquisition equipment in communication connection with the upper computer acquires each subsample;
The spectrum acquisition device is used for acquiring an initialization standard integration time sent by an upper computer in communication with the spectrum acquisition device, performing spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum, sending the first sample spectrum to the upper computer so that the upper computer can determine sample energy based on the first sample spectrum, and determining updated integration time used in next sampling based on the sample energy, preset standard energy and the initialization standard integration time;
The upper computer is also used for acquiring a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time, determining sample energy based on the first sample spectrum, determining updated integration time used in next sampling based on the sample energy, preset standard energy and the initialization standard integration time, transmitting the updated integration time to the spectrum acquisition device so that the spectrum acquisition device resamples a static sample based on the updated integration time to acquire a second sample spectrum, and taking the first sample spectrum and the second sample spectrum as a subsamples;
The spectrum acquisition equipment is used for acquiring the updated integration time generated by the upper computer, resampling a static sample based on the updated integration time to obtain a second sample spectrum, taking the first sample spectrum and the second sample spectrum as a sub-sample, and triggering and executing the step of acquiring the initialization standard integration time sent by the upper computer and the subsequent step under the condition that the number of the sub-samples does not reach the preset number to obtain a spectrum corresponding to each sub-sample.
The method has the advantages that the method comprises the steps of obtaining an initialization standard integration time sent by an upper computer in communication with spectrum acquisition equipment, conducting spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum, sending the first sample spectrum to the upper computer to determine sample energy based on the first sample spectrum, determining an updated integration time used in the next sampling based on the sample energy, preset standard energy and the initialization standard integration time, obtaining the updated integration time generated by the upper computer, conducting resampling on the static sample based on the updated integration time to obtain a second sample spectrum, taking the first sample spectrum and the second sample spectrum as sub-samples, triggering and executing steps of obtaining the initialization standard integration time sent by the upper computer in communication with the spectrum acquisition equipment and steps after the initialization standard integration time when the number of the sub-samples does not reach the preset number to obtain a spectrum corresponding to each sub-sample, and solving the problems that model prediction results are poor in repeatability, low in spectral noise ratio and low in spectral noise ratio are extremely high, and the reliability is improved through the research and development of the spectrum is extremely low. In addition, in the quantitative analysis of the model, the repeatability of a plurality of spectrum prediction results with high signal to noise ratio is also excellent. For solid sampling, the repeatability of the result of repeatedly measuring the sample for a plurality of times can be excellent, and the signal to noise ratio of the acquired spectrum is high and consistent.
The foregoing description is only an overview of the present application, and is intended to provide a better understanding of the present application, as it is embodied in the following description, with reference to the preferred embodiments of the present application and the accompanying drawings.
Drawings
FIG. 1 is a schematic diagram of a system for obtaining a stable high signal-to-noise spectrum according to one embodiment of the present application;
FIG. 2 is a schematic diagram of a spectrum acquired by a conventional spectrum acquisition method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a spectrum obtained by a conventional spectrum obtaining method according to another embodiment of the present application;
FIG. 4 is a flow chart of a method for obtaining a stable high signal-to-noise spectrum provided by one embodiment of the present application;
FIG. 5 is a schematic diagram of a stable high signal-to-noise spectrum provided by one embodiment of the present application;
FIG. 6 is a flow chart of a method for obtaining a stable high signal-to-noise spectrum according to another embodiment of the present application;
FIG. 7 is a flow chart of a method for obtaining a stable high signal-to-noise spectrum according to another embodiment of the present application;
FIG. 8 is a block diagram of an apparatus for obtaining a stable high signal-to-noise spectrum provided by one embodiment of the application;
FIG. 9 is a block diagram of an apparatus for obtaining a stable high signal-to-noise spectrum provided by another embodiment of the present application;
fig. 10 is a block diagram of an apparatus for obtaining a stable high signal-to-noise spectrum according to yet another embodiment of the present application.
Detailed Description
The following describes in further detail the embodiments of the present application with reference to the drawings and examples. The following examples are illustrative of the application and are not intended to limit the scope of the application.
Fig. 1 is a schematic structural diagram of a system for obtaining a stable spectrum with a high signal-to-noise ratio according to an embodiment of the present application, and as shown in fig. 1, the system at least includes a spectrum acquisition device 110 and a host computer 120 communicatively connected to the spectrum acquisition device.
As light passes through the sample, the sample absorbs, scatters, or reflects light of a different wavelength. The spectrum acquisition device 110 is used to detect the wavelength and intensity changes of the light as it passes through the sample, generating a spectrum of the sample.
In conventional spectral acquisition devices, the sample is typically held stationary during the acquisition of the sample. However, the conventional (whether liquid or solid) sample collection mode comprises a certain number of sub-samples (automatic or artificial repeated sample loading times), namely, multiple collection and averaging, so that a result is finally obtained. However, the state of the sample is different in each collection state, which results in inconsistent signal-to-noise ratio of the spectrum of the sample collected each time, and particularly refers to a spectrum with poor signal-to-noise ratio as shown in fig. 2. The spectrum with poor signal-to-noise ratio is also very poor in repeatability, and particularly, referring to the spectrum with poor signal-to-noise ratio shown in fig. 3, the repeatability of the result after the spectrum is predicted by the model is also poor correspondingly. Normally, the collected spectrum can be averaged for multiple times, namely, the multiple spectrums are averaged into 1 spectrum, so that the signal to noise ratio is improved, but the average is increased, the collection time is too long, the collection progress is affected, and the user experience is poor.
The present embodiment provides a method for obtaining a spectrum with a high signal-to-noise ratio and relatively consistent signal-to-noise ratio, and referring to fig. 4, the method specifically includes the following steps:
In step 401, when the spectrum acquisition device acquires each subsamples, the upper computer sends the initialized standard integration time corresponding to the subsamples to the spectrum acquisition device.
Optionally, under the condition that a subsample collection request of the spectrum collection device is received, the upper computer sends an initialization standard integration time corresponding to the subsample to the spectrum collection device. In other embodiments, the host computer may also send the initialized standard integration time corresponding to the next sub-sample when the waiting time after the updated integration time reaches the updated integration time, which does not limit the triggering manner of sending the initialized standard integration time by the host computer.
The standard integration time refers to a reference integration time preset according to the instrument characteristic and the sample property of the spectrometer in order to achieve a certain signal-to-noise ratio and detection sensitivity in the spectrum acquisition process. In this embodiment, the initializing standard integration time refers to the standard integration time when the first sample spectrum of the subsamples, i.e., the first sample spectrum, is acquired.
Subsamples are defined as a set of independent spectral acquisitions performed during the spectral acquisition process according to a specific integration time and repetition number. In this embodiment, each subsamples is composed of two spectra that are collected independently, so that the signal-to-noise ratio difference caused by the state change of the sample can be reduced, and the consistency and reliability of the spectrum data can be improved.
And before the upper computer sends the initialization standard integration time corresponding to the subsamples to the spectrum acquisition equipment, acquiring the initialization standard integration time. Optionally, the integration times of the initialization criteria corresponding to the different subsamples are the same or different. If the initialization standard integration time corresponding to different subsamples is different, the initialization standard integration time is obtained, wherein the initialization standard integration time comprises the steps of generating the initialization standard integration time corresponding to the first subsamples based on the instrument characteristic of the spectrum acquisition equipment and the sample property of the sample if the subsamples are the first subsamples of the sample, or determining the updated integration time of the last subsamples as the initialization standard integration time if the subsamples are the subsamples after the first subsamples.
In other embodiments, the initialization standard integration time may be sent by other devices, or may be acquired by the host computer based on the man-machine interaction interface, which is not limited by the manner of acquiring the initialization standard integration time.
Step 402, the spectrum acquisition device acquires an initialization standard integration time sent by an upper computer in communication with the spectrum acquisition device, performs spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum, and sends the first sample spectrum to the upper computer.
The first sample spectrum is used by the host computer to determine sample energy based on the first sample spectrum, and 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.
Step 403, the upper computer acquires a first sample spectrum acquired by the spectrum acquisition device based on the initialized standard integration time, determines sample energy based on the first sample spectrum, determines updated integration time used in 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.
The updated integration time is used for the spectrum acquisition equipment 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 subsamples.
In one example, determining sample energy based on a first sample spectrum includes integrating a spectral curve over a particular wavelength range to obtain a total light intensity corresponding to the particular wavelength range, and converting the total light intensity to a corresponding energy value via a preset calibration curve.
In one example, the updated integration time to be used at the next sampling is determined based on the sample energy, the preset standard energy, and the initialized standard integration time, represented by:
(sample energy/standard energy) initialize the standard integration time.
In this embodiment, by adjusting the integration time, the energy corresponding to the acquired spectrum of the second sample is close to the preset standard energy, so as to improve the signal-to-noise ratio and accuracy of the spectrum data.
Alternatively, the integration time need not be adjusted for sample energies that are not significantly different from the standard energies. Based on the above, the upper computer can also determine whether the sample energy exceeds the preset energy range, and if the sample energy exceeds the preset energy range, the step of determining the updated integration time used in the next sampling based on the sample energy, the preset standard energy and the initialized standard integration time is triggered to be executed.
Step 404, the spectrum acquisition device acquires updated integration time generated by the upper computer, resamples the static sample based on the updated integration time to obtain a second sample spectrum, takes the first sample spectrum and the second sample spectrum as a sub-sample, and triggers the execution step 401 to obtain a spectrum corresponding to each sub-sample respectively when the number of the sub-samples does not reach the preset number.
For example, 10 subsamples are equivalent to 10 cycles of steps 401-404, each cycle is performed to collect two sample spectra, and finally, the spectra of the number of subsamples are output, and the 10 subsamples correspond to 10 spectra.
Between two acquisitions of each subsamples, the integration time can be adjusted according to the result of the first acquisition to optimize the signal-to-noise ratio of the second acquisition, so that the integration time can be dynamically adjusted according to the actual energy level of the sample, and the acquisition efficiency is improved while the signal-to-noise ratio is ensured. For example, referring to a spectrum corresponding to each subsampled shown in fig. 5, it can be seen from fig. 5 that the repeatability and signal-to-noise ratio of the spectrum are better than those of fig. 2 and 3.
Optionally, referring to fig. 4, in step 405, in the case that the number of sub-samples reaches the preset number, the spectrum acquisition device predicts the spectrum corresponding to each sub-sample based on the pre-created spectrum prediction model to obtain a spectrum measurement value corresponding to each sub-sample, and determines the spectrum measurement value of the sample based on the spectrum measurement value corresponding to each sub-sample.
In one example, determining the spectral measurement of the sample based on the spectral measurement corresponding to each subsample includes determining an average of the spectral measurements corresponding to each subsample to obtain the spectral measurement.
For example, the preset number is 10,10 sub-samples correspond to 10 spectrums, 10 spectrum measurement values are obtained through model prediction of the 10 spectrums, each spectrum measurement value is averaged, and finally 1 spectrum measurement value, namely, the spectrum measurement value of the sample is output.
Alternatively, the spectrum prediction model may be a regression model, a random forest model, a support vector machine model, or the like, and the implementation manner of the spectrum preset model is not limited in this embodiment.
Alternatively, the spectral measurement value is determined based on the measurement requirement, and the spectral measurement value may be a concentration, a purity, an absorption coefficient, or the like of the sample, and the implementation of the spectral measurement value is not limited in this embodiment.
In summary, the system for obtaining a stable high signal-to-noise ratio spectrum provided by the embodiment includes obtaining an initialization standard integration time sent by an upper computer in communication with a spectrum acquisition device, performing spectrum sampling on a stationary sample based on the initialization standard integration time to obtain a first sample spectrum, sending the first sample spectrum to the upper computer to determine sample energy based on the first sample spectrum, determining an updated integration time used in next sampling based on the sample energy, preset standard energy and the initialization standard integration time, obtaining an updated integration time generated by the upper computer, re-sampling a stationary sample based on the updated integration time to obtain a second sample spectrum, taking the first sample spectrum and the second sample spectrum as sub-samples, triggering and executing steps of obtaining the initialization standard integration time sent by the upper computer in communication with the spectrum acquisition device and steps after the initialization standard integration time under the condition that the number of the sub-samples does not reach the preset number to obtain a spectrum corresponding to each sub-sample, solving the problems of low prediction result, poor repeatability, poor reproducibility and poor spectral research and development cost, and poor spectral reliability in the process of the spectrum, and the problem of the low signal-to-noise ratio. In addition, in the quantitative analysis of the model, the repeatability of a plurality of spectrum prediction results with high signal to noise ratio is also excellent. For solid sampling, the repeatability of the result of repeatedly measuring the sample for a plurality of times can be excellent, and the signal to noise ratio of the acquired spectrum is high and consistent.
Meanwhile, the signal-to-noise ratio and consistency of solid-liquid samples, especially solid samples (powder, particles, large particles, etc.), can be improved. The method is suitable for analyzing samples in all near infrared industries in the market, and has universality. And the equipment acquisition time is greatly reduced, the system integration cost is low and the efficiency is higher while the equipment performance is improved.
Fig. 6 is a flowchart of a method for obtaining a stable high snr spectrum according to an embodiment of the present application, where the method is applied to the system for obtaining a stable high snr spectrum shown in fig. 1, and the main execution body of each step is illustrated as a spectrum acquisition device 110 in the system. The method at least comprises the following steps:
Step 601, acquiring an initialization standard integration time sent by an upper computer in communication connection with the spectrum acquisition equipment;
Step 602, performing spectrum sampling on a static sample based on the initialized standard integration time to obtain a first sample spectrum;
Step 603, transmitting the first sample spectrum to the upper computer for the upper computer to determine sample energy based on the first sample spectrum, and determining updated integration time used in next sampling based on the sample energy, preset standard energy and the initialized standard integration time;
Step 604, obtaining the updated integration time generated by the upper computer;
step 605, resampling the stationary sample based on the updated integration time to obtain a second sample spectrum; taking the first sample spectrum and the second sample spectrum as a subsamples;
Step 606, triggering and executing step 601 to obtain a spectrum corresponding to each sub-sample when the number of the sub-samples does not reach the preset number.
Details of this embodiment are described in the system embodiments above.
Fig. 7 is a flowchart of a method for obtaining a stable high snr spectrum according to an embodiment of the present application, where the method is applied to the system for obtaining a stable high snr spectrum shown in fig. 1, and the main execution body of each step is illustrated as an upper computer 120 in the system. The method at least comprises the following steps:
Step 701, when spectrum acquisition equipment in communication connection with the upper computer acquires each subsamples, sending initialization standard integration time corresponding to the subsamples to the spectrum acquisition equipment;
step 702, acquiring a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time;
a step 703 of determining a sample energy based on the first sample spectrum;
step 704, determining an updated integration time used in the next sampling based on the sample energy, the preset standard energy and the initialized standard integration time;
Step 705, sending the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device resamples a stationary 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 subsamples.
Details of this embodiment are described in the system embodiments above.
Fig. 8 is a block diagram of an apparatus for obtaining a stable high signal-to-noise ratio spectrum according to an embodiment of the present application, and this embodiment is described by taking the apparatus as an example, where the apparatus is applied to the spectrum acquisition device 110 in the system for obtaining a stable high signal-to-noise ratio spectrum shown in fig. 1. The device at least comprises the following modules:
a first obtaining module 810, configured to obtain an initialization standard integration time sent by an upper computer communicatively connected to the spectrum acquisition device;
a first acquisition module 820 for performing spectrum sampling on the stationary sample based on the initialized standard integration time to obtain a first sample spectrum;
A spectrum transmitting module 830, configured to transmit the first sample spectrum to the upper computer, so that the upper computer determines sample energy based on the first sample spectrum; determining an updated integration time for use at a next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time;
a second obtaining module 820, configured to obtain the updated integration time generated by the upper computer;
A second acquisition module 830, configured to resample a stationary sample based on the updated integration time to obtain a second sample spectrum;
The number judging module 840 is configured to trigger the first obtaining module 810 to perform the step of obtaining the initialization standard integration time sent by the upper computer communicatively connected to the spectrum collecting device, to obtain a spectrum corresponding to each sub-sample, if the number of sub-samples does not reach the preset number.
For relevant details reference is made to the above embodiments.
Fig. 9 is a block diagram of an apparatus for obtaining a stable high snr spectrum according to an embodiment of the present application, and this embodiment is described by taking the upper computer 120 in the system for obtaining a stable high snr spectrum shown in fig. 1 as an example. The device at least comprises the following modules:
A first sending module 910, configured to send, when a spectrum acquisition device communicatively connected to the upper computer collects each sub-sample, an initialization standard integration time corresponding to the sub-sample to the spectrum acquisition device;
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;
An energy determination module 930 for determining a sample energy based on the first sample spectrum;
a time determining module 940, configured to determine an updated integration time used in the next sampling based on the sample energy, the preset standard energy, and the initialized standard integration time;
And a second sending module 950, configured to send the updated integration time to the spectrum acquisition device, so that the spectrum acquisition device resamples a stationary sample based on the updated integration time to obtain a second sample spectrum, and takes the first sample spectrum and the second sample spectrum as a sub-sample.
For relevant details reference is made to the above embodiments.
It should be noted that, when the apparatus for obtaining the stable high signal-to-noise ratio spectrum provided in the foregoing embodiment performs the stable high signal-to-noise ratio spectrum, only the division of the foregoing functional modules is used for illustration, and in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the apparatus for obtaining the stable high signal-to-noise ratio spectrum is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for obtaining the stable high signal-to-noise ratio spectrum provided in the above embodiment and the method embodiment for obtaining the stable high signal-to-noise ratio spectrum belong to the same concept, and the specific implementation process is detailed in the method embodiment and will not be described herein.
Fig. 10 is a block diagram of an apparatus for obtaining a stable high snr spectrum according to an embodiment of the present application, which may be the spectrum acquisition device 110 or the host computer 120 in the system for obtaining a stable high snr spectrum shown in fig. 1. The apparatus comprises at least a processor 1001 and a memory 1002.
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), PLA (Programmable Logic Array ). The processor 1001 may also include a main processor for processing data in the awake state, which is also called a CPU (Central Processing Unit ), and a coprocessor for processing data in the standby state, which is a low-power-consumption processor. In some embodiments, the processor 1001 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 1001 may also include an AI (ARTIFICIAL INTELLIGENCE ) processor for processing computing operations related to machine learning.
Memory 1002 may include one or more computer-readable storage media, which may be non-transitory. Memory 1002 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1002 is used to store at least one instruction for execution by processor 1001 to implement the method of obtaining a stable high signal-to-noise spectrum provided by a method embodiment of the present application.
In some embodiments, the means for obtaining a stable high signal-to-noise spectrum may optionally further comprise a peripheral interface and at least one peripheral. The processor 1001, the memory 1002, and the peripheral interfaces may be connected by buses or signal lines. The individual peripheral devices may be connected to the peripheral device interface via buses, signal lines or circuit boards. Illustratively, the peripheral devices include, but are not limited to, radio frequency circuitry, touch display screens, audio circuitry, and power supplies, among others.
Of course, the means for obtaining a stable high signal-to-noise spectrum may also comprise fewer or more components, as this embodiment is not limited.
Optionally, the present application further provides a computer readable storage medium having a program stored therein, the program being loaded and executed by a processor to implement the method of obtaining a stable high signal-to-noise ratio spectrum according to the above method embodiment.
Optionally, the present application further provides a computer product, which includes a computer readable storage medium having a program stored therein, the program being loaded and executed by a processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum according to the above method embodiment.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method of obtaining a stable high signal-to-noise spectrum for a spectrum acquisition device, the method comprising:
acquiring an initialization standard integration time sent by an upper computer in communication with the spectrum acquisition equipment;
Performing spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum;
The method comprises the steps of receiving a first sample spectrum from a host computer, sending the first sample spectrum to the host computer, and determining sample energy based on the first sample spectrum by the host computer;
Acquiring the updated integration time generated by the upper computer;
Resampling the stationary sample based on the updated integration time to obtain a second sample spectrum; taking the first sample spectrum and the second sample spectrum as a subsamples;
And triggering and executing the step of acquiring the initialization standard integration time sent by the upper computer which is in communication connection with the spectrum acquisition equipment and the subsequent step under the condition that the number of the subsamples does not reach the preset number, so as to obtain a spectrum corresponding to each subsamples.
2. The method according to claim 1, wherein the method further comprises:
under the condition that the number of the subsamples reaches the preset number, respectively predicting the spectrum corresponding to each subsample based on a pre-established spectrum prediction model to obtain a spectrum measurement value corresponding to each subsample;
and determining the spectrum measured value of the sample based on the spectrum measured value corresponding to each subsamples.
3. The method of claim 2, wherein the determining the spectral measurement of the sample based on the spectral measurement corresponding to each subsample comprises:
and determining the average value of the spectrum measured values corresponding to the subsamples to obtain the spectrum measured values.
4. A method for obtaining a stable high signal-to-noise spectrum for a host computer, the method comprising:
When spectrum acquisition equipment in communication with the upper computer acquires each subsamples, the spectrum acquisition equipment is sent with initialization standard integration time corresponding to the subsamples;
acquiring 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 for use at a next sampling based on the sample energy, a preset standard energy, and the initialization standard integration time;
And sending the updated integration time to the spectrum acquisition equipment so that the spectrum acquisition equipment resamples a 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 subsamples.
5. The method of claim 4, wherein the determining an updated integration time for use in a next sample based on the sample energy, a preset standard energy, and the initialization standard integration time is represented by:
(sample energy/standard energy) initialize the standard integration time.
6. The method according to claim 4, wherein the method further comprises:
determining whether the sample energy exceeds a preset energy range;
And if the sample energy exceeds the preset energy range, triggering and executing the step of determining the updated integration time used in the next sampling based on the sample energy, the preset standard energy and the initialized standard integration time.
7. The method of claim 4, wherein prior to sending the initialization standard integration time corresponding to the subsamples to the spectral acquisition device, further comprising:
If the subsamples are the first subsamples of the sample, generating an initialization standard integration time corresponding to the first subsamples based on the instrument characteristics of the spectrum acquisition equipment and the sample properties of the sample;
Or alternatively
And if the subsamples are the subsamples after the first subsamples, determining the updated integration time of the last subsamples as the initialization standard integration time.
8. An apparatus for obtaining a stable high signal-to-noise ratio spectrum, the apparatus comprising a processor and a memory, the memory having stored therein a program that is loaded and executed by the processor to implement the method for obtaining a stable high signal-to-noise ratio spectrum of any of claims 1-7.
9. A computer readable storage medium, characterized in that the storage medium has stored therein a program which, when executed by a processor, is adapted to carry out the method of obtaining a stable high signal to noise ratio spectrum according to any one of claims 1 to 7.
10. A system for obtaining stable high signal-to-noise ratio spectrum is characterized by comprising spectrum acquisition equipment and an upper computer which is in communication connection with the spectrum acquisition equipment;
The upper computer is used for sending an initialization standard integration time corresponding to each subsample to the spectrum acquisition equipment when the spectrum acquisition equipment in communication connection with the upper computer acquires each subsample;
The spectrum acquisition device is used for acquiring an initialization standard integration time sent by an upper computer in communication with the spectrum acquisition device, performing spectrum sampling on a static sample based on the initialization standard integration time to obtain a first sample spectrum, sending the first sample spectrum to the upper computer so that the upper computer can determine sample energy based on the first sample spectrum, and determining updated integration time used in next sampling based on the sample energy, preset standard energy and the initialization standard integration time;
The upper computer is also used for acquiring a first sample spectrum acquired by the spectrum acquisition device based on the initialization standard integration time, determining sample energy based on the first sample spectrum, determining updated integration time used in next sampling based on the sample energy, preset standard energy and the initialization standard integration time, transmitting the updated integration time to the spectrum acquisition device so that the spectrum acquisition device resamples a static sample based on the updated integration time to acquire a second sample spectrum, and taking the first sample spectrum and the second sample spectrum as a subsamples;
the spectrum acquisition equipment is used for acquiring the updated integration time generated by the upper computer;
resampling the stationary sample based on the updated integration time to obtain a second sample spectrum;
And triggering and executing the step of acquiring the initialization standard integration time sent by the upper computer and the subsequent step to obtain one spectrum corresponding to each sub-sample respectively under the condition that the number of the sub-samples does not reach the preset number.
CN202411328528.1A 2024-09-24 2024-09-24 Methods, apparatus, media and systems for obtaining stable high signal-to-noise ratio spectra Active CN119164908B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411328528.1A CN119164908B (en) 2024-09-24 2024-09-24 Methods, apparatus, media and systems for obtaining stable high signal-to-noise ratio spectra

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411328528.1A CN119164908B (en) 2024-09-24 2024-09-24 Methods, apparatus, media and systems for obtaining stable high signal-to-noise ratio spectra

Publications (2)

Publication Number Publication Date
CN119164908A true CN119164908A (en) 2024-12-20
CN119164908B CN119164908B (en) 2025-11-18

Family

ID=93889776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411328528.1A Active CN119164908B (en) 2024-09-24 2024-09-24 Methods, apparatus, media and systems for obtaining stable high signal-to-noise ratio spectra

Country Status (1)

Country Link
CN (1) CN119164908B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5528037A (en) * 1995-06-08 1996-06-18 Trw Inc. Band analysis system
US6122052A (en) * 1998-04-27 2000-09-19 Perkin Elmer Llc Computer operated spectrometric instrument and associated calculator
CN109916852A (en) * 2019-01-31 2019-06-21 上海禾赛光电科技有限公司 A kind of laser gas remote measurement instrument signal acquisition method and system
CN110196243A (en) * 2019-05-17 2019-09-03 广西科技大学 Improve the spectra collection method of Raman spectrum signal-to-noise ratio
CN114255404A (en) * 2022-03-01 2022-03-29 浙江启真信息科技有限公司 Target spectral information acquisition method, device and medium
CN114494346A (en) * 2022-01-18 2022-05-13 中国电子科技集团公司第十一研究所 Infrared image acquisition method and device with adjustable integration time
CN116760491A (en) * 2023-07-19 2023-09-15 杭州电子科技大学 A signal-to-noise ratio estimation method based on deep learning
CN116929549A (en) * 2023-07-03 2023-10-24 重庆川仪自动化股份有限公司 Spectrometer control system, method, electronic device and storage medium
CN118641472A (en) * 2024-05-27 2024-09-13 重庆电子工程职业学院 A near-infrared diffuse reflectance spectrum sampling device and sampling method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5528037A (en) * 1995-06-08 1996-06-18 Trw Inc. Band analysis system
US6122052A (en) * 1998-04-27 2000-09-19 Perkin Elmer Llc Computer operated spectrometric instrument and associated calculator
CN109916852A (en) * 2019-01-31 2019-06-21 上海禾赛光电科技有限公司 A kind of laser gas remote measurement instrument signal acquisition method and system
CN110196243A (en) * 2019-05-17 2019-09-03 广西科技大学 Improve the spectra collection method of Raman spectrum signal-to-noise ratio
CN114494346A (en) * 2022-01-18 2022-05-13 中国电子科技集团公司第十一研究所 Infrared image acquisition method and device with adjustable integration time
CN114255404A (en) * 2022-03-01 2022-03-29 浙江启真信息科技有限公司 Target spectral information acquisition method, device and medium
CN116929549A (en) * 2023-07-03 2023-10-24 重庆川仪自动化股份有限公司 Spectrometer control system, method, electronic device and storage medium
CN116760491A (en) * 2023-07-19 2023-09-15 杭州电子科技大学 A signal-to-noise ratio estimation method based on deep learning
CN118641472A (en) * 2024-05-27 2024-09-13 重庆电子工程职业学院 A near-infrared diffuse reflectance spectrum sampling device and sampling method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KIM, JH等: "Adaptive optimization of reference intensity for optical coherence imaging using galvanometric mirror tilting method", 《OPTICS COMMUNICATION》, vol. 351, 15 September 2015 (2015-09-15), pages 57 - 62 *

Also Published As

Publication number Publication date
CN119164908B (en) 2025-11-18

Similar Documents

Publication Publication Date Title
CN109983348A (en) Techniques for Implementing Portable Spectrum Analyzers
CN108156452B (en) Method, device and equipment for detecting sensor and storage medium
CN103808918A (en) Image-sensor-based detection system of colloidal gold immunoassay
CN119164908B (en) Methods, apparatus, media and systems for obtaining stable high signal-to-noise ratio spectra
CN111766209B (en) Method and device for analyzing milk components based on UV/visible spectroscopy
CN112816425B (en) A method to optimize the whole blood sample detection process using HGB calibration capabilities
CN109444060B (en) Solution concentration detection method, device, equipment and storage medium
Kim et al. Artificial intelligence in diagnostics: enhancing urine test accuracy using a mobile phone–based reading system
US20230393062A1 (en) Moisture and organic matter prediction using near infrared light
CN118329829A (en) Soil organic matter detection system and method
CN115452779B (en) Detection method, device, equipment and storage medium of transmittance distribution
CN115032172A (en) Bottled oral liquid quality nondestructive rapid detection device based on near infrared spectrum
CN109444061A (en) Solution concentration detection method, device, equipment and storage medium
CN117309833A (en) Portable rapid uranium detection system and method
CN117807561A (en) Method for acquiring substance concentration prediction model, urine substance detection method and system
CN114565085A (en) Training method for concentration detection model, concentration detection method, device, electronic device and storage medium
CN116593570A (en) Trace element analyzer detection limit performance test method, device and electronic equipment
CN116087194A (en) Portable explosive rapid analysis detector
CN207248730U (en) A biochemical analyzer for measuring blood and urine
CN113640272A (en) A spectral library establishment and detection method and application based on a portable Raman spectrometer
CN108169157A (en) Sulfur hexafluoride compensation method and device
CN112598283A (en) Building safety evaluation method, device, equipment and storage medium
CN114609662A (en) Portable environment natural radioactivity detection system and method based on peak finding mode
CN114526818B (en) Spectral measurement method, device, spectrometer and storage medium
CN113358594B (en) Material component analysis system, method, device and medium based on spectrum detection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant