Audio Compensation with Cascade Biquad Filters for Feedback Active Noise Control Headphones

: In active noise control (ANC) headphones, the audio signal is modiﬁed together with the primary noise if a feedback controller is used. Although this problem can be alleviated with an FIR model of the secondary path, practical implementations are usually restricted by its computational complexity. In this paper, cascade biquad ﬁlters are used to compensate for the modiﬁcation of the audio system. Instead of using classical identiﬁcation methods with an IIR model, the audio compensation problem is ﬁxed through an optimization process. An objective function evaluating the comprehensive compensation performance is proposed, whose minimum value is obtained using the differential evolution (DE) algorithm. Simulations and experiments are carried out, whose results validate the effectiveness and efﬁciency of the proposed optimization method. The averaged compensation error can be reduced to about 0.5 dB with only two to ﬁve biquad ﬁlters.


Introduction
The environmental noise can greatly degrade the listening quality when enjoying music with headphones. Compared with increasing the music level to mask the annoying noise, designing noise-proof headphones generally offers a better way to overcome this problem. Although passive strategies are efficient to block noise at relatively high frequencies, residual low-frequency noise remains a problem with limited volumes and weights in real applications. Active noise control (ANC) [1,2] offers a solution to deal with such low-frequency residual noises, whose application in headphones has been investigated for decades. Both feedforward [3][4][5] and feedback [6][7][8] controllers can be considered to design an ANC headphone, whose effectiveness was confirmed. Compared with traditional adaptive algorithms, fixed controllers designed with cascade biquad filters [5,7,8] have much lower computational complexities. This generally indicates a lowered cost together with a lengthened battery life, which is crucial for commercial products. Meanwhile, the sampling frequency can also be enhanced, leading to a lowered latency with which the limitation on the control performance could be alleviated. To the best of the authors' knowledge, in recent years various commercial chips specially designed for headphones have integrated cascade biquad or IIR filters as the internal ANC controllers, which could lead to wide applications for ANC headphones.
Compared with a feedforward ANC controller [3][4][5], more attention should be paid to the audio system when using a feedback controller [6][7][8]. Since the error microphone can pick up the audio signal played by the speaker, the low-frequency components of the audio signal will also be attenuated together with the environmental noise [1]. This problem can be overcome by the usage of an FIR model of the secondary path [9,10], with which the audio signal component picked up by the error microphone can be estimated and then subtracted from the error signal. With a secondary path model without modeling errors, the audio signal component of the error signal would be totally neutralized and thus the audio

Identification of the Secondary Path with an IIR Model
Although the environmental noise can be efficiently attenuated by the feedback controller of an ANC headphone, the low-frequency components of the input audio signal would also be reduced at the same time. Figure 1a gives a solution to this problem, where a compensation filter H(z) is used and its output is subtracted from the error signal picked up by the error microphone. Generally, a model of the secondary path S(z) is used for H(z) [9][10][11][12][13], in which case the audio component of the error signal would be totally eliminated if the model is accurate enough. Since the input of the feedback controller C(z) is no longer related to the audio signal, the audio system of the headphone would not be altered when the ANC system is turned on. This can be directly observed from the following equation: where the transfer function between the audio input signal X(z) and the secondary path's input signal Y(z) is defined. Although FIR models of the secondary path are widely used in the literature on ANC, their realization for headphones might be a problem with ANC chips where only biquad or IIR filters are available. As a result, in such cases, an IIR model filter H(z) should be used instead where b i (i = 0, 1, …, M), a i (i = 1, 2, …, M) are the coefficients of the numerator polynomial B(z) and the denominator polynomial A(z), respectively, and M is the filter order. In order to obtain accurate estimations of these coefficients, a classical IIR identification method [2] is illustrated in Figure 1b, where v(n) is the stimulus and d(n) is the tested output of the target system. In the identification process, the output of the model filter is calculated with the following equation: and a so-called equation error is used to adjust the coefficients of B(z) and A(z) Since the input of the tapped delay line of A(z) is the exact desire signal d(n), only errors in the coefficients are responsible for the mean square value of e(n). Meanwhile, as the output of the IIR model is the sum of two independent FIR filter outputs, the equation error is a linear function with respect to the coefficients. Thus, the mean square error is a quadratic function with a single minimum. Although the LMS algorithm can be used here, its convergence rate might be reduced since d(n) is not white. Considering that the LMS algorithm would finally converge to the Wiener solution, the optimal coefficients could be directly calculated using the Wiener-Hopf equation so that the relatively long convergence of the LMS algorithm could be avoided.
With the definition of a combined input vector r(n) and the coefficient vector c the Wiener-Hopf equation can be expressed as where E[·] denotes the mathematical expectation. Although FIR models of the secondary path are widely used in the literature on ANC, their realization for headphones might be a problem with ANC chips where only biquad or IIR filters are available. As a result, in such cases, an IIR model filter H(z) should be used instead where b i (i = 0, 1, . . . , M), a i (i = 1, 2, . . . , M) are the coefficients of the numerator polynomial B(z) and the denominator polynomial A(z), respectively, and M is the filter order. In order to obtain accurate estimations of these coefficients, a classical IIR identification method [2] is illustrated in Figure 1b, where v(n) is the stimulus and d(n) is the tested output of the target system. In the identification process, the output of the model filter is calculated with the following equation: and a so-called equation error is used to adjust the coefficients of B(z) and A(z) Since the input of the tapped delay line of A(z) is the exact desire signal d(n), only errors in the coefficients are responsible for the mean square value of e(n). Meanwhile, as the output of the IIR model is the sum of two independent FIR filter outputs, the equation error is a linear function with respect to the coefficients. Thus, the mean square error is a quadratic function with a single minimum. Although the LMS algorithm can be used here, its convergence rate might be reduced since d(n) is not white. Considering that the LMS algorithm would finally converge to the Wiener solution, the optimal coefficients could be directly calculated using the Wiener-Hopf equation so that the relatively long convergence of the LMS algorithm could be avoided.
With the definition of a combined input vector r(n) and the coefficient vector c where E[·] denotes the mathematical expectation. Instead of using the LMS algorithm, the auto-correlation function of r(n), as well as the cross-correlation function between r(n) and d(n), are estimated first in this work. The coefficients a i , b i are then calculated using the Wiener-Hopf equation shown by (6). The identified M-order IIR model can finally be converted into a series of cascade biquad filters for real applications.

Compensation with Optimized Cascade Biquad Filters
Instead of identifying the secondary path with an IIR model, an optimization procedure for the compensation filter H(z) is proposed with cascade biquad filters in this paper. Three prototypes of the biquad filter [18] are used here, whose transfer functions are shown as follows: The parameters in (7)-(9) are defined as follows with a sampling frequency f s : With the definitions in (10), the magnitude response for H 0 (z) is enhanced by g dB at f Hz, while the one for H 1 (z) is enhanced by g dB below f Hz. Thus, H 0 (z) and H 1 (z) can be regarded as the peak/notch and low/high shelf filters with g > 0 or g < 0, respectively. It can be observed that H 0 (z) and H 1 (z) are both minimum phase filters and are identical to the ones used in the controller design for feedforward [5] and feedback [8] ANC headphones. Since the secondary path is not a minimum phase system, apparently only using the first two prototypes might not be enough for the audio compensation. Thus, a third prototype is added to this paper. In (7), H 2 (z) is a non-minimum phase lowpass filter with a cutoff frequency of f Hz. It can be found that the parameter A and g is absent for this lowpass filter. For all three prototypes, Q is the quality factor. The frequency responses around f Hz vary with different values of Q.
The compensation filter H(z) is cascaded with N prototype filters H(z) = 10 Gain/20 where Gain is an extra gain for H(z). Consequently, the transfer function of H(z) is determined by the following parameter vector: where g i , f i , Q i are the parameters defined in (10) corresponding to the i-th biquad filter H i (z). Different from the methodologies when designing ANC controllers [5,8], the prototype of the i-th filter H i (z) is also defined as a parameter tp i in this paper with which the frequency response of H(z) could be more flexible. In order to optimize the compensation filter H(z), an objective function is proposed as follows: In the first term on the right-hand side of (14), the absolute value of G eq (z) with dB as its unit is used to evaluate the performance of the audio compensation, which indicates that the compensated audio signal should have the same amplitude as the original one. A weighted sum of this value over different frequencies f k is used to evaluate the performance within the whole frequency band (20, 20 k) Hz for audio systems, where w k is the weighting coefficient corresponding to f k . From (1) it could be seen that, in order to calculate G eq (z), the frequency responses of the secondary path S(z) and the feedback controller C(z) should be known as a priori, which indicates H(z) should be optimized after S(z) is tested and C(z) is designed.
The second term on the right-hand side of (14) is a punishment term where U(x) is the unit step function and sum(x) denotes the summation over the vector x. This term represents the constraint on the bounds of the parameter vector θ, and lb, ub are the pre-defined lower and upper bounds of θ, respectively. By choosing a proper punishment intensity ξ, a large value would be injected into the objective function if one or more parameters in θ exceed the pre-defined bounds. As a result, θ would be restricted within [lb, ub] when trying to minimize Obj. With definitions of (7)- (15), an optimization problem can be proposed as: which tries to find the optimum audio compensation performance directly and is rather different from acquiring an accurate IIR model. Since the objective function is rather complex with respect to θ, the DE algorithm [16,17] is used to solve the proposed optimization problem, which is arguably one of the most powerful stochastic real-parameter optimizers in current use [16]. The DE algorithm has the advantages of simple and straightforward implementations, low space complexity, as well as competitive optimization ability compared with other optimizers [17]. Although some strong algorithms were able to beat DE in some competitions, the simple implementation, as well as the overall performance of DE (in terms of accuracy, convergence speed, and robustness), still make it attractive for solving the optimization problem described in this paper. The efficiency of the DE algorithm has already been confirmed through the controller optimizations for both feedforward [5] and feedback [8] ANC headphones. There are only three controlling parameters within the DE algorithm, which are the crossover rate Cr, the stepsize F and the population members NP, respectively. It is recommended that the optimization process with DE should be repeated multiple times since the algorithm could still be trapped in local minimums. It is further noted that other algorithms could also be considered to solve the proposed optimization problem, such as Quantum-behaved Particle Swarm Optimization (QPSO) [19] or Grey Wolf Optimizer (GWO) [20]. A detailed comparison for different optimizers can be found in [20], which shows that the DE algorithm could still be considered to be quite competitive.

Results
In this section, experiments are carried out to evaluate the presented methods. Figure 2a,b show the experimental setup, where a self-designed dummy head is used together with a commercial feedback ANC headphone. The feedback microphone and the speaker of the ANC headphone are wired to an outside controller with an ADAU1772 chip as its processor, as shown in Figure 2b. Both the feedback controller C(z) and the compensation filter H(z) are implemented inside this processor, within which the sampling frequency is set to 192 kHz. For the feedback controller, a previous design result in [8] is used here, with which the primary noise could be effectively attenuated. However, the response of the audio system, which is the system between the audio input signal and the output signal of the feedback microphone, will also be altered by this feedback controller. In the experimental system, an external device is used to test the frequency response of the audio system with white noise as the stimulus, as shown in Figure 2b. Figure 2c compares the magnitude responses of the audio system before and after the feedback controller is turned on. It can be seen that, without audio compensation (H(z) = 0), the low-frequency components of the audio signal are attenuated just as the primary noise, while some high-frequency components would be enhanced because of the waterbed effect [1]. The difference between these two responses is given as the yellow line in Figure 2c at the same time, which is also the magnitude response of G eq (z) without audio compensation. Meanwhile, it is further noted that this curve is theoretically identical to the noise reduction performance of the feedback controller with respect to the primary noise.
of the ANC headphone are wired to an outside controller with an ADAU1 processor, as shown in Figure 2b. Both the feedback controller C(z) and the filter H(z) are implemented inside this processor, within which the samplin set to 192 kHz. For the feedback controller, a previous design result in [8 with which the primary noise could be effectively attenuated. However, t the audio system, which is the system between the audio input signal and nal of the feedback microphone, will also be altered by this feedback co experimental system, an external device is used to test the frequency respon system with white noise as the stimulus, as shown in Figure 2b. Figure 2 magnitude responses of the audio system before and after the feedbac turned on. It can be seen that, without audio compensation (H(z) = 0), the components of the audio signal are attenuated just as the primary noise, wh frequency components would be enhanced because of the waterbed effect ence between these two responses is given as the yellow line in Figure 2c at which is also the magnitude response of G eq (z) without audio compensatio it is further noted that this curve is theoretically identical to the noise red mance of the feedback controller with respect to the primary noise.  In order to get rid of the influence caused by the feedback controller, the conventional method with an FIR model of the secondary path is first evaluated. Using the recorded input (white noise) and output of the secondary path, a full-length FIR model (filter order M = 1000) is obtained with the LMS algorithm, whose result is shown in Figure 3a. Since the computational complexity is rather high, different truncations of this FIR model (i.e., just taking the first M coefficients of the full-length model) are used for the audio compensation, whose results are illustrated in Figure 3b-e. Figure 3b,c compare the magnitude and phase responses of the truncated FIR models with the original responses of the secondary path. It can be seen that the modeling accuracy increases as M becomes higher. The modeling errors mainly appear within the low-frequency band, which results from the relatively low-frequency resolution of the truncated FIR models. With these truncated FIR models, the audio compensation performance is further shown in Figure 3d, where the magnitude responses of the audio system are illustrated. This compensated response should be close to the original secondary path S(z) as much as possible so that the audio system would not be affected by the feedback control system. In fact, the compensated audio response would be identical to the original S(z) if an accurate model is used as the compensation filter. However, there would still be some compensation errors because of the inevitable modeling errors. It can be seen that, although the audio system is less affected by the feedback control system compared with Figure 2c, the audio responses still mismatch with the original one at low frequencies, which is a natural result of the relatively large modeling errors within this frequency range. Figure 3e shows the magnitude response of G eq (z), which can be regarded as compensation errors. It can be observed that large compensation errors mainly appear at low frequencies, which would decrease as the filter order M becomes higher. A good compensation performance can be obtained when M reaches 400.
Next, the secondary path is identified with IIR models using the method presented in Section 2.1. In order to enhance the modeling accuracy within the low-frequency band where the degradation of the audio system is significant, pink noise is used as the stimulus for the identification process. With the recorded input and output signals of the secondary path, the auto-correlation and cross-correlation functions are estimated first. Then, IIR models with different orders M can be obtained by solving the Wiener-Hopf equation shown in (6). It is noted that this M-order IIR model could be realized by N = M/2 cascade biquad filters in applications. Figure 4a,b show the magnitude and phase responses of the obtained IIR models, respectively, which are compared with the original response of the secondary path S(z). It can be found that the modeling accuracy increases when the filter order becomes higher. With these IIR models, the compensation performance for the audio system can be calculated, whose results are shown in Figure 4c,d. Figure 4c gives the compensated magnitude responses of the audio system with feedback control. Compared with Figure 3c, it can be observed that the compensation performance at low frequencies is enhanced but relatively large mismatches still appear around 1 kHz. Figure 4d illustrates the corresponding compensation errors. It can be observed that the compensation errors could be restricted within ±3.5 dB with a 4th-order IIR model. With more accurate models, however, the compensation errors show greater peak values at about 1 kHz. This indicates that the modeling errors have different influences on the compensation performance at different frequencies, which is not considered in the identification process. When the IIR filter order becomes relatively large, the compensation errors can be reduced to a low level, since an IIR model with enough accuracy could be obtained in this case.
tively large modeling errors within this frequency range. Figure 3e shows the magni response of G eq (z), which can be regarded as compensation errors. It can be observed large compensation errors mainly appear at low frequencies, which would decrease a filter order M becomes higher. A good compensation performance can be obtained w M reaches 400.  Next, the secondary path is identified with IIR models using the method prese in Section 2.1. In order to enhance the modeling accuracy within the low-frequency b where the degradation of the audio system is significant, pink noise is used as the stim for the identification process. With the recorded input and output signals of the secon path, the auto-correlation and cross-correlation functions are estimated first. Then models with different orders M can be obtained by solving the Wiener-Hopf equa errors could be restricted within ±3.5 dB with a 4th-order IIR model. With more accurate models, however, the compensation errors show greater peak values at about 1 kHz. This indicates that the modeling errors have different influences on the compensation performance at different frequencies, which is not considered in the identification process. When the IIR filter order becomes relatively large, the compensation errors can be reduced to a low level, since an IIR model with enough accuracy could be obtained in this case.  The averaged absolute values of the compensation errors are further calculated for both FIR and IIR models, whose results are shown in Figure 5. It can be observed from Figure 5a that generally, the averaged error decreases as the order increases for both cases. For the truncated FIR models, a good performance could be expected with M greater than 300. For the IIR models, in order for a good compensation performance, more than 30 biquad filters (M > 60) should be used. The compensation performance is further compared with respect to the computational complexity in Figure 5b. The required number of multiplications is evaluated here since it is generally more time-consuming than additions. For an M-order FIR filter, M multiplications are needed. For an M-order IIR filter, which is realized with N = M/2 cascade biquad filters, the number of multiplications is 2.5 M since each biquad filter needs five multiplications. It can be observed from Figure 5b that, with similar performance, the The averaged absolute values of the compensation errors are further calculated for both FIR and IIR models, whose results are shown in Figure 5. It can be observed from Figure 5a that generally, the averaged error decreases as the order increases for both cases. For the truncated FIR models, a good performance could be expected with M greater than 300. For the IIR models, in order for a good compensation performance, more than 30 biquad filters (M > 60) should be used.  The averaged absolute values of the compensation errors are further calculated for both FIR and IIR models, whose results are shown in Figure 5. It can be observed from Figure 5a that generally, the averaged error decreases as the order increases for both cases. For the truncated FIR models, a good performance could be expected with M greater than 300. For the IIR models, in order for a good compensation performance, more than 30 biquad filters (M > 60) should be used. The compensation performance is further compared with respect to the computational complexity in Figure 5b. The required number of multiplications is evaluated here since it is generally more time-consuming than additions. For an M-order FIR filter, M multiplications are needed. For an M-order IIR filter, which is realized with N = M/2 cascade biquad filters, the number of multiplications is 2.5 M since each biquad filter needs five multiplications. It can be observed from Figure 5b that, with similar performance, the The compensation performance is further compared with respect to the computational complexity in Figure 5b. The required number of multiplications is evaluated here since it is generally more time-consuming than additions. For an M-order FIR filter, M multiplications are needed. For an M-order IIR filter, which is realized with N = M/2 cascade biquad filters, the number of multiplications is 2.5 M since each biquad filter needs five multiplications. It can be observed from Figure 5b that, with similar performance, the computational complexity is larger if truncated FIR models are used. Although the computational complexity is relatively low for IIR models, the required number of biquad filters still seems too large to be realized by a low-cost ANC processor such as ADAU1772, considering that an effective feedback controller can be constructed with only three to five biquad filters [7,8].
In order for a good compensation performance with fewer biquad filters, the optimization problem proposed in Section 2.2 is solved using the DE algorithm with respect to different numbers of biquad filters. In the objective function, G eq (z) is evaluated at 300 discrete frequencies f k , which are chosen logarithmically from 20 Hz to 20 kHz. All the weighting coefficients w k are set to 1, which addresses the same significance to the compensation performance over the whole audio frequency band. The searching intervals for tp i , g i , f i , Q i and Gain are bounded within [0, 3], [−40, 40] dB, [20, 20k] Hz, [0.1, 3.0] and [−40, 40] dB, respectively. The punishment intensity ξ is set to 10,000. In the DE algorithm, Cr, F, and NP are set to 1, 0.85, and 100, respectively. For each case of N, 100 times repeat of the DE algorithm is conducted to avoid local minimums. In every single run, the DE algorithm stops searching after 20,000 iterations. For each case of N, the learning curve of the DE algorithm corresponding to the optimal solution is shown in Figure 6. It can be seen that the DE algorithm would converge to a lower value of the objective function if N becomes higher. Although the algorithm does not appear to be fully converged for the case of N = 6, a better solution could still be found. The obtained results are listed in Table 1. It can be found that lowpass filters seem to be necessary for each case of N, while peak/notch or shelf filters are optional. The reason might lie in the non-minimum phase response of H 2 (z), which is similar to the secondary path. It can also be seen that the combinations of filter types are different from case to case. It is for this reason that the filter types are designed to be variables in the proposed optimization method. Moreover, this optimization strategy with variable filter types could also be considered for the design of feedforward [5] and feedback [8] controllers. ocesses 2022, 10,730 discrete frequencies f k , which are chosen logarithmically from 20 Hz to weighting coefficients w k are set to 1, which addresses the same signific pensation performance over the whole audio frequency band. The search tp i , g i , f i , Q i and Gain are bounded within [0, 3], [−40, 40] dB, [20, 20k] H [−40, 40] dB, respectively. The punishment intensity ξ is set to 10,000. In t Cr, F, and NP are set to 1, 0.85, and 100, respectively. For each case of N, of the DE algorithm is conducted to avoid local minimums. In every si algorithm stops searching after 20,000 iterations. For each case of N, the the DE algorithm corresponding to the optimal solution is shown in Fi seen that the DE algorithm would converge to a lower value of the objec becomes higher. Although the algorithm does not appear to be fully c case of N = 6, a better solution could still be found. The obtained results a 1. It can be found that lowpass filters seem to be necessary for each peak/notch or shelf filters are optional. The reason might lie in the nonresponse of H 2 (z), which is similar to the secondary path. It can also be se binations of filter types are different from case to case. It is for this reas types are designed to be variables in the proposed optimization method optimization strategy with variable filter types could also be considered feedforward [5] and feedback [8] controllers.     It can be observed that the compensation filter still tries to model the secondary path, especially within the frequency band below about 3 kHz. Within this frequency range, the control performance of the feedback controller could be considered to be obvious. Compared with Figure 4, it can be observed that the modeling accuracy here is much higher within this frequency range, which results in better compensation performances, as shown in Figure 7c,d. With fewer biquad filters (N = 2, 3, 4), H(z) is essentially a low-pass filter and the audio components are attenuated above 3 kHz. If N increases to 5 and 6, however, H(z) has extra abilities to model the peak response within (5, 10) kHz of the secondary path. As a result, a better compensation performance within this frequency range could be obtained. It can be seen from Figure 7c that, with the optimized compensation biquad filters, the audio responses with feedback control are in high accordance with the original secondary path S(z), which indicates the influence of the feedback controller on the audio system was successfully depressed.
Similar to the case with FIR and IIR models, the averaged compensation errors are calculated and compared in Figure 5. It can be found that with the same number of biquad filters, the proposed optimization method behaves much better than using an identified IIR model. Meanwhile, an averaged error of about 0.5 dB can be obtained with only two to five biquad filters. The corresponding computational complexity is the lowest compared with the other two methods if a similar performance is assumed to be achieved, which is beneficial for real applications. Although using more biquad filters can lead to better performance, the DE algorithm might have more difficulties in finding the global minimum when N is greater than 6, as indicated in Figure 6. On the other hand, by comparing the performance with the 1000-order FIR model in Figure 5, it can be expected that, when N > 6, the performance would not be enhanced obviously even if the global optimum solutions were found. Consequently, two to five biquad filters are suggested based on the results obtained in this paper, which are proven to be adequate to achieve good performance for the audio compensation. ter compensation performances, as shown in Figure 7c,d. With fewer biquad filters 2, 3, 4), H(z) is essentially a low-pass filter and the audio components are attenuated a 3 kHz. If N increases to 5 and 6, however, H(z) has extra abilities to model the pea sponse within (5, 10) kHz of the secondary path. As a result, a better compensation formance within this frequency range could be obtained. It can be seen from Figur that, with the optimized compensation biquad filters, the audio responses with feed control are in high accordance with the original secondary path S(z), which indicate influence of the feedback controller on the audio system was successfully depressed.  Finally, the coefficients of the designed compensation filters are downloaded into ADAU1772, and the responses of the audio system after compensation are tested as illustrated in Figure 2b, whose results are shown in Figure 8a. Figure 8b shows the corresponding compensation errors with respect to the original response of the secondary path. It can be found that the experiment results match the simulation results very well, although relatively large errors appear at about 12 kHz, which mainly result from the drift of the corresponding notch frequency of the secondary path response. trated in Figure 2b, whose results are shown in Figure 8a. Figure 8b shows the corresp ing compensation errors with respect to the original response of the secondary path. I be found that the experiment results match the simulation results very well, although atively large errors appear at about 12 kHz, which mainly result from the drift of the responding notch frequency of the secondary path response.

Conclusions
For ANC headphones, the response of the audio system will be modified by the f back controller, which could generally be resolved by the usage of an FIR model o secondary path. Compared with FIR filters, cascade biquad filters have the advantag low computational complexity and can greatly ease practical implementations. Howe how to compensate for the modified audio system with such IIR filters remains a prob Although the classical identification method with an IIR model of the secondary path be considered, it was found that a relatively high number of biquad filters are neede provide a model with enough accuracy so that a good compensation performance o audio system can be expected.
Instead of identifying the secondary path, an optimization process is proposed the compensation filter in this paper. The biquad filters are parameterized into three totypes and an objective function is developed to evaluate the comprehensive compe tion performance. An optimization problem is then proposed and the DE algorith

Conclusions
For ANC headphones, the response of the audio system will be modified by the feedback controller, which could generally be resolved by the usage of an FIR model of the secondary path. Compared with FIR filters, cascade biquad filters have the advantage of low computational complexity and can greatly ease practical implementations. However, how to compensate for the modified audio system with such IIR filters remains a problem. Although the classical identification method with an IIR model of the secondary path can be considered, it was found that a relatively high number of biquad filters are needed to provide a model with enough accuracy so that a good compensation performance of the audio system can be expected.
Instead of identifying the secondary path, an optimization process is proposed for the compensation filter in this paper. The biquad filters are parameterized into three prototypes and an objective function is developed to evaluate the comprehensive compensation performance. An optimization problem is then proposed and the DE algorithm is used to find its optimal solution. Both the filter prototypes and their parameters are automatically optimized in the proposed method. Simulations and experiments are carried out to validate the proposed method. The results have shown that the designed compensation filter also tries to model the secondary path but with higher accuracy in the frequency range where the response of the audio system is biased more obviously. With the proposed optimization process, a good compensation performance can be obtained with only two to five biquad filters, in which case the averaged compensation error can be reduced to about 0.5 dB.

Data Availability Statement:
The data presented in this study are available on request from the corresponding author.