Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Dec 19;120(51):e2309058120.
doi: 10.1073/pnas.2309058120. Epub 2023 Dec 12.

Deep kinematic inference affords efficient and scalable control of bodily movements

Affiliations

Deep kinematic inference affords efficient and scalable control of bodily movements

Matteo Priorelli et al. Proc Natl Acad Sci U S A. .

Abstract

Performing goal-directed movements requires mapping goals from extrinsic (workspace-relative) to intrinsic (body-relative) coordinates and then to motor signals. Mainstream approaches based on optimal control realize the mappings by minimizing cost functions, which is computationally demanding. Instead, active inference uses generative models to produce sensory predictions, which allows a cheaper inversion to the motor signals. However, devising generative models to control complex kinematic chains like the human body is challenging. We introduce an active inference architecture that affords a simple but effective mapping from extrinsic to intrinsic coordinates via inference and easily scales up to drive complex kinematic chains. Rich goals can be specified in both intrinsic and extrinsic coordinates using attractive or repulsive forces. The proposed model reproduces sophisticated bodily movements and paves the way for computationally efficient and biologically plausible control of actuated systems.

Keywords: active inference; kinematics; motor control; neurocomputational modeling; predictive coding.

PubMed Disclaimer

Conflict of interest statement

Competing interests statement:The authors declare no competing interest.

Figures

Fig. 1.
Fig. 1.
Generative models for deep kinematic inference. (A) The Intrinsic–Extrinsic (IE) generative model. The two hidden states are intrinsic and extrinsic coordinates, each with its own dynamics. The proprioceptive generative model extracts joint angles from the intrinsic belief, which are used for both posture inference and movement. At the same time, the exteroceptive model produces a visual prediction (in the simulations reported below, it is approximated by directly using the absolute position of the hand). Inverse kinematics is performed by inference, via backpropagation of extrinsic prediction errors. On the other hand, inverse dynamics from proprioceptive predictions to motor control signals is realized through reflex arcs. (B) The deep hierarchical generative model that extends the IE model. The deep model is exemplified for the control of a kinematic plant composed of seven blocks arranged hierarchically, from head to fingers (note that the bottom level is branched, as there are three fingers). Here, the highest (head) level only encodes an extrinsic offset, namely, the initial position and orientation of the origin’s reference frame. (C) Factor graph of a single level of the deep hierarchical model. Each block j has the same structure as the kinematic generative model shown in Panel A, but with slight differences. In short, intrinsic beliefs μi(j) and extrinsic beliefs μe(j) are linked by a generative kinematic model ge, and they encode information about a single kinematic level. They generate proprioceptive predictions pp(j) and visual predictions pv(j) only at their specific level. Intrinsic and extrinsic beliefs have their own dynamics, encoded in the functions fi(j) and fe(j), which predict future trajectories and are used for goal-directed behavior. Finally, the extrinsic belief at each level j acts as a prior for the level below j+1.
Fig. 2.
Fig. 2.
Results. (A) Simulation setup: a 4R robotic arm with realistic joint limits reaching a static target (red circle). The trajectory of each joint is shown with blue lines. (B) Comparison between the deep kinematic model (deep), the simpler IE model (IE), and two standard active inference controllers based on Jacobian transpose (transp) and pseudoinverse (pinv). The blue and red bars denote the performance of the models during perceptual inference and reaching, respectively. Note that to better probe the model’s ability to perform perceptual inference, we only allow the model to use visual observations, but not proprioceptive observations during this phase (however, the model can still use proprioceptive observations for reaching). (C) Evolution over time of the difference between true and estimated end effector positions (blue line), and between true and estimated lengths of the body segments (green line), aggregated over 1,000 trials during inference only. The dashed gray line represents the minimum distance defining a successful inference.
Fig. 3.
Fig. 3.
Deep inference. Comparison between hierarchical models with increasing DoF (here, kinematic depth). Inference (Top) and reach (Bottom) simulations.
Fig. 4.
Fig. 4.
Applications. Track and avoid (A), maintain orientation (B), perform circular trajectory (C), avoid with a full human body (D), reach multiple targets with a full human body (E), and with a more complex kinematic tree (F). The trajectories in the first panel represent the hand-obstacle distance (red line), the hand-target distance (green line), and the minimum distance that the target is considered to be reached (dotted blue line). Instead, the trajectories in the next two panels show the absolute orientation of every joint (in particular, the purple line is the orientation of the hand). More information about the specific tasks and other applications can be found in SI Appendix.

References

    1. Floegel M., Kasper J., Perrier P., Kell C. A., How the conception of control influences our understanding of actions. Nat. Rev. Neurosci. 24, 313–329 (2023). - PubMed
    1. Todorov E., Optimality principles in sensorimotor control. Nat. Neurosci. 7, 907–915 (2004). - PMC - PubMed
    1. Diedrichsen J., Shadmehr R., Ivry R. B., The coordination of movement: Optimal feedback control and beyond. Trends Cogn. Sci. 14, 31–39 (2010). - PMC - PubMed
    1. Shadmehr R., Smith M. A., Krakauer J. W., Error correction, sensory prediction, and adaptation in motor control. Annu. Rev. Neurosci. 33, 89–108 (2010). - PubMed
    1. McNamee D., Wolpert D. M., Internal models in biological control. Annu. Rev. Control, Rob., Auton. Syst. 2, 339–364 (2019). - PMC - PubMed

LinkOut - more resources