Development of an IoT-Based Sitting Posture Monitoring System Using Weighted K-Nearest Neighbor for Back Pain Prevention

NATARATUNGGA XINA TANNISA, RIKA ROKHANA, MOCH. ROCHMAD

Abstract


Back pain is often caused by prolonged sitting in a non-ergonomic posture, increasing the risk of musculoskeletal disorders. This study develops an Internet of Things (IoT)-based sitting posture monitoring system to detect and classify sitting posture in real time. The system employs two ADXL345 sensors to measure roll and pitch angles and a VL53L0X sensor to measure the distance between the user's back and the chair backrest. The data are processed by an ESP32 and classified using the K-Nearest Neighbor (KNN) method into three categories: ergonomic, less ergonomic, and non-ergonomic. Experimental results show that the highest classification accuracy of 92% is achieved with K = 5. The proposed system is capable of monitoring sitting posture in real time and may assist users in maintaining ergonomic sitting posture.

Keywords


ADXL345; IoT; Sitting Posture; Back Pain; KNN This

Full Text:

PDF

References


Analog Devices. (2015). ADXL345: 3-Axis, ±2 g/±4 g/±8 g/±16 g Digital Accelerometer (Datasheet, Rev. E). Retrieved from analog.com.

Ansari, S., Nikpay, A., & Varmazyar, S. (2018). Design and Development of an Ergonomic Chair for Students in Educational Settings. Health Scope, 7(4), e60531.

Bin Ahmed, I. A., Aldhafyan, A. E., Basendwah, A. A., Alassaf, T. Y., Alhamlan, H. N., Alorainy, A. H., & Alyousef, A. B. (2023). The Prevalence and Risk Factors of Low Back Pain Among Office Workers in Saudi Arabia. Cureus, 15(9), e44996.

De Carvalho, D. E., Soave, D., Ross, K., & Callaghan, J. P. (2010). Lumbar Spine and Pelvic Posture Between Standing and Sitting: A Radiologic Investigation Including Reliability and Repeatability of the Lumbar Lordosis Measure. Journal of Manipulative and Physiological Therapeutics, 33(1), 48-55.

Espressif Systems. (2023). ESP32 Series Datasheet (Version 4.3). Retrieved from espressif.com.

Fon, G. T., Pitt, M. J., & Thies, A. C. (1980). Thoracic Kyphosis: Range in Normal Subjects. American Journal of Roentgenology, 134(5), 979-983.

Hartanto. (2022). Pengaruh Postur Duduk Membungkuk dalam Menimbulkan Kifosis Postural. Jurnal Kedokteran Meditek, 28(2), 207–214.

Larasaty, S., Nur, L. O., & Wijayanto, I. (2025). Perancangan Hardware Wearable Device Berbasis Sensor ADXL345 untuk Monitoring Postur Tubuh. Prosiding Seminar Nasional Teknik Elektro, Sistem Informasi, dan Teknik Informatika (SNESTIK), 3, 270–275.

Lee, J., & Han, D. (2017). Effect of the Trunk Forward Bending Angle in Sitting Position on Slow Vital Capacity. Journal of Physical Therapy Science, 29(12), 2220 - 2223.

Lee, J.-H. (2016). Effects of Forward Head Posture on Static and Dynamic Balance Control. Journal of Physical Therapy Science, 28(1), 274–277.

Maria, I., Harjono, Y., Suciati, Y., Soaloon, R., & Utomo, M. G. (2024). Prevalence of Low Back Pain Among Medical Students Post Covid-19 Pandemic in 2023. Jambi Medical Journal, 12(1), 33–38.

Maznah, F. Z. (2025). Prevalence of Musculoskeletal Disorders Associated with 3 Types of Work in Indonesia. Ranah Research: Journal of Multidisciplinary Research and Development, 7(3), 2170–2178.

Oakley, P. A., Moustafa, I. M., Haas, J. W., Betz, J. W., & Harrison, D. E. (2024). Two Methods of Forward Head Posture Assessment: Radiography vs. Posture and Their Clinical Comparison. Journal of Clinical Medicine, 13, 2149.

Openshaw, S., & Taylor, E. (2006). Ergonomics and Design: A Reference Guide. Muscatine, Iowa: Allsteel Inc.

Pedley, M. (2013, March). Tilt Sensing Using a Three-Axis Accelerometer (Application Note AN3461, Rev. 6). Retrieved from freescale.com.

Salahzadeh, Z., Maroufi, N., Ahmadi, A., Behtash, H., Razmjoo, A., Gohari, M., & Parnianpour, M. (2014). Assessment of Forward Head Posture in Females: Observational and Photogrammetry Methods. Journal of Back and Musculoskeletal Rehabilitation, 27(2), 131 - 139.

Shin, S. S., & Yoo, W. G. (2021). Differences in Regional and Global Lumbar Angle During Slumped Sitting and Upright Sitting Among Global Three Subgroups. Journal of Back and Musculoskeletal Rehabilitation, 34(5), 877-885.

STMicroelectronics. (2016). VL53L0X: World's Smallest Time-of-Flight Ranging and Gesture Detection Sensor (Datasheet). Retrieved from st.com.

Tarakci, F., & Ozkan, I. A. (2021). Comparison of Classification Performance of kNN and WKNN Algorithms. Selcuk University Journal of Engineering Sciences, 20(2), 32-37.

Tsai, M.-C., Chu, E. T.-H., & Lee, C.-R. (2023). An Automated Sitting Posture Recognition System Utilizing Pressure Sensors. Sensors, 23(13), 5894.

Yahya, A., Maulana, R., & Setiawan, E. (2020). Rancang Bangun Sistem Monitoring dan Klasifikasi Lingkungan Hidup Larva Lalat Tentara Hitam (Hermetia Illucens) dengan Metode K-Nearest Neighbor (K-NN). Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, 4(6), 1693–1701.

Zhang, Z. (2016). Introduction to Machine Learning: K-Nearest Neighbors. Annals of Translational Medicine, 4(11), 218.




DOI: https://doi.org/10.26760/elkomika.v14i4.452

Refbacks

  • There are currently no refbacks.


 

_______________________________________________________________________________________________________________________

ISSN (print) : 2338-8323 | ISSN (electronic) : 2459-9638

Publisher:

Department of Electrical Engineering Institut Teknologi Nasional Bandung, Indonesia

Address: 20th Building  Institut Teknologi Nasional Bandung PHH. Mustofa Street No. 23 Bandung 40124, Indonesia

Contact: +627272215 (ext. 206)

Email: jte.itenas@itenas.ac.id________________________________________________________________________________________________________________________

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Creative Commons License