The present invention relates generally to hearing aid circuits, and more particularly but not by limitation to hearing aid circuits that correct feedback.
In hearing aid circuits, there is a problem with sound coupling along external feedback paths through the air. The external feedback generates annoying whistles and audio distortion. The external auditory canal, for example, is not sealed by the hearing aid. There is an external feedback path that couples sound produced by a hearing aid receiver through the auditory canal to a hearing aid microphone.
In some hearing aid designs, a portion of the hearing aid is positioned in the ear canal and includes a vent that contributes to the gain of the external feedback path. In other hearing aid designs, the sound from the receiver couples via a narrow tube into the auditory canal, and there is a feedback path in the space around the narrow tube. Frequently, jaw motion can change the shape of the ear canal, opening up additional air paths that can contribute to the gain of the external feedback path. When a sound reflecting object such as a telephone earpiece is brought near the hearing aid, sound reflections can also contribute to feedback path gain. The characteristics of the external feedback path are variable and real time correction is desired. Various feedback cancellation circuits are known, as shown in
A hearing aid circuit is needed that can distinguish feedback from environmental sounds, and that can improve cancellation of feedback without unduly distorting environmental sounds.
Disclosed is a hearing aid circuit that provides amplification along a feedforward path in an environment subject to external audio feedback path. The hearing aid circuit comprises a phase shifter that introduced a phase shift along the forward path as a function of correlation at a feedforward path input.
The hearing aid circuit comprises a phase measurement circuit that measures a phase shift at the feedforward path input. The phase measurement circuit provides a phase measurement output.
The hearing aid circuit comprises an internal feedback processor that receives the phase measurement output. The internal feedback processor adjusts internal feedback as a function of the phase measurement to suppress coupling of the external audio feedback along the feedforward path.
Hearing aid feedback is a widespread problem with hearing aids and is a source of annoyance to the user and to near-by individuals. The problem comes from the fact that there is a positive feedback loop formed with the forward gain of the hearing aid and the return through the hearing aid vent or leakage around the device. Generally, when the total forward gain is greater then the attenuation of the return, path oscillation occurs.
In a PRIOR ART hearing aid circuit described below in connection with
In the embodiments described below in connection with
The PRIOR ART hearing aid circuit 100 is illustrated in
The hearing aid circuit 100 introduces a first delay in reproducing sounds. Due to the limited speed of sound in air, the external feedback path 116 introduces a second delay in feeding sounds from the receiver 112 back to the microphone 106 through the air. When the first and second delays add up to 360 degrees at a frequency within the amplification range of the hearing aid circuit 100, and when the gain, at that frequency, around a loop through the hearing aid circuit 100 and the external feedback path 116 is one or more, then a high amplitude, sustained oscillation can occur. This sustained oscillation is referred to as “hearing aid feedback” and is recognizable as an annoying feedback, squeal or chirp that can be heard by the user or by others nearby.
Some expedient approaches to reducing the hearing aid feedback problem are to reduce the gain of the hearing aid circuit 100 by turning down a volume control, or to adjust the hearing aid to fit tighter in the ear canal or to reduce the vent size. These expedients are often unsatisfactory solutions since the forward gain is desired and a tighter fitting hearing aid is less comfortable.
Beside these expedients, another approach, illustrated in
The hearing aid circuit 100 includes an analog-to-digital converter 120 that receives the audio frequency input 108 from the microphone 106 and produces a digital audio output 122. The digital audio output 122 is coupled to a summing circuit 124. Internal feedback 128 from the internal feedback path 102 is also coupled to the summing circuit 124. The summing circuit 124 provides a net sum output 126 that is a sum of the digital audio output 122 and the internal feedback 128. The term “summing circuit” as used in this application refers broadly to include circuits that add or subtract. The net sum output 126 includes first, second and third components. The first component represents sound from the sound source 98. The second component represents sound feedback 130 from the external feedback path 116. The third component represents the internal feedback 128.
The least mean squared (LMS) control circuit 104 senses the net sum output 126 and provides a control output 132 to the internal feedback path 102. The control output 132 adjusts the characteristics of the internal feedback path 102 in an effort to provide an internal feedback 128 that substantially cancels or reduces the power of the sound feedback component to reduce problems with hearing aid feedback. The internal feedback path 102 is typically a FIR filter.
While the arrangement in
In the limited circumstances where the feedback signal 130 at the microphone is not correlated with the sound source 98 at the microphone 106, then the LMS algorithm can work well in correcting hearing feedback. In many other circumstances, however, the LMS algorithm does not work properly.
There are many situations where there is, in fact, a high correlation of the environmental sound source 98 with the feedback signal 130 at the microphone. If the sound source 98 is periodic, then the feedback signal 130 correlates with the input. Musical inputs are a common example of a periodic sound source. Musical tones can last for a second or more which is much longer than the 2 to 12 ms that is typical of most hearing aid feedback loop delays. The result of this correlation is that the LMS algorithm adjusts the FIR filter to reduce the input signal, which in turn results in a misadjusted FIR filter. The LMS algorithm doesn't differentiate between correlation from an environmental sound and correlation from hearing aid feedback. If the FIR filter becomes sufficiently misadjusted then a true feedback oscillation will begin to build resulting in a very annoying artifact.
This problem with the LMS algorithm has been known for a long time and attempts have been made to try to mitigate the problem. One attempt has been to allow adjustment of the FIR filter only extremely slowly or not when the user selects a “music mode” or only during initial fitting of the device. The weakness of this attempt is that there is poor or no compensation for real time changes in the feedback that occur from common situations such as jaw motion or a telephone being brought near the ear. Another attempt is to only allow the FIR a limited range of adjustment. This, however, also limits the range of correction that is possible. Another attempt is to inject pseudo random noise into the output and look for that noise in the input. This works if the noise has a high enough amplitude, but adding noise is annoying to a hearing aid user.
Still another attempt is to add a time varying delay in the forward path that is long enough to break up the correlation of the feedback signal with the input. The problem with this attempt is that it requires the delay to change more rapidly than the FIR is corrected and for the phase to be changed by at least 180 degrees, typically more than 360 degrees. In practical situations this large rapid phase change results in a sound artifact that is undesirable. These problems with the PRIOR ART circuit 100 are overcome as described below in connection with examples in
The hearing aid circuit 200 provides amplification along a feedforward path 234 in an environment that is subject to external audio feedback path 216. A correlation detector 240 detects correlation at a feedforward path input 226 and generates a correlation output 242. A phase shifter 248 receives the correlation output 242. The phase shifter 248 introducing a phase shift along the forward path 234 as a function of the correlation output 242. In one preferred arrangement, the phase shift has a phase shift amplitude that is inversely related to an amplitude of the correlation over an operating range.
A phase measurement circuit 244 measures a phase shift at the feedforward path input 226. The phase measurement circuit provides a phase measurement output 246. An internal feedback processor 202 receives the phase measurement output 246 and adjusts internal feedback to suppress coupling of the external audio feedback along the feedforward path.
The hearing aid circuit 200 comprises a summing circuit 224 that receives an audio output 222. The audio output 222 includes audio from a sound source 198 and audio from audio feedback 230. The summing circuit 224 also has a second summing input 228 and a net sum output 226. The net sum output 226 serves as a feedforward path input. A forward processor 234 (also called feedforward path 234) receives the net sum output (feedforward path input) 226 and provides a processed output (feedforward path output) 236.
The internal feedback processor 202 receives the processed output 236 and provides a feedback output 229 to the second summing input 228. The correlation detector 240 couples to the forward processor 234 along line 242 (also called correlation detector output 242) to provide a small phase change in the processed output 236 as a function of detected correlation in the net sum output 226. The phase measurement circuit 244 measures phase change in the net sum output 226 and provides the phase measurement output 246 that makes an adjustment of the feedback processor 202. The adjustment reduces net feedback at the net sum output 226. The net feedback is the sum of feedback output 229 and audio feedback 230 at the net sum output 226. The phase measurement circuit 244 can sense phase change in the net sum output 226 by a direct connection to the net sum output 226 as illustrated in
In one preferred arrangement, the hearing aid circuit 200 comprises a hearing aid circuit, and the adjustment reduces net hearing aid feedback at the net sum output 226. A microphone 206 senses sounds 198 and converts the sounds 198 to an audio frequency input 208. The circuit 200 includes an analog-to-digital (A/D) converter 220 that receives the audio frequency input 208 from the microphone 206 and produces the digital audio output 222. The circuit 200 amplifies and filters the audio input 208 and provides an audio frequency output 210 to a receiver 212. The receiver 212 converts the audio frequency output 210 to an audible sound 214 that is coupled along the user's external auditory canal to the user's ear drum. The hearing aid couples to the external feedback path 216 that provides the audio feedback 230. The processed output 236 also couples to a digital-to-analog (D/A) converter 238 that provides the audio frequency output 210 that drives the receiver 112. The D/A converter 238 typically receives a stream of digital words that represent amplitude and provides an analog output to the receiver 212. The D/A converter 238 is preferably a bit stream D/A converter. The microphone 206 and the receiver 212 can be part of the circuit 200, as illustrated, or can be separately mounted components that are connected to the circuit 200.
In
If the correlation is above the threshold at decision block 706, the algorithm flow continues along line 718 to action block 720, which is part of the small phase measurement algorithm 722. At action block 720, a small phase shift is introduced at the correlation frequency, and algorithm flow continues along line 723 to decision block 724.
At decision block 724, if the phase shift measured after a loop time delay is below a phase shift threshold, then algorithm flow continues along line 726 to an optional slow adjustment 728 of the internal feedback path, or algorithm flow continues, with no adjustment made, along lines 730, 714, 716 to the next cycle of correlation measurement 704. At decision block 724, if the phase shift measured after a loop time delay is above a phase shift threshold, then algorithm flow continues along line 732 to action block 734, which performs a fast internal feedback adjustment to reduce hearing aid feedback. The amount and speed of the adjustment is preferably adjusted proportional to the amount of phase shift measured. After completion of action block 734, algorithm flow continues along lines 714, 716 to the next cycle of correlation measurement at 704. The cycle of correlation detection through coefficient update is preferably from about 20 to 40 milliseconds. After one cycle is completed, a new cycle is started. The adaptation runs continuously, allowing the system to respond to changes that occur in the external feedback path such as when objects are moved close to the ear or the fit of the aid in the ear canal changes. Examples of the types of phase shifts that can be introduced at action block 720 are described below in connection with
In
In the examples illustrated in
The small phase change present at the feedforward output 236 is coupled (fed back) through the external feedback path 216 to the microphone 206 in
On the other hand, if the internal feedback processor 202 does not cancel out the external feedback path 216 then there is a net feedback at 226. The result will be that the small phase change will appear at 226. When the small phase shift is measured by the phase measurement circuit 244, the phase measurement circuit 244 adjusts the feedback processor 202 to provide feedback at output 229 that tends to reduce or cancel the external feedback. The cancellation process preferably occurs incrementally over several repetitive cycles of correlation measurement, to reduce undesired audio artifacts from the cancellation process.
The SPM algorithm is distinct from the use of a varying delay in the forward path. The varying delay approach uses an LMS algorithm but with the time varying delay added to break up the correlation of the feedback signal with the input. To accomplish this, the delay must change the phase of the signal by at least 180 degrees so that which was in-phase becomes out-of-phase.
Varying the delay must occur in a time shorter than the speed of the LMS adaptation. This typically means that either the adaptation must occur slower than desired or that the varying delay occurs so fast that it produces undesirable noticeable artifacts. The SPM is fundamentally different than varying delay. Rather than using delay to break up the feedback path, the SPM algorithm uses the small phase change as a non-audible probe signal superimposed on the normal operation of the hearing aid circuit.
The hearing aid circuit 500 provides amplification along a feedforward path 534 in an environment that is subject to an external audio feedback path 516. A correlation detector 540 (which is combined with a phase measurement circuit 544) detects correlation at a feedforward path input 526 and generates a correlation output 542. A variable delay phase shifter 548 receives the correlation output 542. The variable delay phase shifter 548 introduces a phase shift along the forward path 534 as a function of the correlation output 542. In a preferred arrangement, the phase shift has a non-interfering amplitude that is small enough to be imperceptible to the user.
The phase measurement circuit 544 (which is combined with the correlation detector 540) measures a phase shift at the feedforward path input 526. The combined circuit 540, 544 can be seen as an LMS circuit that is modified to include the additional features of detecting correlation and measuring phase. The phase measurement circuit 544 provides a phase measurement output 546. An internal feedback processor 502 receives the phase measurement output 546 and adjusts internal feedback to suppress coupling of the external audio feedback along the feedforward path.
A feedforward output 536 of the forward path 534 is coupled to D/A converter 538. D/A converter 538 provides an analog output 510 to receiver 512, and the receiver 512 produces a sound output 514. A microphone 506 receives sound 498 from the environment and also receives feedback sound 530. The microphone 506 couples an audio frequency input 508 to an A/D converter 520. The A/D converter 520 couples a digital audio output 522 to a summing node 524. The summing node 524 also receives an internal feedback output 529. The internal feedback is explained in more detail below in connection with
With a conventional LMS algorithm, coefficients wk (
where the wi's are updated according to Equation 2:
wi(n+1)=wi(n)−μ·e(n)·xi(n) Equation 2
where μ=conversion rate coefficient and e(n) is the signal 526. In some descriptions of LMS, the minus sign in Equation 2 may appear as a plus sign when there are different polarities and/or when a subtracting circuit is used in place of a summing circuit.
Unlike conventional LMS algorithms, in the embodiment of
where L is a block of data to average over, typically 4 to 32 data samples and “i” corresponds to the delay elements 602, 604, 606, 608, 610 of
If the correlation is found to be small, then the system can revert to a normal LMS update of the “w” coefficients as in Equation 2. This update is best done slowly since the low correlation indicates no oscillation is present. Therefore, there is no need for a fast coefficient change and slow changes keeps the coefficients optimized and prevents any perceptible sound artifacts.
If a correlation term is found to be large, then there is an uncertainty to be resolved about what to do regarding the “w” coefficients. The high correlation could be due to a change in the external feedback path in which case the coefficients should be quickly updated using the normal LMS procedure. On the other hand, the large correlation could be due to a correlation in the input signal itself. Music, warning buzzers and the like have this correlation. For this latter case, the coefficients should not be changed at all or only very slowly. Using the LMS in this condition will serve to cancel some of the input and in the process misadjust the internal feedback path. As mentioned above, this uncertainty has been a weakness in the prior use of LMS algorithms.
However, with the SPM algorithm, the uncertainty is resolved by the use of a phase shift inserted into the forward path. In the embodiment shown in
e′(n)=(1−a)·e(n)+a·e(n−1) Equation 4
The uncertainty described above can be understood by considering the 2 kHz waves shown in FIGS. 7A,B,C. In this example, without the phase shift, one particular xm(n) correlates perfectly with e(n) as shown in
Consider first the condition where the correlation is due to a net feedback causing oscillation at 2 kHz. In that condition the same xm(n) still correlates perfectly with E(n) because the same mth tap of the FIR filter needs to be corrected to stop the feedback. This is shown in
If the tap of the highest correlation does not change, as in
The phase shift, in this example, is a small phase shift from 0 to 45 degrees then back to 0. Some conventional algorithms use variable delay elements to break up the correlation of input signals. The problem with the conventional algorithms is that typically 360 degrees or more shift is needed. The much smaller phase shift of the SPM algorithm results in large reduction in perceptual artifact. The small phase shift works with the SPM since the phase shift is not used to breakup the correlation but rather to allow measurement of the phase at the input and the appropriate decisions to be made.
The hearing aid circuit 400 comprises a summing circuit 424 that receives an audio output 422. The audio output 422 includes audio from a sound source 398 and audio from audio feedback 430 received from a receiver via an external feedback path (not illustrated). The summing circuit 424 also has a second summing input 428 and a net sum output 426.
A forward processor 434 receives the net sum output 426 and provides a processed output (feedforward output) 436. The forward processor 434 includes a Weighted Overlap-Add (WOLA) analyzer 450 that receives the net sum output 426. The WOLA analyzer 450 provides multiple output lines E1, E2, E3 . . . Ei at 452 that reproduce the net sum output separated into i frequency bands (frequency components). The outputs E1, E2, etc. comprise vector representations that include amplitude and phase angle information. Details of the WOLA are published by dspfactory, mentioned above. The multiple output lines 452 are coupled to i controllable phase shift circuits 454, with one phase shift circuit for each frequency band. Each of the multiple phase shift circuits 454 is independently controllable to provide a controlled phase shift for a particular frequency band.
Phase shifter outputs 456 are coupled to inputs of the channel forward gain elements. The outputs 457 of gain element connect to the WOLA synthesizer 458. The WOLA synthesizer 458 combines the individual gain element outputs 457 to produce the processed output (feedforward output) 436.
A feedback processor 402 receives the processed output 436 and provides a feedback output 429 to the second summing input 428. The feedback processor 402 comprises a tapped delay line 460 that receives the processed output 436. Outputs or taps of the delay line 460 couple to a coefficient multiplying circuit 462 that provides the feedback output 429. The tapped delay line 460 and the coefficient multiplying circuit 462 together comprise a finite impulse response (FIR) filter. The FIR filter is similar to the circuit described above in connection with
A correlation detector 440 couples to the forward processor 434 along lines 442 to control the phase shift circuits 454 and provide small phase changes in the processed output 436 as a function of detected correlation in the net sum output 426. The correlation detector 440 includes i autocorrelators (delays and multipliers) receiving the WOLA analyzer outputs 452. The i autocorrelators produce i correlation outputs P1, P2, P3, . . . Pi. The correlation outputs P1, P2, P3 . . . Pi couple to control logic 464 that controls the phase shift circuits 454. the correlation outputs P1, P2, P3, . . . Pi also couple to a phase measurement circuit 444 and serve as a representation of the net sum output separated into individual frequency bands.
The phase measurement circuit 444 measures phase change in the net sum output 426 (by sensing correlation output P1, P2, P3 . . . Pi that include filtered net sum output data) and provides a phase measurement output 446 that makes an adjustment of the feedback processor 402. The adjustment reduces net feedback at the net sum output 426. The net feedback is the sum of feedback output 429 and audio feedback 430 at the net sum output 426. The phase measurement circuit 444 can sense phase change in the net sum output 426 by a direct connection to the net sum output 426, or alternatively, the phase measurement circuit 444 can be connected to the correlation outputs P1, P2, P3, . . . Pi of the correlation detector 440 in order to measure phase change on a filtered version of the net sum output 426 as it appears at the outputs P1, P2, P3 . . . Pi of the correlation detector 440. The phase measurement circuit 444 functions to measure the phase at the input. Phase measurement timing is synchronized with the insertion of phase changes on lines 456. The phase at the input of phase measurement circuit 444 is preferably measured after a delay about equal to the loop delay. If there is no input phase change in response to the output change then there is no net hearing aid feedback. If there is an input phase change, the direction and magnitude of the phase change indicates how the FIR filter coefficients 462 should be changed to minimize the net hearing aid feedback.
The forward processor 434 preferably comprises phase shifters 454 coupled to the correlation detector 440 along line 442. The phase shifter provides the small phase change in the processed output 436.
The WOLA circuits 450, 458 function to divide the incoming signal into frequency sub bands and then recombine them. This is very computationally efficient for the SPM algorithm that is used in
The correlation detector functions by comparing an incoming signal 452 with a delayed version of the incoming signal. When the average of the product of the input with the delayed input is high then there is a high correlation. The delay in the correlation detector corresponds approximately to the total delay around the forward and feedback loop. Typically this is about 6 millisecond delay through the forward processor and a 1 millisecond delay through the external feedback path.
The correlation for the hearing aid circuit 400 uses a calculation similar to Equation 3, but performs the calculation for each frequency band i according to Equation 5:
Pi(n)=Ei(n)·Ei*(n−m) Equation 5
The hearing aid circuit 400 provides efficient band filtering so that there is a correlation function for each band of interest. Since the outputs of the filter banks in the WOLA analyzer 450 are complex numbers, the product in the above formula uses the complex conjugate for the second term (i.e. E*(n−m)). In a preferred arrangement, the averaging calculates the standard deviation of Pi(n) for 16 input samples (n's). This value is then compared to the mean value of Pi(n) for the same 16 samples. If the standard deviation is greater than 0.7 of the mean then the correlation is determined to be “low”. In a preferred embodiment, a deviation-to-mean ratio in the range of 0.25 to 1.0 is used as a threshold.
If correlation is low then the input is relatively “random”, meaning that there is no hearing aid feedback oscillation and no periodic signal source present. For low correlation, the circuit can revert to the LMS algorithm with a relatively low convergence speed, since there is no actual oscillation.
If the correlation is high it means that there is periodic or nearly periodic input. This input can be the result of either a true periodic sound source or it could also result from feedback oscillation. The correlation detector will show a high level in both cases but does not distinguish between the two.
Resolving the uncertainty when the correlation is high is accomplished by applying a phase shift in the forward path.
The performance of the phase measurement circuit 444 and the logic to appropriately adjust the feedback processor 402 in response to that measurement can perhaps best be explained by the use of the simplified schematic shown in
To understand the SPM algorithm in this embodiment consider the simplified situation where the signal E(n) at 810 is a complex sinusoid E(n)=ejωn. Since the WOLA filters the inputs into narrow frequency bands, this approximation in
FB(n)=βejω(n−m)
Substituting E(n) into Equation 5 one can easily calculate that
P(n)=ejωm.
Since m is the fixed length of the correlation filter, one sees that P(n) here is a fixed number that does not change with n. Hence the correlation detector which averages the P's over n, will see a high correlation.
In response to the high correlation the small phase change (Δφ) of
{tilde over (E)}(n)=β·ejω(n−m)·ejΔφ+ejωn−β·ejω(n−m)
Since the phase change has not had time to propagate through the correlation delay E(n−m) is still {tilde over (E)}*(n−m)=ejw(−n+m).
Substituting into Equation 5 gives:
{tilde over (P)}(n)=β·ejω(n−m)·ejΔφ·ejω(−n+m)+ejωn·ejω(−n+m)−β·ejω(n−m)·ejω(−n+m)
Simplifying and using the approximation ejΔφ≈1+jΔφ gives:
{tilde over (P)}(n)≈β·j·Δφ·e+ejωm
Then the quantity ΔP is calculated
ΔP≡{tilde over (P)}(n)−P(n)=β·j·Δφ Equation 6
Equation is 6 is very valuable since it shows that by calculating the function ΔP the value of β can be obtained. Note that the β can be obtained even when the true signal source is sinusoidal, something that is not possible with any of the normal LMS designs. Note also that equation 6 shows that the value of β can be obtained in only one application of the phase shift. This would theoretically allow a perfect feedback correction in only one application. In practice, however, the correction is typically done iteratively over several applications of the phase shift. This prevents sudden changes to the feedback processor that could give audible artifacts.
The phase measurement circuit 444 of
The internal feedback processor 402 is adjusted based on the results of the phase measurement. The details of the adjustment depend on the specific implementation used for the feedback processor. One possible implementation is a feedback processor constructed as a sum of band pass filters, where the band widths match the WOLA frequency bands. Both the phase and the magnitude of the filter outputs are adjustable. With such a design the β's calculated above for each WOLA frequency band could be used to adjust the corresponding frequency band of the feedback processor. The exact correspondence of the adjustment of the feedback filter could be determined empirically to give convergence of the cancellation. Typically one would like the convergence speed to correct for changes with a time constant of about 50 to 300 milliseconds.
A second example of the feedback processor 402 is the tapped delay line of
As an example, a 32 tap FIR filter is sampled at 16 kHz. The coefficient updates are organized into 16 filter bands centered at 0, 0.5, 1.0 . . . 7.0, 7.5 kHz. For each band there are two sets of coefficients a(n), b(n) that differ by 90 degrees. For the above example at 4 kHz, one set of coefficients is:
The other set of coefficients for 4 kHz is:
The update to the FIR coefficients is then accomplished by adding or subtracting the appropriate a(i) or b(i), as determined by the phase measurement, to the ω(i). θ and μ are chosen experimentally to give the optimum convergence.
A third example of how the feedback processor could be designed is slightly different than in
One advantage of the implementation of
Although the present invention has been described with reference to preferred embodiments, workers skilled in the art will recognize that changes may be made in form and detail without departing from the spirit and scope of the invention.
This application claims the benefit of U.S. Provisional Application 60/499,755 filed on Sep. 3, 2003 for inventor Robert J. Fretz and entitled Feedback Cancellation.
Number | Date | Country | |
---|---|---|---|
60499755 | Sep 2003 | US |