Figure 11: SpO
2
calibration curve. The average linear func-
tion is represented in red with the error space represented in
green.
4 CONCLUSIONS
Wearable devices have been promoted and improved
in the last few years. In addition, their application in
the digital measurement of health has gained attention
by researchers, as they allow for continuous data ac-
quisition in real-world scenarios, however, it could be
at the cost of the signal quality.
A solution for an automatic signal quality evalu-
ation in real-time was developed. This solution di-
vided the data into three separate qualities with sev-
eral classification models developed. The multi-class
classifiers achieved an accuracy double than random
chance, similar to other systems found in the litera-
ture. Two binary chained classifiers were also tested
which also had adequate performance, especially dif-
ferentiating bad quality signals from usable signals.
The HR and RR were also extracted from the PPG
signal. Since there is a prior evaluation of the sig-
nal quality, these metrics are only extracted when the
quality exceeds a threshold, thus avoiding abnormal
values. Both algorithms developed resulted in perfor-
mances similar to those found in the literature and in
other devices currently on the market. A SpO
2
ex-
traction algorithm was also developed. Although the
achieved results are promising, more data is needed to
reach statistical significance.
While this work presents promising results, there
are two big improvements that could be made before
applying the developed algorithms in a real-world de-
vice: (1) Expand the database, since a larger sample
size would provide better statistical significance while
evaluating more correctly the models’ ability to gen-
eralize; (2) A deeper feature engineering phase could
significantly improve the results. An alternative could
be the implementation of features from other sensors,
e.g., the accelerometer which was already acquired
but not used. However, it would lead to a solution that
required a larger number of sensors, thus, more pro-
cessing capacity and increased computational power,
which might be limited by wearables capabilities.
REFERENCES
Allen, J. and Kyriacou, P. A. (2021). Photoplethysmogra-
phy: Technology, Signal Analysis and Applications.
Elsevier.
Association, C. T. (2018). Physical activity monitoring for
heart rate (ansi/cta-2065). Technical report, Consumer
Technology Association.
Boehmke, B. and Greenwell, B. (2019). Hands-on machine
learning with R. Chapman and Hall/CRC, 1 edition.
Bonaccorso, G. (2017). Machine learning algorithms: Ref-
erence guide for popular algorithms for Data Science
and Machine Learning. Packt Publishing.
Carreiras, C., Alves, A. P., Lourenc¸o, A., Canento, F., Silva,
H., Fred, A., et al. (2015). BioSPPy: Biosignal pro-
cessing in Python.
Citherlet, T., Crettaz von Roten, F., Kayser, B., and Guex,
K. (2021). Acute Effects of the Wim Hof Breathing
Method on Repeated Sprint Ability: A Pilot Study.
Frontiers in Sports and Active Living, 3.
CONTEC (n.d.). CONTEC CMS50D Pulse Oximeter. Re-
trieved 27 July, 2022 from https://contecmed.com/
productinfo/602627.html.
Henriksen, A., Mikalsen, M. H., Woldaregay, A. Z., Muzny,
M., Hartvigsen, G., Hopstock, L. A., and Grimsgaard,
S. (2018). Using fitness trackers and smartwatches
to measure physical activity in research: Analysis of
consumer wrist-worn wearables. Journal of Medical
Internet Research, 20(3):e110.
International Organization for Standardization (2017).
Medical electrical equipment – particular require-
ments for basic safety and essential performance of
pulse oximeter equipment (ISO 80601-2-61:2017).
Karlen, W., Raman, S., Ansermino, J. M., and Dumont,
G. A. (2013). Multiparameter respiratory rate estima-
tion from the photoplethysmogram. IEEE Transac-
tions on Biomedical Engineering, 60(7):1946–1953.
Nelson, B. W. and Allen, N. B. (2019). Accuracy of con-
sumer wearable heart rate measurement during an eco-
logically valid 24-hour period: Intraindividual valida-
tion study. JMIR mHealth and uHealth, 7(3):e10828.
Petterson, M. T., Begnoche, V. L., and Graybeal, J. M.
(2007). The effect of motion on pulse oximetry and
its clinical significance. Anesthesia and Analgesia,
105(SUPPL. 6):S78–S84.
Prasun, P., Mukhopadhyay, S., and Gupta, R. (2022). Real-
time multi-class signal quality assessment of photo-
plethysmography using machine learning technique.
Measurement Science and Technology, 33(1):015701.
Tamura, T., Maeda, Y., Sekine, M., and Yoshida, M. (2014).
Wearable photoplethysmographic sensors—past and
present. Electronics, 3(2):282–302.
Thompson, W. R. (2022). Worldwide Survey of Fitness
Trends for 2022. ACSM’s Health and Fitness Jour-
nal, 26(1):11–20.
Torp, K. D., Modi, P., and Simon, L. V. (2021). Pulse
oximetry. Retrived 09 Frebruary, 2022, from
https://www.ncbi.nlm.nih.gov/books/NBK470348/.
Machine Learning Algorithm Development and Metrics Extraction from PPG Signal for Improved Robustness in Wearables
185