SecureAI Stethoscope: A Machine Learning Framework for Real-Time Cardiopulmonary Screening in Rural Healthcare
Executive Summary
This study introduces the SecureAI Stethoscope, a machine learning-based framework designed for real-time cardiopulmonary screening, particularly in rural and resource-limited healthcare settings. The system employs a seven-stage pipeline, including audio capture, preprocessing, feature extraction (MFCCs, Zero Crossing Rate, Spectral Centroid, Spectral Rolloff), and Random Forest classification, deployed via FastAPI for rapid analysis of heart and lung sounds. Preliminary results using synthetic and public datasets demonstrate high accuracy (heart: 95%, lung: 94%) and operational speed (median end-to-end prediction: 65–78 ms), supporting the feasibility of AI-assisted auscultation; future work targets clinical trials, deep learning enhancements, and secure deployment.
Answer Machine Insights
Q: What machine learning model was used for initial classification of heart and lung sounds?
A Random Forest classifier trained on standardized acoustic features (MFCCs, Zero Crossing Rate, Spectral Centroid, Spectral Rolloff) was used.
The proof of concept model uses a Random Forest classifier trained on standardized features derived from labeled normal and abnormal heart and lung recordings.
Q: How quickly does the system generate predictions after audio upload?
Predictions are generated within seconds, with median end-to-end times of 65 ms for heart and 78 ms for lung samples.
Predictions were generated within seconds of audio file upload, enabling near real time clinical screening... Median end-to-end prediction time: 65 (heart), 78 (lung).
Q: What are the main limitations of the current study?
The study relies on synthetic and public datasets rather than prospective clinical data, and outputs only binary normal/abnormal classifications.
First, the reported results are preliminary and do not yet include detailed numeric performance values or comparative baselines. Second, the current proof of concept appears to rely on labeled datasets rather than fully prospective clinical data. Third, the binary output of normal versus abnormal is suitable for screening but remains coarse relative to the diversity of cardiopulmonary conditions encountered in practice.
Q: What future enhancements are planned for the SecureAI Stethoscope?
Planned enhancements include clinical trials, transition to deep learning (CNNs on spectrograms), dataset expansion, and mobile application support.
The first is clinical trials... The second is dataset expansion... The third is mobile application support.
Key Results
Heart sound classification achieved 95% accuracy, 96.88% precision, 93% recall, and 94.9% F1-score.
Lung sound classification achieved 94% accuracy, 92.7% macro precision, and median end-to-end prediction times of 65–78 ms per sample.
Visual Evidence

Figure 2: Heart vs lung classification metrics (%) for accuracy, precision, recall, F1
Clinical Snapshot
Evidence Rating
Relevance
medium Priority