phonocardiograms and monitor heart patients.
[3,4]
Additionally, the collaboration between universities and
private/nonprofit organizations has generated significant recognition concerning new types of low-cost
wearable medical devices that are based on open-source hardware platforms because of their low cost, small
size/weight, and ease of use.
[2,5]
Therefore, advancements in digital medical technology have created new
opportunities for new types of intelligent and affordable healthcare systems.
In recent years, many advancements have been made in how we investigate and analyze certain biological
signals, such as heart sounds, using signal processing and machine learning methods. Many different methods
have been used to filter and remove noise from recordings of heart sounds (phonocardiograms) so that better
quality recordings can be obtained and that noise introduced by the external environment can be reduced.
[6,7]
Recent work has demonstrated that machine learning and deep learning techniques show promise for the
automatic classification of heart sounds, as well as for the detection of abnormalities.
[3,8,9]
The availability of
numerous publicly available biological datasets, such as PhysioNet and the CirCor DigiScope database, has
allowed researchers to obtain standardized recordings of these heart sounds to develop and test algorithms for
intelligent cardiac monitoring systems.
[10,11,12]
Additionally, researchers are using advanced software
frameworks and visualization tools to create applications to monitor patients in real time, manage patient data
remotely and develop interactive dashboards for healthcare providers to enhance healthcare services.
[2,13]
As cost-effective smart medical devices have been developed to meet the growing demand for such devices, this
project presents a new low-cost digital stethoscope system that utilizes an Arduino microcontroller and Digital
Signal Processing (DSP) and Machine Learning (ML) algorithms to analyze heart sounds. The heart sound
acquisition system is based on the modified KY-037, which includes an external electret microphone for
collecting a PCG (phonocardiograms) using an Arduino UNO microcontroller. The retrieved PCG signals undergo
a detailed, multistage preprocessing pipeline that includes a median filter (MF), Butterworth bandpass filter
(BPF), moving average filter (MAF), and outlier removal to create quality heart sounds. Heart sounds are
classified by using the random forest algorithm through a previously developed ML classifier, which uses the
PhysioNet CirCor DigiScope database for training data collection.
[11]
The real-time PCG data collected are
displayed as a visual waveform on a Streamlit-based dashboard, along with additional functionality such as BPM
monitoring, patient record management, data storage and automated PDF report generation. Overall, this
proposed architecture provides a low-cost, compact, and portable solution for academic, research, and initial
patient screening purposes.
This study contributes greatly to the development of a low-cost intelligent digital stethoscope through the use
of open-source hardware/software technologies, developing a multistage heart sound preprocessing pipeline
that minimizes noise and improves the quality of a signal, providing a real-time estimate of the BPM through an
adaptive peak detection method, and classifying heart sounds using machine learning and the PhysioNet
database.
[11,12]
Additionally, the inclusion of a Streamlit monitoring Dashboard, which includes features such as
waveform visualization, patient record management, and automated PDF report generation, creates additional
capabilities for future smart healthcare solutions and allows for further scaling.
[2,13]
2. Methodology
A new intelligent digital stethoscope system has been produced using a combination of embedded hardware,
signal processing methods, machine learning algorithms, and visualization tools based on software for
monitoring and analyzing sounds produced by the heart. The design approach is based on using low-cost
methods for recording heart sounds, processing these data to make BPM estimates, using intelligent techniques
for classifying sounds, and providing interactive methods for monitoring patients through the use of open-
source solutions.
The architecture of the system consists of an acquisition module made from an Arduino UNO board connected
to a modified KY-037 microphone and an external electret microphone for recording phonocardiograms. The
recorded signals are processed using multiple filtering techniques and analyzed with machine learning
techniques that have been trained with the PhysioNet CirCor DigiScope dataset. A Streamlit-based dashboard
has also been developed to provide real-time visualization of the waveforms and to monitor the BPM, manage
patient information, and create reports automatically. The detailed methodology and stages of the
implementation of the proposed system are discussed in the subsequent subsections.
2.1 System overview
The intended intelligent digital stethoscope system was developed to enable heart sound acquisition in real
time, signal preprocessing, BPM (beats per minute) estimation, machine-learning-based classification, and
interactive monitoring via a software interface or dashboard. Initially, the heart sounds are captured using an
external electret microphone attached to the stethoscope chest piece and connected to a modified KY-037 sound
acquisition module. The Arduino UNO microcontroller acquires the analog signals via its analog input pins, and
these analog signals are converted to digital signals using the built-in (on-board) ADC (analog-to-digital
converter).