eLife Assessment
This study introduces Megabouts, a transformer-based classifier for larval zebrafish movement bouts. This useful tool is thoughtfully implemented and has clear potential to unify analyses across labs. However, the evidence supporting its robustness is incomplete. How the method generalizes across datasets, how sensitive it is to noise, and the specific sources of misclassification are unclear. The method would also be strengthened by providing options for users to fine-tune the clusters under different experimental conditions, which would further enhance reliability and flexibility.