Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB

Computer modeling, simulation and optimization are powerful tools that have seen increased use in biomechanics research. Dynamic optimizations can be categorized as either data-tracking or predictive problems. The data-tracking approach has been used extensively to address human movement problems of...

Full description

Bibliographic Details
Main Authors: Leng-Feng Lee, Brian R. Umberger
Format: Article
Language:English
Published: PeerJ Inc. 2016-01-01
Series:PeerJ
Subjects:
Online Access:https://peerj.com/articles/1638.pdf
id doaj-5030a559931943daa5c04f4bb3613786
record_format Article
spelling doaj-5030a559931943daa5c04f4bb36137862020-11-24T22:50:35ZengPeerJ Inc.PeerJ2167-83592016-01-014e163810.7717/peerj.1638Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLABLeng-Feng LeeBrian R. UmbergerComputer modeling, simulation and optimization are powerful tools that have seen increased use in biomechanics research. Dynamic optimizations can be categorized as either data-tracking or predictive problems. The data-tracking approach has been used extensively to address human movement problems of clinical relevance. The predictive approach also holds great promise, but has seen limited use in clinical applications. Enhanced software tools would facilitate the application of predictive musculoskeletal simulations to clinically-relevant research. The open-source software OpenSim provides tools for generating tracking simulations but not predictive simulations. However, OpenSim includes an extensive application programming interface that permits extending its capabilities with scripting languages such as MATLAB. In the work presented here, we combine the computational tools provided by MATLAB with the musculoskeletal modeling capabilities of OpenSim to create a framework for generating predictive simulations of musculoskeletal movement based on direct collocation optimal control techniques. In many cases, the direct collocation approach can be used to solve optimal control problems considerably faster than traditional shooting methods. Cyclical and discrete movement problems were solved using a simple 1 degree of freedom musculoskeletal model and a model of the human lower limb, respectively. The problems could be solved in reasonable amounts of time (several seconds to 1–2 hours) using the open-source IPOPT solver. The problems could also be solved using the fmincon solver that is included with MATLAB, but the computation times were excessively long for all but the smallest of problems. The performance advantage for IPOPT was derived primarily by exploiting sparsity in the constraints Jacobian. The framework presented here provides a powerful and flexible approach for generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB. This should allow researchers to more readily use predictive simulation as a tool to address clinical conditions that limit human mobility.https://peerj.com/articles/1638.pdfPredictive simulationDynamicsMusculoskeletal modelOptimization
collection DOAJ
language English
format Article
sources DOAJ
author Leng-Feng Lee
Brian R. Umberger
spellingShingle Leng-Feng Lee
Brian R. Umberger
Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
PeerJ
Predictive simulation
Dynamics
Musculoskeletal model
Optimization
author_facet Leng-Feng Lee
Brian R. Umberger
author_sort Leng-Feng Lee
title Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
title_short Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
title_full Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
title_fullStr Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
title_full_unstemmed Generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB
title_sort generating optimal control simulations of musculoskeletal movement using opensim and matlab
publisher PeerJ Inc.
series PeerJ
issn 2167-8359
publishDate 2016-01-01
description Computer modeling, simulation and optimization are powerful tools that have seen increased use in biomechanics research. Dynamic optimizations can be categorized as either data-tracking or predictive problems. The data-tracking approach has been used extensively to address human movement problems of clinical relevance. The predictive approach also holds great promise, but has seen limited use in clinical applications. Enhanced software tools would facilitate the application of predictive musculoskeletal simulations to clinically-relevant research. The open-source software OpenSim provides tools for generating tracking simulations but not predictive simulations. However, OpenSim includes an extensive application programming interface that permits extending its capabilities with scripting languages such as MATLAB. In the work presented here, we combine the computational tools provided by MATLAB with the musculoskeletal modeling capabilities of OpenSim to create a framework for generating predictive simulations of musculoskeletal movement based on direct collocation optimal control techniques. In many cases, the direct collocation approach can be used to solve optimal control problems considerably faster than traditional shooting methods. Cyclical and discrete movement problems were solved using a simple 1 degree of freedom musculoskeletal model and a model of the human lower limb, respectively. The problems could be solved in reasonable amounts of time (several seconds to 1–2 hours) using the open-source IPOPT solver. The problems could also be solved using the fmincon solver that is included with MATLAB, but the computation times were excessively long for all but the smallest of problems. The performance advantage for IPOPT was derived primarily by exploiting sparsity in the constraints Jacobian. The framework presented here provides a powerful and flexible approach for generating optimal control simulations of musculoskeletal movement using OpenSim and MATLAB. This should allow researchers to more readily use predictive simulation as a tool to address clinical conditions that limit human mobility.
topic Predictive simulation
Dynamics
Musculoskeletal model
Optimization
url https://peerj.com/articles/1638.pdf
work_keys_str_mv AT lengfenglee generatingoptimalcontrolsimulationsofmusculoskeletalmovementusingopensimandmatlab
AT brianrumberger generatingoptimalcontrolsimulationsofmusculoskeletalmovementusingopensimandmatlab
_version_ 1725671947306532864