Automatic methods for long-term tracking and the detection and decoding of communication dances in honeybees

Fernando Wario, Benjamin Wild, Margaret J. Couvillon, Raúl Rojas, Tim LandgrafFrontiers in Ecology and Evolution 2015

Abstract

The honeybee waggle dance communication system is an intriguing example of abstract animal communication and has been investigated thoroughly throughout the last seven decades. Typically, observables such as durations or angles are extracted manually directly from the observation hive or from video recordings to quantify dance properties, particularly to determine where bees have foraged. In recent years, biology has profited from automation, improving measurement precision, removing human bias, and accelerating data collection. As a further step, we have developed technologies to track all individuals of a honeybee colony and detect and decode communication dances automatically. In strong contrast to conventional approaches that focus on a small subset of the hive life, whether this regards time, space, or animal identity, our more inclusive system will help the understanding of the dance comprehensively in its spatial, temporal, and social context. In this contribution, we present full specifications of the recording setup and the software for automatic recognition and decoding of tags and dances, and we discuss potential research directions that may benefit from automation. Lastly, to exemplify the power of the methodology, we show experimental data and respective analyses for a continuous, experimental recording of nine weeks duration.

Introduction

For decades, the honeybee waggle dance has served as a primary model for studying complex animal communication. Traditionally, researchers have manually extracted observables like dance angles and durations from video recordings. However, this labor-intensive approach suffers from a significant limitation: a lack of social and temporal context. Without the ability to track thousands of individuals simultaneously over extended periods, it is impossible to understand the "social history" behind these communications—such as which bees follow specific dances and their prior interactions. To address this, we developed "BeesBook," an end-to-end system for tracking entire colonies and automatically decoding their communication dances.

Methods: The BeesBook System

The BeesBook framework integrates custom hardware with a multi-stage computer vision pipeline to enable inclusive hive monitoring.

Hardware and Tagging

The physical setup utilizes a specialized recording chamber designed to house a honeybee colony while maintaining optimal conditions for high-resolution imaging.

Experimental recording setup showing the housing and camera arrangement.

Central to the tracking system is the "Circulatrix" tag. Unlike traditional flat markers, these are circular, curved 12-bit tags designed to fit the bee's thorax. Each tag features a unique binary code of black and white segments, allowing for 4,096 distinct identifiers.

Honeybees on a honeycomb equipped with 12-bit circular 'Circulatrix' tags.

Computer Vision Pipeline

The software architecture processes raw video through five layers:

  1. Preprocessing: Normalizing illumination and filtering honeycomb cell edges.
  2. Tag Localization: Identifying regions of interest based on edge density.
  3. Ellipse Fitting: Using a probabilistic Hough transform to locate tag boundaries.
  4. Grid Fitting: Projecting a 3D model onto the 2D image to account for bee orientation.
  5. Decoding: Extracting the 12-bit ID.

Probabilistic ID Filtering

To handle noise from motion blur or glare, the system employs a Temporal ID Filter. By treating identity as a Markov process, the system maintains a probability distribution over time. This allows the pipeline to achieve near-certainty in identification after approximately 50 consecutive observations, even if individual frame decoding accuracy is relatively low (~65%).

Results and Validation

The system was validated using two large-scale datasets. One involved 63 days of recording ~2,000 marked bees (65 million images), and another focused on 57 days of dance validation.

  • Tracking Accuracy: The system achieved a 90.6% recall for tag localization. The temporal filter elevated tracking precision to >99% for most individuals.
  • Dance Detection: Automated detection identified 96.4% of waggle dances with 89.5% precision.
  • Spatial Precision: Mean positional error was remarkably low (0.02 mm), enabling the study of fine-scale social interactions like trophallaxis.
  • Computational Performance: Utilizing high-performance computing (HPC) with 1,000 processors, the system can process data at ten times the speed of the original recording.

Discussion and Future Directions

BeesBook demonstrates that "big data" approaches can transform behavioral biology. By leveraging probabilistic filtering, the system turns noisy visual data into high-confidence behavioral trajectories. However, challenges remain regarding the massive computational resources required (170 TB of data for a 60-day run) and the potential for occlusion in larger colonies (20,000+ bees). Future work will focus on non-greedy tracking algorithms and deep convolutional neural networks to further enhance accuracy and scalability.

Summary updated

BibTeX
@inproceedings{wario2015automatic,
  author = {Fernando Wario and Benjamin Wild and Margaret J. Couvillon and Raúl Rojas and Tim Landgraf},
  title = {{Automatic methods for long-term tracking and the detection and decoding of communication dances in honeybees}},
  booktitle = {Frontiers in Ecology and Evolution},
  year = {2015},
  doi = {10.3389/fevo.2015.00103},
}
Figure