Automated Video Monitoring of Unmarked and Marked Honey Bees at the Hive Entrance

Ivan F. Rodriguez, Jeffrey Chan, Manuel Alvarez Rios, Kristin Branson, José L. Agosto-Rivera, Tugrul Giray, Rémi MégretFrontiers of Computer Science 2021 · DOI

Introduction

Honey bee populations are currently facing significant declines due to factors such as pesticide exposure, habitat loss, and climate change. Monitoring "foraging flux"—the rate at which bees depart and return to the hive, along with the quantity of pollen collected—is essential for understanding colony health. Traditional monitoring methods, such as manual observation or RFID tagging, are often labor-intensive, invasive, or limited to small subsets of the population.

This research presents a robust, non-invasive computer vision system designed to monitor hive entrance activity automatically. By employing multi-animal pose estimation, the system tracks both unmarked and marked bees, providing comprehensive data on colony foraging patterns and individual behaviors.

Methodology

The proposed system utilizes a "tracking-by-detection" approach, treating the hive entrance as a high-traffic environment. The core architecture is a Convolutional Neural Network (CNN) adapted from human pose estimation techniques, specifically utilizing Part Affinity Fields (PAF).

System Pipeline

The monitoring process is divided into several integrated modules:

  1. Pose Estimation: The model detects five keypoints: head, thorax, abdomen, and two antennae. PAFs are used to associate these parts correctly, even in crowded conditions.
  2. Tracking: Detections are linked across frames using the Hungarian algorithm to generate trajectories.
  3. Event Classification: Trajectories are analyzed to identify entrance, exit, or stationary events.
  4. Pollen Detection: Pose data allows for the extraction of aligned bee images (head-up orientation), which are then classified by a secondary CNN for pollen presence.
  5. Individual Identification: For marked bees, the system integrates AprilTag detection to track specific individuals over multiple days.
The integrated system pipeline for monitoring foraging events and individual bee behavior.

Data and Model Architecture

The researchers developed a Honey Bee Pose Dataset (1,452 labeled bees) and a Pollen Dataset (1,550 images) to train the models. The pose estimation network uses a VGG-19 backbone for feature extraction, followed by refinement stages that predict part confidence maps and affinity fields.

Pose estimation details: (a) keypoint definitions, (b-c) detection heatmaps, and (d) the multi-stage CNN architecture.

Results and Discussion

The system demonstrated high accuracy across its various modules. The pose estimation model achieved a mean Average Precision (mAP) of approximately 99% for head and thorax detection. Notably, including antennae as keypoints improved the detection of other body parts by providing additional spatial context.

For pollen recognition, the system achieved 81.2% precision and 78.1% recall at the event level. The use of "orientation compensation"—rotating images based on pose data—was critical for this performance, as it reduced visual variance for the classifier.

The system processed video at 13.8 fps on an NVIDIA Tesla P100, enabling large-scale offline analysis. Field validation in Puerto Rico successfully documented circadian rhythms and behavioral shifts following environmental stressors like Hurricane Maria.

Conclusion

This automated monitoring system provides a scalable solution for studying honey bee foraging without the need for invasive tagging of every individual. While track fragmentation in extremely crowded conditions remains a challenge, future work involving visual re-identification models and edge-computing optimization promises to further enhance the system's utility for real-time ecological monitoring.

Summary updated

BibTeX
@article{rodriguez2021automated,
  author = {Ivan F. Rodriguez and Jeffrey Chan and Manuel Alvarez Rios and Kristin Branson and José L. Agosto-Rivera and Tugrul Giray and Rémi Mégret},
  title = {{Automated Video Monitoring of Unmarked and Marked Honey Bees at the Hive Entrance}},
  journal = {Frontiers of Computer Science},
  year = {2021},
  doi = {10.3389/fcomp.2021.769338},
}
Figure