Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : nuansa informatika

TinyML-Based Stress Detection Using Time-Domain HRV Features and a Lightweight DNN on ESP32: Deteksi Stres Berbasis TinyML Menggunakan Fitur HRV Domain Waktu dan DNN Ringan pada ESP32 Sarmayanta Sembiring; Kemahyanto Exaudi; Abdurahman -; Jorena; Hadir Kaban; M. Buffon Prima; Rahmat Fadli Isnanto
NUANSA INFORMATIKA Vol. 20 No. 2 (2026): Nuansa Informatika 20.2 July 2026
Publisher : FKOM UNIKU

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.25134/ilkom.v20i2.624

Abstract

Stress is a psychophysiological condition that requires continuous and objective monitoring. However, existing wearable stress detection systems often rely on cloud-based processing or computationally intensive algorithms, limiting their applicability for real-time inference on resource-constrained embedded devices. This study presents a TinyML-based framework for real-time stress detection using the MAX30102 sensor and an ESP32 microcontroller. The proposed framework integrates four time-domain Heart Rate Variability (HRV) features (BPM, SDNN, RMSSD, and pNN50), a lightweight Deep Neural Network (DNN), full INT8 TensorFlow Lite quantization, and on-device inference to enable efficient edge-based stress classification. The DNN model was trained and evaluated using the WESAD dataset. Experimental results showed that a decision threshold of 0.70 yielded the best classification performance, achieving an accuracy of 82% and an F1-score of 0.63 for the stress class. The quantized TensorFlow Lite INT8 model preserved 100% prediction compatibility between the Python and ESP32 implementations. Furthermore, the MAX30102 sensor achieved a BPM measurement accuracy of 98.74%, while the HRV feature extraction implemented on the ESP32 produced results consistent with the reference calculations. These findings demonstrate that the proposed end-to-end TinyML framework enables accurate and computationally efficient HRV-based stress detection on resource-constrained microcontrollers, providing a practical foundation for real-time wearable edge-health monitoring
Co-Authors Abdul Wahid Sempurna Abdul Wahid Sempurna Abdul Wahid Sempurna Abdurahman Abdurahman Abdurahman - Ades Harafi Duri Adi Hermansyah Aditya P.P Prasetyo Aditya P.P. Prasetyo Aditya PPP Aditya Putra Perdana Prasetyo Ahmad Fali Oklilas Ahmad Fali Oklilas Ahmad Rifai Ahmad Rifai Ahmad Rifai Ahmad Zarkasi Ahmad Zarkasi Alif Almuqsit Almuqsit, Alif andre hardoni B Azhar, Iman Saladin B. Azhar, Iman Saladin Bagus Prasetyo Bangun Sudrajat Bangun Sudrajat Barzan Trio Putra Brema Alfaretz Tarigan Buchari, M. Ali Dedy Kurniawan Deris Stiawan Desyandri Desyandri Dody Firmansyah Dudifa, Aldi Dwi Aurelia Rahmadani Fakhrurroja, Hanif Fatimah, Sayyidatina Fitriyanto, Megi Hadir Kaban Hanifah, Izzati Millah Huda Ubaya Huda Ubaya Huda Ubaya Ichsan Mahjud Jorena Jorena Jorena M. Buffon Prima M. Dimas Firmansyah Mileandira, Leviarta Monica Ayu Amaria Muhammad Ajran Saputra Muhammad Furqon Rabbani Nabillah Selva Setiawan Nadhira, Wardha Osvari Arsalan Pacu Putra Perdani, Tharisa Antya Pingki Pingki Prasetiyo, Bagus Prasetyo, Aditya P P Prasetyo, Aditya P.P. Prasetyo, Aditya PP Prasetyo, Aditya Putra Perdana Prita Salma Purwita Sari Purwita Sari Purwita Sari Purwita Sari, Purwita Purwoko, Agus Putra Perdana Prasetyo, Aditya R Rendyansyah Rahmad Fadli Isnanto Rahmat Budiarto Rahmat Fadli Isnanto Rahmat Fadli Isnanto Rahmatullah, Ikang Rendyansyah Rendyansyah Rendyansyah Rendyansyah Rendyansyah Ricy Firnando Ricy Firnando Rido Zulfahmi Riyuda, Rafki Sahasika Romadhona, Londa Arrahmando Rony, Zahara Tussoleha Rossi Passarella Roswitha Yemima Tiur Mediswati Sari, Komang Mita Sarmayanta Sembiring Sarmayanta Sembiring Sarmayanta Sembiring Sayyidatina Fatimah Sri Desy Siswanti Sri Desy Siswanti Sry Desy Siswanti Sukemi Sutarno Sutarno Sutarno Sutarno Tri Wanda Septian Tri Wanda Septian, Tri Wanda Vindriani, Marsella Wahyu Gunawan Winda Kurnia Sari