Whole-body physics simulation of fruit fly locomotion

R Roman Vaxenburg I Igor Siwanowicz J Josh Merel A Alice A. Robie C Carmen Morrow G Guido Novati Z Zinovia Stefanidi G Gert-Jan Both G Gwyneth M. Card M Michael B. Reiser M Matthew M. Botvinick K Kristin M. Branson Y Yuval Tassa S Srinivas C. Turaga

Abstract

Abstract The body of an animal influences how its nervous system generates behaviour1. Accurately modelling the neural control of sensorimotor behaviour requires an anatomically detailed biomechanical representation of the body. Here we introduce a whole-body model of the fruit fly Drosophila melanogaster in a physics simulator2. Designed as a general-purpose framework, our model enables the simulation of diverse fly behaviours, including both terrestrial and aerial locomotion. We validate its versatility by replicating realistic walking and flight behaviours. To support these behaviours, we develop phenomenological models for fluid and adhesion forces. Using data-driven, end-to-end reinforcement learning3,4, we train neural network controllers capable of generating naturalistic locomotion5–7 along complex trajectories in response to high-level steering commands. Furthermore, we show the use of visual sensors and hierarchical motor control8, training a high-level controller to reuse a pretrained low-level flight controller to perform visually guided flight tasks. Our model serves as an open-source platform for studying the neural control of sensorimotor behaviour in an embodied context.

Article Details

Journal Nature
Volume / Issue Vol. 643, Issue 8074
Published July 31, 2025
Pages 1312-1320
ISSN 0028-0836
Publisher Nature Portfolio

Journal Info

Nature

Nature Portfolio

ISSN: 0028-0836 Health Sciences

Authors (14)

R

Roman Vaxenburg

I

Igor Siwanowicz

J

Josh Merel

A

Alice A. Robie

C

Carmen Morrow

G

Guido Novati

Z

Zinovia Stefanidi

G

Gert-Jan Both

G

Gwyneth M. Card

M

Michael B. Reiser

M

Matthew M. Botvinick

K

Kristin M. Branson

Y

Yuval Tassa

S

Srinivas C. Turaga