Implementation of Lifestyle Determination in Obesity Patients Using Random Forest Method

Authors

  • Modesta Berliansa Termatu Arsanta Politeknik Negeri Malang
  • Abdul Rasyid Politeknik Negeri Malang
  • Adzikirani Adzikirani Politeknik Negeri Malang
  • Chandrasena Setiadi Politeknik Negeri Malang

DOI:

https://doi.org/10.33795/jartel.v15i2.6269

Keywords:

Health, IoT, Lifestyle, Physical Activity, Random Forest

Abstract

In the digital era, the application of Internet of Things (IoT) technology for health monitoring has become increasingly important to support improved quality of life and more accurate health recommendations. This research focuses on the development of a health monitoring application integrated with a MySQL database and employing the Random Forest method for data analysis. The system collects various health-related parameters, including height, weight, eating frequency, calorie intake, water consumption, physical activity level, sleep patterns, and stress levels. All collected data are stored in a MySQL database and subsequently analyzed using the Random Forest algorithm to classify user lifestyles into deficient, normal, and excessive categories. The dataset is divided into training and testing data to ensure reliable model performance and accurate predictions when new data are introduced. The results indicate that the Random Forest method provides good classification performance, with an average accuracy of 68% when compared to evaluations conducted by professional nutritionists. In addition, sensor accuracy testing shows excellent measurement performance, with an average error of 0.002% for the ultrasonic sensor and 0.0204% for the load cell sensor, corresponding to accuracy levels of 99.998% and 99.9796%, respectively. Overall, the system achieves an accuracy rate of 98.65%, demonstrating that the integration of IoT technology, database systems, and machine learning methods is effective and has strong potential for broader health monitoring applications.

References

Rusadin, R., M. T. Alawiy, and B. M. Basuki, “Design of a tool for measurement of body mass index (BMI) based on Arduino Nano microcontroller,” Electro Science, vol. 11, no. 2, pp. 1–8, Jul. 2019.

D. I. Krisnadi and A. Ridwanto, “Design of an Android-based body mass index (BMI) measuring tool,” 2021.

S. Ridho, Height and weight measurement tool for ideal human weight information based on Arduino, Undergraduate Thesis, 2020.

A. Setiadi, I. Handayani, and F. Fadilah, “Designing the Fit Your Weight application to calculate ideal body weight based on Android,” Technomedia Journal, vol. 5, no. 2, pp. 144–154, Jul. 2020, doi: 10.33050/tmj.v5i2.1324.

I. F. Raihan and S. T. Fajar Suryawan, IoT-based weight scale design, Undergraduate Thesis, Universitas Muhammadiyah Surakarta, 2023.

E. Emitrafatriona and R. Friandi, “The relationship of eating behavior and physical activity with body mass index in adolescents,” Journal of Nursing and Health, vol. 7, no. 1, pp. 1–8, Jul. 2022, doi: 10.52488/jnh.v7i1.162.

S. H. Tusakdiyah, “Application plan for calculation of ideal body weight using the backward chaining method,” Jurnal Komputer dan Informatika, vol. 2, no. 2, pp. 96–111, Jan. 2023, doi: 10.58794/jekin.v2i2.191.

G. A. B. Suryanegara, Adiwijaya, and M. D. Purbolaksono, “Improving classification results in random forest algorithm for detecting diabetic patients using normalization method,” RESTI, vol. 5, no. 1, pp. 114–122, Feb. 2021, doi: 10.29207/resti.v5i1.2880.

QuantInsti, “Random forest algorithm in trading using Python,” Accessed: May 19, 2024. [Online]. Available: https://blog.quantinsti.com/random-forest-algorithm-in-python/

A. Pujitresnani, D. R. Atmaja, and D. K. Legowo, “Prototype of digital height measuring instruments and digital scales using MySQL and RFID database systems for medical check-up,” Hospital Technology and Mechatronics, vol. 1, no. 1, pp. 1–8, Mar. 2020.

D. Y. Widagdo, “Weighing results recording system using load cell sensors using an Arduino Uno based database,” Journal of Telecommunication Network, vol. 10, no. 1, pp. 1–7, Mar. 2020, doi: 10.33795/jartel.v10i1.161.

Edukasi Elektronika, “Sensor berat (load cell),” Accessed: May 19, 2024. [Online]. Available: https://www.edukasielektronika.com/2020/10/sensor-berat-load-cell.html

Vrogue, “Mengenal sensor ultrasonik HC-SR04,” Accessed: May 19, 2024. [Online]. Available: https://www.vrogue.co/post/mengenal-sensor-ultrasonik-hc-sr04-sensor-ultrasonic-for-arduino

F. Maulana, J. Indra, and S. A. P. Lestari, “Application of convolutional neural networks in smart vegetable scales using Raspberry Pi,” 2021.

M. Fadil and T. Thamrin, “Design of a microcontroller-based digital body mass index (BMI) measuring instrument,” Voteteknika, vol. 8, no. 1, pp. 1–7, Mar. 2020, doi: 10.24036/voteteknika.v8i1.107647.

Downloads

Published

30-06-2025

How to Cite

Arsanta, M. B. T., Rasyid, A., Adzikirani, A., & Setiadi, C. (2025). Implementation of Lifestyle Determination in Obesity Patients Using Random Forest Method . JURNAL JARTEL: Jurnal Jaringan Telekomunikasi, 15(2), 249–256. https://doi.org/10.33795/jartel.v15i2.6269