Related Experiment Video
Updated: Jan 14, 2026

Behavioral And Physiological Analysis In A Zebrafish Model Of Epilepsy
Published on: October 19, 2021
Comparing human annotation and machine learning models for optimizing zebrafish behavioral classification in seizure
Barbara D Fontana1, Camilla W Pretzel2, Mariana L Müller2
1Laboratory of Experimental Neuropsychobiology, Department of Biochemistry and Molecular Biology, Federal University of Santa Maria, Santa Maria, RS, Brazil; Graduate Program in Biological Sciences, Toxicological Biochemistry, Federal University of Santa Maria, Santa Maria, RS, Brazil.
Background:
Accurate and scalable behavioral annotation remains a challenge in behavioral neuroscience. Manual scoring is time-consuming, variable across annotators, and may overlook transient behaviors critical for phenotyping. By learning from annotated datasets, supervised machine learning (ML) enables automated classification of behavior with high consistency and reduced bias.
New Method:
We benchmarked five supervised ML algorithms, Random Forest, XGBoost, Support Vector Machine, k-Nearest Neighbors, and Multilayer Perceptron (MLP), and compared data against expert human annotations of seizure-like behaviors in adult zebrafish. Twelve trained raters annotated over 43,000 video frames, enabling direct comparison of model performance with human annotation. After frame-level analysis, we also applied behavior-informed filters and then evaluated block-level temporal aggregation.
Results:
Annotation variability was driven by behavioral complexity, with ambiguous behaviors showing the lowest agreement. Random Forest, XGBoost, and MLP achieved the highest accuracy and post-processing based on posture and velocity improved classification by filtering false positives. Block-level aggregation enhanced accuracy through temporal smoothing but masked short-lived behaviors critical for detecting subtle phenotypes.
Comparison With Existing Methods:
Most zebrafish seizure studies rely on manual scoring or single-model ML applications. Direct comparisons between multiple ML algorithms and human annotations are rare. Our study uniquely integrates large-scale manual scoring with model benchmarking and temporal resolution strategies, offering insight into reproducibility and scalability in behavioral phenotyping.
Conclusions:
This study advances automated behavioral analysis in zebrafish by demonstrating the strengths and limitations of machine learning compared to human annotation, and emphasizes how choices in temporal resolution and behavioral classification influence reproducibility and interpretability.

