Introduction
Chronic respiratory diseases, such as COPD and asthma, affect hundreds of millions of people globally. Early diagnosis and regular monitoring are critical for managing these conditions, yet clinical spirometry equipment is often expensive and non-portable. While smartphone-based solutions have been proposed, they suffer from high variability due to user posture and environmental noise.
SpiroMask addresses these challenges by retrofitting consumer-grade N95 and cloth masks with a MEMS microphone. By turning the mask into a "controlled acoustic environment," the system provides a consistent and reliable method for monitoring lung function. SpiroMask accurately estimates clinical spirometry parameters and respiration rates within the strict error margins set by the American Thoracic Society (ATS).
System Design and Methodology
The SpiroMask hardware-software pipeline is centered around an Arduino Nano 33 BLE Sense attached to the interior of a standard mask. The system processes audio signals through two distinct functional pipelines to provide comprehensive lung health monitoring.
1. Forced Breathing Pipeline (Spirometry)
To estimate clinical parameters like lung volume, the system utilizes the Hilbert Transform to extract the acoustic envelope of a forceful exhalation. This envelope serves as a proxy for airflow. A suite of features, including MFCCs and temporal features, is then fed into a Random Forest regression model to predict clinical metrics such as FEV1 and FVC.
2. Tidal Breathing Pipeline (Respiration Rate)
For continuous monitoring, a 1D Convolutional Neural Network (CNN) distinguishes between normal breathing, speech, and ambient noise. Once breathing is identified, a peak-detection algorithm calculates the respiration rate from the audio envelope. To preserve user privacy, the system can operate at a low sampling rate of 1 kHz, making speech unintelligible while maintaining accuracy for respiration tracking.
Clinical Parameter Estimation
The primary goal of the spirometry pipeline is to reconstruct the standard curves used in clinical diagnostics. By analyzing the sound of airflow, SpiroMask can approximate the Flow vs. Volume and Volume vs. Time curves typically generated by medical-grade devices.
Experimental Results
The study involved 48 participants, including 14 individuals with existing lung ailments. Clinical data from a medical-grade Helios 401 spirometer served as the ground truth.
- Clinical Accuracy: For N95 masks, the system achieved a Mean Percentage Error (MPE) of 5.82% for FEV1 and 5.98% for FVC, both within the 7% ATS error margin.
- Classification and Rate: The 1D CNN achieved 94.7% accuracy in distinguishing breathing from noise. The Mean Absolute Error (MAE) for respiration rate was as low as 0.49 breaths per minute.
- Efficiency: The system is optimized for edge computing, with an estimated battery life of 13 days on a standard 240 mAh coin cell.
Discussion and Insights
A key technical insight of the research is the superiority of microphones over pressure sensors in this context. In consumer-grade masks, which naturally leak air, pressure changes are often too faint to detect reliably. However, the acoustic signature of airflow remains highly correlated with lung function. Furthermore, the fixed distance between the mouth and the microphone inside the mask eliminates the complex calibration required by handheld mobile apps.
While current limitations include the inability to detect quiet inhalations and potential interference from motion artifacts during activity, SpiroMask represents a significant step toward accessible, low-cost respiratory health monitoring.
Summary updated