Manuscript Offprint

arXiv:2608.23213

Bee Detection and Tracking at Hive Entrance using YOLO11 and ByteTrack

Thi Thu Thao Nguyen, Johannes Reschke

Bee Detection and Tracking at Hive Entrance using YOLO11 and ByteTrack

Thi Thu Thao Nguyen

IoT Engineering

Savonia University of Applied Sciences

Finland

Thaonguyenthithu0311@gmail.com

Johannes Reschke

Electrical and Information Engineering

Ostbayerische Technische

Hochschule Regensburg

Germany

johannes.reschke@oth-regensburg.de

Abstract—This work presents an automatic bee entrance monitoring system based on YOLO11 transfer learning and the ByteTrack tracking algorithm. The study investigates the influence of data augmentation, backbone freezing, and tracker parameter optimization on the detection and counting of small, fast-moving bees. The detector with progressive backbone unfreezing strategy achieved about 97.0% precision and 98.7% mAP50, while providing more stable convergence than full fine-tuning. Experiments also showed that light augmentation outperformed heavy augmentation. For tracking, ByteTrack parameters were optimized to improve trajectory continuity under low-confidence detections. On an independent 25 FPS side-view video, the optimized YOLO11-ByteTrack system correctly counted 43 of 47 incoming bees (91.5%) and 7 of 30 outgoing bees (23.3%). Error analysis showed that most counting errors were caused by missed detections due to rapid bee motion and motion blur, while tracking failures became less frequent after parameter optimization. Overall, the results indicate that moderate augmentation, progressive backbone unfreezing, and ByteTrack tuning improve the reliability of automatic bee entrance monitoring under realistic recording conditions.

I. INTRODUCTION

Monitoring bee traffic at hive entrances has become an important task in precision apiculture. The number of bees entering and leaving a hive reflects colony activity and may indicate diseases, food availability, swarming behaviour, or pesticide exposure.

Traditional manual counting is labor-intensive and unsuitable for continuous monitoring. Recent advances in deep learning enable automatic bee detection and tracking using computer vision.

However, tracking bees near the hive entrance is still difficult. Bees occupy only a small part of the image, move rapidly, and are frequently affected by motion blur. In addition, several bees may overlap near the entrance, which can lead to fragmented trajectories and ID switches. This work investigates how modern object detection and tracking algorithms perform under these challenging conditions.

This work focuses on the following aspects:

• training a YOLO11 detector for bee detection,

• comparing different augmentation strategies,

• evaluating backbone freezing schemes,

• optimizing ByteTrack parameters for bee tracking,

• analyzing the main sources of counting errors.