Student classroom behavior recognition is a core research direction in intelligent education systems. Real-time analysis of students’ learning states and behavioral features through classroom monitoring provides quantitative support for teaching evaluation, classroom management, and personalized instruction, offering significant value for data-driven educational decision-making. To address the issues of low detection accuracy and severe occlusion in classroom behavior detection, this article proposes an improved YOLOv11n-based algorithm named YOLOv11-GLIDE. The model introduces a Channel Prior Convolutional Attention (CPCA) mechanism to integrate global and local feature information, enhancing feature extraction and detection performance. A scale-based dynamic loss (SD Loss) is designed to adaptively adjust the loss weights according to object scale, improving regression stability and detection accuracy. In addition, Sparse Depthwise Convolution (SPD-Conv) replaces traditional down-sampling to reduce fine-grained feature loss and computational cost. Experimental results on the SCB-Dataset3 demonstrate that YOLOv11-GLIDE achieves an excellent balance between accuracy and lightweight design. Compared with the baseline YOLOv11n, mAP@0.5 and mAP@0.5-0.95 increase by 2.5% and 7.6%, while Parameters and GFLOPS are reduced by 9.4% and 11.1%, respectively. The detection speed reaches 127.9 FPS, meeting the practical requirements of embedded classroom monitoring systems for accurate and efficient student behavior recognition.
This paper primarily investigates enhanced object detection techniques for indoor service mobile robots. Robot operating systems (ROS) supply rich sensor data, which boost the models’ ability to generalize. However, the model’s performance might be hindered by constraints in the processing power, memory capacity, and communication capabilities of robotic devices. To address these issues, this paper proposes an improved you only look once version 5 (YOLOv5)-Lite object detection algorithm based on efficient multi-scale attention and bounding box regression combined with ROS. The algorithm incorporates efficient multi-scale attention (EMA) into the traditional YOLOv5-Lite model and replaces the C3 module with a lightweight C3Ghost module to reduce computation and model size during the convolution process. To enhance bounding box localization accuracy, modified precision-defined intersection over union (MPDIoU) is employed to optimize the model, resulting in the ROS–YOLOv5–FleetEMA model. The results indicated that relative to the conventional YOLOv5-Lite model, the ROS–YOLOv5–FleetEMA model enhanced the mean average precision (mAP) by 2.7% post-training, reduced giga floating-point operations per second (GFLOPS) by 13.2%, and decreased the params by 15.1%. In light of these experimental findings, the model was incorporated into ROS, leading to the development of a ROS-based object detection platform that offers rapid and precise object detection capabilities.