Manuscript Offprint

arXiv:2610.37118

Multibranch Ensemble Head in Vision Foundation Models for Efficient Cucumber Phenological Stage Classification

Kostiantyn Khabarlak

Abstract

Vision Foundation Models (VFMs) pretrained with self-supervised learning, such as DINov2, provide highly transferable features, yet adapting them to small, domain-shifted datasets is still challenging. We propose a regularizing multibranch ensemble head: a training and inference scheme that pairs low- and high-capacity branches, samples a single branch stochastically at each training step, and averages both branches in probability space at inference. The design adds negligible parameters and essentially no inference overhead over a single heavy head, while improving the accuracy-efficiency trade-off under data-scarce conditions. Accurate classification of plant growth stages is critical for precision agriculture, enabling timely decisions on fertilization, irrigation, and harvesting. Therefore, as a challenging practical case we use cucumber phenological stage classification, in which flowers and fruits are frequently occluded by foliage, and stage transitions manifest primarily as subtle changes in leaf morphology. The NALEF Food Safety dataset contains images of five cucumber growth stages captured under diverse real-world conditions. On it we evaluate a broad range of backbones, including DINov2 and DINov3 ViT and ConvNeXt variants, against strongly supervised counterparts (ResNet, EfficientNet, ViT). The proposed DINov2 ViT-S with multibranch head achieves a Macro F1 of 0.978 and Cohen's Kappa of 0.971, matching the performance of models more than ten times larger in parameters and GFlops, while requiring only 12.2 GFlops and 22.3M parameters, making it deployable on smartphones and edge devices for phenological stage classification.

Keywords: Plant growth stage classification, Vision Foundation Models, Self-supervised learning, DINov2, DINov3, Regularization, Transfer learning, Cucumber phenology.

1. Introduction

The timing and progression of plant developmental phases are highly dependent on environmental factors, particularly temperature, precipitation, and photoperiod [1]. Accurate classification of plant growth stages is critical for optimizing agricultural management, including decisions on fertilization, herbicide application, and harvesting. Automating this process reduces reliance on labor-intensive and subjective manual analysis, ultimately supporting higher and more consistent crop yields.

Monitoring of plant growth can be performed using ground-level cameras, unmanned aerial vehicles (UAVs), or remote-sensing satellite imagery.

This article has been published in the peer-reviewed conference proceedings. Citation: K. Khabarlak, “Multibranch ensemble head in vision foundation models for efficient cucumber phenological stage classification,” in Proceedings of the International Scientific and Practical Workshop “Advanced Digital Technologies: Intelligent Systems, Modeling, and Data-Driven Control” (ADT-ISMDDC 2026) Co-Located with ICST 2026, in CEUR Workshop Proceedings, vol. 4300. Odesa, Ukraine: CEUR-WS.org, 2026, pp. 251–262. doi:10.83095/ceurws_04300_018.

Video presentation available on YouTube.

Remote-sensing satellite imagery can be used to estimate growth stages of large farmlands. For instance, Sentinel-2 satellites provide public access to multi-spectral imagery, including red-edge bands specifically designed for vegetation analysis [2]. However, this approach is unsuitable for use in cloudy conditions or in greenhouses, and its low spatial resolution leads to poor performance at early growth stages when the canopy does not fully cover the field, or for small fields.

UAVs and stationary cameras offer much greater flexibility and precision. They can be used regardless of weather conditions and inside greenhouses. Additionally, smartphones enable rapid, on-site plant growth evaluation by non-experts. Camera-based plant growth monitoring is often formulated as a classification task [3], [4].

In particular, automated classification of cucumber growth stages from visual data remains an open problem despite the crop’s considerable agronomic significance. While computer vision methods have been applied to cucumbers across several related tasks including disease detection [5], fruit localization for robotic harvesting [6], quality grading [7], and morphological phenotyping [8], the problem of growth stage classification has received comparatively little attention in the literature. This task poses unique challenges: flowers and fruits are frequently occluded by foliage, and cucumber fruit shares near-identical coloration with the surrounding canopy. As a result, transitions between intermediate stages manifest primarily as subtle changes in leaf morphology.

Vision-based plant monitoring is typically performed by fine-tuning a backbone trained with strong supervision on a large labeled dataset. However, recent works have shown that backbones trained with self-supervised objectives offer far more universal features that can be adapted to diverse downstream tasks using a simple linear probe [9], [10]. These Vision Foundation Models (VFMs) have demonstrated applicability across object classification, detection, tracking, scene depth estimation, and many other tasks; yet their use for plant growth stage classification remains comparatively underexplored.

In this work we study how to adapt self-supervised VFMs to small, domain-shifted image datasets through the design of the classification head. We introduce a regularizing multibranch ensemble head: a general training and inference scheme in which a low-capacity linear branch and a higher-capacity MLP branch are attached to the backbone. A single branch is sampled stochastically at each training step, and the two branches are averaged in probability space at inference. This yields an in-model ensemble that regularizes head training under data scarcity while adding negligible parameters and essentially no inference cost. We use cucumber phenological stage classification as a challenging fine-grained case study: on the recently introduced NALEF Food Safety [11] dataset, the proposed head substantially improves the accuracy-efficiency tradeoff over the DINOv2 ViT-L fine-tuning approach previously reported for this dataset [12].

Our main contributions are as follows:

  1. We propose the regularizing multibranch ensemble head, a lightweight, backbone-agnostic scheme for training classification heads on top of Vision Models under data-scarce conditions, combining stochastic per-step branch sampling with probability-space aggregation at inference.

  2. Using a cucumber phenological stage classification dataset, we systematically compare a broad range of self-supervised (DINOv2, DINOv3) and strongly supervised backbones, and show that self-supervised pretraining is particularly beneficial in the small-model regime despite the large domain gap between its pre-training data and plant imagery.

  3. The resulting DINOv2 ViT-S model substantially improves over existing solutions on the NALEF Food Safety dataset at a small fraction of its computational cost, requiring few GFlops and parameters and remaining deployable on smartphones and edge devices.

References (26)