IoT-Based Sleep Quality Monitoring Simulation With Sleep Condition Analysis Using Fuzzy Logic

Main Article Content

M LUTFI MA

Abstract

This research aims to develop a low-cost IoT-based sleep quality Monitoring Simulation with Sleep Condition analysis using fuzzy logic for real-time physiological data acquisition and classification. The study employed the ADDIE development model (Analysis, Design, Development, Implementation, Evaluation). The system integrates MAX30100 heart rate sensor, DHT22 temperature sensor, and MPU6050 motion sensor with an ESP32 microcontroller. A Mamdani fuzzy inference system was implemented to classify Sleep Conditions based on heart rate, body temperature, and body movement parameters. The system was simulated using Wokwi and Cisco Packet Tracer, with fuzzy rules developed in MATLAB and embedded programming in Arduino IDE. The Blynk IoT platform was utilized for remote monitoring. Validation included Black Box Testing and User Acceptance Testing (UAT) with ten respondents. The system successfully acquired real-time physiological data and transmitted it to the Blynk cloud platform. The fuzzy logic algorithm effectively processed sensor data uncertainty, classifying health conditions into "Healthy," "Warning," or "Critical" status. Black Box Testing confirmed all main functions operated according to specifications. UAT yielded an 88% satisfaction score, indicating the system is highly feasible, user-friendly, and beneficial for independent sleep monitoring. This research contributes a practical, affordable IoT-based sleep monitoring architecture integrating fuzzy logic for Sleep Condition classification on embedded systems, offering an accessible alternative to conventional clinical methods for personal health management.

Article Details

Section
Articles

References

[1] M. N. I. M. Shahrum, I. S. M. Isa, N. L. A. M. S. Azyze, H. M. Nasir, and T. Sutikno, “Development of an IoT-based sleep pattern Monitoring System for sleep disorder detection,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 36, no. 2, pp. 777–784, Nov. 2024, doi: 10.11591/ijeecs.v36.i2.pp777-784.

[2] M. M. Lutfi, M. Andri Saputra, V. Indrawan Putranto, and R. Ridho, “SIMULASI SISTEM PENYIRAM TANAMAN HIAS MENGGUNAKAN KONTROL LOGIKA FUZZY BERBASIS INTERNET OF THINGS,” Jurnal TRANSFORMASI, vol. 20, no. 1, pp. 1–19, 2024.

[3] M. Lutfi and A. Kristanto, “TRAINER FUZZY SEBAGAI SARANA PRAKTIKUM MAHASISWA,” Transformasi, vol. 18, no. 1, Jan. 2022, doi: 10.56357.

[4] Lutfi, I. N. Azizah, D. Nataliya, F. Maghfiroh, and Y. Febriani, “The IoT System of Watering System for Vanilla Cultivation using DHT11 and Soil Moisture Sensors with Fuzzy Logic Control,” Innovation, Technology, and Entrepreneurship Journal, vol. 2, no. 2, pp. 105–118, Aug. 2025, doi: 10.31603/itej.14435.

[5] M. M. Lutfi, “Digital Startup _Veggie Fresh_ using Code Igniter and Design Thinking Method,” ITEJ (Innovation, Technology and Enterprenuer Journal), vol. 2, no. 1, pp. 1–14, Jun. 2024, doi: 10.31603.

[6] Lutfi, K. Kanafi, and R. Syaifullah, “It Capacity Improvement for Swimming Coaches and Assistant Coaches for Swimming Performance Coaching at the Indonesian Aquatic Federation in Magelang City,” Unram Journal of Community Service, vol. 5, no. 4, pp. 345–351, Dec. 2024, doi: 10.29303/ujcs. v5i4.701.

[7] M. Z. Rahman, M. A. Akbar, V. Leiva, A. Tahir, M. T. Riaz, and C. Martin-Barreiro, “An intelligent health monitoring and diagnosis system based on the internet of things and fuzzy logic for cardiac arrhythmia COVID-19 patients,” Comput. Biol. Med., vol. 154, Mar. 2023, doi: 10.1016/j.compbiomed.2023.106583.

[8] M. R. Rahmatulloh, N. Indroasyoko, and H. Khoirunnisa, “PENERAPAN FUZZY LOGIC DALAM SISTEM PEMANTAUAN VITAL SIGN BERBASIS INTERNET OF THINGS,” The Indonesian Journal of Computer Science, vol. 13, no. 4, Jul. 2024, doi: 10.33022/ijcs. v13i4.4112.

[9] A. Probha, P. S. Thind, A. D. Gupta, B. R. Prathap, and K. P. Kumar, “Real-Time Stress Monitoring Using IoT Wearable Sensors and Machine Learning,” in Smart Innovation, Systems and Technologies, Springer Science and Business Media Deutschland GmbH, 2025, pp. 331–342. doi: 10.1007/978-981-97-7717-4_23.