Disclosure of Invention
The purpose of the invention is as follows: in order to overcome the defects in the prior art, the invention provides a frequency domain active noise control system based on coefficient smoothing, which comprises a front-end control filter, a rear-end control filter and a coefficient smoother, wherein the coefficient smoother is used for smoothing the coefficient in the rear-end control filter of the frequency domain active noise control system and updating the front-end control filter, so that system noise caused by overlarge coefficient change is limited, and the stability and the effectiveness of the active noise control system are further improved.
The technical scheme is as follows: in order to achieve the purpose, the invention adopts the technical scheme that:
the utility model provides a frequency domain active noise control system based on coefficient smoothing, includes rear end control filter, coefficient smoother, front end control filter that connect gradually, wherein:
the back-end control filter is used for filtering the first half section coefficient of the frequency domain active noise control system to obtain the time domain coefficient of the back-end control filter. And updating the back-end control filter by adopting a least mean square method according to the obtained time domain coefficient of the back-end control filter.
And the coefficient smoother smoothes the time domain coefficient of the front-end control filter according to the obtained time domain coefficient of the rear-end control filter and updates the front-end control filter.
The front-end control filter is used for controlling the filter to reference signals according to the updated front-end control filter
And filtering to obtain a filtered reference signal. And sending the filtered reference signal to an acoustic path of a frequency domain active noise control system to obtain a control signal.
Preferably: the coefficient smoother smoothes the front-end control filter time domain coefficients by:
wherein,
is a sequence of frames of data frames,
is that the front-end controls the filter at
First of frame
The order time-domain coefficients are then processed,
is that the back-end control filter is in
First of frame
The order time-domain coefficients are then processed,
is an operation of taking a real number symbol,
is the operation of taking the minimum value,
is an operation on the absolute value of the value,
is the factor of the smoothing factor that is,
is to update the upper threshold.
Preferably: the smoothing factor
The value range of (A):
。
preferably: the updated upper threshold
The value range of (A):
。
in a coefficient smoother, a smoothing factor
And updating the upper threshold
The value of (a) plays a key role, specifically:
1. smoothing factor
The value of (A) determines the smoothing speed and the smoothing factor of the system
Take values greater than 0 but much less than 1. If the smoothing factor
If the value is too large, the smoothing speed is too fast, so that the noise suppression capability of the system caused by blocking effect is weakened, and the processing effect is affected. If the smoothing factor
Too small, the smoothing speed is too slow, which makes the system update the sound field transfer function slower. Therefore, in practical applications, it is generally necessary to determine a smoothing factor according to the acoustic environment
The value of (A) is as follows: when the time-varying characteristics of the acoustic environment are weak and the requirement for sound field tracking of the system is low, a smaller smoothing factor may be used
. When the time-varying characteristic of the acoustic environment is strong and the requirement on the sound field tracking of the system is high, a large smoothing factor is used
。
2. Updating the upper threshold
The maximum variation allowed by the front-end control filter and the back-end control filter on each order of coefficient is limited by the value of (A), and the upper limit threshold value is updated
Typically to a smaller positive number. If it is
If the threshold value is too large, the threshold value fails for a long time, so that the noise capability of the system for suppressing the blocking effect is weakened, and the processing effect is influenced. If it is
If too small, the front-end control filter updates converge, resulting in a system that is too smallThe speed of the uniformly updated sound field transfer function is slow. In practical applications, it is generally necessary to determine the updated upper threshold according to the acoustic environment
The value of (A) is as follows: when the time-varying characteristics of the acoustic environment are weak and the requirement for tracking the sound field of the system is low, the smaller one can be used
. When the time-varying characteristic of the acoustic environment is stronger and the requirement on the sound field tracking of the system is higher, the larger one is used
。
Compared with the prior art, the invention has the following beneficial effects:
the invention can overcome the problem of large coefficient change in a system using a frequency domain active noise control algorithm, thereby inhibiting system noise caused by the problem and further improving the stability and effectiveness of an active noise control system. The smoothing method can solve the noise problem of the active noise control system using the frequency domain algorithm, and has wide application prospect.
Detailed Description
The present invention is further illustrated by the following description in conjunction with the accompanying drawings and the specific embodiments, it is to be understood that these examples are given solely for the purpose of illustration and are not intended as a definition of the limits of the invention, since various equivalent modifications will occur to those skilled in the art upon reading the present invention and fall within the limits of the appended claims.
A frequency domain active noise control system based on coefficient smoothing is realized based on a Digital Signal Processor (Digital Signal Processor), a control source is a common loudspeaker, an error Signal and a reference Signal are respectively from an error microphone and a reference microphone, and an adaptive filter adopts a traditional frequency-domain least mean square (FDLMS) algorithm. The sampling rate of the system is set to 16 kHz, the frame length and frame shift of the system are set to 512 and 256, respectively, and the length of the control filter is set to 256. As shown in fig. 1, the apparatus includes a reference signal input module, an error signal output module, a back-end control filter, a coefficient smoother, a front-end control filter, a primary path, an acoustic path, a adding operation module, a first fast fourier transform module, a fourier transform module of the acoustic path, a conjugate operation module, a multiplication module, a step-size multiplication module, a second fast fourier transform module, and a fast inverse fourier transform module, wherein: the reference signal input module is respectively connected with the primary path, the first fast Fourier transform module and the front-end control filter, the adding operation module is respectively connected with the primary path, the acoustic path, the error signal output module and the second fast Fourier transform module, the multiplying module is respectively connected with the conjugate operation module, the step length multiplying module and the second fast Fourier transform module, the first fast Fourier transform module, the Fourier transform module and the conjugate operation module of the acoustic path are sequentially connected, the step length multiplying module, the fast inverse Fourier transform module, the rear-end control filter, the coefficient smoother and the front-end control filter are connected, and the front-end control filter is connected with the acoustic path, wherein:
the back-end control filter is used for filtering the first half section coefficient of the frequency domain active noise control system to obtain the time domain coefficient of the back-end control filter. And updating the back-end control filter by adopting a least mean square method according to the obtained time domain coefficient of the back-end control filter.
The coefficient smoother is used for smoothing the time domain coefficient of the front-end control filter according to the obtained time domain coefficient of the rear-end control filter, meanwhile, the front-end control filter is updated, system noise caused by overlarge coefficient change is limited, and therefore stability and effectiveness of the active noise control system are improved.
And the coefficient smoother sets an upper threshold of the updating amount, and when the absolute value of the current obtained filter coefficient variation exceeds the upper threshold of the updating amount, the time domain coefficient of the filter is limited to be updated and controlled.
The front-end control filter is used for controlling the filter to reference signals according to the updated front-end control filter
And filtering to obtain a filtered reference signal. And sending the filtered reference signal to an acoustic path of a frequency domain active noise control system to obtain a control signal.
The coefficient smoother smoothes the front-end control filter time domain coefficients by:
wherein,
is a sequence of frames of data frames,
is that the front-end controls the filter at
First of frame
The order time-domain coefficients are then processed,
is that the back-end control filter is in
First of frame
The order time-domain coefficients are then processed,
is an operation of taking a real number symbol,
is the operation of taking the minimum value,
is an operation on the absolute value of the value,
is a smoothing factor, a smoothing factor
The value range of (A):
。
is to update the upper threshold.
A frequency domain active noise control method based on coefficient smoothing, as shown in fig. 1 and 2, includes the following steps:
step 1, initializing system parameters: the time domain coefficient of the front-end control filter is initialized to 0, the time domain coefficient of the back-end control filter is initialized to 0, and the smoothing factor
Set to 0.1, update the upper threshold
Set to 0.01.
Step 2, acquiring a reference signal in real time through a reference signal input module
Given an initial error signal
。
Step 3, referenceSignal
After the primary path is the actual noise signal
。
Step 4, reference signal
Obtaining a frequency domain reference signal through a first fast Fourier transform module
Frequency domain reference signal
And obtaining a filtered conjugate frequency domain reference signal through a Fourier transform module and a conjugate operation module of the acoustic path.
Step 5, noise signal
And obtaining a frequency domain error signal through a second fast Fourier transform module.
And 6, obtaining a filtered conjugate frequency domain reference signal by the frequency domain error signal and conjugate operation module, and obtaining the frequency domain transient gradient of the control filter by the multiplication module.
And 7, multiplying the frequency domain transient gradient of the control filter by the step length, performing fast inverse Fourier transform, and extracting parameters of the first half section of the signal after the fast inverse Fourier transform to obtain the time domain coefficient of the rear-end control filter.
And 8, updating the back-end control filter in a frequency domain by adopting a least mean square method according to the obtained time domain coefficient of the back-end control filter.
Step 9, the coefficient smoother smoothes the time domain coefficient of the back-end control filter and updates the front-end control filter according to the following formula:
wherein,
is a sequence of frames of data frames,
is that the front-end controls the filter at
First of frame
The order time-domain coefficients are then processed,
is that the back-end control filter is in
First of frame
The order time-domain coefficients are then processed,
is an operation of taking a real number symbol,
is the operation of taking the minimum value,
is an operation on the absolute value of the value,
is a smoothing factor, a smoothing factor
The value range of (A):
。
is to update the upper threshold.
As shown in fig. 1, the time domain coefficient of the back-end control filter of the back-end controller is updated through the extracted first half section coefficient, so as to obtain an updated back-end control filter; and smoothing the time domain coefficient of the updated rear-end control filter, and updating the time domain coefficient of the front-end control filter by using the smoothed time domain coefficient of the rear-end control filter to obtain the updated front-end control filter.
Step 10, reference signal
And entering the updated front-end control filter to obtain a secondary source output signal. The obtained secondary source output signal passes through an acoustic path to obtain a control signal, the control signal and a noise signal
Adding to obtain an error signal
。
The above description is only of the preferred embodiments of the present invention, and it should be noted that: it will be apparent to those skilled in the art that various modifications and adaptations can be made without departing from the principles of the invention and these are intended to be within the scope of the invention.