Evaluating the effectiveness of digital filtering techniques in electronic stethoscopes: a study of Kalman and Butterworth filters
Executive Summary
This study systematically compares the effectiveness of Kalman and Butterworth digital filtering techniques for denoising phonocardiogram (PCG) signals acquired from mannequins using a low-cost condenser microphone and ESP32-based electronic stethoscope. Signals were processed in MATLAB, with filter performance evaluated via signal-to-noise ratio (SNR) improvement and statistical analysis (ANOVA, Tukey HSD). The 8th-order Butterworth band-pass filter (20–150 Hz) achieved the highest average SNR (25.659 dB), significantly outperforming all Kalman filter configurations (best: 20.815 dB), and demonstrated superior preservation of heart sound morphology. These results support the use of high-order Butterworth filters for real-time, embedded PCG denoising, with future work aimed at firmware integration and clinical validation.
Answer Machine Insights
Q: Which digital filter provided the highest signal-to-noise ratio (SNR) improvement for PCG signals?
The 8th-order Butterworth band-pass filter provided the highest SNR improvement, averaging 25.659 dB.
The key finding from this investigation is that the 8th-order Butterworth band-pass filter achieved the highest SNR performance with an average value of 25.659 dB, while the best Kalman filter configuration (R:100, Q:1) produced an average SNR value of 20.815 dB.
Q: Did filter parameter tuning significantly affect SNR performance?
For the Butterworth filter, increasing the order significantly improved SNR up to the 4th order (ANOVA p=0.00010), while Kalman filter parameter changes did not yield significant SNR differences (p=0.743).
For the Kalman filter, the ANOVA results showed an F-statistic of 0.414 with a p-value of 0.743, indicating no significant difference in SNR among the tested R and Q coefficient configurations... For the Butterworth band-pass filter, the ANOVA yielded an F-statistic of 8.437 and a p-value of 0.00010, demonstrating a statistically significant effect of filter order on SNR improvement.
Q: What are the practical implications for embedded stethoscope design?
A high-order Butterworth filter can be efficiently implemented on microcontrollers like ESP32 for real-time PCG denoising, improving heart sound clarity in low-cost devices.
The Butterworth filter’s low complexity allows real-time processing using IIR structures with minimal computational cost... Implementing these algorithms in embedded firmware would enable real-time filtering and denoising of PCG signals without relying on MATLAB or PC-based computation, thereby improving portability and efficiency.
Key Results
8th-order Butterworth band-pass filter (20–150 Hz) achieved an average SNR improvement of 25.659 dB.
Best Kalman filter configuration (R:100, Q:1) achieved an average SNR of 20.815 dB; Butterworth filter performance was statistically superior (ANOVA p=0.00010).
Visual Evidence

Figure 5. Time-domain comparison of PCG: Butterworth preserves S1–S2; Kalman smooths with attenuation
Clinical Snapshot
Evidence Rating
Relevance
medium Priority