Real-Time Detection of Industrial Respirator Fit Using Embedded Breath Sensors and Machine Learning Algorithms
Abstract
1. Introduction
1.1. Background
1.2. Limitations of Existing Fit Testing Methods
1.3. Existing Methods and Recent Advances
1.4. Objective and Contribution
1.5. Scope
- Dataset development: This work compiles a curated dataset of breath signals recorded under controlled and semi-controlled conditions that simulate multiple respirator fit scenarios. The dataset captures diverse breathing intensities and patterns using the developed embedded sensor placed inside real industrial respirators.
- Feature engineering and model design: The analysis extracts time-, frequency-, and non-linear-domain features from segmented breath signals. These features support the training and evaluation of machine learning models including Random Forest, Support Vector Machines (SVMs), and XGBoost, to classify respirator fit conditions with high accuracy.
- Validation and real-world testing: The models use ground-truth labels obtained through standardized QLFT procedures for validation. Additional pilot testing simulates industrial tasks with induced mask displacements to evaluate model performance under realistic operational conditions.
- Embedded integration: The system deploys the trained classifiers on a smartphone platform with real-time signal processing. Performance benchmarks confirm low-latency inference and efficient memory usage, enabling deployment in resource-constrained environments.
- Scalability and impact: The solution is general and can be integrated into broader industrial safety systems. Although this work is tested with only one type of respirator, it should work correctly on any since the sensor is adaptable. Its non-invasive design, affordability, and ease of use support large-scale implementation in workplaces with elevated respiratory risk.
2. Materials and Methods
2.1. Physiological Basis and Multimodal Biosensing Rationale
2.2. System Architecture
- STM32L422KBU6 MCU, 12 MHz, 40 kB SRAM, and 128 kB flash.
- STM BLUENRG-M2SA BLE module.
- Bosch BME280, pressure, temperature, and humidity sensor.
- 140 mAh/3.7 V Li-Po battery, Microchip (Chandler, AZ, USA) MCP73831 battery management circuit, and TI TLV75533 voltage regulator.
- 4-layer, 0.8 mm thickness PCB.
- N52-grade 6.43 mm × 1.64 mm disk magnet.
- Custom-made 3D-printed resin casing.
2.3. Experimental Setup
- Quantitative Assessment: The embedded sensor captures continuous breathing signals during controlled tests simulating real-use scenarios. Then, the measurements are segmented into breathing cycles (one breathing cycle constitutes inspiration and exhalation), from which a range of time-domain, frequency-domain, and non-linear features are extracted. Machine learning classifiers—including Random Forest, SVM, and XGBoost—analyze these features to infer the level of fit integrity. This approach enables objective, high-resolution detection of subtle changes in breathing patterns associated with poor sealing, including pressure fluctuations, humidity spikes, and temperature drift.
- Qualitative Assessment: A certified supervisor conducts OSHA-standardized qualitative fit tests [3] using a saccharin aerosol delivered via the 3M™ FT-20 kit [27]. The protocol evaluates the respirator’s ability to maintain a proper seal through a sequence of activities (e.g., breathing, head movement, speaking, bending over), each lasting 1 min. Detection of the sweet-tasting aerosol by the user at any point classifies the condition of the respirator as poor fit, while the absence of taste throughout all test steps confirms a well-fit condition.
- The qualitative fit test functions as a regulatory ground-truth benchmark, identifying gross seal failures through the subjective detection of aerosol ingress during dynamic conditions.
- The quantitative assessment continuously monitors internal breathing signals at a high temporal resolution, enabling the detection of transient or gradual leakage patterns that may elude brief qualitative assessments.
- Combining both methods strengthens model validation: qualitative outcomes anchor binary fit classifications, while quantitative data capture nuanced variations across different breathing styles, respirator types, and environmental conditions. This dual-assessment approach enhances the robustness of the developed algorithms, ensuring alignment with both real-world usage and regulatory compliance requirements.
- Perform a positive-pressure seal check and select a properly fitted respirator. The positive-pressure test is commonly used in industrial environments to rapidly check the respirator fit. The user needs to cover the respirator outlet with their hand and then exhale. If the user feels that the respirator is inflated but no air is leaked, then the respirator is well sealed. If the user feels that air leaks from the respirator edges, then the respirator is classified as poor fit.
- Perform the OSHA qualitative fit test.
- Record for 6 min with the respirator properly fitted.
- Record for 2 min with a small-diameter (∼5 mm) hollow tube inserted on one side to simulate a minor leakage.
- Record for 2 min with the respirator worn loosely.
- Record for 2 min with the respirator held slightly away from the face.
- Record for 2 min with the respirator properly fitted while reading aloud.
- Record for 2 min with the respirator worn loosely while reading aloud.
- Repeat the OSHA qualitative test using a respirator that does not provide an effective seal (oversized or undersized).
2.4. Feature Engineering
- Temporal Ratio Feature (1 Feature): Deviations from normal timing patterns can indicate airflow obstructions or minor leaks. Particularly useful for detecting loose or displaced respirators. Inspiratory and Expiratory Time Proportion (%): Represents the ratio of inspiration duration to the total breathing-cycle time.
- Peak-to-Peak Amplitude (3 Features): Captures the amplitude range of signal oscillations per cycle. These features are critical for identifying attenuated breathing efforts, which are characteristic of improper sealing or mask displacement: peak-to-peak of pressure signal, peak-to-peak of humidity signal, and peak-to-peak of temperature signal.
- Mean Values per Breathing Phase (6 Features): Reflect baseline signal levels associated with airflow patterns and metabolic exchange. Support differentiation between normal breathing cycles and interrupted airflow due to leaks. Inspiratory Mean (pressure, humidity, temperature) and Expiratory Mean (pressure, humidity, temperature).
- Standard Deviation (3 Features): Measures cycle-to-cycle variability and turbulence. Helps in identifying irregular patterns caused by loose masks, filter obstruction, or speaking interference. Pressure, humidity, and temperature standard deviations.
- Skewness (3 Features): Quantifies asymmetry in signal distribution. Often indicative of delayed inspiration, abrupt expiration, or partial-seal conditions. Pressure, humidity, and temperature skewness.
- Kurtosis (3 Features): Describes the “peakedness” of the signal. Useful for distinguishing between structured respiratory efforts and flattened, dampened patterns associated with leakage or mask loosening. Pressure, humidity, and temperature kurtosis.
- Median Values (3 Features): Provide a robust central tendency measure that is less sensitive to outliers. Enhance model stability in scenarios with fluctuating signal noise. Pressure, humidity, and temperature medians.
2.5. Algorithm Development and Model Validation
- RF: RF’s ensemble structure makes it robust to noisy data, which is prevalent in real-world industrial environments. Its interpretability through feature importance measures provides transparent decision-making, critical for safety compliance.
- SVM: SVM is effective for small-to-medium datasets with high-dimensional feature spaces. Its capability to construct complex, non-linear decision boundaries makes it suitable for distinguishing subtle fit anomalies caused by varying breathing patterns or minor leaks. Additionally, SVM’s compact model size favors real-time deployment on embedded platforms.
- XGBoost: XGBoost is highly effective for structured, tabular data, offering state-of-the-art classification accuracy and resilience to feature heterogeneity. Its built-in feature importance metrics (SHAP values) enhance interpretability, while its configurable complexity allows optimization for inference efficiency on resource-limited devices.
- High classification accuracy and robustness to signal variability.
- Low inference latency suitable for real-time alerts.
- Model transparency and explainability for safety-critical applications.
- Scalability across diverse user profiles and respirator types.
- k-Fold Cross-Validation (k = 5): Evaluated model generalization across randomized data partitions.
- Leave-One-Subject-Out (LOSO) Cross-Validation: Simulated deployment scenarios by testing the model’s ability to generalize to unseen subjects.
- RF: Tuned number of estimators, maximum tree depth, and minimum samples per leaf.
- SVM (RBF Kernel): Tuned regularization parameter (C) and kernel coefficient (gamma).
- XGBoost: Tuned learning rate, maximum tree depth, number of boosting rounds, and subsample ratio.
2.6. Signal Preprocessing
- Bandpass Filtering: A fourth-order Butterworth bandpass filter was applied to each signal to eliminate noise outside the physiological breathing frequency range. The Nyquist frequency was computed by halving the sampling rate, and the cutoff frequencies were normalized accordingly. The filter suppressed very-low-frequency drifts (below 0.1 Hz) and -high-frequency noise (above 0.42 Hz), ensuring that only relevant respiratory components were preserved.
- Z-Score Normalization: Finally, each signal was standardized using z-score normalization, ensuring that the resulting signal had a mean of zero and a standard deviation of one. This step homogenized the scale of features across different sensors and test sessions, facilitating robust feature extraction and model training.
2.7. Breathing-Cycle Segmentation
- Inspiratory Time Ratio (insp): The proportion of the cycle from the initial peak to the valley.
- Expiratory Time Ratio (exp): The proportion from the valley to the final peak.
2.8. Fixed-Length Sliding Window and Respiratory-Cycle Segmentation Approaches
3. Results
3.1. Experimental Data Characteristics of Respirator Fit Test Protocols and Model
- Subjects: 20 total, tested under controlled conditions.
- Test duration per subject: ∼50 min.
- Average breathing rate: 12–14 breaths per minute.
- Total breathing cycles per subject: ∼600–700.
- Total dataset size: ∼12,000–14,000 labeled cycles across all subjects.
3.2. Binary Fit Classification and Model Validation Results
- Each sample corresponds to a consistent physiological meaning, allowing models to learn meaningful patterns tied to specific breathing mechanics (e.g., flow shape, phase durations, amplitude asymmetries);
- In contrast, sliding windows may cut across cycle boundaries, leading to heterogeneous samples that mix signals from different breathing states—which confuses classifiers and reduces their discriminative power.
- Capture dynamic changes in inspiration/expiration ratios, waveform slopes, and timing irregularities;
- Exploit inter-cycle variability and pathological signatures (e.g., shallow breathing, or dyssynchrony) that may not align well with rigid windowing. This flexibility results in higher model robustness and better generalization in both K-fold (randomized samples) and LOSO (subject-wise generalization).
- Cycle-based features generalize well across both random splits (K-fold) and unseen subjects (LOSO);
- The segmentation strategy itself acts as a form of domain adaptation, normalizing differences in breathing rates and signal morphology across subjects.
4. Discussion
5. Conclusions
6. Patents
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- U.S. Bureau of Labor Statistics. Industry Injury and Illness Data—SNR07. Illness Cases by Category of Illness—Rates, Counts, and Percent—Industry Division—2020. 2020. Available online: https://www.bls.gov/iif/oshsum.htm#01Illness_Data (accessed on 25 September 2022).
- U.S. Bureau of Labor Statistics. Census of Fatal Occupational Injuries (CFOI)—Current and Revised Data—Industry by Event of Exposure, 2020. 2020. Available online: https://www.bls.gov/iif/oshcfoi1.htm (accessed on 25 September 2022).
- Occupational Safety and Health Administration (OSHA). Appendix A to § 1910.134—Fit Testing Procedures (Mandatory) Part I. OSHA-Accepted Fit Test Protocols; Occupational Safety and Health Administration, U.S. Department of Labor: Washington, DC, USA, 2004.
- ISO-16975; Respiratory Protective Devices—Selection, Use and Maintenance. Part 3: Fit-Testing Procedures. International Organization for Standardization (ISO): Geneva, Switzerland, 2017.
- Aram, S.A.; Saalidong, B.M.; Appiah, A.; Utip, I.B. Occupational health and safety in mining: Predictive probabilities of personal protective equipment (PPE) use among artisanal goldminers in Ghana. PLoS ONE 2021, 16, e0257772. [Google Scholar] [CrossRef]
- Cheberiachko, S.; Yavorska, O.; Deriuhin, O.; Yavorskyi, A. Evaluation of the probability of miner protection while using filtering respirators. E3S Web Conf. 2020, 201, 01021. [Google Scholar] [CrossRef]
- Drwięga, A.; Williamson, B.; Foster, P.; Lesiak, K. Effectiveness of half masks for respiratory health protection in coal mining. Min. Mach. 2021, 39, 2–17. [Google Scholar]
- Occupational Safety and Health Administration (OSHA). Additional PortaCount Quantitative Fit-Testing Protocols: Amendment to Respiratory Protection Standard. Fed. Regist. 2016, 81, 69740–69751. Available online: https://www.osha.gov/laws-regs/federalregister/2016-10-07-0 (accessed on 10 September 2025).
- Zheng, Y.N.; Yu, Z.; Mao, G.; Li, Y.; Pravarthana, D.; Asghar, W.; Liu, Y.; Qu, S.; Shang, J.; Li, R.W. A wearable capacitive sensor based on ring/disk-shaped electrode and porous dielectric for noncontact healthcare monitoring. Glob. Chall. 2020, 4, 1900079. [Google Scholar] [CrossRef] [PubMed]
- Luis, J.; Roa Romero, L.; Gómez-Galán, J.; Hernández, D.; Estudillo-Valderrama, M.; Barbarov-Rostán, G.; Rubia-Marcos, C. Design and implementation of a smart sensor for respiratory rate monitoring. Sensors 2014, 14, 3019–3032. [Google Scholar] [CrossRef] [PubMed]
- Al-Halhouli, A.; Al-Ghussain, L.; Bouri, S.; Liu, H.; Zheng, D. Clinical evaluation of stretchable and wearable inkjet-printed strain gauge sensor for respiratory rate monitoring at different measurement locations. J. Clin. Monit. Comput. 2021, 35, 453–462. [Google Scholar] [CrossRef] [PubMed]
- Massaroni, C.; Di Tocco, J.; Bravi, M.; Carnevale, A.; Lo Presti, D.; Sabbadini, R.; Miccinilli, S.; Sterzi, S.; Formica, D.; Schena, E. Respiratory monitoring during physical activities with a multi-sensor smart garment and related algorithms. IEEE Sens. J. 2020, 20, 2173–2180. [Google Scholar] [CrossRef]
- Lo Presti, D.; Massaroni, C.; D’Abbraccio, J.; Massari, L.; Caponero, M.; Longo, U.G.; Formica, D.; Oddo, C.M.; Schena, E. Wearable system based on flexible FBG for respiratory and cardiac monitoring. IEEE Sens. J. 2019, 19, 7391–7398. [Google Scholar] [CrossRef]
- Shen, C.L.; Huang, T.H.; Hsu, P.C.; Ko, Y.C.; Chen, F.L.; Wang, W.C.; Kao, T.; Chan, C.T. Respiratory rate estimation by using ECG, impedance, and motion sensing in smart clothing. J. Med. Biol. Eng. 2017, 37, 826–842. [Google Scholar] [CrossRef]
- Chapman, D.; Strong, C.; Tiver, K.D.; Dharmaprani, D.; Jenkins, E.; Ganesan, A.N. Infra-red imaging to detect respirator leak in healthcare workers during fit-testing clinic. IEEE Open J. Eng. Med. Biol. 2024, 5, 198–204. [Google Scholar] [CrossRef] [PubMed]
- Kwon, K.; Lee, Y.J.; Jung, Y.; Soltis, I.; Na, Y.; Romero, L.; Kim, M.C.; Rodeheaver, N.; Kim, H.; Lee, C.; et al. Smart filtering facepiece respirator with self-adaptive fit and wireless humidity monitoring. Biomaterials 2025, 314, 122866. [Google Scholar] [CrossRef]
- Aqueveque, P.; Díaz, M.; Gomez, B.; Osorio, R.; Pastene, F.; Radrigan, L.; Morales, A. Embedded electronic sensor for monitoring of breathing activity, fitting and filter clogging in reusable industrial respirators. Biosensors 2022, 12, 991. [Google Scholar] [CrossRef]
- Xu, X.; Zhao, L.; Zhu, Y.; Du, B.; Zhu, B.; Zhang, H.; Han, L.; Liu, X. Conducting quantitative mask fit tests: Application details and affecting factors. Front. Public Health 2023, 11, 1218191. [Google Scholar] [CrossRef]
- Carpenter, D.R.; Johnson, A.T. Quantitative respirator fit testing using dynamic pressure measurements. Ann. Occup. Hyg. 2020, 64, 567–575. [Google Scholar]
- Roberge, R.J.; Kim, J.H.; Benson, S.M. N95 filtering facepiece respirator deadspace temperature and humidity. J. Occup. Environ. Hyg. 2012, 9, 166–171. [Google Scholar] [CrossRef]
- Cherrie, J.W.; Apsley, A.; Cowie, H.; Steinle, S. In-mask temperature and humidity can validate respirator wear-time. Ann. Work Expo. Health 2018, 62, 420–426. [Google Scholar] [CrossRef]
- Roberge, R.J. Thermal burden of N95 filtering facepiece respirators. Ann. Occup. Hyg. 2013, 57, 766–776. [Google Scholar] [CrossRef]
- Carpagnano, G.E.; Lacedonia, D.; Foschino-Barbaro, M.P.; Scioscia, G.; Valerio, V.; Cotugno, G.; Barbaro, M.P. Validation of the exhaled breath temperature measure: Relationship with airway inflammation in healthy subjects. Chest 2017, 152, 162–168. [Google Scholar] [CrossRef]
- Mansour, E.; Badr, T.; Khater, A.; Abdelrahman, M.; Omar, H. Measurement of temperature and relative humidity in exhaled breath: Clinical and environmental influences. Respir. Physiol. Neurobiol. 2020, 275, 103387. [Google Scholar] [CrossRef]
- Larsen, P.; Heebøll, J.; Meyer, K.E. Measured Air Flow Leakage in Facemask Usage. Int. J. Environ. Res. Public Health 2023, 20, 2363. [Google Scholar] [CrossRef] [PubMed]
- Peetz, D.; Murray, G.; Muurlink, O. Work and Hours Amongst Mining and Energy Workers; Centre for Work, Griffith University: Queensland, Australia, 2012. [Google Scholar]
- 3M. Training and Fit Testing Kits. Available online: https://www.3m.com/3M/en_US/p/d/b00034243/ (accessed on 16 May 2025).











| Class | Protocol Conditions | Duration per Subject | Est. Cycles |
|---|---|---|---|
| Fit | Proper fit (6 + 3 min), reading aloud (2 min), OSHA test with good seal (10 min) | ∼21 min | ∼252–294 |
| Not Fit | Simulated leak (2 min), loose fit (2 min), displaced mask (2 min), OSHA failed test (10 min) | ∼16 min | ∼192–224 |
| Other | Transitions, calibration, resting, non-labeled breathing | ∼13 min | — |
| Model | Validation | Sliding Window (Mean ± SD) | Cycle-Based (Mean ± SD) |
|---|---|---|---|
| RF | K-Fold | 85.86 ± 5.64 | 96.08 ± 2.26 |
| SVM | K-Fold | 85.67 ± 6.38 | 96.76 ± 2.02 |
| XGBoost | K-Fold | 89.09 ± 4.25 | 96.90 ± 2.71 |
| RF | LOSO | 86.25 ± 18.24 | 96.94 ± 5.13 |
| SVM | LOSO | 85.41 ± 21.42 | 97.78 ± 4.37 |
| XGBoost | LOSO | 87.29 ± 14.65 | 97.56 ± 6.24 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Aqueveque, P.; Pinacho-Davidson, P.; Ramos, E.; Sobarzo, S.; Pastene, F.; Morales, A.S. Real-Time Detection of Industrial Respirator Fit Using Embedded Breath Sensors and Machine Learning Algorithms. Biosensors 2025, 15, 745. https://doi.org/10.3390/bios15110745
Aqueveque P, Pinacho-Davidson P, Ramos E, Sobarzo S, Pastene F, Morales AS. Real-Time Detection of Industrial Respirator Fit Using Embedded Breath Sensors and Machine Learning Algorithms. Biosensors. 2025; 15(11):745. https://doi.org/10.3390/bios15110745
Chicago/Turabian StyleAqueveque, Pablo, Pedro Pinacho-Davidson, Emilio Ramos, Sergio Sobarzo, Francisco Pastene, and Anibal S. Morales. 2025. "Real-Time Detection of Industrial Respirator Fit Using Embedded Breath Sensors and Machine Learning Algorithms" Biosensors 15, no. 11: 745. https://doi.org/10.3390/bios15110745
APA StyleAqueveque, P., Pinacho-Davidson, P., Ramos, E., Sobarzo, S., Pastene, F., & Morales, A. S. (2025). Real-Time Detection of Industrial Respirator Fit Using Embedded Breath Sensors and Machine Learning Algorithms. Biosensors, 15(11), 745. https://doi.org/10.3390/bios15110745

