A User Fatigue Prediction System Based on Heart Rate and SpO₂ Data from Smartwatch on Android Platform

Authors

  • Ridho Nur Fahrendy fahrendy Politeknik Negeri Samarinda
  • Fara Triadi Politeknik Negeri Samarinda
  • Agus Triyono Politeknik Negeri Samarinda

DOI:

https://doi.org/10.59934/jaiea.v6i1.2795

Keywords:

Android, fatigue prediction, heart rate, LSTM, smartwatch, SpO₂

Abstract

The high demands of modern activities frequently lead to fatigue, a condition that diminishes physical and cognitive capacity while elevating the risk of human error. Smartwatches equipped with physiological sensors offer continuous, non-invasive health monitoring, presenting an opportunity for early fatigue detection. This study developed an Android application that predicts user fatigue status by analyzing heart rate (BPM) and blood oxygen saturation (SpO₂) data recorded by a smartwatch. A machine learning model based on Long Short-Term Memory (LSTM) was trained on a public dataset to recognize fatigue patterns, then converted to TensorFlow Lite format for on-device integration. The application retrieves historical BPM and SpO₂ data through Health Connect API and classifies the user's condition as either Normal or Fatigued. Offline evaluation yielded 100% accuracy on test data; however, this performance was identified as an artifact of overfitting caused by deterministic synthetic labeling rules. On-device inference encountered compatibility issues with TensorFlow Lite runtime, preventing successful execution of the LSTM model on Android. Despite this limitation, the study demonstrates the feasibility of bridging heterogeneous wearable ecosystems and highlights critical technical challenges in deploying recurrent neural networks on mobile devices.

Downloads

Download data is not yet available.

References

S. Díaz-Santos and P. Caballero-Gil, "Drowsiness detection in drivers with a smartwatch," arXiv preprint arXiv:2210.04066, 2022.

K. Lu, A. Sjörs Dahlman, J. Karlsson, and S. Candefjord, "Detecting driver fatigue using heart rate variability: A systematic review," Accident Analysis & Prevention, vol. 178, p. 106830, 2022.

S. Jiba and M. H. Mazlan, "Wearable health monitoring device based on IoT application for forklift driver," Evolution in Electrical and Electronic Engineering, vol. 3, no. 1, pp. 191–198, 2022.

M. F. Utomo and Sulhatun, "Eksplorasi peran smartwatch Android berbasis IoT dalam bidang kesehatan," Jurnal Sains Dan Teknologi 4.0, vol. 1, no. 2, pp. 15–23, 2024.

L. Lu, J. Zhang, Y. Xie, F. Gao, S. Xu, X. Wu, and Z. Ye, "Wearable health devices in health care: Narrative systematic review," JMIR mHealth and uHealth, vol. 8, no. 11, p. e18907, 2020.

J. B. Madavarapu, "HOT Watch: IoT-based wearable health monitoring system," IEEE Sensors Journal, vol. 24, no. 20, pp. 33252–33259, 2024.

R. Castaldo, P. Melillo, U. Bracale, M. Caserta, M. Triassi, and L. Pecchia, "Acute mental stress assessment via short term HRV analysis in healthy adults: A systematic review with meta-analysis," Biomedical Signal Processing and Control, vol. 18, pp. 370–377, 2015.

K. Mizuno, M. Tanaka, K. Yamaguti, O. Kajimoto, H. Kuratsune, and Y. Watanabe, "Mental fatigue caused by prolonged cognitive load associated with sympathetic hyperactivity," Behavioral and Brain Functions, vol. 7, p. 17, 2011.

M. Alruwaili, M. H. Siddiqi, K. Farid, M. Azad, S. Alanazi, A. Khan, and A. Khan, "A health monitoring system using IoT-based Android mobile application," Computer Systems Science and Engineering, vol. 47, no. 2, pp. 2293–2311, 2023.

V. Marce-Santurio, J. L. Moyano-Cuevas, and F. Lobillo, "Interoperability of mobile health applications," Journal of Medical Systems, vol. 43, no. 7, p. 178, 2019.

P. Davidson, P. Düking, C. Zinner, B. Sperlich, and A. Hotho, "Smartwatch-derived data and machine learning algorithms estimate classes of ratings of perceived exertion in runners: A pilot study," Sensors, vol. 20, no. 9, p. 2637, 2020.

J. Liang, X. Chen, and Y. Zhang, "Deep learning-based driver fatigue detection using wearable data," 2019.

Z. F. Reza and T. Suryana, "Aplikasi monitoring kesehatan dengan memanfaatkan smartwatch berbasis Android," JUPITER: Jurnal Penelitian Mahasiswa Teknik Dan Ilmu Komputer, vol. 2, no. 2, pp. 85–92, 2022.

F. Karim, S. Majumdar, H. Darabi, and S. Harford, "LSTM fully convolutional networks for time series classification," IEEE Access, vol. 6, pp. 1662–1669, 2018.

B. Bent, B. A. Goldstein, W. A. Kibbe, and J. P. Dunn, "Investigating sources of inaccuracy in wearable optical heart rate sensors," npj Digital Medicine, vol. 3, no. 1, p. 18, 2020.

Android Developers, "Health Connect API," 2024. [Online]. Available: https://developer.android.com/health-and-fitness/guides/health-connect

R. Castaldo, "Mental fatigue impairs sport performance: A systematic review," Journal of Sports Medicine and Physical Fitness, vol. 59, no. 12, pp. 2030–2039, 2019.

Chaudhuri and P. O. Behan, "Fatigue in neurological disorders," The Lancet, vol. 363, no. 9413, pp. 978–988, 2004.

Google Developers, "Google Fit APIs," 2024. [Online]. Available: https://developers.google.com/fit/overview

E. Grandjean, Fitting the Task to the Man: A Textbook of Occupational Ergonomics. Taylor & Francis, 1988.

Downloads

Published

2026-10-15

How to Cite

fahrendy, R. N. F., Fara Triadi, & Agus Triyono. (2026). A User Fatigue Prediction System Based on Heart Rate and SpO₂ Data from Smartwatch on Android Platform. Journal of Artificial Intelligence and Engineering Applications (JAIEA), 6(1), 554–563. https://doi.org/10.59934/jaiea.v6i1.2795