Abhishek Dutta, Natalia Pérez-Campanero, Graham K Taylor, Andrew Zisserman, Cait Newport
{"title":"Detect+Track: robust and flexible software tools for improved tracking and behavioural analysis of fish.","authors":"Abhishek Dutta, Natalia Pérez-Campanero, Graham K Taylor, Andrew Zisserman, Cait Newport","doi":"10.1098/rsos.242086","DOIUrl":null,"url":null,"abstract":"<p><p>We introduce a novel video processing method called Detect+Track that combines a deep learning-based object detector with a template-based object agnostic tracker to significantly enhance the accuracy and robustness of animal tracking. Applied to a behavioural experiment involving Picasso triggerfish (<i>Rhinecanthus aculeatus</i>) navigating a randomized array of cylindrical obstacles, the method accurately localizes fish centroids across challenging conditions including occlusion, variable lighting, body deformation and surface ripples. Virtual gates between adjacent obstacles and between obstacles and tank boundaries are computed using Voronoi tessellation and planar homology, enabling detailed analysis of gap selection behaviour. Fish speed, movement direction and a more precise estimate of body centroid-key metrics for behavioural analyses-are estimated using optical flow method. The modular workflow is adaptable to new experimental designs, supports manual correction and retraining for new object classes and allows efficient large-scale batch processing. By addressing key limitations of existing tracking tools, Detect+Track provides a flexible and generalizable solution for researchers studying movement and decision-making in complex environments. A detailed tutorial is provided, together with all the data and code required to reproduce our results and enable future innovations in behavioural tracking and analysis.</p>","PeriodicalId":21525,"journal":{"name":"Royal Society Open Science","volume":"12 7","pages":"242086"},"PeriodicalIF":2.9000,"publicationDate":"2025-07-23","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC12289192/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Royal Society Open Science","FirstCategoryId":"103","ListUrlMain":"https://doi.org/10.1098/rsos.242086","RegionNum":3,"RegionCategory":"综合性期刊","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2025/7/1 0:00:00","PubModel":"eCollection","JCR":"Q1","JCRName":"MULTIDISCIPLINARY SCIENCES","Score":null,"Total":0}
引用次数: 0
Abstract
We introduce a novel video processing method called Detect+Track that combines a deep learning-based object detector with a template-based object agnostic tracker to significantly enhance the accuracy and robustness of animal tracking. Applied to a behavioural experiment involving Picasso triggerfish (Rhinecanthus aculeatus) navigating a randomized array of cylindrical obstacles, the method accurately localizes fish centroids across challenging conditions including occlusion, variable lighting, body deformation and surface ripples. Virtual gates between adjacent obstacles and between obstacles and tank boundaries are computed using Voronoi tessellation and planar homology, enabling detailed analysis of gap selection behaviour. Fish speed, movement direction and a more precise estimate of body centroid-key metrics for behavioural analyses-are estimated using optical flow method. The modular workflow is adaptable to new experimental designs, supports manual correction and retraining for new object classes and allows efficient large-scale batch processing. By addressing key limitations of existing tracking tools, Detect+Track provides a flexible and generalizable solution for researchers studying movement and decision-making in complex environments. A detailed tutorial is provided, together with all the data and code required to reproduce our results and enable future innovations in behavioural tracking and analysis.
期刊介绍:
Royal Society Open Science is a new open journal publishing high-quality original research across the entire range of science on the basis of objective peer-review.
The journal covers the entire range of science and mathematics and will allow the Society to publish all the high-quality work it receives without the usual restrictions on scope, length or impact.