Abstract
Automated engagement detection is a critical component for the future of e-learning, yet it remains a challenging task due to the subjective nature of human labels and the scarcity of balanced datasets. This paper presents ED-MTT (Engagement Detection with Multi-Task Training), a novel framework that combines standard regression with triplet loss in a multi-task learning architecture. By leveraging a Siamese network during training, the model learns robust, discriminative features that mitigate the impact of noisy labels. Experimental results on the EmotiW 2020 dataset demonstrate that ED-MTT achieves a Mean Squared Error (MSE) of 0.0427, representing a 6% improvement over previous state-of-the-art methods.
1. Introduction
In the post-COVID-19 era, e-learning has transitioned from a temporary necessity to a fundamental pillar of modern education. However, the digital divide between instructors and students often obscures the feedback loop essential for effective teaching. Instructors frequently struggle to gauge student interest and comprehension through a screen. Automated engagement detection offers a solution by providing real-time feedback, yet current systems face significant hurdles: the inherent subjectivity of engagement metrics and the lack of high-quality, balanced training data.
2. Challenges in Engagement Detection
Developing reliable engagement detection models is complicated by two primary factors:
- Subjectivity and Label Noise: Engagement is a non-trivial, internal state. Different annotators may assign varying engagement levels to the same visual cues, leading to "noisy" labels that cause standard deep learning models to overfit to inconsistencies rather than underlying patterns.
- Data Imbalance: Existing datasets, such as EmotiW, are often heavily skewed toward "engaged" samples, with a notable lack of "bored" or "disengaged" examples. This imbalance makes it difficult for models to generalize across the full spectrum of human behavior.
3. The ED-MTT Framework
The proposed ED-MTT system addresses these challenges through a four-stage pipeline designed for both accuracy and real-time efficiency.
3.1 Feature Extraction and Aggregation
The system utilizes the OpenFace toolkit to extract 29 visual features, including eye gaze vectors, head pose/rotation, and 17 Facial Action Units (FAUs). To capture temporal dynamics, these features are aggregated over 100-frame windows using five statistical measures: mean, variance, standard deviation, minimum, and maximum.
3.2 Sequence Modeling
A Bidirectional Long Short-Term Memory (Bi-LSTM) network processes the aggregated feature sequences. This architecture allows the model to capture context from both past and future frames within a window, generating a rich hidden vector embedding of the student's behavior.
3.3 Multi-Task Training
The core innovation of ED-MTT is its training strategy. The model employs a Siamese architecture with three parallel branches (Anchor, Positive, and Negative samples) to optimize two loss functions simultaneously:
- MSE Loss: The primary regression task, treating engagement as a continuous value between 0 and 1.
- Triplet Loss: An auxiliary task that acts as a regularizer. It forces the model to minimize the distance between samples with similar engagement levels while maximizing the distance from samples with different levels.
By focusing on relative similarity rather than just absolute values, the triplet loss helps the model filter out the noise inherent in subjective human labels. At inference time, the auxiliary branches are discarded, resulting in a lightweight model suitable for real-world deployment.
4. Experimental Results
4.1 Quantitative Performance
ED-MTT was benchmarked against the Engagement in The Wild (EmotiW 2020) dataset. The model achieved an MSE of 0.0427, outperforming the previous state-of-the-art (Chang et al.) by 6%. Ablation studies revealed that Facial Action Units (FAUs) were the most critical features for detection. Interestingly, the removal of head rotation features actually improved performance, suggesting that certain head movements may introduce redundancy or noise in an e-learning context.
4.2 Qualitative and Real-World Testing
In addition to benchmark testing, the authors evaluated the model using 12 minutes of video from 8 participants in real-life scenarios. The model successfully distinguished between different engagement levels (0, 0.33, 0.66, and 1.0), although the distinction between "high" and "very high" engagement (0.66 vs 1.0) proved to be the most subtle. In real-world tests, predictions tended to cluster between 0.2 and 0.92, indicating a slight compression of the prediction range compared to the training labels.
5. Conclusion and Future Work
ED-MTT demonstrates that multi-task training with triplet loss is a powerful strategy for handling the subjectivity of engagement detection. The model is computationally efficient, requiring only 38 minutes to train for 500 epochs on a standard GPU, making it viable for practical e-learning applications.
Future research will focus on addressing the persistent issue of label imbalance and exploring multi-modal inputs. Integrating audio data or physiological signals could provide a more holistic view of student engagement and further refine the model's predictive accuracy in diverse learning environments.
Summary updated