CN102682781A - Self-adaptive suppression method of time varying sinusoidal interference in audio signals - Google Patents
Self-adaptive suppression method of time varying sinusoidal interference in audio signals Download PDFInfo
- Publication number
- CN102682781A CN102682781A CN2012100942282A CN201210094228A CN102682781A CN 102682781 A CN102682781 A CN 102682781A CN 2012100942282 A CN2012100942282 A CN 2012100942282A CN 201210094228 A CN201210094228 A CN 201210094228A CN 102682781 A CN102682781 A CN 102682781A
- Authority
- CN
- China
- Prior art keywords
- signal
- sinusoidal interference
- sinusoidal
- audio signals
- sound 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.)
- Granted
Links
Images
Landscapes
- Soundproofing, Sound Blocking, And Sound Damping (AREA)
Abstract
The invention discloses a self-adaptive suppression method of time varying sinusoidal interference in audio signals. The method includes the following steps: step one, inputting original audio signals and performing AD conversion on the original audio signals; step two, calculating preliminary frequency of sinusoidal interference signals in the audio signals through a self-adaptive notch filter algorithm; step three, calculating amplitude, phase and accurate frequency of the sinusoidal interference signals in the audio signals through a least mean square (LMS) gradient descent algorithm; step four, deciding credibility of the sinusoidal interference signals through a decision algorithm, turning to step five if the credibility is true, and outputting the audio signals directly if the credibility is false; and step five, subtracting the calculated sinusoidal interference signals from the audio signals so as to obtain and output the audio signals after interference suppression. The self-adaptive suppression method of the time varying sinusoidal interference in the audio signals has the advantages of being capable of suppressing the time varying sinusoidal interference, insensitive to preliminary value setting, high in convergence rate, simple in calculation, high in quality, good in accuracy and stability, and suitable for processing all audio signals.
Description
Technical field
The present invention relates to the digital audio processing field, become the Adaptive Suppression method of sinusoidal interference when especially relating in a kind of sound signal.
Background technology
The audio pickup process becomes the interference of sine or cosine signal when regular meeting runs into.For example, the power frequency interference phenomenon, because the self-sustained oscillation phenomenon that acoustic feedback produces, and receive interference (like automobile, aircraft roar) of specific noise frequency or the like.Sinusoidal interference and cosine disturb and just on phase place, differ pi/2, so be referred to as sinusoidal interference.In most cases, sinusoidal interference has time variation, belongs to the non-stationary signal category.The energy of undesired signal or amplitude are bigger usually, and signal to noise ratio (S/N ratio) is very low, and signal is submerged among the interference usually.
One of key that becomes sinusoidal interference when inhibition and elimination becomes the frequency of sinusoidal signal when being estimation.The algorithm that becomes sinusoidal frequency when from non-stationary signal, extracting has adaptive resistance-trap wave technology, multiband search technique and LMS gradient prompt drop method etc.
The adaptive resistance-trap wave technology becomes sinusoidal signal when following the tracks of with an arrowband second order trapper, target be make through the error energy behind the trap minimum, the time to become sinusoidal frequency be the only parameter of its estimation.The initial value of single adaptive notch algorithm offset of sinusoidal Frequency Estimation is provided with very responsive, and different initial values can have a strong impact on speed of convergence, even can cause dispersing.
The basis of multiband search technique is the DFT algorithm, and computational complexity is high.When signal belonged to the non-stationary category, the estimated quality of this algorithm can obvious variation.
The target of LMS gradient prompt drop method is that the square error that makes input signal and become the difference of sinusoidal signal when estimative minimizes.Through gradient search, become frequency, amplitude and the phase place of sinusoidal signal in the time of can estimating simultaneously.In order to simplify LMS gradient prompt drop algorithm computation complicacy, LMS gradient prompt drop method often will be simplified the recursion formula of Frequency Estimation, and its Frequency Estimation precision and stability are lower than adaptive notch filter.
Because people's ear is very high to the susceptibility of voice signal, if estimate false sinusoidal interference, result can cause audio distortions; Otherwise, if because computational complexity causes time-delay to estimate sinusoidal interference, then again can be by the perception of people's ear.When especially when sinusoidal interference, becoming, when the algorithm robustness is bad,, can influence sound quality on the contrary owing to become sinusoidal signal can not in time follow the tracks of the time.
Summary of the invention
The present invention solves that existing in prior technology is difficult to fast, the accurate technical matters of the sinusoidal interference in the sound-inhibiting signal, provide a kind of to initial value insensitive, fast convergence rate is set, calculating is simple, quality is high, the Adaptive Suppression method of change sinusoidal interference in the sound signal of precision and good stability the time.
The present invention is directed to above-mentioned technical matters mainly is able to solve through following technical proposals: become the Adaptive Suppression method of sinusoidal interference in the time of in a kind of sound signal, may further comprise the steps:
Step 1, input original audio signal carry out the AD conversion to original audio signal, obtain digitized sound signal;
The first synchronizing frequency of sinusoidal interference signal in step 2, the use adaptive notch algorithm computation sound signal;
Amplitude, phase place and the precise frequency of sinusoidal interference signal in step 2, the use LMS gradient prompt drop algorithm computation sound signal;
Step 3, use decision algorithm are judged the confidence level of sinusoidal interference signal: if confidence level is true, then forward step 4 to; If confidence level is false, then direct output audio signal;
As preferably, the preliminary frequencies omega of sinusoidal interference signal in the said use adaptive notch algorithm computation sound signal
0(n), the preliminary frequencies omega of sinusoidal interference signal
0(n) with preliminary frequency correlation coefficient k
0(n) relation is:
|k
0(n)|=|-cos(ω
0(n))|
W (n) shown in Figure of description 2,
w(n)=u(n)-k
0(n-1)[1+α]w(n-1)-αw(n-2)
Definition:
Preliminary frequency correlation coefficient k
0(n) recursion formula is:
k
0(n)=-B(n)/A(n)
A(n)=λA(n-1)+2w(n-1)·w(n-1)
B(n)=λB(n-1)+w(n-1)·[w(n)+w(n-2)]
In the formula, the value of forgetting factor λ is more than or equal to 0.95 and smaller or equal to 0.99.
As preferably, if preliminary frequency correlation coefficient k
0(n) absolute value then uses following formula that it is carried out Nonlinear Processing greater than 1:
As preferably, use the amplitude of sinusoidal interference signal in the LMS gradient prompt drop algorithm computation sound signal
Phase place
And precise frequency
Adopt following recursion formula (T in the formula
sBe the sampling period):
μ′
ω=μ
ωnT
s μ′
δ=μ
δ/μ′
ω
Iterative formula is insensitive to the initial value of
and
; Initial value can be set to 1.0,0.2 and 300 π respectively.
In the formula, definition error signal e (n) is:
In the formula, u (n) is the input that comprises interference,
Be that just (surplus) string disturbs recursion result, μ
A, μ
ω, μ
δBe respectively 100,1000 and 0.02.As preferably; If the amplitude of undesired signal
then uses following formula to carry out Nonlinear Processing less than 0:
As preferably; Use decision algorithm to judge that the method for the confidence level of sinusoidal interference signal does, in 3 to 8 sinusoidal signal window ranges, calculate the square error of precise frequency and amplitude; If the square error of precise frequency is less than or equal to defined threshold (suggestion be defined as signal averaging energy mean square value 0.1%); And the amplitude square error is within specialized range or be forward recursive, and then confidence level is true, otherwise confidence level is false.
The substantial effect that the present invention brings is; With adaptive notch algorithm and LMS gradient prompt drop algorithm set; Have the advantage that response speed is fast, calculated amount is little, have simultaneously, avoided the defective of adaptive notch algorithm through Nonlinear Processing recursion amplitude, phase place and the insensitive characteristic of angular frequency initial value; Reduce the interdependency of algorithm convergence to iterative initial value; The initial value setting of revising the back algorithm influences Algorithm Convergence hardly, can judge the true and false of sinusoidal interference, has good inhibition effect and accuracy.
Description of drawings
Fig. 1 is the adaptive notch algorithm block diagram;
Fig. 2 is the lattice shape implementation structure of IIR second order trapper;
Fig. 3 is the ADAPTIVE MIXED algorithm block diagram;
Fig. 4 becomes (sampled point) in time variation diagram of sinusoidal interference signal for the test time spent;
Fig. 5 is the comparison of sinusoidal interference signal among Fig. 4 with the sinusoidal interference signal that calculates;
Fig. 6 is the mixed signal after common music signal stacking diagram 4 sinusoidal interference;
Fig. 7 is the estimation convergence process of the sinusoidal interference in Fig. 6 mixed signal;
Fig. 8 suppresses the complete audio frequency time-domain signal after the sinusoidal interference for Fig. 6 mixed signal;
Fig. 9 suppresses the local audio frequency time-domain signal after the sinusoidal interference for Fig. 6 mixed signal;
Among the figure: 201, IIR notch filter, 202, A (n) recursion, 203, B (n) recursion, 204, k
0(n) recursion, 205, k
0(n) Nonlinear Processing, 601, the time domain subtraction, 602, the adaptive notch frequency computation part, 603, LMS gradient prompt drop algorithm, 604, disturb confidence level to judge, 605, subtraction, 606, the phase place recursion, 607, the accompanying drawing recursion, 608, amplitude non-linearity handles.
Embodiment
Pass through embodiment below, and combine accompanying drawing, do further bright specifically technical scheme of the present invention.
Embodiment: the Adaptive Suppression method that becomes sinusoidal interference in the time of in a kind of sound signal of present embodiment; At first the sound signal of input is carried out the AD conversion; The sound signal of output numeral then is in interference calculation and inhibition module; Interference calculation with suppress module in the sound signal the time become sinusoidal signal and calculate and suppress, the sound signal after output is handled is amplified to amplifier, plays through loudspeaker at last.
The first step is the sinusoidal signal frequency that adopts in the adaptive notch algorithm estimated signal of revising.
Shown in Figure 1, the present invention utilizes the adaptive notch algorithm to estimate sinusoidal interference, and trapper adopts the second order iir digital filter, and its pulsed transfer function is:
Calculate intermediate variable A (n) according to recursion formula, calculate intermediate variable B (n), calculate intermediate variable k according to recursion formula according to recursion formula
0(n).
Adaptive targets is that output energy mean square value is minimized:
λ is a forgetting factor in the following formula, the frequency correlation coefficient k that obtains thus
0(n) recursion formula is:
k
0(n)=-B(n)/A(n)
A(n)=λA(n-1)+2w(n-1)·w(n-1)
B(n)=λB(n-1)+w(n-1)·[w(n)+w(n-2)]
k
0(n) with the relation of disturbing orthodox frequency be:
k
0=|-cos(ω
0)|
In order to prevent to occur under the specific starting condition | k
0|>1, thus cause iteration not restrain, to k
0(n) carry out Nonlinear Processing, the Nonlinear Processing process is:
Utilize the adaptive notch algorithm of above-mentioned correction can follow the tracks of the variation of sinusoidal interference frequency fast, especially its speed of convergence does not receive the influence of initial value, phenomenon more can not occur dispersing.
Fig. 2 is the implementation structure of second order iir digital filter.Lattice shape implementation structure has increased the numerical evaluation stability of IIR filtering.
Fig. 4 is a test signal.The frequency of test signal is the time varying signal by varies with cosine, and this time varying signal is polluted by 1 white Gaussian noise by the zero-mean variance.
Fig. 5 is the frequency detecting tracking results of Fig. 4.The result shows except that having approximately estimated time the delay of 100 sampled points, and estimated frequency has been followed the tracks of well and become sinusoidal signal frequency when real-time.
Second step was to adopt the LMS-gradient to estimate the amplitude and the phase place of sinusoidal interference signal.
Fig. 3 is the ADAPTIVE MIXED algorithm block diagram, and the Frequency Estimation result that the LMS-gradient is estimated the adaptive notch algorithm of application first step correction accurately estimates amplitude and the phase place disturbed.
Suppose estimation just (surplus) string undesired signal be:
Definition error signal e (n):
e(n)=d(u(n),
The discrete recursion formula that obtains frequency, amplitude and phase place after the square error of error signal e (n) minimizes is:
Wherein,
Directly adopt the result of the adaptive notch algorithm of revising (602), μ
A, μ '
ω, μ '
δBe respectively
Prompt drop coefficient μ
A, μ
ω, μ
δ(603) be LMS-gradient algorithm for estimating, (605) will be imported to subtract each other in time domain with output and obtain error signal; (606) the phase place recursion is calculated, and (607) amplitude recursion is calculated.
For preventing iteration diverges, amplitude Estimation is made following Nonlinear Processing:
In the 3rd step, the sequence estimation of frequency and amplitude is further handled.
In order to prevent to detect false sinusoidal signal, Interference Estimation is carried out confidence level judge.Estimate in the sinusoidal signal window ranges square error of calculated rate estimation and amplitude Estimation at 3~8.When implicit true sinusoidal interference signal, the square error of frequency should be greater than prescribed threshold, and the amplitude variance or is forward recursive (like the feedback self-exciting process) within specialized range.
In the 4th step, suppress the sinusoidal interference signal
With sampled signal time domain with estimate sinusoidal interference signal subtraction, the useful signal behind the sinusoidal interference that the is inhibited signal.
Fig. 6~Fig. 9 shows the mixed signal after the typical music signal stack sinusoidal interference, eliminates the time domain waveform and the estimated result of sinusoidal interference signal through algorithm of the present invention.
Fig. 6 is an original signal, and Fig. 7 is a Frequency Estimation, and the estimated result explanation fast, accurately, has stably detected fixedly interference sinusoidal signal.
Fig. 8 and Fig. 9 are the output behind the inhibition sinusoidal interference signal, and result and test tone music signal are very approaching, and sinusoidal interference signal suppressing effect reaches about 20dB.
Specific embodiment described herein only is that the present invention's spirit is illustrated.Person of ordinary skill in the field of the present invention can make various modifications or replenishes or adopt similar mode to substitute described specific embodiment, but can't depart from spirit of the present invention or surmount the defined scope of appended claims.
Although this paper has used terms such as sinusoidal interference, adaptive notch algorithm morely, do not get rid of the possibility of using other term.Using these terms only is in order to describe and explain essence of the present invention more easily; It all is contrary with spirit of the present invention being construed to any additional restriction to them.
Claims (6)
1. become the Adaptive Suppression method of sinusoidal interference in the time of in the sound signal, it is characterized in that, may further comprise the steps:
Step 1, input original audio signal carry out the AD conversion to original audio signal, obtain digitized sound signal;
The first synchronizing frequency of sinusoidal interference signal in step 2, the use adaptive notch algorithm computation sound signal;
Amplitude, phase place and the precise frequency of sinusoidal interference signal in step 3, the use LMS gradient prompt drop algorithm computation sound signal;
Step 4, use decision algorithm are judged the confidence level of sinusoidal interference signal: if confidence level is true, then forward step 5 to; If confidence level is false, then direct output audio signal;
Step 5, from sound signal, deduct the sinusoidal interference signal that calculates, sound signal and output after disturbing are inhibited.
2. become the Adaptive Suppression method of sinusoidal interference in the time of in a kind of sound signal according to claim 1, it is characterized in that the preliminary frequencies omega of sinusoidal interference signal in the said use adaptive notch algorithm computation sound signal
0(n), the preliminary frequencies omega of sinusoidal interference signal
0(n) with preliminary frequency correlation coefficient k
0(n) relation is:
|k
0(n)|=|-cos(ω
0(n))|
Preliminary frequency correlation coefficient k
0(n) recursion formula is:
k
0(n)=-B(n)/A(n)
A(n)=λA(n-1)+2w(n-1)·w(n-1)
B(n)=λB(n-1)+w(n-1)·[w(n)+w(n-2)]
In the formula, the value of forgetting factor λ is more than or equal to 0.95 and smaller or equal to 0.99.
3. become the Adaptive Suppression method of sinusoidal interference in the time of in a kind of sound signal according to claim 2, it is characterized in that, if preliminary frequency correlation coefficient k
0(n) absolute value then uses following formula that it is carried out Nonlinear Processing greater than 1:
4. become the Adaptive Suppression method of sinusoidal interference in the time of in a kind of sound signal according to claim 1; It is characterized in that, use amplitude
phase place
and the precise frequency
of sinusoidal interference signal in the LMS gradient prompt drop algorithm computation sound signal to adopt following recursion formula:
In the formula, definition error signal e (n) is:
In the formula, μ
A, μ
ω, μ
δBe respectively 100,1000 and 0.02.
5. become the Adaptive Suppression method of sinusoidal interference in the time of in a kind of sound signal according to claim 4; It is characterized in that; If the amplitude of undesired signal
then uses following formula to carry out Nonlinear Processing less than 0:
6. become the Adaptive Suppression method of sinusoidal interference according to time in claim 1 or 2 or 3 or the 4 or 5 described a kind of sound signals, it is characterized in that, use decision algorithm to judge that the method for the confidence level of sinusoidal interference signal does; In 3 to 8 sinusoidal signal window ranges; Calculate the square error of precise frequency and amplitude, if the square error of precise frequency is less than or equal to defined threshold, and the amplitude square error is within specialized range or be forward recursive; Then confidence level is true, otherwise confidence level is false.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100942282A CN102682781B (en) | 2012-04-01 | 2012-04-01 | Self-adaptive suppression method of time varying sinusoidal interference in audio signals |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100942282A CN102682781B (en) | 2012-04-01 | 2012-04-01 | Self-adaptive suppression method of time varying sinusoidal interference in audio signals |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102682781A true CN102682781A (en) | 2012-09-19 |
CN102682781B CN102682781B (en) | 2013-12-04 |
Family
ID=46814590
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100942282A Active CN102682781B (en) | 2012-04-01 | 2012-04-01 | Self-adaptive suppression method of time varying sinusoidal interference in audio signals |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102682781B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105334381A (en) * | 2015-07-17 | 2016-02-17 | 深圳市科润宝实业有限公司 | Method and device for measuring AC active power |
CN106771788A (en) * | 2017-03-13 | 2017-05-31 | 信利光电股份有限公司 | A kind of processing method for being disturbed sinusoidal wave data, apparatus and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5638304A (en) * | 1993-02-18 | 1997-06-10 | Matra Cap Systemes | Method and apparatus for active damping of vibration |
CN1415139A (en) * | 1999-11-03 | 2003-04-30 | 艾利森电话股份有限公司 | System and method for noise cuppression in communication signal |
CN1702238A (en) * | 2005-06-13 | 2005-11-30 | 上海市政工程设计研究院 | Anticorrosive treatment method for embedded part |
DE102005026659B3 (en) * | 2005-06-09 | 2006-12-07 | Infineon Technologies Ag | Apparatus for compensating for interference on receiving a data signal on which an interference signal is superimposed esp. a sinusoidal interference signal |
-
2012
- 2012-04-01 CN CN2012100942282A patent/CN102682781B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5638304A (en) * | 1993-02-18 | 1997-06-10 | Matra Cap Systemes | Method and apparatus for active damping of vibration |
CN1415139A (en) * | 1999-11-03 | 2003-04-30 | 艾利森电话股份有限公司 | System and method for noise cuppression in communication signal |
DE102005026659B3 (en) * | 2005-06-09 | 2006-12-07 | Infineon Technologies Ag | Apparatus for compensating for interference on receiving a data signal on which an interference signal is superimposed esp. a sinusoidal interference signal |
CN1702238A (en) * | 2005-06-13 | 2005-11-30 | 上海市政工程设计研究院 | Anticorrosive treatment method for embedded part |
Non-Patent Citations (2)
Title |
---|
储昭碧等: "基于自适应陷波滤波器的频率和幅值估计", 《自动化学报》 * |
张磊等: "基于级联自适应陷波器的正弦波频率估计", 《信号处理》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105334381A (en) * | 2015-07-17 | 2016-02-17 | 深圳市科润宝实业有限公司 | Method and device for measuring AC active power |
CN106771788A (en) * | 2017-03-13 | 2017-05-31 | 信利光电股份有限公司 | A kind of processing method for being disturbed sinusoidal wave data, apparatus and system |
CN106771788B (en) * | 2017-03-13 | 2019-05-21 | 信利光电股份有限公司 | A kind of processing method being disturbed sinusoidal wave data, apparatus and system |
Also Published As
Publication number | Publication date |
---|---|
CN102682781B (en) | 2013-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Schoukens et al. | The interpolated fast Fourier transform: A comparative study | |
CN101291055B (en) | Method for precisely marking arriving time of initial wave of fault generated traveling waves for electricity transmission line | |
CN108037361B (en) | High-precision harmonic parameter estimation method based on sliding window DFT | |
CN103021420B (en) | Speech enhancement method of multi-sub-band spectral subtraction based on phase adjustment and amplitude compensation | |
CN110852201A (en) | Pulse signal detection method based on multi-pulse envelope spectrum matching | |
US20170287507A1 (en) | Pitch detection algorithm based on pwvt | |
CN108764073B (en) | Acceleration noise filtering and integrating method combined with spectrum energy form fitting | |
CN105891810B (en) | A kind of quick self-adapted joint delay time estimation method | |
JP2014075674A (en) | Audio signal processing device, method, and program | |
Luo et al. | Frequency estimation of the weighted real tones or resolved multiple tones by iterative interpolation DFT algorithm | |
Huibin et al. | Energy based signal parameter estimation method and a comparative study of different frequency estimators | |
CN109581052A (en) | A kind of reality of iterated interpolation answers conversion frequency estimation method | |
CN102064891B (en) | Anti-string leakage high-accuracy time delay estimation method | |
CN112881796A (en) | Multi-frequency real signal frequency estimation algorithm for spectrum leakage correction | |
CN102054470A (en) | High-precision piano tuner and tuning method thereof | |
CN102682781B (en) | Self-adaptive suppression method of time varying sinusoidal interference in audio signals | |
Zhu et al. | Noise influence on estimation of signal parameter from the phase difference of discrete Fourier transforms | |
Djurovic | Estimation of the sinusoidal signal frequency based on the marginal median DFT | |
CN113158907A (en) | Weak ship radiation characteristic signal detection method based on wavelet and chaos theory | |
CN105738698B (en) | A kind of harmonic parameters algorithm for estimating based on centre frequency shift | |
CN102300014A (en) | Double-talk detection method applied to acoustic echo cancellation system in noise environment | |
CN103795473A (en) | Method and system for eliminating power-frequency interference | |
Varma et al. | Robust TDE-based DOA estimation for compact audio arrays | |
JP7238415B2 (en) | Single frequency signal detection device and single frequency detection method | |
US11270720B2 (en) | Background noise estimation and voice activity detection system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
C56 | Change in the name or address of the patentee | ||
CP03 | Change of name, title or address |
Address after: 310052, Zhejiang, Hangzhou province Binjiang District Long River Street No. 399, No. 3, four, five floor Patentee after: Hangzhou grandwell Polytron Technologies Inc Address before: Hangzhou City, Zhejiang province Binjiang District 310053 Spring Road No. 1517 Kim Science Park building C Patentee before: Hangzhou Linker Digital Technology Co., Ltd. |