Abstract
Automated student behavior analysis in classrooms is essential for enhancing pedagogical quality but faces significant challenges regarding privacy, data complexity, and actionable interpretation. This paper presents an end-to-end framework that transforms raw surveillance footage into structured pedagogical reports. By utilizing privacy-preserving skeleton-based temporal action detection (TAD) and the reasoning capabilities of Large Language Models (LLMs), the system identifies specific student behaviors and translates them into expert-level educational insights.
Introduction
Traditional classroom observation is labor-intensive and prone to subjective bias. While computer vision offers automation potential, existing models often fail to provide temporal context or actionable advice for educators. Furthermore, the use of RGB video raises significant privacy concerns. Our framework addresses these hurdles by moving from "pixels to pedagogy," extracting 2D skeleton coordinates to ensure anonymity while providing a pipeline that generates human-readable reports based on established educational theories.
Methodology
The proposed framework operates in two distinct phases: detection and interpretation.
Skeleton-Based Temporal Action Detection (TAD)
To maintain student privacy, the system employs Human Pose Estimation (HPE) to extract 2D skeleton coordinates, discarding raw RGB data. The TAD component utilizes MotionBert as a motion encoder to capture spatial-temporal features, followed by ActionFormer to localize the start and end times of specific classroom behaviors.
LLM-Powered Report Generation
The TAD output—a structured log of student actions—is processed by an LLM (e.g., GPT-4). Through sophisticated prompt engineering, including "Identity Implication" (assigning the role of a pedagogy expert) and "Theoretical Guidance" (applying frameworks like Behaviorism), the LLM synthesizes raw data into actionable classroom management recommendations.
Data Synthesis and Datasets
A significant challenge in classroom TAD is the lack of large-scale annotated datasets. To overcome this, we developed a custom synthetic dataset by "stitching" action sequences from the NTU RGB+D dataset. We employed multi-view synthesis to simulate various camera angles and motion interpolation to ensure smooth transitions between actions. The resulting dataset contains 4,710 long sequences (over 76 million frames) covering eight key behaviors: listening, reading, writing, phone usage, typing, hand-raising, tiredness, and standing.
Results and Discussion
The framework demonstrates high technical proficiency and practical utility.
Detection Performance
The TAD model achieved a mean Average Precision (mAP) of 77.89%. Ablation studies revealed that multi-view synthesis was the most critical factor in improving accuracy, as it allows the model to generalize across different classroom layouts.
Pedagogical Insight Quality
Human evaluations indicated that GPT-4 significantly outperformed smaller models (LLaMA-7B/13B) and GPT-3.5 in depth of analysis. The inclusion of pedagogical theory in prompts improved report quality scores from 4.25 to 7.91 out of 10. The system successfully identifies "Standout Patterns," such as specific students exhibiting prolonged off-task behavior, providing teachers with targeted intervention points.
Conclusion and Future Work
By prioritizing privacy through skeleton data and leveraging the reasoning power of LLMs, this framework bridges the gap between raw data and educational practice. Future work will focus on addressing real-world occlusions and expanding the model to capture complex group dynamics and teacher-student interactions. Integrating lesson plans into the LLM prompts will further enhance the context-awareness of the generated pedagogical insights.
Summary updated