A spectrum measurement method and device
By updating the modulation method in spectral measurement, the signal-to-noise ratio of the original echo signal is improved, thereby solving the problem of low spectral measurement accuracy caused by ambient light interference, and achieving higher spectral measurement accuracy.
Patent Information
- Application Number
- CN202110580785.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2041-05-26
AI Technical Summary
When performing non-contact spectroscopy measurements, ambient light interference results in low accuracy of the reflection spectrum.
By updating the modulation method, the signal-to-noise ratio of the obtained original echo signal is greater than or equal to the signal-to-noise ratio threshold, thereby reducing interference to the reflected spectrum. The specific methods include obtaining the modulated echo signal, demodulation and obtaining the original echo signal, calculating the signal-to-noise ratio, and updating the target modulation method according to the signal-to-noise ratio until the signal-to-noise ratio conditions are met.
Improves the accuracy of spectral measurements and reduces the interference of ambient light on the measurement results.
Smart Images

Figure CN115406530B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of spectral detection, and in particular to a spectral measurement method and device. Background Art
[0002] Spectral analysis is an important means of natural science analysis, which can be used to detect physical structure, chemical composition and other indicators of objects. Spectral analysis mainly obtains the spectral information of the object under test through the self-luminescence of the object under test or the interaction with the light source, thereby realizing detection and analysis.
[0003] Generally, spectrometers and other equipment used for spectral analysis in laboratories are large in size, but spectral analysis can be used in many applications in life. Therefore, the miniaturization of spectrometers is an important trend at present. For example, integrating miniaturized point spectra and even hyperspectral imaging devices to the end side (such as mobile phones, watches, large screens, etc.) can obtain information in more dimensions.
[0004] When a miniaturized spectrometer is used for non-contact (there is a distance between the spectrometer and the object being measured) spectral measurement, ambient light will interfere with the spectral measurement, so the obtained reflection spectrum is greatly interfered, resulting in low spectral measurement accuracy. Summary of the invention
[0005] The embodiment of the present application provides a spectral measurement method and device, which updates the modulation mode so that the signal-to-noise ratio of the obtained original echo signal is greater than or equal to the signal-to-noise ratio threshold, thereby reducing the interference of the reflection spectrum and improving the accuracy of the spectral measurement.
[0006] In a first aspect, an embodiment of the present application provides a spectrum measurement method, which may include:
[0007] Acquire a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source using a target modulation method, and the light emitted by the light source includes light of at least one wavelength;
[0008] Then, an original echo signal corresponding to each wavelength of the at least one wavelength is obtained after demodulating the modulated echo signal, wherein a demodulation mode adopted by the demodulation corresponds to the target modulation mode;
[0009] Further, obtaining a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength;
[0010] Determining whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold among at least one signal-to-noise ratio corresponding to the at least one original echo signal;
[0011] If so, the original echo signal corresponding to the first signal-to-noise ratio is obtained, and the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, until at least one signal-to-noise ratio corresponding to at least one original echo signal is greater than or equal to the signal-to-noise ratio threshold, and a reflection spectrum associated with the updated target modulation mode is output, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal related to the updated target modulation mode.
[0012] By implementing the embodiment of the present application, based on the incident signal obtained after modulating the light emitted by the light source using the target modulation mode, the signal-to-noise ratio of each original echo signal in at least one original signal corresponding to at least one wavelength included in the light source is obtained, and if it is determined that there is a first signal-to-noise ratio less than the signal-to-noise ratio threshold value in the at least one signal-to-noise ratio, the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio until the signal-to-noise ratio condition (all greater than or equal to the signal-to-noise ratio threshold value) is met, and the reflection spectrum is obtained. That is, the target modulation mode is updated when the signal-to-noise ratio of the original echo signal is small, and the light emitted by the light source is processed using the updated modulation mode so that the signal-to-noise ratio of the obtained original echo signal is improved, thereby reducing the interference of the reflection spectrum and improving the accuracy of the spectrum measurement.
[0013] In a possible implementation manner, updating the target modulation mode based on the original echo signal corresponding to the first signal-to-noise ratio includes:
[0014] Based on the original echo signal corresponding to the first signal-to-noise ratio, a two-dimensional image is obtained, where the two-dimensional image is obtained by splicing at least two original echo signals corresponding to the first signal-to-noise ratio;
[0015] A neural network model is used to perform adaptive algorithm processing on the two-dimensional image to obtain an updated target modulation mode.
[0016] By implementing this embodiment, an updated target modulation mode can be obtained based on the original echo signal corresponding to the first signal-to-noise ratio and the neural network model, so that an original echo signal with a higher signal-to-noise ratio can be obtained based on the updated modulation mode, thereby better resisting the interference of ambient light and improving the accuracy of spectral measurement.
[0017] In a possible implementation manner, before acquiring the modulated echo signal, the method further includes:
[0018] The target modulation method is used to modulate the light emitted by the light source to obtain the incident signal.
[0019] By implementing this embodiment, the interference of ambient light on spectral measurement can be overcome by modulating the light emitted by the light source.
[0020] In a possible implementation, at least one wavelength of light included in the light source overlaps with each other in space, and the updated target modulation mode includes a modulation mode; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the light emitted by the light source is modulated using the target modulation mode, including:
[0021] The updated target modulation mode is used to modulate each wavelength of the at least one wavelength emitted by the light source.
[0022] By implementing this embodiment, for a light source that emits at least one wavelength of light and the wavelengths of light overlap each other in space, when using the light source to perform spectral measurement, the target modulation mode can be updated and the light of all wavelengths included in the light source can be re-modulated, so that the signal-to-noise ratio of the original echo signal obtained is improved, thereby enhancing the anti-interference effect and improving the accuracy of spectral measurement.
[0023] In a possible implementation, at least one wavelength of light included in the light source is separated from each other in space, the updated modulation mode includes N modulation modes, N is the number of the first signal-to-noise ratios that are less than the signal-to-noise ratio threshold in at least one signal-to-noise ratio, N is a positive integer, one modulation mode corresponds to one first wavelength, and the first wavelength is a wavelength associated with the first signal-to-noise ratio; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the light emitted by the light source is modulated using the target modulation mode, including:
[0024] For each modulation mode among the N modulation modes, the modulation mode is used to modulate light of a first wavelength corresponding to the modulation mode in the light emitted by the light source.
[0025] By implementing this embodiment, for a light source that emits at least one wavelength of light and the lights of these wavelengths are separated from each other in space, in the process of using the light source to perform spectral measurement, after updating the target modulation mode, N modulation modes are obtained, and the light of the first wavelength corresponding to the specific modulation mode emitted by the light source is re-modulated using the specific modulation mode, so that the corresponding modulation modes are respectively used for lights of different wavelengths, thereby ensuring that the signal-to-noise ratio of the original echo signal obtained can be improved to meet the signal-to-noise ratio condition with the minimum number of target modulation mode updates, thereby improving the measurement speed while improving the accuracy of spectral measurement.
[0026] In a possible implementation, the method further includes:
[0027] The target modulation method before updating is used to modulate light of wavelengths other than the N first wavelengths corresponding to the N modulation methods in at least one wavelength of light emitted by the light source.
[0028] By implementing this embodiment, for a light source that emits at least one wavelength of light and the wavelengths of light are separated from each other in space, when using the light source to perform spectral measurement, after updating the target modulation mode, for light of a wavelength whose corresponding signal-to-noise ratio was previously greater than or equal to the signal-to-noise ratio threshold, the target modulation mode before the update is still used to modulate it, thereby avoiding increasing processing costs and affecting measurement efficiency.
[0029] In a possible implementation manner, the updated target modulation mode includes any one of the following modulation modes: sine wave modulation, square wave modulation, minimum frequency shift keying, frequency shift keying, and phase shift keying.
[0030] By implementing this embodiment, different modulation modes can be used to modulate the light emitted by the light source, thereby enhancing the anti-interference effect and improving the accuracy of spectral measurement.
[0031] In one possible implementation, the neural network model includes a convolutional neural network model.
[0032] In a second aspect, an embodiment of the present application provides a spectrum measurement device, the device comprising:
[0033] A first acquisition unit is used to acquire a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source in a target modulation manner, and the light emitted by the light source includes light of at least one wavelength;
[0034] A second acquisition unit, used for acquiring an original echo signal corresponding to each wavelength of the at least one wavelength obtained by demodulating the modulated echo signal, wherein a demodulation mode adopted by the demodulation corresponds to the target modulation mode;
[0035] A third acquisition unit, configured to acquire a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength;
[0036] A determining unit, configured to determine whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold value among at least one signal-to-noise ratio corresponding to the at least one original echo signal;
[0037] an updating unit, configured to obtain an original echo signal corresponding to the first signal-noise ratio if it is determined that there is a first signal-noise ratio less than a signal-noise ratio threshold among the at least one signal-noise ratio corresponding to the at least one original echo signal, and update the target modulation mode based on the original echo signal corresponding to the first signal-noise ratio until the at least one signal-noise ratio corresponding to the at least one original echo signal is greater than or equal to the signal-noise ratio threshold;
[0038] An output unit is used to output a reflection spectrum associated with an updated target modulation mode, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal related to the updated target modulation mode.
[0039] In a possible design, the updating unit is specifically used for:
[0040] A first processing unit, configured to obtain a two-dimensional image based on an original echo signal corresponding to the first signal-to-noise ratio, wherein the two-dimensional image is obtained by splicing at least two original echo signals corresponding to at least two of the first signal-to-noise ratios;
[0041] The second processing unit is used to use a neural network model to perform adaptive algorithm processing on the two-dimensional image to obtain an updated target modulation mode.
[0042] In one possible design, the device further includes:
[0043] The first modulation unit is used to modulate the light emitted by the light source by adopting the target modulation method to obtain the incident signal.
[0044] In a possible design, the at least one wavelength of light included in the light source overlaps with each other in space, and the updated target modulation mode includes a modulation mode; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the first modulation unit is specifically used to:
[0045] The updated target modulation mode is used to modulate each wavelength of the at least one wavelength emitted by the light source.
[0046] In a possible design, the at least one wavelength of light included in the light source is separated from each other in space, the updated modulation mode includes N modulation modes, N is the number of the first signal-to-noise ratios that are less than the signal-to-noise ratio threshold in the at least one signal-to-noise ratio, N is a positive integer, one modulation mode corresponds to one first wavelength, and the first wavelength is a wavelength associated with the first signal-to-noise ratio; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the first modulation unit is specifically used to:
[0047] For each of the N modulation modes, the modulation mode is used to modulate light of a first wavelength corresponding to the modulation mode in the light emitted by the light source.
[0048] In one possible design, the device further includes:
[0049] The second modulation unit is used to modulate the light of wavelengths other than the N first wavelengths corresponding to the N modulation modes in the at least one wavelength of light emitted by the light source by adopting the target modulation mode before updating.
[0050] In one possible design, the updated target modulation mode includes any one of the following modulation modes: sinusoidal wave modulation, square wave modulation, minimum frequency shift keying, frequency shift keying, and phase shift keying.
[0051] In one possible design, the neural network model includes a convolutional neural network model.
[0052] In a third aspect, an embodiment of the present application provides a spectrum measurement device, comprising a processor. The processor is coupled to a memory and can be used to execute instructions in the memory to implement the method of the first aspect. Optionally, the communication device also includes a memory. Optionally, the communication device also includes a communication interface, and the processor is coupled to the communication interface.
[0053] In a fourth aspect, an embodiment of the present application provides a processor, comprising: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method of the first aspect.
[0054] In the specific implementation process, the processor can be one or more chips, the input circuit can be an input pin, the output circuit can be an output pin, and the processing circuit can be a transistor, a gate circuit, a trigger, and various logic circuits. The input signal received by the input circuit can be, for example, but not limited to, received and input by a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to a transmitter and transmitted by the transmitter, and the input circuit and the output circuit can be the same circuit, which is used as an input circuit and an output circuit at different times. The embodiments of the present application do not limit the specific implementation methods of the processor and various circuits.
[0055] In a fifth aspect, an embodiment of the present application provides a processing device, including a processor and a memory. The processor is used to read instructions stored in the memory, and can receive signals through a receiver and transmit signals through a transmitter to execute the method of the first aspect.
[0056] Optionally, the number of the processors is one or more, and the number of the memories is one or more.
[0057] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.
[0058] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips respectively. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.
[0059] The processing device in the fifth aspect may be one or more chips. The processor in the processing device may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory, which may be integrated in the processor or located outside the processor and exist independently.
[0060] In a sixth aspect, an embodiment of the present application provides a computer program product, which includes: a computer program (also referred to as code, or instructions), which enables a computer to execute the method of the first aspect when the computer program is executed.
[0061] In a seventh aspect, an embodiment of the present application provides a readable storage medium, which stores a computer program (also referred to as code, or instruction) that, when executed on a computer, enables the method of the first aspect described above to be implemented.
[0062] In an eighth aspect, a chip system is provided, the chip system comprising a processor and an interface circuit, the processor being used to call and run a computer program (also referred to as code or instruction) stored in the memory from a memory to implement the functions involved in the first aspect, and in a possible design, the chip system further comprises a memory, the memory being used to store necessary program instructions and data. The chip system may be composed of a chip, or may include a chip and other discrete devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The following is an introduction to the drawings used in the embodiments of the present application.
[0064] Figure 1 is a flow chart of a spectrum measurement method provided in an embodiment of the present application;
[0065] Figure 2 This is a schematic diagram of a spectrum measurement process provided by an embodiment of the present application;
[0066] Figure 3 It is a structural diagram of a convolutional neural network model provided in an embodiment of the present application;
[0067] Figure 4A is a schematic diagram of a spectral measurement scenario provided in an embodiment of the present application;
[0068] Figure 4B is a schematic diagram of another spectral measurement scenario provided in an embodiment of the present application;
[0069] Figure 5 is a schematic diagram of another spectral measurement scenario provided in an embodiment of the present application;
[0070] Figure 6 is a flow chart of another spectral measurement method provided in an embodiment of the present application;
[0071] Figure 7 It is a skin spectrum provided in an embodiment of the present application;
[0072] Figure 8 is an architecture diagram of a spectral measurement system provided in an embodiment of the present application;
[0073] Fig. 9 is a schematic block diagram of a spectrum measurement device provided in an embodiment of the present application;
[0074] Fig.10 is a schematic block diagram of another spectrum measurement device provided in an embodiment of the present application;
[0075] Fig.11 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0076] The following describes the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. The terms used in the implementation method part of the embodiments of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.
[0077] The terms "first" and "second" in the specification, claims and drawings of this application are only used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0078] The "embodiment" mentioned in this article means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0079] In the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".
[0080] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application.
[0081] See also Figure 1 , Figure 1 A schematic diagram of a spectrum measurement method provided in an embodiment of the present application. Figure 1 As shown, the spectrum measurement method includes but is not limited to the following steps 110 to 160:
[0082] Step 110, obtaining a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source in a target modulation manner, and the light emitted by the light source includes light of at least one wavelength.
[0083] This application can be applied to the field of spectrum detection in the field of terminal artificial intelligence. Figure 2 As shown, Figure 2 A schematic diagram of a spectrum measurement process provided in an embodiment of the present application, comprising Figure 2 It can be seen that in the process of spectral measurement, the light emitted by the light source is irradiated onto the object to be measured, and an echo is obtained after being reflected by the object to be measured, and then a reflection spectrum is obtained. When there is a certain distance between the light source and the object to be measured, the light irradiated onto the surface of the object includes the light emitted by the light source and the ambient light, that is, the spectral information of the object to be measured is obtained by measurement in a long-distance environment, which is easily interfered by the ambient light. In order to reduce the interference of ambient light, the light emitted by the light source can be modulated. Therefore, an incident signal is obtained by modulating the light emitted by the light source using a target modulation method, and the incident signal is irradiated onto the object to be measured, and a modulated echo signal is obtained after being reflected by the object to be measured. Among them, the light emitted by the light source includes light of at least one wavelength.
[0084] For the incident signal irradiated on the object to be measured for the first time, the target modulation mode used can be a general modulation mode, such as sine wave modulation or square wave modulation. According to the specific scene requirements, a general modulation mode (such as sine wave modulation) can be set as the initial target modulation mode. The light emitted by the light source is modulated using the target modulation mode to obtain the incident signal, and then the modulated echo signal is obtained.
[0085] Step 120, obtaining an original echo signal corresponding to each wavelength in the at least one wavelength after demodulating the modulated echo signal, wherein a demodulation method adopted by the demodulation corresponds to the target modulation method.
[0086] Specifically, after acquiring the modulated echo signal, the modulated echo signal is demodulated to obtain the original echo signal corresponding to each wavelength in at least one wavelength included in the light emitted by the light source. The demodulation method used in the demodulation includes coherent demodulation and incoherent demodulation methods. Exemplarily, the modulated echo signal can be demodulated by a phase-locked amplifier. The phase-locked amplifier uses a reference signal with the same frequency and fixed phase relationship as the signal to be measured as a reference to filter out noise with a different frequency, thereby extracting useful signal components. The demodulation method used to demodulate the modulated echo signal corresponds to the target debugging method for obtaining the modulated echo signal. For example, a modulated echo signal is obtained by using sinusoidal wave modulation as the target modulation method, then a coherent demodulation method using a sinusoidal wave can be used to obtain the corresponding original echo signal.
[0087] Step 130: Obtain a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength.
[0088] In the embodiment of the present application, for at least one original echo signal corresponding to at least one wavelength obtained by demodulation, a signal-to-noise ratio of each original echo signal is obtained, wherein the signal-to-noise ratio may be obtained through measurement.
[0089] Step 140: Determine whether there is a first signal-to-noise ratio that is less than a signal-to-noise ratio threshold among at least one signal-to-noise ratio corresponding to the at least one original echo signal.
[0090] Specifically, after obtaining at least one signal-to-noise ratio corresponding to the at least one original echo signal, it is determined whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold in the at least one signal-to-noise ratio. The signal-to-noise ratio threshold can be set based on experience, and the signal-to-noise ratio threshold can reflect the tolerance to ambient light interference when performing spectral measurement. It is understandable that when the acquired signal-to-noise ratio is greater than or equal to the signal-to-noise ratio threshold, the influence of ambient light interference on the obtained spectrum is relatively small, so a spectral measurement result that meets the accuracy requirement can be obtained.
[0091] Step 150: If yes, obtain the original echo signal corresponding to the first signal-to-noise ratio, and update the target modulation mode based on the original echo signal corresponding to the first signal-to-noise ratio until at least one signal-to-noise ratio corresponding to at least one original echo signal is greater than or equal to the signal-to-noise ratio threshold.
[0092] In an embodiment of the present application, if it is determined that there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold value in at least one signal-to-noise ratio corresponding to at least one original echo signal obtained, then the original echo signal corresponding to the first signal-to-noise ratio is obtained, wherein the number of the first signal-to-noise ratios may be one or more, that is, the low signal-to-noise ratio less than the signal-to-noise ratio threshold value includes one or more signal-to-noise ratios. Therefore, the original echo signal corresponding to the first signal-to-noise ratio may include one or more original echo signals. After obtaining the original echo signal corresponding to the first signal-to-noise ratio, the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio until at least one signal-to-noise ratio corresponding to the at least one original echo signal is greater than or equal to the signal-to-noise ratio. Different modulation modes have different signal-to-noise ratios, that is, the modulation mode can affect the signal-to-noise ratio. Therefore, the obtained signal-to-noise ratio can be improved by updating the target modulation mode, thereby reducing the interference of ambient light on the reflected spectrum and improving the accuracy of spectral measurement.
[0093] After the target modulation mode is updated, the updated target modulation mode can be reused to modulate the light emitted by the light source to obtain a modulated echo signal, and further, the signal-to-noise ratio of the original echo signal corresponding to the modulated echo signal is obtained, so as to judge again whether at least one signal-to-noise ratio corresponding to at least one original echo signal is greater than or equal to the signal-to-noise ratio. Different modulation modes have different anti-noise effects. By updating the modulation mode, that is, determining the corresponding modulation mode according to the obtained original echo signal, and then using the updated modulation mode to modulate the light emitted by the light source, a measurement result that meets the signal-to-noise ratio condition can be obtained, thereby improving the accuracy of spectral measurement. The spectral measurement method provided in the embodiment of the present application can adaptively select a suitable modulation mode to obtain a spectrum, and further, it can also obtain spectral information that changes with time. Compared with the measurement method that uses a simple and single modulation mode to obtain a spectrum, the method provided in the present application can reduce the interference of ambient light, obtain a better quality spectrum, and improve the accuracy of spectral measurement.
[0094] Specifically, updating the target modulation mode based on the original echo signal corresponding to the first signal-to-noise ratio may include the following process:
[0095] Based on the original echo signal corresponding to the first signal-to-noise ratio, obtaining a two-dimensional image, wherein the two-dimensional image is obtained by splicing at least two original echo signals corresponding to at least two of the first signal-to-noise ratios;
[0096] A neural network model is used to perform adaptive algorithm processing on the two-dimensional image to obtain an updated target modulation mode.
[0097] That is, the updated target modulation mode can be determined by using the neural network model. The original echo signal corresponding to the first signal-to-noise ratio is spliced within a preset time window to obtain a two-dimensional image. Then, the two-dimensional image is input into the neural network model, and the output obtained is the updated target modulation mode. The neural network model may include a convolutional neural network model. Figure 3 As shown, Figure 3It is a structural diagram of a convolutional neural network model. The objective function of the convolutional neural network model is mainly composed of the signal-to-noise ratio, power efficiency and bandwidth efficiency of the signal. The updated target modulation mode obtained based on the neural network model can improve the signal-to-noise ratio of the signal, and the corresponding power efficiency and power efficiency meet the preset requirements. Optionally, in the process of determining the updated target modulation mode, the characteristics of the measured object, spatial attenuation, bit error rate and the difficulty of implementing the modulation mode can also be considered. In combination with one or more of these information, the most suitable modulation mode is obtained through an adaptive algorithm, so that the signal-to-noise ratio of the signal is improved and meets the relevant requirements. In one embodiment, the original echo signal is obtained by demodulation, and the demodulation mode used is coherent demodulation, so a reference signal can be used. Therefore, in the process of using the neural network model to realize the adaptive determination of the updated target modulation mode, the reference signal can be spliced with the original echo signal corresponding to the first signal-to-noise ratio to obtain a two-dimensional image. Splicing with a reference signal can play a correction role, making the measurement result more accurate.
[0098] In one embodiment, the at least one wavelength of light included in the light source overlaps with each other in space, and the updated target modulation mode includes a modulation mode; after updating the target modulation mode based on the original echo signal corresponding to the first signal-to-noise ratio, modulating the light emitted by the light source using the target modulation mode includes the following process:
[0099] The updated target modulation mode is used to modulate each wavelength of the at least one wavelength emitted by the light source.
[0100] In this embodiment, the light source can be a wide-spectrum light source, so the light source generates wide-spectrum light, and at least one wavelength of light included in the wide-spectrum light overlaps with each other in space. Correspondingly, the updated target modulation mode includes a modulation mode, and after the target modulation mode is updated, the updated target modulation mode is used again to re-modulate all wavelengths of light emitted by the light source. At least one signal-to-noise ratio corresponding to at least one original echo signal is obtained based on the updated target modulation mode. If there is still a first signal-to-noise ratio less than the signal-to-noise ratio threshold value in the at least one signal-to-noise ratio, the target modulation mode is continuously updated until the at least one signal-to-noise ratio is greater than or equal to the signal-to-noise ratio threshold value. Therefore, by continuously updating the target modulation mode, a new modulation mode is obtained after each update, and after one or more cycles, the measurement result can be obtained until the signal-to-noise ratio condition is met. It can be understood that after the target modulation mode is updated, the updated target modulation mode is used to re-modulate the light emitted by the light source to obtain a modulated echo signal, and the modulated echo signal is demodulated to obtain the original echo signal of a different wavelength. The demodulation mode used during demodulation corresponds to the updated target modulation mode, that is, after the target modulation mode is updated, the demodulation mode is also updated accordingly, so that the modulation mode and the demodulation mode always satisfy the corresponding relationship.
[0101] In one embodiment, the at least one wavelength of light included in the light source is separated from each other in space, the updated modulation mode includes N modulation modes, N is the number of the first signal-to-noise ratios that are less than the signal-to-noise ratio threshold in the at least one signal-to-noise ratio, N is a positive integer, one modulation mode corresponds to one first wavelength, and the first wavelength is a wavelength associated with the first signal-to-noise ratio; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the light emitted by the light source is modulated by using the target modulation mode, including the following process:
[0102] For each of the N modulation modes, the modulation mode is used to modulate light of a first wavelength corresponding to the modulation mode in the light emitted by the light source.
[0103] In this embodiment, the light of at least one wavelength included in the light source is separated from each other in space, so the light source can be a discrete multi-wavelength coherent light source. Correspondingly, the updated modulation mode includes N modulation modes, one modulation mode corresponds to a first wavelength, and the first wavelength is the wavelength of the original echo signal corresponding to the first signal-to-noise ratio, and the N first wavelengths are wavelengths in at least one wavelength included in the light source. Therefore, after the target modulation mode is updated, for each modulation mode in the N modulation modes, the modulation mode is used to modulate the light of the first wavelength corresponding to the modulation mode in the light emitted by the light source. That is, a modulation mode in the N modulation modes is used to modulate a light of a first wavelength in the light source, and the modulation mode and the first wavelength meet a corresponding relationship. Based on the updated target modulation mode, at least one signal-to-noise ratio corresponding to the at least one original echo signal is obtained. If there is still a first signal-to-noise ratio less than the signal-to-noise ratio threshold in the at least one signal-to-noise ratio, the target modulation mode is continuously updated until the at least one signal-to-noise ratio is greater than or equal to the signal-to-noise ratio threshold. Therefore, by continuously updating the target modulation mode, one or more new modulation modes are obtained after each update, and the measurement result can be obtained after one or more cycles until the signal-to-noise ratio condition is met.
[0104] Optionally, the target modulation mode before updating is used to modulate light of wavelengths other than the N first wavelengths corresponding to the N modulation modes in the at least one wavelength of light emitted by the light source.
[0105] Specifically, the light emitted by the light source includes N first wavelengths of light corresponding to the above-mentioned N modulation methods, and also includes light of other wavelengths. Therefore, after the target modulation method is updated, N modulation methods can be used to modulate the N first wavelengths of light emitted by the light source, while for the light of other wavelengths included in the light source except the first wavelength, the target modulation method before the update is still used for modulation.
[0106] The updated target modulation mode includes any one of the following modulation modes: sine wave modulation, square wave modulation, minimum frequency shift keying, frequency shift keying and phase shift keying.
[0107] During the spectral measurement process, there is a certain distance between the light source and the object being measured, so the measurement result will be affected by the interference of ambient light. The interference caused by the ambient light may also be different if the measurement scene or environment is different. Therefore, modulation is used to reduce interference, and there are correspondingly different modulation requirements. Different modulation methods will achieve different anti-noise effects. According to different modulation requirements, different modulation methods can be used to process the light emitted by the light source, so the updated modulation method may include but is not limited to the above-mentioned modulation methods. Optionally, various coding technologies, such as random coding technology, can be combined to determine the updated modulation method to obtain measurement results that meet the signal-to-noise ratio conditions.
[0108] Step 160, outputting a reflection spectrum associated with an updated target modulation mode, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal associated with the updated target modulation mode.
[0109] In an embodiment of the present application, when the signal-to-noise ratio corresponding to the obtained original echo signal is small, the target modulation mode is updated, the light source is modulated again based on the updated target modulation mode to obtain a modulated echo signal, and then the modulated echo signal is demodulated again to obtain the corresponding original echo signal, and when it is determined that the signal-to-noise ratio of the original echo signal corresponding to the above-mentioned at least one wavelength is greater than or equal to the signal-to-noise ratio threshold, a reflection spectrum is obtained based on the original echo signal, and the reflection spectrum is output. Among them, the original echo signal corresponding to the reflection spectrum when obtaining the reflection spectrum is the original echo signal related to the updated target modulation mode obtained after the target modulation mode is last updated, and therefore, the reflection spectrum obtained is the reflection spectrum associated with the updated target modulation mode. That is to say, if the target modulation mode is updated once or more times before obtaining the reflection spectrum, then the obtained reflection spectrum is associated with the target modulation mode obtained after the last update. Specifically, the target modulation mode obtained by the last update is determined as the updated target modulation mode. Based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal related to the updated target modulation mode, the reflectivity corresponding to each wavelength can be obtained, and then the reflection spectrum can be obtained.
[0110] The following are two scenarios for spectrum measurement. Figure 4A As shown, Figure 4A Figure 1 is a schematic diagram of a spectrum measurement scenario. To perform spectrum measurement in this scenario, the spectrum measurement device needs to be placed close to the object being measured. This measurement method is not suitable for application in the field of terminal consumer electronics. Figure 4B As shown, Figure 4BThis is a schematic diagram of another spectral measurement scenario. To perform spectral measurement in this scenario, the measurement needs to be completed in a specially designed chamber. This measurement method has certain limitations and is not convenient for application in daily life.
[0111] Therefore, the spectral measurement method provided in this application can be used to obtain spectral information in daily life, which can improve the convenience of obtaining information while meeting the requirements for information accuracy. Figure 5 As shown, Figure 5 The following is a schematic diagram of a spectral measurement scenario for implementing the present application, in which a long-distance spectral measurement can be performed. Figure 4A , Figure 4B The scene shown, Figure 5 The scene shown does not limit the distance between the object being measured and the light source (that is, non-contact spectral measurement can be achieved), and there is no restriction on the measurement environment. Furthermore, it is more convenient to perform spectral measurement operations in this scene. Therefore, the spectral measurement method provided in this application is more suitable for application in daily life.
[0112] The following uses a specific scenario as an example to introduce the specific process of implementing the spectral measurement method provided by this application. Figure 6 , Figure 6 A schematic diagram of a spectrum measurement method provided in an embodiment of the present application. Figure 6 As shown, the spectrum measurement method includes:
[0113] Step 210, modulate the light emitted by the light source using a target modulation method to obtain an incident signal.
[0114] The spectral measurement method provided by the present application can be applied to a natural open environment to perform spectral measurement in a long-distance scenario. For example, in a specific scenario, an electronic device can be used to measure human skin to obtain spectral information of the skin, and the electronic device can implement the spectral measurement method provided by the present application. The electronic device includes a probe, which can be used to transmit an incident signal to an object to be measured (skin in this scenario) and transmit a modulated echo signal back to the electronic device from the object to be measured. In a long-distance scenario, the probe of the electronic device is aimed at the skin, but not close to the skin, and the distance between the probe and the skin can be determined by the user as needed.
[0115] To implement the present application, first, the light emitted by the light source is modulated using a target modulation method to obtain an incident signal. The light source may be a continuous wide-spectrum light source, the light emitted by the light source includes at least one wavelength of light, and the target modulation method may be a general periodic modulation (such as a sine wave modulation or a square wave modulation, etc.).
[0116] After the incident signal is obtained, step 220 is continued.
[0117] Step 220: Acquire a modulated echo signal, and demodulate the modulated echo signal to obtain original echo signals of different wavelengths.
[0118] The incident signal is transmitted from the probe of the electronic device to the object to be measured (the skin in this scenario), and a modulated echo signal is obtained after being reflected by the object to be measured. The modulated echo signal is demodulated, and the demodulation method used corresponds to the target modulation method. After demodulation, the original echo signals corresponding to different wavelengths are obtained.
[0119] Then, continue to execute step 230.
[0120] Step 230: Acquire the signal-to-noise ratio of the original echo signals of different wavelengths.
[0121] After the original echo signals corresponding to different wavelengths are obtained, the signal-to-noise ratio of the original echo signal corresponding to each of the different wavelengths is obtained.
[0122] Then continue to execute step 240.
[0123] Step 240: determine whether the signal-to-noise ratios of the original echo signals of all wavelengths are greater than or equal to a signal-to-noise ratio threshold.
[0124] It is determined whether the signal-to-noise ratio of the original echo signals of all wavelengths meets the signal-to-noise ratio condition, that is, they are all greater than or equal to the signal-to-noise ratio threshold. This signal-to-noise ratio threshold can be set according to the precision (ie, accuracy) requirements of the measurement results. Optionally, the signal-to-noise ratio threshold can also be set based on experience.
[0125] Step 250 or step 270 is executed according to the judgment result.
[0126] Step 250: If the above signal-to-noise ratio condition is not met, an original echo signal of a wavelength corresponding to a low signal-to-noise ratio that is less than a signal-to-noise ratio threshold is obtained.
[0127] If the signal-to-noise ratio condition is not met, further processing is performed, that is, an original echo signal of a wavelength corresponding to a low signal-to-noise ratio less than a signal-to-noise ratio threshold is obtained, and the target modulation mode is updated using the original echo signal.
[0128] Next, execute step 260.
[0129] Step 260 , based on the original echo signal of the wavelength corresponding to the low signal-to-noise ratio that is less than the signal-to-noise ratio threshold, obtain an updated target modulation mode, and return to step 210 .
[0130] Based on the original echo signal of the wavelength corresponding to the low signal-to-noise ratio less than the signal-to-noise ratio threshold, an adaptive algorithm can be used to determine the updated target modulation mode. The adaptive algorithm can be implemented by a convolutional neural network. The updated target modulation mode includes one or more modulation modes. According to the type of light source and the original echo signal of the wavelength corresponding to the low signal-to-noise ratio less than the signal-to-noise ratio threshold, the number of modulation modes included in the updated target modulation mode can be determined. Exemplarily, in a scenario where the light source is a continuous wide-spectrum light source, the updated target modulation mode includes a modulation mode. The updated target modulation mode can be amplitude modulation, frequency modulation, phase modulation, and more general orthogonal modulation, etc. The modulation content can be periodic sine, periodic square wave, pulse, true / pseudo-random coding, etc., and wavelength division multiplexing, etc. can also be considered.
[0131] After determining the updated target modulation mode, the process returns to step 210, that is, the updated target modulation mode is continued to be used to modulate the light emitted by the light source to obtain an incident signal.
[0132] Step 270: If the above signal-to-noise ratio condition is met, the reflectivity of each wavelength is calculated to obtain a reflection spectrum.
[0133] If the signal-to-noise ratio condition is met, that is, the signal-to-noise ratio of the original echo signals of all wavelengths is greater than or equal to the signal-to-noise ratio threshold, the reflectivity corresponding to each wavelength can be calculated to obtain the reflection spectrum. When calculating the reflectivity, the original signal strength of each wavelength included in the light source and the signal strength of the original echo signal of each wavelength obtained after the target modulation mode is last updated are obtained, and the reflectivity corresponding to each wavelength is calculated based on the two.
[0134] In this scenario, the reflection spectrum of human skin is obtained (optionally, the spectrum information that changes over time can also be obtained), so that skin-related information can be obtained based on the reflection spectrum of the skin. For example, facial skin index data (such as blood oxygen, melanin, hemoglobin, collagen, etc.) can be obtained by measurement, or relevant information can be obtained to perform liveness verification in payment scenarios. Figure 7 As shown, Figure 7 It is a skin spectrum chart, through which relevant information about the content of substances contained in the skin can be obtained.
[0135] Therefore, the spectral measurement method provided by the present application can be applied to a variety of scenarios, including long-distance heart rate detection, blood oxygen detection, face liveness detection, skin detection, long-distance material recognition, etc. By implementing the spectral measurement method on an electronic device, functions such as skin quality measurement can be achieved anytime and anywhere, wherein the electronic device can be a terminal integrated with relevant devices, etc. Specifically, the spectral measurement device can be integrated into the front or rear of a mobile phone to facilitate long-distance spectral measurement.
[0136] The following is an introduction to the spectrum measurement system provided by this application. Figure 8 As shown, Figure 8 The present invention provides an architecture diagram of a spectrum measurement system. In the spectrum measurement system, a light source emits light including at least one wavelength, and the light source modulation algorithm is used to modulate the light emitted by the light source to obtain an incident signal; the incident signal is transmitted to the object to be measured, and after being reflected by the object to be measured, it is received by the spectrum detector to obtain a modulated echo signal; the modulated echo signal is demodulated by the photoelectric signal demodulation algorithm to obtain the original echo signal of each wavelength; the adaptive modulation selection algorithm is used to determine whether the signal-to-noise ratio of the original echo signal of each wavelength is greater than or equal to the signal-to-noise ratio threshold, if not, the light source modulation algorithm is updated, and the above steps are repeated; if so, the reflection spectrum calculation algorithm is used to obtain the original signal intensity of each wavelength included in the light source, and the signal intensity of the original echo signal of each wavelength, calculate the reflectivity of each wavelength, and obtain the reflection spectrum. Among them, the light source modulation algorithm, the photoelectric signal demodulation algorithm, the adaptive modulation selection algorithm, and the reflection spectrum calculation algorithm can be implemented on a digital signal processor (DSP) or a general processor (general CPU). By using the spectrum measurement system to obtain the reflection spectrum, the interference of stray ambient light on the measurement process can be reduced, and the accuracy of the spectrum measurement can be improved. In the spectrum measurement system, the light source can be a wide-spectrum light source or a discrete wavelength light source, and the light source can include optical focusing components such as lenses; the spectrum detector can include a spectroscopic device and a photoelectric detection device, so the spectrum detector can include a discrete filter or a linear filter that can achieve continuous spectroscopic detection, etc. It can be understood that the spectrum measurement system includes a light source modulation algorithm, a photoelectric signal demodulation algorithm, an adaptive modulation selection algorithm, and a reflection spectrum calculation algorithm, and also includes related devices for implementing these algorithms to process signals.
[0137] Above, combined Figures 1 to 8 The method provided by the embodiment of the present application is described in detail. Figures 9 to 11 The device provided in the embodiments of the present application is described in detail.
[0138] Fig. 9 is a schematic block diagram of a spectrum measurement device provided in an embodiment of the present application. Fig. 9 As shown, the spectrum measurement device 10 may include a first acquisition unit 11, a second acquisition unit 12, a third acquisition unit 13, a determination unit 14, an update unit 15, and an output unit 16. The first acquisition unit 11, the second acquisition unit 12, the third acquisition unit 13, the determination unit 14, the update unit 15, and the output unit 16 may be software, hardware, or a combination of software and hardware. Each unit is described below:
[0139] A first acquisition unit 11 is used to acquire a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source in a target modulation manner, and the light emitted by the light source includes light of at least one wavelength;
[0140] A second acquisition unit 12 is used to acquire an original echo signal corresponding to each wavelength in the at least one wavelength obtained by demodulating the modulated echo signal, wherein a demodulation mode adopted by the demodulation corresponds to the target modulation mode;
[0141] A third acquisition unit 13, used to acquire a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength;
[0142] A determination unit 14, configured to determine whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold among at least one signal-to-noise ratio corresponding to the at least one original echo signal;
[0143] an updating unit 15, configured to obtain an original echo signal corresponding to the first signal-noise ratio if it is determined that there is a first signal-noise ratio less than a signal-noise ratio threshold among the at least one signal-noise ratio corresponding to the at least one original echo signal, and update the target modulation mode based on the original echo signal corresponding to the first signal-noise ratio until the at least one signal-noise ratio corresponding to the at least one original echo signal is greater than or equal to the signal-noise ratio threshold;
[0144] The output unit 16 is used to output a reflection spectrum associated with the updated target modulation mode, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal related to the updated target modulation mode.
[0145] In a possible design, the updating unit 15 is specifically used for:
[0146] A first processing unit, configured to obtain a two-dimensional image based on an original echo signal corresponding to the first signal-to-noise ratio, wherein the two-dimensional image is obtained by splicing at least two original echo signals corresponding to at least two of the first signal-to-noise ratios;
[0147] The second processing unit is used to use a neural network model to perform adaptive algorithm processing on the two-dimensional image to obtain an updated target modulation mode.
[0148] In one possible design, the device further includes:
[0149] The first modulation unit is used to modulate the light emitted by the light source by adopting the target modulation method to obtain the incident signal.
[0150] In a possible design, the at least one wavelength of light included in the light source overlaps with each other in space, and the updated target modulation mode includes a modulation mode; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the first modulation unit is specifically used to:
[0151] The updated target modulation mode is used to modulate each wavelength of the at least one wavelength emitted by the light source.
[0152] In a possible design, the at least one wavelength of light included in the light source is separated from each other in space, the updated modulation mode includes N modulation modes, N is the number of the first signal-to-noise ratios that are less than the signal-to-noise ratio threshold in the at least one signal-to-noise ratio, N is a positive integer, one modulation mode corresponds to one first wavelength, and the first wavelength is a wavelength associated with the first signal-to-noise ratio; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the first modulation unit is specifically used to:
[0153] For each of the N modulation modes, the modulation mode is used to modulate light of a first wavelength corresponding to the modulation mode in the light emitted by the light source.
[0154] In one possible design, the device further includes:
[0155] The second modulation unit is used to modulate the light of wavelengths other than the N first wavelengths corresponding to the N modulation modes in the at least one wavelength of light emitted by the light source by adopting the target modulation mode before updating.
[0156] In one possible design, the updated target modulation mode includes any one of the following modulation modes: sinusoidal wave modulation, square wave modulation, minimum frequency shift keying, frequency shift keying, and phase shift keying.
[0157] In one possible design, the neural network model includes a convolutional neural network model.
[0158] Please refer to Fig.10 , is a schematic block diagram of another spectrum measurement device 20 provided in an embodiment of the present application. It should be understood that Fig.10 The spectral measurement device shown is only an example. The spectral measurement device of the embodiment of the present application may also include other components, or include Fig.10 components similar in function to the components in the Fig.10 All parts in.
[0159] The spectrum measuring device 20 includes a communication interface 21 and at least one processor 22 .
[0160] The spectrum measurement device may correspond to an electronic device, and further, the spectrum measurement device may also correspond to a terminal device. The communication interface 21 is used to send and receive signals, and at least one processor 22 executes program instructions, so that the spectrum measurement device implements the corresponding process of the method executed by the electronic device in the above method embodiment. Please refer to the description of the above method embodiment for details, which will not be repeated here.
[0161] For the case where the spectral measurement device can be a chip or a chip system, see Fig.11 Schematic diagram of the chip structure shown. Fig.11 The chip 30 shown includes a processor 31 and an interface 32. The number of the processors 31 may be one or more, and the number of the interfaces 32 may be multiple. It should be noted that the functions corresponding to the processor 31 and the interface 32 may be implemented by hardware design, software design, or a combination of hardware and software, which is not limited here.
[0162] Optionally, the chip may further include a memory 33, and the memory 33 is used to store necessary program instructions and data.
[0163] In the present application, the processor 31 can be used to call the implementation program of the spectrum measurement method provided by one or more embodiments of the present application in the electronic device from the memory, and execute the instructions contained in the program. The interface 32 can be used to output the execution result of the processor 31. In the present application, the interface 32 can be specifically used to output various messages or information of the processor 31. For the signal processing method provided by one or more embodiments of the present application, reference can be made to the method embodiment shown above, which will not be repeated here.
[0164] The processor in the embodiment of the present application may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0165] According to the method provided in the embodiments of the present application, the present application also provides a computer program product, which includes: computer program code, when the computer program code runs on a computer, the computer executes the method in the aforementioned method embodiment.
[0166] According to the method provided in the embodiments of the present application, the present application also provides a computer-readable storage medium, which stores a computer program (also referred to as code, or instructions), which, when executed on a computer, enables the computer to execute the method in the aforementioned method embodiments.
[0167] An embodiment of the present application also provides a processing device, including a processor and an interface; the processor is used to execute the method in any of the above method embodiments.
[0168] It should be understood that the above-mentioned processing device can be a chip. For example, the processing device can be a field programmable gate array (FPGA), a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processing circuit (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined to be executed. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0169] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a high-density digital video disc (DVD)), or a semiconductor medium (eg, a solid state disc (SSD)).
[0171] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program, or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process or an execution thread, and a component may be located on a computer or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may communicate, for example, through local or remote processes based on signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system, or a network, such as the Internet interacting with other systems through signals).
[0172] It is understandable that the electronic device in the embodiment of the present application can perform some or all of the steps in the embodiment of the present application, and these steps or operations are only examples. The embodiment of the present application can also perform other operations or variations of various operations. In addition, the various steps can be performed in different orders presented in the embodiment of the present application, and it is possible that not all operations in the embodiment of the present application need to be performed.
[0173] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0174] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0175] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0178] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories ROM, random access memories RAM, magnetic disks or optical disks.
[0179] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A spectrum measurement method, characterized in that: The method comprises: Acquire a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source in a target modulation manner, and the light emitted by the light source includes light of at least one wavelength; Acquire an original echo signal corresponding to each wavelength of the at least one wavelength obtained after demodulating the modulated echo signal, wherein a demodulation mode adopted by the demodulation corresponds to the target modulation mode; Acquire a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength; Determine whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold among at least one signal-to-noise ratio corresponding to the at least one original echo signal; If so, the original echo signal corresponding to the first signal-to-noise ratio is obtained, and the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, until at least one signal-to-noise ratio corresponding to at least one original echo signal is greater than or equal to the signal-to-noise ratio threshold, and a reflection spectrum associated with the updated target modulation mode is output, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in the at least one original echo signal related to the updated target modulation mode.
2. The method according to claim 1, characterized in that The updating of the target modulation mode based on the original echo signal corresponding to the first signal-to-noise ratio includes: Based on the original echo signal corresponding to the first signal-to-noise ratio, obtaining a two-dimensional image, wherein the two-dimensional image is obtained by splicing at least two original echo signals corresponding to at least two of the first signal-to-noise ratios; A neural network model is used to perform adaptive algorithm processing on the two-dimensional image to obtain an updated target modulation mode.
3. The method according to claim 2, characterized in that Before acquiring the modulated echo signal, the method further includes: The light emitted by the light source is modulated using the target modulation method to obtain the incident signal.
4. The method according to claim 3, characterized in that The at least one wavelength of light included in the light source overlaps with each other in space, and the updated target modulation mode includes a modulation mode; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the light emitted by the light source is modulated by using the target modulation mode, including: The updated target modulation mode is used to modulate each wavelength of the at least one wavelength emitted by the light source.
5. The method according to claim 3, characterized in that The at least one wavelength of light included in the light source is separated from each other in space, the updated modulation mode includes N modulation modes, N is the number of the first signal-to-noise ratios that are less than the signal-to-noise ratio threshold in the at least one signal-to-noise ratio, N is a positive integer, one modulation mode corresponds to one first wavelength, and the first wavelength is a wavelength associated with the first signal-to-noise ratio; after the target modulation mode is updated based on the original echo signal corresponding to the first signal-to-noise ratio, the light emitted by the light source is modulated by using the target modulation mode, including: For each of the N modulation modes, the modulation mode is used to modulate light of a first wavelength corresponding to the modulation mode in the light emitted by the light source.
6. The method according to claim 5, characterized in that The method further comprises: The target modulation method before updating is used to modulate light of wavelengths other than the N first wavelengths corresponding to the N modulation methods in the at least one wavelength of light emitted by the light source.
7. The method according to any one of claims 1 to 6, characterized in that: The updated target modulation mode includes any one of the following modulation modes: sine wave modulation, square wave modulation, minimum frequency shift keying, frequency shift keying and phase shift keying.
8. The method according to any one of claims 2 to 6, characterized in that: The neural network model includes a convolutional neural network model.
9. A spectrum measuring device, characterized in that: The device comprises: A first acquisition unit is used to acquire a modulated echo signal, wherein an incident signal corresponding to the modulated echo signal is a signal obtained by modulating light emitted by a light source in a target modulation manner, and the light emitted by the light source includes light of at least one wavelength; A second acquisition unit, used for acquiring an original echo signal corresponding to each wavelength of the at least one wavelength obtained by demodulating the modulated echo signal, wherein a demodulation mode adopted by the demodulation corresponds to the target modulation mode; A third acquisition unit, configured to acquire a signal-to-noise ratio of each original echo signal in at least one original echo signal corresponding to the at least one wavelength; A determining unit, configured to determine whether there is a first signal-to-noise ratio less than a signal-to-noise ratio threshold value among at least one signal-to-noise ratio corresponding to the at least one original echo signal; an updating unit, configured to obtain an original echo signal corresponding to the first signal-noise ratio if it is determined that there is a first signal-noise ratio less than a signal-noise ratio threshold among the at least one signal-noise ratio corresponding to the at least one original echo signal, and update the target modulation mode based on the original echo signal corresponding to the first signal-noise ratio until the at least one signal-noise ratio corresponding to the at least one original echo signal is greater than or equal to the signal-noise ratio threshold; An output unit is used to output a reflection spectrum associated with an updated target modulation mode, wherein the reflection spectrum is obtained based on the signal intensity of each wavelength of light in the at least one wavelength included in the light source and the signal intensity of each original echo signal in at least one original echo signal related to the updated target modulation mode.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is run on one or more processors, the method according to any one of claims 1 to 8 is executed.
Citation Information
Patent Citations
Method and device for improving definition of single-molecule fluorescence imaging
CN102507521A
Laser gas telemeter signal acquisition method and system
CN109916852A