Documente Academic
Documente Profesional
Documente Cultură
Abstract – A digital stethoscope is constructed for the into account the potential presence of noise that could
adaptive mitigation of internal and external noise resonate from the patient themselves, i.e. internal noise.
accompanying real-time acoustical heart This form of resonation can range anywhere from heavy
measurements. The developed system utilizes the breathing to yelling from a patient in pain, which is
fundamentals of statistical tendencies accompanying resonated through the channel accompanying the heart
signals for the suppression of noise, reconstruction of signal in the form of attenuation.
heart signals, and heart rate calculation in a The current digital stethoscope supports a real-time
simultaneous manner. In this paper, the designed display of the heart rate and acoustic heart signal, along
digital stethoscope is reconstructed from a with the audio playback to any speaker or listening device.
mathematical model accompanied by the physical A median filter was constructed for accurate heart rate
equipment used. After the exploration of the system realization. Four cascaded second order infinite impulse
from mathematical principles is completed, the response (IIR) transfer functions were cascaded for
working performance of the instrument is displayed generating an eighth order low-pass filter sufficient in peak
followed by the derivation and implementation of the detection of the heartbeat signals. An adaptive thresholding
variable step-size least-mean-squares adaptive noise algorithm was implemented for efficient peak detection
cancelling algorithm. capable of evaluating different users. The display and
Index Terms – Adaptive filters, variable step-size LMS audio playback of the microcontroller was designed as an
algorithm, digital filters, microcontroller, cardiac eighth order IIR bandpass filter for capturing critical
acoustics, internal noise reduction, digital stethoscope information regarding the first and second (S1 and S2)
acoustic parameters of the heartbeat waveform [5]. The
I. INTRODUCTION AND BACKGROUND design was also based on two cascaded fourth order
transfer functions. A variable step-size LMS adaptive
Digital stethoscopes are instruments used as a
algorithm was employed for internal noise suppression
measurement and analysis tool for auscultation (listening
based on [7]. A simulated adaptive noise canceler was
to the heart sounds of the heart) and medical diagnosis.
generated as a proof-of-concept.
Acquisition of signals accompanying the low signal
strength of the heart requires sensitive equipment in order
II. HARDWARE SETUP
to generate accurate calculations for the medical
examiners, as well as granting the ability to audibly discern The digital stethoscope is realized using a microphone
the true signal to a high degree. As the sensitivity of any placed at the inner portion of the resonator cavity, such that
receiver or recording device increases for increased signal resonations can occur from vibrations present at the analog
observability, so does the presence of unwanted signals. diaphragm. The microphone was biased at 3.3 volts from a
The presence of external noise can attenuate the pre- peripheral pin onboard of the LPCXpresso54608. The
existing heart signal such that observations of the heart signal is sampled on the LPCXpresso54608 platform at
signal are unobservable [1]. 8000 Hz at the audio-in port of the analog-to-digital
Adaptive filtering is an ever-lasting solution for the converter (ADC). The sampled data is collected by the
mitigation of time-variant noise that can occur in a system. LPC54608 for the display of the heart signals and heart rate
Such implementations have been developed for digital calculation. The digital stethoscope reconstructs the signal
stethoscopes in adaptively mitigating external noise [2], and allows for the audio playback on any listening device
[3], [4], [5] and [6]. Although proven to be successful in connected to the audio-out port of the microcontroller. The
the suppression of the external noise, and extremely current system is configured and visualized by figure 1.
valuable to the medical industry, the authors had not taken
𝑦1 [𝑛] = 𝛼10 𝑥[𝑛] + 𝛼11 𝑥[𝑛 − 1] + 𝛼12 𝑥[𝑛 − 2] (1)
+ 𝛽11 𝑦1 [𝑛 − 1] + 𝛽12 𝑦1 [𝑛 − 2]
where
𝐻𝑒𝑎𝑟𝑡 𝑅𝑎𝑡𝑒 = {𝑠6 } (6) 𝑑(𝑛) = 𝑠(𝑛) + 𝑛(𝑛) (9)
C. Bandpass Filtering for Audio Playback and Waveform Display and the estimated noise source is modeled as:
The bandpass filter was implemented as an eighth order IIR 𝐿−1
filter comprising of two cascaded, fourth order sections centered
𝑛̂(𝑛) = ∑ 𝑤𝑘 (𝑛)𝑛̃(𝑛 − 𝑘) (10)
at 175 Hz and having a bandwidth of 250 Hz, is expressed here in
𝑘=0
the form of difference equations:
with
𝑦1 [𝑛] = 𝛼10 𝑥[𝑛] + 𝛼11 𝑥[𝑛 − 1] + 𝛼12 𝑥[𝑛 − 2] 𝑒(𝑛) = 𝑑(𝑛) − 𝑛̂(𝑛) = 𝑑(𝑛) − 𝑤(𝑛)𝑛̃(𝑛) (11)
+ 𝛼13 𝑥[𝑛 − 3] + 𝛼14 𝑥[𝑛 − 4] + 𝛽11 𝑦1 [𝑛 − 1] (7)
+ 𝛽12 𝑦1 [𝑛 − 2] + 𝛽13 𝑦1 [𝑛 − 3] + 𝛽14 𝑦1 [𝑛 − 4] where 𝑠(𝑛) is the acoustic heart signal, 𝑛(𝑛) is the internal
noise, and 𝑒(𝑛) is the error signal fed back to the adaptive
𝑦2 [𝑛] = 𝛼20 𝑦1 [𝑛] + 𝛼21 𝑦1 [𝑛 − 1] + 𝛼22 𝑦1 [𝑛 − 2] filter for updating the filter tap weights via gradient
+ 𝛼23 𝑦1 [𝑛 − 3] + 𝛼24 𝑦1 [𝑛 − 4] + 𝛽21 𝑦2 [𝑛 − 1] (8) descent:
+ 𝛽22 𝑦2 [𝑛 − 2] + 𝛽23 𝑦2 [𝑛 − 3] + 𝛽24 𝑦2 [𝑛 − 4]
𝑤(𝑛 + 1) = 𝑤(𝑛) − 𝜇∇𝑚𝑠𝑒 (𝑛) (12)
where equation (7) refers to the first fourth order section where ∇𝑚𝑠𝑒 is the gradient of the mean square error of the
and equation (8) is the second fourth order section, form:
respectively.
∇𝑚𝑠𝑒 (𝑛) = 𝑒 2 (𝑛) = [𝑑(𝑛) − 𝑛̃(𝑛)]2 (13)
IV. ADAPTIVE NOISE CANCELLING resulting in
𝐿−1 2
where step-size parameter 𝜇(𝑛), is linearly stepped as: 𝐸[𝑜𝑢𝑡𝑝𝑢𝑡 2 ] = 𝐸[𝑏(𝑛)2 ] + 𝐸[{𝑛(𝑛) − 𝑛̂(𝑛)}2 ] (23)
0.01, 𝑥 < 0.5 showing that the minimization of the noise does not affect
𝜇(𝑛) = {1.99𝑥 − 0.99, 0.5 ≤ 𝑥 ≤ 1 (18)
the signal power at the output of the adaptive VSS-LMS
1, 𝑥>1
filter. Leveraging these underlying assumptions, an
Equations (17) and (18) define the adaptive noise AWGN channel was constructed for the realization of 𝑛(𝑛)
canceling algorithm in an efficient way, such that if the and 𝑛̃(𝑛) noise references. The un-attenuated heartbeat
power of the error signal is twice the power of the desired signal s(n) is observed below.
signal, then the step-size will be set as the upper bound of
1. When the error becomes smaller and the difference
approaches zero, then the step-size reaches the lower
bound of 0.01. When the digital stethoscope is first started,
the step-size function is initialized to the lower bound,
0.01. After receiving the first x amount of samples, the
power levels are determined and the step-size is adjusted in
an iterative manner ensuring that the tap weights are
corrected effectively.
Fig. 4. Heartbeat signal to be identified by the VSS-LMS
adaptive noise canceling filter.
V. RESULTS
The signal was extracted from a database [9] and used
The VSS-LMS algorithm is an efficient algorithm for
as the heartbeat signal for simulation. Synthetic noise is
determining an optimum step-size value in the gradient
then injected into the signal with a mean of zero and a
approximation process for approximating the error. After
variance of 0.25, shown below in figure 5.
mathematically modeling the VSS-LMS adaptive noise
canceling algorithm, two simulations were conducted in
MATLAB. The first simulation encompassed the heartbeat
extraction from a pre-recorded signal embedded in additive
white Gaussian noise.
VII. REFERENCES
[1] N. Jatupaiboon, S. Pan-Ngum, and P. Israsena, “Electronic
stethoscope prototype with adaptive noise
cancellation,” 2010 Eighth International Conference on ICT
and Knowledge Engineering, 2010.