A Machine Learning Approach Towards the Quality Assessment of ECG Signals Collected Using Wearable Devices for Firefighters
Abstract
:1. Introduction
1.1. Risks Faced by First Responders
1.2. Challenges in Wearable Technology for Firefighters
1.3. Related Work
1.3.1. ECG Signal Quality Assessment Overview
1.3.2. ML-Based Methods for SQA
1.3.3. Deep Learning for SQA
- ECG data with visible PQRST waves or visible QRS complexes only and data where these features cannot be utilized for analysis.
- ECG data with visible PQRST waves.
- ECG data classified into categories of visible PQRST waves, visible QRS waves only, or unsuitable for analysis.
1.3.4. Wearable Device Integration
1.4. Summary
1.5. Objectives and Structure
2. Materials and Methods
2.1. ECG Dataset
2.2. Pre-Processing of ECGs
- Data Analysis (Assessment Criteria) [11]:
- Acceptable (1):
- -
- The ECG rhythm is clear; each QRS waveform can be distinguished with the naked eyes.
- -
- Low-intensity high-frequency noise; the R waves in the signal can be recognized accurately.
- -
- No more than 2 high-frequency impulse noises occur in the observation window.
- Unacceptable (0):
- -
- Full of noise.
- -
- More than 2 R-peaks in the observation window cannot be distinguished.
- Application of the BioSPPy Library: In order to obtain the ground truth, the existing function—called ecg.ecg—from the BioSPPy library was used to change the signal before proceeding with the description of the various cardiac features. The main purpose of using this function was to guarantee that the signal would be deemed of sufficiently high quality for the robust calculation of the cardiac features. In cases of poor signal quality, the corresponding features would be replaced by standard established values.
- If the function ecg from the BioSPPy library returned the error “Not enough beats to compute heart rate” for an ECG segment, this indicated that the signal did not have sufficient recognizable QRS complexes to compute the heart rate. In such cases, the ECG segment was automatically marked as unacceptable (0).
- If this error did not occur, it indicated that the signal was sufficiently clean for cardiac feature extraction. In this scenario, the ECG signal was categorized into the appropriate quality level based on the predefined assessment criteria.
2.3. Computational Environment
- PyEDFLib: Used for reading .edf files containing the raw ECG recordings.
- Scikit-learn: Used for feature scaling, model training (RF classifier), cross-validation (Stratified K-Fold), and performance evaluation (accuracy, precision, recall, and F1 score).
- NumPy and Pandas: Used for the efficient data handling, segmentation, and statistical analysis of ECG signals.
- Matplotlib and Seaborn: Applied for data visualization, including the creation of ECG signal plots and feature distributions.
- BioSPPy: Utilized for ECG pre-processing, R-peak detection, and feature extraction.
2.4. ECG SQIs and Other Features
2.5. Parameter Optimization and Performance Evaluation
2.6. Case Study: Firefighters Under Real Conditions
3. Results
4. Discussion
4.1. Performance Analysis
4.2. Feature Analysis
4.3. Real-Life Conditions Analysis
5. Conclusions
- Sample Size: Expanding the sample size could improve the ability to detect more nuanced differences, such as the impact of age and gender on the ECG signal quality.
- Dataset Diversity: Incorporating a more diverse dataset with both pathological and non-pathological ECG signals, as well as varying types of noise, is essential for developing more effective signal quality models.
- Model Hyperparameters: Further exploration of the hyperparameters for RFs, such as the maximum tree depth and the number of trees, could refine the model’s performance.
- Optimum Overlap: Finding the optimum overlap is crucial to reduce computational complexity.
- Overlap Percentages and Interval Lengths: Further exploration of a broader range of overlap percentages and interval lengths is necessary to optimize ECG signal segmentation.
Author Contributions
Funding
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
Ac | Accuracy |
AF | Atrial Fibrillation |
ACF | AutoCorrelation Function |
CNN | Convolutional Neural Network |
DL | Deep learning |
ECG | Electrocardiogram |
FN | False negative |
FP | False positive |
FR | First Responder |
ML | Machine learning |
NSR | Normal Sinus Rhythm |
OR | Other Rhythm |
OAc | Overlap accuracy |
PCA | Principal Component Analysis |
RF | Random Forest |
Se | Sensitivity |
Sp | Specificity |
SQA | Signal quality assessment |
SQI | Signal quality index |
TN | True negative |
TP | True positive |
References
- Stelios, M.; Mitilineos, S.A.; Chatzistamatis, P.; Vassiliadis, S.; Primentas, A.; Kogias, D.; Michailidis, E.T.; Rangoussi, M.; Kurşun Bahadir, S.; Atalay, Ö.; et al. Physiological parameters monitoring of fire-fighters by means of a wearable wireless sensor system. IOP Conf. Ser. Mater. Sci. Eng. 2015, 108, 012011. [Google Scholar] [CrossRef]
- Carey, M.G.; Thevenin, B.J.M. High-Resolution 12-Lead Electrocardiograms of On-Duty Professional Firefighters: A pilot feasibility study. J. Cardiovasc. Nurs. 2009, 24, 261–267. [Google Scholar] [CrossRef] [PubMed]
- Shakeriaski, F.; Ghodrat, M. Challenges and limitation of wearable sensors used in firefighters’ protective clothing. J. Fire Sci. 2022, 40, 214–245. [Google Scholar] [CrossRef]
- Coimbra, M.; Silva Cunha, J.P. Vital Responder—Wearable Sensing Challenges in Uncontrolled Critical Environments. In Sensor Systems and Software, Proceedings of the Third International ICST Conference, Lisbon, Portugal, 4–5 June 2012; Martins, F., Lopes, L., Paulino, H., Eds.; Springer: Berlin/Heidelberg, Germany, 2012; pp. 45–62. [Google Scholar]
- Varela, E.R. Smart Undergarment for Firefighter Monitoring under Dynamic Conditions; Instituto Superior Técnico: Lisbon, Portugal, 2022. [Google Scholar]
- Bustos, D.; Guedes, J.C.; Santos Baptista, J.; Vaz, M.; Torres Costa, J.; Fernandes, R.J. Physiological Monitoring Systems for Firefighters (A Short Review); Springer International Publishing: Cham, Switzerland, 2022; pp. 293–305. [Google Scholar] [CrossRef]
- Satija, U.; Ramkumar, B.; Sabarimalai Manikandan, M. A Review of Signal Processing Techniques for Electrocardiogram Signal Quality Assessment. IEEE Rev. Biomed. Eng. 2018, 11, 36–52. [Google Scholar] [CrossRef] [PubMed]
- Behar, J.; Oster, J.; Li, Q.; Clifford, G.D. ECG signal quality during arrhythmia and its application to false alarm reduction. IEEE Trans. Biomed. Eng. 2013, 60, 1660–1666. [Google Scholar] [CrossRef] [PubMed]
- Liu, F.; Liu, C.; Zhao, L.; Jiang, X.; Zhang, Z.; Li, J.; Wei, S.; Zhang, Y. Dynamic ECG Signal Quality Evaluation Based on the Generalized bSQI Index. IEEE Access 2018, 6, 41892–41902. [Google Scholar] [CrossRef]
- Fu, F.; Xiang, W.; An, Y.; Liu, B.; Chen, X.; Zhu, S.; Li, J. Comparison of Machine Learning Algorithms for the Quality Assessment of Wearable ECG Signals Via Lenovo H3 Devices. J. Med. Biol. Eng. 2021, 41, 231–240. [Google Scholar] [CrossRef]
- Xu, H.; Yan, W.; Lan, K.; Ma, C.; Wu, D.; Wu, A.; Yang, Z.; Wang, J.; Zang, Y.; Yan, M.; et al. Assessing Electrocardiogram and Respiratory Signal Quality of a Wearable Device (SensEcho): Semisupervised Machine Learning-Based Validation Study. JMIR mHealth and uHealth 2021, 9, e25415. [Google Scholar] [CrossRef] [PubMed]
- Areias Saraiva, J.; Abreu, M.; Carmo, A.S.; Plácido da Silva, H.; Fred, A. ScientISST MOVE: Annotated Wearable Multimodal Biosignals recorded during Everyday Life Activities in Naturalistic Environments. PhysioNet 2024. [Google Scholar] [CrossRef]
- Kuzilek, J.; Huptych, M.; Chudáček, V.; Spilka, J.; Lhotska, L. Data driven approach to ECG signal quality assessment using multistep SVM classification. In Proceedings of the 2011 Computing in Cardiology, Hangzhou, China, 18–21 September 2011; pp. 453–455. [Google Scholar]
- Behar, J.; Oster, J.; Li, Q.; Clifford, G. A single channel ECG quality metric. In Proceedings of the 2012 Computing in Cardiology, Krakow, Poland, 9–12 September 2012; pp. 381–384. [Google Scholar]
- Li, Q.; Rajagopalan, C.; Clifford, G. A machine learning approach to multi-level ECG signal quality classification. Comput. Methods Programs Biomed. 2014, 117, 435–447. [Google Scholar] [CrossRef] [PubMed]
- Zhang, X.; Li, J.; Cai, Z.; Zhao, L.; Liu, C. Deep Learning-Based Signal Quality Assessment for Wearable ECGs. IEEE Instrum. Meas. Mag. 2022, 25, 41–52. [Google Scholar] [CrossRef]
- Huerta, Á.; Martínez-Rodrigo, A.; Rieta, J.J.; Alcaraz, R. ECG Quality Assessment via Deep Learning and Data Augmentation. In Proceedings of the 2021 Computing in Cardiology (CinC), Brno, Czech Republic, 13–15 September 2021; Volume 48, pp. 1–4. [Google Scholar] [CrossRef]
- Wang, Y. An Automated ECG Signal Quality Assessment Method with Supervised Learning Algorithm; Delft University of Technology: Delft, The Netherlands, 2018. [Google Scholar]
- Bota, P.; Silva, R.; Carreiras, C.; Fred, A.; da Silva, H.P. BioSPPy: A Python toolbox for physiological signal processing. SoftwareX 2024, 26, 101712. [Google Scholar] [CrossRef]
- Boucsein, W. Electrodermal Activity, 2nd ed.; Springer Science & Business Media: New York, NY, USA, 2012; ISBN 978-1-4614-1125-3 (Print), 978-1-4614-1126-0 (Online). [Google Scholar]
- Kyriacou, P.A.; Allen, J. (Eds.) Photoplethysmography: Technology, Signal Analysis and Applications; Academic Press: Cambridge, MA, USA, 2021; ISBN 978-0-12-823374-0. [Google Scholar]
- Basmajian, J.V.; De Luca, C.J. Muscles Alive: Their Functions Revealed by Electromyography, 5th ed.; Williams & Wilkins: Baltimore, MD, USA, 1985; ISBN 978-0-683-00414-8. [Google Scholar]
- Rahman, S.; Karmakar, C.; Natgunanathan, I.; Yearwood, J.; Palaniswami, M. Robustness of electrocardiogram signal quality indices. J. R. Soc. Interface 2022, 19, 20220012. [Google Scholar] [CrossRef]
- Zhao, Z.; Zhang, Y. SQI Quality Evaluation Mechanism of Single-Lead ECG Signal Based on Simple Heuristic Fusion and Fuzzy Comprehensive Evaluations. Front. Physiol. 2018, 9, 727. [Google Scholar] [CrossRef]
- Nardelli, M.; Lanata, A.; Valenza, G.; Felici, M.; Baragli, P.; Scilingo, E. A tool for the real-time evaluation of ECG signal quality and activity: Application to submaximal treadmill test in horses. Biomed. Signal Process. Control 2020, 56, 101666. [Google Scholar] [CrossRef]
- Liu, Y.; Zhang, H.; Zhao, K.; Liu, H.; Long, F.; Chen, L.; Yang, Y. An Automatic ECG Signal Quality Assessment Method Based on Resnet and Self-Attention. Appl. Sci. 2023, 13, 1313. [Google Scholar] [CrossRef]
- Ma, C.; Wang, Z.; Zhao, L.; Long, X.; Vullings, R.; Aarts, R.; Li, J.; Liu, C. Deep Learning-based Signal Quality Assessment in Wearable ECG Monitoring. Appl. Sci. 2023. [Google Scholar] [CrossRef]
Dataset | Year | Number of Recordings/Segments | Number of Leads | Quality Annotations | Arrhythmia Annotations | Additional Information |
---|---|---|---|---|---|---|
PhysioNet/CinC Challenge 2011 1 | 2011 | 1539 of 10 s | 12 | “Acceptable”, “Unacceptable” | None | Sampled at 500 Hz with 16-bit resolution. |
PhysioNet/CinC Challenge 2017 2 | 2017 | 8528 from 30 to 60 s | 1 | Indication of noise presence or absence | AF, Normal Sinus Rhythm (NSR), Other Rhythm (OR) | Collected with an AliveCor hand-held ECG device; sampled at 300 Hz and bandpass-filtered by the AliveCor device. |
MIT-BIH Arrhythmia 3 | 1980 | 48 of 30 min | 2 | Indication of noise presence or absence | 15 arrhythmias | Ambulatory ECG recordings were digitized at 360 samples per second. |
MIMIC II 4 | 2007 | 25,328 of different lengths | Not specified | Indication of noise presence or absence | AF, NSR, OR | Sampled at 125 samples per second. |
China Physiological Signal Challenge 2020 5 | 2020 | 10,330 | 12 | Indication of noise presence or absence | AF, NSR, OR | Collected by a unified wearable ECG device with a sampling frequency of 400 Hz. |
Lenovo [10] | 2020 | 9000 of 10 s | 3 | Indication of noise presence or absence | AF, NSR, OR | Collected with a Lenovo H3 wearable ECG device at a sampling rate of 400 Hz. |
Sensecho [11] | 2021 | 8146 of 10 s | Not specified | “Good”, “Acceptable”, “Unacceptable” | None | Collected by a SensEcho wearable device. |
ScientISST MOVE [12] | 2024 | 17 participants, avg. of 37 min each | 1 | Not specified | Not specified | Data collected using the ScientISST device during everyday activities, with a sampling frequency of 500 Hz. Includes annotations of everyday activities. |
Domain | Feature | Explanation |
---|---|---|
Time | Standard deviation of RR intervals (SDRR) | Standard deviation of the intervals between consecutive R-peaks. |
Variability of R-peaks compared to maximum amplitude (MaxRR) | Ratio of the maximum amplitude of R-peaks to the maximum amplitude of the signal. | |
Inter-beat variability (InterV) | Average standard deviation of each time point across all heartbeat templates, quantifying the variability between different heartbeat patterns. | |
Intra-beat variability (IntraV) | Average standard deviation computed within each heartbeat template, quantifying the variability in the shape or pattern of each beat. | |
Flatline percentage (FlatP) | Percentage of the signal where the amplitude is below a certain threshold. | |
SQI | Quality | Numeric representation of overall ECG quality based on multiple SQIs (qSQI, pSQI, kSQI, and basSQI). |
hosSQI | Combination of the skewness quality index absolute value (sSQI) and the kurtosis quality index (kSQI). | |
cSQI | Ratio of the standard deviation to the mean of RR intervals. |
Interval Length (Seconds) | |||||||
---|---|---|---|---|---|---|---|
Metric | Overlap | 5 | 6 | 7 | 8 | 9 | 10 |
Accuracy | 50% | 0.860 | 0.853 | 0.869 | 0.858 | 0.865 | 0.879 |
60% | 0.857 | 0.867 | 0.858 | 0.862 | 0.871 | 0.871 | |
70% | 0.855 | 0.865 | 0.859 | 0.865 | 0.872 | 0.867 | |
80% | 0.863 | 0.859 | 0.861 | 0.864 | 0.858 | 0.866 | |
90% | 0.862 | 0.865 | 0.854 | 0.862 | 0.862 | 0.863 | |
Precision | 50% | 0.896 | 0.902 | 0.909 | 0.899 | 0.907 | 0.918 |
60% | 0.902 | 0.910 | 0.910 | 0.904 | 0.906 | 0.910 | |
70% | 0.897 | 0.909 | 0.907 | 0.906 | 0.907 | 0.907 | |
80% | 0.904 | 0.905 | 0.906 | 0.906 | 0.902 | 0.906 | |
90% | 0.902 | 0.905 | 0.907 | 0.904 | 0.903 | 0.903 | |
Recall | 50% | 0.830 | 0.812 | 0.838 | 0.827 | 0.831 | 0.844 |
60% | 0.819 | 0.828 | 0.812 | 0.829 | 0.846 | 0.838 | |
70% | 0.819 | 0.826 | 0.819 | 0.831 | 0.846 | 0.835 | |
80% | 0.827 | 0.818 | 0.823 | 0.830 | 0.819 | 0.832 | |
90% | 0.826 | 0.827 | 0.805 | 0.826 | 0.827 | 0.830 | |
F1 Score | 50% | 0.849 | 0.836 | 0.859 | 0.846 | 0.852 | 0.866 |
60% | 0.843 | 0.853 | 0.841 | 0.849 | 0.863 | 0.860 | |
70% | 0.841 | 0.852 | 0.845 | 0.853 | 0.863 | 0.855 | |
80% | 0.851 | 0.845 | 0.848 | 0.851 | 0.843 | 0.853 | |
90% | 0.850 | 0.852 | 0.836 | 0.849 | 0.849 | 0.851 |
ECG Signal Quality | Number of Segments |
---|---|
Unacceptable (0) | 3207 |
Acceptable (1) | 3261 |
Total | 6468 |
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
Abreu, C.; Silva, H.P.d. A Machine Learning Approach Towards the Quality Assessment of ECG Signals Collected Using Wearable Devices for Firefighters. Signals 2025, 6, 20. https://doi.org/10.3390/signals6020020
Abreu C, Silva HPd. A Machine Learning Approach Towards the Quality Assessment of ECG Signals Collected Using Wearable Devices for Firefighters. Signals. 2025; 6(2):20. https://doi.org/10.3390/signals6020020
Chicago/Turabian StyleAbreu, Camila, and Hugo Plácido da Silva. 2025. "A Machine Learning Approach Towards the Quality Assessment of ECG Signals Collected Using Wearable Devices for Firefighters" Signals 6, no. 2: 20. https://doi.org/10.3390/signals6020020
APA StyleAbreu, C., & Silva, H. P. d. (2025). A Machine Learning Approach Towards the Quality Assessment of ECG Signals Collected Using Wearable Devices for Firefighters. Signals, 6(2), 20. https://doi.org/10.3390/signals6020020