bioRxivEcologyPreprint
BehaveAI: a framework for rapidly detecting and classifying objects and behaviour from motion
Jolyon T. TrosciankoiD, Thomas A. O’Shea-WhelleriD, James A. M. GallowayiD, Kevin J. GastoniD
Abstract
Here we introduce BehaveAI, a biologically inspired video analysis framework that integrates static and motion information through a novel colour-from-motion encoding strategy. This method translates object movement - direction, speed, and acceleration - into colour gradients, enabling both human annotators and pre-trained convolutional neural networks (CNNs) to infer motion patterns while retaining high-resolution spatial detail. Using a range of case studies, we demonstrate how the increased salience of motion information allows for the robust detection of objects that are challenging or impossible to identify reliably from static frames alone, particularly in complex natural scenes. We further demonstrate the reliable classification of different behaviours in animals and single-celled organisms. Additionally, the framework supports flexible hierarchical model structures that can separate the tasks of detection and classification for optimal efficiency, and provide individual tracking data that specifies what is present where and what it is doing in each frame. The framework makes use of the latest deep learning architecture (YOLO), combined with a semi-supervised annotation workflow. Together with salient motion information, these features can dramatically reduce the effort required for dataset annotation such that reliable models can often be made within an hour. Moreover, smaller annotation datasets mean that model training can be achieved on conventional computers without dedicated hardware, thereby improving accessibility. The motion encoding approach is also computationally lightweight, and can run in real-time on low-end edge devices such as a Raspberry Pi. We release the framework as a free, open source, and user-friendly package.
- assay: imaging
- research focus: differential expression
- research focus: cell-cell communication
- research focus: clustering
- approach: deep learning
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- DeepAction: A MATLAB toolbox for automated classification of animal behavior in video
Carl Harris, Kelly R. Finn, … Peter Ulric Tse·Scientific ReportsPeer-reviewed·Feb 15, 2023
- YOLO-Behaviour: A simple, flexible framework to automatically quantify animal behaviours from videos
Alex Hoi Hang Chan, Prasetia Utama Putra, … Fumihiro Kano·Methods in Ecology and EvolutionPeer-reviewed·Feb 12, 2025
- B-REAL: A keypoint-less behavior platform for offline classification and real-time detection
Eric A. Yttri, Aden Eagle, … Runcheng Li·bioRxiv·Oct 20, 2026
- V-TRACE: End-to-end temporal inference and annotation ofanimal behaviors from video
Kunming Shi, Guangwei Zhang, … Li I. Zhang·bioRxiv·Sep 14, 2026
- Frame-by-frame annotation of video recordings using deep neural networks
A. M. Conway, I. N. Durbach, … R. N. Harris·bioRxiv·Jun 29, 2020
- DeepEthogram: a machine learning pipeline for supervised behavior classification from raw pixels
James P. Bohnslav, Nivanthika K. Wimalasena, … Christopher D. Harvey·eLifePeer-reviewed·Sep 2, 2021