Home
OCTRON is a pipeline built on napari that enables segmentation, detection, and tracking of animals in behavioral setups. It helps you to create rich annotation data that can be used to train your own machine learning segmentation and detection models. This enables dense quantification of animal behavior across a wide range of species and video recording conditions.
OCTRON is built on Napari, Segment Anything (SAM2/SAM3), YOLO, BoxMOT and 💜.
Main repository: OCTRON-GUI
New preprint version available — v2
We have just uploaded a revised version of the OCTRON preprint! Read version 2 on bioRxiv.
The main steps implemented in OCTRON typically include: Loading video data from behavioral experiments, annotating frames with SAM2/SAM3 assistance to create training data, training machine learning models for detection or segmentation, and finally applying these models to new data for automated tracking.
Support
If you find this project helpful, consider supporting us:
- GitHub Sponsors
- Buy Me a Coffee
How to cite
Using OCTRON for your project? Please cite this paper to share the word!
Read the newly uploaded version 2 on bioRxiv.
Jacobsen, R. I., van Eekelen, N. M., Humphrey, L., Renton, J., van Rooij, E., Rivera, J., Arenas, O. M., Lumpkin, E. A., Maccuro, S., Buresch, K. C., Seuntjens, E., & Obenhaus, H. A. (2025). OCTRON - a general purpose segmentation and tracking pipeline for behavioral experiments. bioRxiv, 2025.12.20.695663. https://doi.org/10.64898/2025.12.20.695663
@ARTICLE{Jacobsen2025-qq,
title = "{OCTRON} - a general purpose segmentation and tracking pipeline
for behavioral experiments",
author = "Jacobsen, Ragnhild Irene and van Eekelen, Nadia M and Humphrey,
Laurel and Renton, Johnston and van Rooij, Elke and Rivera, Jason
and Arenas, Oscar M and Lumpkin, Ellen A and Maccuro, Sofia and
Buresch, Kendra C and Seuntjens, Eve and Obenhaus, Horst A",
journal = "bioRxiv",
pages = "2025.12.20.695663",
doi = "10.64898/2025.12.20.695663",
url = "https://www.biorxiv.org/content/10.64898/2025.12.20.695663v2",
abstract = "OCTRON is a pipeline for markerless segmentation and tracking of
animals in behavioral experiments. By combining Segment Anything
Models (SAM 2) for rapid annotation, YOLO11 models for training,
and state-of-the-art multi-object trackers, OCTRON enables
unsupervised segmentation and tracking of multiple animals with
complex, deformable body plans. We validate its versatility across
species - from transparent marine annelids to camouflaging
cuttlefish - demonstrating robust, general-purpose applicability
for behavioral analysis.",
month = dec,
year = 2025,
language = "en"
}
Attributions
- Interface button and icon images were created by user Arkinasi from Noun Project (CC BY 3.0)
- Logo font: datalegreya
- OCTRON's viewer and graphical interface are built on napari, developed by the napari contributors. Software citation: napari: a multi-dimensional image viewer for Python.
- OCTRON mp4 video reading is based on napari-pyav
- Annotation and object-label colour maps are provided by CMasher:
@article{vanderVelden2020cmasher, author = {van der Velden, Ellert}, title = {{CMasher}: Scientific colormaps for making accessible, informative and 'cmashing' plots}, journal = {Journal of Open Source Software}, volume = {5}, number = {46}, pages = {2004}, year = {2020}, doi = {10.21105/joss.02004}, url = {https://doi.org/10.21105/joss.02004} } - OCTRON model training and prediction use Ultralytics YOLO, including the YOLO11 model family:
- OCTRON annotation uses the Segment Anything model family. The original SAM work is credited below:
@article{kirillov2023segany, title={Segment Anything}, author={Kirillov, Alexander and Mintun, Eric and Ravi, Nikhila and Mao, Hanzi and Rolland, Chloe and Gustafson, Laura and Xiao, Tete and Whitehead, Spencer and Berg, Alexander C. and Lo, Wan-Yen and Doll{\'a}r, Piotr and Girshick, Ross}, journal={arXiv:2304.02643}, year={2023} } - SAM 2 / SAM 2.1 provide image and video segmentation:
@article{ravi2024sam2, title={SAM 2: Segment Anything in Images and Videos}, author={Ravi, Nikhila and Gabeur, Valentin and Hu, Yuan-Ting and Hu, Ronghang and Ryali, Chaitanya and Ma, Tengyu and Khedr, Haitham and R{\"a}dle, Roman and Rolland, Chloe and Gustafson, Laura and Mintun, Eric and Pan, Junting and Alwala, Kalyan Vasudev and Carion, Nicolas and Wu, Chao-Yuan and Girshick, Ross and Doll{\'a}r, Piotr and Feichtenhofer, Christoph}, journal={arXiv preprint arXiv:2408.00714}, url={https://arxiv.org/abs/2408.00714}, year={2024} } - OCTRON's SAM 2 HQ option uses HQ-SAM 2, which extends the HQ-SAM approach to SAM 2. Its authors recommend the following HQ-SAM citation, in addition to crediting SAM 2:
- SAM 3 provides concept-prompted segmentation:
@misc{carion2025sam3segmentconcepts, title={SAM 3: Segment Anything with Concepts}, author={Nicolas Carion and Laura Gustafson and Yuan-Ting Hu and Shoubhik Debnath and Ronghang Hu and Didac Suris and Chaitanya Ryali and Kalyan Vasudev Alwala and Haitham Khedr and Andrew Huang and Jie Lei and Tengyu Ma and Baishan Guo and Arpit Kalla and Markus Marks and Joseph Greer and Meng Wang and Peize Sun and Roman Rädle and Triantafyllos Afouras and Effrosyni Mavroudi and Katherine Xu and Tsung-Han Wu and Yu Zhou and Liliane Momeni and Rishi Hazra and Shuangrui Ding and Sagar Vaze and Francois Porcher and Feng Li and Siyuan Li and Aishwarya Kamath and Ho Kei Cheng and Piotr Dollár and Nikhila Ravi and Kate Saenko and Pengchuan Zhang and Christoph Feichtenhofer}, year={2025}, eprint={2511.16719}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2511.16719}, } - OCTRON multi-object tracking is provided by BoxMOT: