arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.11548cs.CVcs.AIcs.LG
收藏

基于视频帧的实时健身运动分类与计数

Real-Time Fitness Exercise Classification and Counting from Video Frames

University of Pavia(帕维亚大学)

Riccardo Riccio

AI总结:

本文提出一种基于BiLSTM并融合关节角度与坐标特征的实时运动分类方法,在包含合成与真实数据的混合数据集上准确率超99%,并集成至Web应用实现无需手动选择的自动分类与计数。

摘要:

本文介绍了一种使用双向长短期记忆(BiLSTM)神经网络进行实时运动分类的新方法。现有的运动识别方法通常依赖于合成数据集、对用户和相机变化敏感的原始坐标输入,并且未能充分利用运动动作中的时间依赖性。这些问题限制了它们在光照、相机角度和用户体型各异的现实条件下的泛化能力和鲁棒性。为了应对这些挑战,我们提出了一种基于BiLSTM的模型,该模型利用关节角度等不变特征以及原始坐标。通过同时使用角度和(x, y, z)坐标,该模型能够适应视角、用户位置和身体差异的变化,从而提高泛化能力。在30帧序列上进行训练使BiLSTM能够捕捉运动的时间上下文并识别随时间演变的模式。我们编制了一个数据集,结合了来自InfiniteRep数据集的合成数据和来自Kaggle及其他来源的真实视频。该数据集包括四种常见运动:深蹲、俯卧撑、肩部推举和二头肌弯举。该模型在这些多样化的数据集上进行了训练和验证,在测试集上实现了超过99%的准确率。为了评估泛化能力,该模型在代表典型使用条件的2个独立测试集上进行了测试。结果部分展示了与文献中先前方法的比较,表明所提出的模型是性能最佳的模型。该分类器被集成到一个Web应用程序中,提供实时运动分类和重复计数,无需手动选择运动。演示和数据集可在以下GitHub存储库中找到:https://github.com/RiccardoRiccio/Fitness-AI-Trainer-With-Automatic-Exercise-Recognition-and-Counting。

英文摘要:

This paper introduces a novel method for real-time exercise classification using a Bidirectional Long Short-Term Memory (BiLSTM) neural network. Existing exercise recognition approaches often rely on synthetic datasets, raw coordinate inputs sensitive to user and camera variations, and fail to fully exploit the temporal dependencies in exercise movements. These issues limit their generalizability and robustness in real-world conditions, where lighting, camera angles, and user body types vary. To address these challenges, we propose a BiLSTM-based model that leverages invariant features, such as joint angles, alongside raw coordinates. By using both angles and (x, y, z) coordinates, the model adapts to changes in perspective, user positioning, and body differences, improving generalization. Training on 30-frame sequences enables the BiLSTM to capture the temporal context of exercises and recognize patterns evolving over time. We compiled a dataset combining synthetic data from the InfiniteRep dataset and real-world videos from Kaggle and other sources. This dataset includes four common exercises: squat, push-up, shoulder press, and bicep curl. The model was trained and validated on these diverse datasets, achieving an accuracy of over 99% on the test set. To assess generalizability, the model was tested on 2 separate test sets representative of typical usage conditions. Comparisons with the previous approach from the literature are present in the result section showing that the proposed model is the best-performing one. The classifier is integrated into a web application providing real-time exercise classification and repetition counting without manual exercise selection. Demo and datasets are available at the following GitHub Repository: https://github.com/RiccardoRiccio/Fitness-AI-Trainer-With-Automatic-Exercise-Recognition-and-Counting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑