A Camera-Based Visual Sensor Pipeline for Fine-Grained Human Activity Recognition in Classroom Scenes

Cheng Sun, Danning Wu, Zihao Wu, Weibing Zhou, Jin Zhang · Sensors · 2026

Student behavior recognition in classroom environments is important for teaching quality assessment and intelligent education, yet it remains challenging due to dense student distributions, frequent occlusion, substantial scale variation, and the subtle nature of common classroom activities. To address these issues, this paper proposes RepYOLOv5-SF3D, a cascaded visual perception framework for fine-grained student behavior recognition in complex classroom scenes. The framework integrates a lightweight RepYOLOv5m detector with a dual-stream SlowFast-3D recognition branch, enabling automated inference from raw video input to behavior labels. To improve robustness in dense and occluded scenes, the front-end detector serves as a spatial-prior module, while a decoupled training strategy reduces the impact of localization instability on back-end spatiotemporal learning. In addition, two task-oriented modules are introduced in the recognition branch: the Spatiotemporal Depthwise-Separable 3D module (SDS3D) and the Normalization-Based Temporal Attention Mechanism (NTAM). Experimental results on a real classroom dataset show that RepYOLOv5-SF3D achieves a mean average precision (mAP) of 88.83%, outperforming the baseline SlowFast model by 3.36% and surpassing the existing LSTC method by 2.05%, while maintaining a front-end inference latency of 12.5 ms per frame and a total model size of 151.46 MB. These results demonstrate a favorable balance between fine-grained recognition accuracy and edge-deployment efficiency in practical classroom visual sensing.

Read the paper · More papers on PaperTik