Introduction
Accurate semantic segmentation of wheat heads is a critical component of precision agriculture, facilitating yield estimation and crop health monitoring. However, developing robust models for this task faces two significant challenges: extreme data scarcity and high environmental variance. Manually annotating thousands of small wheat heads in high-resolution imagery is labor-intensive, and models often struggle to generalize across diverse field conditions such as varying lighting and occlusions. This work proposes a self-supervised training framework that leverages unlabeled data through an iterative teacher-student loop and a two-stage hybrid training strategy to achieve high performance with minimal manual labeling.
Methodology
The proposed system utilizes the SegFormer architecture with a MiT-B4 backbone. The core innovation lies in a cyclical training regimen designed to bootstrap model intelligence from a small labeled set.
The Teacher-Student Loop
The process begins with an initial "Teacher" model trained on a limited set of labeled data. This teacher generates pseudo-labels for a larger unlabeled dataset. These pseudo-labels then serve as the training target for a "Student" model.
Two-Stage Hybrid Training
The training of the student model is divided into two distinct stages:
- Stage 1 (Pseudo-label Pre-training): The student model is trained from scratch using the teacher-generated pseudo-labels at a lower resolution (512x512). This lower resolution acts as a regularizer, encouraging the model to learn general features while being less sensitive to pixel-level noise in the pseudo-labels.
- Stage 2 (Fine-tuning): The model is then fine-tuned on high-resolution (1024x1024) ground-truth data. This allows the model to refine its predictions and capture fine-grained details.
Following fine-tuning, the student model becomes the new teacher for the next iteration, creating a self-improving feedback loop. Final predictions are further stabilized using 10-fold cross-validation ensembling and Test-Time Augmentation (TTA).
Experimental Setup
The framework was evaluated using data from the Global Wheat Full Semantic Segmentation Competition. The dataset consisted of only 99 masked training images, representing an extremely small labeled set. A larger unlabeled "pre-train" dataset was utilized for pseudo-label generation. Performance was measured using the Mean Intersection over Union (mIoU) metric on both Development and Testing Phase datasets.
Results and Discussion
The iterative refinement strategy proved highly effective. The model achieved an mIoU of 0.7480 in the Development Phase and 0.7099 in the Testing Phase. Qualitative analysis demonstrates the model's ability to accurately segment wheat heads even in dense, cluttered environments with significant overlap.
Key insights include the effectiveness of resolution switching as a curriculum learning strategy and the power of iterative pseudo-label filtering. By using a confidence threshold, the model ensures it learns primarily from its most certain predictions, effectively cleaning its own training data over time.
Conclusion
This research demonstrates that a robust segmentation model can be trained with very limited labeled data by effectively leveraging unlabeled imagery. Future work will explore the impact of different transformer backbones, the implementation of noise-robust loss functions to better handle pseudo-label inaccuracies, and methods to reduce the computational overhead of the iterative training loop.
Summary updated