← Abderrahmane Moujar All projects

2026 · Computer Vision · Agroecology Accepted

Estimating Varietal Proportions in Wheat Grain Mixtures with Fine-Tuned Deep Vision Models

Oudoum Ali Houmed, Quang-Phuoc Ho, Abderrahmane Moujar, Olutola Oloruntobi Paul, Gnonsou Daryl Marcel Okou, Ran Lu, Thanh Gia Hieu Khuong, Martin Ecarnot, Sylvain Chevallier, Timothée Flutre, Lisheng Sun-Hosoya, François P. Landes

Growing several wheat varieties together in one field is a promising agroecological practice. To study it, you need to know how much of each variety ends up in the harvest. We classify individual grains from plain RGB photos to estimate those proportions.

26,882RGB grain images
8wheat varieties, 2 seasons
94.4%balanced accuracy (ConvNeXt-Tiny)
< 4%absolute error on proportions

The problem

Varieties of the same wheat species have grains that look almost identical. Research trials have relied on manual sorting, which farmers can't do at scale. DNA sequencing works but destroys the sample and is hard to parallelize. We asked whether a standard camera and a fine-tuned vision model are enough.

We had hyperspectral data (216 bands) but kept only the three RGB channels. That makes the data 72× smaller, the camera much cheaper, and lets us start from ImageNet-pretrained vision models.

Eight sample crops of individual wheat grains photographed on a black background
Dataset excerpt: one grain per image, segmented from field-trial harvests in Saclay. These examples are deliberately unusual (touching grains, grains at the frame edge).

Approach

We fine-tuned five ImageNet-pretrained architectures end to end, backbone included: ResNet-18, EfficientNetV2-S, ViT-B/16, Swin-T and ConvNeXt-Tiny. Training uses AdamW with cosine annealing, heavy data augmentation (D4 symmetries, colour jitter, Gaussian noise, random erasing, Mixup/CutMix), label smoothing and stochastic weight averaging. At test time we average predictions over 32 views of each grain.

Diagram of the training augmentations, test-time augmentation, ConvNeXt-Tiny backbone and classification head
Model card and training pipeline for ConvNeXt-Tiny, our best model.

Results

ModelNative Y1Native Y2Params
ConvNeXt-Tiny0.944 ± 0.0030.945 ± 0.00228.6 M
Swin-T0.935 ± 0.0020.931 ± 0.00328.3 M
EfficientNetV2-S0.934 ± 0.0030.938 ± 0.00224.0 M
ViT-B/160.908 ± 0.0030.911 ± 0.00286.6 M
ResNet-180.853 ± 0.0080.860 ± 0.00411.2 M

Balanced accuracy, 5-fold cross-validation. Each model fine-tunes in about 10 minutes.

My contributions