An original framework for Wheat Head Detection using Deep, Semi-supervised and Ensemble Learning within Global Wheat Head Detection (GWHD) Dataset

Fares Fourati, Wided Souidène, Rabah AttiaarXiv 2020

Abstract

Detecting wheat heads in diverse global environments is a challenging task due to overlapping plants, varying weather conditions, and significant domain shifts between geographic regions. This paper presents a robust framework that combines state-of-the-art architectures, such as EfficientDet, with semi-supervised pseudo-labeling and advanced ensemble techniques. By leveraging domain-specific data augmentations and Weighted Boxes Fusion (WBF), the proposed pipeline achieved a top 6% ranking in the Global Wheat Head Detection (GWHD) challenge with a final mean Average Precision (mAP) of 74.22%.

Introduction: The Challenge of Field-Based Detection

Accurately counting wheat heads in the field is essential for estimating crop yield and monitoring plant health. However, automated detection via imagery faces three primary hurdles:

  1. Visual Complexity: Wheat heads often overlap in dense clusters, and environmental factors like wind create motion blur that obscures key features.
  2. Phenotypic Diversity: Wheat appearance varies significantly based on maturity, genotype, and regional growth conditions.
  3. Domain Shift: Models often overfit to their training regions; for instance, a model trained on European wheat may fail when deployed in Australia or China.

The objective of this work is to develop a generalized detector capable of maintaining high accuracy across unseen wheat varieties and environmental conditions.

Methodology

The authors developed a multi-stage pipeline that integrates supervised and semi-supervised learning strategies to ensure cross-regional robustness.

Model Architectures and Data Augmentation

The study compared Faster R-CNN (a classic two-stage detector) and EfficientDet (a modern one-stage detector known for its efficient scaling). To improve robustness, the team utilized two sets of augmentation strategies, G1 and G2. While G1 focused on standard transformations like cropping and flipping, G2 introduced domain-specific augmentations such as "Motion Blur (Wind)" and "Shadow" to simulate the actual noise found in outdoor agricultural photography.

Table 2: Probabilities of various image transformations used in G1 and G2 augmentation strategies.

Semi-Supervised Learning and Ensembling

A key component of the framework is pseudo-labeling. The model first predicts labels for the unlabeled test set (comprising images from Australia, Japan, and China). These high-confidence predictions are then incorporated back into the training set, allowing the model to adapt to the specific visual characteristics of the target domain without manual annotation.

For the final predictions, the team employed Test Time Augmentation (TTA)—running the model on multiple flipped and rotated versions of the same image—and Bagging to combine predictions from multiple models. They also replaced standard Non-Maximum Suppression (NMS) with Weighted Boxes Fusion (WBF). Unlike NMS, which simply discards overlapping boxes, WBF averages the coordinates of overlapping predictions, treating them as "votes" for the object's location rather than competitors.

Key Results

The framework showed consistent performance gains as each component was added. The study utilized the Global Wheat Head Detection (GWHD) Dataset, training on 3,422 images from Europe and North America and testing on approximately 1,000 images from other continents to test generalization.

While the Faster R-CNN baseline reached 68.46% mAP after data cleaning and augmentation, the EfficientDet-based ensemble performed significantly better.

Table 3: Performance improvements of the EfficientDet-based framework with incremental additions of ensemble and semi-supervised techniques.

As shown in Table 3, a single EfficientDet model with G1 augmentations started at 71.23% mAP. By transitioning to G2 augmentations and incorporating TTA, pseudo-labeling, and bagging, the performance steadily increased. The final multi-scale ensemble, which combined predictions from models trained at 512x512 and 1024x1024 resolutions, achieved the peak score of 74.22% mAP, placing the team in the top 6% of the global challenge.

Conclusion and Future Work

The success of this framework demonstrates the power of combining domain-specific augmentations with semi-supervised learning to overcome domain shift in agricultural computer vision. The use of WBF proved particularly effective in dense detection scenarios. However, the high computational cost of multi-scale ensembles and TTA presents a barrier to real-time deployment on edge devices. Future research will focus on knowledge distillation to compress these robust ensembles into single, high-speed models suitable for deployment on agricultural drones.

Summary updated

BibTeX
@misc{fourati2020original,
  author = {Fares Fourati and Wided Souidène and Rabah Attia},
  title = {{An original framework for Wheat Head Detection using Deep, Semi-supervised and Ensemble Learning within Global Wheat Head Detection (GWHD) Dataset}},
  year = {2020},
  eprint = {2009.11977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.11977},
}
Figure