Ehsan Noshahri, Andres Molares-Ulloa, Carlota Fraga-Seijas, Alejandro Puente-Castro, Alvaro Rodriguez
{"title":"Classifying rodent behaviors one frame at a time: A CNN-based method","authors":"Ehsan Noshahri, Andres Molares-Ulloa, Carlota Fraga-Seijas, Alejandro Puente-Castro, Alvaro Rodriguez","doi":"10.1016/j.ecoinf.2026.103927","DOIUrl":null,"url":null,"abstract":"<div><div>The classification of animal behavior is essential in disciplines such as pharmacology, neuroscience, and ecology. Traditional methods are labor-intensive, time-consuming, and dependent on human observation, while many existing automated approaches rely on pose estimation and temporal models that demand extensive data, annotations, and computational resources. This study proposes a non-temporal, frame-by-frame deep learning approach for classifying rodent behaviors directly from annotated video frames, without relying on pose estimation, body-part segmentation, or temporal context, and requiring only frame-level annotations. We constructed a large dataset of images representing distinct rodent behaviors in operant conditioning chambers to evaluate multiple convolutional neural network (CNN) architectures of various sizes. Our results show that deep CNNs achieve high classification performance in terms of accuracy and F1-score. The models maintain strong performance under challenging conditions, including restricted training data, noisy labels, and low subject diversity, demonstrating their data efficiency and resilience. Performance remains stable even when trained on data from a limited number of animals, supporting the method’s practicality for population-level behavior classification. Together, these results suggest that robust behavior classification can be achieved without temporal context, even under realistic experimental constraints such as limited data availability and label noise. The proposed framework also offers flexibility across different data formats, including static images and partial video recordings. Overall, our approach provides an accessible and scalable alternative for behavioral researchers, lowering barriers to automated animal behavior analysis while preserving strong classification performance.</div></div>","PeriodicalId":51024,"journal":{"name":"Ecological Informatics","volume":"97 ","pages":"Article 103927"},"PeriodicalIF":8.5000,"publicationDate":"2026-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Ecological Informatics","FirstCategoryId":"93","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1574954126003341","RegionNum":2,"RegionCategory":"环境科学与生态学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/16 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"ECOLOGY","Score":null,"Total":0}
引用次数: 0
Abstract
The classification of animal behavior is essential in disciplines such as pharmacology, neuroscience, and ecology. Traditional methods are labor-intensive, time-consuming, and dependent on human observation, while many existing automated approaches rely on pose estimation and temporal models that demand extensive data, annotations, and computational resources. This study proposes a non-temporal, frame-by-frame deep learning approach for classifying rodent behaviors directly from annotated video frames, without relying on pose estimation, body-part segmentation, or temporal context, and requiring only frame-level annotations. We constructed a large dataset of images representing distinct rodent behaviors in operant conditioning chambers to evaluate multiple convolutional neural network (CNN) architectures of various sizes. Our results show that deep CNNs achieve high classification performance in terms of accuracy and F1-score. The models maintain strong performance under challenging conditions, including restricted training data, noisy labels, and low subject diversity, demonstrating their data efficiency and resilience. Performance remains stable even when trained on data from a limited number of animals, supporting the method’s practicality for population-level behavior classification. Together, these results suggest that robust behavior classification can be achieved without temporal context, even under realistic experimental constraints such as limited data availability and label noise. The proposed framework also offers flexibility across different data formats, including static images and partial video recordings. Overall, our approach provides an accessible and scalable alternative for behavioral researchers, lowering barriers to automated animal behavior analysis while preserving strong classification performance.
期刊介绍:
The journal Ecological Informatics is devoted to the publication of high quality, peer-reviewed articles on all aspects of computational ecology, data science and biogeography. The scope of the journal takes into account the data-intensive nature of ecology, the growing capacity of information technology to access, harness and leverage complex data as well as the critical need for informing sustainable management in view of global environmental and climate change.
The nature of the journal is interdisciplinary at the crossover between ecology and informatics. It focuses on novel concepts and techniques for image- and genome-based monitoring and interpretation, sensor- and multimedia-based data acquisition, internet-based data archiving and sharing, data assimilation, modelling and prediction of ecological data.