METHOD, DEVICE, HEADPHONES AND COMPUTER PROGRAM FOR ACTIVELY SUPPRESSING INTERFERING NOISE

20230154449 · 2023-05-18

    Inventors

    Cpc classification

    International classification

    Abstract

    In the method according to the invention for active noise suppression, a transfer function for a secondary path between a loudspeaker and an error microphone is measured (20). Based on the measured transfer function for the secondary path, a transfer function for a primary path between a reference microphone and the error microphone is estimated (21). Based on the estimated transfer function for the primary path, filter coefficients for filtering to generate the cancellation signal are then determined (22).

    Claims

    1. Method for active noise cancellation, comprising measuring a transfer function for a secondary path between a loudspeaker and an error microphone; estimating a transfer function for a primary path between a reference microphone and the error microphone based on the measured transfer function for the secondary path; and determining filter coefficients for filtering to generate a cancellation signal based on the estimated transfer function for the primary path.

    2. The method of claim 1, wherein at least one reference microphone detects noise signals, a loudspeaker emits a cancellation signal and an error microphone detects the remaining residual signal after the cancellation signal has been superimposed with the background noise signal.

    3. The method according to claim 2, wherein the active noise cancellation is performed during reproduction of a useful audio signal by means of headphones, and one or more reference microphones are located on the outside of the headphones and the error microphone is located on the inside of the headphones.

    4. The method according to claim 1, wherein the transfer function for the secondary path is measured individually for a user; an individual transfer function for the primary path is estimated based on the individually measured transfer function for the secondary path for the user.

    5. The method according to claim 1, wherein the filtering is performed by means of a forward FIR filter or IIR filter.

    6. The method according to claim 3, wherein an estimator for the primary path is determined by measuring and analyzing both the transfer function for the secondary path and the transfer function for the primary path in advance in a training process for different people and/or fits of the headphones.

    7. The method of claim 6, wherein for measured values in frequency ranges of the transfer functions, where deterministic changes are present for the primary path and the secondary path, a principal component analysis is performed with subsequent dimension reduction of the measured values obtained in the training process; based on principal components and mean values determined by the principal component analysis, complex gain vectors are determined for the primary paths and the secondary paths; and a linear mapping that minimizes the error between the determined and the estimated gain vectors of the primary paths is determined.

    8. Device for active noise cancellation, comprising at least one reference microphone; a loudspeaker; an error microphone; a digital filter for generating a cancellation signal; a digital signal processor which is arranged to generate a measurement signal which can be output via the loudspeaker and to evaluate a signal detected by the error microphone in order to measure a transfer function for a secondary path between the loudspeaker and the error microphone; estimate a transfer function for a primary path between the reference microphone and the error microphone based on the measured transfer function for the secondary path; and adapt filter coefficients for the digital filter based on the estimated transfer function for the primary path.

    9. The device according to claim 8, wherein the digital filter is designed as a forward-directed FIR filter or IIR filter.

    10. Headphones adapted to perform a method according to claim 1.

    11. A computer program comprising instructions which cause a computer to perform the steps of a method according to claim 1.

    Description

    [0030] Further features of the present invention will become apparent from the following description and claims in conjunction with the figures.

    [0031] FIG. 1 schematically shows an in-ear headphone with an acoustic primary and secondary path;

    [0032] FIG. 2 shows a flow chart of the method according to the invention for active noise cancellation;

    [0033] FIG. 3 shows a block diagram of a headphone according to the invention;

    [0034] FIG. 4 shows spectra of measured primary paths (a) and secondary paths (b);

    [0035] FIG. 5 shows a) measured spectra based on the individual secondary paths and the average primary path and b) measured spectra of the active transfer function from the reference microphone to the error microphone based on the individual secondary paths and the respective estimated primary path;

    [0036] FIG. 6 shows the median of the primary path |P(z)|and the spectrum |H(z)| for different primary path estimates;

    [0037] FIG. 7 shows a box graph for the energy ratio for different primary path estimates; and

    [0038] FIG. 8 schematically shows the use of a headset in connection with an external computing device.

    [0039] For a better understanding of the principles of the present invention, embodiments of the invention are explained in more detail below with reference to the figures. It goes without saying that the invention is not limited to these embodiments and that the features described can also be combined or modified without departing from the protective scope of the invention as defined in the claims.

    [0040] The method according to the invention can be used in particular for active noise cancellation in in-ear headphones, as shown schematically in FIG. 1. The in-ear headphones 10 are in this case located at the ear of a user, with an ear insert 14 of the in-ear headphones being inserted in the external auditory canal 15 in order to hold them in place. Depending on the individual fit in the auditory canal, the ear insert can already partially shield external noise, so that this noise only reaches the user’s eardrum 16 at a reduced level.

    [0041] A noise signal x(t) arriving at the headphones from the environment is detected with a reference microphone 11 directed away from the auditory canal. Furthermore, the in-ear headphones 10 have an error microphone 12 which is directed towards the auditory canal 15 and a loudspeaker 13 located near the error microphone 12. A cancellation signal ŷ(t) can be output by means of the loudspeaker 13. The error microphone 12 detects the remaining residual signal e(t) after superposition of the cancellation signal ŷ(t) with the noise signal x(t) . The primary acoustic path P.sub.a(s) describes the transfer function from the reference microphone 11 to error microphone 12 ,while the secondary acoustic path S.sub.a(s) describes the transfer function from loudspeaker 13 to error microphone 12. The in-ear headphones shown have only one reference microphone, but multiple reference microphones can also be used, each with is a separate primary path.

    [0042] FIG. 2 schematically shows the basic concept for a method for active noise cancellation, as can be carried out, for example, with such in-ear headphones . In a first step 20, a transfer function for a secondary path between the loudspeaker and the error microphone is measured. In a subsequent step 21, a transfer function for a primary path between the reference microphone and the error microphone is then estimated based on the measured transfer function for the secondary path. For this purpose, the relationships between the primary path and the secondary path in the present headphones, which are determined in a training phase that will be described below, are used. In a further step 22, the estimated transfer function then makes it possible to determine filter coefficients for a filter for generating the cancellation signal. In this way, the filter can then be adapted in such a way that the cancellation signal that is output enables the best possible compensation for the interference signal. After the filter coefficients have been determined by measuring the secondary path and the subsequent estimation of the primary path, the filter can then be used unchanged until further notice in order to prevent or at least reduce the user’s perception from being impaired by background noise when a useful audio signal is played back using the in-ear headphones. Likewise, the background noise suppression can be perceived as more pleasant by the user even without the playback of a useful audio signal, for example when traveling by train or plane and the volume level is reduced as a result

    [0043] FIG. 3 shows a block diagram of a device according to the invention, whereby the analog unit 30 with the hardware components from FIG. 1 is extended by an electronic backend, which is connected via analog-to-digital converters 31, 32 to the microphones 11, 12 and the digital-to-analog converter 33 to the loudspeaker 13. The electronic backend includes a digital filter unit 34 and a processor unit 35.

    [0044] The invention can be fully integrated into an ANC headphone or can also be a partial component of an external device, such as a smartphone. For example, the processor unit 35 may be part of such an external device.

    [0045] The processor unit 35 has one or more digital signal processors, but may also include other types of processors or combinations thereof. The digital filter 34 is designed as a time-invariant FIR forward filter Ŵ(z), which receives the digitally converted interference signal x(n) and generates the cancellation signal ŷ(n). Likewise, the digital filter 34 can also be designed as an IIR filter, usually as a biquad filter. The digital signal processor 35 generates a measurement signal m(n) and evaluates the digitized error signal e(n) in order to measure the secondary path. Furthermore, the filter coefficients of the digital filter Ŵ(z) are adjusted by the digital signal processor. For this purpose, instructions are stored in a memory not shown, which is preferably integrated in the processor unit, which, when executed by the processor unit, cause the device to carry out the steps according to the method according to the invention.

    [0046] The overall transfer function H(s) describes the transfer function from the reference microphone 11 to the error microphone 12 and, in contrast to the primary path, includes the influence of the ANC system. The primary path P(z) and the secondary path S(z) contain the influence of the analog to digital converters and the digital to analog converter, the loudspeaker and the microphones.

    [0047] The overall transmission path is then defined as

    [00001]Hz=PzW^zSz.

    [0048] Here, s and z designate the complex frequency parameters of the Laplace and z-transform, respectively, and n designates a discrete time index.

    [0049] In the following, it will first be derived how the filter quotients for the FIR forward filter Ŵ (z) can be chosen based on the individually measured secondary path. An estimator for the primary path is then presented, which is trained based on a series of previously measured primary and secondary paths. After the training phase, measured values of an individual secondary path can then be supplied to this estimator in order to estimate the individual primary path.

    [0050] Let

    [00002]T=pj,sjL|j=1,...,J

    be the set of measured impulse responses of length L. The optimal FIR forward filter ŵ minimizes the average of the total transmission path energy, as defined by the following cost function:

    [00003]Cw=.Math.jTpj0sjw2

    with the zero-extended primary path vector

    [00004]pj0

    and convolution matrix s.sub.j for the secondary path.

    [0051] The optimal FIR forward filter ŵ in terms of the average is given by

    [00005]w^=argminwCw=.Math.jTsjTsj1.Math.iTsiTpi0

    [0052] In order to optimize the FIR forward filter ŵ individually, however, precise knowledge of the respective primary and secondary path is required.

    [0053] As previously mentioned, the individual secondary path can be measured using the loudspeaker and the headphone’s internally located error microphone . If then the individual secondary paths for all s.sub.j are substituted in the above formula and the average of the primary paths in

    [00006]T,

    i.e.

    [00007]p¯=1J.Math.jTpj

    is used as an estimate for p, then the optimal filter for a given individual secondary pathis obtained:

    [00008]w^avg=sTs1sTp¯0

    [0054] Since both the primary path and the secondary path depend on the fit of the headset and the physiology of the user’s ear, this correlation can be used to employ an estimator for an individual primary path based on the characteristics of a measured individual secondary path. For this purpose, the frequency ranges of the transfer functions that are affected by deterministic changes are extracted with window functions Q .sub.p (z) and Q .sub.s (z) in the z domain.

    [0055] A principal component analysis (PCA ) is used to extract the first K.sub.p, K.sub.s principal components U.sub.p,k, U.sub.s,k ∈ ℂ.sup.L, and the means of a set of windowed complex frequency domain vectors of the primary path and secondary path are extracted from the set T.

    [0056] The complex gain vectors g.sub.p,jandg.sub.s,j minimize the Euclidean distance between the reconstructed frequency domain vectors based on the principal components and the frequency domain vectors of the primary path and secondary path. A linear mapping α̂ ∈ ℂ.sup.Kp×Ks is then used, which projects the gain vectors g.sub.p,j of the primary path to the gain vectors of the secondary pathg.sub.s,j.

    [0057] After the individual secondary path has been measured, the window function Q.sub.s(z) is applied in the z-domain to the measured secondary path and then the gain vector g.sub.s,j for the secondary path is calculated using the principal components and the mean value of the secondary path. Then, the amplification vector g.sub.p,j for the primary path is estimated using the linear mapping â, followed by an estimate of the primary path based on the principal components as well as the mean of the primary path and the estimated gain vector g.sub.p,j for the primary path. Finally, replacing p̅ with the estimate of the single primary path gives the individual forward filter.

    [0058] The effectiveness of the proposed estimator was checked with simulations, the results of which are presented below. For this purpose, measurements were carried out for 25 subjects and different fits on in-ear headphones, using a sampling rate of 48 kHz. The set M of measured primary and secondary paths includes a total of J=173 pairs of impulse responses.

    [0059] FIG. 4 shows the spectra of the measured primary paths (a) and secondary paths (b). The shaded frequency range 40 indicates the range of the selected frequency range window. The length of the primary path and secondary path was chosen to be L =1024, the length of the forward filter is L.sub.w = 64. The set of measured primary and secondary paths was randomly split into two subsets, with a training set containing 80% and a validation set containing the other 20% of the set of measured paths. The training set was used to train the estimator as described above. Furthermore, for the number of principal components K.sub.p = 1 and K.sub.s = 3 were chosen. The estimator’s performance was then validated by testing the overall transfer path

    [00009]hj=pj0sjw^,

    wherein the measurement was repeated100 times for randomly divided subsets.

    [0060] FIG. 5 shows the measured magnitude spectra |H(z)|, the filter design being based in a) on the individual secondary paths and the average primary path and in b) on the individual secondary paths and the respective estimated primary path. Here, in addition to the median 50, the 50% percentile 52 and the 90% percentile 53 of |H(z)| also the median 51 of the primary path|P(z) | is given to indicate the passive attenuation of the headphones.

    [0061] FIG. 6 shows the median of the primary path |P(z)|and the spectrum |H(z)| for different primary path estimates. Here, H.sub.avg(z) is based on the mean of the primary paths of the training set, H.sub.est(z) is based on a primary path estimate, same as H.sub.ppg(z) but using a perfect PCA gain vector (PPG) g.sub.p instead of its estimate, and finally H.sub.opt(z) is based on the actual primary path. The shaded area 60 in which |Q.sub.p(z)| > 0 applies, marks the frequency range in which H(z) is influenced by the primary path estimator. From the figure it can be seen that the median of the spectrum |H(z)| is reduced between 250 Hz and 2.5 kHz by up to 7 dB and approaches the median based on the individual primary path.

    [0062] The box plot in FIG. 7 accordingly shows the energy ratio in dB for the various primary path estimates from FIG. 6 (a) mean value, b) estimate, c) estimate with PPG, d) optimum when the actual primary path is known). Here the energy ratio ε of the windowed total transmission path and the primary path using Q.sub.p(z) is defined as

    [00010]ε=Hq,jz2dzPq,jz2dz

    [0063] For the various primary path estimates, the median as well as the minimum, the so-called lower whisker, and the maximum, the so-called upper whisker, are shown as horizontal lines and the lower quartile and upper quartile as a rectangle surrounding the median.

    [0064] As can be seen from the figure, the energy ratio ε is reduced compared to using the mean value (a) when using the estimator (b) of the median by 3.1 dB, while the difference between the maximum values, the so-called upper whiskers, is 5.0 dB.

    [0065] FIG. 8 schematically shows the use of a headphone 10, such as a so-called hearable, in connection with an external computer device 80. The external computer device 80 can in particular be a mobile terminal device that is suitable for audio playback. For example, a smartphone, a so-called wearable such as a smartwatch, a fitness bracelet or data glasses, or a computer tablet can be connected to the headphones.

    [0066] The devices communicate wirelessly via a radio link such as Bluetooth. After the connection has been established, audio signals can be transmitted from the external computing device 80 to the headphones 10 and then played back in a conventional manner using one or more loudspeakers integrated in the headphones.

    [0067] In addition, the active noise cancellation according to the invention can also be carried out by means of the external computer device 80. For this purpose, the external computer device 80 can, in particular when a user is using the headphones 10 for the first time, transmit a measurement signal to the headphones, which is then output by a loudspeaker integrated in the headphones. An error microphone integrated in the headphones 10 then detects the error signal, which is transmitted to the external computing device 80 . Based on this, the external computing device 80 calculates the secondary path, estimates the primary path and then determines the filter coefficients for the filter for generating the cancellation signal. The filter coefficients are then sent via the wireless connection from the external computer device 80 to the headphones 10, in which the filter is adjusted accordingly, so that background noise is largely suppressed when the audio signals are played back.

    [0068] The invention can be used for active noise cancellation in any field of audio reproduction technology.