Advancing Image-Based Grapevine Variety Classification with a New Benchmark and Evaluation of Masked Autoencoders

arXiv:2506.13335 · cs.CV · Submitted 2025-06-16 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: We're looking at the paper: "Advancing Image-Based Grapevine Variety Classification with a New Benchmark and Evaluation of Masked Autoencoders".

Paper summary: Jane: So we've looked at the paper Advancing Image-Based Grapevine Variety Classification with a New Benchmark and Evaluation of Masked Autoencoders and seen how MAEs, when pre-trained on relevant data, give us solid results compared to traditional methods. What does this all mean for the practical application in agriculture?

Tom: It means we have a strong technique for identifying these varieties that relies less on having massive amounts of perfectly labeled data right away, focusing instead on how well the model learns from natural image patterns.

Lu: The authors found that this approach works especially well in low-data regimes, and they showed that long pre-training between two thousand and two thousand five hundred epochs is beneficial for capturing those deep features.

Jane: It suggests that precision agriculture applications could benefit because we have a model better equipped to handle the variability of different growing seasons.

Meng: But we have to remember their limitation: they mentioned the need for a mechanism to rapidly incorporate new varieties, and they also noted that the worst performance happens at the end of May during leaf development and inflorescence emergence.

Tom: So, while it's a solid step forward using MAEs on domain-specific data, we still have to build systems that can handle adding new grape varieties quickly without needing a full re-training cycle every time.

Jane: It’s about adapting the tool to fit the specific needs of the task, rather than just blindly applying general knowledge from other image sets.

Lu: That's exactly what they are suggesting: capturing features more relevant to the specific classification task, which is visible in their attention maps across leaf features.

Meng: So we see it as a powerful pre-training technique for when the data is scarce, but deployment still requires us to plan for those edge cases like new varieties and seasonal transitions.

Tom: That's the balance: strong performance with specific data versus the ongoing engineering challenge of scaling and adaptability in a diverse agricultural context.

Jane: So that’s where we leave it for this paper on Advancing Image-Based Grapevine Variety Classification with a New Benchmark and Evaluation of Masked Autoencoders.

Conclusion: Tom: So we’ve seen how Masked Autoencoders, or MAEs, can pre-train models on grapevine leaf images to classify those forty-three different varieties. This paper is just wrapping up the evaluation and they are calling it Advancing Image-Based Grapevine Variety Classification with a New Benchmark and Evaluation of Masked Autoencoders.

Jane: It sounds like the authors are showing that by using these MAEs, you get much better results when you’re working with less labeled data compared to older methods. The big question here is what this actually means for someone who just wants to grow grapes or manage a vineyard.

Lu: Basically, they found that long pre-training between two thousand and two thousand five hundred epochs really helps the model capture the right features for the task, especially when you're dealing with limited data regimes. If you’re building a system from scratch, that training time is going to be important.

Meng: From where I sit at the startup level, I’m thinking about deployment cost here. If this method requires such long pre-training on specific datasets like Dataset Three plus, what does that mean for the infrastructure we need to run these classification models? It sounds like a lot of upfront compute before you even get to inference.

Lalam: From my perspective, the results are quite strong because they show that when you use data that lines up well with what you want to do downstream—like this specific grapevine task—the MAE representation is better than just using general knowledge from other datasets like IN1K. I’m confident this direction points toward more practical solutions.

Jane: So, to put it simply, the authors are saying that if you're trying to identify these specific grape types using images, starting with a masked autoencoder and training it on relevant data gives you a much better model than relying on older transfer learning techniques. It’s about getting the features just right for this particular job.

Tom: Exactly. The main implication is that for tasks where you don't have tons of perfectly labeled examples to start, this MAE pre-training approach is a solid way to build a strong foundation for your classifier, as long as you give it enough time to learn those specific patterns.

Lu: And the paper does point out some caveats too. They found that the optimal way to set up the masking ratio depends on both your dataset and the model you choose, so there isn't one perfect setting that works everywhere.

Meng: I’m interested in those limitations, because I’m thinking about scaling this up to cover all five thousand or eight thousand varieties out there globally. How do we handle adding a new variety without re-doing all that long pre-training from scratch?

Jane: That’s the next big hurdle, isn't it? We have a tool that works well for what it was trained on, but we need a way to make it flexible enough to keep up with the thousands of new varieties being discovered or planted.

Tom: Yeah, and they also pointed out that their model performs best when you use simpler augmentation techniques like random cropping rather than heavy things like color jitter. That’s a practical detail for anyone trying to deploy this in the field where you might not have super high-end processing power. (Music swells slightly)

University of Tras-os-Montes and Alto Douro Ó Vila real, Portugal Department of Engineering University of Tras-os-Montes and Alto Douro Ó Vila real, Portugal Coa Parque Fundacėแ ao para a Salvaguarda e ValorizacΧๅao do Vale do C oa Vila Nova de Foz Coa · University of Barcelona

cs.CV

Submitted: 2025-06-16

Updated: 2026-11-27

Code: https://github.com/ultralytics/yolov5

License: http://creativecommons.org/licenses/by-nc-nd/4.0/

Importance score: 75/100

The gist: Grapevine varieties are essential for the economies of many wine-producing countries, influencing the production of wine, juice…

Key concepts

Masked Autoencoders (MAEs)
MAEs are a type of self-supervised learning model that learns to reconstruct missing parts of an image. The model is trained by masking portions of the input image and then trying to predict those masked areas. This process helps the model learn rich, general features from unlabeled images without needing manual labels for every part.
Vision Transformer (ViT)
A ViT is a powerful deep learning architecture used for image processing. It treats an image as a sequence of patches and uses self-attention mechanisms to understand the relationships between different parts of the image. In this study, ViTs are used as encoders after being pre-trained with MAEs.
Self-Supervised Learning (SSL)
SSL is a training paradigm where models learn from unlabeled data by creating their own supervisory signals from the data itself. MAEs utilize SSL to pre-train models on large amounts of unlabeled grapevine leaf images, allowing them to capture meaningful visual patterns before being fine-tuned for the specific classification task.

Terminology

Summary

Grapevine varieties are essential for the economies of many wine-producing countries, influencing the production of wine, juice, and the consumption of fruits and leaves. p. 0

Where the paper says it

edu Joaquim Sousa Engineering Department University of Tras-os-Montes and Alto Douro ´ Vila real, Portugal 5000-801 jjsousa@utad. pt June 17, 2025 ABSTRACT Grapevine varieties are essential for the economies of many wine-producing countries, influencing the production of wine, juice, and the consumption of fruits and leaves.

<ref:2506.13335#pg1, Grapevine varieties are essential for the economies of many wine-producing countries, influencing the production of wine, juice, and the consumption of fruits and leaves #pg1>. p. 0
Where the paper says it

edu Joaquim Sousa Engineering Department University of Tras-os-Montes and Alto Douro ´ Vila real, Portugal 5000-801 jjsousa@utad. pt June 17, 2025 ABSTRACT Grapevine varieties are essential for the economies of many wine-producing countries, influencing the production of wine, juice, and the consumption of fruits and leaves.

The main contribution is an evaluation of Masked Autoencoders (MAEs) for identifying grapevine varieties based on field-acquired images. p. 0
Where the paper says it

In this context, self-supervised learning (SSL) methods can be a good tool to avoid this performance degradation, since they can learn directly from data, without external labels. This study presents an evaluation of Masked Autoencoders (MAEs) for identifying grapevine varieties based on field-acquired images.

<ref:2506.13335#pg1, This study presents an evaluation of Masked Autoencoders (MAEs) for identifying grapevine varieties based on field-acquired images #pg1>. p. 0
Where the paper says it

In this context, self-supervised learning (SSL) methods can be a good tool to avoid this performance degradation, since they can learn directly from data, without external labels. This study presents an evaluation of Masked Autoencoders (MAEs) for identifying grapevine varieties based on field-acquired images.

Methodology and Datasets

The study introduces two labelled datasets designed to evaluate the efficacy of DL-based models in classifying grapevine varieties along with two additional unlabelled datasets.<ref:2506.13335#pg2, The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights #pg4>. p. 3

Where the paper says it

Given these factors, this study presents an evaluation of MAEs for grapevine variety identification using field-acquired images. Our main contributions are: • The introduction of a new benchmark for the classification of 43 grapevine varieties collected over four growing seasons; • A deep comparison between MAE pre-training for ViT architectures using two large unlabeled datasets and supervised pre-training with IN1K as a data source; • An analysis of seasonal generalisation in grapevine variety classification across three phenological stages; The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights.

  1. Dataset 1 was created through the acquisition of grapevine leaf images in natural settings over four years (2020–2023). p. 3

    Where the paper says it

    This approach ensures a comprehensive assessment of MAEs across different data regimes and conditions, thereby enhancing their applicability to precision viticulture. 1 UTAD Grapevine Varieties Dataset 2023 (Dataset 1) Dataset 1 was created through the acquisition of grapevine leaf images in natural settings over four years (2020–2023) at two sites in Vila Real, Portugal: the University of Tras-os-Montes and Alto Douro (UTAD) and Pal ´ acio de Mateus.

    <ref:2506.13335#pg5>.

  2. Dataset 1 is publicly available at https://zenodo. p. 4

    Where the paper says it

    The number of samples per class can be seen in Fig. 1 Dataset 1 is publicly available at https: //zenodo.

    org/records/15160944. p. 4
    Where the paper says it

    1 Dataset 1 is publicly available at https: //zenodo. org/records/15160944.

    <ref:2506.13335#pg5, The number of varieties per class can be seen in Fig. p. 4
    Where the paper says it

    Category Dataset 1 Dataset 2 Dataset 3 Dataset 3+ Dataset Purpose Baseline dataset capturing grapevine leaf images over multiple years Temporal extension capturing grapevine leaf images during the 2024 growing season Unlabeled dataset for SSL pre-training Extended version of Dataset 3 with additional images for diversity Location Vila Real, Portugal Vila Real, Portugal Various sources Various sources Time Period 2020–2023 2024 Various Various Acquisition Devices Smartphones, Tablets, Cameras Smartphones Various sources, mixed acquisition devices Various sources, mixed acquisition devices Image Distance 20–40 cm from plant 20–40 cm from plant Various distances Various distances Dataset Size Training: 7,939 samples, Validation: 1,508 samples, Testing: 4,032 samples Training: 4,574 samples, Validation: 1,060 samples, Testing: 1,142 samples 33,671 images 54,571 images Number of Varieties 43 Classes 43 Classes Unlabeled (used for SSL pre-training) Unlabeled (used for SSL pre-training) Publicly Available Yes Yes No No 4,032 for testing. The number of samples per class can be seen in Fig.

    1 #pg6>.

  3. Dataset 2 was designed to serve as a temporal extension of Dataset 1, capturing grapevine leaf images during the 2024 growing season. p. 4

    Where the paper says it

    2 UTAD Grapevine Varieties Dataset 2024 (Dataset 2) Dataset 2 (samples can be seen in Fig. 2) was designed to serve as a temporal extension of Dataset 1, capturing grapevine leaf images during the 2024 growing season.

    <ref:2506.13335#pg5, This dataset complements Dataset 1 by adding seasonal diversity to the training data #pg5>. p. 4
    Where the paper says it

    Dataset 2 was divided into training, validation, and test subsets with 4,574, 1,060, and 1,142 samples, respectively. This dataset complements Dataset 1 by adding seasonal diversity to the training data, allowing for a more robust evaluation of the model’s ability to generalize across different phenological stages and environmental conditions.

  4. Dataset 3 consists of unlabeled grapevine leaf images collected from various sources and was used to pre-train models in a SSL context. p. 4

    Where the paper says it

    3 Unsupervised Grapevine Dataset 2023 (Dataset 3) Dataset 3 (see Fig. 3) consists of unlabeled grapevine leaf images collected from various sources [Hughes and Salathe, 2016, Koklu et al.

    <ref:2506.13335#pg7>.

Model Training Protocol

The training protocol consists of two main phases: pre-training (pre-text task) and fine-tuning (downstream task).<ref:2506.13335#pg8>.

  1. In the pre-text phase, an MAE reconstructs partially masked images using an unlabeled dataset. p. 7

    Where the paper says it

    A PREPRINT - JUNE 17, 2025 Figure 4: The study employs a two-phase training approach: pre-text and downstream tasks. In the pre-text phase, a MAE reconstructs masked images using an unlabeled dataset.

    <ref:2506.13335#pg8, The decoder is then discarded and replaced by a classifier in the downstream phase #pg8>. p. 7
    Where the paper says it

    The decoder is then discarded. In the downstream phase, a classifier is trained on the encoder’s top with an annotated dataset for grape variety classification.

  2. The training protocol leverages the self-supervised capabilities of MAEs to reduce dependency on annotated data. p. 7

    Where the paper says it

    Futhermore ablation studies on training duration, data availability, augmentation, and mask ratios were carried out. This two-phase approach leverages the self-supervised capabilities of MAEs to reduce dependency on annotated data, aligning with challenges in precision agriculture where labeled data are often limited.

    <ref:2506.13335#pg8, This two-phase approach leverages the self-supervised capabilities of MAEs to reduce dependency on annotated data #pg8>. p. 7
    Where the paper says it

    Futhermore ablation studies on training duration, data availability, augmentation, and mask ratios were carried out. This two-phase approach leverages the self-supervised capabilities of MAEs to reduce dependency on annotated data, aligning with challenges in precision agriculture where labeled data are often limited.

  3. ViT models are used as encoders, and instead of using pre-trained weights from IN1K dataset, MAE is applied to pre-train the models. p. 7

    Where the paper says it

    However, instead of using pre-trained weights from IN1K dataset, MAE [He et al. , 2021b] is applied to pre-train the models.

    <ref:2506.13335#pg8, After pre-training, the decoder is discarded and replaced by a classifier #pg8>. p. 7
    Where the paper says it

    , 2021b] is applied to pre-train the models. After pre-training, the decoder is discarded and replaced by a classifier, keeping the obtained weights, and then the model is completely retrained.

Performance Analysis and Comparison

The performance of ViT models pre-trained with MAEs is compared to baseline models fine-tuned with IN1K weights.<ref:2506.13335#pg9>.

The observed improvements in F1 Score indicate that MAE pre-training enhances feature extraction from unlabeled data, making it especially effective in domains where labeled data are limited. p. 8

Where the paper says it

, 2020] 16 768 12 12 86. 00 data augmentations, making MAEs an effective pre-training strategy, particularly for datasets with limited labeled data.

<ref:2506.13335#pg9, ViT models pre-trained with MAE demonstrated more robust performance in the grapevine variety classification task #pg9>. p. 3
Where the paper says it

Our main contributions are: • The introduction of a new benchmark for the classification of 43 grapevine varieties collected over four growing seasons; • A deep comparison between MAE pre-training for ViT architectures using two large unlabeled datasets and supervised pre-training with IN1K as a data source; • An analysis of seasonal generalisation in grapevine variety classification across three phenological stages; The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights. Models’ performance was assessed quantitatively using metrics such as Precision, Recall, F1-Score, and feature similarity through Linear Centered Kernel Alignment, as well as qualitatively using Attention Maps.

The ViT-B model pre-trained on Dataset 3+ achieved an F1 Score of 0. p. 1

Where the paper says it

A PREPRINT - JUNE 17, 2025 a large, unlabeled dataset, followed by transfer learning and fine-tuning for the classification. Our results show that a ViT-B/16 model pre-trained with MAE and the unlabeled dataset achieved an F1 score of 0.

7956, outperforming all other models, including those pre-trained on IN1K. p. 1
Where the paper says it

Our results show that a ViT-B/16 model pre-trained with MAE and the unlabeled dataset achieved an F1 score of 0. 7956, outperforming all other models, including those pre-trained on IN1K.

<ref:2506.13335#pg2>.

Key Findings and Implications

The results show that models benefit from long pre-training (between 2000 and 2500 epochs), and models pre-trained on datasets that align closely with downstream tasks perform better when trained in low-data regimes.<ref:2506.13335#pg18, Dataset 3+ consistently outperformed all other models across all proportions of data #pg18>. p. 0

Where the paper says it

MAE was selected for its ability to perform well with small batch sizes, its robustness to data imbalance, and its label efficiency, making it an excellent choice for practitioners in precision viticulture. The main contributions of this study include two benchmarks comprising 43 grapevine varieties collected across different seasons, an analysis of MAE’s application in the agricultural context, and a performance comparison of trained models across seasons.

The results also show that random cropping leads to better performance compared to stronger augmentations like color jitter or Gaussian blur. p. 9

Where the paper says it

, 2020a], which included random cropping, color jitter, grayscale transformation, and Gaussian blur. Additionally, CutMix and MixUp augmentations (α = 0.

<ref:2506.13335#pg19, This finding aligns with prior studies [He et al. p. 8
Where the paper says it

, 2022b] and ViT-B with supervised IN1K weights. These models were chosen based on their extensive utilization in prior studies [De Nart et al.

, 2021b] suggesting that simpler augmentations can be more effective for models pre-trained on domain-specific data using MAE #pg19>. p. 1
Where the paper says it

Additionally, we observed that pre-trained models benefit from long pre-training, perform well under low-data training regime, and that simple data augmentation methods are more effective than complex ones. The study also found that the mask ratio in MAE impacts performance only marginally.

The results also show that varying the mask ratio slightly affects the final classification performance. p. 1

Where the paper says it

The study also found that the mask ratio in MAE impacts performance only marginally. Keywords grapevine variety classification · self-supervised learning · deep learning · masked autoencoder · precision viticulture · precision agriculture 1 Introduction Grapevine varieties are one of the most widely cultivated and economically significant horticultural crop worldwide [Eyduran et al.

p. 1
Where the paper says it

The study also found that the mask ratio in MAE impacts performance only marginally. Keywords grapevine variety classification · self-supervised learning · deep learning · masked autoencoder · precision viticulture · precision agriculture 1 Introduction Grapevine varieties are one of the most widely cultivated and economically significant horticultural crop worldwide [Eyduran et al.

<ref:2506.13335#pg19, The optimal mask ratio is dataset and model-dependent, with only a slight influence on performance #pg19>. p. 1
Where the paper says it

Additionally, we observed that pre-trained models benefit from long pre-training, perform well under low-data training regime, and that simple data augmentation methods are more effective than complex ones. The study also found that the mask ratio in MAE impacts performance only marginally.

The findings suggest that MAE pre-training on domain-specific datasets like Dataset 3+ enables the model to capture features more relevant to the specific classification task. p. 9

Where the paper says it

For data augmentation analysis, ViT-B was pretrained over 500 epochs with varying augmentation strategies to determine its impact on representation quality. In addition to standard evaluation metrics, activation maps and pair-wise similarity between representations were analyzed to compare the effects of IN1K initialization and task-specific dataset pre-training on grapevine variety classification.

<ref:2506.13335#pg17, Attention maps reveal that models pre-trained on Dataset 3+ exhibit more spatially distributed attention patterns across relevant leaf features #pg17>. p. 7
Where the paper says it

In the downstream phase, a classifier is trained on the encoder’s top with an annotated dataset for grape variety classification. Evaluation includes classification metrics, similarity between features, and attention maps.

The results in Table 6 further confirm that MAE pre-training on grapevine-specific data allows the model to adapt more effectively to real-world seasonal changes. p. 3

Where the paper says it

Given these factors, this study presents an evaluation of MAEs for grapevine variety identification using field-acquired images. Our main contributions are: • The introduction of a new benchmark for the classification of 43 grapevine varieties collected over four growing seasons; • A deep comparison between MAE pre-training for ViT architectures using two large unlabeled datasets and supervised pre-training with IN1K as a data source; • An analysis of seasonal generalisation in grapevine variety classification across three phenological stages; The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights.

<ref:2506.13335#pg17, This adaptability is critical for applications in precision agriculture, where grapevine varieties need to be monitored and classified accurately over different growing seasons #pg17>. p. 3
Where the paper says it

Our main contributions are: • The introduction of a new benchmark for the classification of 43 grapevine varieties collected over four growing seasons; • A deep comparison between MAE pre-training for ViT architectures using two large unlabeled datasets and supervised pre-training with IN1K as a data source; • An analysis of seasonal generalisation in grapevine variety classification across three phenological stages; The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights. Models’ performance was assessed quantitatively using metrics such as Precision, Recall, F1-Score, and feature similarity through Linear Centered Kernel Alignment, as well as qualitatively using Attention Maps.

Limitations and Future Work

The results show that, for identifying grapevine varieties through images, the representations obtained with MAE, using a smaller dataset closely aligned with grapevine-related tasks, are more effective than those achieved through IN1K knowledge transfer.<ref:2506.13335#pg20, However, despite the promising results, there are several important factors to consider #pg20>. p. 2

Where the paper says it

The modification increased the model’s performance for three downstream tasks tested. Despite these applications achieving remarkable results, there are factors that still need to be tested when using MAE 3

Firstly, there are between 5,000 and 8,000 grapevine varieties spread across the globe [Robinson et al. p. 1

Where the paper says it

Their importance stems from their use in wine and juice production, as well as the consumption of fruits and leaves, making them crucial to the economies of various countries [Nascimento et al. It is estimated that between 5,000 and 8,000 grapevine varieties exist under approximately 24,000 different names [Schneider et al.

, 2013], necessitating a mechanism to rapidly incorporate new varieties into the classifier’s scope. p. 1
Where the paper says it

, ´ 2013]. Today, grapevine varieties are primarily identified by ampelography or molecular analysis [Carneiro et al.

<ref:2506.13335#pg21>.

To address these challenges, future work could leverage the pre-trained weights obtained from this exploration as initial weights for zero-shot learning [Chen et al. p. 9

Where the paper says it

For this purpose, models were pre-trained with IN1K weights as initial values for the MAE-based pre-training phase, and the resulting weights were used as starting points for the downstream fine-tuning task. To further understand the model’s behavior, tests were conducted on long-duration pre-training, performance in lowdata regimes, and the effects of applying stronger data augmentation during pre-training as proposed by Chen et al.

, 2021] and incremental learning approaches to handle the addition of new varieties. p. 3
Where the paper says it

Given these factors, this study presents an evaluation of MAEs for grapevine variety identification using field-acquired images. Our main contributions are: • The introduction of a new benchmark for the classification of 43 grapevine varieties collected over four growing seasons; • A deep comparison between MAE pre-training for ViT architectures using two large unlabeled datasets and supervised pre-training with IN1K as a data source; • An analysis of seasonal generalisation in grapevine variety classification across three phenological stages; The methodology involves pre-training ViT models with MAEs, followed by transfer learning and fine-tuning the resulting weights.

<ref:2506.13335#pg21, Few-shot learning methods could also be applied to manage naturally under-represented classes #pg21>. p. 3
Where the paper says it

For images from 2020 to 2022, subsets were split without regard to acquisition date, while the 2023 data were partitioned with attention to acquisition dates to ensure each subset represented different phenological stages. To manage class imbalance, each class could contain at most four times the samples of the smallest class in the training and validation sets; any excess samples were assigned to the test set.

The results indicate that the classifier’s worst performance occurred towards the end of May when plants are in leaf development and inflorescence emergence. p. 6

Where the paper says it

Each line represents a different week. Week 1 is composed of images of plants in leaf development and inflorescence emergence.

<ref:2506.13335#pg21>.

Conclusion

The study evaluated the use of masked autoencoders as a replacement for traditional IN1K supervised transfer learning in the identification of 43 grapevine varieties using field-acquired leaf images.<ref:2506.13335#pg26>.

The evaluation demonstrated that models benefit from long pre-training (between 2000 and 2500 epochs), and models pre-trained on datasets that align closely with downstream tasks perform better when trained in low-data regimes. p. 1

Where the paper says it

7956, outperforming all other models, including those pre-trained on IN1K. Additionally, we observed that pre-trained models benefit from long pre-training, perform well under low-data training regime, and that simple data augmentation methods are more effective than complex ones.

<ref:2506.13335#pg18>.

The results also show that varying the mask ratio slightly affects the final classification performance.<ref:2506.13335#pg19>.

The study concludes by stating that for identifying grapevine varieties through images, the representations obtained with MAE, using a smaller dataset closely aligned with grapevine-related tasks, are more effective than those achieved through IN1K knowledge transfer. p. 1

Where the paper says it

The best performance was achieved by the handcrafted model with an overall accuracy of 97. Moreover, the results obtained indicate that identifying grapevine varieties using fruit images led to slightly better results than classifying them using leaf images.

<ref:2506.13335#pg20, The results show that for identifying grapevine varieties through images, the representations obtained with MAE, using a smaller dataset closely aligned with grapevine-related tasks, are more effective than those achieved through IN1K knowledge transfer #pg20>. p. 1
Where the paper says it

The best performance was achieved by the handcrafted model with an overall accuracy of 97. Moreover, the results obtained indicate that identifying grapevine varieties using fruit images led to slightly better results than classifying them using leaf images.

Acknowledgements

The authors would like to acknowledge the Portuguese Foundation for Science and Technology (FCT) for financial support through national funds to the projects UIDB/04033/2020 (https://doi.org/10.54499/UIDB/04033/2020) (accessed on 1 December 2024) as well as through Gabriel Carneiro’s doctoral scholarship (PRT/BD/154883/2023), and also the Vine & Wine Portugal Project, co-financed by the RRP—Recovery and Resilience Plan and the European NextGeneration EU Funds, within the scope of the Mobilizing Agendas for Reindustrialization, under ref. C644866286-00000011.<ref:2506.13335#pg27>.

Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.

Improvements for AI systems

  1. Masked Autoencoders (MAEs) can be used as a self-supervised pre-training strategy to learn representations directly from unlabeled data, which is effective for tasks like grapevine variety classification where labeled data are limited. This allows models to learn directly from data, without external labels.

  2. The AI system can achieve superior performance in fine-grained classification tasks by utilizing MAE pre-training on domain-specific unlabeled datasets (Dataset 3+), as the results show MAE pre-trained models on Dataset 3+ reached an F1 Score of 0.7956, outperforming all other models.

  3. The system can be made robust to seasonal variations by incorporating diverse temporal data during fine-tuning; specifically, merging Datasets 1 and 2 resulted in improved generalization across both test subsets when testing on seasonal data (Dataset 2).

  4. The classification model can be optimized for low-data regimes by leveraging the features learned during pre-training; models pretrained on Dataset 3+ consistently outperformed all other models across all proportions of data, indicating high label efficiency.

  5. The system can be tuned to use simpler data augmentation techniques, as experiments showed that simple data augmentation methods are more effective than complex ones and that stronger augmentations led to worse results compared to random cropping.

Abstract

The identification of grapevine varieties from field images is a challenge, due to the subjectivity of ampelography, the cost of molecular analysis and the limited generalisation of deep learning models trained with transfer learning from natural-image datasets. This study evaluates Masked Autoencoders (MAE) as a self-supervised alternative that learns domain-specific representations directly from unlabelled vineyard images. A public benchmark of 43 grapevine varieties acquired in the field over five growing seasons is presented, divided into a multi-year set (Dataset 1) and a separate 2024 set (Dataset 2). On Dataset 1, a ViT-B/16 pre-trained with MAE on 54,571 unlabelled grapevine images reached a macro F1 score of 0.7776, against 0.7494 for the same architecture initialised from the public MAE ImageNet-1K (IN1K) checkpoint with the same fine-tuning, and 0.6817 for the best supervised IN1K baseline. Domain-specific pre-training benefited from long training and random cropping, outperformed IN1K initialisation for all fractions of labelled data and was only slightly affected by the mask ratio. However, the generalisation to a new season remained the main limitation, since the models trained on Dataset 1 reached F1 scores between 0.4120 and 0.4747 on the 2024 images, regardless of the initialisation, with the worst results in the early phenological stages. A feature-space analysis showed that each acquisition season is distinct, including the seasons used for training, and that the 2024 images of the early phenological stages are the most distant from the training data. When the 2024 images were added to the training data, the F1 score on Dataset 1 increased to 0.7956. Therefore, domain-specific MAE pre-training is a competitive and label-efficient initialisation, but it does not replace labelled data from several seasons.

Sources

Related papers