Real-Time Posture Monitoring for Effective Exercise Using MediaPipe Python
Main Article Content
Abstract
Maintaining proper posture during exercise is crucial for preventing injuries and maximizing workout efficiency. This project aims to develop a real-time posture monitoring system using MediaPipe and OpenCV to provide instant feedback on the exercise form. The system captures video input through a webcam, processes it using OpenCV, and utilizes MediaPipe’s pose-estimation model to detect key body landmarks. By analysing the joint angles and comparing them to predefined optimal postures, the system evaluates the user’s form and provides corrective feedback in real time. This approach eliminates the need for expensive wearable sensors, making posture monitoring more accessible and user friendly. The literature review highlights the effectiveness of computer vision-based solutions in fitness applications and identifies key challenges, such as occlusions, varying lighting conditions, and real-time processing constraints. The proposed system addresses these issues by optimizing the pose-estimation accuracy and feedback mechanisms. Testing and user surveys confirmed the system’s effectiveness, achieving 90% accuracy for squat posture detection and 86% accuracy for lunges under typical home-workout conditions. The expected outcome of this project is a functional real-time exercise posture monitoring system that enhances the user training experience by ensuring a proper form. Future improvements may involve integrating machine learning techniques to personalize feedback and expand the system to multi-user environments. This project contributes to the advancement of computer vision applications in fitness and rehabilitation domains.
Article Details

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
All articles published in JIWE are licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0) License. Readers are allowed to
- Share — copy and redistribute the material in any medium or format under the following conditions:
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use;
- NonCommercial — You may not use the material for commercial purposes;
- NoDerivatives — If you remix, transform, or build upon the material, you may not distribute the modified material.
References
G. Bhatambarekar, S. A. Bhinge, K. Bhale, A. Dandgaval, and K. Ramteke, “A Study on Physiotherapy Exercise Corrector,” 2022 International Conference on Smart Generation Computing, Communication and Networking (SMART GENCON), 2022, pp. 1–6, doi:10.1109/SMARTGENCON56628.2022.10084127.
R. K. J. Parasher, S. Singh, V. Sharma, P. Dabas, and S. Vashisht, “Enhancing Exercise Form: A Pose Estimation Approach with Body Landmark Detection,” 2024 11th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), 2024, pp. 1–6, doi:10.1109/ICRITO61523.2024.10522133.
A. Brent-Smith, “On Detecting Mistakes,” The Musical Times, vol. 73, no. 1067, Jan. 1932, p. 19, doi:10.2307/915165.
K. Jantachat, P. Bua-Ngam, P. Boonsit, and W. Boonkwang, “Development of an Exercise Posture Monitoring System for Air Cadets by Using MediaPipe and OpenCV,” 2024 21st International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), 2024, pp. 1–4, doi:10.1109/ECTI-CON60892.2024.10594989.
K. Rishabh, J. Parasher, S. Singh, V. Sharma, P. Dabas, and S. Vashisht, “Enhancing Exercise Form: A Pose Estimation Approach with Body Landmark Detection,” 2024 11th International Conference on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), 2024, pp. 1–6, doi:10.1109/ICRITO61523.2024.10522133.
A. Ashok, A. Ramalingam, and S. Dheenadhayalan, “Personal Exercise Trainer Using Computer Vision.” 2024 Second International Conference on Emerging Trends in Information Technology and Engineering (ICETITE), 2024, pp. 1–6, doi:10.1109/ic-ETITE58242.2024.10493615.
W. Deng, and W. Yang, “Fitness Training Assistance System Based on Mediapipe Model and KNN Algorithm,” 2024 5th International Seminar on Artificial Intelligence, Networking and Information Technology (AINIT), 2024, pp. 1878–82, doi:10.1109/AINIT61980.2024.10581426.
D. Rai, A. Kumar, and A. Baghel, “Pose Detection Using OpenCV and Media Pipe,” 2024 International Conference on Integrated Circuits, Communication, and Computing Systems (ICIC3S), 2024, pp. 1–6, doi:10.1109/ICIC3S61846.2024.10603040.
A. Bhargavan, A. Bhat, A. Gupta, K. N. Mehta, and P. Kanwal, “Pose Detection with Corrective Feedback to Aid Physiotherapy for Parkinson’s Disease,” 2024 Second International Conference on Inventive Computing and Informatics (ICICI), 2024, pp. 198–205, doi:10.1109/ICICI62254.2024.00042.
D. Bose, B. Arora, A. K. Srivastava, and P. Garg “A Computer Vision Based Framework for Posture Analysis and Performance Prediction in Athletes,” 2024 International Conference on Communication, Computer Sciences and Engineering (IC3SE), 2024, pp. 942–47, doi:10.1109/IC3SE62002.2024.10593041.
C. B. Thaokar, V. V. Dongre, H. H. Hiware, and H. D. Dagwar, “Body Posture Recognition And Fitness Training,” 2023 OITS International Conference on Information Technology (OCIT), 2023, pp. 927–32, doi:10.1109/OCIT59427.2023.10430680.
Y. Kwon, and D. Kim. “Real-Time Workout Posture Correction Using OpenCV and MediaPipe,” The Journal of Korean Institute of Information Technology, vol. 20, no. 1, Jan. 2022, pp. 199–208. doi:10.14801/jkiit.2022.20.1.199.
M. D. Korableva and Y. A. Bekeneva, “Evaluation of Physical Exercise Performance Using Deep Learning Methods,” 2024 V International Conference on Neural Networks and Neurotechnologies (NeuroNT), 2024, pp. 93–95, doi:10.1109/neuront62606.2024.10585349.
C. Guo et al., “Design of a Sports Rehabilitation Evaluation Scheme Based on MediaPipe Technology,” 2024 International Conference on Intelligent Computing and Data Mining (ICDM), 2024, pp. 134–38, doi:10.1109/ICDM63232.2024.10762646.
M. Chariar, S. Rao, A. Irani, S. Suresh, and C. S. Asha, “AI Trainer: Autoencoder Based Approach for Squat Analysis and Correction,” IEEE Access, vol. 11, 2023, pp. 107135–49, doi:10.1109/ACCESS.2023.3316009.
B. S. Cobb and F. Candan, “Improving Workplace Safety in the Cargo Industry through Posture Monitoring Using Mediapipe and Machine Learning,” 2023 International Conference on Innovations in Intelligent Systems and Applications (INISTA), 2023, pp. 1–6, doi:10.1109/INISTA59065.2023.10310609.
T. Maitray, U. Singh, V. Kukreja, A. Patel, and V. Sharma, “Exercise Posture Rectifier and Tracker Using MediaPipe and OpenCV,” 2023 5th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N), 2023, pp. 141–4, doi:10.1109/ICAC3N60023.2023.10541703.
Y. Tomar, N. Himanshu, S. Devi, and H. Kaur, “Human Motion Tracker Using OpenCv and Mediapipe,” 2023 3rd International Conference on Innovative Mechanisms for Industry Applications (ICIMIA), 2023, pp. 1199–204, doi:10.1109/ICIMIA60377.2023.10425865.
K. L. Joshitha, P. Madhanraj, B. R. Roshan, G. Prakash, and V. S. M. Ram, “AI-FIT COACH - Revolutionizing Personal Fitness With Pose Detection, Correction and Smart Guidance,” 2024 International Conference on Communication, Computing and Internet of Things (IC3IoT), 2024, pp. 1–5, doi:10.1109/IC3IoT60841.2024.10550400.
H. C. Saini, “iSmartYog: A Real Time Yoga Pose Recognition and Correction Feedback Model Using Deep Learning for Smart Healthcare,” 2023 International Conference on Smart Systems for Applications in Electrical Sciences (ICSSES), 2023, pp. 1–6, doi:10.1109/ICSSES58299.2023.10201061.