Active noise reduction control system and method based on loudspeaker
By building a real-time ear canal model in the speaker system and using an improved hybrid noise reduction algorithm, combining noise compression and particle swarm optimization, the problem of untimely noise cancellation in the speaker's active noise reduction system is solved, and efficient and stable noise reduction is achieved Effects, adapt to different noise environments and user needs.
Patent Information
- Application Number
- CN202411832078.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-12
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2044-12-12
AI Technical Summary
In the active noise reduction system of speakers, excessive processing delay leads to untimely noise cancellation and unstable noise reduction effect. Especially in low-power equipment, computing resources are limited, making it difficult to quickly adjust noise parameters, affecting the noise reduction effect.
Using a speaker-based active noise reduction control system, a real-time ear canal model is constructed through the data sampling module, and the noise data is processed using an improved hybrid noise reduction algorithm, combining differential pulse coding modulation and fast Fourier transform for noise compression, and applying particles The group optimization algorithm adjusts the weight of the noise reduction algorithm and uses sliding windows to smooth the noise-deletion data set to achieve efficient noise reduction.
It significantly improves the stability and signal quality of the noise reduction effect, reduces the computing and storage burden, adapts to different noise environments and user needs, maintains the original characteristics of the signal, improves the system efficiency and battery life, and provides a continuous and stable noise reduction effect.
Smart Images

Figure CN119314458A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of loudspeaker noise reduction control, and more particularly to a loudspeaker-based active noise reduction control system and method. Background Art
[0002] Active noise cancellation (ANC) technology captures external noise through built-in microphones and then generates opposite sound waves to cancel these noises. Its benefits include improving sound quality, reducing environmental noise interference, and enhancing the listening experience, especially in noisy environments.
[0003] In the process of active noise reduction of the speaker, the active noise reduction system usually needs to collect environmental noise in real time and generate anti-phase sound waves to offset it. If the processing delay in the system is too large, the generated anti-phase sound waves may be out of sync with the noise, thereby reducing the noise reduction effect, and the active noise reduction algorithm usually requires high computing resources. Especially in low-power devices (such as wireless headphones), the limited computing resources may affect the noise reduction effect. In addition, as the environmental noise changes (such as fluctuations in noise frequency and intensity), the noise reduction system needs to adjust parameters quickly. If the adjustment is not timely or accurate, it may cause the noise reduction effect to be unstable, so it is necessary to design the active noise reduction control system of the speaker. Summary of the invention
[0004] In view of the problems existing in the prior art, the object of the present invention is to provide an active noise reduction control system and method based on a speaker, so as to achieve high-efficiency and high-quality noise removal in the process of active noise reduction control based on the speaker.
[0005] To achieve the above object, the present invention provides the following technical solution: an active noise reduction control system based on a speaker, the active noise reduction control system based on a speaker comprising: Data sampling module: used to collect initial noise data and build a real-time ear canal model of the user, and perform lightweight compression on the initial noise data to obtain lightweight noise data; Noise reduction fitting module: Use the improved hybrid noise reduction algorithm to process the light noise data, obtain the output noise-removed data set, smooth the noise-removed data set, and obtain the final output gain data set; Output control module: used to decompress and restore the gain data set, and apply the decompressed and restored signal data to the device for noise reduction; The modules are connected to each other via wired and / or wireless means.
[0006] Preferably, the initial noise data includes external environmental noise, ear canal residual noise and surrounding overall noise, the external environmental noise is collected by a feedforward microphone, the ear canal residual noise is collected by a feedback microphone, and the surrounding overall noise is collected by an environmental microphone.
[0007] Preferably, the method for constructing the real-time ear canal model includes: when the user uses the device for the first time, setting an initialized ear canal model, playing the o_p group of audio signals with known frequency and waveform in sequence and outputting them into the ear canal through the built-in speaker of the device, the feedback microphone in the device collects the sound wave reflection signal in the ear canal in real time, and extracts the characteristic data of the propagation and reflection of the sound wave reflection signal in the ear canal, using a mathematical model to represent the acoustic characteristics of the ear canal, using the o_p group of audio signals to continuously update the acoustic characteristics in the ear canal, and then obtaining an optimized ear canal model, which is recorded as the real-time ear canal model.
[0008] Preferably, the method for lightweight compression of initial noise data comprises: Within the period time T, the initial noise data is sampled P times at a fixed frequency to obtain the initial noise data set ; Calculate the difference between adjacent sampling points to get the differential signal , where the initial threshold is set , collect all differential signals to obtain differential data sets ,in, Indicates A differential signal, Indicates The initial noise data is obtained by sampling, and , ; Use Fast Fourier Transform to process the difference data set to obtain the frequency domain signal ,in, Indicates The frequency domain signal value corresponding to the differential signal, is the index in the frequency domain, and is an imaginary unit, ; Quantize the amplitude of the frequency domain signal. ,in, Represents frequency domain signal The quantized amplitude value, is the quantization factor, Indicates rounding operation. Represents frequency domain signal the magnitude of Calculate frequency domain signal The original phase ,in, is a frequency domain signal The phase angle of The amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point are collected to obtain compressed light noise data.
[0009] Preferably, the method for processing light noise data using an improved hybrid denoising algorithm comprises: Standardize and normalize the light noise data, and use Fourier transform to express the signal conversion in the light noise data as , Indicates the light noise data The signal conversion representation corresponding to the sampled data is ; In the signal conversion representation Apply filter on , then the filtered signal , where the filter The frequency response is designed to be , and is the cutoff frequency of the filter, Indicates the actual frequency, for the filtered signal Perform inverse Fourier transform to get the signal ; Perform wavelet transform on the standardized and normalized light noise data to decompose and obtain wavelet coefficients of different scales ,in, is the wavelet basis function, It is a scale and location The wavelet coefficients at Represents the signal data at sampling point t in light noise data; Perform threshold processing on the wavelet coefficients to obtain the processed coefficients , for the wavelet coefficients after threshold processing Perform inverse wavelet transform to obtain the signal ; The signal and signal Combine to obtain the final output signal ,in, and is the weight coefficient, represents the noise reduction signal output at the sampling point v, Represents the signal at sampling point v , Represents the signal at sampling point v ; Collect all the denoised signals within the time period T to obtain the denoised data set.
[0010] Preferably, the method for obtaining the cutoff frequency of the filter includes: setting a value set, using cross-validation to obtain the best value, and applying it to the noise reduction fitting module.
[0011] Preferably, the method for obtaining the weight coefficient includes: Using particle swarm optimization algorithm to obtain weight coefficients and The optimization objective is set to minimize the signal-to-noise ratio, and the constraints are ; Each possible and The combination is regarded as a particle, and the initial position and initial velocity of each particle are randomly initialized. The personal best position of each particle is initialized to its initial position, and the global best position is initialized to the particle position with the best objective function value among all particles; Set the particle speed update formula to: , position update formula ,in, is the inertia weight, and is the learning factor, and is A random number in the range, It is a particle In the The position in the iteration, It is a particle In the The position in the iteration, It is a particle In the The speed in the iteration, It is a particle In the The speed in the iteration, It is a particle Personal best position, is the global optimal position; Calculating particle positions If the current target value is greater than the target value corresponding to the personal best position, the personal best position is updated to the current position. If the current target value is greater than the global best position target value, the global best position is updated to the current position. Set the termination condition to reach the number of iterations and obtain the weight coefficient under the given optimization goal. and The value is then applied to the noise reduction fitting module.
[0012] Preferably, the method for smoothing the denoised data set comprises: The first signal data and the last signal data of the denoised data set within the period time T are copied, the copied signal data are used as new critical values, and the denoised data set is updated; Use a sliding window to perform moving average on the updated denoised data set, setting the step size of the window to ,in, is the half-step length of the window. For each signal data, the smoothing value is calculated. , represents the smoothed signal data at sampling point n, represents the signal data in the sliding window of the denoised dataset, represents a constant; Collect the smoothed signal data at all sampling points to obtain the final output gain data set.
[0013] Preferably, the method for decompressing and restoring the gain data set comprises: The inverse fast Fourier transform is used to decode each signal in the gain data set, and then the signal data is restored by accumulating the differential signal to obtain the decompressed and restored signal data within the period time T.
[0014] A speaker-based active noise reduction control method, comprising: Step S1: constructing a real-time ear canal model of the user using a mathematical model; Step S2: Collect initial noise data, calculate the amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point, and obtain compressed light noise data; Step S3: designing the cutoff frequency and weight coefficient of the hybrid denoising algorithm, using the improved hybrid denoising algorithm to process the light noise data, and obtaining the output denoised data set; Step S4: Use a sliding window to perform a sliding process of moving average on the updated noise-removed data set to obtain a gain data set as a final output; Step S5: decompress and restore the gain data set using inverse fast Fourier transform and accumulated differential signals, and apply the decompressed and restored signal data to the device for noise reduction.
[0015] Compared with the prior art, the present invention has the following beneficial effects: In the present invention, by constructing a real-time ear canal model of the user, the system can make personalized adjustments to the ear canal characteristics of each user, thereby significantly improving the noise reduction effect. Differential pulse code modulation (DPCM) and fast Fourier transform (FFT) are combined to compress noise data, effectively reducing the amount of data while retaining key signal information, reducing the burden of calculation and storage. The improved hybrid noise reduction algorithm is adopted, combined with a variety of noise reduction methods, which can better handle different noise characteristics, improve noise reduction performance, and maintain signal quality. The weight coefficient of the noise reduction algorithm is adjusted using a particle swarm optimization algorithm, which can globally optimize the noise reduction performance and adapt to different noise environments and user needs. The noise-removed data set is smoothed by the moving average of the sliding window, which reduces the random fluctuation of the noise and improves the stability and comfort of the final noise reduction signal. While reducing noise, the system tries to maintain the original characteristics of the signal, reduces distortion in the noise reduction process, makes the audio content clearer and more realistic, ensures that the system runs at low power consumption, and improves the overall efficiency and battery life of the system. The adaptive control and optimization mechanism continuously improves the overall efficiency of intelligent analysis, updates the ear canal model and optimizes the noise reduction algorithm in real time to adapt to changes in different users and environments, thereby providing a continuous and stable noise reduction effect. Multiple modules work together to achieve comprehensive data collection, processing and analysis, provide real-time and accurate analysis of detection data, and realize optimal planning of transmission nodes in the process of active noise reduction control based on speakers, thereby improving the efficiency of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The present invention proposes a structural schematic diagram of an active noise reduction control system based on a speaker; Figure 2 Schematic diagram of the method steps applied to the speaker-based active noise reduction control system in the present invention. DETAILED DESCRIPTION
[0017] Below, the exemplary embodiments according to the present application will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application, and it should be understood that the present application is not limited to the exemplary embodiments described here.
[0018] Embodiment 1 Reference Figure 1 and Figure 2 Embodiment 1 further illustrates an active noise reduction control system based on a speaker proposed by the present invention.
[0019] An active noise reduction control system based on a speaker is designed as an architecture, in which the hardware architecture includes a speaker, a multi-microphone array, a digital signal processor (DSP), a controller and a power management module. The speaker is used to play noise reduction signals and audio content. The multi-microphone array includes a feedforward microphone, a feedback microphone and an ambient microphone, which are respectively used to collect ambient noise, speaker output sound waves and noise in the user's ear canal. A dedicated digital signal processor (DSP) chip is used for real-time audio signal processing, including the execution of noise reduction algorithms. A microcontroller or embedded processor is used for overall control of the system, including parameter adjustment, data communication, etc. The power management module is responsible for the power supply and management of the system to ensure low power consumption operation.
[0020] Data sampling module: used to collect initial noise data and build a real-time ear canal model of the user, and perform lightweight compression on the initial noise data to obtain lightweight noise data; The initial noise data includes external environmental noise, residual ear canal noise and overall surrounding noise. The external environmental noise is collected by a feedforward microphone, the residual ear canal noise is collected by a feedback microphone, and the overall surrounding noise (the overall noise situation of the surrounding environment) is collected by an environmental microphone.
[0021] The method for constructing a real-time ear canal model includes: when a user uses the device for the first time, the ear canal model is initialized, and the audio signals of the o_p group with known frequency and waveform are played and output into the ear canal in sequence through the built-in speaker of the device (usually a sweep signal or a pulse signal). The feedback microphone in the device collects the sound wave reflection signals in the ear canal in real time. These signals include the influence of the shape, size, curvature and other characteristics of the ear canal on the sound waves, and extracts the characteristic data of the propagation and reflection of the sound wave reflection signals in the ear canal. A mathematical model is used to represent the acoustic characteristics of the ear canal. Commonly used models include FIR (finite impulse response) filters, IIR (infinite impulse response) filters or more complex acoustic transmission line models. The o_p group of audio signals are used to continuously update the acoustic characteristics in the ear canal (such as the position of the earphone and slight changes in the shape of the ear canal), thereby obtaining the optimized ear canal model, which is recorded as the real-time ear canal model.
[0022] By building a user's ear canal model, the noise reduction effect is further optimized. Since the ear canal shape of each user is different, a personalized ear canal model can improve the noise reduction effect while avoiding unnecessary waste of computing resources, thereby achieving better power consumption control.
[0023] Methods for lightweight compression of initial noise data include: Within the period time T, the initial noise data is sampled P times at a fixed frequency to obtain the initial noise data set ; Calculate the difference between adjacent sampling points to get the differential signal , where the initial threshold is set , collect all differential signals to obtain differential data sets ,in, Indicates A differential signal, Indicates The initial noise data is obtained by sampling, and , ; Use Fast Fourier Transform to process the difference data set to obtain the frequency domain signal ,in, Indicates The frequency domain signal value corresponding to the differential signal, is the index in the frequency domain, and is an imaginary unit, ; Quantize the amplitude of the frequency domain signal to reduce the amount of data. ,in, Represents frequency domain signal The quantized amplitude value, is the quantization factor, which determines the accuracy of quantization. Indicates rounding operation. Represents frequency domain signal the magnitude of Calculate frequency domain signal The original phase ,in, is a frequency domain signal The phase angle of The amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point are collected to obtain compressed light noise data.
[0024] Using differential pulse code modulation to calculate the difference between adjacent sampling points, DPCM reduces the amount of data by reducing the dynamic range of the signal and provides a more compact signal expression for subsequent processing; using fast Fourier transform (FFT) for quantization, FFT converts the time domain signal into the frequency domain signal, retaining only the important frequency components, and further reduces the amount of data through quantization. The two are used in combination to further improve data compression efficiency and provide greater flexibility in noise reduction and signal processing. This combined method can apply compression technology in the time domain and frequency domain respectively, thereby maximizing the effect of data compression at different signal processing stages while maintaining signal quality as much as possible.
[0025] Noise reduction fitting module: Use the improved hybrid noise reduction algorithm to process the light noise data, obtain the output noise-removed data set, smooth the noise-removed data set, and obtain the final output gain data set; The method of using the improved hybrid denoising algorithm to process light noise data includes: Standardize and normalize the light noise data, and use Fourier transform to express the signal conversion in the light noise data as , Indicates the light noise data The signal conversion representation corresponding to the sampled data is ; In the signal conversion representation Apply filter on , then the filtered signal , where the filter The frequency response is designed to be , and is the filter cutoff frequency, for the filtered signal Perform inverse Fourier transform to get the signal ; Perform wavelet transform on the standardized and normalized light noise data to decompose and obtain wavelet coefficients of different scales ,in, is the wavelet basis function, It is a scale and location The wavelet coefficients at Represents the signal data at sampling point t in light noise data; Perform threshold processing on the wavelet coefficients to obtain the processed coefficients , for the wavelet coefficients after threshold processing Perform inverse wavelet transform to obtain the signal ; The signal and signal Combine to obtain the final output signal ,in, and is the weight coefficient, represents the noise reduction signal output at the sampling point v, Represents the signal at sampling point v , Represents the signal at sampling point v ; Collect all the denoised signals within the time period T to obtain the denoised data set.
[0026] The hybrid denoising algorithm combines multiple denoising methods to achieve better results when processing signals with different noise characteristics. By combining multiple methods, the original characteristics of the signal can be better preserved while denoising, signal distortion can be reduced, and data latency can be reduced. In addition, by adjusting the weights or parameters of each method, it can flexibly adapt to different application scenarios and needs.
[0027] The filter cutoff frequency and The acquisition method includes: setting a value set, using cross-validation to obtain the best value, and applying it to the noise reduction fitting module.
[0028] Weight coefficient and The methods for obtaining include: Using particle swarm optimization algorithm to obtain weight coefficients and The optimization objective is set to minimize the signal-to-noise ratio, and the constraints are ; Each possible and The combination is regarded as a particle, and the initial position and initial velocity of each particle are randomly initialized. The personal best position of each particle is initialized to its initial position, and the global best position is initialized to the particle position with the best objective function value among all particles; Set the particle speed update formula to: , position update formula ,in, is the inertia weight, which controls the influence of the particle's historical velocity on the current velocity. and is the learning factor, which controls the degree to which the particle learns its own best position and the global best position. and is A random number in the range is used to introduce randomness. It is a particle In the The position in the iteration, It is a particle In the The position in the iteration, It is a particle In the The speed in the iteration, It is a particle In the The speed in the iteration, It is a particle Personal best position, is the global optimal position; Calculating particle positions If the current target value is greater than the target value corresponding to the personal best position, the personal best position is updated to the current position. If the current target value is greater than the global best position target value, the global best position is updated to the current position. Set the termination condition to reach the number of iterations and obtain the weight coefficient under the given optimization goal. and The value is then applied to the denoising fitting module.
[0029] The weight coefficients of the hybrid denoising algorithm using particle swarm optimization have the advantages of global optimization capability, ease of use, strong adaptability, efficient computing performance and wide applicability. This makes the particle swarm optimization algorithm an effective tool for optimizing the weight coefficients in the denoising algorithm, and can provide high-quality optimization results when processing complex signals.
[0030] Methods for smoothing a denoised dataset include: The first signal data and the last signal data of the denoised data set within the period time T are copied, the copied signal data are used as new critical values, and the denoised data set is updated; Use a sliding window to perform moving average on the updated denoised data set, setting the step size of the window to ,in, is the half-step length of the window. The step length of the window is designed based on experimental data analysis or experience. For each signal data, the smoothing value is calculated. , represents the smoothed signal data at sampling point n, represents the signal data in the sliding window of the denoised dataset, represents a constant; Collect the smoothed signal data at all sampling points to obtain the final output gain data set.
[0031] The moving average is used to locally average each signal to reduce the impact of random noise and thus smooth the signal.
[0032] Output control module: used to decompress and restore the gain data set, and apply the decompressed and restored signal data to the device for noise reduction; Methods for decompressing and restoring the gain data set include: The inverse fast Fourier transform is used to decode each signal in the gain data set, and then the signal data is restored by accumulating the differential signal to obtain the decompressed and restored signal data within the period time T.
[0033] Through the above steps, the final restored signal data is very close to the original signal, especially when the noise reduction effect is significant, it is the same as the original signal.
[0034] Embodiment 2 Reference Figure 1 and Figure 2 , Embodiment 2 further illustrates an active noise reduction control system based on a speaker proposed by the present invention.
[0035] A method for active noise reduction control based on a speaker comprises the following steps: Step S1: constructing a real-time ear canal model of the user using a mathematical model; Step S2: Collect initial noise data, calculate the amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point, and obtain compressed light noise data; Step S3: designing the cutoff frequency and weight coefficient of the hybrid denoising algorithm, using the improved hybrid denoising algorithm to process the light noise data, and obtaining the output denoised data set; Step S4: Use a sliding window to perform a sliding process of moving average on the updated noise-removed data set to obtain a gain data set as a final output; Step S5: decompress and restore the gain data set using inverse fast Fourier transform and accumulated differential signals, and apply the decompressed and restored signal data to the device for noise reduction.
[0036] An active noise reduction control system based on a speaker, applied to an active noise reduction control method based on a speaker, includes: Data sampling module: used to collect initial noise data and build a real-time ear canal model of the user, and perform lightweight compression on the initial noise data to obtain lightweight noise data; Noise reduction fitting module: Use the improved hybrid noise reduction algorithm to process the light noise data, obtain the output noise-removed data set, smooth the noise-removed data set, and obtain the final output gain data set; Output control module: used to decompress and restore the gain data set, and apply the decompressed and restored signal data to the device for noise reduction; The modules are connected to each other via wired and / or wireless means.
[0037] In addition, according to the implementation of the present application, the process described in the figure of an active noise reduction control system based on a speaker can be implemented as a computer software program. For example, the present application provides a non-transitory machine-readable storage medium, which stores machine-readable instructions, and the machine-readable instructions can be executed by a processor to execute instructions corresponding to the method steps provided in the present application. Of course, the architecture shown in the figure of an active noise reduction control system based on a speaker is only exemplary. When implementing different devices, adaptive selection or adjustment can be performed according to actual needs.
[0038] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and thresholds in the formula are set by technicians in this field according to actual conditions.
[0039] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technical users in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
Claims
1. An active noise reduction control system based on a speaker, characterized in that: The speaker-based active noise reduction control system includes: Data sampling module: used to collect initial noise data and build a real-time ear canal model of the user, and perform lightweight compression on the initial noise data to obtain lightweight noise data; Noise reduction fitting module: Use the improved hybrid noise reduction algorithm to process the light noise data, obtain the output noise-removed data set, smooth the noise-removed data set, and obtain the final output gain data set; Output control module: used to decompress and restore the gain data set, and apply the decompressed and restored signal data to the device for noise reduction; The modules are connected to each other via wired and / or wireless means.
2. The active noise reduction control system based on a speaker according to claim 1, characterized in that: The initial noise data includes external environmental noise, ear canal residual noise and surrounding overall noise. The external environmental noise is collected by a feedforward microphone, the ear canal residual noise is collected by a feedback microphone, and the surrounding overall noise is collected by an environmental microphone.
3. The active noise reduction control system based on a speaker according to claim 2, characterized in that: The method for constructing the real-time ear canal model includes: when a user uses the device for the first time, setting an initialization ear canal model, playing the o_p group of audio signals with known frequencies and waveforms in sequence and outputting them into the ear canal through the built-in speaker of the device, the feedback microphone in the device collects the sound wave reflection signal in the ear canal in real time, and extracts the characteristic data of the propagation and reflection of the sound wave reflection signal in the ear canal, using a mathematical model to represent the acoustic characteristics of the ear canal, using the o_p group of audio signals to continuously update the acoustic characteristics in the ear canal, and then obtaining an optimized ear canal model, which is recorded as the real-time ear canal model.
4. The active noise reduction control system based on a speaker according to claim 3, characterized in that: The method for lightweight compression of initial noise data comprises: Within the period time T, the initial noise data is sampled P times at a fixed frequency to obtain the initial noise data set ; Calculate the difference between adjacent sampling points to get the differential signal , where the initial threshold is set , collect all differential signals to obtain differential data sets ,in, Indicates A differential signal, Indicates The initial noise data obtained by sampling, and , ; Use Fast Fourier Transform to process the difference data set to obtain the frequency domain signal ,in, Indicates The frequency domain signal value corresponding to the differential signal, is the index in the frequency domain, and is an imaginary unit, ; Quantize the amplitude of the frequency domain signal. ,in, Represents frequency domain signal The quantized amplitude value, is the quantization factor, Indicates rounding operation. Represents frequency domain signal the magnitude of Calculate frequency domain signal The original phase ,in, is a frequency domain signal The phase angle of The amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point are collected to obtain compressed light noise data.
5. The active noise reduction control system based on a speaker according to claim 4, characterized in that: The method for processing light noise data using an improved hybrid denoising algorithm comprises: Standardize and normalize the light noise data, and use Fourier transform to express the signal conversion in the light noise data as , Indicates the light noise data The signal conversion representation corresponding to the sampled data is ; In the signal conversion representation Apply filter on , then the filtered signal , where the filter The frequency response is designed to be , and is the cutoff frequency of the filter, Indicates the actual frequency, for the filtered signal Perform inverse Fourier transform to get the signal ; Perform wavelet transform on the standardized and normalized light noise data to decompose and obtain wavelet coefficients of different scales ,in, is the wavelet basis function, It is a scale and location The wavelet coefficients at Represents the signal data at sampling point t in light noise data; Perform threshold processing on the wavelet coefficients to obtain the processed coefficients , for the wavelet coefficients after threshold processing Perform inverse wavelet transform to obtain the signal ; The signal and signal Combine to obtain the final output signal ,in, and is the weight coefficient, represents the noise reduction signal output at the sampling point v, Represents the signal at sampling point v , Represents the signal at sampling point v ; Collect all the denoised signals within the time period T to obtain the denoised data set.
6. The active noise reduction control system based on a speaker according to claim 5, characterized in that: The method for obtaining the cutoff frequency of the filter includes: setting a value set, using cross-validation to obtain the best value, and applying it to a noise reduction fitting module.
7. The active noise reduction control system based on a speaker according to claim 6, characterized in that: The method for obtaining the weight coefficient includes: Use particle swarm optimization algorithm to obtain weight coefficients and The optimization objective is set to minimize the signal-to-noise ratio, and the constraints are ; Each possible and The combination is regarded as a particle, and the initial position and initial velocity of each particle are randomly initialized. The personal best position of each particle is initialized to its initial position, and the global best position is initialized to the particle position with the best objective function value among all particles; Set the particle speed update formula to: , position update formula ,in, is the inertia weight, and is the learning factor, and is A random number in the range, It is a particle In the The position in the iteration, It is a particle In the The position in the iteration, It is a particle In the The speed in the iteration, It is a particle In the The speed in the iteration, It is a particle Personal best position, is the global optimal position; Calculating particle positions If the current target value is greater than the target value corresponding to the personal best position, the personal best position is updated to the current position. If the current target value is greater than the global best position target value, the global best position is updated to the current position. Set the termination condition to reach the number of iterations and obtain the weight coefficient under the given optimization goal. and The value is then applied to the denoising fitting module.
8. The speaker-based active noise reduction control system according to claim 7, characterized in that: The method for smoothing the denoised data set comprises: The first signal data and the last signal data of the denoised data set within the period time T are copied, the copied signal data are used as new critical values, and the denoised data set is updated; Use a sliding window to perform moving average on the updated denoised data set, setting the step size of the window to ,in, is the half-step length of the window. For each signal data, the smoothing value is calculated. , represents the smoothed signal data at sampling point n, represents the signal data in the sliding window of the denoised dataset, represents a constant; Collect the smoothed signal data at all sampling points to obtain the final output gain data set.
9. The active noise reduction control system based on a speaker according to claim 8, characterized in that: The method for decompressing and restoring the gain data set comprises: The inverse fast Fourier transform is used to decode each signal in the gain data set, and then the signal data is restored by accumulating the differential signal to obtain the decompressed and restored signal data within the period time T.
10. A speaker-based active noise reduction control method, applied to a speaker-based active noise reduction control system according to any one of claims 1 to 9, characterized in that: include: Step S1: constructing a real-time ear canal model of the user using a mathematical model; Step S2: Collect initial noise data, calculate the amplitude value, original phase and quantization factor corresponding to the initial noise data at each sampling point, and obtain compressed light noise data; Step S3: designing the cutoff frequency and weight coefficient of the hybrid denoising algorithm, using the improved hybrid denoising algorithm to process the light noise data, and obtaining the output denoised data set; Step S4: Use a sliding window to perform a sliding process of moving average on the updated noise-removed data set to obtain a gain data set as a final output; Step S5: decompress and restore the gain data set using inverse fast Fourier transform and accumulated differential signals, and apply the decompressed and restored signal data to the device for noise reduction.
Citation Information
Patent Citations
Frequency estimation method for low-signal-to-noise-ratio real signal
CN107490722A
GNSS (Global Navigation Satellite System) forwarding deception jamming detection method based on C / N0-MV
CN113406671A
Audio processing method and device, earphone and storage medium
CN115550791A
Audio processing method and device, earphone and storage medium
CN115714944A
Smart call noise reduction method and system of feedback type earphone
CN115884032A