Background — Monitoring student engagement through automated action recognition can support timely pedagogical intervention, but large transformer models such as Video Masked Autoencoder (VideoMAE) are too computationally expensive for real-time deployment on edge devices. Objective — This study evaluates MobileViT with Knowledge Distillation (KD) from a VideoMAE Teacher to identify the most favourable accuracy-speed trade-off for classroom action classification. Methods — A 2,160-clip, five-class dataset was compiled from 403 prior and 1,757 newly collected clips. VideoMAE-Base and MobileViT-S were trained, followed by a grid search over 24 KD configurations spanning distillation weight, temperature, and two temporal aggregation methods. Undistilled controls were trained for both aggregation methods, separating the effect of distillation from that of aggregation. Accuracy, Precision, Recall, F1-Score, and frames per second were measured end-to-end and in pure compute on GPU and CPU. Results — Across three repetitions the Teacher reached F1 = 86.85 ± 2.20% and the undistilled Students 80.83 ± 3.25% (mean pooling) and 77.46 ± 7.15% (LSTM). The best KD configuration reached 87.84 ± 0.99%, exceeding the Teacher by 0.99 points, smaller than either standard deviation, with 14.7 times fewer parameters. Against matched controls, distillation gained 4.46 to 10.38 points. Conclusion — KD raises a lightweight model close to its Teacher, while temporal aggregation alone showed no reliable effect. The Student's roughly twofold pure-compute advantage is largely hidden end-to-end because video decoding consumes most of the GPU processing time, so pipeline optimisation matters as much as model compression for edge deployment.
Copyrights © 2026