Automated Visual Attention Detection using Mobile Eye Tracking in Behavioral Classroom Studies

Efe Bozkir, Christian Kosel, Tina Seidel, Enkelejda Kasneci

Introduction

In educational psychology, a teacher's visual attention is a critical metric for understanding classroom management, student engagement, and instructional quality. Mobile eye tracking (MET) glasses have emerged as a powerful tool for capturing these interactions naturally. However, the analysis of MET data in dynamic classroom environments traditionally requires hundreds of hours of manual video annotation to map gaze coordinates to specific students. This paper presents an automated pipeline that combines computer vision and transfer learning to significantly reduce this manual bottleneck, requiring only one minute of labeled data per video.

Problem Statement

Analyzing MET data "in the wild" is logistically challenging. Because both teachers and students move constantly, researchers must manually code Areas of Interest (AOIs) frame-by-frame. This process is error-prone and limits the scale of behavioral studies. The authors address this by developing a system capable of mapping a teacher's gaze to specific student identities using modern face detection and recognition techniques, without the need for massive, manually annotated training sets.

Methodology

The proposed pipeline utilizes a "feature extraction + shallow classifier" approach to minimize manual labeling requirements:

  1. Face Detection and Feature Extraction: The system processes the teacher's scene camera video using SCRFD-10GF, a state-of-the-art face detector. Detected faces are aligned and passed through a ResNet50 model (pre-trained on large-scale face datasets) to extract 512-dimensional facial feature embeddings.
  2. Transfer Learning for Recognition: To adapt the system to a specific classroom, researchers manually annotate approximately 30 face instances per student from the first minute of the video. These embeddings are used to train lightweight classifiers, such as Random Forest or k-Nearest Neighbors (k-NN), to recognize individual students.
  3. Gaze Mapping: For each frame, the system identifies the 2D gaze coordinates from the eye tracker. It calculates the Euclidean distance between the gaze point and the centers of all detected face patches. The closest face patch is then classified to determine which student is being attended to.

Experimental Setup and Datasets

The pipeline was evaluated using a novel dataset of four in-service mathematics teachers in Germany. Data was recorded across four different 9th-grade classrooms with varying layouts and student counts (14 to 25 students).

For feature extraction, the authors compared two pre-training datasets:

  • WebFace600K: A large, relatively noisy dataset.
  • Glint360K: A massive, highly cleaned dataset.

Key Results and Discussion

The study revealed several critical insights into the performance of automated gaze detection in real-world settings:

  • Classroom Layout Impact: The physical arrangement of the classroom was the strongest predictor of accuracy. In a small, well-spaced classroom, the pipeline achieved ~0.95 accuracy. In a U-shaped classroom, it achieved ~0.68 accuracy. However, in traditional row-seating arrangements, accuracy dropped to between 0.50 and 0.58 due to frequent facial occlusions of students in back rows.
  • Classifier Performance: Random Forest and k-NN consistently outperformed more complex models like Gradient Boosting, suggesting that shallow classifiers are well-suited for the low-data regime of individual classroom sessions.
  • Robustness of Noisy Pre-training: Interestingly, embeddings from the WebFace600K model outperformed the cleaner Glint360K model. The authors suggest that because egocentric video from a moving teacher is inherently noisy and subject to motion blur, the features learned from a noisier pre-training dataset are more robust for this specific application.

Limitations and Future Work

The primary limitation of the current system is its dependency on face visibility; if a student's face is occluded, the gaze cannot be mapped. Additionally, the evaluation focused on "whole-group instruction" phases where students are relatively stationary.

Future research aims to incorporate body movement or pose detection to identify students when faces are hidden. Furthermore, the authors envision real-time dashboards that provide teachers with live feedback on their attention distribution, potentially improving instructional equity and classroom management.

Summary updated

BibTeX
@inproceedings{bozkir2025automated,
  author = {Efe Bozkir and Christian Kosel and Tina Seidel and Enkelejda Kasneci},
  title = {{Automated Visual Attention Detection using Mobile Eye Tracking in Behavioral Classroom Studies}},
  booktitle = {EDM},
  year = {2025},
}
Figure