Tracking All Members of a Honey Bee Colony Over Their Lifetime Using Learned Models of Correspondence

Franziska Boenisch, Benjamin Rosemann, Benjamin Wild, David M. Dormagen, Fernando Wario, Tim Landgraf · DOI

Introduction

Social insect colonies represent complex systems of self-organization. However, understanding how individual experiences influence collective behavior requires high-fidelity longitudinal data—tracking thousands of nearly identical individuals over weeks or months. Traditionally, this has required either expensive high-resolution hardware or large, error-correcting tags that can disrupt natural behavior.

This research presents a computational framework that shifts the burden of accuracy from hardware to software. By utilizing "learned models of correspondence," the system tracks approximately 2,000 honey bees over their entire 10-week lifespans using relatively inexpensive camera hardware.

Recording Infrastructure

The "BeesBook" system employs four 12MP cameras to monitor a hive frame. Instead of relying on complex lenses or high-end sensors to ensure perfect tag decoding in every frame, the system accepts a higher raw error rate and corrects it through temporal analysis.

3D schematic of the BeesBook recording setup showing overlapping camera fields of view.

The Tracking Pipeline

The core of the methodology is a two-step machine learning pipeline designed to link detections and correct identification errors.

The end-to-end data processing workflow, from recording to behavioral analysis.

Step 1: Linking Consecutive Detections

A Support Vector Machine (SVM) analyzes detections in successive frames. By evaluating Euclidean distance, angular orientation, and the Manhattan distance between ID bit probabilities, the SVM links detections into short, reliable "tracklets."

Step 2: Merging Tracklets

To bridge gaps caused by occlusions (up to 4 seconds), a Random Forest classifier evaluates pairs of tracklets. It uses features like linear motion extrapolation and bitwise median ID comparisons to determine if two tracklets belong to the same individual.

Temporal Error Correction

A key innovation is the Track ID Assignment. Rather than relying on a single noisy decoding, the system calculates the bitwise median of all ID probabilities across an entire track. This temporal averaging effectively "votes out" transient errors caused by motion blur or lighting, reducing raw marker decoding errors from 13.3% to just 1.9%.

Key Results and Insights

The proposed method demonstrated significant improvements over baseline ID-only tracking:

  • Error Reduction: Identification errors dropped from 13.3% to 1.9%.
  • Track Completeness: The two-step method achieved 70.4% completeness, compared to 10.2% for the baseline.
  • Efficiency: The system processed 10 weeks of data for 2,000 bees in less than a week using a modest CPU cluster.

The study highlights that tracking can serve as a powerful error-correction layer. By establishing physical correspondence over time, the system can maintain a bee's identity even when its tag is unreadable in a significant portion of frames.

Limitations and Future Directions

While highly effective, the system faces challenges with very short tracklets where there is insufficient data for robust median ID assignment. Additionally, circular tags can produce ambiguous poses at certain angles. Future work will focus on integrating 3D pose estimation and improving long-term re-identification for bees that leave the hive for extended foraging trips.

Summary updated

BibTeX
@article{boenisch2018tracking,
  author = {Franziska Boenisch and Benjamin Rosemann and Benjamin Wild and David M. Dormagen and Fernando Wario and Tim Landgraf},
  title = {{Tracking All Members of a Honey Bee Colony Over Their Lifetime Using Learned Models of Correspondence}},
  journal = {Frontiers Robotics AI},
  year = {2018},
  doi = {10.3389/frobt.2018.00035},
}
Figure