[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118032695B - Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology - Google Patents

Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology Download PDF

Info

Publication number
CN118032695B
CN118032695B CN202410392046.6A CN202410392046A CN118032695B CN 118032695 B CN118032695 B CN 118032695B CN 202410392046 A CN202410392046 A CN 202410392046A CN 118032695 B CN118032695 B CN 118032695B
Authority
CN
China
Prior art keywords
data segment
curve
neighborhood
nitrogen
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410392046.6A
Other languages
Chinese (zh)
Other versions
CN118032695A (en
Inventor
张守庆
丁庆峰
成太平
沈红燕
孔令彪
师蕴慧
王文龙
宋玉健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chuangyu Energy Technology Co ltd
Original Assignee
Shandong Chuangyu Energy Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Chuangyu Energy Technology Co ltd filed Critical Shandong Chuangyu Energy Technology Co ltd
Priority to CN202410392046.6A priority Critical patent/CN118032695B/en
Publication of CN118032695A publication Critical patent/CN118032695A/en
Application granted granted Critical
Publication of CN118032695B publication Critical patent/CN118032695B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

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

Abstract

The invention relates to the technical field of data denoising, in particular to a nitrogen-sulfur in-situ measurement method and system based on a differential ultraviolet spectrum technology. According to the change trend of the local reflection intensity between adjacent data points in each data segment of the spectrum curve, curve volatility in each data segment is obtained; screening out an absorption peak approximate region as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging the merging neighborhood range of the target data segment; obtaining a plurality of merged neighborhood ranges; obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the corresponding wavelength ranges; obtaining a denoising spectrum curve; in situ measurements were performed on nitrogen sulfur samples. The method obtains the proper average window size in the denoising process of the spectrum curve, optimizes the denoising effect and accurately measures the concentration.

Description

Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology
Technical Field
The invention relates to the technical field of data denoising, in particular to a nitrogen-sulfur in-situ measurement method and system based on a differential ultraviolet spectrum technology.
Background
The differential ultraviolet spectrum technology is a method for analyzing the absorption characteristics of ultraviolet light wave bands by using materials, and is particularly suitable for monitoring chemical substances such as nitrogen, sulfur and the like containing specific ultraviolet light absorption characteristics. The ratio of signals to noise is improved by utilizing the technical means of differential spectrum, and accurate nitrogen and sulfur concentration information is extracted by a data processing algorithm aiming at the complexity of differential ultraviolet spectrum data, so that interference and errors are avoided; therefore, denoising the nitrogen-sulfur curve is a key step for improving detection accuracy and sensitivity.
In the prior art, a moving average algorithm is adopted to remove noise in a spectrum curve; however, when the average window is too large, the peak information of the spectrum curve is lost, and the measurement of the sample concentration obtained according to the peak information is error; conversely, when the average window is too small, there is a residual of part of the noise; therefore, the poor average window size setting makes the denoising effect poor, and causes errors in the detected nitrogen-sulfur concentration.
Disclosure of Invention
In order to solve the technical problem that the error occurs in the detected sample concentration due to poor denoising effect caused by poor average window size setting, the invention aims to provide a nitrogen-sulfur in-situ measurement method and system based on a differential ultraviolet spectrum technology, and the adopted technical scheme is as follows:
the invention provides a nitrogen and sulfur in-situ measurement method based on a differential ultraviolet spectrum technology, which comprises the following steps:
acquiring a spectrum curve of a nitrogen-sulfur sample; the spectrum curve comprises reflection intensities corresponding to different wavelengths;
discretizing the spectrum curve to obtain data points on the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; screening out an absorption peak approximate region according to the curve fluctuation in each data segment;
Optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging a merging neighborhood range of the target data segment according to the mergence; changing the target data segment to obtain a plurality of merging neighborhood ranges;
obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the wavelength range of the merging neighborhood range; denoising the spectrum curve according to the optimal average window size to obtain a denoised spectrum curve;
and carrying out in-situ measurement on nitrogen and sulfur according to the denoising spectrum curve.
Further, the method for acquiring the data points comprises the following steps:
obtaining the minimum sampling frequency of a spectrum curve by adopting the Nyquist sampling theorem; calculating the reciprocal of the minimum sampling frequency and taking an integer as a sampling step length; discretizing the spectrum curve with the sampling step length as interval to obtain the data points on the spectrum curve.
Further, the method for acquiring the curve volatility comprises the following steps:
sequentially acquiring data points in a preset wavelength range on a spectrum curve to form a data segment;
Obtaining a fitting function of a spectrum curve;
Calculating, within each data segment, an integral of the fitting function between adjacent data points as the local reflection intensity between the adjacent data points;
Calculating a difference between two adjacent local reflection intensities as a first difference;
And calculating the average value of the first difference between all adjacent local reflection intensities in each data segment, and normalizing the average value to be used as the curve fluctuation of each data segment.
Further, the method for acquiring the absorption peak approximation area comprises the following steps:
and if the curve fluctuation of the data segment is within a preset fluctuation threshold range, the corresponding data segment is used as an absorption peak approximation area.
Further, the method for acquiring the mergence comprises the following steps:
calculating the ratio of the target data segment to each other data segment in the preset neighborhood range in each preset neighborhood range of the target data segment as a first ratio; calculating the difference between the first ratio and a preset constant between the target data segment and each other data segment in a preset neighborhood range as a first difference; and calculating the average value of the first difference between the target data segment and all other data segments in the preset neighborhood range, and taking the average value as the mergence in each preset neighborhood range.
Further, the method for acquiring the merged neighborhood range comprises the following steps:
If the mergence in the preset neighborhood range is not in the preset mergence threshold range, judging that the previous preset neighborhood range is the mergence neighborhood range.
Further, the method for obtaining the optimal average window size includes:
Calculating the difference between the maximum wavelength and the minimum wavelength in the merging neighborhood range as the wavelength range of the merging neighborhood range;
Obtaining the optimal average window size according to an obtaining formula of the optimal average window size, wherein the obtaining formula of the optimal average window size is as follows:
; wherein, Representing an optimal average window size; Represent the first Combining wavelength ranges of the neighborhood ranges; Represent the first Merging data points in a neighborhood range; Represent the first The data points in the combined neighborhood range correspond to the reflection intensities; Represent the first Variance of the corresponding reflection intensity of the data points in the range of the merging neighborhood; representing the number of merged neighborhood regions; Representing the normalization function.
Further, the method for acquiring the denoising spectrum curve comprises the following steps:
and denoising the spectral curve by adopting a moving average algorithm based on the optimal average window size to obtain a denoising spectral curve.
Further, the preset fluctuation threshold range is that
The invention also provides a nitrogen and sulfur in-situ measurement system based on the differential ultraviolet spectrum technology, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes any one step of the nitrogen and sulfur in-situ measurement method based on the differential ultraviolet spectrum technology when executing the computer program.
The invention has the following beneficial effects:
In order to simplify the data processing process and retain enough information, discretizing a spectrum curve to obtain data points on the spectrum curve; acquiring a plurality of data segments of the spectrum curve, and acquiring curve volatility in each data segment according to the change trend of the local reflection intensity between adjacent data points in each data segment, so that the method is beneficial to more finely analyzing the local characteristics in each data segment and describing the structural characteristics of the spectrum curve; screening out an absorption peak approximate region according to curve fluctuation in each data segment, focusing on a region containing key characteristic information, and improving pertinence of spectrum analysis; optionally selecting an absorption peak approximation area as a target data segment; in order to make the form of the absorption peak clearer and more accurate, according to the difference of curve fluctuation between the target data segment and other data segments in corresponding different preset neighborhood ranges, the combinability in the different preset neighborhood ranges is obtained, and the similarity and the combinability between the data segments are evaluated; judging a merging neighborhood range of the target data segment according to the mergence, better reflecting the spectral characteristics of the substance, describing the complete morphological characteristics of the absorption peak, and enabling the spectral data to have better interpretation; changing the target data segment to obtain a plurality of merging neighborhood ranges; according to fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the corresponding wavelength ranges, the optimal average window size is obtained, useful information of a spectrum curve can be reserved to the maximum extent, and noise and interference are effectively removed; denoising the spectrum curve according to the optimal average window size to obtain a denoised spectrum curve, removing noise components in the spectrum curve more accurately, and improving the signal-to-noise ratio of spectrum data; in situ measurements were performed on nitrogen sulfur samples. The method obtains the proper average window size in the denoising process of the spectrum curve, optimizes the denoising effect and accurately measures the concentration.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for measuring nitrogen and sulfur in situ based on a differential ultraviolet spectrum technology according to an embodiment of the present invention.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following detailed description is given below of the nitrogen-sulfur in-situ measurement method and system based on the differential ultraviolet spectroscopy technology according to the invention, which are provided by the invention, with reference to the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The invention provides a nitrogen and sulfur in-situ measurement method and a system based on a differential ultraviolet spectrum technology, which are concretely described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a method for in-situ measurement of nitrogen and sulfur based on differential ultraviolet spectroscopy according to an embodiment of the present invention is shown, and the method specifically includes:
Step S1: acquiring a spectrum curve of a nitrogen-sulfur sample; the spectral curves include reflected intensities corresponding to different wavelengths.
In the embodiment of the invention, in the process of carrying out nitrogen-sulfur analysis on a sample containing ultraviolet light absorption characteristics such as nitrogen, sulfur and the like through a differential ultraviolet spectroscopy technology, firstly, a differential ultraviolet spectroscopy technology is adopted to obtain a spectrum curve of the nitrogen-sulfur sample, wherein the spectrum curve comprises reflection intensities corresponding to different wavelengths; wherein, the abscissa is the wavelength of ultraviolet light, and the unit is nanometer (nm); the ordinate is the corresponding reflection intensity at different wavelengths, and no dimension exists.
Step S2: discretizing the spectrum curve to obtain data points on the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; and screening out an absorption peak approximate region according to curve fluctuation in each data segment.
The continuous spectrum curve comprises infinite data points, and the continuous spectrum curve can be converted into a limited number of data point sets through discretization, so that the calculated amount is reduced, and the characteristic extraction and analysis are easier to perform; proper discretization can eliminate or reduce small fluctuations due to measurement equipment or environmental noise, thereby improving the accuracy of the spectral analysis. The spectral curve is discretized to obtain data points on the spectral curve.
Preferably, in one embodiment of the present invention, the discretized acquisition method includes:
After discretizing the spectrum curve, the characteristics of the original data are still reserved; obtaining the minimum sampling frequency of a spectrum curve by adopting the Nyquist sampling theorem; calculating the reciprocal of the minimum sampling frequency and taking an integer as a sampling step length; by selecting a proper sampling step length, key features in a spectrum curve can be highlighted; discretizing the spectrum curve with the sampling step length as interval to obtain the data points on the spectrum curve. The nyquist sampling theorem is a technical means well known to those skilled in the art, and is not described herein.
Dividing the data point into a plurality of data segments, and capturing the local characteristics in each data segment more accurately; spectral curves in different data segments may have different volatility and variation trends, and the variation trend of the local reflection intensity between adjacent data points may show the trend of rising, falling, fluctuation and the like in the spectral curves, which is helpful for understanding the structure and characteristics of the spectral curves; the larger the difference between the local reflection intensities, the more the spectral curve at the data segment fluctuates, and the larger the curve fluctuation is; and acquiring a plurality of data segments of the spectrum curve, and acquiring the curve fluctuation in each data segment according to the change trend of the local reflection intensity between adjacent data points in each data segment.
Preferably, in one embodiment of the present invention, the method for acquiring curve volatility includes:
Sequentially acquiring data points in a preset wavelength range on a spectrum curve to form a data segment; obtaining a fitting function of a spectrum curve; because the spectrum curve is a continuous curve, in order to ensure the original data value of the curve to the greatest extent in the analysis process, the local reflection intensity characteristic of the spectrum curve in a specific wavelength range is reflected more accurately, an integral method is selected, and in each data segment, the integral of a fitting function between adjacent data points is calculated and used as the local reflection intensity between the adjacent data points; calculating a difference between two adjacent local reflection intensities as a first difference; the mean value of the first difference between all adjacent local reflection intensities in each data segment is calculated and normalized as the curve volatility of each data segment. In one embodiment of the invention, the formula for curve volatility is expressed as:
Wherein, Represent the firstCurve volatility of individual data segments; Represent the first Sequence numbers of data points within the data segments; Represent the first Data points; Represent the first Data points; a fitting function representing a spectral curve; Represent the first The number of data points within the data segment of the data segments; Representing the fitting function at the first Data point and adjacent firstAn integral function between the data points; Representing the normalization function.
In the formula of the curve volatility,The first difference between adjacent partial reflection intensities is represented, and the larger the first difference is, the larger the difference between the partial reflection intensities is, the larger the curve fluctuation is, and the more characteristic information is contained.
It should be noted that, in one embodiment of the present invention, the preset wavelength range is 30nm; in other embodiments of the present invention, the size of the preset wavelength range may be specifically set according to specific situations, which are not limited and described herein.
It should be noted that, in one embodiment of the present invention, the fitting function may be obtained by using a least square method; in other embodiments of the present invention, a fitting function may be obtained by using a fitting method such as polynomial fitting and spline interpolation, and the fitting method is a technical means well known to those skilled in the art, which is not described herein.
The nitrogen-sulfur compounds in the sample have different absorption characteristics, the positions and intensities of absorption peaks in the spectrum are different, the absorption peaks of nitrogen are usually concentrated in a region with lower wavelengths of a spectrum curve, and sulfur is mainly concentrated in a middle region of the wavelengths of the spectrum curve, so that the absorption peaks of the spectrum curve appear at a plurality of wavelengths; absorption peaks refer to regions of the spectrum in which the reflected intensity is significantly reduced in a particular wavelength range, with significantly greater volatility than other non-absorbing regions; the larger the curve volatility, the more likely it is the absorption peak approximation region; the absorption peak approximation area is screened out according to the curve fluctuation in each data segment.
Preferably, in one embodiment of the present invention, the method for acquiring the absorption peak approximation area includes:
and if the curve fluctuation of the data segment is within a preset fluctuation threshold range, the corresponding data segment is used as an absorption peak approximation area.
It should be noted that, in one embodiment of the present invention, the preset fluctuation threshold range is; In other embodiments of the present invention, the size of the preset fluctuation threshold range may be specifically set according to specific situations, which is not limited and described herein.
Step S3: optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging the merging neighborhood range of the target data segment according to the merging property; and changing the target data segment to obtain a plurality of merging neighborhood ranges.
Because a part of absorption peaks possibly occupy a plurality of data segments in the process of dividing the data segments, the complete absorption peak area needs to be analyzed; to get the result faster, find the key information, an absorption peak approximation area is selected as the target data segment; the difference of curve volatility reflects the similarity and the difference between the data segments, and the smaller the difference is, the more likely the data segments in the neighborhood range are the areas which can be merged; therefore, the mergence in different preset neighborhood ranges is obtained according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges.
Preferably, in one embodiment of the present invention, the method for acquiring the mergence includes:
Calculating the ratio of the target data segment to each other data segment in the preset neighborhood range in each preset neighborhood range of the target data segment as a first ratio; calculating the difference between a first ratio and a preset constant between the target data segment and each other data segment in a preset neighborhood range as a first difference; and calculating the average value of the first difference between the target data segment and all other data segments in the preset neighborhood range, and taking the average value as the mergence in each preset neighborhood range. In one embodiment of the invention, the formula for the merger is expressed as:
Wherein, Represent the firstSequence numbers of preset neighborhood ranges of the target data segments; Represent the first The first target data segmentMergeability of a number of preset neighborhood ranges; Represent the first Curve volatility of individual target data segments; Represent the first The data segments correspond to the first data segment in the preset neighborhood rangeCurve volatility of the other data segments; Representing the number of other data segments within the neighborhood; representing a preset constant, taking the checked value as 1.
In the formula of the mergence,Represent the firstThe target data segment is within the corresponding preset neighborhood rangeThe ratio of the curve volatility between the other data segments, if the ratio is close to 1,The closer to 0, the closer the curve volatility between data segments, the more likely the preset neighborhood range is the absorption peak region.
It should be noted that, in one embodiment of the present invention, the method for acquiring different preset neighborhood ranges includes: sequentially expanding and iterating a preset number of data segments outwards by taking the target data segment as a center, and forming a preset neighborhood range with the target data segment; the preset number is 2; an example is made: firstly, selecting 2 adjacent data segments, and forming a neighborhood range with a target data segment; expanding 2 data segments outwards for the second time, and selecting 4 adjacent data segments and target data segments to form a neighborhood range in the first iteration; thirdly, iterating, namely expanding 2 data segments outwards, and selecting target data segments of 6 adjacent data segments to form a neighborhood range with the second iteration; and sequentially acquiring different preset neighborhood ranges.
Through the mergence of the data segments in the neighborhood range, which data segments have similar characteristics can be judged, so that the merging neighborhood range is determined; more representative spectral features are extracted, and components in the sample are identified more accurately. The merge neighborhood range of the target data segment is determined based on the mergence.
Preferably, in one embodiment of the present invention, the method for acquiring the merged neighborhood range includes:
If the mergence in the preset neighborhood range is not in the preset mergence threshold range, judging the corresponding previous preset neighborhood range as a mergence neighborhood range.
It should be noted that, in one embodiment of the present invention, the preset merge threshold range is; In an embodiment of the present invention, the size of the preset merge threshold range may be specifically set according to specific situations, which is not limited and described herein.
There are a plurality of distinct characteristic regions in the spectral curve, each region possibly representing a different component or structure in the sample; by changing the target data segment, these different feature regions can be explored and identified, thereby providing a more comprehensive understanding of the spectral characteristics of the sample. The target data segment is changed to obtain a plurality of merged neighborhood regions.
Step S4: obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the wavelength range of the merging neighborhood range; and denoising the spectrum curve according to the optimal average window size to obtain a denoising spectrum curve.
The fluctuation characteristics of the corresponding reflection intensity of the data points in the combined neighborhood range can reflect the characteristics of the spectrum data, and the larger the fluctuation characteristics are, the more characteristic information exists in the corresponding wave band range, the more likely the characteristic information is an absorption peak area, and the more the characteristic information needs to be amplified; the original wave band range can directly reflect the real reflection or emission characteristics of the sample in the wave band ranges, so that the composition and the structural information of the sample are more accurately disclosed; comprehensively considering the characteristics of the data points on the basis of the wavelength ranges corresponding to the merging neighborhood ranges, and ensuring that useful characteristic information is fully considered and utilized; and therefore, the optimal average window size is obtained according to the fluctuation characteristics of the data points corresponding to the reflection intensity in different merging neighborhood ranges and the corresponding wavelength ranges.
Preferably, in one embodiment of the present invention, the method for obtaining the optimal average window size includes:
Calculating the difference between the maximum wavelength and the minimum wavelength in the merging neighborhood range as the wavelength range of the merging neighborhood range;
Obtaining the optimal average window size according to an obtaining formula of the optimal average window size, wherein the obtaining formula of the optimal average window size is as follows:
Wherein, Representing an optimal average window size; Represent the first Combining wavelength ranges of the neighborhood ranges; Represent the first Merging data points in a neighborhood range; Represent the first The data points in the combined neighborhood range correspond to the reflection intensities; Represent the first Variance of the corresponding reflection intensity of the data points in the range of the merging neighborhood; representing the number of merged neighborhood regions; Representing the normalization function.
In the acquisition formula for the optimal average window size,Represent the firstThe ratio of the variance of the reflected intensities of the individual merged neighborhood range data points to the variance of the reflected intensities of all merged neighborhood range data points is greater, the greater the ratio, the thThe larger the variance of the reflection intensities of the individual merged neighborhood range data points, the moreThe larger the difference between the reflection intensities of the data points in the merging neighborhood range, the larger the volatility in the merging neighborhood range, the more likely the absorption peak region, and the more the weight duty ratio of the wavelength range needs to be adjusted; the larger the wavelength range, the larger the weight ratio, the larger the optimal average window, and the more feature information is reserved.
Due to factors such as instrument errors, environmental noise and the like, a spectrum curve may contain noise components, and denoising processing is needed. However, due to the smaller window size, the details of the spectral curve can be better preserved, but partial noise remains; the larger window size can remove noise more effectively, but the peak information of the spectrum curve is lost, so that the measurement of the sample concentration obtained according to the peak information is error; the optimal average window size can ensure that the main characteristic information of the spectrum curve is kept as much as possible while noise is removed, so that the data is more accurate; and therefore, denoising the spectrum curve according to the optimal average window size to obtain a denoised spectrum curve.
Preferably, in one embodiment of the present invention, the method for acquiring a denoising spectral curve comprises:
and denoising the spectral curve by adopting a moving average algorithm based on the optimal average window size to obtain a denoising spectral curve.
It should be noted that, after the optimal average window size is obtained, in other embodiments of the present invention, in the process of performing the moving average algorithm on the spectrum curve, a weight may be allocated to each piece of data according to whether the data in the optimal average window is in the absorption peak area, so that the weight of the data in the absorption peak area is greater than that in other areas, more main feature information may be retained, and the denoising effect is more accurate; the specific moving average algorithm is a technical means well known to those skilled in the art, and will not be described herein.
Step S5: and carrying out in-situ measurement on the nitrogen and sulfur according to the denoising spectrum curve.
The denoising spectrum curve more accurately reflects the spectrum characteristics of nitrogen and sulfur elements in the sample, avoids measurement errors possibly caused by sample damage or pollution, and is beneficial to accurately evaluating the nitrogen and sulfur content in the sample. The in situ measurement of nitrogen sulfur is performed based on the denoising spectral curve.
In one embodiment of the present invention, the reflection intensity of the absorption peak of the spectrum curve may reflect the concentration, and the ratio of the reflection intensity to the nitrogen-sulfur concentration is calculated by using beer-lambert law for the denoising spectrum curve, so as to obtain the nitrogen-sulfur concentration. The specific beer-lambert law is a technical means well known to those skilled in the art, and will not be described herein.
In summary, the present invention discretizes the spectrum curve to obtain the data points on the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; screening out an absorption peak approximate region; optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging the merging neighborhood range of the target data segment; changing the target data segment to obtain a plurality of merging neighborhood ranges; obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the corresponding wavelength ranges; denoising the spectrum curve to obtain a denoised spectrum curve; in situ measurements were performed on nitrogen sulfur samples. The method obtains the proper average window size in the denoising process of the spectrum curve, optimizes the denoising effect and accurately measures the concentration.
The invention also provides a nitrogen and sulfur in-situ measurement system based on the differential ultraviolet spectrum technology, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes any one of the steps of the nitrogen and sulfur in-situ measurement method based on the differential ultraviolet spectrum technology when executing the computer program.
An embodiment of a nitrogen-sulfur curve denoising method based on a differential ultraviolet spectrum technology:
In the prior art, a moving average algorithm is adopted to remove noise in a spectrum curve; however, when the average window is too large, the peak information of the spectrum curve is lost, and the measurement of the sample concentration obtained according to the peak information is error; conversely, when the average window is too small, there is a residual of part of the noise; therefore, the technical problem that the denoising effect is poor due to the poor average window size setting. In order to solve the technical problem, the embodiment provides a nitrogen-sulfur curve denoising method based on a differential ultraviolet spectrum technology, which comprises the following steps:
S1, acquiring a spectrum curve of a nitrogen-sulfur sample; the spectral curves include reflected intensities corresponding to different wavelengths.
Step S2: discretizing the spectrum curve to obtain data points on the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; and screening out an absorption peak approximate region according to curve fluctuation in each data segment.
Step S3: optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging the merging neighborhood range of the target data segment according to the merging property; and changing the target data segment to obtain a plurality of merging neighborhood ranges.
Step S4: obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the wavelength range of the merging neighborhood range; and denoising the spectrum curve according to the optimal average window size to obtain a denoising spectrum curve.
Because the specific implementation process of steps S1 to S4 is already described in detail in the above-mentioned method for measuring nitrogen and sulfur in situ based on the differential ultraviolet spectrum technology, the detailed description is omitted.
The technical effect of this embodiment is:
In the embodiment, the data points on the spectrum curve are obtained by discretizing the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; screening out an absorption peak approximate region; optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging the merging neighborhood range of the target data segment; changing the target data segment to obtain a plurality of merging neighborhood ranges; obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the corresponding wavelength ranges; denoising the spectrum curve to obtain a denoised spectrum curve; in situ measurements were performed on nitrogen sulfur samples. The invention obtains the proper average window size in the denoising process of the spectrum curve and optimizes the denoising effect.
It should be noted that: the sequence of the embodiments of the present invention is only for description, and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.

Claims (9)

1. The nitrogen and sulfur in-situ measurement method based on the differential ultraviolet spectrum technology is characterized by comprising the following steps of:
acquiring a spectrum curve of a nitrogen-sulfur sample; the spectrum curve comprises reflection intensities corresponding to different wavelengths;
discretizing the spectrum curve to obtain data points on the spectrum curve; acquiring a plurality of data segments of a spectrum curve, and acquiring curve volatility in each data segment according to the change trend of local reflection intensity between adjacent data points in each data segment; screening out an absorption peak approximate region according to the curve fluctuation in each data segment;
Optionally selecting an absorption peak approximation area as a target data segment; obtaining the mergence in different preset neighborhood ranges according to the difference of curve volatility between the target data segment and other data segments in the corresponding different preset neighborhood ranges; judging a merging neighborhood range of the target data segment according to the mergence; changing the target data segment to obtain a plurality of merging neighborhood ranges;
obtaining the optimal average window size according to the fluctuation characteristics of the corresponding reflection intensity of the data points in different merging neighborhood ranges and the wavelength range of the merging neighborhood range; denoising the spectrum curve according to the optimal average window size to obtain a denoised spectrum curve;
performing in-situ measurement on nitrogen and sulfur according to the denoising spectrum curve;
the method for obtaining the optimal average window size comprises the following steps:
Calculating the difference between the maximum wavelength and the minimum wavelength in the merging neighborhood range as the wavelength range of the merging neighborhood range;
Obtaining the optimal average window size according to an obtaining formula of the optimal average window size, wherein the obtaining formula of the optimal average window size is as follows:
; wherein, Representing an optimal average window size; Represent the first Combining wavelength ranges of the neighborhood ranges; Represent the first Merging data points in a neighborhood range; Represent the first The data points in the combined neighborhood range correspond to the reflection intensities; Represent the first Variance of the corresponding reflection intensity of the data points in the range of the merging neighborhood; representing the number of merged neighborhood regions; Representing the normalization function.
2. The method for in-situ measurement of nitrogen and sulfur based on differential ultraviolet spectroscopy according to claim 1, wherein the method for acquiring data points comprises:
obtaining the minimum sampling frequency of a spectrum curve by adopting the Nyquist sampling theorem; calculating the reciprocal of the minimum sampling frequency and taking an integer as a sampling step length; discretizing the spectrum curve with the sampling step length as interval to obtain the data points on the spectrum curve.
3. The method for in-situ measurement of nitrogen and sulfur based on the differential ultraviolet spectroscopy according to claim 1, wherein the method for obtaining the curve volatility comprises the following steps:
sequentially acquiring data points in a preset wavelength range on a spectrum curve to form a data segment;
Obtaining a fitting function of a spectrum curve;
Calculating, within each data segment, an integral of the fitting function between adjacent data points as the local reflection intensity between the adjacent data points;
Calculating a difference between two adjacent local reflection intensities as a first difference;
And calculating the average value of the first difference between all adjacent local reflection intensities in each data segment, and normalizing the average value to be used as the curve fluctuation of each data segment.
4. The method for in-situ measurement of nitrogen and sulfur based on the differential ultraviolet spectroscopy according to claim 1, wherein the method for obtaining the absorption peak approximation region comprises the following steps:
and if the curve fluctuation of the data segment is within a preset fluctuation threshold range, the corresponding data segment is used as an absorption peak approximation area.
5. The method for in-situ measurement of nitrogen and sulfur based on differential ultraviolet spectroscopy according to claim 1, wherein the method for obtaining the incorporability comprises the following steps:
calculating the ratio of the target data segment to each other data segment in the preset neighborhood range in each preset neighborhood range of the target data segment as a first ratio; calculating the difference between the first ratio and a preset constant between the target data segment and each other data segment in a preset neighborhood range as a first difference; and calculating the average value of the first difference between the target data segment and all other data segments in the preset neighborhood range, and taking the average value as the mergence in each preset neighborhood range.
6. The method for in-situ measurement of nitrogen and sulfur based on differential ultraviolet spectroscopy according to claim 1, wherein the method for obtaining the combined neighborhood range comprises the following steps:
If the mergence in the preset neighborhood range is not in the preset mergence threshold range, judging that the previous preset neighborhood range is the mergence neighborhood range.
7. The method for in-situ measurement of nitrogen and sulfur based on the differential ultraviolet spectroscopy according to claim 1, wherein the method for obtaining the denoising spectrum curve comprises the following steps:
and denoising the spectral curve by adopting a moving average algorithm based on the optimal average window size to obtain a denoising spectral curve.
8. The method for in-situ measurement of nitrogen and sulfur based on differential ultraviolet spectroscopy according to claim 4, wherein the preset fluctuation threshold range is
9. A nitrogen-sulfur in-situ measurement system based on a differential ultraviolet spectroscopy technology, the system comprising a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of a nitrogen-sulfur in-situ measurement method based on a differential ultraviolet spectroscopy technology as claimed in any one of claims 1 to 8 when executing the computer program.
CN202410392046.6A 2024-04-02 2024-04-02 Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology Active CN118032695B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410392046.6A CN118032695B (en) 2024-04-02 2024-04-02 Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410392046.6A CN118032695B (en) 2024-04-02 2024-04-02 Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology

Publications (2)

Publication Number Publication Date
CN118032695A CN118032695A (en) 2024-05-14
CN118032695B true CN118032695B (en) 2024-09-20

Family

ID=91000524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410392046.6A Active CN118032695B (en) 2024-04-02 2024-04-02 Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology

Country Status (1)

Country Link
CN (1) CN118032695B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107271392A (en) * 2017-06-12 2017-10-20 重庆大学 One kind is based on gas differential absorption cross-section pattern measurement low concentration SO2Method
CN108918446A (en) * 2018-04-18 2018-11-30 天津大学 A kind of super low concentration sulfur dioxide ultraviolet difference feature extraction algorithm

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5070246A (en) * 1989-09-22 1991-12-03 Ada Technologies, Inc. Spectrometer for measuring the concentration of components in a fluid stream and method for using same
JP4372567B2 (en) * 2004-01-30 2009-11-25 倉敷紡績株式会社 Method for measuring water and aqueous solution by ultraviolet light
US7804059B2 (en) * 2004-08-11 2010-09-28 Jordan Valley Semiconductors Ltd. Method and apparatus for accurate calibration of VUV reflectometer
JP4997652B2 (en) * 2010-06-10 2012-08-08 横河電機株式会社 Spectroscopic analyzer
CN112666104A (en) * 2020-12-29 2021-04-16 西安鼎研科技股份有限公司 DOAS-based gas concentration inversion method
CN116297530B (en) * 2023-05-19 2023-07-25 广东正一包装股份有限公司 Barrier film surface quality detection method based on optical technology
CN117589741B (en) * 2024-01-18 2024-04-05 天津博霆光电技术有限公司 Indocyanine green intelligent detection method based on optical characteristics
CN117629967B (en) * 2024-01-26 2024-03-29 江苏省南京环境监测中心 Quick soil layer pollution detection method based on spectral analysis

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107271392A (en) * 2017-06-12 2017-10-20 重庆大学 One kind is based on gas differential absorption cross-section pattern measurement low concentration SO2Method
CN108918446A (en) * 2018-04-18 2018-11-30 天津大学 A kind of super low concentration sulfur dioxide ultraviolet difference feature extraction algorithm

Also Published As

Publication number Publication date
CN118032695A (en) 2024-05-14

Similar Documents

Publication Publication Date Title
KR101727889B1 (en) Monitoring, detecting and quantifying chemical compounds in a gas sample stream
EP2710353A1 (en) Spectroscopic apparatus and methods for determining components present in a sample
Katsumoto et al. Practical algorithm for reducing convex spike noises on a spectrum
CN116388733B (en) Spectrum pretreatment method and device suitable for near infrared fruit nondestructive detection
Kuzmiakova et al. An automated baseline correction protocol for infrared spectra of atmospheric aerosols collected on polytetrafluoroethylene (Teflon) filters
CN109991181B (en) Adaptive surface absorption spectrum analysis method, system, storage medium and device
CN116399850B (en) Spectrum detection and identification system for optical signal processing and detection method thereof
CN112748140A (en) Trace element XRF determination method based on iterative discrete wavelet background subtraction
CN116148210A (en) Fruit quality detection method and device
CN118032695B (en) Nitrogen-sulfur in-situ measurement method and system based on differential ultraviolet spectrum technology
JP2001343324A (en) Method for correcting base line of infrared ray absorption spectrum, and program recording medium therefor
CN115950827A (en) Method for reducing noise influence of open light path spectrum detection signal
CN117664906B (en) Water body antibiotic pollution detection method based on spectral characteristics
CN113686811A (en) Spectral data processing method based on double sensors
JP7350274B2 (en) Component identification device and method for spectral analysis device, computer program
CN117629971A (en) Method for improving precision of measuring carbon element in shale by laser-induced breakdown spectroscopy
CN116026808A (en) Raman spectrum discrimination method and system
CN116380869A (en) Raman spectrum denoising method based on self-adaptive sparse decomposition
CN114324294A (en) Multi-probe gas Raman spectrum system and mixed gas quantitative analysis method
CN114509404A (en) Method for predicting content of available boron in hyperspectral soil
CN118866180A (en) Surface water pollution characteristic extraction method and related equipment
CN118366563B (en) Indoor air quality rapid detection method based on artificial intelligence
Zhang et al. Methodology for Regional Soil Organic Matter Prediction with Spectroscopy: Optimal Sample Grouping, Input Variables, and Prediction Model
CN118961639A (en) VDL-DTCWT-based roadside infrared spectrum remote sensing monitoring method and system
Zeyad Application of mathematical models and digital filters and their Processors of spectral analysis for aromatic compounds gas in a fluorescent chemical

Legal Events

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