title: A platform for dynamic simulation and control of movement based on OpenSim and MATLAB.
abstract: Numerical simulations play an important role in solving complex engineering problems and have the potential to revolutionize medical decision making and treatment strategies. In this paper, we combine the rapid model-based design, control systems and powerful numerical method strengths of MATLAB/Simulink with the simulation and human movement dynamics strengths of OpenSim by developing a new interface between the two software tools. OpenSim is integrated with Simulink using the MATLAB S-function mechanism, and the interface is demonstrated using both open-loop and closed-loop control systems. While the open-loop system uses MATLAB/Simulink to separately reproduce the OpenSim Forward Dynamics Tool, the closed-loop system adds the unique feature of feedback control to OpenSim, which is necessary for most human movement simulations. An arm model example was successfully used in both open-loop and closed-loop cases. For the open-loop case, the simulation reproduced results from the OpenSim Forward Dynamics Tool with root mean square (RMS) differences of 0.03° for the shoulder elevation angle and 0.06° for the elbow flexion angle. MATLAB's variable step-size integrator reduced the time required to generate the forward dynamic simulation from 7.1s (OpenSim) to 2.9s (MATLAB). For the closed-loop case, a proportional-integral-derivative controller was used to successfully balance a pole on model's hand despite random force disturbances on the pole. The new interface presented here not only integrates the OpenSim and MATLAB/Simulink software tools, but also will allow neuroscientists, physiologists, biomechanists, and physical therapists to adapt and generate new solutions as treatments for musculoskeletal conditions.
authors.affiliation: Department of Mechanical, Aerospace, and Biomedical Engineering, The University of Tennessee, Knoxville, TN 37996-2210, USA. misagh@utk.edu
authors.forename: Misagh
authors.initials: M
authors.lastname: Mansouri
authors.forename: Jeffrey A
authors.initials: JA
authors.lastname: Reinbolt
mesh_terms: D000818:Animals; D003198:Computer Simulation; D025461:Feedback, Physiological / Q000502:physiology; D006801:Humans; D007596:Joints / Q000502:physiology*; D008954:Models, Biological; D009068:Movement / Q000502:physiology*; D009119:Muscle Contraction / Q000502:physiology*; D018482:Muscle, Skeletal / Q000502:physiology*; D011381:Programming Languages; D012984:Software; D013710:Tendons / Q000502:physiology*