Researchers from Stanford University, KU Leuven and UPC integrated automatic differentiation tools into biomechanics software to obtain movement simulations up to 20 times faster

Dec 13, 2019

Antoine Falisse (KU Leuven, Belgium) and Gil Serrancolí (Simulation and Movement Analysis Lab, UPC) integrated automatic differentiation tools into biomechanics software OpenSim and Simbody.

These automatic differentiation tools allow calculating derivatives of mathematical expressions more efficiently than using finite differences. These tools are very useful to solve optimization problems which need the calculation of thousands or millions of derivative evaluations of mathematical expressions. Biomechanical simulations aiming to calculate optimal trajectories are usually based on the resolution of an optimal control problem (dynamic optimization). The authors applied the developed method to this type of simulations.

This project started in 2016, and in 2017 Falisse and Serrancolí were awarded as OpenSim Visiting Scholars to do a research stay of one month at Stanford University and develop the project. The results of this study, led by Friedl De Groote (KU Leuven), were published in a scientific article in PlosOne. In this article, they compared the efficiency of the optimizations using either automatic differentiation or finite differences in biomechanical simulations, which can be up to 20 times faster using automatic differentiation:

Falisse, A; Serrancolí, G; Dembia, C.L.; Gillis, J; De Groote, F. Algorithmic differentiation improves the computational efficiency of OpenSim-based trajectory optimization of human movement. PloseOne 2019. doi.org/10.1371/journal.pone.0217730.

Gil Serrancolí used this method to estimate the parameters of a contact model between subject and exoskeleton, and between foot and ground, to later predict new collaborative movements between subject and exoskeleton. This study was framed within his postdoc at KU Leuven. The results can be found in the following publication:

Serrancoli, G.; Falisse, A.; Dembia, C.; Vantilt, J.; Tanghe, K.; Lefeber, D.; Jonkers, I.; De Schutter, J.; De Groote, F. Subject-exoskeleton contact model calibration leads to accurate interaction force predictions. IEEE transactions on neural systems and rehabilitation engineering 2019. 27(8): 1597-1605.

Antoine Falisse used the mentioned method to obtain predictions of human gait and study different control strategies:

Falisse, A; Serrancolí, G; Dembia, C.L.; Gillis, J; Jonkers, I; De Groote, I. Rapid predictive simulations with complex musculoskeletal models suggest that diverse healthy and pathological human gaits can emerge from similar control strategies. Journal of the Royal Society Interface 2019. doi.org/10.1098/rsif.2019.0402.

Those studies represent a significant contribution to the biomechanics field, since the computational time to solve the optimizations is decreased from hours to minutes. As mentioned in the articles, this method can be useful to predict new movements in silico after a certain surgery, to design assistive devices or to design rehabilitation or training programs.