NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Spatial-Temporal Transformer based Framework For Human Pose Assessment And Correction in Education Scenarios

Wenyang Hu, Kai Liu, Libin Liu, Huiliang Shang · DOI

Introduction

While AI-driven human pose estimation (HPE) has become a staple in consumer technology—powering everything from social media filters to fitness trackers—most existing tools are limited to "recognition-only" capabilities. They can identify a specific exercise or count repetitions, but they often lack the nuance required to evaluate how well a movement is being performed. In educational settings, such as physical education or laboratory science, the ability to detect subtle technical errors is critical for both learning and injury prevention.

This paper introduces a Spatial-Temporal Transformer based Framework (STTF) designed specifically for these educational scenarios. By combining lightweight pose estimation with a transformer model that understands both body geometry and movement timing, the system provides students with real-time, visual feedback to improve their form.

Methodology

The proposed framework utilizes a multi-stage pipeline designed for both accuracy and real-time performance:

  1. Pose Estimation via LitePose: The system employs LitePose, a state-of-the-art lightweight model. By processing high- and low-resolution streams in parallel, LitePose maintains the high precision necessary for assessment while remaining computationally efficient enough for edge deployment in schools.
  2. Global and Local Normalization: To ensure the AI can compare a student's movement to a professional's regardless of camera angle or the student's height, the framework applies a normalization layer. This process "uprights" the skeleton and scales the torso to a standardized coordinate system.
  3. Spatial-Temporal Transformer (STTF): This core component acts as the analytical engine:
  4. Spatial Module: Analyzes the geometric relationship between joints within a single frame (e.g., the specific angle of an elbow during a pull-up).
  5. Temporal Module: Evaluates how these joints move over time, capturing the rhythm, sequence, and speed of the action.
  6. Assessment and Visual Correction: The model evaluates movements based on joint angles and pace. When a deviation from the "ground truth" is detected, the system generates visual aids—such as arrows and overlays—showing the student exactly how to adjust their posture.

Data and Experimental Setup

The researchers validated the framework using two primary data sources:

  • COCO Dataset: Utilized for the initial training and validation of the LitePose 2D pose estimation component.
  • Custom Education Dataset: The authors developed a specialized dataset containing 30,000 video frames. This dataset features five professional teachers and five students performing five distinct activities: Bench Press, Deep Squats, Pull-ups, a CO2 production science experiment, and Baduanjin (a traditional Chinese exercise). Crucially, this dataset includes both "ground truth" professional recordings and annotated "wrong" movements with specific corrective feedback.

Key Insights

The Importance of Pace

A significant contribution of this research is the inclusion of pace as a primary metric. In many physical activities, moving too quickly during specific phases (such as the eccentric phase of a lift) can be a sign of poor technique or a safety hazard. The temporal transformer allows the model to identify these timing-based errors that static models would miss.

Beyond Static Analysis

Traditional assessment tools often rely on analyzing a single "peak" frame of an exercise. By utilizing a transformer architecture, this framework treats the entire movement as a continuous sequence. This allows it to identify errors that occur during transitions, providing a more holistic view of the student's performance.

Actionable Feedback

Rather than providing a simple numerical score, the system focuses on "quick-to-fix" visual feedback. By reconstructing the correct joint positions and overlaying them as intuitive arrows on the video feed, the AI provides coaching that is immediately understandable to the student.

Results and Performance

The framework demonstrated high technical proficiency and practical utility:

  • Accuracy: The LitePose component achieved Average Precision (AP) scores ranging from 0.963 to 1.000 on the COCO validation set.
  • Qualitative Success: In testing, the framework successfully distinguished between "Correct" (C) and "Wrong" (W) movements. For example, during a bench press, the model detected a drop in the joint score (from 72.2 to 56.7) when a student failed to abduct their arms correctly, successfully triggering the appropriate corrective advice.
  • Efficiency: The single-branch architecture of LitePose ensures the system maintains the low computational overhead required for real-time educational applications.

Conclusion and Future Work

While the STTF framework represents a significant step forward in automated coaching, the authors note several areas for future development. These include expanding the dataset to include more diverse body types and environments, deepening the biomechanical data used for feedback, and adapting the temporal modeling to handle more complex, multi-step tasks in science education. Ultimately, this framework provides a foundation for AI-assisted learning that moves beyond simple detection toward meaningful, professional-grade instruction.

Summary updated

BibTeX
@misc{hu2023spatial,
  author = {Wenyang Hu and Kai Liu and Libin Liu and Huiliang Shang},
  title = {{A Spatial-Temporal Transformer based Framework For Human Pose Assessment And Correction in Education Scenarios}},
  year = {2023},
  eprint = {2311.00401},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.00401},
}
Figure