Back

BettaAI: a machine-learning object detection model for the quantification of aggressive displays in the Siamese fighting fish Betta splendens

Cardoso, S. D.; Fusani, B.; Ramos, A.; Maria, J. M.; Goncalves, D. M.

2026-10-06 animal behavior and cognition
10.64898/2026.09.30.755682 bioRxiv
Show abstract

The Siamese fighting fish (Betta splendens) is well-known for its high levels of aggression and complex, stereotyped displays, making it an ideal model for testing deep learning-based tools for high-throughput, unbiased quantification of aggressive behaviour. A deep-learning object recognition model (BettaAI) was developed to detect the species' aggressive displays, including threat (opercula opening and fin distension), attack (bites) behaviours, as well as surface air breathing, a behaviour correlated with the frequency and intensity of aggression. Videos of males confronting their mirror image were acquired simultaneously with synchronised top and side cameras. Two separate models were trained, with some behaviours identified from top-view frames and others from side-view frames; outputs from both models were combined and post-processed for final quantification. BettaAI performed with high accuracy: F1 scores were 0.99 for the top-view model and 0.93 for the side-view model. Average Precision (AP) at 0.5 IoU exceeded 0.98 for all categories except bites, a rare behaviour in the dataset, which reached 0.865. Comparisons with a manually curated "ground-truth" dataset from videos of 10 males showed strong concordance between automated quantification and manual annotations by expert observers across all behaviours. A case study on 461 males reacting either to a mirror or to a video playback of a conspecific demonstrated the high-throughput and unbiased advantages of BettaAI, with threat displays being more frequent toward the mirror image and attack rates not differing between treatments. This work underscores the potential of BettaAI for automated, bias-free quantification of aggressive displays in B. splendens.

Matching journals

The top 4 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.