Back

Threshold-Free Neural Network Models for Swim Bout Detection of Larval Zebrafish

Wang, H.; Kroeschell, G.; Zhu, Y.; Mumm, J. S.; Yi, J.

2026-01-12 bioengineering
10.64898/2026.01.11.698899 bioRxiv
Show abstract

Accurate identification of swim bouts is essential for decoding motor responses in larval zebrafish, yet conventional threshold-based methods rely on subjective cutoffs and per-experiment tuning. To overcome these limitations, we developed threshold-free deep learning models for post-hoc data processing (offline model) and an online model optimized for real-time detection. Both models showed superior precision over threshold-based methods, especially for low-amplitude bouts. Using the offline model, we validated that our head-fixing protocol with closed-loop visual feedback largely preserves naturalistic swimming kinematics. We further showed that repeated trials of moving grating stimulus led to lower bout frequency and longer interbout intervals (IBI). By contrast, transparent pigmentation mutants (nacre and casper) showed similar bout frequencies and IBIs but shorter duration compared to wildtype (AB) larvae. Together, these findings highlight the versatility of our models, enabling reproducible, high-throughput, and biologically relevant analysis of zebrafish behavior across a wide range of experimental paradigms.

Matching journals

The top 5 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.