Predicting Lower Limb Muscle Forces from Ground Reaction Forces During Gait Using Sequence and Attention-Based Deep Learning Models
This project aims to develop a data-driven model of the relationship between ground reaction forces and muscle forces using deep learning techniques. This model will be trained on a data from ten healthy individuals walking on a force-instrumented treadmill in a motion capture laboratory that has been collected, processed, and open-sourced by Uhlrich et al., 2022.
Four models were explored, including LSTM, CNN-LSTM, LSTM with Attention, and a Transformer. All models achieved strong predictive performance, with the Transformer model consistently outperforming others in accuracy across most muscle forces and overall. These results highlight the potential of deep learning to capture the complex relationships and patterns between GRFs and lower limb muscle forces during gait. This work provides the groundwork for advancing data-driven approaches in robotic cadaveric gait simulation, enabling more reliable and flexible control strategies to replicate physiological motions in cadavers.
- Python 3.11.10
- PyTorch 2.5.1 or later
- NumPy
- SciPy
- Matplotlib
- OpenSim 4.5 or later
- OpenSim Python API
- OpenSim MATLAB API
- Download dataset from the Coordination Retraining Project on SimTK
- Extract the dataset to the 'data' directory
- Run experimental gait data through the custom static opimization pipeline developed by Uhlrich et al., 2022
- Batch process and segment ground reaction forces and estimated muscle forces using the OpenSim API
- Preprocess data by resampling and normalizing data
- Save data to a .npy file
- Load .npy file and randomly split data into training, validation, and test sets
- Implement, tune, and train deep learning models
- Evaluate model performance on test set
- Calculate and visualize model performance metrics
- Create your branch
- Commit your changes
- Push to the branch
- Open a pull request
This project is licensed under the Creative Commons Zero License.
- Anthony Le (anth0nyhle, anthony.le@utah.edu)
- 0.1
- Initial Release
- Uhlrich SD, Jackson RW, Seth A, Kolesar JA, Delp SL, 2022. Muscle coordination retraining inspired by musculoskeletal simulations reduces knee contact force. Scientific Reports 12, 9842. https://doi.org/10.1038/s41598-022-13386-9.