Development of Real-time Compensatory Movement Detection System in Neck Stretching Exercises for Office Syndrome Using Pose Estimation Technology
Main Article Content
Abstract
The objectives of this research were 1) to develop a prototype system for verifying correctness and counting repetitions of neck stretching exercises to minimize compensatory movements in Office Syndrome patients, 2) to evaluate the system's accuracy and performance, and 3) to assess user satisfaction. The developed system operates on a personal computer using a standard webcam. It utilizes Python programming language and the MediaPipe Framework to detect pose landmarks. Geometric analysis algorithms were implemented to calculate neck and shoulder angles. The system was specifically designed to detect "Shoulder Elevation," a common compensatory movement, by setting a shoulder angle threshold at 8 degrees and a neck flexion threshold at 25 degrees. Real-time visual feedback is provided to alert users of incorrect posture, and the repetition counter increments only when the exercise is performed correctly. The sample group for performance testing and satisfaction assessment consisted of 30 students and personnel. The experimental results, based on 1,200 trials compared with expert evaluation, indicated an overall accuracy of 96.67%. The system demonstrated a sensitivity of 97.00% in detecting cheating postures and a specificity of 96.33%. User satisfaction assessment revealed a "very high" satisfaction level ( = 4.62, S.D. = 0.50), particularly regarding the effectiveness of real-time alerts and confidence in exercise correctness. This research demonstrates that low-cost pose estimation technology can be effectively applied as a self-rehabilitation tool.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
This article is published under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License (CC BY-NC-ND 4.0), which allows others to share the article with proper attribution to the authors and prohibits commercial use or modification. For any other reuse or republication, permission from the journal and the authors is required.References
J. A. Francisco and P. S. Rodrigues, "Computer Vision Based on a Modular Neural Network for Automatic Assessment of Physical Therapy Rehabilitation Activities," in IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 31, pp. 2174-2183, 2023, doi: 10.1109/TNSRE.2022.322645
Hasan, S.; Iqbal, A.; Alghadir, A.H.; Alonazi, A.; Alyahya, D. The Combined Effect of the Trapezius Muscle Strengthening and Pectoralis Minor Muscle Stretching on Correcting
the Rounded Shoulder Posture and Shoulder Flexion Range of Motion among Young Saudi Females: A Randomized Comparative Study. Healthcare 2023, 11, 500.
https://doi.org/10.3390/healthcare11040500
American Academy of Orthopaedic Surgeons. (1965). Joint motion: Method of measuring and recording. AAOS.
Örücü, S., et al. (2025). Azure Kinect for joint range of motion analysis: A validity and reliability evaluation in elite female weightlifters. PLoS ONE, Article
e0334890.https://doi.org/10.1371/journal.pone.0334890
Bazarevsky, V., Grishchenko, I., Raveendran, K., Zhu, T., Zhang, F., & Grundmann, M. (2020). BlazePose: On-device real-time body pose tracking. arXiv. https://doi.org/10.48550/arXiv.2006.10204
Gong, J., et al. (2022). Kinect-based rehabilitation systems for stroke patients: A scoping review. BioMed Research International, 2022, Article 4339054. https://doi.org/10.1155/2022/4339054
Silva, A., et al. (2025). AI gym buddy using MediaPipe pose estimation. International
Journal of Novel Research and Development, 10(5), 234–245.
https://www.ijnrd.org/papers/IJNRD2505337.pdf
Latreche, A., Kelaiaia, R., Chemori, A., & Kerboua, A. (2023). Reliability and validity analysis of MediaPipe-based measurement system for some human rehabilitation motions. Measurement, 214, 112826. https://doi.org/10.1016/j.measurement.2023.112826
Alharbi, F., et al. (2024). Recognition of forward head posture through 3D human pose estimation. JMIR Formative Research, 8, Article e55476. https://doi.org/10.2196/55476
Lugaresi, C., Tang, J., Nash, H., McClanahan, C., Uboweja, E., Hays, M., Zhang, F., Chang, C.,Yong, M. G., Lee, J., Chang, W., Hua, W., Georg, M., & Grundmann, M. (2019). MediaPipe: A framework for building perception pipelines. arXiv preprint arXiv:1906.08172. https://arxiv.org/abs/1906.08172