A Real-Time Computer Vision Framework for Skeletal Anomaly Detection Integrating Gaussian Filtering, LSTM, and XGBoost

Kinematic Framework for Real-Time Anomaly Detection

Authors

  • Ali Hashir Rana Iqra University, Karachi, Pakistan
  • Muhammad Hussain Iqra University, Karachi, Pakistan
  • Momal Rana Iqra University, Karachi, Pakistan
  • Ausaf Ahmed Iqra University, Karachi, Pakistan
  • Ashel Aftab Iqra University, Karachi, Pakistan
  • S. Atruba Feroze Iqra University, Karachi, Pakistan

Keywords:

Accidental Falls, Artificial Intelligence, Deep Learning, Telerehabilitation, Video Recording

Abstract

Background: Real-time video anomaly detection in physical surveillance is still limited by the computational cost and illumination noise of traditional 3D Convolutional Neural Networks (CNNs). Detecting sudden kinematic changes, such as a physical struggle, a sudden loss of balance or an unexpected fall, requires lightweight solutions that run on edge hardware, both in security settings and in remote tele-rehabilitation monitoring.

Methods: This work proposes a vision-based skeletal kinematics approach that detects human keypoints in real time with YOLOv8-Pose. Frames are first smoothed with a 2D Gaussian filter, and keypoint coordinates are then converted into kinematic measures: joint velocities, acceleration peaks and joint angles. Temporal patterns were analyzed with an unsupervised Bi-directional Long Short-Term Memory (Bi-LSTM) Autoencoder and a statistical XGBoost classifier. Both models were evaluated on the Custom Binary Surveillance (CBS) dataset, which contains 2,268 standardized 150-frame windows extracted from public and proprietary surveillance videos.

Results: On the hold-out test set, the Bi-LSTM Autoencoder achieved an accuracy of 89.3% (95% CI 86.7% to 91.9%) and an anomaly recall of 91.3%. The full pipeline ran at 55 frames per second (18 ms latency) on an NVIDIA T4 GPU.

Conclusion: Extracting compact 1D kinematic signals from high-dimensional video pixels greatly reduces computation. This lightweight architecture suits edge deployment and may support patient fall screening and movement monitoring, pending validation in clinical settings.

DOI: https://doi.org/10.59564/amrj/04.04/010 

Author Biographies

Ali Hashir Rana, Iqra University, Karachi, Pakistan

Student, Department of Software Engineering

Muhammad Hussain, Iqra University, Karachi, Pakistan

Student, Department of Software Engineering

Momal Rana, Iqra University, Karachi, Pakistan

Student, Department of Software Engineering

Ausaf Ahmed, Iqra University, Karachi, Pakistan

Student, Department of Software Engineering

Ashel Aftab, Iqra University, Karachi, Pakistan

Student, Department of Software Engineering

S. Atruba Feroze, Iqra University, Karachi, Pakistan

Junior Lecturer

References

Alarfaj M, Pervaiz M, Ghadi YY, al Shloul T, Alsuhibany SA, Jalal A, et al. Automatic Anomaly Monitoring in Public Surveillance Areas. Intell Autom Soft Comput. 2023;36(1):1141–1158. https://doi.org/10.32604/iasc.2023.027205

Cabanillas Carbonell M, Sallari Rivera J, Santivañez Muñoz J. Artificial intelligence in video surveillance systems for suspicious activity detection and incident response: A systematic review. Adv Sci Technol Res J. 2025;19(3):389–405. https://doi.org/10.12913/22998624/196795

Xiao J, Ji G. Divide and Conquer in Video Anomaly Detection: A Comprehensive Review and New Approach. In: 2023 China Automation Congress (CAC). IEEE; 2023:8553–8558. https://doi.org/10.1109/CAC59555.2023.10451821

Kong Y, Fu Y. Human action recognition and prediction: A survey. Int J Comput Vis. 2022;130(5):1366–1401. https://doi.org/10.1007/s11263-022-01594-9

Carreira J, Zisserman A. Quo vadis, action recognition? A new model and the Kinetics dataset. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2017:6299–6308. https://doi.org/10.1109/CVPR.2017.502

Abdalla M, Javed S, Al Radi M, Ulhaq A, Werghi N. Video anomaly detection in 10 years: a survey and outlook. Neural Comput Appl. 2025;37(22):26321–26364. https://doi.org/10.1007/s00521-025-11659-8

Zhu L, Wang L, Raj A, Gedeon T, Chen C. Advancing Video Anomaly Detection: A Concise Review and a New Dataset. Adv Neural Inf Process Syst. 2024;37:2856–2875. https://doi.org/10.52202/079017-2856

Duong HT, Le VT, Hoang VT. Deep Learning-Based Anomaly Detection in Video Surveillance: A Survey. Sensors. 2023;23(11):5024. https://doi.org/10.3390/s23115024

Wu P, Pan C, Yan Y, Pang G, Yan Q, Wang P, et al. Deep learning for video anomaly detection: A review. IEEE Trans Neural Netw Learn Syst. 2026;37(7):3010-3030. https://doi.org/10.1109/TNNLS.2025.3647892

Hao Y, Li J, Wang N, Wang X, Gao X. Spatiotemporal consistency-enhanced network for video anomaly detection. Pattern Recognit. 2022;121:108232. https://doi.org/10.1016/j.patcog.2021.108232

Singh R, Pal A, Mishra S, Chowdhury A. Enhancing Situational Awareness: Anomaly Detection Using Real-Time Video Across Multiple Domains. IEEE Access. 2025;13:73680–73696. https://doi.org/10.1109/ACCESS.2025.3560874

Betgeri S, Lodha P, Oak A, Parikh A, Lodha A. AlertCam-An Effective Anomaly Detection System using Computer Vision. In: 2025 International Conference on Emerging Smart Computing and Informatics (ESCI). IEEE; 2025:1–6. https://doi.org/10.1109/ESCI63694.2025.10988334

Jocher G, Chaurasia A, Qiu J. YOLO by Ultralytics. GitHub repository; 2023. Available from: https://github.com/ultralytics/ultralytics

Vijayakumar A, Vairavasundaram S. YOLO-based Object Detection Models: A Review and its Applications. Multimed Tools Appl. 2024;83(28):83535–83574. https://doi.org/10.1007/s11042-024-18872-y

Stenum J, Rossi C, Roemmich RT. Two-dimensional video-based analysis of human gait using pose estimation. PLoS Comput Biol. 2021;17(4):e1008935. https://doi.org/10.1371/journal.pcbi.1008935

Chang WJ, Hsu CH, Chen LB. A pose estimation-based fall detection methodology using artificial intelligence edge computing. IEEE Access. 2021;9:129965–129976. https://doi.org/10.1109/ACCESS.2021.3113824

Nield J. CCTV Action Recognition Dataset. Kaggle Repository; 2024. Available from: https://www.kaggle.com/datasets/jonathannield/cctv-action-recognition-dataset

Mishra PK, Mihailidis A, Khan SS. Skeletal Video Anomaly Detection Using Deep Learning: Survey, Challenges, and Future Directions. IEEE Trans Emerg Top Comput Intell. 2024;8(2):1073–1085. https://doi.org/10.1109/TETCI.2024.3358103

Krishnan SR, Amudha P. Spatio-temporal anomaly detection for real-time video surveillance using SpatioGuard-YOLO framework. Multimed Tools Appl. 2026;85(4):542–563. https://doi.org/10.1007/s11042-026-21696-7

Anantathanavit R, Suthirat S, Su PC. AIGuard: Anomaly Detection in Surveillance Videos with YOLOv8. In: 2025 Asia Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC). IEEE; 2025:2008–2013. https://doi.org/10.1109/APSIPAASC65261.2025.11249213

Raza A, Yousaf MH, Ahmad W, Velastin SA, Viriri S. Human fall detection using pose estimation: From traditional machine learning to vision transformers. Eng Appl Artif Intell. 2025;143:109809. https://doi.org/10.1016/j.engappai.2024.109809

Nasir R, Jalil Z, Nasir M, Alsubait T, Ashraf M, Saleem S. An enhanced framework for real-time dense crowd abnormal behavior detection using YOLOv8. Artif Intell Rev. 2025;58(7):202. https://doi.org/10.1007/s10462-025-11206-w

Shamim R, Alfurhood BS, Agarwal T, Mallik BB. YOLOv8 for Anomaly Detection in Surveillance Videos. In: Mathematical Modeling for Computer Applications. Wiley; 2024:245–262. https://doi.org/10.1002/9781394248438.ch18

Shi T. Anomaly Detection in Logistics Warehouses Based on YOLOv8. In: 2024 3rd International Conference on Smart City Challenges & Outcomes for Urban Transformation (SCOUT). IEEE; 2024:24–30. https://doi.org/10.1109/SCOUT64349.2024.00016

Natha SAS, Siraj M, Alsaif SA, Farooq F, Shah A, Mahmud M. A fusion approach of YOLOv8 and CNN-Transformer for End-to-End road anomaly detection. Sci Rep. 2025;15(1):45341. https://doi.org/10.1038/s41598-025-29718-4

Aishwarya K, Sowmiya V, Suthan R, Deboral C, Tanusri S, Sahana V. A Deep Learning Strategy for Abnormal Object Detection by YOLOv8 Model. In: 2024 International Conference on Power, Energy, Control and Transmission Systems (ICPECTS). IEEE; 2024:1–5. https://doi.org/10.1109/ICPECTS62210.2024.10780243

Tsanaullailla L, Hamami F, Suakanto S. Smart Surveillance in Retail Stores: Detection, Classification, and Documentation of Suspicious Behavior Utilizing YOLOv11 and XGBoost. In: 2025 4th International Conference on Electronics Representation and Algorithm (ICERA). IEEE; 2025:127–132. https://doi.org/10.1109/ICERA66156.2025.11087345

Shamnath, Belwal M. Human Suspicious Activity Detection Using Ensemble Machine Learning Techniques. In: 2022 2nd International Conference on Intelligent Technologies (CONIT). IEEE; 2022:1–5. https://doi.org/10.1109/CONIT55038.2022.9848183

Park D, Hoshi Y, Kemp CC. A multimodal anomaly detector for robot-assisted feeding using an LSTM-based variational autoencoder. IEEE Robot Autom Lett. 2018;3(3):1544–1551. https://doi.org/10.1109/LRA.2018.2801475

Sultani W, Chen C, Shah M. Real-world anomaly detection in surveillance videos. In: Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR). 2018:6479–6488. https://doi.org/10.1109/CVPR.2018.00678

Additional Files

Published

2026-11-12

Issue

Section

Interventions on Clinical Utility