EXACT: A Meta-Learning Framework for Precise Exercise Segmentation in Physical Therapy

DOI

Overview

EXACT is a meta-learning framework designed to precisely segment exercises in physical therapy using IMU (Inertial Measurement Unit) sensor data. The framework addresses the critical challenge of automatically identifying exercise boundaries and transitions in continuous sensor data streams, enabling accurate assessment and feedback for remote physical therapy.

The Challenge

Physical therapy exercises need precise temporal segmentation to:

However, traditional supervised learning approaches struggle with:

Our Solution

EXACT leverages meta-learning (learning to learn) to enable few-shot segmentation of exercise data. The framework can quickly adapt to new patients or exercise types with minimal labeled examples while maintaining high segmentation accuracy.

Key Innovations

  1. Meta-Learning Framework: Uses Model-Agnostic Meta-Learning (MAML) to learn initialization parameters that can rapidly adapt to new tasks
  2. Temporal Positional Encoding: Captures temporal dependencies critical for exercise segmentation
  3. Atrous Spatial Pyramid Pooling (ASPP): Multi-scale feature extraction for robust segmentation
  4. Dense Labeling Task Sampler: Specialized episodic sampling for time-series segmentation tasks
  5. Support for Multiple Architectures: Compatible with U-Net, Transformer, CNN, and custom models

Technical Architecture

EXACT-UNet Model

Our best-performing model combines:

Meta-Learning Pipeline

Support Set (K-shot examples) → Inner Loop Adaptation → Query Set Evaluation
                                      ↓
                              Meta-Optimizer Updates
  1. Support Set: Few labeled examples (e.g., 1-5 samples) from a new task
  2. Inner Loop: Rapid adaptation using gradient descent
  3. Query Set: Test on unseen samples from the same task
  4. Meta Update: Learn better initialization for future adaptation

Results

EXACT was evaluated on three physical therapy datasets:

Performance Metrics

Key Achievement: EXACT achieves competitive performance with only 1-shot learning (single example per class), enabling rapid deployment for new patients.

Code & Resources

Quick Start

# Pull Docker image
docker pull wang584041187/exact:latest

# Run with GPU
docker run -it --rm --gpus all wang584041187/exact:latest

# Train on PhysiQ dataset
python main_meta_v2.py --dataset physiq --model ex --n_shot 1 --n_epochs 200

Publications

Wang, Hanchen David, Bae, Siwoo, Sun, Xutong, Thatigotla, Yashvitha, and Ma, Meiyi. “EXACT: A Meta-Learning Framework for Precise Exercise Segmentation in Physical Therapy.” Proceedings of the ACM/IEEE 16th International Conference on Cyber-Physical Systems (ICCPS), 2024.

Citation

@inproceedings{wang2025exact,
  title={EXACT: A Meta-Learning Framework for Precise Exercise Segmentation in Physical Therapy},
  author={Wang, Hanchen David and Bae, Siwoo and Sun, Xutong and Thatigotla, Yashvitha and Ma, Meiyi},
  booktitle={Proceedings of the ACM/IEEE 16th International Conference on Cyber-Physical Systems (with CPS-IoT Week 2025)},
  pages={1--11},
  year={2025}
}

Technology Stack

Supported Models

Impact & Applications

EXACT enables:

Authors

Future Directions

We continue to enhance EXACT through:


← Back to Projects