Edge-AI enabled real-time classroom attentiveness monitoring via facial emotion recognition on Raspberry Pi
Bhavya Davda, Safvan Vahora, Nilesh Maltare, Hiren Patel
Key points
From the paper's conclusion- This paper presents an edge-AI enabled system for real-time classroom attentiveness monitoring using facial emotion recognition deployed entirely on a Raspberry Pi 5, eliminating the need for continuous cloud connectivity or transmission of raw video data.
Abstract
Monitoring student attentiveness in physical classrooms remains a largely manual and subjective process, typically relying on instructor observation, which is neither scalable nor continuous. This paper presents an edge-AI enabled system for real-time classroom attentiveness monitoring using facial emotion recognition deployed entirely on a Raspberry Pi 5, eliminating the need for continuous cloud connectivity or transmission of raw video data. The proposed pipeline captures classroom images at 60-s intervals over a full session, performs on-device face detection using RetinaFace, and classifies detected faces into seven emotion categories using DeepFace. A weighted aggregation scheme maps the resulting class-wide emotion distribution to a normalized per-frame attentiveness score, which is logged locally and subsequently visualized through a cloud-based dashboard for instructor review. The system was evaluated on a self-collected classroom dataset comprising 2 classrooms and 8 sessions with number of students ranging from 60 to 90 in each session. Each session is around 50–55 min. In the proposed system, the face-detection using the RetinaFace achieved an accuracy of 95.67%, compared with 89.46% using the implemented three-layer convolutional neural network (CNN) baseline. For emotion classification, the DeepFace achieved an accuracy of 93.46%, compared with 78.42% for the three-layer CNN baseline. The complete pipeline achieved an average inference latency of 62 ms per frame on a Raspberry Pi 5. By performing all sensitive image processing at the edge and transmitting only derived, non-identifiable attentiveness metrics to the cloud, the proposed system offers a privacy-preserving, low-cost, and scalable alternative to conventional classroom monitoring approaches. Results demonstrate the feasibility of deploying deep learning-based engagement analytics on resource-constrained edge hardware for real-world educational settings.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A real-time multimodal attention monitoring system for online learning: integrating behavioral, affective, and activity indicators to support adaptive teachingFrontiers in Education · 2026
- Real-Time Four-Category Student Engagement Classification from a Single Webcam Using a Hybrid ResNet and Geometric Feature Network.Journal of visualized experiments : JoVE · 2026
- Deep Convolutional Neural Networks for Stress Detection: A Facial Emotion-Aware ApproachElectronics · 2026
- Intelligent Transportation Monitoring Through Teager–Kaiser Energy Feature Enhancement and Metaheuristic OptimizationComputers · 2026
- An Embedded Ergonomic Posture Monitoring and AI-Assisted Home Learning System on a Raspberry Pi 3B Edge PlatformarXiv · 2026
- An Edge-Computing-Based Emotion-Aware Adaptive Lighting System for Intelligent CockpitsSensors · 2026