FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping

preprint OA: closed
📄 Open PDF Full text JSON View at publisher

Abstract

Animal behavior unfolds continuously in time, yet quantitative analyses often require segmenting it into discrete, interpretable states. Although manual annotation can achieve this, it remains slow, subjective, and difficult to scale. Most automated pipelines use tracked body parts to infer actions, but are limited by tracking quality, and discard much of the visual information contained in raw videos. Here we present FERAL (Feature Extraction for Recognition of Animal Locomotion), a supervised video-understanding toolkit that bridges this gap by mapping raw video directly to frame-level behavioral labels, bypassing the need for pose estimation. Across benchmarks, FERAL outperforms state-of-the-art pose- and video-based baselines: on a benchmarking dataset of mouse social interaction, it surpasses Google’s Videoprism using just a quarter of the training data. FERAL generalizes across species, recording conditions, and levels of behavioral organization: from single-animal locomotion to complex social interactions and emergent collective dynamics. Released as a user-friendly, open-source package, FERAL overcomes the challenges of traditional approaches, integrates easily with existing analysis pipelines, and can be deployed locally or on cloud servers with a few clicks. By mapping raw video directly to annotated behavior, FERAL lowers the barrier to scalable, cross-species behavioral quantification and broadens the range of behavioral analyses possible in both the lab and the wild.
Full text 87,322 characters · extracted from preprint-html · click to expand
FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping View ORCID Profile Peter Skovorodnikov , Janet Zhao , View ORCID Profile Friederike Buck , View ORCID Profile Tomas Kay , View ORCID Profile Dominic D. Frank , View ORCID Profile Benjamin Koger , View ORCID Profile Blair R. Costelloe , View ORCID Profile Iain D. Couzin , View ORCID Profile Jacopo Razzauti doi: https://doi.org/10.1101/2025.11.16.688666 Peter Skovorodnikov 1 Data Science Platform, The Rockefeller University , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Peter Skovorodnikov For correspondence: peter.skovorodnikov{at}gmail.com jacopo.razza{at}gmail.com Janet Zhao 2 Laboratory of Social Evolution and Behavior, The Rockefeller University , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Friederike Buck 3 Lulu and Anthony Wang Laboratory of Neural Circuits and Behavior, The Rockefeller University , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Friederike Buck Tomas Kay 2 Laboratory of Social Evolution and Behavior, The Rockefeller University , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Tomas Kay Dominic D. Frank 2 Laboratory of Social Evolution and Behavior, The Rockefeller University , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Dominic D. Frank Benjamin Koger 4 School of Computing, University of Wyoming , Laramie, WY, USA 5 Department of Zoology and Physiology, University of Wyoming , Laramie, WY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Benjamin Koger Blair R. Costelloe 6 Department of Collective Behaviour, Max Planck Institute of Animal Behavior , Konstanz, Germany 7 Department of Biology, University of Konstanz , Konstanz, Germany 8 Centre for the Advanced Study of Collective Behaviour, University of Konstanz , Germany Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Blair R. Costelloe Iain D. Couzin 6 Department of Collective Behaviour, Max Planck Institute of Animal Behavior , Konstanz, Germany 7 Department of Biology, University of Konstanz , Konstanz, Germany 8 Centre for the Advanced Study of Collective Behaviour, University of Konstanz , Germany Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Iain D. Couzin Jacopo Razzauti 9 Laboratory of Neurogenetics and Behavior, The Rockefeller University , New York, NY, USA 10 The Price Family Center for the Social Brain, The Rockefeller University , New York, NY, USA 11 Howard Hughes Medical Institute , New York, NY, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Jacopo Razzauti For correspondence: peter.skovorodnikov{at}gmail.com jacopo.razza{at}gmail.com Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Animal behavior unfolds continuously in time, yet quantitative analyses often require segmenting it into discrete, interpretable states. Although manual annotation can achieve this, it remains slow, subjective, and difficult to scale. Most automated pipelines use tracked body parts to infer actions, but are limited by tracking quality, and discard much of the visual information contained in raw videos. Here we present FERAL (Feature Extraction for Recognition of Animal Locomotion), a supervised video-understanding toolkit that bridges this gap by mapping raw video directly to frame-level behavioral labels, bypassing the need for pose estimation. Across benchmarks, FERAL outperforms state-of-the-art pose- and video-based baselines: on a benchmarking dataset of mouse social interaction, it surpasses Google’s Videoprism using just a quarter of the training data. FERAL generalizes across species, recording conditions, and levels of behavioral organization: from single-animal locomotion to complex social interactions and emergent collective dynamics. Released as a user-friendly, open-source package, FERAL overcomes the challenges of traditional approaches, integrates easily with existing analysis pipelines, and can be deployed locally or on cloud servers with a few clicks. By mapping raw video directly to annotated behavior, FERAL lowers the barrier to scalable, cross-species behavioral quantification and broadens the range of behavioral analyses possible in both the lab and the wild. Introduction Quantifying animal behavior remains a central challenge in biology, linking neural activity, evolution, and ecology through the study of discrete, observable actions [ 1 – 4 ]. Since the earliest days of ethology, researchers have identified these actions through naturalistic observation and manual annotation [ 5 – 9 ], establishing the foundation of modern behavioral science [ 3 , 10 – 12 ]. Such analyses have been essential across disciplines, informing research in ecology [ 13 ], neuroscience [ 14 ], disease modeling, and drug discovery. Manual annotation remains the most versatile method for quantifying behavior, adapting to scene complexities that range from controlled arenas to field recordings. However, it is labor-intensive, subjective, and the main bottleneck in scaling behavioral research [ 15 – 17 ]. Advances in computer vision have partially mitigated this limitation through markerless tracking tools such as DeepLabCut [ 18 ], SLEAP [ 19 ], and LightningPose [ 20 ], which estimate the positions of animals and their body parts over time [ 21 , 22 ]. These tools have transformed behavioral analysis in laboratory settings, but still require tightly controlled imaging conditions. In more naturalistic or noisy environments, they often fail, forcing researchers to simplify behavioral assays (e.g., by tethering animals or designing task-specific arenas), rely on manual annotation, or to abandon complex analyses altogether ( Figure 1a-b ). Importantly, these methods answer where animals (and their body parts) are, but not what actions they are performing. Download figure Open in new tab Figure 1: Overview of the FERAL workflow (a) Conceptual space of behavioral analysis: increasing scene complexity (left to right) and level of organization (bottom to top) challenge tracking and pose-based pipelines for behavior segmentation. (b) Direct video-to-behavior mapping: FERAL learns from raw scenes and expert labels, bypassing skeletonized pose to produce frame-level segmentations. (c) Video preprocessing : raw videos are resized and re-encoded into standardized, seekable inputs. (d) Behavior labels preprocessing : user annotations are converted to a unified frame-aligned JSON schema (class names and per-frame label arrays). (e) Frames chunking : videos are divided into overlapping temporal segments. (f) Model training : chunks are embedded by a pretrained video encoder (i.e., V-JEPA2); attention pooling aggregates spatiotemporal features followed by a lightweight head. Overlapping predictions are ensembled to produce stable frame-level probabilities. (g) Outputs : segmented videos, ethograms, and model weights for reuse or further fine-tuning. Automatically determining the actions animals are engaged in remains a greater challenge. Current computational pipelines for behavioral segmentation depend almost entirely on pose-based outputs, transforming keypoint trajectories into discrete behavioral states [ 2 , 23 – 28 ]. Analyses based on these intermediate, skeletonized representations are limited by tracking quality and feasibility, and discard rich contextual information that is often essential for accurate behavioral interpretation. As the level of behavioral organization increases, such as in social or collective dynamics, these pipelines become increasingly complex, requiring multi-animal tracking and extensive post-tracking curation ( Figure 1a ). In many cases, the visual cues that define a behavior are well established, and researchers primarily need a scalable, automated way to recognize them across large datasets. To bridge this gap, we developed FERAL (Feature Extraction for Recognition of Animal Locomotion), a supervised video-understanding system that learns behavior directly from raw video frames, bypassing the need for pose trajectories while preserving full temporal and visual information ( Figure 1b ). This approach is particularly advantageous when pose estimation is unreliable or unnecessary for the analysis at hand. FERAL can operate either alongside or independently of existing pose-based frameworks, providing an end-to-end solution for context-rich behavioral segmentation. Leveraging a pretrained video foundation model [ 29 ], FERAL integrates motion and visual cues within a unified architecture. Trained directly on videos aligned with expert annotations, it detects discrete actions and generates interpretable behavioral sequences (i.e., ethograms) that reliably capture discrete animal behavior. On benchmarking datasets, FERAL consistently outperforms state-of-the-art pose- and video-based baselines. It generalizes robustly across seven datasets spanning diverse species, recording modalities (from controlled laboratory conditions to field and aerial footages), and levels of behavioral organization: from single-animal locomotion in C. elegans to social interactions and emergent collective dynamics in rodents, ants, and primates. These results demonstrate that FERAL maintains high performance even in scenarios where traditional pipelines typically struggle. For instance, FERAL makes analysis of behaviors involving extensive interaction of animals either with each other or with their environments much more feasible. Designed for ease of use, FERAL unifies preprocessing, training, and inference within a modular, user-friendly workflow requiring no coding or machine learning expertise. With only a few lines of Python it can be run locally or on cloud platforms such as Google Colab, providing a scalable, context-aware foundation for modern behavioral science. Results Direct video-to-behavior mapping with FERAL FERAL provides a user-friendly, end-to-end workflow that takes raw videos and behavioral annotations as inputs, fine-tunes an open-source video-understanding model, and outputs segmented behavioral sequences. To ensure reproducibility across laboratories and recording setups, the pipeline standardizes both inputs (videos and labels) into a unified format. The first stage is video preprocessing . Because video-understanding models operate on relatively low-resolution inputs (e.g., 512×512 pixels), input videos must be resized and re-encoded into seekable formats to enable efficient frame sampling [ 29 , 30 ]. FERAL includes a cross-platform function that automates this process, producing standardized inputs regardless of the original recording format ( Figure 1c ). The second stage, label preparation , converts behavioral annotations from diverse software (e.g., BORIS [ 31 ], EthoVision [ 32 ]) into a consistent schema [ 31 , 33 ]. The annotations provided by the user, often timestamp-based, are converted into JSON files that map every video frame to a categorical behavioral label ( Figure 1d ). In practice, users need only a folder of videos and a corresponding label file to initiate training and inference. Because full-length recordings cannot be processed in a single pass, FERAL divides each video into overlapping temporal chunks that are independently processed and corresponding predictions are subsequently ensembled ( Figure 1e ). This design minimizes misclassification at behavioral boundaries and maintains temporal continuity by ensuring that each short behavior is fully captured within at least one chunk. After evaluating several potential backbones, we adopted V-JEPA2 [ 29 ], a recent foundation model introduced by Meta FAIR (see Methods). Trained self-supervised on over one million hours of unlabeled video, V-JEPA2 learns rich spatiotemporal embeddings through a masked-prediction objective, producing a robust representation of input videos. Within FERAL, we fine-tune only a subset of its transformer layers using comparatively small, annotated datasets (i.e., the user-provided videos and labels). This aligns pretrained representations with the specific demands of behavioral segmentation rather than retraining the model from scratch [ 34 ] ( Figure 1f ). To generate frame-level predictions, FERAL extends the encoder with an attention-based pooling module and a classification head. Each video chunk is represented as a sequence of spatiotemporal tokens that are integrated by a transformer, then compressed via attention pooling into temporally aligned embeddings. These embeddings are normalized and linearly projected into class logits, producing frame-wise probabilities that are ensembled across overlapping segments. The resulting outputs are interpretable ethograms that describe what actions animals are performing at each frame. These can be visualized directly or integrated into downstream analyses. Model weights are automatically saved, allowing users to reuse or fine-tune trained networks on new datasets without retraining from scratch ( Figure 1g ). Together, these design choices make FERAL both powerful and accessible, establishing a practical and reproducible framework for direct video-to-behavior mapping. FERAL outperforms state-of-the-art methods across benchmarks To evaluate FERAL’s precision and robustness relative to existing approaches, we benchmarked its performance on two established datasets that provide raw videos aligned with frame-level behavioral annotations. The first, the Caltech Mouse Social Interactions (CalMS21) dataset [ 35 ], contains recordings of freely behaving mice engaged in resident–intruder assays, paired with both tracked poses and expert behavioral labels ( Figure 2a ). The second, MaBE (Multi-Agent Behavior Benchmark) [ 36 ], is a large-scale, multi-species dataset spanning mice, beetles, ants, and flies, each annotated across diverse behavioral categories. Together, these datasets test FERAL’s core capability: direct video-to-behavior mapping without reliance on pose trajectories or bounding-box detections. Because only the beetle subset of MaBE provides both raw video and synchronized expert annotations, our evaluation focused on this subset. Download figure Open in new tab Figure 2: FERAL outperforms state-of-the-art baselines across benchmarks. (a) Example frame and corresponding behavioral labels from the CalMS21 dataset. (b) Representative ethograms comparing FERAL predictions (bottom) to expert annotations (top). (c) Mean average precision across models on the CalMS21 dataset. (d) Fraction of correctly (lavender) and incorrectly (red) classified frames per video. (e) Confusion matrix of misclassified frames. (f) Comparison between groundtruth and predicted frame counts for each behavioral category across videos. (g) Data-efficiency analysis showing mean average precision (mAP) as a function of the percentage of training data used (1%, 2.5%, 5%, 12%, 25%, 50%). (h) F1 score comparison between FERAL and the reference baseline on the MaBE dataset. Originally introduced as a community challenge for the classification of social behavior, the CalMS21 dataset included multiple baseline models and public submissions. We compared FERAL against a suite of alternative pose- and video-based approaches using mean average precision (mAP), the official metric of the original challenge. The strongest released baseline, in addition to the labeled behavioral dataset, employed self-supervised pretraining on large sets of unlabeled pose trajectories [ 35 ]. We also report the Competition Top-1 entry from the official leaderboard and results from Google’s VideoPrism paper [ 37 ]. This closed-source video-understanding model was fine-tuned on CalMS21 by freezing its backbone and training only the attention-pooling and classification heads. FERAL achieved the highest overall performance on CalMS21, reaching 94.5%, outperforming the strongest baseline (88.9%), competition Top-1 (91.4%), and VideoPrism (91.5%) models ( Figure 2b-c , Supplementary Video 1 ). FERAL also maintained consistent performance across videos, correctly classifying the majority of the frames within each sequence ( Figure 2d ). Confusion-matrix analysis ( Figure 2e ) showed that residual errors were mostly confined to confusions between “no label” and “investigate” categories, indicating occasional uncertainty in distinguishing background periods from subtle actions. Quantitative comparison of predicted and annotated total behavior durations per video ( Figure 2f ) confirmed high agreement across all behavioral categories, demonstrating that FERAL accurately preserved both the temporal structure and balance between classes of the annotated behavioral data. To assess how much labeled data FERAL requires to achieve strong performance, we progressively subsampled the training set of CalMS21 ( Figure 2g ). FERAL achieved a mAP of 92.8 using only 50% of the available training data and 92.1 with 25%, already surpassing both the VideoPrism and Competition Top-1 models trained on the full dataset. Even when trained with only 12% of the data, performance remained high (89.0%), and robust mAP was maintained down to 5% (84.6%) and 2.5% (82.6%). At the lowest sampling level (1%), FERAL still achieved 60.0%, demonstrating strong data efficiency. These results highlight that FERAL achieves high and stable performance with minimal annotation effort. For the beetle subset of MaBE , we evaluated FERAL’s frame-level predictions against expert annotations using the macro-averaged F1 score, following the evaluation protocol of the original publication. The top-performing submission in the MaBE challenge achieved a score of 0.758, which we adopt here as the reference baseline [ 36 ]. FERAL exceeded this performance by a wide margin (0.92) ( Figure 2h ). Note that in the competition, participants did not have access to labeled data for the target behaviors during training, so it is expected that FERAL, which is trained directly on the target-behavior labels, achieves higher performance. FERAL captures the temporal structure and visual appearance of behaviors To assess FERAL’s ability to generalize across species and recording modalities, we applied it to two datasets, both acquired in laboratory conditions, representing distinct levels of behavioral organization and scene complexity. Single-animal behavior in C. elegans This dataset is comprised of recordings of freely moving Caenorhabditis elegans performing four canonical locomotor behaviors: forward crawling, reverse crawling, turning, and pausing ( Figure 3a ) [ 38 , 39 ]. Unlike other datasets used in this study, these behavioral labels were not manually annotated; instead, each frame was automatically assigned to a locomotory state using a rule-based heuristic pipeline adapted from prior work [ 38 ]. In this pipeline, worms were segmented from the background, centroid positions were extracted, head–tail orientation was inferred from midline dynamics, and locomotor state was determined using speed thresholds, direction of motion, and self-intersection criteria (see Methods). Download figure Open in new tab Figure 3: FERAL captures the temporal and visual appearance of behaviors. (a) Example frames from the C. elegans dataset showing forward and reverse locomotion states. (b) Representative ethograms comparing groundtruth annotations (top) and FERAL predictions (bottom) for C. elegans locomotory states. (c) Confusion matrix of misclassified frames across the four locomotor states ( forward , reverse , turn , pause ). (d) Fraction of correctly (lavender) and incorrectly (red) classified frames per video for C. elegans . (e) Example frame from recordings of dyadic interactions between an adult and larval clonal raider ant ( Ooceraea biroi ). (f) Quantitative comparison of groundtruth and predicted frame counts for each grooming category. (g) Representative ethograms from O. biroi videos comparing groundtruth and FERAL predictions for self-grooming and allogrooming events. For each video, the centroid of the worm was continuously tracked, and a cropped image window centered on the animal was extracted to maintain consistent framing. FERAL leverages temporal context by integrating information from preceding and subsequent frames to classify each moment in time. As a result, it accurately segmented all four behavioral states and correctly distinguished between forward and reverse locomotion. These two locomotory states appear nearly identical in single frames but become separable through their temporal dynamics ( Figure 3b , Supplementary Video 2 ). Confusion-matrix analysis ( Figure 3c ) showed that the majority of errors were confined to transitions between kinematically adjacent states, such as “forward” versus “pause” or “forward” versus “reverse.” Across videos, FERAL maintained very high frame-level accuracy ( Figure 3d ). Beyond its strong performance, this analysis illustrates how FERAL can be seamlessly integrated into existing behavioral pipelines as a post-tracking module, complementing traditional centroid-based approaches by directly mapping cropped video segments to behaviors. Dyadic interactions in Ooceraea biroi We next tested FERAL on a dataset capturing adult–larva interactions in the clonal raider ant Ooceraea biroi , which included expert annotations (J.Z.) for self-grooming and allogrooming events ( Figure 3e ). Self-grooming involves individuals cleaning their own body, while allogrooming targets another colony member which, in this case, is a larva. Accurate classification thus requires recognizing not only motion patterns but also the spatial relationship between the adult and the larva. This poses a major challenge for pose-based pipelines: (i) pose estimation is unreliable under frequent occlusions; and (ii) modeling these social interactions using skeletonized data requires integrating information from multiple individuals. FERAL bypasses the need for pose estimation and pose-based segmentation, thus avoiding these challenges altogether. It reliably identified both self- and allogrooming events directly from raw videos ( Supplementary Video 3 ), maintaining the overall temporal dynamics of each behavior across videos with high fidelity to the original expert annotations ( Figure 3f-g ). Altogether, these results highlight FERAL’s ability to extract meaningful behaviors from spatiotemporal patterns that are difficult to access with single-frame or pose-based approaches, demonstrating its capacity to generalize from individual locomotion to social behaviors. FERAL generalizes to field recordings of wild animals Given FERAL’s robust performance on datasets acquired in the laboratory, we next evaluated its generalization to field recordings, which typically exhibit higher scene complexity than laboratory videos. Vigilance behavior in zebras This dataset consisted of videos of wild Grevy’s ( Equus grevyi ) captured using a drone in Kenya. Free-ranging groups of zebras were filmed from a nadir (directly overhead) perspective. As with the C. elegans dataset, the centroid of each animal was continuously tracked following methods described in [ 40 ] and a cropped image window was centered on the animal to maintain consistent framing. Individual videos were annotated in BORIS by an expert (B.R.C.) to identify bouts of vigilance behavior, defined as the individual standing still with its head raised ( Figure 4a ). Due to the nadir perspective, the vertical head position of the zebras is challenging to detect, and previous attempts using pose estimation methods were unsuccessful at reliably identifying vigilance bouts. Download figure Open in new tab Figure 4: FERAL generalizes to field recordings of wild animals. (a) Representative drone frame from recordings of wild Grevy’s zebras ( Equus grevyi ) in Kenya. (b) Example ethograms comparing expert annotations (top) and FERAL predictions (bottom) for the zebras dataset. (c) Fraction of correctly (lavender) and incorrectly (red) classified frames per video for the zebras dataset. (d) Quantitative comparison of predicted and annotated vigilance and out-of-sight bout durations across videos for the zebras dataset. (e) Representative frames from the PanAf500 dataset [ 41 ], showing wild chimpanzees recorded by camera traps in forest environments, with one example frame for each annotated behavioral class. (f) Representative ethograms comparing expert labels (top) and FERAL predictions (bottom) across locomotor and postural behaviors for the PanAf500 dataset. (g) Fraction of correctly (lavender) and incorrectly (red) classified frames per video for the PanAf500 dataset. (h) Mean average precision (mAP) per behavioral class (bars) and labeled data proportion (red line) for each behavioral class for the PanAf500 dataset. FERAL accurately detected the onset and duration of vigilance periods directly from raw video ( Figure 4b ), closely matching expert annotations across most recordings. FERAL also accurately detected the frames in which the animal was out of sight. The fraction of correctly labeled frames was consistently high across all videos ( Figure 4c ). Quantitative comparison between predicted and annotated frame durations showed strong agreement for both vigilant and out-of-sight states ( Figure 4d ), indicating that FERAL successfully generalized to aerial perspectives and preserved temporal precision even under the natural variability of field conditions. Chimpanzee and gorilla behavior in the wild To further assess FERAL’s generalization to complex, naturalistic scenes, we evaluated its performance on the PanAf500 dataset [ 41 ], which contains camera-trap videos of wild chimpanzees ( Pan troglodytes ) and gorillas recorded across multiple African field sites as part of the Pan African Programme: The Cultured Chimpanzee. Each clip was manually annotated with fine-grained behavioral categories, including locomotor (e.g., walking, climbing, running), postural (e.g., standing, sitting, hanging), and interaction-related behaviors ( Figure 4e ). Multiple behavior labels can be assigned to the same frame, making this a multi-class, multi-species dataset that tests FERAL’s capacity to handle visual and behavioral complexity. Despite substantial variation in lighting, vegetation, and visibility typical of camera-trap footage, FERAL accurately segmented common postural and locomotor behaviors such as sitting , walking , standing , and climbing (both up and down), achieving an overall mean average precision of 65.7%. The fraction of correctly labeled frames, where predictions for all behaviors are correct, varied widely across videos, possibly reflecting differences in scene complexity, visibility, and behavioral diversity ( Figure 4f-g , Supplementary Video 4 ). While rare classes such as running , and sitting on back exhibited lower precision, visually distinctive yet infrequent behaviors like climbing up and climbing down were detected with high average precision despite their low representation in the labeled data ( Figure 4h ). Together, these results demonstrate that FERAL’s performance on videos acquired in laboratory settings transfers robustly to field recordings spanning diverse species, habitats, and acquisition modalities. Its ability to extract meaningful behavioral structure directly from raw video highlights the model’s versatility and scalability for quantifying natural behavior in ecologically realistic contexts. FERAL identifies emergent collective behaviors directly from raw video To test whether FERAL generalizes from individual and dyadic interactions to collective dynamics, we applied it to recordings of clonal raider ant ( Ooceraea biroi ) colonies filmed continuously over several days ( Figure 5a ). In this species, foraging occurs as synchronized group raids [ 42 ]. Manual annotation of such raiding events was used as ground truth. Despite the high density of individuals, FERAL accurately detected the onset and duration of collective raids directly from raw video frames ( Figure 5b ). FERAL captured these events as emergent visual signatures without requiring individual tracking or explicit modeling of group structure. By contrast, conventional multi-animal tracking approaches would need to reconstruct trajectories for each individual [ 21 , 43 ] and subsequently infer collective states through post-tracking analyses [ 42 ]. FERAL bypasses these steps, enabling scalable, tracking-free quantification of collective behavior. Download figure Open in new tab Figure 5: FERAL captures emergent collective behavior and achieves high performance across dataset. (a) Representative frames from recordings of clonal raider ant ( Ooceraea biroi ) colonies during non-raiding (top) and raiding (bottom) phases, with nests indicated by dashed outlines. (b) Example ethogram comparing groundtruth annotations (top) and FERAL predictions (bottom). (c) Confusion matrix showing correspondence between groundtruth and predicted frames across all videos. Representative frames showing visual appearance of misclassified frames. (d) mAP of FERAL across datasets tested in this study. (e) Summary of diversity in both behavioral organization and scene complexity across the dataset tested in this study. Confusion-matrix analysis ( Figure 5c ) revealed that misclassified “raiding” frames were not random but systematically associated with moments of intense movement, when many ants had exited the nest and were exploring the arena. Conversely, most “no raiding” misclassifications occurred during phases of a raid when most ants were in the nest and overall activity declined. These patterns suggest that FERAL’s classifications are driven by emergent visual cues, such as colony-level motion and spatial distribution of individuals, demonstrating that the model learns the collective visual signature of raiding behavior directly from scene appearance. By recognizing colony-level behaviors directly from video, FERAL extends the reach of direct video-to-behavior analysis to emergent social dynamics that arise from distributed coordination among many animals. This ability opens new possibilities for studying the neural, ecological, and evolutionary principles governing collective behavior across species and environments. Discussion The quantitative study of animal behavior has advanced rapidly with the integration of computer vision and deep learning. Existing methods succeed at answering where animals and their body parts are over time, yet determining what actions animals are performing remains challenging, especially for complex environments. This limitation constrains discovery across ethology, neuroscience, and ecology, where understanding behavior and its structure is essential. FERAL addresses this gap by reframing behavioral quantification as a video-understanding problem. Instead of relying on intermediate abstractions such as pose or trajectory, FERAL maps raw video directly to frame-level behavioral labels, capturing both the temporal and visual appearance of animal actions. It achieves high performance across datasets, detecting discrete actions with high precision on a wide range of scene complexities ( Figure 5d-e ). This generalization is enabled by its design. Its foundation-model backbone (e.g., V-JEPA2) allows robust fine-tuning even with limited behavioral annotations [ 29 ]. FERAL is an open-source, freely available toolkit that includes comprehensive documentation, tutorials, and benchmark datasets ( www.getferal.ai ), lowering the technical barrier for users across disciplines. Its modular architecture supports all stages of analysis, from preprocessing and training to inference, and can be deployed locally, on high performance clusters, or through cloud-based GPU services such as Google Colab and RunPod. FERAL also integrates easily with existing pipelines. Although it focuses on frame-level segmentation and does not assign persistent identities, it can be paired with multi-animal tracking systems such as TRex [ 21 ], which produce animal-centered video segments suitable for direct inference. Together, these tools provide a unified solution to the two central questions of behavioral quantification: where animals are and what actions they are performing. By combining strong performance with user-friendly design, FERAL establishes a robust foundation for behavioral segmentation across species and experimental paradigms. Behavior is central to many disciplines, ranging from neuroscience to ecology, and its quantitative analysis is a common point of entry to understand how biological phenomena work. FERAL gives biologists who study behavior access to the latest video-understanding models, streamlining behavioral analyses and enabling experiments that were previously out of reach, thereby accelerating discovery across fields. Methods Datasets We evaluated FERAL across seven datasets spanning a range of taxa, behavioral contexts, and recording modalities. All datasets provided raw video data paired with frame-level behavioral annotations, enabling direct video-to-behavior mapping. Other open-source datasets containing only keypoint trajectories or bounding boxes without frame-level behavioral labels were excluded, as the current implementation focuses on frame-level classification. Training and test statistics, including the number of frames per split for each dataset, are reported in Table 2 , and class distributions are given in Table 3 . Note that for single-class classification, we include an “other” class that the model is trained to predict when no other relevant behaviors are present. For all reported class-averaged metrics, the “other” class is excluded CalMS21 (Mice social interactions) The Caltech Mouse Social Interactions (CalMS21) dataset captures freely behaving mice engaged in resident–intruder assays [ 35 ]. Each recording includes tracked pose keypoints and frame-level labels for social behaviors such as attack, mount, and investigation. Following prior work, we evaluated performance using the mean average precision (mAP) metric on the same train–test split defined in the original challenge. MaBE (Multi-Agent Behavior Benchmark) MaBE [ 36 ] is a large-scale multi-species benchmark designed for evaluating multi-agent behavior analysis. It includes recordings of mice, beetles, ants, and flies paired with expert-annotated behavioral categories. As only the beetle subset provides raw video aligned with human frame-level labels, we restricted our evaluation to this partition. Behavioral categories included locomotion, contact, and interaction states, annotated by trained ethologists. We report macro-averaged F1 scores following the evaluation protocol described in the original publication. PanAf500 PanAf500 [ 41 ] is a dataset of wild primate behavior, featuring both chimpanzees and gorillas recorded by camera traps across multiple African field sites within the Pan African Programme. The cameras operate during the day and at night, capturing a range of behaviors expressed by single individuals and groups under diverse weather and lighting conditions. The original work introduces two datasets: PanAf20k, containing 20k clips with a single behavior label per clip, and PanAf500, consisting of 500 clips in which each individual ape is detected with a bounding box in every frame and assigned a behavior label. Because we wanted to evaluate FERAL on per-frame behavior classification, we used the smaller PanAf500 subset. For this dataset, we ignored the bounding box coordinates and used only the behavior labels, pooling behaviors across all bounding boxes in a frame into a single multi-label target (e.g., if two apes were labeled as sitting and one as climbing, the frame-level target would be sitting and climbing). In our experiments, we retained the original training split (400 15s videos) and constructed a single held-out test set by combining the validation and test splits from the original paper (100 15s videos). Because we significantly changed the objective for this dataset, we do not compare our performance to the results reported in the original paper. For PanAf500, the original work reports per-behavior accuracies by predicting a single class for individual behavior sequences for each detected animal, whereas we predict multiple classes for the whole frame at each frame of the video. Beyond the original setup, strong results on this dataset have also been obtained using self-supervised pretraining of a V-JEPA2 model [ 44 ]. However that approach follows the original work by first cropping individual animals before applying a separate classifier, while also adding an extra pretraining stage. In contrast, for this dataset we intentionally keep the pipeline simple and evaluate how well a model can perform without any intermediate detection or cropping steps. C. elegans locomotion Animals were grown at 20 ◦ C on nematode growth media (NGM) plates seeded with E.coli OP50 bacteria [ 45 ]. Experiments were performed on young adult hermaphrodites (picked as L4s 14 - 16hrs before). Animals are expressing two transgenes: one extrachromsomal array kyEx = pSM(F23H12.7p::ReaChR::sl2::GFP) at 70ng/uL + pSM( myo3p::mCherry) at 3ng/uL and one integrated transgene kyls= = pSM(ser-4p::flp, sto3-p::frt::HisCl1::sl2::mCherry, ges-1p::nls-GFP). The animals were not exposed to all-trans-retinol nor histamine during the course of the recordings. Animals were recorded while performing an off-food foraging assay [ 46 , 47 ], using a plastic ring (6mm Clear Mylar Stencil Sheets) instead of CuCl 2 as a boundary to contain the animals. Preconditioning plates were made the night before by seeding NGM plates with a thin uniform OP50 lawn 16hrs prior to the start of the assay. 45 minutes prior to the start of the assay, a 1 in x 1 in plastic ring was placed on the preconditioning plate as a boundary and 20 young adult worms were picked onto the lawn. 5 minutes prior to the start of the assay, 8-11 animals were transferred to an unseeded NGM plate to clean off excess food, then transferred to the assay plate, an unseeded 10cm NGM plate with a plastic ring (2 in x 2 in) boundary to keep animals within the recording field of view. Behavior was recorded for 45 min using a Basler ace acA5472-17 µm USB 3.0 Monochrome Camera at 6 fps and 3,648px x 3,648px FOV. Animals were tracked using custom python software which segments the worms from background using thresholding and generates tracks of the centroid of segmented worms using intersection over union. This results in tracks including centroid and mask of the worm. Behavior was classified heuristically using rules adapted from [ 48 , 49 ] implemented in custom python software. For each frame, it was determined if the animal was self-intersecting by using the ratio of the area: perimeter ratio of the outermost contour of the mask (ratio>3.3). For non self-intersecting frames, masks were skeletonized to get the midline of the worm and aligned in the same direction by minimizing the distance between midline points in adjacent frames. The head-tail vector was taken from the first and last midpoints of the worm. Velocity was calculated by taking the difference between centroids 4 frames (=0.67s) apart and dividing by dt = 0.67s. Head versus tail was assigned as the direction along the head-tail axis the animal moves in more often (the animal moves towards the direction of its head more often than the direction of its tail). Speed was calculated by taking the absolute magnitude of the velocity. Speed was signed by the direction of the velocity relative to the direction of the head-tail vector. Turning was classified as frames in which either a) both i) midpoint-tail vector (the vector connecting the midpoint and the tail of the worm) was greater in length than the midpoint-head vector (the vector connecting the midpoint to the head of the worm) and ii) the angle between the midpoint-tail vector and midpoint-head vector was less than 45 degrees or b) when the animal was self-intersecting. Pausing was classified as frames for which speed < 50 µm/s for at least 0.5s and for which the animal was not turning. Forwards was classified as speed greater than 0 µm/s and not turning or pausing. Reversal was classified as speed less than 0 µm/s and not turning or pausing. Collective behavior and adult-larva interactions in clonal raider ant ( Ooceraea biroi ) Stock colonies of Ooceraea biroi were maintained in constant light at 25 ◦ C in Tupperware containers (40 x 26 cm) with a 2 cm thick plaster of Paris floor. Colonies were fed with frozen fire ant ( Solenopsis invicta ) brood following the lab’s regular feeding schedule (3 times per week) and cleaned and watered once per week, as needed. For behavior experiments, adult ants and fourth-instar larvae from the same stock colony (clonal line B genetic background) were collected and housed in 5 cm Petri dishes lined with a plaster of Paris floor and kept at 25 ◦ C. Behavioral assays were performed in a custom-built acrylic chamber with transparent sides and plaster of Paris floor. In each assay, an adult ant was allowed to settle in the chamber for 30 minutes before a larva was introduced. Videos were recorded from the side at 10 frames per second through a FLIR blackfly camera (BFS-U3-50S5C-C) and lens (Computar, MLM3X-MP), using Spinnaker Software Development Kit, at a pixel resolution of 2448px x 2048px. Recordings were collected across three consecutive days. Behavioral annotations of adult ants and larvae were performed manually using ELAN [ 50 ]. We scored adult self-grooming and adult allogrooming of larvae, and recorded the start and end times and duration of these behaviors (in milliseconds). For the colony tracking experiment, groups of 100 adults and 100 larvae were randomly subsampled from stock colonies and established in Petri dishes (90 x 20mm) lined with a humidified plaster of Paris base. Sub-colonies were allowed to acclimate for four days. Sub-colonies were then continually video recorded at 0.1 fps for 30 days under constant illumination at 25 ◦ C. Approximately every two days colonies were fed with frozen Solenopsis invicta brood and were cleaned approximately every two days. Zebras recordings from drones Herds of Grevy’s zebra were filmed at Mpala Conservancy in Laikipia, Kenya in 2017 and 2018 using DJI Phantom 4 Pro Drones (DJI, Shenzhen, China). Drone import and operations were authorized by the Kenya Civil Aviation Authority (KCAA) and carried out by a licensed pilot assisted by an observer who maintained visual contact with the drone and a ground observer who maintained situational awareness. During filming, the drones were positioned directly above the group at a height of approximately 85 m above ground level (AGL), and followed the group’s movements. To achieve continuous observations longer than the drone’s battery duration, two drones were flown in a relay: when one drone’s battery became depleted, a second drone was positioned 10 m above the first one. The first drone was then recalled to the launch point and the second drone lowered down 10 m to continue following the group. If animals seemed disturbed by the drone (e.g. running away) or moved too far from the launch point, the observation was terminated. When groups were calm and remained in range, observations spanned 3 drone flights (approximately 45-50 minutes). During the first two flights, groups were filmed in an undisturbed state. During the third flight, researchers approached the group on foot to elicit a detection and flight response, during which the drone followed the group until they ran out of range. All fieldwork in Kenya was conducted with the permission of the National Commission for Science, Technology and Innovation and in affiliation with the Kenya Wildlife Service. Data collection protocols were reviewed and approved by Ethikrat, the independent ethics council of the Max Planck Society. Drone recordings were initially captured at 4K resolution and 60 fps, but were downsampled to 30 fps prior to further processing. A multi-stage pipeline was applied to generate continuous movement trajectories for all animals in the recordings [ 40 ]. Recordings were then cropped to generate individual videos of a small square area (160 x 160 px – 210 x 210 px) centered on each animal. Forty-five individual videos from four observations were then manually annotated in BORIS [ 31 ] to identify bouts of vigilance behavior, defined as the animal standing still with its head raised, and periods when the animal was out of sight, for example due to passing under occluding vegetation. All other video frames were uncategorized. Model Architecture FERAL fine-tunes a state-of-the-art video-understanding backbone to perform frame-level behavioral classification across predefined categories. The model outputs class probabilities for every frame. The complete default configuration used for all reported dataset, including all hyperparameters, is available on GitHub 1 Backbone evaluation and selection We systematically evaluated several recent video-understanding architectures as potential encoders for FERAL, focusing on their balance of accuracy, computational efficiency, and ease of deployment. InternVideo2 InternVideo2 is a 1-billion-parameter transformer model trained in multiple pretraining stages [ 51 ]. Despite strong representational capacity, fine-tuning proved prohibitively expensive, requiring up to eight hours for a full run on the CalMS21 dataset using four H100 GPUs. Furthermore, the codebase depended on numerous bespoke modules, complicating installation and development. While performance was promising, these practical limitations rendered InternVideo2 unsuitable for a user-friendly behavioral analysis framework. SmallVLM2 We next assessed SmallVLM2, a multimodal video–language model available in configurations ranging from 256M to 2.2B parameters [ 52 ]. Although integration via Hugging Face Transformers greatly simplified deployment, performance lagged behind state-of-the-art methods. The model processed frames largely in isolation, aggregating temporal information only in a shallow pooling layer. This architectural constraint, compounded by the predominance of non-video modalities during pretraining, limited its ability to capture long-range motion dynamics. Even with extensive regularization (including partial freezing, data augmentations, and label smoothing) SmallVLM2 exhibited overfitting on small datasets and failed to generalize on internal benchmarks. V-JEPA2 Based on these observations, we adopted V-JEPA2 as the encoder [ 29 ]. Unlike video–language models, V-JEPA2 is a dedicated video foundation model trained self-supervised on over one million hours of unlabeled video using a masked prediction objective. We employed the smallest available configuration (330M parameters) finetuned on the Diving48 dataset[ 53 ], which offers a favorable trade-off between performance and computational cost. Fine-tuning enables FERAL to align pretrained spatiotemporal representations with the specific requirements of behavioral segmentation, achieving great performance across benchmarks with modest data volumes and standard GPU resources. Classification head To convert spatiotemporal embeddings from the backbone into frame-level behavioral predictions, we designed a lightweight classification head that aggregates contextual information and outputs per-frame logits across behavioral classes. Each input video chunk is represented as a sequence of thousands of spatiotemporal tokens. These tokens are first processed through transformer layers of the V-JEPA2 encoder[ 54 ] that enrich each token with contextual information from the entire sequence. To map this long sequence onto the temporal resolution of the input video, we employ an attention-based pooling module. Specifically, a set of 64 learnable query embeddings cross-attend to the encoder outputs, extracting features that correspond to individual frames. The resulting pooled embeddings are flattened and passed through a Batch Normalization layer [ 55 ], which stabilizes training and controls feature variance, followed by a dropout layer p = 0.5) [ 56 ] to reduce overfitting. A final linear projection maps the normalized embeddings to class logits for each frame. Loss function FERAL employs different loss functions for single-label and multi-label classification. For single label, FERAL is trained using a cross-entropy loss computed at the frame level. To improve generalization and mitigate overconfidence, we apply label smoothing with a factor of 0.1, which encourages the model to distribute probability mass across semantically related classes rather than assigning absolute certainty to a single label. Because behavioral datasets often exhibit pronounced class imbalance, particularly between dominant “background” states and rare but biologically meaningful actions, we incorporate class-specific weighting into the loss. We found that scaling weights by the square root of the inverse class frequency yielded better performance amplifying the contribution of underrepresented behaviors without overcompensating, compared to using inverse-frequency weighting. In the multi-label setting, FERAL is trained with binary cross-entropy loss, weighting each class by to emphasize rare classes. We additionally evaluated focal loss, which dynamically down-weights easy examples to focus learning on difficult cases, but found no consistent improvement across benchmarks. Chunking strategy Transformer-based video encoders compute pairwise attention across all spatiotemporal tokens, causing computational complexity to scale quadratically with the number of input tokens. As a result, processing entire behavioral recordings end-to-end is infeasible. Consequently FERAL divides each video into overlapping segments, or chunks , of fixed length before processing. Each chunk comprises 64 consecutive frames, resized to 256 × 256 pixels. To capture fine-grained behavioral dynamics, consecutive chunks overlap by 50% (i.e., stride = 32 frames). This design ensures that short behaviors spanning chunk boundaries remain fully visible within at least one receptive field. During training, overlapping windows also increase the effective number of training samples further improving quality. During inference, as the model outputs per-frame predictions for each chunk, we employ a unified post-processing pipeline to gather the final frame-level predictions. If a frame received multiple predictions, we averaged the corresponding class probabilities. For frames without a direct prediction, we linearly interpolated probabilities from the two nearest frames with predictions. This approach effectively ensembles model’s own local predictions. We benchmarked multiple configurations varying both stride and sampling rate ( Extended Figure 1 ) and found that sampling every frame with 50% overlap yielded the best balance between accuracy and training speed. Augmentations To improve generalization across diverse lighting conditions, species, and recording setups, FERAL employs a combination of video and label-space augmentations. For visual augmentation, we adopted TrivialAugment [ 57 ], which randomly samples from a set of standard image transformations (e.g., brightness, contrast, rotation, color jitter) and applies them at varying strengths. The same augmentation was applied consistently across all frames within a video, preserving temporal coherence while introducing diversity across video samples. In addition, we applied MixUp regularization at the batch level [ 58 ]. Each augmented sample was formed as a convex combination of two videos, X and X̃ , and their corresponding label sequences, y and ỹ : where α ∼ Beta(λ, λ). Because FERAL operates at frame resolution, label mixing was performed element-wise across the temporal dimension. This strategy helps to mitigate overfitting on small datasets. Training We use the Adam optimizer [ 59 ] with a relatively strong weight decay (0.1) to counteract overfitting given the modest size of behavioral datasets. The learning rate follows a schedule consisting of a linear warm-up for the first 20% of iterations, followed by cosine decay. Models are trained for 10 epochs, which we found sufficient for convergence across benchmarks. Unlike approaches such as VideoPrism, which freeze the backbone and train only shallow classifiers, FERAL fine-tunes the last 12 out of 24 transformer layers in VJEPA2, aligning high-level spatiotemporal embeddings with behavioral structure. To further support generalization and out-of-distribution performance, we allow users to enable an optional weight-averaging feature. When activated, FERAL will maintain an exponential moving average (EMA) θ EMA of the model weights θ, which at step t is computed as [ 60 ]: with β = 0.999. During evaluation, both the standard and EMA-weighted models are assessed and users can select the best performing option for their application. In our reported experiments, we do not report metrics from EMA checkpoints, as some of the datasets are relatively small and we preferred to keep the evaluation protocol simple rather than risk over-optimizing on them. Experiments Data efficiency We tested FERAL’s data efficiency by training on smaller CalMS21 subsets and measuring performance drop versus the full-data baseline, while keeping the test set and all hyperparameters the same. We implemented two complementary subsampling schemes: (1) Video-level subsampling. We randomly sampled subsets of training videos at 50% (mAP 92.0%) and 25% (mAP 93.0%) and trained FERAL on these reduced sets. Because individual recordings vary in length and behavioral composition, smaller subsets (<25%) produced high variance across runs: some samples didn’t have all the classes present and the total number of frames varied substantially. We therefore do not report results below 25%. (2) Chunk-level subsampling. To probe sample efficiency under more balanced class dis-tributions, we first processed the full training set into ready-to-train chunks and then randomly subsampled from them. This design mitigates class imbalance and enabled evaluation on much smaller training sets, down to 1% of the original data. Since expanding datasets typically involves annotating additional videos, video-level subsampling best reflects realistic scaling. However, only chunk-level subsampling allows evaluation under extreme reductions without manual video selection. Under both regimes, training on 25% of the data still exceeded the prior SOTA, and other reduced-data settings maintained strong performance. These results indicate that FERAL’s foundation-model backbone and fine-tuning strategy confer substantial sample efficiency, enabling high performance with limited labeled footage. This is especially valuable in behavioral research, where manual annotation is expensive and time-consuming Chunking strategies We systematically benchmarked chunking strategies to balance computational efficiency and quality. Each configuration is defined by two parameters: Frame stride : the interval between frames within a chunk (e.g., every frame, every second frame). Larger strides expand the effective temporal window but reduce temporal resolution. Chunk overlap : the proportion of frames shared between consecutive chunks (e.g., 0%, 50%, 75%). At 0% each frame in the video appears in only one chunk, at 50% in two, at 66% in three, etc. Greater overlap increases computation but improves contextual continuity and yields multiple predictions per frame that can be ensembled to enhance quality. Performance improved monotonically as stride decreased, with the best results at stride 1 (sampling every frame; labeled as “dense” on Extended Figure 1a ). Adding overlap yielded substantial quality gains, with 66% overlap producing the highest mean average precision (95.0%). Notably, even sparse settings (0% overlap, sampling every fourth frame) exceeded the competition baseline while requiring 8 times less steps than our default configuration. To test whether improvements were simply due to more training steps, we matched the total number of optimization steps by training the base configuration (50% overlap, dense sampling; blue bars on Extended Figure 1a ) for fewer or more epochs. Dense configuration were clearly superior to sampling every other frame, and moderate overlap was beneficial, although returns diminished at higher overlaps. We therefore adopted 50% overlap with full-frame sampling as the default. Freezing strategies To evaluate the impact of layer freezing on performance, we incrementally froze six-layer blocks of the 24-layer V-JEPA2 encoder, proceeding from the input forward. Partial freezing (up to 12 layers) slightly improved test quality, consistent with mild regularization. In contrast, freezing the entire encoder markedly reduced performance (mAP of 88.4%). These results indicate that fine-tuning at least the final layers is necessary to align pretrained features with behavioral segmentation tasks ( Extended Figure 1b ). Metrics We report mean average precision (mAP) and macro-averaged F1, precision, and recall. mAP is computed from calibrated probabilities, excluding the “other” category from averaging. For multi-label tasks (e.g., MaBE), results are reported using a fixed threshold of 0.85 for all classes. You can find the performance metrics of FERAL across all benchmark datasets using the same default configuration in Table 1 . View this table: View inline View popup Download powerpoint Table 1: Performance metrics across all evaluated datasets. All experiments were conducted using the default configuration. View this table: View inline View popup Download powerpoint Table 2: Summary of datasets used in our experiments View this table: View inline View popup Download powerpoint Table 3: Class frequency distribution (percentage of labeled frames across train and test splits) for each dataset. Metric rationale Accuracy was not used, as behavioral datasets typically exhibit substantial class imbalance. Datasets often include a frequent “other” class, while biologically interesting events are relatively rare (often < 1% of frames). In such settings, accuracy overestimates performance by rewarding majority-class predictions. Instead, we report mAP, which offers a more sensitive measure of per-class discrimination across thresholds, while macro F1, precision, and recall provide a complementary view of performance. mAP is computed from calibrated probabilities over the full dataset, whereas the F1 score is computed after thresholding continuous model outputs into discrete predictions. For all reported averages, the “other” class was excluded, as it denotes the absence of annotated behaviors rather than a discrete category. Model selection For all runs, we train the model on the full training dataset and evaluate on the test dataset afterward. We observed that splitting the available non-test data into training and validation sets and selecting the best-performing checkpoint across epochs to evaluate on the test set led to highly variable results, due to the small size of some datasets. Therefore, we chose this setup, accepting that mild overfitting on some datasets is preferable to undertraining on others. Run tracking Each training run automatically logs all metrics to Weights & Biases (W&B), providing users with real-time visualization and reproducibility. Logged outputs include low-level training diagnostics (e.g., loss, learning rate), per-class average precision at both chunk and frame levels, aggregated mAP, and qualitative ethograms after each validation epoch. Each run generates a unique dashboard URL, enabling easy sharing and comparison. Engineering and deployment Video preprocessing and seekability Training requires fast access to arbitrary frames in the video. Many common codecs support only sequential reads and do not allow frame-level seeking, so re-encoding is often necessary. Pre-resizing can also help with HD videos, as decoding large videos may be too slow compared with GPU computation speed. FERAL includes a cross-platform utility that converts input videos to seekable formats and resizes them to 256×256. If source videos are not high resolution and are already seekable, users may skip re-encoding; resizing will then be performed dynamically during training Hugging Face integration To ensure modularity and ease of extension, FERAL leverages the Hugging Face transformers library [ 61 ] for model management. This abstraction simplifies switching between backbones and streamlines installation compared to earlier architectures (e.g., InternVideo2), which relied on bespoke code and complex dependencies. Training visualization and monitoring FERAL integrates with Weights & Biases (W&B) for experiment tracking, allowing users to monitor training, validation and test performance. Logs are also stored in the cloud, enabling training across multiple servers while maintaining a unified analysis interface. Users can connect their own W&B accounts or use a public workspace provided by FERAL. Deployment and compute requirements FERAL requires 24 GB of VRAM for training, which fits on high-end consumer GPUs. All reported experiments were conducted on NVIDIA H100 and L40s GPUs in a university cluster. For users without access to high-performance computing, FERAL provides step-by-step deployment guides for GPU cloud platforms (e.g., RunPod) and a Google Colab notebook, enabling full training runs at low cost without complex setup. All necessary dependencies, including CUDA and PyTorch [ 62 ], are pre-installed on these instances, allowing users to begin training within minutes. Author Contributions P.S. and J.R. conceptualized the study, developed the method, designed experiments, performed analyses, and co-wrote the manuscript. B.R.C., B.K. and I.D.C. provided the zebra dataset and B.R.C. supported the application of FERAL to the zebra dataset. F.B. provided the C. elegans dataset. J.Z. and D.D.F provided the ant grooming dataset. T.K. provided the ant colony dataset. All authors provided feedback on the manuscript. Data and Code Availability All source code, training configurations, and documentation for FERAL are publicly available at www.getferal.ai and https://github.com/Skovorp/feral . The website and the repository include example datasets, preprocessing utilities, and instructions for local and cloud-based deployment. Data and Supplementary Videos 1-4 used in this publication are available at the GitHub Data Repository ( https://github.com/Skovorp/feral_share_data/tree/main ) Competing Interests The authors declare no competing interests. Extended Figures Download figure Open in new tab Extended Figure 1. Effect of temporal sampling and backbone freezing on FERAL performance. (a) Model quality as a function of number of training steps and overlapping-chunk configuration on the CalMS21 dataset. (b) Evaluation of layer-freezing strategies during fine-tuning. Supplementary Videos Supplementary Video 1 | FERAL on CalMS21 mouse social interactions Representative example from the CalMS21 dataset showing raw videos of resident–intruder mouse interactions alongside frame-level FERAL predictions. Link Supplementary Video 2 | FERAL segmentation of C. elegans locomotor states Example recordings of freely moving C. elegans with FERAL predictions overlaid on cropped worm-centered views. Link Supplementary Video 3 | Adult–larva grooming behavior in clonal raider ants Example dyadic interactions between adult clonal raider ants and larvae, with FERAL predictions overlaid on the raw videos. Link Supplementary Video 4 | FERAL on PanAf500 camera-trap recordings of wild apes Sample clip from the PanAf500 dataset showing a wild gorilla recorded by a camera trap in its natural habitat. FERAL’s multi-label predictions are displayed frame by frame. Link Acknowledgments We thank Leslie B. Vosshall and the members of the Vosshall Lab and Data Science Platform at The Rockefeller University, as well as Orli Snir, Giulio Formenti, Yohann Chemtob and Emily B. L. Wright for discussion and comments on the manuscript; This work was supported by the Howard Hughes Medical Institute, and graduate fellowships from the Price Family Center for the Social Brain and the Boehringer Ingelheim Fonds (J.R.). This work was supported by the Rockefeller University, and the Jonathan and Maya Nelson Center for Artificial Intelligence (P.S.). We gratefully acknowledge the Data Science Platform (DSP) at The Rockefeller University for access to the DSP Cluster and computing equipment used in this study. This work was supported by the National Institute on Deafness and Other Communication Disorders under award number K99DC021506 to D.D.F. B.R.C. received support from the European Union’s Horizon 2020 research and innovation program under the Marie Sklodowska-Curie grant agreement No. 748549. B.R.C. acknowledges support from the University of Konstanz’s Investment Grant program. B.K., I.D.C, and B.R.C. acknowledge support from the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy—‘Centre for the Advanced Study of Collective Behaviour’ EXC 2117-422037984, DFG project number 462886202, the European Union’s Horizon 2020 Research and Innovation Programme under Marie Skłodowska-Curie Grant 860949, the DFG Gottfried Wilhelm Leibniz Prize 2022 584/22, and the PathFinder European Innovation Council Work Programme 101098722. B.R.C. acknowledges support from NVIDIA Corporation’s Academic Hardware Grant Program. F.B. was supported by a Medical Scientist Training Program grant from the National Institute of General Medical Sciences of the National Institutes of Health under award number T32GM152349 to the Weill Cornell/Rockefeller/Sloan Kettering Tri-Institutional MD-PhD Program and by an F31 Predoctoral Fellowship from the National Institute of Neurological Disorders and Stroke of the National Institutes of Health under award number F31NS132477. Funder Information Declared Howard Hughes Medical Institute, https://ror.org/006w34k90 The Price Family Center for the Social Brain Boehringer Ingelheim (Germany), https://ror.org/00q32j219 Jonathan and Maya Nelson Center for Artificial Intelligence Rockefeller University, https://ror.org/0420db125 National Institute on Deafness and Other Communication Disorders , K99DC021506 European Union , 748549 Konstanz's Investment Grant program Deutsche Forschungsgemeinschaft , 462886202 European Union , 860949 PathFinder European Innovation Council Work Programme , 101098722 National Institutes of Health , T32GM152349 , F31NS132477 Footnotes https://github.com/Skovorp/feral_share_data https://github.com/Skovorp/feral ↵ 1 https://github.com/Skovorp/feral/blob/main/configs/default_vjepa.yaml References [1]. ↵ André E. X. Brown and Benjamin de Bivort . “ Ethology as a physical science ”. In: Nature Physics 14 . 7 ( 2018 ), pp. 653 – 657 . issn: 1745-2473 . doi: 10.1038/s41567-018-0093-0 . OpenUrl CrossRef [2]. ↵ Gordon J. Berman . “ Measuring behavior across scales ”. In: BMC Biology 16 . 1 ( 2018 ), p. 23 . doi: 10.1186/s12915-018-0494-7 . OpenUrl CrossRef PubMed [3]. ↵ Sandeep Robert Datta et al. “ Computational Neuroethology: A Call to Action ”. In: Neuron 104 . 1 ( 2019 ), pp. 11 – 24 . issn: 0896-6273 . doi: 10.1016/j.neuron.2019.09.038 . OpenUrl CrossRef PubMed [4]. ↵ S E Roian Egnor and Kristin Branson . “ Computational Analysis of Behavior .” In: Annual review of neuroscience 39 . 1 ( 2016 ), pp. 217 – 36 . issn: 0147-006X . doi: 10.1146/annurev-neuro-070815-013845 . OpenUrl CrossRef PubMed [5]. ↵ Marian Stamp Dawkins , Paul Martin , and Patrick Bateson . “ Measuring Behaviour. An Introductory Guide ”. In: The Journal of Animal Ecology 63 . 3 ( 1994 ), p. 746 . issn: 0021-8790 . doi: 10.2307/5248 . OpenUrl CrossRef [6]. Konrad Lorenz . “ Der Kumpan in der Umwelt des Vogels ”. In: Journal für Ornithologie 83 . 3 ( 1935 ), pp. 289 – 413 . issn: 0021-8375 . doi: 10.1007/bf01905572 . OpenUrl CrossRef [7]. Niko Tinbergen . The Study of Instinct . Oxford University Press , 1951 . [8]. Karl von Frisch . “ Decoding the Language of the Bee ”. In: Science 185.4152 ( 1974 ), pp. 663 – 668 . issn: 0036-8075 . doi: 10.1126/science.185.4152.663 . OpenUrl CrossRef [9]. ↵ Jeanne Altmann . “ Observational Study of Behavior: Sampling Methods ”. In: Behaviour 49 . 3 – 4 ( 1974 ), pp. 227–266. issn: 0005-7959 . doi: 10.1163/156853974x00534 . OpenUrl CrossRef [10]. ↵ David J. Anderson and Pietro Perona . “ Toward a Science of Computational Ethology ”. In: Neuron 84 . 1 ( 2014 ), pp. 18 – 31 . issn: 0896-6273 . doi: 10.1016/j.neuron.2014.09.005 . OpenUrl CrossRef PubMed [11]. John W. Krakauer et al. “ Neuroscience Needs Behavior: Correcting a Reductionist Bias ”. In: Neuron 93 . 3 ( 2017 ), pp. 480 – 490 . issn: 0896-6273 . doi: 10.1016/j.neuron.2016.12.041 . OpenUrl CrossRef PubMed [12]. ↵ Alex Gomez-Marin et al. “ Big behavioral data: psychology, ethology and the foundations of neuroscience ”. In: Nature Neuroscience 17 . 11 ( 2014 ), pp. 1455 – 1462 . issn: 1097-6256 . doi: 10.1038/nn.3812 . OpenUrl CrossRef PubMed [13]. ↵ Jane Goodall . “ Tool-Using and Aimed Throwing in a Community of Free-Living Chim-panzees ”. In: Nature 201.4926 ( 1964 ), pp. 1264 – 1266 . issn: 0028-0836 . doi: 10.1038/ 2011264a0. OpenUrl [14]. ↵ Margaret Bastock and Aubrey Manning . “ The Courtship of Drosophila Melanogaster ”. In: Behaviour 8 . 1 ( 1955 ), pp. 85 – 110 . issn: 0005-7959 . doi: 10.1163/156853955x00184 . OpenUrl CrossRef [15]. ↵ Cristina Segalin et al. “ The Mouse Action Recognition System (MARS) software pipeline for automated analysis of social behaviors in mice ”. In: eLife 10 ( 2021 ), e63720 . doi: 10.7554/elife.63720 . OpenUrl CrossRef [16]. Devis Tuia et al. “ Perspectives in machine learning for wildlife conservation ”. In: Nature Communications 13 . 1 ( 2022 ), p. 792 . doi: 10.1038/s41467-022-27980-y . eprint: 2110.12951. OpenUrl CrossRef PubMed [17]. ↵ Megan Tjandrasuwita , et al. “ Interpreting Expert Annotation Differences in Animal Behavior ”. In: arXiv ( 2021 ). doi: 10.48550/arxiv.2106.06114 . eprint: 2106.06114. OpenUrl CrossRef [18]. ↵ Alexander Mathis et al. “ DeepLabCut: markerless pose estimation of user-defined body parts with deep learning ”. In: Nature Neuroscience 21 . 9 ( 2018 ), pp. 1281 – 1289 . issn: 1097-6256 . doi: 10.1038/s41593-018-0209-y . OpenUrl CrossRef PubMed [19]. ↵ Talmo D Pereira et al. “ SLEAP: A deep learning system for multi-animal pose tracking .” In: Nature methods 19 . 4 ( 2021 ), pp. 486 – 495 . issn: 1548-7091 . doi: 10.1038/s41592-022-01426-1 . OpenUrl CrossRef PubMed [20]. ↵ Dan Biderman et al. “ Lightning Pose: improved animal pose estimation via semi-supervised learning, Bayesian ensembling and cloud-native open-source tools ”. In: Nature Methods 21 . 7 ( 2024 ), pp. 1316 – 1328 . issn: 1548-7091 . doi: 10.1038/s41592-024-02319-1 . OpenUrl CrossRef PubMed [21]. ↵ Tristan Walter and Iain D Couzin . “ TRex, a fast multi-animal tracking system with markerless identification, and 2D estimation of posture and visual fields .” In: eLife 10 ( 2020 ), e64000 . doi: 10.7554/elife.64000 . OpenUrl CrossRef [22]. ↵ Jacob M Graving et al. “ DeepPoseKit, a software toolkit for fast and robust animal pose estimation using deep learning ”. In: eLife 8 ( 2019 ), e47994 . doi: 10.7554/elife.47994 . OpenUrl CrossRef PubMed [23]. ↵ Mayank Kabra et al. “ JAABA: interactive machine learning for automatic annotation of animal behavior ”. In: Nature Methods 10 . 1 ( 2013 ), pp. 64 – 67 . issn: 1548-7091 . doi: 10.1038/nmeth.2281 . OpenUrl CrossRef PubMed Web of Science [24]. Caleb Weinreb et al. “ Keypoint-MoSeq: parsing behavior by linking point tracking to pose dynamics ”. In: Nature Methods 21 . 7 ( 2024 ), pp. 1329 – 1339 . issn: 1548-7091 . doi: 10.1038/s41592-024-02318-2 . OpenUrl CrossRef PubMed [25]. Alexander I. Hsu and Eric A. Yttri . “ B-SOiD, an open-source unsupervised algorithm for identification and fast prediction of behaviors ”. In: Nature Communications 12 . 1 ( 2021 ), p. 5188 . doi: 10.1038/s41467-021-25420-x . OpenUrl CrossRef PubMed [26]. Kristin Branson et al. “ High-throughput ethomics in large groups of Drosophila ”. In: Nature Methods 6 . 6 ( 2009 ), pp. 451 – 457 . issn: 1548-7091 . doi: 10.1038/nmeth.1328 . OpenUrl CrossRef PubMed Web of Science [27]. Duncan S. Mearns et al. “ Deconstructing Hunting Behavior Reveals a Tightly Coupled Stimulus-Response Loop ”. In: Current Biology 30 . 1 ( 2020 ), 54 – 69 .e9. issn: 0960-9822 . doi: 10.1016/j.cub.2019.11.022 . OpenUrl CrossRef PubMed [28]. ↵ Rebecca Z. Weber et al. “ Deep learning-based behavioral profiling of rodent stroke recovery ”. In: BMC Biology 20 . 1 ( 2022 ), p. 232 . doi: 10.1186/s12915-022-01434-9 . OpenUrl CrossRef PubMed [29]. ↵ Mido Assran , et al. “ V-JEPA 2: Self-Supervised Video Models Enable Understanding, Prediction and Planning ”. In: arXiv ( 2025 ). doi: 10 . 48550 / arxiv. 2506. 09985. eprint: 2506.09985. OpenUrl [30]. ↵ Bin Lin et al. “ Video-LLaVA: Learning United Visual Representation by Alignment Before Projection ”. In: Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing ( 2024 ), pp. 5971 – 5984 . doi: 10.18653/v1/2024.emnlp-main.342 . OpenUrl CrossRef [31]. ↵ Olivier Friard and Marco Gamba . “ BORIS: a free, versatile open-source event-logging software for video/audio coding and live observations ”. In: Methods in Ecology and Evolution 7 . 11 ( 2016 ), pp. 1325 – 1330 . issn: 2041-210X . doi: 10.1111/2041-210x.12584 . OpenUrl CrossRef [32]. ↵ Lucas P. J. J. Noldus , Andrew J. Spink , and Ruud A. J. Tegelenbosch . “ EthoVision: A versatile video tracking system for automation of behavioral experiments ”. In: Behavior Research Methods, Instruments, & Computers 33 . 3 ( 2001 ), pp. 398 – 414 . issn: 0743-3808 . doi: 10.3758/bf03195394 . OpenUrl CrossRef PubMed [33]. ↵ Annemarie van der Marel et al. “ A comparison of low-cost behavioral observation software applications for handheld computers and recommendations for use ”. In: Ethology 128 . 3 ( 2022 ), pp. 275 – 284 . issn: 0179-1613 . doi: 10.1111/eth.13251 . OpenUrl CrossRef [34]. ↵ Rishi Bommasani , et al. “ On the Opportunities and Risks of Foundation Models ”. In: arXiv ( 2021 ). doi: 10.48550/arxiv.2108.07258 . eprint: 2108.07258. OpenUrl CrossRef [35]. ↵ Jennifer J Sun , et al. “ The Multi-Agent Behavior Dataset: Mouse Dyadic Social Interactions ”. In: arXiv ( 2021 ). doi: 10.48550/arxiv.2104.02710 . eprint: 2104.02710. OpenUrl CrossRef [36]. ↵ Jennifer J Sun , et al. “ MABe22: A Multi-Species Multi-Task Benchmark for Learned Representations of Behavior ”. In: arXiv ( 2022 ). doi: 10.48550/arxiv.2207.10553 . eprint: 2207.10553. OpenUrl CrossRef [37]. ↵ Long Zhao , et al. “ VideoPrism: A Foundational Visual Encoder for Video Understanding ”. In: arXiv ( 2024 ). doi: 10.48550/arxiv.2402.13217 . eprint: 2402.13217. OpenUrl CrossRef [38]. ↵ Greg J. Stephens , Matthew Bueno de Mesquita , William S. Ryu , and William Bialek . “ Emergence of long timescales and stereotyped behaviors in Caenorhabditis elegans ”. In: Proceedings of the National Academy of Sciences 108 . 18 ( 2011 ), pp. 7286 – 7289 . issn: 0027-8424 . doi: 10.1073/pnas.1007868108 . OpenUrl Abstract / FREE Full Text [39]. ↵ Neil A. Croll . “ Components and patterns in the behaviour of the nematode Caenorhabditis elegans ”. In: Journal of Zoology 176 . 2 ( 1975 ), pp. 159 – 176 . issn: 0952-8369 . doi: 10.1111/j.1469-7998.1975.tb03191.x . OpenUrl CrossRef Web of Science [40]. ↵ Benjamin Koger et al. “ Quantifying the movement, behaviour and environmental context of group-living animals using drones and computer vision ”. In: Journal of Animal Ecology 92 . 7 ( 2023 ), pp. 1357 – 1371 . issn: 0021-8790 . doi: 10.1111/1365-2656.13904 . OpenUrl CrossRef [41]. ↵ Otto Brookejs , et al. “ PanAf20K: A Large Video Dataset for Wild Ape Detection and Behaviour Recognition ”. In: International Journal of Computer Vision 132.8 ( 2024 ), pp. 3086 – 3102 . issn: 0920-5691 . doi: 10.1007/s11263-024-02003-z . OpenUrl CrossRef [42]. ↵ Vikram Chandra , Asaf Gal , and Daniel J. C. Kronauer . “ Colony expansions underlie the evolution of army ant mass raiding ”. In: Proceedings of the National Academy of Sciences of the United States of America 118 . 22 ( 2021 ), e2026534118 . issn: 0027-8424 . doi: 10.1073/pnas.2026534118 . OpenUrl Abstract / FREE Full Text [43]. ↵ Alfonso Pérez-Escudero et al. “ idTracker: tracking individuals in a group by automatic identification of unmarked animals .” In: Nature methods 11 . 7 ( 2013 ), pp. 743 – 8 . issn: 1548-7091 . doi: 10.1038/nmeth.2994 . OpenUrl CrossRef [44]. ↵ Felix B Mueller , Timo Lueddecke , Richard Vogg , and Alexander S Ecker . “ Domain-Adaptive Pretraining Improves Primate Behavior Recognition ”. In: arXiv ( 2025 ). doi: 10.48550/arxiv.2509.12193 . eprint: 2509.12193. OpenUrl CrossRef [45]. ↵ S Brenner . “ The Genetics of Caenorhabditis elegans ”. In: Genetics 77 . 1 ( 1974 ), pp. 71 – 94 . issn: 0016-6731 . doi: 10.1093/genetics/77.1.71 . OpenUrl CrossRef [46]. ↵ Aylesse Sordillo and Cornelia I Bargmann . “ Behavioral control by depolarized and hyperpo-larized states of an integrating neuron ”. In: eLife 10 ( 2021 ), e67723 . doi: 10.7554/elife.67723 . OpenUrl CrossRef [47]. ↵ Alejandro López-Cruz et al. “ Parallel Multimodal Circuits Control an Innate Foraging Behavior ”. In: Neuron 102 . 2 ( 2019 ), 407 – 419 .e8. issn: 0896-6273 . doi: 10.1016/j.neuron . 2019.01.053. OpenUrl CrossRef [48]. ↵ Kuang-Man Huang , Pamela Cosman , and William R. Schafer . “ Machine vision based detection of omega bends and reversals in C. elegans ”. In: Journal of Neuroscience Methods 158 . 2 ( 2006 ), pp. 323 – 336 . issn: 0165-0270 . doi: 10.1016/j.jneumeth.2006.06.007 . OpenUrl CrossRef PubMed Web of Science [49]. ↵ Eviatar Yemini et al. “ A database of Caenorhabditis elegans behavioral phenotypes ”. In: Nature Methods 10 . 9 ( 2013 ), pp. 877 – 879 . issn: 1548-7091 . doi: 10.1038/nmeth.2560 . OpenUrl CrossRef PubMed Web of Science [50]. ↵ Maria Teresa Lino et al. “ Annotating Multi-media/Multi-modal Resources with ELAN ”. In: Proceedings of the Fourth International Conference on Language Resources and Evaluation (LREC’04) . Lisbon , 2004 . [51]. ↵ Yi Wang , et al. “ InternVideo2: Scaling Foundation Models for Multimodal Video Understanding ”. In: arXiv ( 2024 ). doi: 10.48550/arxiv.2403.15377 . eprint: 2403.15377. OpenUrl CrossRef [52]. ↵ Loubna Ben Allal , et al. “ SmolLM2: When Smol Goes Big – Data-Centric Training of a Small Language Model ”. In: arXiv ( 2025 ). doi: 10.48550/arxiv.2502.02737 . eprint: 2502.02737. OpenUrl CrossRef [53]. ↵ Yingwei Li , Yi Li , and Nuno Vasconcelos . “ RESOUND: Towards Action Recognition Without Representation Bias ”. In: Lecture Notes in Computer Science ( 2018 ), pp. 520 – 535 . issn: 0302-9743 . doi: 10.1007/978-3-030-01231-1_32 . OpenUrl CrossRef [54]. ↵ Ashish Vaswani , et al. “ Attention Is All You Need ”. In: arXiv ( 2017 ). doi: 10.48550/arxiv.1706.03762 . eprint: 1706.03762. OpenUrl CrossRef [55]. ↵ Sergey Ioffe and Christian Szegedy . “ Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shift ”. In: arXiv ( 2015 ). doi: 10.48550/arxiv.1502.03167 . eprint: 1502.03167. OpenUrl CrossRef [56]. ↵ Geoffrey E Hinton , et al. “ Improving neural networks by preventing co-adaptation of feature detectors ”. In: arXiv ( 2012 ). doi: 10.48550/arxiv.1207.0580 . eprint: 1207.0580. OpenUrl CrossRef [57]. ↵ Samuel G. Müller and Frank Hutter . “ TrivialAugment: Tuning-free Yet State-of-the-Art Data Augmentation ”. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV) 00 ( 2021 ), pp. 754 – 762 . doi: 10.1109/iccv48922.2021.00081 . OpenUrl CrossRef [58]. ↵ Hongyi Zhang , Moustapha Cisse , Yann N Dauphin , and David Lopez-Paz . “ mixup: Beyond Empirical Risk Minimization ”. In: arXiv ( 2017 ). doi: 10.48550/arxiv.1710.09412 . eprint: 1710.09412. OpenUrl CrossRef [59]. ↵ Diederik P Kingma and Jimmy Ba . “ Adam: A Method for Stochastic Optimization ”. In: arXiv ( 2014 ). doi: 10.48550/arxiv.1412.6980 . eprint: 1412.6980. OpenUrl CrossRef [60]. ↵ Daniel Morales-Brotons , Thijs Vogels , and Hadrien Hendrikx . “ Exponential Moving Average of Weights in Deep Learning: Dynamics and Benefits ”. In: arXiv ( 2024 ). doi: 10.48550/arxiv.2411.18704 . eprint: 2411.18704. OpenUrl CrossRef [61]. ↵ Thomas Wolf , et al. “ HuggingFace’s Transformers: State-of-the-art Natural Language Pro-cessing ”. In: arXiv ( 2019 ). doi: 10.48550/arxiv.1910.03771 . eprint: 1910.03771. OpenUrl CrossRef [62]. ↵ Adam Paszke , et al. “ PyTorch: An Imperative Style, High-Performance Deep Learning Library ”. In: arXiv ( 2019 ). doi: 10.48550/arxiv.1912.01703 . eprint: 1912.01703. OpenUrl CrossRef View the discussion thread. Back to top Previous Next Posted November 17, 2025. Download PDF Data/Code Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping Peter Skovorodnikov , Janet Zhao , Friederike Buck , Tomas Kay , Dominic D. Frank , Benjamin Koger , Blair R. Costelloe , Iain D. Couzin , Jacopo Razzauti bioRxiv 2025.11.16.688666; doi: https://doi.org/10.1101/2025.11.16.688666 Share This Article: Copy Citation Tools FERAL: A Video-Understanding System for Direct Video-to-Behavior Mapping Peter Skovorodnikov , Janet Zhao , Friederike Buck , Tomas Kay , Dominic D. Frank , Benjamin Koger , Blair R. Costelloe , Iain D. Couzin , Jacopo Razzauti bioRxiv 2025.11.16.688666; doi: https://doi.org/10.1101/2025.11.16.688666 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Animal Behavior and Cognition Subject Areas All Articles Animal Behavior and Cognition (7635) Biochemistry (17690) Bioengineering (13892) Bioinformatics (41936) Biophysics (21451) Cancer Biology (18588) Cell Biology (25499) Clinical Trials (138) Developmental Biology (13378) Ecology (19899) Epidemiology (2067) Evolutionary Biology (24320) Genetics (15609) Genomics (22506) Immunology (17736) Microbiology (40394) Molecular Biology (17181) Neuroscience (88603) Paleontology (666) Pathology (2832) Pharmacology and Toxicology (4824) Physiology (7641) Plant Biology (15152) Scientific Communication and Education (2045) Synthetic Biology (4294) Systems Biology (9825) Zoology (2271)

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00