Research internship, IIT Bhubaneswar
Classroom Behaviour & Engagement Detection
A YOLO11 pipeline over classroom CCTV that classifies hand-raising, reading and writing, with SCRFD face detection for the dense, occluded cases.
- mAP@0.5 on the validation split
- 69.50%
- mAP@0.5:0.95, the stricter localisation measure
- 52.29%
- Epochs of YOLO11s at 640 px, batch 16, on a T4
- 50
The problem
Engagement is not a label a camera can read. What a classroom camera can see is behaviour: a raised hand, a head bent to a page, a student writing. The research question was whether those observable actions could be detected reliably enough to be aggregated into an engagement signal, on footage that is crowded, shot from a distance and full of occlusion.
This was the internship project at IIT Bhubaneswar: student activity analysis, object detection and tracking on real classroom video, alongside a vehicle classification component.
Approach
- Start from a public, labelled subset. Training used the
SCB5-Handrise-Read-write-2024-9-17subset ofwintonYF/SCB-Dataset, which already carries hand-raise, read and write annotations instead of inventing labels from scratch. - YOLO11s at 640 px. 50 epochs, batch size 16, on a Tesla T4. A single-stage detector keeps the pipeline fast enough for frame-by-frame analysis of long recordings.
- SCRFD for faces. Dense classrooms mean bodies occlude each other; a dedicated face detector gives a second anchor for head pose and gaze when the body box is partially hidden.
- Gaze as a vector. A vector-based method computes and tracks student gaze direction per frame, which is what turns "a head is turned" into "attention is on the board" rather than a guess.
- Preprocessing pipeline. Frame extraction, annotation transformation and bounding-box normalisation were built as a reusable step so a new room or camera angle does not mean starting over.
- 640 versus 960. The same checkpoint was evaluated at both input sizes to test the intuition that more resolution must help.
- 01Classroom CCTV footage
- 02Frame extraction and annotation normalisation
- 03YOLO11s detection at 640 px
- 04SCRFD face detection for occlusion
- 05Gaze vector from head and eye geometry
- 06Per-student behaviour and engagement signal
Results
Validation on the held-out split of the SCB5 subset:
- Precision65.16%
- Recall67.18%
- mAP@0.569.5%
Right action, roughly seven times in ten
- mAP@0.5:0.9552.29%
Tight localisation is the weaker half of the result
The gap between mAP@0.5 and mAP@0.5:0.95 is the honest part of the result: the model finds the right kind of action in roughly seven of ten cases, but localises it tightly far less often. For a per-student engagement average that is workable; for anything that needs a precise hand box, it is not yet enough.
What went wrong
More resolution made it worse. Running the same checkpoint at 960 px produced lower mAP and higher latency than 640 px. The dataset's subjects are small but not that small, and the extra pixels mostly added compute and noise rather than detail. The measurement is the finding: resolution is a hyperparameter, not a quality dial.
Occlusion is the ceiling. In a dense room, a student in the third row is a handful of pixels behind two other bodies. SCRFD helps, but the failure cases concentrate exactly where the engagement signal matters most — the back of the room.
Limits. The evaluation is on one public subset, not a full school deployment, and the engagement score is derived from detected behaviour rather than validated against teacher ratings. Both are the right next experiments, and neither is claimed here.