Machine Learning

Bird Detection and Species Classification

Overview

My teammates and I trained models to draw a box around each bird in a photograph and identify its species. The competition covered over 550 bird classes, including labels for age, sex, and breeding state. Each submission had a 10 million parameter limit.

Single-stage detection with YOLO

We started with YOLO11s, which predicted each bird’s location and species in one pass. We later tried YOLO26s. Fusing its convolution and normalization layers reduced the model from 10.3 million parameters to 9.6 million, bringing it within the competition limit.

Species classification with EfficientNet

We also split the task between two models. A nano YOLO detector found the bird, and we cropped the photograph to its bounding box. EfficientNet then classified the bird using that crop. Together, the models used fewer than 7 million parameters.

Training and validation

We tried mosaic augmentation, color adjustments and geometric changes such as flips and rotations. Adding these augmentations hurt performance in our experiments. When we inspected validation images, we also found cases where the model drew a tighter box around a bird than the reference annotation.

Reference boxes and species labels on the validation images.
Reference boxes and species labels on the validation images.
YOLO11 predictions for the same birds, with a confidence score beside each predicted species.
YOLO11 predictions for the same birds, with a confidence score beside each predicted species.
YOLO26s predictions on the same validation images. The model labeled a Pine Warbler as a Northern Parula, even though it scored higher overall than YOLO11s.
YOLO26s predictions on the same validation images. The model labeled a Pine Warbler as a Northern Parula, even though it scored higher overall than YOLO11s.

Competition results

Our best YOLO-only submission scored about 0.72 on Kaggle. The smaller YOLO and EfficientNet pipeline scored 0.69. We began testing the two-stage approach late in the project, which limited the time we had to tune it.

The fused YOLO26s led the validation runs with a mean average precision of 0.719 across overlap thresholds from 50% to 95% (mAP50–95).
The fused YOLO26s led the validation runs with a mean average precision of 0.719 across overlap thresholds from 50% to 95% (mAP50–95).
YOLO11 precision–recall curves. The blue line summarizes performance across species.
YOLO11 precision–recall curves. The blue line summarizes performance across species.
YOLO26 precision–recall curves. The blue line stays higher at high recall on this validation set.
YOLO26 precision–recall curves. The blue line stays higher at high recall on this validation set.