Emotion-Aware Classroom Quality Assessment Leveraging IoT-Based Real-Time Student Monitoring
Organizations: Posts and Telecommunications Institute of Technology (PTIT), Km 10 Nguyen Trai Street, Ha Dong District, Hanoi, Vietnam
Abstract
This study presents high-throughput, real-time multi-agent affective computing framework designed to enhance classroom learning through emotional state monitoring. As large classroom sizes and limited teacher student interaction increasingly challenge educators, there is a growing need for scalable, data-driven tools capable of capturing students' emotional and engagement patterns in real time. The system was evaluated using the Classroom Emotion Dataset, consisting of 1,500 labeled images and 300 classroom detection videos. Tailored for IoT devices, the system addresses load balancing and latency challenges through efficient real-time processing. Field testing was conducted across three educational institutions in a large metropolitan area: a primary school (hereafter school A), a secondary school (school B), and a high school (school C). The system demonstrated robust performance, detecting up to 50 faces at 25 FPS and achieving 88% overall accuracy in classifying classroom engagement states. Implementation results showed positive outcomes, with favorable feedback from students, teachers, and parents regarding improved classroom interaction and teaching adaptation. Key contributions of this research include establishing a practical, IoT-based framework for emotion-aware learning environments and introducing the 'Classroom Emotion Dataset' to facilitate further validation and research.
Figures & tables
| Study | Modality | Processing platform | Whole-class assessment | Public dataset | Instructional integration |
| Gao ( Gao, 2025 ) | Text + grades | GPU server (post-processing) | - | No | ✓ |
| Martinez-Martin et al. ( Martinez-Martin and Fernández-Caballero, 2025 ) | Body + hand pose | Standard workstation (offline) | - | Yes | - |
| Boitel et al. ( Boitel et al., 2025 ) | Text+audio+video+motion | High-end GPU cluster (offline) | - | Yes | - |
| Our Work | Video | IoT edge device (real-time) | ✓ | Yes | ✓ |
| State | Mean | Min | Max | IQR (25-75%) | |
| Attentive Listening | 0.532 | 0.021 | 0.501 | 0.579 | 0.518–0.547 |
| Active Participation | 0.597 | 0.018 | 0.580 | 0.609 | 0.583–0.606 |
| Passive Presence | 0.623 | 0.009 | 0.610 | 0.639 | 0.616–0.629 |
| Disengaged | 0.742 | 0.067 | 0.641 | 0.892 | 0.687–0.798 |
| Model | Overall Acc. | Precision | Recall | F1 | MSE | MAE |
| Decision Tree | 0.88 | 0.89 | 0.83 | 0.86 | 0.12 | 0.42 |
| Random Forest | 0.88 | 0.90 | 0.84 | 0.85 | 0.12 | 0.41 |
| K-Nearest Neighbors | 0.84 | 0.85 | 0.78 | 0.81 | 0.16 | 0.51 |
| Logistic Regression | 0.75 | 0.76 | 0.72 | 0.74 | 0.25 | 0.68 |
| AdaBoost | 0.79 | 0.81 | 0.75 | 0.78 | 0.21 | 0.62 |
| Naive Bayes | 0.71 | 0.73 | 0.68 | 0.70 | 0.29 | 0.75 |
| Model | mAP | Inference time (s) | Model size (MB) | GFLOPs |
| ULFG version-RFB | 0.928 | 0.02 | 1.11 | 0.11 |
| YOLOv8 nano | 0.88 | 0.031 | 6.03 | 0.73 |
| ULFG version-slim | 0.91 | 0.018 | 1.04 | 0.09 |
| RetinaFace (ResNet50) | 0.95 | 2.23 | 1.7 | 4.12 |
| Model | Accuracy | Precision | Recall | F1 Score |
| ResNet50 | 0.663 | 0.6629 | 0.6630 | 0.6607 |
| VGG13 | 0.687 | 0.6808 | 0.6621 | 0.6865 |
| VGG16 | 0.676 | 0.6748 | 0.6759 | 0.6740 |
| MobileNetV2 | 0.843 | 0.8394 | 0.8379 | 0.8400 |
| Emotion Category Removed | Accuracy Reduction (%) | Relative Importance |
| Anger | 12.5 | Critical |
| Fear | 10.3 | High |
| Happiness | 7.8 | Moderate |
| Sadness | 4.5 | Low |
| Surprise | 3.1 | Very Low |
| Disgust | 2.8 | Very Low |
AI in Education
AI in Education studies how artificial intelligence can support teaching, learning, assessment, and educational decision-making.
See all 262 papers