A Dual-Microphone Adaptive Filtering Algorithm for Collecting Body Sound Signals and Application Thereof
20220005491 · 2022-01-06
Assignee
- SOUTH CHINA UNIVERSITY OF TECHNOLOGY (Guangzhou, Guangdong, CN)
- FOSHAN BAIBUTI MEDICAL TECHNOLOGY CO., LTD. (Foshan, Guangdong, CN)
Inventors
Cpc classification
G10L2021/02165
PHYSICS
International classification
Abstract
The present invention discloses a dual-microphone adaptive filtering algorithm for collecting body sound signals, characterized in that, using at least two microphones, a primary microphone and a secondary microphone, to collect signals; the primary microphone is used to collect noisy body sound signals, and the secondary microphone is used to collect environmental noise; applying a same high-pass filtering to signals collected by the primary microphone and signals collected by the secondary microphone; using a normalized least mean square algorithm on the primary microphone signals and the secondary microphone signals after the high-pass filtering to calculate a weight of the adaptive filter and to calculate an error signal to filter out environmental noise in the primary microphone signals; processing the error signal for a first time by a low-pass filtering to restore the body sound signals, to obtain the body sound signals output by the adaptive filtering algorithm. This algorithm not only may achieve rapid convergence of filter weights, but also avoid signal distortion, and suppress environmental noise interference quickly and reliably.
Claims
1. A dual-microphone adaptive filtering algorithm for collecting body sound signals, characterized in that, using at least two microphones, a primary microphone and a secondary microphone, to collect signals; the primary microphone is used to collect noisy body sound signals, and the secondary microphone is used to collect environmental noise; applying a same high-pass filtering to signals collected by the primary microphone and signals collected by the secondary microphone, so that primary microphone signals and secondary microphone signals after the high-pass filtering have a good linear correlation; using a normalized least mean square algorithm on the primary microphone signals and the secondary microphone signals after the high-pass filtering to calculate a weight of the adaptive filter and to calculate an error signal to filter out environmental noise in the primary microphone signals; processing the error signal for a first time by a low-pass filtering to restore the body sound signals, to obtain the body sound signals output by the adaptive filtering algorithm.
2. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 1, characterized in that, the steps of using at least two microphones, a primary microphone and a secondary microphone, to collect signals; the primary microphone is used to collect noisy body sound signals, and the secondary microphone is used to collect environmental noise; applying a same high-pass filtering to signals collected by the primary microphone and signals collected by the secondary microphone, so that primary microphone signals and secondary microphone signals after the high-pass filtering have a good linear correlation; using a normalized least mean square algorithm on the primary microphone signals and the secondary microphone signals after the high-pass filtering to calculate a weight of the adaptive filter and to calculate an error signal to filter out environmental noise in the primary microphone signals; processing the error signal for a first time by a low-pass filtering to restore the body sound signals, to obtain the body sound signals output by the adaptive filtering algorithm, means comprising the following steps: step S1, initializing a current time sequence number k=0, a filter weight W(0, i)=0, i=0, . . . , M−1, where M is a filter order; step S2, obtaining the primary microphone signals d(k) and the secondary microphone signals x(k) at the current time; step S3, judging a size of the current time sequence number k: if k<M, obtaining signals after the first low-pass filtering as ē(k)=d(k), and set W(k, i)=W(k−1, i) at the same time, and go to step S10; if k≥M, go to step S4; step S4, performing the same high-pass filtering on the primary microphone signals d(k) and the secondary microphone signals x(k) to obtain the primary microphone signals after high-pass filtering
y(k)=Σ.sub.i=0.sup.M-1W(k,i)
e(k)=
ε(k)=ζ+Σ.sub.i=0.sup.M-1
W(k+1,i)=W(k,i)+ηe(k)
3. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 2, characterized in that, in step S1, a value range of the filter order M is: M∈[10, 200].
4. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 2, characterized in that, in step S4, the high-pass filtering uses one of the following two schemes: scheme 1: using a high-pass filter with a pulse transfer function of G.sub.HP(z), a cut-off frequency f.sub.HPc of the pulse transfer function G.sub.HP(z) ranges from 500 to 1200 Hz; scheme 2: using a pre-emphasis high-pass filter formed by m.sub.HP first-order pre-emphasis links 1−α.sub.jz.sup.−1, j=1, . . . , m.sub.HP, α.sub.j∈[0.9, 1) in series.
5. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 4, characterized in that, in the scheme 1, a pulse transfer function of a low-pass filter used in the first low-pass filtering in step S9, G.sub.1LP(z)=1/G.sub.HP(z).
6. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 2, characterized in that, in step S8, a value range of the adjustment factor is: η∈[0.1, 1].
7. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 2, characterized in that, in step S10, outputting the output signal o(k) of the adaptive filtering algorithm at the k th time means: using one of the following two methods: method 1: outputting the signal after the first low-pass filtering ē(k) as the output signal o(k) of the adaptive filter algorithm at the k th time; method 2: performing a second low-pass filtering on the signal after the first low-pass filtering ē(k) to further suppress environmental noise interference, and using a signal after the second low-pass filtering as the output signal o(k) of the adaptive filter algorithm at the k th time.
8. The dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 7, characterized in that, in the method 2, the second low-pass filtering adopts a pulse transfer function of G.sub.2LP(z), a cut-off frequency f.sub.LPc of the pulse transfer function G.sub.2LP(z) ranges from 1200 to 1600 Hz.
9. An application of the dual-microphone adaptive filtering algorithm for collecting body sound signals according to claim 1, characterized in that, it is applied to an electronic auscultation device and/or an electronic wearable device, the body sound signals output by the adaptive filtering algorithm is used as output signals of the electronic auscultation device and/or the electronic wearable device.
Description
BRIEF DESCRIPTION OF THE FIGURES
[0048]
[0049]
[0050]
[0051]
[0052]
[0053]
[0054]
[0055]
DETAILED DESCRIPTIONS
[0056] The present invention will be further described in detail below with reference to the drawings and specific embodiments.
First Embodiment
[0057] This embodiment is used for the dual-microphone adaptive filtering algorithm for collecting body sound signals, with the flowchart shown in
[0058] Specifically, it includes the following steps: [0059] step S1, initializing a current time sequence number k=0, filter weights W(0, i)=0, i=0, . . . , M−1, where M is a filter order; a value range of the filter order M is preferably: M∈[10, 200] [0060] step S2, obtaining the primary microphone signals d(k) and the secondary microphone signals x(k) at the current time; [0061] step S3, judging a size of the current time sequence number k: [0062] if k<M, obtaining signals after the first low-pass filtering as ē(k)=d(k), and set W(k, i)=W(k−1, i) at the same time, and go to step S10; [0063] if k≥M, go to step S4; [0064] step S4, performing the same high-pass filtering on the primary microphone signals d(k) and the secondary microphone signals x(k) to obtain the primary microphone signals after high-pass filtering
y(k)=Σ.sub.i=0.sup.M-1W(k,i)
e(k)=
ε(k)=ζ+Σ.sub.i=0.sup.M-1
W(k+1,i)=W(k,i)+ηe(k)
[0077] An application of the above dual-microphone adaptive filtering algorithm for collecting body sound signals, characterized in that, it is applied to an electronic auscultation device and/or an electronic wearable device, the body sound signals output by the adaptive filtering algorithm is used as output signals of the electronic auscultation device and/or the electronic wearable device. Electronic auscultation devices and/or electronic wearable devices may assist medical personnel in auscultating patients. Electronic auscultation devices may also remotely transmit body sound signals output by adaptive filtering algorithms to the auscultation system. The auscultation system provides the received body sound signal to the medical staff for remote auscultation, and the medical staff may listen to the patient's body sound without meeting with the patient. Thus, the technical problem of clear monitoring of body sounds is solved for remote medical treatment.
[0078] The technical principle of the algorithm of the present invention is:
[0079] Compared with the traditional normalized least mean square algorithm, the algorithm of the present invention adds a high-pass filtering and a first low-pass filtering.
[0080] In heart sound auscultation, the amplitudes of the first and second heart sounds are often much higher than those of the ambient noise. As a result, the filter deviation e(k)=d(k)−y(k) increases periodically during the convergence of the filter parameters, which in turn causes the filter parameters to be periodically out of adjustment. As shown in
[0081] Compared with common environmental noises such as voice etc., body sound signals such as heart sounds, breath sounds, and bowel sounds etc. are low-frequency signals, and their effective frequency bands fall from 0 to 1600 Hz, and most of their energy is concentrated in the low frequency band below 500 Hz. The use of high-pass filtering helps to narrow the amplitude gap between the body sound signal s(k) and the environmental noise n(k) in the primary microphone signals. While increasing the influence of environmental noise n(k) on the filter weight W(k+1, i), the influence of body sound signal s(k) on filter weight W(k+1, i) is reduced (compare the amplitudes of ∥ΔW(k)∥.sub.2 in
[0082] The principle may also be explained as: the adaptive filtering uses the linear correlation between the environmental noise x(k) measured by the secondary microphone and the environmental noise n(k) measured by the primary microphone to filter out the environmental noise n(k) in the primary microphone signal. The higher the degree of linear correlation between the two, the more significant suppression effect the adaptive filtering has on environmental noise n(k). Since the body sound signal s(k) is linearly independent of environmental noise n(k), it means that the higher the degree of linear correlation between the secondary microphone signals x(k) and the primary microphone signals d(k)=s(k)+n(k), the better the adaptive filtering effect. High-pass filtering helps to enhance this correlation. After using second-order or higher of pre-emphasis process, the linear correlation coefficient between
[0083] The purpose of the first low-pass filtering is to restore the body sound signal s(k), so the pulse transfer function of the first low-pass filtering should be the inverse of the pulse transfer function of the high-pass filtering.
[0084]
[0085]
[0086]
[0087]
[0088] The following is a specific example for explanation:
[0089] The dual-microphone adaptive filtering algorithm for collecting body sound signal comprises the following steps: [0090] step S1, initialization: set the current time sequence number k=0, filter weight W(0, i)=0, i=0, . . . , 19, that is the order of the filter is 20; [0091] step S2, obtaining the primary microphone signals d(k) and the secondary microphone signals x(k) at the current time; [0092] step S3, judging a size of the current time sequence number k: if k<20, obtaining signals after the first low-pass filtering as ē(k)=d(k), and set W(k, i)=W(k−1, i), i=0, . . . , 19 at the same time, and go to step S10; [0093] if k≥20, go to step S4; [0094] step S4, performing the same second-order pre-emphasis processing on the primary microphone signal d(k) and the secondary microphone signal x(k) respectively, and the effect is high-pass filtering; that is, the high-pass filtering uses a pre-emphasis high-pass filter formed by two first-order pre-emphasis links 1−α.sub.jz.sup.−1, j=1, 2, α.sub.j∈[0.9, 1) in series;
ε(k)=ζ+Σ.sub.i=0.sup.M-1
W(k+1,i)=W(k,i)+ηe(k)
ē(k)=e(k)+(α.sub.1+α.sub.2)ē(k−1)−α.sub.1α.sub.2ē(k−2); [0102] step S10, outputting the signal ē(k) after the first low-pass filtering as the output signal o(k) of the adaptive filtering algorithm at the k th time; determining an adaptive filtering termination indicator variable: if the adaptive filtering termination indicator variable is true, the adaptive filtering algorithm ends, otherwise jumps to step S2 to calculate an output of the adaptive filtering algorithm of a next time. The adaptive filter termination indicator variable is obtained by reading a stop button. When the stop button message is pressed, the adaptive filter termination indicator variable is set to true, otherwise it is set to false.
Second Embodiment
[0103] This embodiment is used for the dual-microphone adaptive filtering algorithm for collecting body sound signals, with the flowchart shown in
[0104] The second low-pass filtering uses a low-pass filter with pulse transfer function G.sub.2LP(z), and the cut-off frequency f.sub.LPc of the pulse transfer function G.sub.2LP(z) ranges from 1200 to 1600 Hz.
[0105] Correspondingly, in a specific example, in step S10, the signal ē(k) after the first low-pass filtering is low-pass filtered for the second time, and the result is the output signal o(k) of the adaptive filtering algorithm at the k th time:
o(k)=b.sub.m.sub.
wherein, the order m.sub.LP may be selected from 4 to 8 or higher, and the parameters a.sub.0˜a.sub.m.sub.
[0106] After that, determining the adaptive filter termination indicator variable: if the adaptive filter termination indicator variable is true, then the adaptive filter algorithm ends, otherwise jumps to step S2 to calculate the output of the adaptive filter algorithm at the next time.
[0107] The remaining steps of this embodiment are the same as the first embodiment.
Third Embodiment
[0108] The difference between the dual-microphone adaptive filtering algorithm for collecting body sound signals in this embodiment and the first embodiment is that the steps S4 and S9 in this embodiment are different from the specific example in the first embodiment. In this embodiment,
[0109] in step S4, the primary microphone signals d(k) and the sub-microphone signals x(k) are subjected to the same high-pass filtering to obtain the primary microphone signals
[0110] wherein, the order m.sub.HP may be selected from 2 to 8 or higher, and the parameters a.sub.0˜a.sub.m.sub.
[0111] In step S9, performing the first low-pass filtering on the error signal e(k) to obtain the signal ē(k) after the first low-pass filtering:
[0112] The remaining steps of this embodiment are the same as the first embodiment.
[0113] The above-mentioned embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited by the above-mentioned embodiments. Any other changes, modifications, substitutions, combinations, simplifications, made without departing from the spirit and principle of the present invention, all should be equivalent replacement methods, and they are all included in the protection scope of the present invention.