Skip to content

IntelligentSensingAndRehabilitation/MonocularBiomechanics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portable Biomechanics Laboratory: Clinically Accessible Movement Analysis from a Handheld Smartphone

J.D. Peiffer1,2, Kunal Shah1, Irina Djuraskovic1,3, Shawana Anarwala1, Kayan Abdou1, Rujvee Patel4, Prakash Jayabalan1,5, Brenton Pennicooke4, R. James Cotton1,5

1Shirley Ryan AbilityLab, Chicago, IL
2Biomedical Engineering, Northwestern University, Evanston, IL
3Interdepartmental Neuroscience, Northwestern University, Chicago, IL
4Neurological Surgery, Washington University School of Medicine, St. Louis, MO, USA
5Physical Medicine and Rehabilitation, Northwestern University Feinberg School of Medicine, Chicago, IL, USA

This repository includes code and a gradio demo for running the single camera (monocular) biomechanical fitting code from smartphone videos.

Abstract

The way a person moves is a direct reflection of their neurological and musculoskeletal health, yet it remains one of the most underutilized vital signs in clinical practice. Although clinicians visually observe movement impairments, they lack accessible and validated methods to objectively measure movement in routine care. This gap prevents wider use of biomechanical measurements in practice, which could enable more sensitive outcome measures or earlier identification of impairment.

In this work, we present our Portable Biomechanics Laboratory (PBL), which includes a secure, cloud-enabled smartphone app for data collection and a novel algorithm for fitting biomechanical models to this data. We extensively validated PBL’s biomechanical measures using a large, clinically representative and heterogeneous dataset with synchronous ground truth. Next, we tested the usability and utility of our system in both a neurosurgery and sports medicine clinic.

We found joint angle errors within 3 degrees and pelvis translation errors within several centimeters across participants with neurological injury, lower-limb prosthesis users, pediatric inpatients and controls. In addition to being easy and quick to use, gait metrics computed from the PBL showed high reliability (ICCs > 0.9) and were sensitive to clinical differences. For example, in individuals undergoing decompression surgery for cervical myelopathy, the modified Japanese Orthopedic Association (mJOA) score is a common patient-reported outcome measure; we found that PBL gait metrics not only correlated with mJOA scores but also demonstrated greater responsiveness to surgical intervention than the patient-reported outcomes.

These findings support the use of handheld smartphone video as a scalable, low-burden, tool for capturing clinically meaningful biomechanical data, offering a promising path toward remote, accessible monitoring of mobility impairments in clinical populations. To promote further research and clinical translation, we open-source the first method for measuring whole-body kinematics from handheld smartphone video validated in clinical populations: https://github.com/IntelligentSensingAndRehabilitation/MonocularBiomechanics

Code

Clone and install

git clone [email protected]:IntelligentSensingAndRehabilitation/MonocularBiomechanics.git
cd MonocularBiomechanics/
pip install -e .

Gradio demo

python main.py

A local webpage will open to upload and run the code.

Jupyter Notebook

A jupyter notebook with steps to run the pipeline can be found here.

Citation

This work has been presented at the 2024 American Society of Biomechanics Meeting and 2025 European Society of Biomechanics Meeting.

@misc{peiffer_portable_2025,
	title = {Portable Biomechanics Laboratory: Clinically Accessible Movement Analysis from a Handheld Smartphone},
	doi = {10.48550/arXiv.2507.08268},
	number = {{arXiv}:2507.08268},
	publisher = {{arXiv}},
	author = {Peiffer, J. D. and Shah, Kunal and Djuraskovic, Irina and Anarwala, Shawana and Abdou, Kayan and Patel, Rujvee and Jayabalan, Prakash and Pennicooke, Brenton and Cotton, R. James},
	date = {2025-07-11},
}

About

Gradio demo for the monocular fitting code

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •