Nothing Special   »   [go: up one dir, main page]

CN110503060B - A spectral signal denoising method and system thereof - Google Patents

A spectral signal denoising method and system thereof Download PDF

Info

Publication number
CN110503060B
CN110503060B CN201910799614.3A CN201910799614A CN110503060B CN 110503060 B CN110503060 B CN 110503060B CN 201910799614 A CN201910799614 A CN 201910799614A CN 110503060 B CN110503060 B CN 110503060B
Authority
CN
China
Prior art keywords
matrix
singular value
singular
value
spectral signal
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
CN201910799614.3A
Other languages
Chinese (zh)
Other versions
CN110503060A (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.)
Central South University
Original Assignee
Central South University
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 Central South University filed Critical Central South University
Priority to CN201910799614.3A priority Critical patent/CN110503060B/en
Publication of CN110503060A publication Critical patent/CN110503060A/en
Application granted granted Critical
Publication of CN110503060B publication Critical patent/CN110503060B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/02Preprocessing
    • G06F2218/04Denoising
    • G06F2218/06Denoising by applying a scale-space analysis, e.g. using wavelet analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2218/00Aspects of pattern recognition specially adapted for signal processing
    • G06F2218/08Feature extraction
    • G06F2218/10Feature extraction by analysing the shape of a waveform, e.g. extracting parameters relating to peaks

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)
  • Spectrometry And Color Measurement (AREA)
  • Image Analysis (AREA)

Abstract

本发明公开了一种光谱信号去噪方法及其系统,其中,将一维离散光谱信号进行奇异值分解,再将每一奇异值重构求得的信号分量进行快速傅里叶变换,获取每个奇异值分量信号快速傅里叶变换结果中振幅最大所对应的频率值,再按照奇异值递减方式对相应分量信号频率值进行一阶滞后差分,得到主频差分谱,最后设定差分阈值选择主频差分谱中第一个不小于差分阈值的位置作为奇异值有效阶次,将其余奇异值置零,利用奇异值分解的逆过程得到重构矩阵,再经过反演得到降噪后信号。本发明通过上述方法可以准确地选择出奇异值阶次重构信号,提高去噪效果。

Figure 201910799614

The invention discloses a spectral signal denoising method and a system thereof, wherein a one-dimensional discrete spectral signal is subjected to singular value decomposition, and then a signal component obtained by reconstructing each singular value is subjected to fast Fourier transform to obtain each The frequency value corresponding to the maximum amplitude in the fast Fourier transform result of the singular value component signal, and then perform a first-order lag difference on the frequency value of the corresponding component signal according to the singular value decreasing method to obtain the main frequency difference spectrum, and finally set the difference threshold selection. The first position in the main frequency difference spectrum not less than the difference threshold is regarded as the effective order of the singular value, the remaining singular values are set to zero, the reconstruction matrix is obtained by the inverse process of singular value decomposition, and the denoised signal is obtained through inversion. In the present invention, the singular value order reconstruction signal can be accurately selected by the above method, and the denoising effect can be improved.

Figure 201910799614

Description

一种光谱信号去噪方法及其系统A spectral signal denoising method and system thereof

技术领域technical field

本发明属于光谱信号去噪技术领域,具体涉及一种光谱信号去噪方法及其系统。The invention belongs to the technical field of spectral signal denoising, and in particular relates to a spectral signal denoising method and a system thereof.

背景技术Background technique

在紫外可见光谱定量分析中,由于微型光谱仪内部的光源、检测器、电子元器件、暗电流以及外部环境干扰等因素产生了随机噪声,并对光谱定量分析结果的精确性产生巨大影响。因此在建立浓度模型前,对光谱数据预处理是必不可少的步骤。合理的预处理方法可以保留光谱信号中待测样品的有用化学信息并过滤掉噪声信息和冗余信息,提升模型稳健性和预测能力。目前对光谱信号的数据与处理的方法有许多,主要有小波变换、经验模态分解和局部曲线拟合等方法,但小波变换中最优分解层数和阈值难以确定,局部曲线拟合次数有待进一步研究,目前大都依赖实验和研究者经验确定。In the quantitative analysis of UV-visible spectrum, random noises are generated due to the light source, detector, electronic components, dark current and external environmental interference inside the miniature spectrometer, which have a huge impact on the accuracy of quantitative spectral analysis results. Therefore, the preprocessing of the spectral data is an essential step before establishing the concentration model. A reasonable preprocessing method can retain the useful chemical information of the sample to be tested in the spectral signal and filter out the noise information and redundant information, so as to improve the robustness and prediction ability of the model. At present, there are many methods for spectral signal data and processing, mainly including wavelet transform, empirical mode decomposition and local curve fitting. Further research, at present, mostly relies on experiments and researchers' experience to determine.

奇异值去噪算法不需要向时域平均那样对小波滤波器性能的好坏非常依赖,也不需要向自适应滤波那样需要标准输入信号,它对变频信号也可以实现降噪,因此也被应用于信号去噪中,但是若保留的奇异值过多,即使信号经过预处理,仍会夹杂许多噪声,使信噪比仍然很小;若保留的奇异值过少,虽然噪声得到去除,但是也会丢失原始信号的某些细节特征,甚至导致原始信号严重畸变,影响信号重构精度。因此,如何准确选择出奇异值阶次是需要考虑与完善的。现有奇异值差分谱方法一定程度上能够有效选择出重构的奇异值个数,但真实信号频率成分比较复杂时,信号经奇异值分解后,由于每个奇异值对应着一个分量信号,差分谱最大谱峰处仅能代表两个分量信号有着巨大差异性,但最大差异处并不一定总是信号和噪声的分界处,因此,利用奇异值直接进行差分的奇异值差分谱方法在一定条件下其受真实信号趋势项的干扰较大,会违背原有的选择手段,导致得到的奇异值阶次的准确性也还有待提高。The singular value denoising algorithm does not need to be very dependent on the performance of the wavelet filter like the time domain average, nor does it need a standard input signal like the adaptive filter, it can also achieve noise reduction for the frequency conversion signal, so it is also used. In signal de-noising, if there are too many singular values retained, even if the signal is preprocessed, there will still be a lot of noise, so that the signal-to-noise ratio is still small; if the retained singular values are too small, although the noise is removed, Some detailed features of the original signal will be lost, and even lead to serious distortion of the original signal, affecting the signal reconstruction accuracy. Therefore, how to accurately select the singular value order needs to be considered and perfected. The existing singular value difference spectrum method can effectively select the number of reconstructed singular values to a certain extent, but when the frequency components of the real signal are complex, after the signal is decomposed by singular values, since each singular value corresponds to a component signal, the difference The maximum spectral peak of the spectrum can only represent the huge difference between the two component signals, but the maximum difference is not always the boundary between the signal and the noise. Therefore, the singular value difference spectrum method that uses the singular value to directly differentiate It is greatly disturbed by the trend term of the real signal, which will violate the original selection method, and the accuracy of the obtained singular value order also needs to be improved.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种光谱信号去噪方法及其系统,能够自动、准确选择奇异值阶次,进而提高信号的重构精度和信噪比。The purpose of the present invention is to provide a spectral signal denoising method and a system thereof, which can automatically and accurately select the singular value order, thereby improving signal reconstruction accuracy and signal-to-noise ratio.

本发明提供的一种光谱信号去噪方法,包括如下步骤:A spectral signal denoising method provided by the present invention includes the following steps:

S1:将待去噪的光谱信号进行奇异值分解得到正交矩阵U、VT以及奇异值矩阵Σ;S1: Perform singular value decomposition on the spectral signal to be denoised to obtain orthogonal matrices U, V T and singular value matrix Σ;

其中,奇异值矩阵

Figure BDA0002181924910000011
Λ为r个奇异值σi作为对角线元素构成的对角矩阵,r为Hankel矩阵的秩,0表示零矩阵;Among them, the singular value matrix
Figure BDA0002181924910000011
Λ is a diagonal matrix composed of r singular values σ i as diagonal elements, r is the rank of the Hankel matrix, and 0 represents a zero matrix;

S2:对r个奇异值分别执行:保留对角矩阵Λ中一个单独的奇异值σi并将剩余奇异值置零得到新对角矩阵Λ i,再分别反演重构得到新光谱信号分量;S2: Execute separately for r singular values: retain a single singular value σ i in the diagonal matrix Λ and set the remaining singular values to zero to obtain a new diagonal matrix Λ i , and then invert and reconstruct respectively to obtain new spectral signal components ;

S3:将步骤S2中r个新光谱信号分量分别进行快速傅里叶变换,并分别从变换结果中获取振幅最大对应的频率值,再按照奇异值递减方法对相对应的频率值进行一阶滞后差分得到主频差分谱;S3: Perform fast Fourier transform on the r new spectral signal components in step S2, respectively obtain the frequency value corresponding to the maximum amplitude from the transform result, and then perform first-order lag on the corresponding frequency value according to the singular value decreasing method Difference to obtain the main frequency difference spectrum;

bi=fi+1-fi b i =f i+1 -f i

式中,bi为所述主频差分谱中的第i个主频差分值,fi、fi+1分别为按照奇异值递减排列的第i个奇异值σi、第i+1个奇异值σi+1对应的新光谱信号分量的变换结果中振幅最大对应的频率值;In the formula, b i is the i-th main frequency difference value in the main frequency difference spectrum, f i and f i+1 are the i-th singular value σ i and the i+1-th singular value arranged in descending order of singular values, respectively. The frequency value corresponding to the maximum amplitude in the transformation result of the new spectral signal component corresponding to the singular value σ i+1 ;

S4:识别主频差分谱中第一个不小于预设差分阈值的主频差分值bj,按照奇异值递减方式将前j个奇异值保留,剩余奇异值置零得到新对角矩阵,再反演重构得到去噪后的光谱信号。S4: Identify the first main frequency difference value b j that is not less than the preset difference threshold in the main frequency difference spectrum, retain the first j singular values according to the singular value decreasing method, set the remaining singular values to zero to obtain a new diagonal matrix, and then The denoised spectral signal is obtained by inversion and reconstruction.

进一步优选,步骤S1的执行过程如下:Further preferably, the execution process of step S1 is as follows:

将待去噪的光谱信号重构为Hankel矩阵;Reconstruct the spectral signal to be denoised into a Hankel matrix;

然后,对Hankel矩阵进行奇异值分解得到正交矩阵U、VT以及奇异值矩阵Σ。Then, perform singular value decomposition on the Hankel matrix to obtain orthogonal matrices U, V T and singular value matrix Σ.

其中,奇异值矩阵

Figure BDA0002181924910000021
Λ=diag(σ1,σ2,…,σr),σ1≥σ2≥…≥σr,σi为矩阵Hm×n的奇异值。Among them, the singular value matrix
Figure BDA0002181924910000021
Λ=diag(σ 1 , σ 2 ,...,σ r ), σ 1 ≥σ 2 ≥...≥σ r , σ i is a singular value of the matrix H m×n .

进一步优选,待去噪的光谱信号重构为Hankel矩阵的大小为m×n,m≤n,所述Hankel矩阵如下所示:Further preferably, the spectral signal to be denoised is reconstructed into a Hankel matrix whose size is m×n, m≤n, and the Hankel matrix is as follows:

Figure BDA0002181924910000022
Figure BDA0002181924910000022

式中,m为嵌入维数,且m+n-1=N。In the formula, m is the embedding dimension, and m+n-1=N.

进一步优选,所述预设差分阈值为范围为[30,50]。Further preferably, the preset differential threshold is in the range of [30, 50].

本发明还提供一种基于上述方法的系统,包括奇异值分解模块、重构模块、主频差分谱获取模块;The present invention also provides a system based on the above method, comprising a singular value decomposition module, a reconstruction module, and a main frequency difference spectrum acquisition module;

其中,奇异值分解模块,用于将待去噪的光谱信号进行奇异值分解得到正交矩阵U、VT以及奇异值矩阵Σ;Among them, the singular value decomposition module is used to perform singular value decomposition on the spectral signal to be denoised to obtain orthogonal matrices U, V T and singular value matrix Σ;

所述重构模块,用于基于r个奇异值分别进行新对角矩阵A i更新以及反演重构得到新光谱信号分量;The reconstruction module is used for updating the new diagonal matrix A i and inverting and reconstructing respectively based on the r singular values to obtain new spectral signal components;

所述主频差分谱获取模块,用于将r个新光谱信号分量分别进行快速傅里叶变换,并分别从变换结果中获取振幅最大对应的频率值,再按照奇异值递减方法对相对应的频率值进行一阶滞后差分得到主频差分谱;The main frequency difference spectrum acquisition module is used to perform fast Fourier transformation on the r new spectral signal components respectively, and obtain the frequency value corresponding to the maximum amplitude from the transformation result, and then according to the singular value decreasing method. The frequency value is subjected to the first-order lag difference to obtain the main frequency difference spectrum;

所述重构模块,用于识别主频差分谱中第一个不小于预设差分阈值的主频差分值bj,按照奇异值递减方式将前j个奇异值保留,剩余奇异值置零得到新对角矩阵,再反演重构得到去噪后的光谱信号。The reconstruction module is used to identify the first main frequency difference value b j that is not less than the preset difference threshold in the main frequency difference spectrum, retain the first j singular values according to the singular value decreasing method, and set the remaining singular values to zero to obtain The new diagonal matrix is inverted and reconstructed to obtain the denoised spectral signal.

有益效果beneficial effect

本发明研究发现信号经奇异值分解后,较大数值的奇异值的分量信号代表真实信号,较小数值的奇异值分量信号代表噪声,同时,发现噪声信号相较于真实信号频率较大,即两者在频域上差异明显,真实信号对应的奇异值分量信号和噪声信号对应的奇异值分量信号分界处经快速傅里叶变换后,主频会产生一个很大的突变,因此,本发明对每个奇异值反演的光谱信号分量进行快速傅里叶变换后,按照奇异值递减的方式在频域上进行差分得到主频差分谱,再利用突变的特性进而可以自动准确地选择奇异值的阶次,同时,所述方法对于信号平稳性和噪声特性没有特别要求。相较于奇异值差分谱算法选取奇异值阶次,本发明对信号预处理的普适性更强,在数据预处理过程中不需要人工干预同时能够自动选择奇异值阶次,可以达到光谱信号在线预处理的要求,并可以大幅提高信号的重构精度和信噪比。The present invention finds that after the signal is decomposed by singular value, the component signal of singular value with larger value represents the real signal, and the component signal of singular value with smaller value represents noise. At the same time, it is found that the frequency of the noise signal is higher than that of the real signal, that is The difference between the two is obvious in the frequency domain. After the fast Fourier transform of the boundary between the singular value component signal corresponding to the real signal and the singular value component signal corresponding to the noise signal, the dominant frequency will have a big mutation. Therefore, the present invention After performing fast Fourier transform on the spectral signal components of each singular value inversion, the main frequency difference spectrum is obtained by performing the difference in the frequency domain according to the decreasing singular value, and then the singular value can be automatically and accurately selected by using the characteristics of sudden change At the same time, the method has no special requirements for signal stationarity and noise characteristics. Compared with the singular value difference spectrum algorithm for selecting the singular value order, the present invention has stronger universality for signal preprocessing, does not require manual intervention in the data preprocessing process and can automatically select the singular value order, which can achieve spectral signal Online preprocessing requirements, and can greatly improve the signal reconstruction accuracy and signal-to-noise ratio.

附图说明Description of drawings

图1为本发明实施例的480nm至800nm波长段的紫外可见光谱信号;Fig. 1 is the ultraviolet-visible spectral signal of the 480nm to 800nm wavelength band of the embodiment of the present invention;

图2为本发明实施例的前50个奇异值主频差分谱;Fig. 2 is the first 50 singular value main frequency difference spectrum of the embodiment of the present invention;

图3为本发明实施例中对实测光谱数据降噪效果。FIG. 3 is the noise reduction effect on the measured spectral data in the embodiment of the present invention.

具体实施方式Detailed ways

下面将结合实施例对本发明做进一步的说明。The present invention will be further described below with reference to the embodiments.

本发明提供的一种光谱信号去噪方法及其系统,其利用奇异值去噪算法对原始光谱进行去噪,能够准确选择出奇异值阶次,提高去噪效果,本发明提供的实施例以锌湿法冶炼为背景,实验配置铜、钴、镍铁离子浓度分别为2mg/L、1.8mg/L、1.6mg/L、2mg/L的混合标准溶液。微型光谱仪的采样积分时间选择9ms,采样积分间隔为500ms,其中,如图1所示,采集480nm至800nm波长段的紫外可见光谱信号作为待去噪的光谱信号。本实施例该方法的执行过程如下:The present invention provides a spectral signal denoising method and system, which use singular value denoising algorithm to denoise the original spectrum, which can accurately select the singular value order and improve the denoising effect. With zinc hydrometallurgy as the background, mixed standard solutions with copper, cobalt, and nickel-iron ion concentrations of 2 mg/L, 1.8 mg/L, 1.6 mg/L, and 2 mg/L were prepared in the experiment. The sampling integration time of the micro-spectrometer is 9ms, and the sampling integration interval is 500ms. Among them, as shown in Figure 1, the ultraviolet-visible spectral signal in the wavelength range of 480nm to 800nm is collected as the spectral signal to be denoised. The execution process of the method in this embodiment is as follows:

步骤一:将待去噪的光谱信号X=(x1,x2,…,xN)重构为Hankel矩阵。本实施例中重构的Hankel矩阵的大小为m×n,m≤n,并如下所示:Step 1: Reconstruct the spectral signal to be de-noised X=(x 1 , x 2 , . . . , x N ) into a Hankel matrix. The size of the reconstructed Hankel matrix in this embodiment is m×n, m≤n, and is as follows:

Figure BDA0002181924910000041
Figure BDA0002181924910000041

其中,Hm×n为Hankel矩阵,1<n<,m为嵌入维数,并且满足m+n-1=N。Wherein, H m×n is the Hankel matrix, 1<n<, m is the embedding dimension, and m+n−1=N is satisfied.

步骤二:对Hankel矩阵进行奇异值分解得到Hm×n=UΣVTStep 2: Perform singular value decomposition on the Hankel matrix to obtain H m×n =UΣV T .

其中,U=(u1,u2,…,um)∈Rm×m、V=(v1,v2,…,vn)∈Rn×n均为正交矩阵,u1表示正交矩阵U的第一列,v1表示正交矩阵V的第一列,

Figure BDA0002181924910000043
为m×n维矩阵,Λ=diag(σ1,σ2,…,σr),并且σ1≥σ2≥…≥σr,σi为矩阵Hm×n的奇异值,r为Hankel矩阵的秩,0为零矩阵。其他可行的实施例中,可以对上述矩阵中元素的位置进行适应性调整Among them, U=(u 1 , u 2 ,..., um )∈R m×m , V=(v 1 , v 2 ,..., v n )∈R n×n are orthogonal matrices, and u 1 represents The first column of the orthogonal matrix U, v 1 represents the first column of the orthogonal matrix V,
Figure BDA0002181924910000043
is an m×n-dimensional matrix, Λ=diag(σ 1 , σ 2 ,…,σ r ), and σ 1 ≥σ 2 ≥…≥σ r , σ i is the singular value of the matrix H m×n , r is Hankel The rank of the matrix, 0 is a zero matrix. In other feasible embodiments, the positions of the elements in the above-mentioned matrix can be adaptively adjusted

步骤三:对r个奇异值分别执行:保留对角矩阵Λ中一个单独的奇异值σi并将剩余奇异值置零得到新对角矩阵Λ i,再分别反演重构得到新光谱信号分量。Step 3: Execute separately for r singular values: retain a single singular value σ i in the diagonal matrix Λ and set the remaining singular values to zero to obtain a new diagonal matrix Λ i , and then invert and reconstruct respectively to obtain a new spectral signal weight.

譬如:保留Λ=diag(σ1,σ2,…,σr)中一个单独的奇异值σi,将除σi以外的奇异值全都置为零,即得到Λ i=diag(0,…,σi,…,0),

Figure BDA0002181924910000042
i=1,2,3,…,r。For example: keep a single singular value σ i in Λ=diag(σ 12 ,...,σ r ), and set all singular values except σ i to zero, that is, Λ i =diag(0, …,σ i ,…,0),
Figure BDA0002181924910000042
i=1, 2, 3, ..., r.

得到r个新对角矩阵Λ i后,再利用正交矩阵U、VT依次计算新Hankel矩阵H′i(H′i=UΣ iVT),并根据Hankel矩阵的构造方法进行反演,即可得到r个光谱信号分量Xi(i=1,2,3,…,r)。After obtaining r new diagonal matrices Λ i , the orthogonal matrices U and V T are used to calculate the new Hankel matrix H′ i (H′ i = UΣ i V T ) in turn, and the inverse method is performed according to the construction method of the Hankel matrix. Then, r spectral signal components X i (i=1, 2, 3, . . . , r) can be obtained.

步骤四:将r个新光谱信号分量分别进行快速傅里叶变换,并分别从变换结果中获取振幅最大对应的频率值,再按照奇异值递减方法对相对应的频率值进行一阶滞后差分得到主频差分谱B,其中,B=[b1,b2,…,br-1];Step 4: Perform fast Fourier transform on the r new spectral signal components respectively, and obtain the frequency value corresponding to the maximum amplitude from the transform result, and then perform first-order lag difference on the corresponding frequency value according to the singular value decreasing method to obtain Main frequency difference spectrum B, where, B=[b 1 , b 2 ,..., br-1 ];

bi=fi+1-fi b i =f i+1 -f i

式中,bi为所述主频差分谱中的第i个主频差分值,fi、fi+1分别为按照奇异值递减排列的第i个奇异值σi、第i+1个奇异值σi+1对应的新光谱信号分量的变换结果中振幅最大对应的频率值。In the formula, b i is the i-th main frequency difference value in the main frequency difference spectrum, f i and f i+1 are the i-th singular value σ i and the i+1-th singular value arranged in descending order of singular values, respectively. The frequency value corresponding to the maximum amplitude in the transformation result of the new spectral signal component corresponding to the singular value σ i+1 .

步骤五:识别主频差分谱中第一个不小于预设差分阈值的主频差分值bj,按照奇异值递减方式将前j个奇异值保留,剩余奇异值置零得到新对角矩阵,再反演重构得到去噪后的光谱信号。Step 5: Identify the first main frequency difference value b j that is not less than the preset difference threshold in the main frequency difference spectrum, retain the first j singular values according to the singular value decreasing method, and set the remaining singular values to zero to obtain a new diagonal matrix, Then invert and reconstruct to obtain the denoised spectral signal.

本实施例中,Λ=diag(σ1,σ2,…,σr),σ1≥σ2≥…≥σr,若识别出bj存在上述情况,则将对角矩阵Λ中前j个奇异值保留,剩余奇异值置零;再重构Hankel矩阵以及反演得到去噪后的光谱信号。In this embodiment, Λ=diag(σ 1 , σ 2 ,...,σ r ), σ 1 ≥σ 2 ≥...≥σ r , if it is identified that b j has the above situation, the first j in the diagonal matrix Λ One singular value is retained, and the remaining singular values are set to zero; then the Hankel matrix is reconstructed and the denoised spectral signal is obtained by inversion.

由于真实信号奇异值分量信号和噪声信号奇异值分量信号的主频相差很大,频率会有一个较大的突变,因此本发明通过研究发现设定一个差分阈值,用于鉴别突变情况。如图2所示,本实施例中,预设的差分阈值为50,并识别出第一个不小于该差分阈值的位置是第12个点,即奇异值有效阶次为12,将前12个奇异值保留,其余奇异值置零,利用奇异值分解的逆过程得到重构矩阵,经过反演得到降噪后信号。Since the main frequencies of the singular value component signal of the real signal and the singular value component signal of the noise signal are very different, the frequency will have a large mutation. Therefore, the present invention finds through research that a difference threshold is set to identify the mutation. As shown in FIG. 2 , in this embodiment, the preset difference threshold is 50, and the first position that is not less than the difference threshold is identified as the twelfth point, that is, the effective order of singular values is 12, and the first 12 One singular value is retained, the rest are set to zero, the reconstruction matrix is obtained by the inverse process of singular value decomposition, and the denoised signal is obtained through inversion.

基于上述方法,本发明提供的所述系统包括:奇异值分解模块、重构模块、主频差分谱获取模块;Based on the above method, the system provided by the present invention includes: a singular value decomposition module, a reconstruction module, and a main frequency difference spectrum acquisition module;

其中,奇异值分解模块,用于将待去噪的光谱信号进行奇异值分解得到正交矩阵U、VT以及奇异值矩阵Σ;Among them, the singular value decomposition module is used to perform singular value decomposition on the spectral signal to be denoised to obtain orthogonal matrices U, V T and singular value matrix Σ;

重构模块,用于基于r个奇异值分别进行新对角矩阵Λ i更新以及反演重构得到新光谱信号分量;The reconstruction module is used to update the new diagonal matrix Λ i based on the r singular values and perform inversion and reconstruction respectively to obtain new spectral signal components;

主频差分谱获取模块,用于将r个新光谱信号分量分别进行快速傅里叶变换,并分别从变换结果中获取振幅最大对应的频率值,再按照奇异值递减方法对相对应的频率值进行一阶滞后差分得到主频差分谱;The main frequency difference spectrum acquisition module is used to perform fast Fourier transformation on the r new spectral signal components respectively, and obtain the frequency value corresponding to the maximum amplitude from the transformation result, and then according to the singular value decreasing method to the corresponding frequency value Perform the first-order lag difference to obtain the main frequency difference spectrum;

重构模块,用于识别主频差分谱中第一个不小于预设差分阈值的主频差分值bj,按照奇异值递减方式将前j个奇异值保留,剩余奇异值置零得到新对角矩阵,再反演重构得到去噪后的光谱信号。The reconstruction module is used to identify the first main frequency difference value b j that is not less than the preset difference threshold in the main frequency difference spectrum, retain the first j singular values according to the singular value decreasing method, and set the remaining singular values to zero to obtain a new pair Angle matrix, and then inversion and reconstruction to obtain the denoised spectral signal.

应当理解,本发明从奇异值分量信号频域特征考虑,可以自动准确地选择奇异值的阶次,对于信号平稳性和噪声特性没有特别要求,并可以达到光谱信号在线预处理的要求。It should be understood that the present invention can automatically and accurately select the order of the singular value considering the frequency domain characteristics of the singular value component signal, has no special requirements for signal stability and noise characteristics, and can meet the requirements of online preprocessing of spectral signals.

需要强调的是,本发明所述的实例是说明性的,而不是限定性的,因此本发明不限于具体实施方式中所述的实例,凡是由本领域技术人员根据本发明的技术方案得出的其他实施方式,不脱离本发明宗旨和范围的,不论是修改还是替换,同样属于本发明的保护范围。It should be emphasized that the examples described in the present invention are illustrative rather than restrictive, so the present invention is not limited to the examples described in the specific implementation manner, and all the examples obtained by those skilled in the art according to the technical solutions of the present invention Other embodiments that do not depart from the spirit and scope of the present invention, whether modified or replaced, also belong to the protection scope of the present invention.

Claims (5)

1. A spectral signal denoising method is characterized in that: the method comprises the following steps:
s1: reconstructing the spectral signals to be denoised into a Hankel matrix, and performing singular value decomposition on the Hankel matrix to obtain an orthogonal matrix U, VTAnd a singular value matrix Σ;
wherein the singular value matrix
Figure FDA0003342257280000011
Λ is r singular values σiR is the rank of Hankel matrix, and 0 represents zero matrix;
s2: performing for r singular values respectively: preserving a single singular value sigma in the diagonal matrix lambdaiAnd setting the residual singular values to zero to obtain a new diagonal matrix Lambda'iReuse of orthogonal matrix U, VTSequentially calculating a new Hankel matrix and carrying out inversion reconstruction to obtain a new spectrum signal component;
s3: respectively carrying out fast Fourier transform on the r new spectral signal components in the step S2, respectively obtaining frequency values corresponding to the maximum amplitude from the transform results, and carrying out first-order lag difference on the corresponding frequency values according to a singular value decreasing method to obtain a main frequency difference spectrum;
bi=fi+1-fi
in the formula, biIs the ith main frequency differential value, f in the main frequency differential spectrumi、fi+1Respectively, i-th singular value σ arranged in descending order according to singular valueiI +1 th singular value σi+1The frequency value corresponding to the maximum amplitude in the transformation result of the corresponding new spectral signal component;
s4: identifying a first main frequency difference value b not less than a preset difference threshold value in a main frequency difference spectrumjAnd reserving the first j singular values according to a singular value decreasing mode, setting the rest singular values to zero to obtain a new diagonal matrix, and performing inversion reconstruction to obtain the denoised spectral signal.
2. The method of claim 1, wherein: the step S1 is performed as follows:
reconstructing the spectral signal to be denoised into a Hankel matrix;
then, singular value decomposition is carried out on the Hankel matrix to obtain an orthogonal matrix U, VTAnd a singular value matrix Σ;
wherein the singular value matrix
Figure FDA0003342257280000012
Λ=diag(σ12,…,σr),σ1≥σ2≥…≥σr,σiAre the singular values of the Hankel matrix.
3. The method of claim 2, wherein: reconstructing the spectral signal to be denoised into a Hankel matrix with the size of mxn, wherein m is less than or equal to n, and the Hankel matrix is as follows:
Figure FDA0003342257280000013
in the formula, Hm×nRepresenting a Hankel matrix, m is the embedding dimension, and m + N-1 ═ N.
4. The method of claim 1, wherein: the preset differential threshold range is [30,50 ].
5. A system based on the method of any one of claims 1-4, characterized by: the system comprises a singular value decomposition module, a reconstruction module and a main frequency difference spectrum acquisition module;
the singular value decomposition module is used for reconstructing the spectral signal to be denoised into a Hankel matrix, and then performing singular value decomposition on the Hankel matrix to obtain an orthogonal matrix U, VTAnd a singular value matrix Σ;
the reconstruction module is used for respectively carrying out new diagonal matrix Lambda 'on the diagonal matrix Lambda in the singular value matrix Sigma based on r singular values'iUpdating and inverting reconstruction to obtain a new spectrum signal component;
the main frequency difference spectrum acquisition module is used for respectively carrying out fast Fourier transform on r new spectral signal components, respectively acquiring frequency values corresponding to the maximum amplitude from the transform results, and then carrying out first-order lag difference on the corresponding frequency values according to a singular value decreasing method to obtain a main frequency difference spectrum;
the reconstruction module is used for identifying a first main frequency difference value b which is not less than a preset difference threshold value in a main frequency difference spectrumjReserving the first j singular values according to a singular value decreasing mode, setting the rest singular values to zero to obtain a new diagonal matrix, and then utilizing an orthogonal matrix U, VTAnd sequentially calculating a new Hankel matrix and carrying out inversion reconstruction to obtain the denoised spectral signal.
CN201910799614.3A 2019-08-28 2019-08-28 A spectral signal denoising method and system thereof Active CN110503060B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910799614.3A CN110503060B (en) 2019-08-28 2019-08-28 A spectral signal denoising method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910799614.3A CN110503060B (en) 2019-08-28 2019-08-28 A spectral signal denoising method and system thereof

Publications (2)

Publication Number Publication Date
CN110503060A CN110503060A (en) 2019-11-26
CN110503060B true CN110503060B (en) 2022-05-10

Family

ID=68588550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910799614.3A Active CN110503060B (en) 2019-08-28 2019-08-28 A spectral signal denoising method and system thereof

Country Status (1)

Country Link
CN (1) CN110503060B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112464811A (en) * 2020-11-26 2021-03-09 淮阴工学院 Method for accurately filtering high-frequency random noise in pumped storage unit runout signal
CN113011321B (en) * 2021-03-17 2022-05-06 中南大学 Spectral signal denoising method, system, terminal and readable storage medium based on joint dictionary
CN113779861B (en) * 2021-07-23 2023-08-22 国网河北省电力有限公司电力科学研究院 Photovoltaic Power Prediction Method and Terminal Equipment
CN113705377A (en) * 2021-08-11 2021-11-26 南京航空航天大学 Weak feature extraction method based on combination of singular value decomposition and related entropy theory
CN116541657A (en) * 2023-04-26 2023-08-04 湖北工业大学 Ultraviolet Spectrum Denoising Method, System, Equipment and Medium Based on Wavelet Transform and Optimal Singular Value Decomposition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170359204A1 (en) * 2016-06-10 2017-12-14 Korea Advanced Institute Of Science And Technology Method and apparatus for controlling interference in qam-fbmc system
CN107688120A (en) * 2016-11-17 2018-02-13 丹阳华神电器有限公司 Signals and associated noises processing method and iteration singular spectrum Soft-threshold Denoising Method based on fuzzy entropy
CN109883547A (en) * 2019-01-10 2019-06-14 武汉大学 A Broadband Spectral Signal Denoising Method Based on Wavelet Threshold Difference

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60335666D1 (en) * 2003-08-29 2011-02-17 Nat Inst Inf & Comm Tech TRANSMITTER, RECEIVER, TRANSMISSION, RECEIVING METHOD AND PROGRAM
CN104881631B (en) * 2015-04-16 2018-11-13 广西师范大学 The cervical cell image characteristics extraction that multiple features are integrated and recognition methods and its device
CN107255749B (en) * 2017-05-24 2020-07-17 中国矿业大学(北京) A Fast Detection Method of Power System Harmonics Based on Difference Equation
CN108731945B (en) * 2018-08-02 2019-12-13 南昌航空大学 Method for extracting fault signal characteristic information of aircraft engine rotor system
CN109541455A (en) * 2018-12-03 2019-03-29 国网江苏省电力有限公司南京供电分公司 A kind of OLTC impact characteristics extracting method based on S-transformation time-frequency spectrum SVD noise reduction
CN109815849A (en) * 2019-01-02 2019-05-28 东莞理工学院 Chaotic Signal Denoising Algorithm Based on Singular Value Decomposition
CN110101407B (en) * 2019-04-16 2021-09-07 华南师范大学 Fetal heart sound denoising method, system, device and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170359204A1 (en) * 2016-06-10 2017-12-14 Korea Advanced Institute Of Science And Technology Method and apparatus for controlling interference in qam-fbmc system
CN107688120A (en) * 2016-11-17 2018-02-13 丹阳华神电器有限公司 Signals and associated noises processing method and iteration singular spectrum Soft-threshold Denoising Method based on fuzzy entropy
CN109883547A (en) * 2019-01-10 2019-06-14 武汉大学 A Broadband Spectral Signal Denoising Method Based on Wavelet Threshold Difference

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"基于分区建模的锌液痕量铜离子光谱检测方法";朱红求;《光学学报》;20120228;第39卷(第2期);第0230002-1至第0230002-9页 *
"基于提升小波变换的阈值改进去噪算法在紫外可见光谱中的研究";周风波;《光谱学与光谱分析》;20180228;第38卷(第2期);第506-510页 *

Also Published As

Publication number Publication date
CN110503060A (en) 2019-11-26

Similar Documents

Publication Publication Date Title
CN110503060B (en) A spectral signal denoising method and system thereof
CN105677035B (en) Mental imagery EEG Signal Denoising method based on EEMD and wavelet threshold
CN110081967B (en) Threshold noise reduction method for mechanical vibration signal based on spectrogram wavelet transform
CN113723171B (en) EEG signal denoising method based on residual generative adversarial network
CN101482617A (en) Synthetic aperture radar image denoising method based on non-down sampling profile wave
CN109946253A (en) A spectral denoising method
CN110619265A (en) Ball mill cylinder vibration signal combined denoising method and device and storage medium
CN102184451B (en) Multi-wavelet fusion feature based neuron action feature extraction method
CN105260990B (en) Contaminate the denoising method for infrared spectroscopy signals of making an uproar
CN101799916A (en) Biologic chip image wavelet de-noising method based on Bayesian estimation
CN111582205A (en) Noise reduction method based on multi-resolution singular value decomposition model
CN111198167B (en) Method for detecting concentration of metal ions in solution, terminal device and storage medium
CN112598593B (en) Seismic noise suppression method based on non-equilibrium depth expectation block log-likelihood network
CN105913382A (en) High-fidelity anisotropy filtering method for threshold searching optimization
CN104345049A (en) Threshold correction method applied to wavelet threshold noise reduction of laser-induced breakdown spectroscopy
CN110208211B (en) A near-infrared spectral noise reduction method for pesticide residue detection
CN115712819A (en) Ground nuclear magnetic resonance signal noise suppression method based on generation countermeasure network
CN115563480A (en) Gear fault identification method based on screening symplectic geometric mode decomposition based on kurtosis ratio coefficient
CN102314675B (en) Wavelet high-frequency-based Bayesian denoising method
CN113011321B (en) Spectral signal denoising method, system, terminal and readable storage medium based on joint dictionary
CN109670531A (en) A kind of denoising method of the near infrared light spectrum signal based on Hodrick-Prescott filter
CN111650655B (en) Non-negative matrix factorization supervised transient electromagnetic signal noise reduction method
Zhang et al. An Efficient Porcine Acoustic Signal Denoising Technique Based on EEMD‐ICA‐WTD
CN115659128B (en) A Signal Noise Reduction Method Based on Ensemble Empirical Mode Decomposition and Power Spectrum
CN113378614B (en) Partial discharge signal denoising processing method and system

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