Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2026 Mar 31:2026.03.30.715335. [Version 1] doi: 10.64898/2026.03.30.715335

Predicting Drosophila Body Orientation from a Translational Trajectory using an Artificial Neural Network

Nehal Singh Mangat, Christina E May, Katherine I Nagel, Floris van Breugel
PMCID: PMC13060169  PMID: 41959242

Abstract

Body orientation is a key variable in the analysis of insect flight behavior, yet it remains difficult to measure across the full extent of a trajectory in most experimental settings. Although modern tracking systems reliably capture the position and velocity of the center of mass, resolving body yaw orientation typically requires dedicated hardware confined to a small, purpose-built volume, and is impractical for large-scale or long-duration studies. Here, we develop a data-driven estimator that predicts body yaw orientation directly from translational flight trajectory data. We trained a fully connected feed-forward artificial neural network (ANN) on a dataset in which both flight trajectory and body orientation were recorded simultaneously in freely flying Drosophila , using a time-delay embedding of ground velocity, air velocity, and inferred thrust vectors as input features. To improve generalization across arbitrary coordinate frames, we augmented the training data with random rotational transformations. Evaluated on a withheld test set of 3,313 trajectories (101,576 frames), the rotation-augmented model achieved a median mean absolute angular error of 10.51°, with accurate heading recovery across the full [− π, π ) range. The estimator provides a practical tool for recovering body orientation information from existing trajectory datasets in which only center- of-mass motion was recorded, extending the behavioral and computational analysis of insect navigation to previously inaccessible data.

Full Text Availability

The license terms selected by the author(s) for this preprint version do not permit archiving in PMC. The full text is available from the preprint server.


Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES