Real-Time Activity Recognition Using Minimal Biomechanical Features: A Lightweight IMU-Based Classifier for Older Adults

Sep 4, 2025·
Ehsan Sharafian
Ehsan Sharafian
,
Colby Ellis
,
Babak Hejrati
· 2 min read
Abstract
We built a lightweight, real-time activity classifier that runs on a smartphone and uses only two interpretable biomechanical features, the thigh and foot angles measured by two IMUs, to recognize five daily activities: walking, stair ascent, stair descent, standing, and sitting. Instead of a deep network, a simple physics based KNN model paired with an adaptive toe-off segmentation keeps the computation light enough for real-time use on everyday devices. Trained on ten young adults and tested on separate cohorts of five young and ten older adults, the system reached 99% accuracy for normal movement and 93% accuracy in telling non-alternating leg stair negotiation, a common older-adult mobility pattern, apart from normal stair negotiation. The result is an accessible, computationally efficient health-monitoring approach tuned to how older adults actually move.
Type
Publication
IEEE Access
Status
Peer-reviewed Open access
publications

Why it matters

Knowing what activity a person is doing, and how well they are doing it, is the foundation of any real-world health-monitoring tool. But most activity-recognition systems fall short where it matters most:

  • They lean on deep learning and large datasets, so they are too heavy to run in real time on a phone.
  • They are trained almost entirely on young, healthy adults, and quietly assume everyone moves the same way.
  • Older adults with mobility limits often negotiate stairs with a non-alternating leg (NAL) pattern, leading with the same leg every step, and generic models simply misread this as normal.

What I built

A real-time, smartphone-based classifier that uses only two interpretable inputs, the thigh angle and the foot angle from two small IMUs, to recognize five everyday activities: walking, stair ascent, stair descent, standing, and sitting.

Two IMUs on the thigh and foot stream to a phone over Bluetooth; the thigh and foot angles are tracked across one stair cycle from toe-off to heel strike

Key contributions:

  • Minimal biomechanical features. Rather than a deep network, a simple and interpretable physics based KNN model classifies activity from just the thigh and foot angles, light enough to run live on a phone.
  • Adaptive toe-off segmentation. A segmentation step detects toe-off across different activities to cut each stride cleanly and reduce computation.
  • On-device Android app that collects labeled data and reports activity in real time.
  • Built for older adults. The model is explicitly trained to recognize the non-alternating leg stair pattern that generic classifiers miss.

The app in use for live data collection and labeling across standing, walking, stair ascent, stair descent, and sitting

See it in action

A short demo of the system running live: the phone screen shows the app classifying activities in real time while a participant walks and negotiates stairs.

Recognizing how older adults move

The hard case is stairs. When someone leads with the same leg on every step, the leading and trailing legs trace very different angle patterns, so the system has to read each leg differently.

The non-alternating leg (NAL) stair pattern, where the same leg leads each step while the other trails

Separating the leading leg from the trailing leg in the foot and thigh angle traces is what lets the model distinguish this mobility-limited pattern from normal stair negotiation.

Foot and thigh angle variations for leading versus trailing legs during non-alternating stair ascent and descent

Results

  • 99% activity-classification accuracy for young and older adults with normal movement patterns.
  • 93% accuracy in distinguishing non-alternating leg stair negotiation from normal stair negotiation in older adults.
  • Runs in real time on a smartphone, with no deep-learning model and no cloud.
  • Validated on cohorts the model never trained on, including ten older adults.

Together this shows that a small set of well-chosen biomechanical features can power an accessible, real-time health-monitoring system that respects how aging populations actually move.

Ehsan Sharafian
Authors
PhD Candidate in Mechanical Engineering
PhD candidate in Mechanical Engineering at the University of Maine. Focused on intelligent wearable systems that combine biomechanics, IMU-based sensing, machine learning, and real-time mobile applications for human movement analysis, gait assessment, activity recognition, and digital health.