Raman spectrum acquisition method and device, electronic equipment and storage medium
By acquiring Raman spectra for different time periods on the gas detector, screening and amplifying the signals, the problem of detector dynamic range and resolution limit is solved, and accurate measurement of high and low concentration gases are achieved.
Patent Information
- Application Number
- CN202410092016.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-22
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-01-22
AI Technical Summary
When monitoring high and low concentration gases, existing gas detectors are difficult to perform accurate measurements at the same time due to dynamic range and resolution limitations, resulting in spectral saturation or too weak signal.
By obtaining the Raman spectrum of the gas detector at different time periods, the pixel points beyond the detector's detection range are screened out, and the amplification coefficient is calculated based on the light intensities of these pixel points, and the signals in the Raman spectrum are amplified to expand the dynamic range and improve resolution.
It effectively reduces the impact of the dynamic range and resolution of the gas detector on gas measurement, and improves the reliability and accuracy of measurement of gases of different concentrations.
Smart Images

Figure CN119901718A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of spectrum processing, and in particular relates to a Raman spectrum acquisition method, device, electronic equipment and storage medium. Background Art
[0002] Among various gas spectral monitoring methods, Raman spectroscopy has the advantages of a wide range of detection objects and a large concentration dynamic range. Raman spectroscopy is a scattering spectrum. By collecting Raman scattered light of different wavelengths in space, a complete spectrum can be obtained. By modifying the acquisition time of the detector, spectra of different intensities, that is, different concentration ranges, can be obtained.
[0003] In current gas detection technology, the dynamic range of common detectors is usually limited to integers ranging from 0 to 65535. In scenarios such as natural gas monitoring and fluorine chemical testing, it is necessary to monitor both high-concentration and low-concentration gases. For example, in natural gas monitoring, methane with a concentration of about 90% and alkane gases at the part per million level need to be monitored, or in fluorine chemical testing, fluorine gas at the percentage level and hydrogen fluoride at the part per million level need to be detected simultaneously.
[0004] When measuring gas at the parts per million level, the spectral intensity of the percentage gas may exceed the dynamic range of the detector, resulting in spectral saturation. On the other hand, even if the spectral intensity of the percentage gas is not saturated, when detecting gas at the parts per million level, its intensity value is often less than 1, which exceeds the resolution of the detector. Therefore, in practical applications, the limited dynamic range and resolution of the detector will limit the ability to accurately measure gases of different concentrations at the same time. Summary of the invention
[0005] The embodiments of the present invention provide a Raman spectrum acquisition method, device, electronic device and storage medium, which can reduce the influence of the limited dynamic range and resolution of the gas detector on the accurate measurement of gases of different concentrations at the same time, and improve the reliability and accuracy of the measurement of the gas to be detected.
[0006] On the one hand, an embodiment of the present application provides a Raman spectrum acquisition method, the method comprising:
[0007] The gas to be detected is detected by a gas detector to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period;
[0008] According to the intensity of Raman scattered light in the first Raman spectrum, extracting from the first Raman spectrum a first pixel point where the intensity of Raman scattered light exceeds an upper limit of a detection range of the gas detector and a second pixel point within the detection range of the gas detector;
[0009] determining a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of a second pixel point in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum;
[0010] determining the amplified Raman scattered light intensity based on the first amplification factor and the Raman scattered light intensity at the first pixel point in the second Raman spectrum;
[0011] The Raman scattered light intensity of the first pixel point in the first Raman spectrum is replaced based on the amplified Raman scattered light intensity to obtain the Raman spectrum of the gas to be detected.
[0012] In some embodiments, determining a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of a second pixel in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum includes:
[0013] Constructing a first matrix by taking the first Raman scattered light intensity of the second pixel point in the first Raman spectrum as the first row element of the first matrix;
[0014] Solving the coefficient of the first matrix corresponding to when the objective function reaches the minimum, to obtain the first magnification coefficient;
[0015] The objective function is determined according to the first matrix, an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum, and coefficients of the first matrix.
[0016] In some embodiments, the objective function is expressed as:
[0017] ‖xY1-y1‖ 2 ;
[0018] Wherein, Y1 is the first matrix; x is the coefficient of the first matrix; y1 is an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum.
[0019] In some embodiments, the method further includes: solving the objective function using a least squares method.
[0020] In some embodiments, determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel in the second Raman spectrum includes:
[0021] Constructing a second matrix by taking the Raman scattered light intensity of the first pixel point in the second Raman spectrum as the first row element of the second matrix;
[0022] The product of the second matrix and the first amplification coefficient is calculated to obtain the amplified Raman scattered light intensity of the Raman scattered light intensity corresponding to each first pixel point.
[0023] In some embodiments, before determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel in the second Raman spectrum, the method further includes:
[0024] Determine the difference between the baseline spectrum of the first Raman spectrum and the baseline spectrum of the second Raman spectrum as a baseline difference spectrum, and make the Raman scattered light intensity at each pixel point in the baseline difference spectrum equal;
[0025] Determine a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum;
[0026] amplifying the Raman scattered light intensity at the first pixel point in the baseline difference spectrum based on the second amplification factor to obtain the amplified Raman scattered light intensity;
[0027] Determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum includes:
[0028] The amplified Raman scattered light intensity obtained by amplifying the baseline difference spectrum based on the second amplification factor and the Raman scattered light intensity obtained by amplifying the second Raman spectrum based on the first amplification factor are superimposed to obtain the amplified Raman scattered light intensity.
[0029] In some embodiments, determining a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of a second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum includes:
[0030] Using the third Raman scattered light intensity of the second pixel point in the baseline difference spectrum as the second row element of the first matrix, adjusting the first matrix;
[0031] Based on the adjusted first matrix, the coefficients of the first matrix corresponding to the minimum objective function are solved to obtain the second amplification coefficient corresponding to the baseline difference spectrum.
[0032] On the other hand, an embodiment of the present application provides a Raman spectrum acquisition device, the device comprising:
[0033] An acquisition module is used to detect the gas to be detected by a gas detector to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period;
[0034] An extraction module, configured to extract, from the first Raman spectrum, a first pixel point whose Raman scattered light intensity exceeds an upper limit of a detection range of the gas detector and a second pixel point within the detection range of the gas detector according to the Raman scattered light intensity in the first Raman spectrum;
[0035] a determination module, configured to determine a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of a second pixel point in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum;
[0036] A first amplification module, used to determine the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum;
[0037] The replacement module is used to replace the Raman scattered light intensity of the first pixel point in the first Raman spectrum based on the amplified Raman scattered light intensity to obtain the Raman spectrum of the gas to be detected.
[0038] In another aspect, an embodiment of the present application provides an electronic device, the device comprising: a processor and a memory storing computer program instructions;
[0039] When the processor executes the computer program instructions, the Raman spectrum collection method according to the first aspect is implemented.
[0040] On the other hand, an embodiment of the present application provides a computer storage medium, and when the computer program instructions are executed by a processor, the Raman spectrum acquisition method of the first aspect is implemented.
[0041] The embodiment of the present application provides a Raman spectrum acquisition method, device, equipment and storage medium, wherein the Raman spectrum acquisition method obtains the first Raman spectrum and the second Raman spectrum of the gas to be detected in different detection time periods, and then screens out the first pixel point that exceeds the upper limit of the detection range of the gas detector and the second pixel point that is within the detection range of the gas detector from the first Raman spectrum, effectively screening the saturation point in the first Raman spectrum, that is, the first pixel point. Then, the first amplification factor of the second Raman spectrum is calculated based on the first Raman scattered light intensity and the second Raman scattered light intensity of the second pixel point, and the Raman scattered light intensity at the first pixel point in the second Raman spectrum is amplified according to the first amplification factor. After that, the Raman scattered light intensity at the first pixel point in the first Raman spectrum is replaced and adjusted to obtain the Raman spectrum of the gas to be detected containing strong signals and weak signals. The first Raman spectrum is optimized in the above manner, so that the first Raman spectrum can more accurately display the information of the gas to be detected, which helps to reduce the influence of the limited dynamic range and resolution of the gas detector on the simultaneous accurate measurement of gases of different concentrations, and improves the reliability of the measurement of the gas to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0043] Figure 1 A schematic diagram of a process of collecting Raman spectra provided by an embodiment of the present application is shown;
[0044] Figure 2 A schematic flow chart of a method for determining a first amplification factor of a second Raman spectrum provided by an embodiment of the present application is shown;
[0045] Figure 3 A schematic flow chart of a method for determining the intensity of amplified Raman scattered light provided by an embodiment of the present application is shown;
[0046] Figure 4 A Raman spectrum data graph is shown exemplarily;
[0047] Figure 5 A schematic diagram of a process of a Raman spectrum acquisition method provided by another embodiment of the present application is shown;
[0048] Figure 6 A schematic flow chart of a method for determining a second amplification factor of a baseline difference spectrum provided by an embodiment of the present application is shown;
[0049] Figure 7a shows a first Raman spectrum in a specific example provided in the present application;
[0050] Figure 7b shows a second Raman spectrum in a specific example provided in this application;
[0051] Figure 8 shows a first Raman spectrum and a processed Raman spectrum of the gas to be detected in a specific example provided by the present application;
[0052] Fig. 9 yes Figure 8 A partial enlarged view of
[0053] Fig.10 A structural block diagram of a Raman spectrum acquisition device provided by an embodiment of the present application is shown;
[0054] Fig.11 It is a structural diagram of an electronic device provided by yet another embodiment of the present application. DETAILED DESCRIPTION
[0055] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0056] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0057] Raman spectroscopy is a type of molecular spectroscopy based on the Raman effect. The Raman effect, also known as Raman scattering, refers to the phenomenon that the frequency of light waves changes after being scattered. When a substance is irradiated with monochromatic excitation light, a series of Raman scattered lights with wavelengths greater than and less than the wavelength of the incident light will be generated. Raman scattered lights of different intensities at different wavelengths constitute the Raman spectrum. The offset of the wavelength of these Raman scattered lights relative to the wavelength of the excitation light corresponds to the type of molecular covalent bonds of the substance, and the intensity reflects the number of covalent bonds of the molecules of the substance being measured. Therefore, Raman spectroscopy can be used to perform qualitative and quantitative analysis of the molecules of the substance.
[0058] Among various gas spectral monitoring methods, Raman spectroscopy has many advantages. First, Raman spectroscopy is widely applicable to various gases. Whether it is common gas or rare gas, it can generate scattered light through the Raman effect, so its detection range is relatively wide. Secondly, the concentration dynamic range of Raman spectroscopy is large. By adjusting the acquisition time of the detector, gases in different concentration ranges can be flexibly measured in the same experiment. This flexibility makes Raman spectroscopy suitable for application scenarios where high and low concentration gases need to be monitored simultaneously. In addition, the traditional spectral method for detecting gas concentration is absorption spectra such as mid-infrared, near-infrared and ultraviolet. It is necessary to configure absorption cells with different optical paths to measure gases in different concentration ranges. There is even a situation where the absorption is too strong and high concentrations cannot be measured. Raman spectroscopy does not need to configure absorption cells with different optical paths to measure gases in different concentration ranges. This simplifies the complexity of instrument configuration and adjustment and improves the convenience of the experiment.
[0059] In many gas detection scenarios, it is necessary to monitor both high-concentration and low-concentration gases at the same time. For example, in natural gas monitoring scenarios, it is necessary to monitor methane with a concentration of about 90% and various alkane gases at the parts per million level; in fluorine chemical detection scenarios, it is necessary to detect percentage-level fluorine gas and parts per million-level hydrogen fluoride at the same time. The dynamic range of common gas detectors is usually limited to an integer range of 0 to 65535. This results in the spectral intensity of the percentage gas exceeding the dynamic range of the gas detector when measuring gases that contain both percentage content and parts per million, resulting in spectral saturation. When the spectral intensity of the percentage gas is not saturated, the intensity value of the gas at the parts per million level, i.e. one part per million, is often less than 1, which exceeds the resolution of the detector.
[0060] In order to solve the problems of the prior art, the embodiments of the present application provide a Raman spectrum acquisition method, device, electronic device and storage medium.
[0061] The following first introduces the Raman spectrum acquisition method provided in the embodiments of the present application.
[0062] Figure 1 FIG. 1 is a flow chart of a Raman spectrum acquisition method 100 provided in one embodiment of the present application. Figure 1 As shown, the Raman spectrum acquisition method 100 provided in the embodiment of the present application may include the following steps:
[0063] S101, detecting a gas to be detected by a gas detector to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period;
[0064] S102, extracting, according to the intensity of Raman scattered light in the first Raman spectrum, a first pixel point where the intensity of Raman scattered light exceeds the upper limit of the detection range of the gas detector and a second pixel point within the detection range of the gas detector from the first Raman spectrum;
[0065] S103, determining a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of a second pixel point in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum;
[0066] S104, determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel in the second Raman spectrum;
[0067] S105, replacing the Raman scattered light intensity of the first pixel in the first Raman spectrum based on the amplified Raman scattered light intensity, to obtain the Raman spectrum of the gas to be detected.
[0068] In some embodiments, at S101, the number of photons received by the gas detector within a certain period of time directly affects the measured signal strength. The longer the detection time of the gas detector, the more photons will be detected, and the signal strength will be relatively high.
[0069] In a specific implementation scenario, when the concentration range of the gas to be detected is determined, the duration of the first detection time period and the second detection time period can be determined based on the concentration of the gas to be detected and the experience of the test personnel. Specifically, for the detection time period of gas at the parts per million level, the acquisition time can be adjusted by observing whether the Raman scattered light intensity reaches 1000. If the spectral intensity is too low, the detection time can be increased to improve the signal-to-noise ratio and ensure that the weak signal is fully captured. For gases with a percentage concentration, the detection time is adjusted by observing whether the Raman scattered light intensity reaches 50,000. If the Raman scattered light intensity is too high, the acquisition time can be reduced to avoid spectral saturation and remain within the dynamic range of the detector. By optimizing the detection parameters according to the specific situation of the gas to be detected, accurate spectral data can be obtained in different concentration ranges.
[0070] In some embodiments, at S102, each pixel captures a portion of the scattered light of the sample, and the pixel can be regarded as a discrete position in the Raman spectrum, representing the wavelength or wave number of the light measured at that position, and the value of the pixel represents the intensity of the Raman scattered light measured at that wave number or wavelength.
[0071] Among them, the first Raman spectrum is the spectrum obtained with a longer detection time. Compared with the second Raman spectrum obtained with a shorter detection time, the first Raman spectrum has a higher signal intensity and more comprehensive detection data. The first pixel point in the first Raman spectrum whose Raman scattered light intensity is greater than the gas detector range is the pixel point corresponding to the higher concentration gas, that is, the saturation point in the first Raman spectrum. The second pixel point within the detection range of the gas detector is the pixel point corresponding to the lower concentration gas.
[0072] In some embodiments, at S103 , the first amplification factor is used to describe the enhancement degree of the Raman scattering spectrum signal, and the amplification factor can be determined by comparing the intensity ratio of the same pixel point in two Raman spectra.
[0073] After that, at S104, the first amplification factor is applied to process the Raman scattered light intensity at the first pixel point in the Raman spectrum to obtain the amplified Raman scattered light intensity.
[0074] Then, at S105, the Raman scattered light intensity corresponding to the saturation point in the first Raman spectrum, i.e., the first pixel point, is replaced by the amplified Raman scattered light intensity, which can effectively improve the signal saturation area in the first Raman spectrum and increase the relative intensity of the signal, thereby effectively improving the signal-to-noise ratio. In addition, the amplified Raman scattered light intensity can effectively expand the dynamic range of the signal, so that the originally saturated part can be accurately observed.
[0075] By adopting the method of the embodiment of the present application, the first Raman spectrum and the second Raman spectrum of the gas to be detected are obtained in different detection time periods, and then the first pixel point exceeding the upper limit of the detection range of the gas detector and the second pixel point within the detection range of the gas detector are screened out from the first Raman spectrum, so as to effectively screen the saturation point in the first Raman spectrum, that is, the first pixel point. Then, the first amplification coefficient of the second Raman spectrum is calculated based on the first Raman scattered light intensity and the second Raman scattered light intensity of the second pixel point, and the Raman scattered light intensity at the first pixel point in the second Raman spectrum is amplified according to the first amplification coefficient. After that, the Raman scattered light intensity at the first pixel point in the first Raman spectrum is replaced and adjusted to obtain the Raman spectrum of the gas to be detected containing strong signals and weak signals. The first Raman spectrum is optimized by the above method, so that the first Raman spectrum can more accurately display the information of the gas to be detected, which helps to reduce the influence of the limited dynamic range and resolution of the gas detector on the simultaneous accurate measurement of gases of different concentrations, and improves the reliability of the measurement of the gas to be detected.
[0076] Figure 2 A schematic flow chart of a method 200 for determining a first amplification factor of a second Raman spectrum provided by an embodiment of the present application is shown.
[0077] like Figure 2 As shown, the aforementioned step S103 may include the following steps:
[0078] S201, constructing a first matrix by taking the first Raman scattered light intensity of the second pixel point in the first Raman spectrum as the first row element of the first matrix;
[0079] S202, solving the coefficient of the first matrix corresponding to when the objective function reaches the minimum, to obtain a first magnification coefficient;
[0080] The objective function is determined according to the first matrix, an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum, and coefficients of the first matrix.
[0081] In step S201, the intensity information of the Raman scattered light intensity corresponding to the second pixel is extracted through the first Raman spectrum. In a specific embodiment, the Raman spectrum data of the gas to be detected is obtained through a Raman spectrometer, and the Raman spectrometer outputs a curve of the Raman scattered light intensity versus the wave number, that is, the Raman spectrum. The corresponding curve at the second pixel is calculated to obtain the corresponding Raman scattered light intensity. The acquisition of the Raman scattered light intensity can be achieved through mathematical software, such as MATLAB.
[0082] In step S202, the intensity of Raman scattered light usually changes with time, so the first Raman scattered light intensity of the second pixel in the first Raman spectrum is paired with the second Raman scattered light intensity in the second Raman spectrum to obtain the first amplification factor. In addition, by selecting a method for detecting and calculating the second pixel within the detection range of the gas detector, the influence of the saturated data of the first pixel on the accuracy of the calculation result can be effectively removed, and the accuracy of the first amplification factor can be effectively improved.
[0083] In addition, a more accurate calculation result can be obtained by calculating the first amplification factor based on the actual measured Raman scattered light intensity. In an implementation scenario, if the first time period is 5s and the second time period is 20s, the theoretical amplification factor is 4, but due to the power fluctuation of the laser, the baseline drift of the gas detector and other system errors, the actual calculation result may be less than 4, so the actual measured data is used for calculation, and the result is more accurate.
[0084] It is worth noting here that the coefficients of the first matrix corresponding to when the objective function reaches the minimum can be calculated by the gradient descent method and the fitting algorithm (interpolation method, least squares method). In one embodiment, a fitting algorithm can be selected, such as the least squares method for calculation, which finds the best function match for the data by minimizing the sum of squares of errors. The least squares method can be used to easily obtain unknown data, and the sum of squares of errors between the obtained data and the actual data is minimized, thereby obtaining a more accurate first magnification factor.
[0085] Next, the aforementioned objective function will be described in detail.
[0086] The objective function can be expressed as:
[0087] ‖xY1-y1‖ 2 ;
[0088] Wherein, Y1 is the first matrix; x is the coefficient of the first matrix; y1 is an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum.
[0089] Figure 3 A schematic flow chart of a method 300 for determining the intensity of amplified Raman scattered light provided in one embodiment of the present application is shown.
[0090] like Figure 3 As shown, the aforementioned step S104 may include the following steps:
[0091] S301, constructing a second matrix by taking the Raman scattered light intensity of the first pixel point in the second Raman spectrum as the first row element of the second matrix;
[0092] S302, calculating the product of the second matrix and the first amplification coefficient to obtain the amplified Raman scattered light intensity of the Raman scattered light intensity corresponding to each first pixel point.
[0093] The Raman scattered light intensity of the first pixel point in the second Raman spectrum is amplified by the first amplification factor, so that the Raman scattered light intensity corresponding to each first pixel point in the first detection time period can be obtained.
[0094] Figure 4 A Raman spectrum data graph is exemplarily shown, wherein the red line corresponds to the spectrum corresponding to the baseline data, the yellow line corresponds to the spectrum corresponding to the theoretical spectrum data of the gas to be detected, and the blue line corresponds to the spectrum corresponding to the Raman spectrum data actually measured by the gas detector;
[0095] Figure 5 A schematic flow chart of a Raman spectrum acquisition method 500 provided in another embodiment of the present application is shown.
[0096] It is worth pointing out here that Figure 4 As shown in the figure, the Raman spectrum data actually measured by the gas detector consists of two parts: the theoretical spectrum data of the gas to be detected plus the baseline data of the gas detector itself. Among them, the spectrum data of the gas to be detected is obtained through theoretical calculation. In the absence of interference from other factors, it should be the real spectrum characteristics of the gas. The baseline data is introduced due to the limitations of the instrument itself, stray light, background noise and other reasons.
[0097] Theoretically, the actual baseline of the baseline data response value is a flat line, but the baseline data will produce baseline drift. Baseline drift refers to the change in the baseline position during the measurement process. Factors that cause baseline drift include the instability of optical components, the stability of the light source, and the response time of the gas detector, especially after long-term use, which may cause the baseline to drift. For example, the baseline data may be a flat line with a height of 3000 in a certain time period, and a flat line with a height of 5000 in another time period. Therefore, the baseline data of the first Raman spectrum obtained through the first detection time period and the baseline data of the second Raman spectrum obtained through the second detection time period may not be the same. If the Raman scattered light intensity at the first pixel point is replaced assuming that the baseline data of the two detection time periods are the same, it is not accurate enough.
[0098] Therefore, if Figure 5 As shown, in order to effectively solve the influence of baseline drift and improve the accuracy and reliability of the measurement of the gas to be detected. Before the aforementioned S104, the Raman spectrum acquisition method may also include the following steps:
[0099] S501, determining the difference between the baseline spectrum of the first Raman spectrum and the baseline spectrum of the second Raman spectrum as a baseline difference spectrum, and making the intensity of Raman scattered light at each pixel point in the baseline difference spectrum equal.
[0100] Among them, the baseline spectrum is a flat line, that is, the values of each pixel are equal. Because the baseline spectrum is mainly the signal generated by non-target components caused by factors such as the instrument itself and the environment, the specific value of each pixel in the baseline spectrum is unknown. The existence of the baseline will affect the spectral signal extraction and analysis of the target gas. Therefore, the baseline difference spectrum is initialized, that is, it is assumed that the Raman scattered light intensity of each pixel in the baseline difference spectrum is equal, to provide a starting point for further baseline processing, and to better perform subsequent baseline correction and target signal extraction.
[0101] S502 , determining a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of a second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum.
[0102] Among them, the second amplification factor of the baseline difference spectrum is determined by the first Raman scattering intensity, the second Raman scattering intensity and the third Raman scattering intensity of the second pixel point within the detection range of the gas detector, which can effectively ensure the accuracy of the data and reduce the influence of the saturation point in the first Raman spectrum on the second amplification factor.
[0103] S503 , amplifying the Raman scattered light intensity at the first pixel point in the baseline difference spectrum based on the second amplification factor to obtain the amplified Raman scattered light intensity.
[0104] Among them, by amplifying the Raman scattered light intensity at the first pixel point in the baseline difference spectrum through the second amplification factor, the baseline data at the first pixel point can be more accurately applied to the actual spectral data of the first Raman scattering spectrum, providing a more accurate and reliable baseline correction for subsequent spectral analysis, effectively improving the analysis capability of the target signal for detecting the gas to be detected, and making the subsequent spectral analysis more accurate.
[0105] Based on this, determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum includes:
[0106] The amplified Raman scattered light intensity obtained by amplifying the baseline difference spectrum based on the second amplification factor and the Raman scattered light intensity obtained by amplifying the second Raman spectrum based on the first amplification factor are superimposed to obtain the amplified Raman scattered light intensity.
[0107] By superimposing the Raman scattering intensity after the baseline difference spectrum is amplified with the Raman scattering light intensity obtained after the second Raman spectrum is amplified based on the first amplification factor, and then replacing the Raman scattering light intensity at the first pixel point in the first Raman spectrum, the baseline data at the saturation point, i.e., the first pixel point in the first Raman spectrum can be corrected through the baseline difference spectrum, so that the Raman spectrum data at the first pixel point in the obtained Raman spectrum of the detection gas can be closer to the actual spectrum data of the gas to be detected, making the subsequent spectrum analysis more accurate.
[0108] Figure 6 A schematic flow chart of a method 600 for determining a second amplification factor of a baseline difference spectrum provided by an embodiment of the present application is shown.
[0109] like Figure 6 As shown, the aforementioned S502 may include the following steps:
[0110] S601, adjusting the first matrix by taking the third Raman scattered light intensity of the second pixel point in the baseline difference spectrum as the second row element of the first matrix;
[0111] Among them, the adjusted first matrix is a matrix of two rows and n columns, n is the number of second pixels, the first row of the first matrix is an array composed of the first Raman scattered light intensities of the second pixel points in the first Raman spectrum, and the second row of the first matrix is an array composed of the third Raman scattered light intensities of the second pixel points in the baseline difference spectrum.
[0112] S602, based on the adjusted first matrix, solving the coefficient of the first matrix corresponding to the minimum objective function to obtain a second amplification coefficient corresponding to the baseline difference spectrum.
[0113] By adjusting the first matrix, the coefficient of the first matrix is also changed from a value to a vector with one row and two columns, that is, the second amplification coefficient corresponding to the baseline difference spectrum can be obtained therefrom.
[0114] After obtaining the Raman spectrum of the gas to be detected containing strong signals and weak signals through the aforementioned steps, in order to further increase the gas detector's ability to collect Raman scattering signals corresponding to gases with lower concentrations, the detection time can be further increased, and the obtained Raman spectrum of the gas to be detected containing strong signals and weak signals is updated to the first Raman spectrum, and then the gas to be detected is detected by the gas detector again, so as to obtain the first Raman spectrum and the second Raman spectrum obtained by the gas detector when detecting the gas to be detected in the first detection time period and the second detection time period, respectively. The Raman spectrum acquisition method of an embodiment of the present invention will be explained below through a specific example.
[0115] For example, the gas to be detected is a natural gas standard gas with a known concentration range, which contains a variety of alkane gases at parts per million levels and methane at percentage levels.
[0116] Step 1: Determine the first detection time period and the second detection time period. In the first detection time period, use the gas detector to detect the gas to be detected and record the corresponding Raman spectrum data to generate the following Figure 7a The first Raman spectrum shown is l In the second detection time period, the gas to be detected is detected and the corresponding Raman spectrum data is recorded to generate the following Figure 7b The second Raman spectrum shown is s .
[0117] Step 2: Initialize the baseline difference spectrum b as a 1*n vector, where n is the number of pixels and each element is 1.
[0118] Step 3: From the first Raman spectrum lThe first pixel point whose Raman scattered light intensity exceeds the upper limit of the gas detector detection range is extracted, and a set P1 of the first pixel points is recorded, wherein the number of the first pixel points in the set P1 is n1. The second pixel point set P2 whose Raman scattered light intensity is within the gas detector detection range is extracted, wherein the number of the second pixel points in the set P2 is n2.
[0119] Step 4: Obtain the first Raman spectrum y l , the second Raman spectrum s and the Raman scattered light intensity corresponding to each second pixel point belonging to set P2 in the baseline difference spectrum b, to obtain y l1 ,y s1 and b1; obtain the first Raman spectrum y l , the second Raman spectrum s The Raman scattered light intensity corresponding to each second pixel point belonging to set P1 in the baseline difference spectrum b is obtained to obtain y l2 ,y s2 and b2.
[0120] Step 5: Create a 2*n2 matrix Y and set the first row of matrix Y to y s1 , the second line is b1, use the least squares method to calculate min‖xY1-y l1 ‖ 2 The value of x in , where x is a 1*2 vector.
[0121] Step 6: Create a 2*n1 matrix Y ′ , and the matrix Y ′ The first line of s2 , the second line is b2, let Y ′ Multiply by x to obtain the amplified Raman scattered light intensities corresponding to the plurality of first pixel points, and then calculate the amplified Raman scattered light intensities corresponding to the plurality of first pixel points to obtain the first Raman spectrum y. l The Raman scattered light intensities corresponding to the multiple first pixel points in are replaced to obtain Figure 8 and Fig. 9 The long and short acquisition time stitched spectrum y ls , which is the Raman spectrum of the gas to be detected.
[0122] The above Raman spectrum acquisition method is used to fuse the first Raman spectrum and the second Raman spectrum. The obtained Raman spectrum of the gas to be detected measures the strong signal of the high-concentration gas and also acquires the weak signal of the low-concentration gas with a better signal-to-noise ratio.
[0123] Fig.10 A structural block diagram of a Raman spectrum acquisition device 1000 provided in one embodiment of the present application is shown.
[0124] like Fig.10As shown, the Raman spectrum acquisition device 1000 provided in the embodiment of the present application may include the following modules:
[0125] An acquisition module 1001 is used to detect the gas to be detected by a gas detector to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period;
[0126] An extraction module 1002 is used to extract, from the first Raman spectrum, a first pixel point whose Raman scattered light intensity exceeds an upper limit of a detection range of the gas detector and a second pixel point within the detection range of the gas detector according to the Raman scattered light intensity in the first Raman spectrum;
[0127] A determination module 1003, configured to determine a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of a second pixel point in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum;
[0128] A first amplification module 1004, configured to determine the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum;
[0129] The replacement module 1005 is used to replace the Raman scattered light intensity of the first pixel in the first Raman spectrum based on the amplified Raman scattered light intensity to obtain the Raman spectrum of the gas to be detected.
[0130] In the embodiment of the present application, the first Raman spectrum and the second Raman spectrum of the gas to be detected in different detection time periods are obtained by the acquisition module 1001, and then the first pixel point exceeding the upper limit of the detection range of the gas detector and the second pixel point within the detection range of the gas detector are screened out from the first Raman spectrum by the extraction module 1002, so as to effectively screen the saturation point in the first Raman spectrum, that is, the first pixel point. Then, the determination module 1003 can calculate the first amplification factor of the second Raman spectrum based on the first Raman scattered light intensity and the second Raman scattered light intensity of the second pixel point, and amplify the Raman scattered light intensity at the first pixel point in the second Raman spectrum according to the first amplification factor by the first amplification module 1004, and thereafter, the replacement module 1005 can replace and adjust the Raman scattered light intensity at the first pixel point in the first Raman spectrum to obtain the Raman spectrum of the gas to be detected containing strong signals and weak signals. The above method is used to optimize the first Raman spectrum, so that the first Raman spectrum can more accurately display the information of the gas to be detected, which helps to reduce the influence of the limited dynamic range and resolution of the gas detector on the simultaneous accurate measurement of gases of different concentrations, and improves the reliability of the measurement of the gas to be detected.
[0131] As an implementation of the present application, in order to determine the first amplification factor of the second Raman spectrum, the Raman spectrum acquisition device provided in the embodiment of the present application may also include the following modules:
[0132] A first constructing module, used to construct a first matrix using a first Raman scattered light intensity of a second pixel point in the first Raman spectrum as a first row element of the first matrix;
[0133] A first calculation module, used to solve the coefficient of the first matrix corresponding to when the objective function reaches the minimum, so as to obtain a first magnification coefficient;
[0134] The objective function is determined according to the first matrix, an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum, and coefficients of the first matrix.
[0135] As an implementation of the present application, the expression of the objective function in the aforementioned calculation module is:
[0136] ‖xY1-y1‖ 2 ;
[0137] Wherein, Y1 is the first matrix; x is the coefficient of the first matrix; y1 is an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum.
[0138] As an implementation of the present application, the aforementioned calculation module can also be used to solve the objective function using the least squares method.
[0139] As an implementation of the present application, in order to determine the intensity of the amplified Raman scattered light, the Raman spectrum acquisition device provided in the embodiment of the present application may also include the following modules:
[0140] A second constructing module, used to construct a second matrix using the Raman scattered light intensity of the first pixel point in the second Raman spectrum as the first row element of the second matrix;
[0141] The second calculation module is used to calculate the product of the second matrix and the first amplification coefficient to obtain the Raman scattered light intensity after the Raman scattered light intensity corresponding to each first pixel point is amplified.
[0142] As an implementation of the present application, the Raman spectrum acquisition device provided in the embodiment of the present application may also include the following modules:
[0143] A third determination module is used to determine the difference between the baseline spectrum of the first Raman spectrum and the baseline spectrum of the second Raman spectrum as a baseline difference spectrum, and to make the Raman scattered light intensity at each pixel point in the baseline difference spectrum equal;
[0144] A fourth determination module, configured to determine a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum;
[0145] A second amplification module, used to amplify the Raman scattered light intensity at the first pixel point in the baseline difference spectrum based on a second amplification factor to obtain the amplified Raman scattered light intensity;
[0146] Based on this, the aforementioned first amplification module may further include:
[0147] The amplifying submodule is used to superimpose the amplified Raman scattered light intensity obtained by amplifying the baseline difference spectrum based on the second amplification factor and the Raman scattered light intensity obtained by amplifying the second Raman spectrum based on the first amplification factor to obtain the amplified Raman scattered light intensity.
[0148] As an implementation of the present application, in order to calculate the second amplification factor, the fourth determination module in the Raman spectrum acquisition device provided in the embodiment of the present application may further include the following modules:
[0149] An adjustment submodule, used to adjust the first matrix by taking the third Raman scattered light intensity of the second pixel point in the baseline difference spectrum as the second row element of the first matrix;
[0150] The calculation submodule is used to solve the coefficient of the first matrix corresponding to the minimum objective function based on the adjusted first matrix, so as to obtain the second amplification coefficient corresponding to the baseline difference spectrum.
[0151] As an implementation of the present application, the Raman spectrum acquisition device provided in the embodiment of the present application can further increase the gas detector's ability to collect Raman scattering signals corresponding to gases with lower concentrations, and can also include the following modules:
[0152] The updating module is used to update the Raman spectrum of the gas to be detected to the first Raman spectrum, and return to detect the gas to be detected through the gas detector to obtain the first Raman spectrum and the second Raman spectrum obtained by the gas detector detecting the gas to be detected in the first detection time period and the second detection time period respectively.
[0153] Fig.11 It is a structural diagram of an electronic device provided by yet another embodiment of the present application.
[0154] The electronic device may include a processor 1101 and a memory 1102 storing computer program instructions.
[0155] Specifically, the processor 1101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0156] The memory 1102 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 1102 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 1102 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 1102 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 1102 is a non-volatile solid-state memory.
[0157] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.
[0158] The processor 1101 reads and executes the computer program instructions stored in the memory 1102 to implement any one of the Raman spectrum collection methods in the above embodiments.
[0159] In one example, the electronic device may further include a communication interface 1103 and a bus 1110. Fig.11 As shown, the processor 1101, the memory 1102, and the communication interface 1103 are connected via a bus 1110 and communicate with each other.
[0160] The communication interface 1103 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0161] Bus 1110 includes hardware, software or both, and the components of online data flow billing equipment are coupled to each other. For example, but not limitation, the bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnect (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 1110 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection. The electronic device can realize the aforementioned Raman spectrum acquisition method and device.
[0162] In addition, in combination with the Raman spectrum acquisition method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the Raman spectrum acquisition methods in the above embodiment is implemented.
[0163] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0164] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0165] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0166] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0167] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A Raman spectrum acquisition method, characterized in that: include: Detecting the gas to be detected by a gas detector to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period; According to the intensity of Raman scattered light in the first Raman spectrum, extracting from the first Raman spectrum a first pixel point where the intensity of Raman scattered light exceeds an upper limit of the detection range of the gas detector and a second pixel point within the detection range of the gas detector; determining a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum; determining the amplified Raman scattered light intensity based on the first amplification factor and the Raman scattered light intensity at the first pixel point in the second Raman spectrum; The Raman scattered light intensity of the first pixel point in the first Raman spectrum is replaced based on the amplified Raman scattered light intensity to obtain the Raman spectrum of the gas to be detected.
2. The Raman spectrum acquisition method according to claim 1, characterized in that: The determining a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum comprises: Constructing a first matrix by taking the first Raman scattered light intensity of the second pixel in the first Raman spectrum as the first row element of the first matrix; Solving the coefficient of the first matrix corresponding to when the objective function reaches the minimum, to obtain the first magnification coefficient; The objective function is determined according to the first matrix, an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum, and coefficients of the first matrix.
3. The Raman spectrum acquisition method according to claim 2, characterized in that: The expression of the objective function is: ‖xY1-y1‖ 2 ; In the formula, Y1 is the first matrix; x is the coefficient of the first matrix; y1 is an array formed by the second Raman scattered light intensity of the second pixel point in the second Raman spectrum.
4. The Raman spectrum acquisition method according to claim 2, characterized in that: The objective function is solved using the least squares method.
5. The Raman spectrum acquisition method according to claim 1, characterized in that: The step of determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum includes: Constructing a second matrix by taking the Raman scattered light intensity of the first pixel in the second Raman spectrum as the first row element of the second matrix; The product of the second matrix and the first amplification coefficient is calculated to obtain the amplified Raman scattered light intensity of the Raman scattered light intensity corresponding to each of the first pixel points.
6. The Raman spectrum acquisition method according to any one of claims 2 to 5, characterized in that: Before determining the intensity of the amplified Raman scattered light based on the first amplification factor and the Raman scattered light intensity at the first pixel point in the second Raman spectrum, the method further includes: Determine the difference between the baseline spectrum of the first Raman spectrum and the baseline spectrum of the second Raman spectrum as a baseline difference spectrum, and make the Raman scattered light intensity at each pixel point in the baseline difference spectrum equal; determining a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum; amplifying the Raman scattered light intensity at the first pixel point in the baseline difference spectrum based on the second amplification factor to obtain the amplified Raman scattered light intensity; The step of determining the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum includes: The amplified Raman scattered light intensity obtained by amplifying the baseline difference spectrum based on the second amplification factor and the Raman scattered light intensity obtained by amplifying the second Raman spectrum based on the first amplification factor are superimposed to obtain the amplified Raman scattered light intensity.
7. The Raman spectrum acquisition method according to claim 6, characterized in that: The determining a second amplification factor of the baseline difference spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum, a second Raman scattered light intensity in the second Raman spectrum, and a third Raman scattered light intensity in the baseline difference spectrum comprises: Using the third Raman scattered light intensity of the second pixel point in the baseline difference spectrum as the second row element of the first matrix, adjusting the first matrix; Based on the adjusted first matrix, the coefficients of the first matrix corresponding to the minimum objective function are solved to obtain a second amplification coefficient corresponding to the baseline difference spectrum.
8. A Raman spectrum acquisition device, characterized in that: include: an acquisition module, configured to detect the gas to be detected by a gas detector, so as to obtain a first Raman spectrum and a second Raman spectrum obtained by the gas detector detecting the gas to be detected in a first detection time period and a second detection time period, respectively, wherein the duration of the first detection time period is longer than the duration of the second detection time period; An extraction module, configured to extract, from the first Raman spectrum, a first pixel point whose Raman scattered light intensity exceeds an upper limit of a detection range of the gas detector and a second pixel point within the detection range of the gas detector according to the Raman scattered light intensity in the first Raman spectrum; a determination module, configured to determine a first amplification factor of the second Raman spectrum based on a first Raman scattered light intensity of the second pixel in the first Raman spectrum and a second Raman scattered light intensity in the second Raman spectrum; a first amplification module, configured to determine the intensity of the amplified Raman scattered light based on the first amplification factor and the intensity of the Raman scattered light at the first pixel point in the second Raman spectrum; A replacement module is used to replace the Raman scattered light intensity of the first pixel point in the first Raman spectrum based on the amplified Raman scattered light intensity to obtain the Raman spectrum of the gas to be detected.
9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the Raman spectrum acquisition method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the Raman spectrum acquisition method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Image acquisition for chemiluminescent samples
CN104303047A
Spectral data processing method
CN106769937A
Calculation method for setting upper limit of integration time of emission spectrometer
CN108169215A
Method and device for processing gas Raman spectrum
CN110567932A
Quantitative detection method and system based on Raman spectrum and Raman spectrometer
CN113984735A