Noise reduction method of active noise reduction equipment
Through the combination of feedforward microphone and IIR bandpass filter, the noise category is identified and the filter is switched, which solves the problem of insufficient noise reduction of fixed coefficient equipment when the noise changes, and achieves effective noise reduction and quiet environment in a loud noise environment. Lower interference suppression improves user experience.
Patent Information
- Application Number
- CN202410884427.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-09-27
AI Technical Summary
Fixed-coefficient active noise reduction equipment cannot adjust the amount of noise reduction when the environmental noise changes, resulting in insufficient noise reduction in quiet noise environments, excessive noise reduction in loud noise environments, and speech interference in quiet environments affecting scene recognition.
Collect noise signals through feedforward microphones, perform noise category identification and interference detection, use IIR bandpass filters to extract characteristic frequencies, switch to the preset filters corresponding to new scenes, achieve targeted adjustments to the noise reduction effect, and combine multi-channel Feedforward and feedback design.
Ensure sufficient noise reduction in loud noise environments to avoid noise rise, overcome the impact of voice interference on recognition in quiet environments, and achieve targeted adjustments to the noise reduction effect.
Smart Images

Figure CN118711554A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of active noise reduction, and in particular relates to a noise reduction method of an active noise reduction device. Background Art
[0002] Active noise reduction devices (such as active noise reduction headphones) are the most widely used and successful commercial applications of active noise control to date. According to whether the filter coefficient is time-varying, the controller of active noise reduction devices can be divided into fixed controllers and adaptive controllers. Among them, compared with adaptive systems, especially for non-stationary noise, fixed coefficient active noise reduction devices have better user subjective feelings. The filter coefficient of the fixed coefficient controller remains unchanged, so it can save calculations and battery life, and achieve a relatively long headphone standby time. Therefore, it is adopted by most active noise reduction devices. However, the disadvantage of the fixed coefficient noise reduction scheme is that when the environmental noise characteristics change, the noise reduction amount cannot be adjusted according to the environmental changes. When the environmental noise changes greatly, the fixed coefficient noise reduction cannot achieve a good noise reduction effect, which is manifested as a suitable noise reduction controller in a quiet noise environment, but insufficient noise reduction in a loud noise environment. Conversely, a suitable noise reduction controller under loud noise has excessive noise reduction in a quiet environment. Summary of the invention
[0003] The purpose of the present invention is to propose a noise reduction method for an active noise reduction device, which can automatically select a controller with a preset fixed coefficient according to the environmental noise scene to ensure that there is enough noise reduction in a large noise situation and that the noise reduction experienced by the user does not have a noise increase; when the noise scene changes, the controller is switched to a preset value corresponding to the new scene through the proposed noise category recognition method to achieve targeted adjustment of the noise reduction effect and overcome the interference of voice on scene recognition in a quiet environment.
[0004] In order to achieve the above object, the present invention adopts the following technical scheme:
[0005] A noise reduction method for an active noise reduction device comprises the following steps:
[0006] Step 1. System initialization;
[0007] Step 2. Use a feedforward microphone to collect noise signals in the environment in real time at a sampling rate of FS, use a time window of length T to calculate the mean square value of the collected signal, and store it in a register named Frame1;
[0008] Each time the data is fully stored, the mean square value of the data is taken as db value, recorded as MF1, and compared with the threshold A_A; when MF1≥A_A, go to step 4 to identify the noise category; when MF1<A_A, go to step 3 to detect interference;
[0009] Step 3. Use the data in Frame1 to perform interference detection. The process is as follows:
[0010] First, the data in Frame1 is divided into F1x segments, and the ratio of the maximum and minimum values of the data in each segment is calculated in db and recorded in the variable VN with a length of F1x, which represents the db value of the energy ratio of interference and noise in each segment;
[0011] Compare each value VN(i) in the variable VN with the threshold A_VN;
[0012] If VN(i)≥A_VN, the value of the count flag flag_VN is increased by 1, otherwise, flag_VN remains unchanged; after the Frame1 data segment completes F1x comparisons, if the count value of flag_VN is less than F1x / 2, go to step 4; otherwise, the sum of the relatively large F1x / 2 values in VN is subtracted from the sum of the relatively small F1x / 2 values, recorded as deltaVN;
[0013] If deltaVN ≥ 6, it is considered as interference, the flag bit flag_VNS is written to 1, and the process returns to step 2, flag_VN is reset to 0, and variables B1, B2, and counter TB are reset to 0; otherwise, flag_VNS is written to 0, and the process goes to step 4;
[0014] Step 4. Use two IIR bandpass filters to extract the noise energy corresponding to the characteristic frequency in real time, filter the signal in Frame1 respectively, calculate the mean square value after filtering, and record it in variables MB1 and MB2;
[0015] Then use the formula B1=(B1+MB1) / 2 and B2=(B2+MB2) / 2 to update variables B1 and B2 respectively; at the same time, use the formula TB=TB+1 to update the counter variable TB; when the value of the counter TB reaches the threshold value A_TB, the noise weighting within the set time period is completed; use variables B1 and B2 to distinguish noise characteristics;
[0016] Step 5. After a new noise scene is detected in step 4, the filter is switched to a feedback controller under the new noise scene.
[0017] The present invention has the following advantages:
[0018] As described above, the present invention relates to a noise reduction method for an active noise reduction device that can automatically select a preset fixed coefficient controller according to the environmental noise scene. The method proposes a hybrid noise reduction design that combines feedback and multi-channel feedforward for each preset noise scene. When the noise scene changes, the method of the present invention can achieve targeted adjustment of the noise reduction effect by switching the controller to the preset value corresponding to the new scene, thereby ensuring that there is sufficient noise reduction in high noise conditions and that the noise reduction experienced by the user does not have noise rise. In addition, it can also overcome the interference of voice on scene recognition in a quiet environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 is an overall flow chart of a noise reduction method of an active noise reduction device in an embodiment of the present invention;
[0020] Figure 2 A schematic diagram of an interference detection process in an embodiment of the present invention;
[0021] Figure 3 A schematic diagram of a noise category identification process in an embodiment of the present invention;
[0022] Figure 4 Schematic diagram of noise spectrum characteristics of four noise scenarios preset in an embodiment of the present invention;
[0023] Figure 5 It is a schematic diagram of feedback earmuff-type noise reduction headphones and a control system block diagram; wherein, Figure 5 (a) is a schematic diagram of a feedback earmuff-type noise reduction headset. Figure 5 (b) is the control system block diagram;
[0024] Figure 6 The block diagram of the virtual microphone algorithm for the feedback system;
[0025] Figure 7 is a schematic diagram of the filter amplitude and phase response of the feedback system; Figure 7 (a) is the filter amplitude response diagram of the feedback system. Figure 7 (b) is the filter phase response diagram of the feedback system;
[0026] Figure 8 Schematic diagram of the noise reduction amount of the feedback system;
[0027] Fig. 9 The system block diagram for hybrid noise reduction;
[0028] Fig.10 The simplified system block diagram of the equivalent feed-forward secondary channel;
[0029] Fig.11 is a schematic diagram of the amplitude and phase response of the multi-channel feedforward controller; Fig.11 (a) is a schematic diagram of the amplitude response of the feedforward system controller. Fig.11 (b) is a schematic diagram of the phase response of the feedforward system controller;
[0030] Fig.12 It is a schematic diagram of the noise reduction amount of the multi-channel feed-forward system;
[0031] Fig.13 Schematic diagram of the noise reduction of the hybrid system under various noise scenarios. DETAILED DESCRIPTION
[0032] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0033] This embodiment describes a noise reduction method for an active noise reduction device, which can automatically select a preset fixed coefficient controller according to the environmental noise scene. Specifically, when the noise scene changes, the method of the present invention can switch the controller to the corresponding preset value under the new noise scene through the proposed noise category recognition method, thereby achieving targeted adjustment of the noise reduction effect, and the noise category recognition method proposed in the present invention can overcome the influence of interference such as user voice on recognition in a low-noise environment.
[0034] like Figure 1 As shown, the noise reduction method of the active noise reduction device in this embodiment includes the following steps:
[0035] Step 1. System initialization.
[0036] When the headphones are turned on for the first time and the system turns on the ANC function, the noise reduction mode corresponding to the ambient noise mode actively selected by the user (through the APP) is called. If the user uses the physical ANC switch, the filter corresponding to the default noisy environment mode is called. The timer starts after the headphones are turned on or ANC is turned off. If ANC is enabled again within 2 minutes, the filter when ANC was last turned off is called. Otherwise, the user-selected or default ambient noise mode is used.
[0037] Each time ANC is enabled, the system register is initialized and the process goes to step 2 to monitor the noise energy.
[0038] Step 2. Noise energy monitoring.
[0039] A feedforward microphone is used to collect noise signals in the environment in real time at a sampling rate FS (for example, 2kHz). A time window of length T is used to calculate the mean square value of the collected signal and store it in a register named Frame1.
[0040] The length LF1=FS is the number of data points collected within 1 second, and Frame1 is updated according to 50% overlap.
[0041] Each time the data is fully stored, the mean square value of the data is taken as the db value, recorded as MF1, and compared with the threshold A_A.
[0042] When MF1≥A_A, it is considered that the environmental noise is very strong and the voice interference can be ignored, and the process directly proceeds to step 4 for noise category identification; when MF1<A_A, it is easily interfered with, and the process proceeds to step 3 for interference detection.
[0043] Step 3. Interference detection.
[0044] In this step, the data in Frame1 is used for interference detection to prevent the wearer's voice, clapping, or door closing, etc. from interfering with the environmental noise recognition. Since environmental noise is mostly a random signal, the mean square value after short-time averaging is relatively stable, and the difference between the maximum and minimum values is small, while the mean square value of speech energy after short-time averaging is non-stationary. Compare the envelopes of the maximum and minimum values in the mean square value sequence. If the ratio is large, it means that the speech energy is prominent. If the ratio is close to 1, it means that the interference is covered by the noise and can be ignored.
[0045] like Figure 2 As shown, the specific process of interference detection is as follows:
[0046] First, the data in Frame1 is divided into F1x segments, and the ratio of the maximum and minimum values of the data in each segment is calculated in db and recorded in a variable VN with a length of F1x, which represents the db value of the energy ratio of interference and noise in each segment.
[0047] Compare each value VN(i) in the variable VN with the threshold value A_VN. If VN(i) ≥ A_VN, the value of the counting flag flag_VN (the initial value of flag_VN is 0) is increased by 1, otherwise, flag_VN remains unchanged.
[0048] After the Frame1 data segment completes F1x comparisons, if the count value of flag_VN is less than F1x / 2, proceed to step 4; otherwise, it is considered that there is a possibility of interference in Frame1, and in this case, the intensity of the interference is then determined.
[0049] Specifically, the difference between the sum of the relatively large F1x / 2 values in VN and the sum of the relatively small F1x / 2 values is recorded as deltaVN; if deltaVN ≥ 6, it is considered that the energy of the interference is strong relative to the background, the system judges it as interference, the flag flag_VNS is written to 1, and returns to step 2, flag_VN is reset to 0, variables B1, B2 and counter TB are reset to 0; otherwise, flag_VNS is written to 0 and goes to step 4.
[0050] Step 4. Noise category identification.
[0051] like Figure 3 As shown, two IIR bandpass filters are used to extract the noise energy corresponding to the characteristic frequency in real time. The center frequency FC1 of the bandpass filter is set to 65 Hz, the center frequency FC2 is set to 280 Hz, the Q value is set to 4, and the gain is 0 dB. The signals in Frame1 are filtered respectively, and the mean square values are calculated after filtering and recorded in variables MB1 and MB2.
[0052] Then, the variables B1 and B2 (the initial values of B1 and B2 are both 0) are updated respectively using the formula B1=(B1+MB1) / 2 and B2=(B2+MB2) / 2. The purpose of this is to increase the weight of the subsequent energy, respond faster to noise changes, and simplify the calculation. At the same time, the counter variable TB (initial value TB=0) is updated using the formula TB=TB+1. When the value of the counter TB reaches the threshold value A_TB, the noise weighting within the set time period is completed, and the variables B1 and B2 are used to distinguish the noise characteristics.
[0053] against Figure 4 The four types of noise in , respectively define threshold DB0, threshold AB1, threshold DB1 and threshold AB2.
[0054] The difference in decibel numbers between variables B1 and B2 is higher than the threshold DB0, that is, the energy of lower-frequency noise is much greater than that of higher-frequency noise, and there is serious low-frequency vibration interference. The user may be in a running exercise scenario. At this time, initialize the counter variables TB, B1 and B2 and re-identify, otherwise continue with the following judgment.
[0055] Threshold AB1 is used to distinguish between airplane and public transportation scenes and other scenes, threshold DB1 is used to distinguish between airplane and public transportation noise scenes, and threshold AB2 is used to distinguish between noisy places and quiet places. When the sum of the decibel numbers of B1 and B2 is greater than or equal to AB1, the low-frequency energy of the ambient noise is considered to be an airplane or public transportation scene, otherwise it is a noisy scene or a quiet place scene. When the difference between the decibel numbers of B1 and B2 is greater than or equal to DB1, the noise is a public transportation scene, that is, Figure 3 Mode 2 in , otherwise it is an airplane scene, i.e. Figure 3 Mode 1 in the figure. When the sum of the decibels of B1 and B2 is greater than or equal to AB2, it is considered a noisy place. Figure 3 Mode 3 in , otherwise it is a quiet place, that is Figure 4 Mode 4 in .
[0056] Step 5. Switch the filter.
[0057] After the new noise scene is detected in step 4, the feedback controller under the new noise scene is switched.
[0058] The linear weighted values of the feedback controller curves corresponding to the four noise scenarios of airplanes, public transportation, noisy places, and quiet places are recorded as G1, G2, G3, and G4. After the noise category is identified and a new noise scenario is detected, the filter is switched in a gradual in-and-out manner, that is, the gain of the feedback controller of the current noise scenario is first attenuated by 0.25 dB each time until the cumulative attenuation value is equal to the difference between the weighted values of the new noise scenario and the current noise scenario, and then the feedback controller of the new scenario is switched.
[0059] Since there is no sudden change in gain during the noise scene switching, users will not feel anything unusual.
[0060] like Figure 4 The spectrum characteristics of four noise scenes preset in the present invention are shown. The four noise scenes are respectively an airplane noise scene, a public transportation noise scene, a noisy environment noise scene and a quiet environment noise scene.
[0061] Next, the feedforward hybrid noise reduction design will be performed based on the above-mentioned pre-set noise characteristics. Specifically, for each pre-set noise scene, a feedback controller based on the noise scene characteristic weight coefficient is obtained. On the basis of the feedback design, a multi-channel feedforward combined hybrid noise reduction design method is added, including a feedback design method for simulating the noise reduction amount at the human ear position and a multi-channel feedforward hybrid noise reduction design method by designing a matching feedforward controller for each feedforward microphone.
[0062] The specific steps of the feedback design method for simulating the amount of noise reduction at the human ear position are as follows:
[0063] As Figure 5 As shown in (a) and (b), G(s) is the secondary channel transfer function, which is transmitted to the feedback error microphone position in the front cavity of the earphone through the secondary sound source speaker and received by the error microphone, which occurs at the acoustic level. H(s) is the feedback controller response, including the microphone preamplifier, feedback controller and power amplifier, which occurs at the electronic level.
[0064] The external noise signal is transmitted through the earphone shell into the cavity as the primary noise d(t). After the feedback noise control is turned on, the error microphone collects the residual error signal e(t). The transfer function from e(t) to d(t) is defined as the feedback system sensitivity function S:
[0065]
[0066] Where E represents the noise residual response and D represents the initial noise response.
[0067] The open-loop transfer function L(jω) is defined as:
[0068] L(jω)=G(jω)H(jω) (2)
[0069] Wherein, j represents an imaginary unit, ω represents an angular frequency, E(jω) represents the complex frequency domain response of the noise residue, and D(jω) represents the complex frequency domain response of the initial noise.
[0070] The system sensitivity function S(jω) is as follows: a good feedback control system can suppress noise well within the effective frequency band, and S(jω) should approach zero.
[0071]
[0072] The complementary sensitivity function T(jω) of the system is defined as follows: for a good feedback control system, the output of the system design should track the input well within the effective frequency band, and T(jω) should be close to 1.
[0073]
[0074] From the perspective of noise suppression, when the primary noise is d(t), the residual error signal e(t) picked up by the error microphone is the smallest in the mean square sense, as shown in the following formula:
[0075]
[0076] Among them, E[] represents the expectation, Φ d (ω) and Φ e (ω) are the power spectral densities of the error signal d(t) and the primary noise e(t) in the frequency domain, respectively. w1(ω) represents the RMS value of the primary noise power spectral density, which is obtained through actual measurement and is a real number vector.
[0077] If the goal is to minimize the noise residual, the following cost function is constructed:
[0078]
[0079] Where min[] means taking the minimum value, and ||||2 means the H2 norm.
[0080] From the perspective of system stability, the open-loop transfer function must have a certain amplitude margin (AM), which is defined as L AM (ω), and the phase margin (PM), defined as L PM (ω).
[0081] According to the analysis of the Nyquist diagram of the open-loop transfer function in the above text, in order to avoid the dangerous area of howling, the constraint conditions are set as follows, that is, when the phase response of the open-loop transfer function is an integer multiple of 2π, the amplitude response is lower than L amdB, when the amplitude response of the open-loop transfer function is 0dB, the absolute value of the phase response is not less than L pm radian.
[0082]
[0083] Among them, L am Indicates the preset value of amplitude margin, L pm Indicates the preset value of the phase margin.
[0084] From the perspective of controlling noise rise, it is defined that the noise rise should not exceed w2(ω), and the constraints are as follows:
[0085] ||S(jω)w2(ω)|| ∞ <1 (8)
[0086] where |||| ∞ It represents the H∞ norm, which is equivalent to the maximum value of the modulus. w2(ω) represents the preset maximum value of the noise rise. Choosing 0.5 means that the noise rise does not exceed 6dB. If the noise rise is required not to exceed 3dB, this value is 0.707. Different values can also be set for different frequencies, but it will increase the amount of calculation.
[0087] The secondary channel transfer function G in the sensitivity function can be obtained through testing, and the controller H uses a cascaded second-order IIR filter. The basic form of the transfer function H(z) of the second-order IIR filter is as follows:
[0088]
[0089] Wherein, a0, a1, a2, b0, b1, b2 represent filter coefficients of a second-order IIR filter, and z represents z-transform;
[0090] The controller transfer function consisting of N cascaded second-order IIR filters is as follows:
[0091]
[0092] Among them, g total represents the total gain of the controller composed of all second-order IIR filters;
[0093] H n (z) represents the transfer function of the nth second-order IIR filter participating in the cascade, and its basic form is as follows:
[0094]
[0095] Among them, b 2,n 、b 1,n 、b 0,n 、a 2,n 、a1,n 、a 0,n Respectively represent the filter coefficients of the nth second-order IIR filter participating in the cascade; the transfer function response of the feedback controller composed of N second-order IIR filters is determined by the following filter parameter vector X with a length of 3N+1:
[0096] X=[Fc1,Q1,g1,...,Fc n ,Q n ,g n ,...,Fc N ,Q N ,g N ,g total ] (12)
[0097] Among them, Fc n Indicates the center frequency of the nth IIR filter, in Hz; Q n The Q value of the nth IIR filter represents the steepness at the center frequency and is a dimensionless value. n Indicates the gain of the nth IIR filter, in dB.
[0098] The optimal solution problem is constructed based on the objective function (6) and the constraint conditions (7) and (8), and the filter parameter vector X is used to establish a direct solution control strategy function.
[0099] In order to write the constraints directly into the control strategy function, a step function U(x) is used:
[0100]
[0101] Then the control strategy function J(X) is as follows:
[0102]
[0103] Where S(X) represents the sensitivity function of the feedback system of the controller composed of the parameter vector X, U represents the step function, and L AM (X) represents the amplitude margin of the controller composed of the parameter vector X, L PM (X) represents the parameter vector X that constitutes the phase margin of the controller, and γ1 and γ2 represent penalty factors.
[0104] In the first part on the right side of the control strategy function J(X), the amplitude of the sensitivity function represents the noise reduction performance. It is the smallest after weighting with the primary noise frequency characteristic weight coefficient w1(ω), indicating that the feedback control system offsets the primary noise to the maximum extent. In order to obtain good noise reduction performance, the first part should be the smallest.
[0105] The second part on the right side of the control strategy function J(X) is the constraint of the system stability on the open-loop transfer function. After the open-loop transfer function runs to the right half plane on the Nyquist diagram, the open-loop transfer function should not exceed the set amplitude and phase margin. When the phase response of the open-loop transfer function is an integer multiple of 2π, the amplitude response is lower than L am dB, when the amplitude response of the open-loop transfer function is 0dB, the absolute value of the phase response is not less than L pm Radians, otherwise the value of the step function is 1, which is not conducive to the minimum strategy function after multiplying by the penalty factor γ1, so the filter parameter vector X is abandoned at this time.
[0106] The third part on the right side of the control strategy function J(X) is the constraint imposed by the system on noise enhancement. In the noise lift band, once the noise enhancement is greater than the inverse of the preset weight coefficient 1 / w2(ω), the value of the step function is 1, which is multiplied by the penalty factor γ2, which is not conducive to the minimum strategy function. Therefore, the filter parameter vector X is abandoned at this time.
[0107] The above feedback noise reduction design is based on the feedback microphone position, but the actual noise reduction effect felt by users is at the human ear position. Since the control signal is transmitted to the actual human ear position farther than to the error microphone, the noise reduction effect is compromised. In order to solve this problem, virtual microphone technology is further used to perform feedback noise reduction design directly at the human ear position.
[0108] like Figure 6 The block diagram of the virtual microphone algorithm of the feedback system is shown.
[0109] The subscript p represents the actual error microphone position, and the subscript v represents the virtual microphone position, which is the ear canal position for the headphone system. In the figure, W(s) is the feedback filter response function, y(n) is the control signal, and the secondary channel transfer functions of the secondary sound source to the error microphone and the virtual microphone position are G p (s) and G v (s), whose estimates are and d p (t) and d v (t) are the primary noise at the error microphone and virtual microphone positions, respectively, and are their estimates, e p (t) and e v (t) are the residual noise of the error microphone and virtual microphone positions, respectively, Yes v(t) is estimated, and the residual noise signal estimated at the virtual microphone position is input into the feedback filter, broadcast by the secondary sound source, collected by the error microphone, and then converted to estimate the residual noise at the virtual microphone position, forming a feedback control loop. In the actual system, not only is there a difference between the secondary channel transfer function transmitted from the secondary sound source to the error microphone and the virtual microphone position, but there is also a difference between the transfer function transmitted from the external noise to the physical microphone and the virtual microphone position, which is represented by Q(s), and its estimate is Where Q(s) is the transfer function between the primary noise to the error microphone and the virtual microphone. Represents an estimate of the transfer function between the primary noise to the error microphone and the virtual microphone locations.
[0110] The transfer function H(s) of the control system is as follows:
[0111]
[0112] Among them, Y(s) represents the response of the control signal, E p (s) represents the residual noise response of the error microphone position.
[0113] The relationship between the sensitivity functions of the human ear and the error microphone is as follows:
[0114]
[0115] Among them, S v (s) represents the sensitivity function of the virtual microphone position, i.e., the human ear position, S p (s) represents the sensitivity function of the error microphone position; Δ(s) = G v (s)-G p (s)Q(s),
[0116] The error microphone secondary channel transfer function G p (s), virtual microphone secondary channel transfer function G v Under the assumption that the transfer function Q(s) of the primary noise to the two positions is estimated accurately, the sensitivity function of the human ear position is obtained:
[0117]
[0118] The control strategy function J(X) is established at the human ear position as follows:
[0119]
[0120] Among them, S v(X) represents the sensitivity function of the virtual microphone position. The noise reduction design based on the human ear position using the above strategy function has good consistency with the measured results, and the method has application value.
[0121] The feedback noise reduction design is performed for the pre-set noise scene in the first part. Considering that the noise in a quiet scene is already very small and almost does not need to be offset, and since the feedback is limited by the Bode sensitivity integral theorem and will definitely cause noise increase, no feedback noise reduction processing is performed in a quiet environment. Figure 7 are the magnitude and phase responses of the feedback controller designed for the other three noise scenarios, where Figure 7 (a) is the amplitude response diagram of the feedback controller. Figure 7 (b) is the phase response diagram of the feedback controller, which not only does not introduce noise increase, but also helps to reduce system power consumption and extend the use time.
[0122] Figure 8 The following are the feedback noise reduction curves for three noise scenarios. It can be seen from the noise reduction curve that feedback noise reduction increases the mid-frequency energy around 1kHz. Since the human ear is very sensitive to the mid-frequency band, the noise increase will affect the user experience. To solve this problem, feedforward noise reduction needs to be introduced to offset the noise increase caused by feedback.
[0123] Based on the feedback design, a multi-channel feedback hybrid noise reduction design method for a feedforward controller matching the design of each feedforward microphone is given below. The specific design steps are as follows:
[0124] like Fig. 9 The system block diagram of hybrid noise reduction is shown. Among them, x(t) represents external noise, P(s) represents the transfer function of external noise to the human ear, that is, the virtual microphone position, and R(s) represents the transfer function of external noise to the feedforward microphone position, all of which occur at the acoustic level; F(s) represents the feedforward controller transfer function composed of the feedforward microphone preamplifier, feedforward filter and amplifier circuit, which occurs at the electronic level; u(t) represents the feedforward control signal sent by the feedforward controller from the feedforward microphone acquisition signal. The feedforward control signal u(t) and the feedback control signal y(t) are mixed together at the electronic level to drive the secondary sound source to perform hybrid noise reduction on the system.
[0125] Let from u(t) to e v The transfer function of (t) is It is expressed as:
[0126]
[0127] Among them, e v (t) represents the residual noise at the virtual microphone position, G v(s) represents the secondary channel transfer function of the virtual microphone position, S p (s) represents the sensitivity function of the feedback system at the error microphone position. After the feedback system acts, the main channel transfer function of the external noise to the virtual microphone position is defined as It is expressed as:
[0128]
[0129] Among them, S v (s) is the sensitivity function of the feedback system at the virtual microphone position.
[0130] At this time, the block diagram of hybrid noise reduction can be simplified as follows Fig.10 The form of feedforward noise reduction, where and are the primary noise and residual noise at the virtual microphone position after the feedback system works. Adding feedforward control on the basis of feedback control is equivalent to simplifying the hybrid system into a feedforward noise reduction system. The sensitivity function S f (s) is:
[0131]
[0132] Maximizing the noise reduction requires minimizing the sensitivity function. In theory, feedforward noise reduction can achieve complete noise cancellation, that is, the sensitivity function is zero, and the theoretical feedforward controller can be obtained, and its expression is as follows:
[0133]
[0134] For the hybrid noise reduction system, the sensitivity functions of feedforward and feedback are combined at the human ear position, and the feedback control sensitivity function and the feedforward sensitivity function are combined to obtain the hybrid noise reduction sensitivity function S at the human ear. h (s) is written as:
[0135]
[0136] When considering the external noise direction, the subscript i is used to indicate that the external noise comes from the i-th direction, then the hybrid noise reduction sensitivity function S corresponding to the i-th noise direction is h,i (s) becomes:
[0137]
[0138] Among them, P i (s) represents the transfer function of the external noise at position i to the virtual microphone position, S v,i (s) represents the sensitivity function of the feedback system corresponding to the external noise at the virtual microphone position with the direction i, R i(s) represents the transfer function of the external noise at position i to the feedforward microphone position.
[0139] When there is noise in a total of I directions in space, the overall noise reduction performance function of the hybrid system is expressed as:
[0140]
[0141] In order to maximize the noise reduction performance of the hybrid system, the two parameter vectors of feedforward and feedback are combined into a hybrid parameter vector, and the control strategy function is written as J1(X):
[0142]
[0143] Among them, NR h,I (X) is the noise reduction performance function of the overall hybrid system in the case of a single feedforward controller with I-direction noise in space, γ3 represents the penalty factor, and w h1 (ω) is the weighted curve of hybrid noise reduction at different frequencies, w h2 (ω) is the noise lift limit of the hybrid system.
[0144] In order to achieve better noise reduction effect, a corresponding feedforward filter can be used for each feedforward microphone, that is, a multi-channel system, then the feedforward sensitivity function S corresponding to the jth feedforward microphone at the i-th azimuth is h,i,j (s) further becomes:
[0145]
[0146] Where J represents the number of feedforward microphones, R i,j (s) represents the transfer function of the i-th azimuth noise to the j-th feedforward microphone, F j (s) represents the feedforward controller corresponding to the jth feedforward microphone.
[0147] When there is noise in a total of I directions in space, the overall noise reduction performance function of the multi-channel system hybrid system is expressed as:
[0148]
[0149] The hybrid control strategy function of the multi-channel system becomes J2(X):
[0150]
[0151] Among them, NR h,I,J (X) is the noise reduction performance function of the overall hybrid system with I directional noise in space under J feedforward controllers.
[0152] Fig.11This is a response diagram of a multi-channel feedforward system controller with three feedforward microphones designed using the above strategy function J2, where Fig.11 (a) is a schematic diagram of the amplitude response of the feedforward system controller. Fig.11 (b) is a schematic diagram of the phase response of the feedforward system controller. Fig.12 It is a schematic diagram of multi-channel feedforward noise reduction, where feedforward noise reduction does not raise the noise and the same feedforward controller is used for all noise scenarios. Fig.13 This is a schematic diagram of the noise reduction amount of a multi-channel feedforward and feedback hybrid system using three feedforward microphones, in which the noise reduction of the feedforward part offsets the noise increase of the feedback part, and the hybrid system has almost no noise increase.
[0153] It is not difficult to see from the above process that the method of the present invention can automatically select a controller with a preset fixed coefficient according to the environmental noise scene, ensuring that there is sufficient noise reduction in high noise conditions and that the noise reduction experienced by users does not increase noise. When the noise scene changes, the controller is switched to the preset value corresponding to the new scene through the proposed noise category recognition method, thereby achieving targeted adjustment of the noise reduction effect and overcoming the interference of voice on scene recognition in a quiet environment.
[0154] It should be noted that the active noise reduction device in the present invention includes, for example, active noise reduction headphones, earplugs or hearing aids.
[0155] Of course, the above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiments. It should be noted that all equivalent substitutions and obvious deformation forms made by any technician familiar with the field under the guidance of this specification fall within the essential scope of this specification and should be protected by the present invention.
Claims
1. A noise reduction method for an active noise reduction device, characterized in that: The steps include: Step 1. System initialization; Step 2. Use a feedforward microphone to collect noise signals in the environment in real time at a sampling rate of FS, use a time window of length T to calculate the mean square value of the collected signal, and store it in a register named Frame1; Each time the data is fully stored, the mean square value of the data is taken as db value, recorded as MF1, and compared with the threshold A_A; when MF1≥A_A, go to step 4 to identify the noise category; when MF1<A_A, go to step 3 to detect interference; Step 3. Use the data in Frame1 to perform interference detection. The process is as follows: First, the data in Frame1 is divided into F1x segments, and the ratio of the maximum and minimum values of the data in each segment is calculated in db and recorded in the variable VN with a length of F1x, which represents the db value of the energy ratio of interference and noise in each segment; Compare each value VN(i) in the variable VN with the threshold A_VN; If VN(i)≥A_VN, the value of the count flag flag_VN is increased by 1, otherwise, flag_VN remains unchanged; after the Frame1 data segment completes F1x comparisons, if the count value of flag_VN is less than F1x / 2, go to step 4; otherwise, the sum of the relatively large F1x / 2 values in VN is subtracted from the sum of the relatively small F1x / 2 values, recorded as deltaVN; If deltaVN ≥ 6, it is considered as interference, the flag bit flag_VNS is written to 1, and the process returns to step 2, flag_VN is reset to 0, and variables B1, B2, and counter TB are reset to 0; otherwise, flag_VNS is written to 0, and the process goes to step 4; Step 4. Use two IIR bandpass filters to extract the noise energy corresponding to the characteristic frequency in real time, filter the signal in Frame1 respectively, calculate the mean square value after filtering, and record it in variables MB1 and MB2; Then use the formula B1=(B1+MB1) / 2 and B2=(B2+MB2) / 2 to update variables B1 and B2 respectively; at the same time, use the formula TB=TB+1 to update the counter variable TB; when the value of the counter TB reaches the threshold value A_TB, the noise weighting within the set time period is completed; use variables B1 and B2 to distinguish noise characteristics and detect new noise scenes; Step 5. After a new noise scene is detected in step 4, the filter is switched to a feedback controller under the new noise scene.
2. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: The step 1 is specifically as follows: When the headset is turned on for the first time and the system turns on the ANC function, the noise reduction mode corresponding to the ambient noise mode actively selected by the user is called; each time ANC is enabled, the system register is initialized and step 2 is entered to monitor the noise energy.
3. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: In step 5, the four pre-set noise scenarios are: Aircraft noise scene, public transportation noise scene, noisy environmental noise scene and quiet environmental noise scene.
4. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: In step 4, a threshold DB0 is defined. If the difference between the decibel values of variables B1 and B2 is higher than the threshold DB0, there is a serious low-frequency vibration interference. At this time, the counter TB is initialized for re-identification. Otherwise, the judgment continues. Define the threshold AB1 to distinguish between airplane and public transportation scenes and other scenes. When the sum of the decibel values of B1 and B2 is greater than or equal to AB1, the low-frequency energy of the ambient noise is an airplane or public transportation scene; otherwise, it is a noisy scene or a quiet place scene. Define the threshold DB1 to distinguish between airplane and public transportation noise scenes. When the difference between B1 and B2 decibels is greater than or equal to DB1, the noise is a public transportation scene, otherwise the noise is an airplane scene. A threshold AB2 is defined to distinguish between noisy places and quiet places. When the sum of the decibel values of B1 and B2 is greater than or equal to AB2, it is considered to be a noisy place, otherwise it is a quiet place.
5. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: In step 5, after the noise category is identified and a new noise scene is detected in step 4, the filter is switched in a gradual in-and-out manner, that is, the gain of the feedback controller of the current noise scene is first attenuated by 0.25 dB each time until the cumulative attenuation value is equal to the difference between the weighted values of the new noise scene and the current noise scene, and then the filter is switched to the new scene feedback controller.
6. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: In step 5, for each preset noise scene, a feedback controller based on the noise scene characteristic weight coefficient is obtained; on the basis of the feedback design, a hybrid noise reduction design method combining multi-channel feedforward is added, specifically including a feedback design method for simulating the noise reduction amount at the human ear position and a multi-channel feedback-forward hybrid noise reduction design method by designing a matching feedforward controller for each feedforward microphone.
7. The noise reduction method of the active noise reduction device according to claim 6, characterized in that: The steps include: The specific steps of the feedback design method for simulating the amount of noise reduction at the human ear position are as follows: Define G(s) as the secondary channel transfer function, H(s) as the feedback controller response; the external noise signal is transmitted through the earphone shell into the cavity as the primary noise d(t). After the feedback noise control is turned on, the error microphone collects the residual error signal e(t); The transfer function from e(t) to d(t) is defined as the feedback system sensitivity function S: Where E represents the noise residual response, and D represents the initial noise response; The open-loop transfer function L(jω) is defined as: L(jω)=G(jω)H(jω) (2) Wherein, j represents the imaginary unit, ω represents the angular frequency; E(jω) represents the complex frequency domain response of the noise residue, D(jω) represents the complex frequency domain response of the initial noise; the system sensitivity function S(jω) is as follows: The complementary sensitivity function T(jω) of the system is defined as follows: When the primary noise is d(t), the residual error signal e(t) picked up by the error microphone is minimum in the mean square sense, as shown in the following formula: Among them, E[ ] represents the expectation, Φ d (ω) and Φ e (ω) are the power spectral densities of the error signal d(t) and the primary noise e(t) in the frequency domain, w1(ω) represents the RMS value of the primary noise power spectral density, which is a real vector; If the goal is to minimize the noise residual, the following cost function is constructed: Where min[ ] means taking the minimum value, || ||2 means the H2 norm; define L AM (ω) is the amplitude margin, and L is defined PM (ω) is the phase margin; in order to avoid the dangerous area of howling, the constraints are set as follows: Among them, L am Indicates the preset value of amplitude margin, L pm Indicates the preset value of phase margin; From the perspective of controlling noise rise, it is defined that the noise rise should not exceed w2(ω), and the constraints are as follows: ||S(jω)w2(ω)|| ∞ <1 (8) where || || ∞ represents the H∞ norm, which is equivalent to the maximum value of the modulus, and w2(ω) represents the preset maximum value of the noise lift; the basic form of the transfer function H(z) of the second-order IIR filter is as follows: Wherein, a0, a1, a2, b0, b1, b2 represent filter coefficients of the second-order IIR filter, and z represents z-transform; The controller transfer function consisting of N cascaded second-order IIR filters is as follows: Among them, g total represents the total gain of the controller composed of all second-order IIR filters; H n (z) represents the transfer function of the nth second-order IIR filter participating in the cascade, and its basic form is as follows: Among them, b 2,n , b 1,n , b 0,n 、a 2,n 、a 1,n 、a 0,n They represent the filter coefficients of the nth second-order IIR filter participating in the cascade; The transfer function response of the feedback controller composed of N second-order IIR filters is determined by the following filter parameter vector X of length 3N+1: X=[Fc1,Q1,g1,...,Fc n ,Q n ,g n ,...,Fc N ,Q N ,g N ,g total ] (12) Among them, Fc n represents the center frequency of the nth IIR filter, Q n The Q value of the nth IIR filter represents the steepness at the center frequency, g n Indicates the amplification factor of the nth IIR filter; According to the objective function (6) and the constraint conditions (7) and (8), the optimal solution problem is constructed, and the filter parameter vector X is used to establish a direct solution control strategy function; the following step function U(x) is defined: Then the control strategy function J(X) is as follows: Where S(X) represents the sensitivity function of the feedback system of the controller composed of the parameter vector X, L AM (X), L PM (X) represents the amplitude margin and phase margin of the controller composed of parameter vector X, and γ1 and γ2 represent penalty factors.
8. The noise reduction method of the active noise reduction device according to claim 7, characterized in that: The steps include: Further using virtual microphone technology, feedback noise reduction design is performed directly at the human ear position. The process is as follows: Subscript p is defined as the actual error microphone position, subscript v is defined as the virtual microphone position; W(s) is the feedback filter response function, and the secondary channel transfer functions of the secondary sound source to the error microphone and the virtual microphone position are G p (s) and G v (s), whose estimates are and The transfer function H(s) of the control system is as follows: Among them, Y(s) represents the response of the control signal, E p (s) represents the residual noise response of the error microphone position; An estimate of the transfer function representing the primary noise to the error microphone and the virtual microphone; The relationship between the sensitivity functions of the human ear and the error microphone is as follows: Where Q(s) represents the transfer function between the primary noise to the error microphone and the virtual microphone, S v (s) represents the sensitivity function of the virtual microphone position, i.e., the human ear position, S p (s) represents the sensitivity function of the error microphone position; Δ(s)=G v (s)-G p (s)Q(s), The error microphone secondary channel transfer function G p (s), virtual microphone secondary channel transfer function G v Under the assumption that the transfer function Q(s) of the primary noise to the two positions is estimated accurately, the sensitivity function of the human ear position is obtained: The control strategy function J(X) is established at the human ear position as follows: Among them, S v (X) represents the sensitivity function of the virtual microphone position.
9. The noise reduction method of the active noise reduction device according to claim 8, characterized in that: The steps include: Based on the feedback design, a multi-channel feedback hybrid noise reduction design method for a feedforward controller matching the design of each feedforward microphone is given. The specific steps are as follows: Define x(t) to represent external noise, P(s) to represent the transfer function of external noise to the human ear, i.e., the virtual microphone position, R(s) to represent the transfer function of external noise to the feedforward microphone position; F(s) to represent the feedforward controller transfer function; u(t) to represent the feedforward control signal sent by the feedforward microphone acquisition signal via the feedforward controller; Let from u(t) to e v The transfer function of (t) is It is expressed as: Among them, e v (t) represents the residual noise at the virtual microphone position, G v (s) represents the secondary channel transfer function of the virtual microphone position, S p (s) represents the sensitivity function of the feedback system at the error microphone position; After the feedback system acts, the main channel transfer function of the external noise to the virtual microphone position is defined as It is expressed as: Among them, S v (s) is the sensitivity function of the feedback system at the virtual microphone position; At this time, the hybrid noise reduction is simplified to the form of feedforward noise reduction; adding feedforward control on the basis of feedback control is equivalent to simplifying the hybrid system into a feedforward noise reduction system, and the sensitivity function S f (s) is: The expression of the theoretical feedforward controller is as follows: For the hybrid noise reduction system, the sensitivity functions of feedforward and feedback are combined at the human ear position, and the feedback control sensitivity function and the feedforward sensitivity function are combined to obtain the hybrid noise reduction sensitivity function S at the human ear. h (s) is written as: When considering the external noise direction, the subscript i is used to indicate that the external noise comes from the i-th direction, then the hybrid noise reduction sensitivity function S corresponding to the i-th noise direction is h,i (s) becomes: Among them, P i (s) represents the transfer function of the external noise at position i to the virtual microphone position, S v,i (s) represents the sensitivity function of the feedback system corresponding to the external noise at the virtual microphone position with the direction i, R i (s) represents the transfer function of the external noise at position i to the feedforward microphone position; When there is noise in a total of I directions in space, the overall noise reduction performance function of the hybrid system is expressed as: In order to maximize the noise reduction performance of the hybrid system, the two parameter vectors of feedforward and feedback are combined into a hybrid parameter vector, and the control strategy function is written as J1(X): Among them, NR h,I (X) is the noise reduction performance function of the overall hybrid system in the case of a single feedforward controller with I-direction noise in space, γ3 represents the penalty factor, and w h1 (ω) is the weighted curve of hybrid noise reduction at different frequencies, w h2 (ω) is the noise lift limit of the hybrid system; For each feedforward microphone, a corresponding feedforward filter is used separately, that is, a multi-channel system, then the hybrid system sensitivity function S corresponding to the jth feedforward microphone at the i-th position is h,i,j (s) further becomes: Where J represents the number of feedforward microphones, R i,j (s) represents the transfer function of the i-th azimuth noise to the j-th feedforward microphone, F j (s) represents the feedforward controller corresponding to the jth feedforward microphone; When there is noise in a total of I directions in space, the overall noise reduction performance function of the multi-channel system hybrid system is expressed as: The hybrid control strategy function of the multi-channel system becomes J2(X): Among them, NR h,I,J (X) is the noise reduction performance function of the overall hybrid system with I directional noise in space under J feedforward controllers.
10. The noise reduction method of the active noise reduction device according to claim 1, characterized in that: The steps include: The active noise reduction device includes an active noise reduction headset, an earplug or a hearing aid.
