arXiv:2610.03051cs.CVOct 2026

Manuscript Offprint

arXiv:2610.03051

BeeWhere: Segmenting Bumble Bee Colonies to Quantify Behavioral Effects

Roberta Hunt, August Easton-Calabria, James Crall

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Roberta Hunt ∗1,2^{*1,2}, August Easton-Calabria ∗3^{*3}, and James Crall 3^{3}

1^{1} University of Copenhagen, 2100 Copenhagen, Denmark

2^{2} Lund University, 223 62 Lund, Sweden

3^{3} University of Wisconsin-Madison, Madison, WI 53706, USA

Abstract. Social bees are important pollinators that support biodiversity and crop pollination globally and serve as important model systems for collective behavior, but scalable measurement of individual- and colony-level behavior remains difficult in dense, occluded nest environments. Existing monitoring workflows use fiducial tags (e.g., ArUco) to preserve individual identity, yet tag-based tracking can fail when markers are obscured and provide limited information about body extent, spatial context, and untagged individuals. We present BeeWhere, an AI-assisted annotation and analysis workflow that combines ArUco detections with deep-learnt instance segmentations to quantify bumble bee behavior from high-resolution colony images and videos. Using bumble bee (Bombus impatiens) microcolonies as a test case, we annotate 483 frames containing 8,443 bee instances. We additionally annotate pollen balls, nest structures, and chamber boundaries, and train YOLO instance segmentation models for downstream behavioral analysis. Instance segmentations enable quantification of important behavioral metrics based on body contours, including nearest-neighbor distance, proximity to nest structures, spatial occupancy within the nest, and detection counts (proxy for colony growth) over time. We apply the BeeWhere models to tag-based (ArUco) tracking in an exploratory validation study assessing the behavioral impacts of neonicotinoid pesticide exposure. BeeWhere increased detection rates compared to tag-based tracking, particularly when bees were partially obscured (i.e. on the nest structure) or under challenging (blurry) imaging conditions, and also captured treatment-associated changes in bee spatial organization (with pesticide-exposed microcolonies showing greater distance between bees consistent with previous findings) not captured using tag-based tracking alone. These results suggest that instance segmentation can complement fiducial-marker tracking by recovering behaviorally meaningful signals under challenging colony conditions.

Keywords: instance segmentation · object tracking · ai assisted annotation · bumble bee behavior · pollinator health · pesticide exposure

R. Hunt and A. Easton-Calabria et al.

Figure

Fig. 1: Overview of BeeWhere pipeline. (a) Bumblebox microcolonies of Bombus impatiens are imaged under control and imidacloprid treatment conditions. (b) An AI-assisted annotation workflow produces training data for bees, nest structures, pollen balls, and chambers using SAM2 mask proposals and iterative YOLO retraining. (c) Trained models generate instance segmentations that can be linked across time with tracking and ArUco identity information. (d) Segmentation and tracking outputs are converted into behavioral proxies to compare treatments.

1 Introduction

Animal pollinators are foundational to biodiversity and agricultural production, contributing to the reproduction of wild flowering plants and sustaining crop pollination services that support food security, livelihoods, and ecosystem stability [13, 32, 33]. Social bees (including bumble bees and honey bees) are particularly important pollinators, and are also a key model system in behavior and ecology. Scalable approaches for tracking bees and quantifying behavior can therefore provide practical tools for pollinator health and conservation, while also enabling fundamental research on social behavior and collective behavior.

Social bees and other pollinators are increasingly exposed to multiple, interacting global change stressors, including land-use change, climate change,

∗^{*} These authors contributed equally to this work.

pathogens, and pesticides, with mounting evidence that these pressures contribute to declining pollinator populations [22] and pollination services [43]. A major challenge, however, is that many of these stressors have complex effects on behavior or physiology that may occur well below acutely lethal levels of stress. Pesticides, for example, can alter behavior, physiology, and reproduction and have long-term colony- and population-level consequences at doses well below lethal toxicity [10, 30, 34]. However, detecting such 'sublethal' effects remains challenging and behavioral assays have historically relied on manual observations that limit scalability and standardization across studies. Although recent advances in computer vision and high-throughput "ethomics" have begun to expand the scope of behavioral phenotyping in bees, [21, 42], quantifying behavior in cluttered, dynamic, and socially complex settings typical of naturalistic applications remains a substantial bottleneck. Closing this methodological gap is important not only for understanding the basic ecology and behavior of social bees, but also to support biodiversity conservation and ecosystem services by providing standardized approaches that can directly inform environmental risk assessment for pesticides and other environmental stressors. [17].

Here, we develop a hybrid deep-learning segmentation and tracking approach for detecting and tracking bumble bees (Bombus impatiens) within nest chambers. Our approach expands on existing tracking approaches within social bee colonies to provide markerless detection of workers via instance segmentation to quantify behavior and colony growth. It also provides integration with fiducial markers (ArUco) for long-term individual identity retention, and segmentation of structural nest elements (e.g. developing brood) within the experimental chambers to characterize key aspects of behavior such as nursing. To achieve this, we built a human-in-the-loop annotation tool for the data collected using the BumbleBox system, and applied initial annotations from that to single frames and videos from experiments run over 72 hours in a validation experiment assessing the effects of pesticide exposure on behavior. From this we can study in more detail the behavioral effects of pesticides within social bee colonies.

Contributions The contributions of this paper are fourfold, we provide: 1) a training and validation dataset of 483 object detection frames and 13 tracking sequences across 122 frames annotated with instance segmentations and/or bounding boxes on data using the standardized BumbleBox setup [14] and previous microcolony setups, 2) trained YOLO models which can be used on a variety of similar microcolony setups, 3) a GUI for further annotating the videos and retraining models, and 4) we demonstrate the utility of this tool by applying it to a dataset of 3,761 videos across 3 rounds of imidacloprid dosing, showing that instance segmentations combined with ArUco can improve tracking and behavioral metrics. Source code is available at https://github.com/robertahunt/bumblebox_annotator, trained models, and annotations are available on zenodo (DOI: 10.5281/zenodo.21870158).

R. Hunt and A. Easton-Calabria et al.

References (52)