Manuscript Offprint
arXiv:2610.35984Enhancing Deep Learning Model Performance through Data Generation Strategies: Classification of Olive Tree Diseases
Abstract
Deep learning models are highly effective in a wide range of domains, particularly in plant disease diagnosis. However, their performance is often limited by challenges such as insufficient data and class imbalance. In our work, we propose a comprehensive data generation strategy to overcome these limitations. First, we apply various data generation techniques, including traditional augmentation methods, CutMix, MixUp, and synthetic image generation using Deep Convolutional Generative Adversarial Networks (DCGANs), to create new data samples. Second, we exploit this generated data in three scenarios: (S1) balancing class distribution in the original dataset, (S2) increasing the number of samples per class, and (S3) expanding the dataset while maintaining balanced classes. Third, we evaluate the impact of these data distributions (S1, S2, S3) on model performance using the EfficientNetV2B0 architecture with pre-trained and fine-tuned weights. The experimental results show a substantial improvement in classification accuracy, emphasizing the critical role of data diversity and class balance. These findings highlight the effectiveness and adaptability of the proposed strategy of data generation and distribution for enhancing dataset quality, offering promising applications in plant disease detection and precision agriculture.
Keywords: Data Insufficiency, Data Imbalance, Data Generation, Deep Learning, Classification
1 Introduction
Plant diseases are a serious challenge to agricultural production, leading to significant crop losses and threatening global food security . Traditional detection techniques, which mostly rely on visual inspection and manual evaluation, are frequently laborious, subjective, and prone to human error. These issues are made worse in places where it is hard to reach agricultural specialists, as a delayed diagnosis can lead to a large decrease in productivity.
In the field of agriculture, artificial intelligence (AI) has emerged as a revolutionary technology, particularly in the areas of plant disease detection and surveillance. AI enables the early and precise identification of these diseases by leveraging extensive data, including sensor and image information [2, 3]. Because it can automatically learn layered characteristics from raw data, deep learning, a subfield of artificial intelligence, plays a crucial role in this situation by reducing the need for intricate preprocessing or manually created features. Using supervised and unsupervised learning techniques, advanced analysis models have been effectively used for tasks like finding sick areas, classifying plant diseases, and determining their severity [4]. These models have proved highly effective in detecting disease in a wide range of crops, including apple [5, 6], citrus [7, 8], grapevine [9], olive [10–13], and tomato [14–16].
Despite these achievements, the lack of diverse and well-balanced datasets remains a significant challenge. The effectiveness of models can be negatively impacted by overfitting and limited generalization, which may arise from an imbalanced or biased data distribution. However, techniques such as federated learning (FL), which combine decentralized data from multiple sources, seek to address this issue . This research adopts a different approach, focusing on the generation of new data.
In this study, we generate enriched training data using a centralized single-server infrastructure. Our approach incorporates traditional data generation methods. [19], as well as more advanced strategies such as CutMix [20], Mixup [21], and deep convolutional generative adversarial networks (DCGANs) [22, 23]. These methods aim to improve the performance of convolutional neural networks (CNNs) in classifying olive tree diseases.
The main goal of this research is to create a solid framework for data generation that will improve datasets used to categorize diseases of olive trees. We focus on three specific scenarios: (S1) balancing the classes in the original dataset, (S2) increasing the number of samples per class, and (S3) expanding the dataset for all classes while maintaining a balanced class distribution.
Through a generative diversity strategy addressing the limitation of having small datasets, the proposed model endeavors to enhance the precision and usability of models in diagnosing plant disease. Unlike previous research that largely relies on primitive augmentation techniques, this paper presents a sophisticated pipeline that integrates traditional transformations with generative models, whose capacity can greatly improve the robustness of the models and facilitate their utilization in various applications of agriculture, especially in sparse data scenarios. This is especially significant in low-access-data situations.
The subsequent sections provide a detailed discussion in section 5, present the results in section 4, outline the experimental methodology in section 3, and review the relevant literature in section 2. section 6, the study's conclusion, offers possible avenues for further investigation.
2.1 Data Generation and Augmentation Strategies
This section examines recent developments in data creation and augmentation techniques intended to tackle issues like class imbalance and data scarcity in image-based classification problems. Their use in plant disease detection is highlighted in particular, since these methods have been crucial in enhancing models' resilience, generality, and accuracy.
To improve plant disease classification, [24] suggested TLMViT, a hybrid model that combines Vision Transformers (ViT) and transfer learning. By incorporating efficient data augmentation techniques, their model successfully mitigated overfitting and achieved 99.86% accuracy on a wheat disease dataset.
[25] used data augmentation, L2 regularization, and transfer learning to address class imbalance in potato disease datasets. Their final result was 81.31%, with a 4.17% increase in classification accuracy using DenseNet201.
[26] investigated domain generalization using a framework for zero-shot transfer learning. Even in cases where domain classes did not coincide, their approach showed strong generalization capabilities by fusing data augmentation with synthetic data synthesis.
[27] created artificial images of both healthy and ill leaves using conditional GANs. An attention-augmented ResNet combined with Faster R-CNN was trained using these, yielding a classification accuracy of 98.78%.
[28] added attention mechanisms to a ConvNeXt-based architecture by integrating random masking into their data augmentation pipeline. Using this method, the average accuracy on a soybean disease classification task was 85.42%.
[29] created DTLDN-CBIRA, a content-based image retrieval system based on DenseNet. With 81.90% recall and an F1-score of 89.90%, their model reached 100% accuracy by augmenting limited training data with rotation and mirroring.
[30] presented a framework for composite augmentation that combines FMix, MixUp, Cutout, and CutMix. When used to classify rice leaf diseases, the method produced accuracy rates of 99.75% with MobileNetV3 and 91.51% with ResNet34.
[31] CNN and ViT modules were integrated to improve the FasterViT architecture. Their method, which combined MixUp, Cutout, Triplet Attention, and Adaptive Average Pooling, showed better results on PlantVillage and small-scale datasets.
A summary of these approaches is presented in Table 1, which highlights the main data generation and augmentation strategies for classification tasks.
2.2 Review of Olive Disease Classification Techniques
Deep learning has revolutionized artificial intelligence, offering powerful solutions for accurately and rapidly classifying plant diseases, including those affecting olive
Table 1 Summary of Related Work on Data Generation and Augmentation Strategies for Classification
| Study | Methodology | Dataset | Performance |
|---|---|---|---|
| [24] | Hybrid model (TLMViT) with transfer learning | Wheat disease dataset | 99.86% accuracy |
| [25] | Data augmentation, L2 regularization, transfer learning | Potato disease dataset | 81.31% accuracy |
| [26] | Zero-shot transfer learning | Tomato | - |
| [27] | Conditional GANs | multiple plant | 98.78% accuracy |
| [28] | ConvNeXt with attention and random masking | Soybean leaf disease dataset | 85.42% accuracy |
| [29] | DenseNet-based CBIR (DTLDN-CBIRA) | multiple plant | 100% accuracy, 81.90% recall, 89.90% F1-score |
| [30] | Mixed augmentation (Cutout, CutMix, MixUp, FMix) | Rice leaf disease dataset | 91.51% (ResNet34), 99.75% (MobileNetV3) |
| [31] | Enhanced FasterViT (CNN + ViT) | citrus | - |
trees. This section presents a detailed overview of recent advances in olive disease classification.
[32] created a deep learning framework that uses computer vision to identify OQDS, with a true positive rate of .
[33] carried out tests comparing models with and without data augmentation using hand-gathered photos of olive leaves. The accuracy of augmentation-trained models was 95%.
[11] used a deep learning pipeline with a genetic algorithm for best results. The accuracy of their model was 98% in binary classification and 96% in multi-class tasks.
[34] suggested a hybrid architecture that combines CNNs and Vision Transformers, achieving 97% accuracy for binary classification and roughly 96% for multi-class issues.
[35] presented MobiRes-Net, a ResNet50/MobileNet hybrid that was trained using 5,400 photos obtained by UAVs. The accuracy of the model was 97.08%.
[36] created an enhanced ANN for feature selection and classification by utilizing the Whale Optimization Algorithm (WOA). All evaluation parameters, including F1-score, precision, recall, and accuracy, showed gains with this approach.
[37] offered a five-step methodology that includes deep learning classification, feature extraction, clustering, and picture enhancement. Their model achieved 98% accuracy with more than 3,200 photos, surpassing both VGG16 (96%) and AlexNet (95%).
[38] suggested a technique that combines pre-trained networks with wavelet transforms to obtain highly discriminative features for precise illness identification.
[39] presented a two-model ensemble technique utilizing EfficientNet-b0. The classification of olive diseases was made more accurate and resilient by this adaptive method.
A summary of these approaches is provided in Table 2. While the reported models demonstrate high performance, they also highlight persistent challenges such as overfitting, limited dataset diversity, and computational constraints.
Table 2 Summary of Studies on Olive Disease Classification
| Study | Methods | Dataset | Accuracy | Data Generation Type |
|---|---|---|---|---|
| [32] | Computer vision-based deep learning | Olive leaf (1 disease + healthy) | 98.60 ± 1.47% | None |
| [33] | Deep learning (with augmentation) | Olive leaf (2 diseases + healthy) | 95% | Traditional Augmentation |
| [11] | Deep learning + genetic algorithm | Olive leaf (2 diseases + healthy) | 96% (multi-class), 98% (binary) | Traditional Augmentation |
| [34] | CNN + Vision Transformer | Olive leaf (2 diseases + healthy) | 97% (binary), 96% (multi-class) | Traditional Augmentation |
| [35] | MobiRes-Net (ResNet50 + MobileNet) | UAV-acquired images (5,400 samples) | 97.08% | Traditional Augmentation |
| [36] | Optimized ANN + WOA | Olive leaf (2 diseases + healthy) | 98% | Traditional Augmentation |
| [37] | Image enhancement + DNN | 3,200 images (2 diseases + healthy) | 98% | Traditional Augmentation |
| [38] | Wavelet transform + pre-trained DL models | Olive leaf (2 diseases + healthy) | 98% | Traditional Augmentation |
| [39] | Ensemble of EfficientNet-b0 models | Olive leaf (2 diseases + healthy) | 98% | Traditional Augmentation |
| Proposed Work | Traditional and advanced data generation (CutMix, MixUp, DCGAN) across 3 distribution scenarios (S1, S2, S3) | Olive leaf (6 diseases + healthy) dataset (6170 images) | 93.48% | Traditional and (Cut-Mix, MixUp, DCGAN) |
As shown in Table 2, the majority of previous studies rely on classical data generation techniques, or even no explicit generation at all. These approaches often achieve high accuracy, but on relatively homogeneous datasets. However, differences in accuracy can also be attributed to the diversity of data used in different studies. For example, some studies used smaller or specific datasets, while others worked with larger and more diverse data. The proposed work combines traditional and advanced data generation methods-such as CutMix, MixUp, and DCGAN-to simulate more varied distribution scenarios. Although the accuracy obtained (93.48%) is slightly lower than that of some conventional methods, this compromise allows greater robustness and generalizability in the face of real data variations. The difference in accuracy reflects not only the choice of data generation techniques but also the inherent differences in the datasets used, which probably led to distinct model behavior and performance.
2.3 Research Gap Analysis and Contributions
Despite the promising advances discussed, most existing studies either focus on a single augmentation strategy or fail to explore the impact of data distribution scenarios on classification performance. Additionally, few works systematically integrate both classical and generative generation techniques while evaluating their effects across multiple imbalance contexts. To bridge this gap, the proposed work introduces a robust and comprehensive data generation strategy combining traditional augmentation, CutMix, MixUp, and DCGAN, evaluated under three distinct distribution scenarios (S1, S2, S3) for olive disease classification. This approach aims to enhance both the generalization and the robustness of deep learning models under challenging real-world constraints.
2.4 Research Contributions
This study suggests a data generation technique to enhance the classification of diseases affecting olive trees. The following is a summary of this work's primary contributions:
-
Hybrid Data Generation Framework: We introduce a hybrid strategy that combines traditional augmentation techniques with MixUp, CutMix, and DCGAN. This method improves classification performance, especially for underrepresented classes, by increasing the dataset's diversity and representativeness.
-
Mitigating Class Imbalance: The proposed framework explicitly addresses the issue of class imbalance by generating additional samples for minority classes and adjusting the overall data distribution. This results in a more balanced training dataset, reduces model bias, and improves overall accuracy.
-
Dataset Expansion Strategy: Beyond combining traditional augmentations, CutMix, MixUp, and DCGANs, we evaluate the framework under three distinct distribution scenarios (S1, S2, S3) for olive disease classification. This strategy enhances the model's generalizability and reduces the risk of overfitting, especially in data-scarce contexts.
-
Comprehensive Performance Evaluation: We carefully investigate the proposed data generation techniques to ascertain their impact on the classification accuracy model and robustness in identifying olive tree diseases.
2.5 Problem Description
The impact of data generation methods on the categorization of diseases affecting olive trees is investigated in this study. We combine traditional techniques (such as geometric and color transformations) with cutting-edge strategies like Mixup, CutMix, and DCGAN to address problems of data scarcity and class imbalance. Improving model generalization and accuracy, particularly for underrepresented classes, is the goal.
Key challenges include:
• Class Imbalance: Certain disease classes are under-sampled, leading to biased models.
• Overfitting: Too much or unwarranted augmentation can add artefacts, heightening the danger of overlearning.
• Selecting Effective Augmentation: To enhance performance without sacrificing robustness, one needs to choose the right methods for a specific dataset and task.
This study compares and evaluates different augmentation techniques to improve generalisation and avoid over-fitting in a bid to improve plant disease detection models in low-data scenarios.
3 Solution Approach
The primary phases of the proposed methodology, data preparation, model development, and performance evaluation, are explained in this section. Two subsets of the data were initially prepared: Dataset A for training and Dataset B for evaluating generalization as a new test set. To obtain a more balanced and diverse training dataset, certain data generation techniques, such as synthesis by DCGAN, MixUp, CutMix, and traditional transformations, were carried out on Dataset A. Subsequently, to ensure an equal comparison across the different experimental conditions (S1, S2, S3), the original and generated samples were split into training and validation sets. These datasets were used for training and fine-tuning a deep learning architecture, i.e., EfficientNetV2B0, to develop the model. Finally, the performance of the model was assessed on Dataset B, which was untouched during training, to get an unbiased estimation of each scenario's performance in olive disease classification. The entire simulation workflow is shown in Figure 1.
3.1 Data Pereparation
3.1.1 Data Collection
In this study, images of olive leaves were collected from several sources, including datasets from previous research. Photographs taken on Moroccan olive farms between 2020 and 2024 are included in , , , and . A single olive leaf, represented by each image, can be categorized as either healthy or afflicted by one of the following disorders. The entire dataset statistics are summarized in Table 3, and representative photos from each category are shown in Figure 2.
Table 3 Image count per class in the dataset
| Plant | Class | DataSet A | DataSet B (Test) |
|---|---|---|---|
| Olive | Healthy | 1292 | 471 |
| Aculus Olearius | 712 | 384 | |
| Olive Peacock Spot | 1716 | 703 | |
| Olive Leaf Scorch | 68 | 43 | |
| Sooty mold | 205 | 56 | |
| Deficiency | 206 | 56 | |
| Virosis | 206 | 52 |
https://github.com/DrAlbertCruz/OQDS-GY-Dataset
https://github.com/ichaparroc/OliveLeafDiseaseDatasetTacna
https://www.kaggle.com/datasets/serhathoca/zeytin

Fig. 1 The proposed block work.
3.2 Data Generation
Data generation techniques are becoming more and more important in modern deep learning applications, both to improve model generalization on heterogeneous and imbalanced datasets and to avoid overfitting. This work uses a variety of data creation techniques, including as classical augmentation, CutMix, MixUp, DCGAN, and a thorough mix of these approaches, to improve the performance of the olive illness classification model.
Traditional Augmentation: Several standard data augmentation methods, such as rotation, flipping vertically and horizontally, and zooming, were used to enlarge dataset A. The training data became more varied and variable as a result of this procedure, which produced a dataset that was around four times larger than the original.
CutMix: CutMix [40] is a regularization method that creates fresh training samples by merging the labels of various images proportionately and clipping and pasting

Fig. 2 Example images depicting various categories of diseases affecting olive leaves.
patches between them. After pasting a patch from onto given two input pictures and , the new image and label are defined as follows:
(Eq. 1)
(1)
(Eq. 2)
(2)
where M is a binary mask indicating the patched region, denotes element-wise multiplication, and is sampled from a Beta distribution.
MixUp: [41] generates new training samples by linearly interpolating two random images and , and their labels and , using a mixing parameter :
(Eq. 3)
(3)
(Eq. 4)
(4)
This method encourages the model to behave linearly in-between training examples, enhancing generalization and reducing overfitting.
DCGAN: In this study, we utilized Deep Convolutional Generative Adversarial Networks (DCGANs) [42] to generate synthetic images of olive diseases. A DCGAN consists of a generator G and a discriminator D trained in a minimax game:
(Eq. 5)
(5)
where z is a random noise vector. Through iterative training, G learns to generate realistic images, while D learns to distinguish real from fake samples.
Frechet Inception Distance (FID): To measure the quality of generated images, we used the FID metric [43] which computes the distance between the feature distributions of real and synthetic data:
(Eq. 6)
(6)
where and are the mean and covariance of features extracted from real and generated images using an Inception network.
In summary, all of these approaches were employed to generate new data samples, which were subsequently distributed over the originally collected dataset to improve class balance and enhance the model's performance.
3.3 Data Distribution
After collecting olive leaf disease samples and expanding the dataset using data augmentation techniques, we designed a clear and structured strategy to distribute the data. We defined three main experimental setups, each with a different way of organizing the data. For each setup, we created a specific distribution plan to better understand how different data arrangements influence the model's performance.
-
S1: Balancing class distributions in the original dataset: In this case, new data was used to balance the number of samples between classes in the original dataset. This process was unavoidable for reducing model bias against majority classes and enhancing classification fairness.
-
S2: Increasing the sample size of each class: In this case, the intention was to enhance the dataset by adding more samples per class using the created data. Enhancing the learning and generalization of the model was the intention of this improvement.
-
S3: Balancing class distributions while expanding the dataset size: In this instance, class balancing goals and dataset expansion goals were combined. Not only did it increase the overall amount of data, but also gave a balanced view of all classes, which is essential in order to get the highest possible accuracy and potency of the model.
3.4 Model design
This study uses leaf imagery to identify diseases in olive trees using the pre-trained EfficientNetV2B0 model. Acknowledged for its effectiveness and precision in object recognition tasks, this architecture gains from previous training on large datasets like ImageNet and ImageNet21k [44]. We modified the model to fit our classification task by substituting a custom classifier consisting of four fully connected layers, each followed by a Dropout layer, and ending with a softmax activation (see Figure 3). Although several deep learning models were tested during the experiment, EfficientNetV2B0 continuously produced better results. Existing research demonstrates that its selection was justified by its balance of high predictive performance, fast convergence, and computational efficiency.
3.5 Performance Evaluation
Several evaluation metrics were used in this study to measure the performance of the olive disease classification model. The indicators used include accuracy, F1 score,

Fig. 3 The architecture proposed for the classification.
precision, recall, Matthews Correlation Coefficient (MCC), and geometric mean (G-mean) [45, 46]. For a more thorough examination, the Non-Parametric Scott-Knott ESD (NPSK) test [47, 48] was also used. The main metric was accuracy, which was validated using 5-fold cross-validation (k = 5). The Scott-Knott ESD test uses hierarchical clustering to group methods and determine the best distribution strategy. It is implemented using the ScottKnottESD package in R.
3.6 Computational Resources and Time Requirements
The experimental configuration used to implement our proposed method and evaluate its computational cost is presented in Table 4.
• Operating System: Windows 10
• Software: TensorFlow, configured to run on the above operating system
• RAM: 46 GB
• GPU: NVIDIA GeForce RTX 2060 with 12 GB of dedicated RAM
• CPU: Intel(R) Xeon(R) E5-2630 v3, 2.40 GHz
Table 4 Computational Costs Associated with the Proposed Methodology
| Process | Approximate Duration |
|---|---|
| Data Generation using DCGAN (Generated Data) | 3 months |
| Traditional Data Augmentation (e.g., Flip, Rotation) | 1 hour |
| Data generation using MixUp and CutMix | 1 hour |
| Selection of High-Quality (Generated Data) using Frechet Inception Distance (FID) | 2 months |
| Training of Classification Models (Efficient-NetV2B0) | 30 minutes per experiment (see Table 5) |
4 Results Analysis
Table 5 presents the classification accuracy obtained with different data generation techniques in three experimental scenarios (S1, S2, S3), compared to a baseline model without augmentation (accuracy = 90.99%).
S1: Balanced classes
In this scenario, all the methods outperformed the baseline. The most significant improvement was seen with the full combination of augmentations (Traditional + MixUp + CutMix + DCGAN), achieving an accuracy of 93.09%, an improvement of +2.10 points on the baseline. CutMix alone also improved significantly by +0.91 points, followed by DCGAN (+1.25) and MixUp (+0.51). This shows that data augmentation is particularly beneficial in balanced contexts.
S2: Increased class volume (imbalanced)
The results were more mixed. Only the MixUp method significantly improved performance with +0.74 points. The full combination of augmentations maintains a slight improvement (+0.34), while the traditional (-0.23) and CutMix (-0.28) methods underperform. This indicates that certain augmentations can accentuate the imbalance, whereas MixUp, with its linear interpolation, favours better regularisation.
S3: Balanced classes + increased volume
In this mixed scenario, CutMix is the best performing method with +1.30 points, demonstrating its effectiveness with larger datasets. DCGAN and MixUp show moderate gains (+0.40 and +0.11, respectively), while the full combination brings no net gain (+0.00), suggesting saturation or redundancy of effects.
Table 5 Test accuracy on the olive disease dataset using various data generation techniques.
| No Aug. | Traditional Aug. | MixUp | CutMix | DCGAN | All Comb. | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Acc. | Acc. | Diff. | Acc. | Diff. | Acc. | Diff. | Acc. | Diff. | Acc. | Diff. | |
| S1 | - | 91.56 | +0.57 | 91.50 | +0.51 | 91.90 | +0.91 | 92.24 | +1.25 | 93.09 | +2.10 |
| S2 | - | 90.76 | -0.23 | 91.73 | +0.74 | 90.71 | -0.28 | 91.33 | +0.34 | 93.48 | +2.49 |
| S3 | - | 90.76 | -0.23 | 91.10 | +0.11 | 92.29 | +1.30 | 91.39 | +0.40 | 90.93 | -0.06 |
| Baseline | 90.99 | - | - | - | - | - | - | - | - | - | - |
S1: Balanced classes
S2: Increased class volume (imbalanced)
S3: Balanced classes + increased volume
Table 6 presents the evaluation scores (Accuracy, Recall, F1-score, G-mean, and MCC) obtained on the olive disease dataset for different scenarios (S1, S2, S3) and generation methods.
In scenario S1 (balanced classes), the best overall performance is observed with the combined approach (all augmentations), which achieves an F1-score of 91.89%, a G-mean of 90.37% and an MCC of 90.15%, outperforming the baseline (F1-score = 89.63%). Using DCGAN alone also shows a significant improvement with an F1-score of , suggesting better generalisation through the generation of new synthetic images.
In scenario S2 (volume increase without balancing), the results are even more significant. The combined approach obtains the highest scores on almost all indicators, reaching for accuracy, for F1-score and for G-mean, indicating that the joint increase in data and its diversity are particularly beneficial in cases of class imbalance. Data generation with DCGAN alone also performed very well (F1-score ), demonstrating the ability of this generator to fill gaps in underrepresented classes.
For scenario S3 (balanced classes with more volume), the trend is more nuanced. Although CutMix provides the best results in terms of F1-score (92.28%) and MCC (89.48%), the combined approach does not always outperform the isolated methods. This could indicate redundancy or a saturation effect when several techniques are used simultaneously on a game that is already sufficiently rich and balanced. In summary, the results highlight that generation techniques, particularly DCGAN and advanced combinations (MixUp, CutMix), significantly improve the model's robustness, particularly in scenarios of imbalance or low data volume.
Table 6 Evaluation scores on the test dataset (%).
| Data Generation | Precision | Recall | F1-Score | G-mean | MCC | |
|---|---|---|---|---|---|---|
| Baseline | None | 92.14 | 88.04 | 89.63 | 87.66 | 87.53 |
| S1 | Traditional Aug. | 92.38 | 88.67 | 89.89 | 87.99 | 88.35 |
| Mixup | 92.05 | 91.50 | 91.48 | 89.19 | 88.46 | |
| Cutmix | 92.17 | 91.90 | 91.91 | 89.25 | 88.77 | |
| DCGAN | 93,66 | 93,09 | 93,14 | 90,55 | 90,55 | |
| All Combination | 93.89 | 90.70 | 91.89 | 90.37 | 90.15 | |
| S2 | Traditional Aug. | 90.92 | 90.76 | 90.79 | 89.06 | 87.12 |
| Mixup | 91.88 | 91.73 | 91.71 | 89.23 | 88.52 | |
| Cutmix | 91.38 | 90.71 | 90.66 | 88.28 | 87.44 | |
| DCGAN | 94.00 | 93.48 | 93.35 | 90.58 | 91.12 | |
| All Combination | 95.99 | 91.48 | 93.32 | 91.04 | 90.89 | |
| S3 | Traditional Aug. | 91.04 | 90.76 | 90.76 | 88.03 | 87.20 |
| Mixup | 91.40 | 91.10 | 91.11 | 87.66 | 87.64 | |
| Cutmix | 92.84 | 92.29 | 92.28 | 88.63 | 89.48 | |
| DCGAN | 91.39 | 91.39 | 91.43 | 88.61 | 88.61 | |
| All Combination | 91.21 | 90.93 | 90.94 | 88.14 | 87.39 |
Figure 4 presents the results of a cross-validation procedure applied to evaluate the ranking of the training data sets used in this study. The figure visualizes the comparative performance of the different training datasets through a ranking system, highlighting the models' responses when trained on these datasets. This ranking helps identify which dataset configurations have the most significant impact on model performance, providing valuable insights into data selection and distribution strategies.
Figure 5 illustrates another key aspect of model evaluation, focusing on the ranking of training data sets as assessed during the study. The figure compares the impact of various datasets on model performance, with each set ranked based on its efficacy

Distribution
Fig. 4 Cross-validation Results.
in improving the model's accuracy. By analyzing these rankings, the study aims to identify the most effective data subsets for optimizing model training.
5 Discussion
The experimental results obtained using different scenarios and data generation techniques reveal several key insights into improving the performance of classification models, particularly in the context of olive disease detection. Initially, traditional augmentation methods such as rotation and inversion offer a modest yet consistent enhancement over baseline performance, highlighting their value in typical scenarios. Nevertheless, their standalone effectiveness is constrained, especially in cases involving class imbalance or substantial inter-class resemblance. These techniques introduce only limited variation to the original dataset, contributing minimal new information to the model, which accounts for the relatively minor performance gains observed.
The integration of advanced augmentation methods, such as MixUp and CutMix, shows more competitive results, particularly in scenarios where the classes are balanced (S1) or enriched (S3). These techniques, based on the creation of interpolated or hybrid images, facilitate the learning of stronger and more generalizable representations by the model, which translates into better generalization over the test set.

A: BaseLine | B: S1 (Traditional Aug) | C: S2 (Traditional Aug) | D: S3 (Traditional Aug) | E: S1 (Mixup) | F: S2 (Mixup) | G: S3 (Mixup) H: S1 (Cutmix)
I: S2 (Cutmix) | J: S3 (Cutmix) | K: S1 (DCGAN) | L: S2 (DCGAN) | M: S3 (DCGAN) | N: S1 (All Comb) | O: S2 (All Comb) | P: S3 (All Comb)
Fig. 5 Ranking of Training Data Distributions Utilized in this Study for Model Training.
However, these methods have certain limitations: in some cases, they can introduce artificial samples that are not very informative for learning. Their effectiveness, therefore, depends heavily on the application scenario and their judicious use within a justified framework.
The generation of synthetic images using DCGAN has proved remarkably effective, particularly in scenarios involving imbalance (S2). By enriching the minority classes with realistic artificial samples, DCGAN reduces the impact of the bias induced by the initial distribution of the data. This ability is particularly highlighted by the high F1-score and MCC in S2, where the synthetic data compensates for the lack of diversity. The use of DCGAN has a positive influence on the performance of the classification model, as it makes it possible to generate diverse samples from the original data. However, this approach also raises ethical constraints linked to the quality and validity of the data generated. This is why, in this study, we used the Fréchet distance to select only high-quality samples, so as not to disrupt the model learning process.
The combined approach, combining all the techniques (Traditional, MixUp, CutMix, DCGAN), generally gives the best overall performance, particularly in scenarios S1 and S2. This confirms that diversification of augmentation strategies can act in a complementary way, increasing the quantity, variability, and representativeness of the training data.
However, in scenario S3 (data already balanced and voluminous), the effect of certain combinations seems to diminish. This phenomenon can be explained by model saturation, where the excessive addition of modified or synthetic samples no longer provides useful information and may even introduce noise. In summary, this study underscores the significance of tailoring data generation strategies to the unique attributes of a given dataset. The thoughtful application of advanced techniques, especially DCGAN and well-planned combinations, proves to be a crucial factor in enhancing computer vision performance, both in agricultural contexts and broader domains.
5.1 Sensitivity Analysis
A sensitivity analysis was carried out by comparing the relative impact of each method of increase on the different scenarios:
S1 (balanced classes): All augmentation methods showed significant gains, with a more marked sensitivity for CutMix (+0.91) and DCGAN (+1.25), indicating their relevance even on well-structured datasets.
S2 (augmented volume): The performance of traditional augmentations and CutMix is less sensitive or even negatively impacted (e.g., CutMix at -0.28), while MixUp and DCGAN remain robust, with a positive of +0.74 and +0.34, respectively. This shows that the robustness of the techniques strongly depends on the initial imbalance of the data.
S3 (balanced + voluminous): The gains are more moderate, even zero for some combinations. This suggests performance saturation, as the model has already been exposed to sufficient diversity. However, CutMix retains an advantage (+1.30), indicating that it can still enrich the representations, even in well-fed cases.
In summary, the sensitivity of performance to augmentation methods depends closely on the characteristics of the dataset: volume, balance, and intra-class diversity. DCGAN and CutMix stand out as the most efficient and stable, while classical methods are to be preferred in simple cases or for low-variance tasks.
5.2 Ethical Considerations in Data Generation Techniques
Use of advanced generation methods like DCGAN, MixUp, and CutMix is of serious ethical concern, especially in sensitive areas like agricultural disease detection.
To guarantee ethical integrity and minimize any potential biases stemming from our approach to generating data, the following actions were taken:
• Ethical Practices: We promote ethical handling of data during the process of generating and collecting the data. We are committed to preventing artificial bias or unfair results, especially by systematically visualizing the generated data to ensure that the resulting samples are unbiased and of high quality.
• Bias Mitigation Strategies: To reduce potential model bias, we carefully select data sources and actively monitor class distributions for imbalances. This ensures that the generated data supports real samples in a representative and balanced manner.
• Transparency and Fairness: Transparency in the generation and selection of synthetic data is a key objective. For images generated by DCGAN, we employ the Fréchet Inception Distance (FID) to evaluate and retain the highest-quality samples.
By integrating these ethical considerations into our solution, we aim to foster fair, transparent, and replicable AI practices in precision agriculture.
6 Conclusions, limitations, and future research
6.1 Findings
This paper introduces a new method for olive tree disease classification by combining traditional data augmentation methods with state-of-the-art approaches such as MixUp, CutMix, and Deep Convolutional Generative Adversarial Networks (DCGAN). Experiments on a multi-class dataset with seven classes, namely disease-free olive leaves and other disease states, indicate that the proposed data generation strategy in this paper significantly enhances model accuracy and robustness.
The results confirm that data generation plays a crucial role in improving classification performance, particularly when used in well-defined scenarios rather than applied randomly. The proposed approach achieved a performance improvement of 2.48% compared to the baseline (no augmentation).
6.2 Future Research
Future research could explore the following avenues to build upon and extend the findings of this study:
• Exploration of Additional Generation Techniques: To better address issues with intra-class variability and inter-class similarity, future research should look at more sophisticated data generation methods.
• Real-World Deployment and Validation: Applying the proposed method in real agricultural settings would allow for the evaluation of its practical viability, robustness, and adaptability under real-world conditions.
6.3 Limitations of Research
Despite its promising results, this study has a few limitations:
• Data Dependency: The quality and balance of the dataset have an impact on the model’s performance. The effectiveness of the model’s generalization may be hampered by incomplete or skewed data.
• Computational Cost: Techniques like DCGAN require significant resources, which can limit scalability.
• Parameter Sensitivity: The approach is sensitive to the volume of generated data and key model hyperparameters, requiring careful tuning for optimal results.
References
[1] Caparas, M., Zobel, Z., Castanho, A.D.A., Schwalm, C.R.: Increasing risks of crop failure and water scarcity in global breadbaskets by 2030. Environmental Research Letters 16(10), 104013 (2021). https://doi.org/10.1088/1748-9326/ac22c1
[2] Liu, S.Y.: Artificial intelligence (ai) in agriculture. IT Professional 22(3), 14–15 (2020). https://doi.org/10.1109/MITP.2020.2986121
[3] Attri, I., Awasthi, L.K., Sharma, T.P.: Machine learning in agriculture: a review of crop management applications. Multimedia Tools and Applications, 1–41 (2023). https://doi.org/10.1007/s11042-023-16105-2
[4] Hasan, R.I., Yusuf, S.M., Alzubaidi, L.: Review of the state of the art of deep learning for plant diseases: A broad analysis and discussion. Plants 9(10), 1302 (2020). https://doi.org/10.3390/plants9101302
[5] Li, J., Xie, S., Chen, Z., Liu, H., Kang, J., Fan, Z., Li, W.: A shallow convolutional neural network for apple classification. IEEE Access 8, 111683–111692 (2020). https://doi.org/10.1109/ACCESS.2020.3002882
[6] Liu, B., Zhang, Y., He, D., Li, Y.: Identification of apple leaf diseases based on deep convolutional neural networks. Symmetry 10(1) (2018). https://doi.org/10.3390/sym10010011
[7] Khattak, A., Asghar, M.U., Batool, U., Asghar, M.Z., Ullah, H., Al-Rakhami, M., Gumaei, A.: Automatic detection of citrus fruit and leaves diseases using deep neural network model. IEEE Access 9, 112942–112954 (2021). https://doi.org/10.1109/ACCESS.2021.3096895
[8] Çetiner, H.: Citrus disease detection and classification using based on convolution deep neural network. Microprocessors and Microsystems 95, 104687 (2022). https://doi.org/10.1016/j.micpro.2022.104687
[9] Diana Andrushia, A., Mary Neebha, T., Trephena Patricia, A., Umadevi, S., Anand, N., Varshney, A.: Image-based disease classification in grape leaves using convolutional capsule network. Soft Comput. 27(3), 1457–1470 (2022). https://doi.org/10.1007/s00500-022-07446-5
[10] Fazari, A., Pellicer-Valero, O.J., Gómez-Sanchis, J., Bernardi, B., Cubero, S., Benalia, S., Zimbalatti, G., Blasco, J.: Application of deep convolutional neural networks for the detection of anthracnose in olives using vis/nir hyperspectral images. Computers and Electronics in Agriculture 187, 106252 (2021). https://doi.org/10.1016/j.compag.2021.106252
[11] Alshammari, H., Gasmi, K., Krichen, M., Ammar, L.B., Abdelhadi, M.O., Boukrara, A., Mahmood, M.A.: Optimal deep learning model for olive disease diagnosis based on an adaptive genetic algorithm. Wireless Communications and Mobile Computing 2022 (2022). https://doi.org/10.1155/2022/8531213
[12] El Akhal, H., Ben Yahya, A., Moussa, N., El Belrhiti El Alaoui, A.: A novel approach for image-based olive leaf diseases classification using a deep hybrid model. Ecological Informatics 77, 102276 (2023). https://doi.org/10.1016/j.ecoinf.2023.102276
[13] El Akhal, H., Yahya, A.B., El Alaoui, A.E.B.: Positive discrimination of minority classes through data generation and distribution: A case study in olive disease classification. Engineering Applications of Artificial Intelligence 139, 109646 (2025)
[14] Anandhakrishnan, T., Jaisakthi, S.M.: Deep convolutional neural networks for image based tomato leaf disease detection. Sustainable Chemistry and Pharmacy 30, 100793 (2022) https://doi.org/10.1016/j.scp.2022.100793. https://doi.org/10.1016/j.scp.2022.100793
[15] Karthik, R., Hariharan, M., Anand, S., Mathikshara, P., Johnson, A., Menaka, R.: Attention embedded residual cnn for disease detection in tomato leaves. Applied Soft Computing 86, 105933 (2020). https://doi.org/10.1016/j.scp.2022.100793
[16] Kaur, P., Harnal, S., Gautam, V., Singh, M.P., Singh, S.P.: An approach for characterization of infected area in tomato leaf disease based on deep learning and object detection technique. Engineering Applications of Artificial Intelligence 115, 105210 (2022). https://doi.org/10.1016/j.engappai.2022.105210
[17] Li, L., Fan, Y., Tse, M., Lin, K.-Y.: A review of applications in federated learning. Computers & Industrial Engineering 149, 106854 (2020)
[18] Mamba Kabala, D., Hafiane, A., Bobelin, L., Canals, R.: Image-based crop disease detection with federated learning. Scientific Reports 13(1), 19220 (2023)
[19] Enkvetchakul, P., Surinta, O.: Effective data augmentation and training techniques for improving deep learning in plant leaf disease recognition. Applied Science and Engineering Progress 15(3), 3810–3810 (2022). https://doi.org/10.14416/j.asep.2021.01.003
[20] Pan, H., Guo, Y., Yu, M., Chen, J.: Enhanced long-tailed recognition with contrastive cutmix augmentation. IEEE Transactions on Image Processing 33(1), 1–12 (2024). https://doi.org/10.1109/TIP.2024.3425148
[21] Lewy, D., Mańdziuk, J.: An overview of mixing augmentation methods and augmentation strategies. Artificial Intelligence Review 56(3), 2111–2169 (2023)
[22] Deshpande, R., Patidar, H.: Tomato plant leaf disease detection using generative adversarial network and deep convolutional neural network. The Imaging Science Journal 70(1), 1–9 (2022)
[23] Chen, Y., Wu, Q.: Grape leaf disease identification with sparse data via generative adversarial networks and convolutional neural networks. Precision Agriculture 24(1), 235–253 (2023)
[24] Tabbakh, A., Barpanda, S.S.: A deep features extraction model based on the transfer learning model and vision transformer “tlmvit” for plant disease classification. IEEE Access 11, 45377–45392 (2023)
[25] Mhala, P., Bilandani, A., Sharma, S.: Enhancing crop productivity with fine-tuned deep convolution neural network for potato leaf disease detection. Expert Systems with Applications 267, 126066 (2025)
[26] Singh, R.S.R., Sanodiya, R.K.: Zero-shot transfer learning framework for plant leaf disease classification. IEEE Access 11, 143861–143880 (2023)
[27] Sathya, K., Balakrishnan, A., Baskaran, P., Kumar, R.A.: Enhancing plant disease detection using attention-augmented residual networks and faster region-convolutional networks. IEEE Access (2025)
[28] Wu, Q., Ma, X., Liu, H., Bi, C., Yu, H., Liang, M., Zhang, J., Li, Q., Tang, Y., Ye, G.: A classification method for soybean leaf diseases based on an improved convnext model. Scientific Reports 13(1), 19141 (2023)
[29] Karthikeyan, M., Raja, D.: Deep transfer learning enabled densenet model for content based image retrieval in agricultural plant disease images. Multimedia Tools and Applications 82(23), 36067–36090 (2023)
[30] Haikal, A.L.A., Yudistira, N., Ridok, A.: Comprehensive mixed-based data augmentation for detection of rice leaf disease in the wild. Crop Protection 184, 106816 (2024)
[31] Chen, J., Wang, S., Guo, J., Chen, F., Li, Y., Qiu, H.: Improved fastervit model for citrus disease diagnosis. Heliyon 10(16) (2024)
[32] Cruz, A.C., Luvisi, A., De Bellis, L., Ampatzidis, Y.: X-fido: An effective application for detecting olive quick decline syndrome with deep learning and data fusion. Frontiers in plant science 8, 1741 (2017). https://doi.org/10.3389/fpls.2017.01741
[33] Uğuz, S., Uysal, N.: Classification of olive leaf diseases using deep convolutional neural networks. Neural computing and applications 33(9), 4133–4149 (2021). https://doi.org/10.1007/s00521-020-05235-5
[34] Alshammari, H., Gasmi, K., Ben Ltaifa, I., Krichen, M., Ben Ammar, L., Mahmood, M.A.: Olive disease classification based on vision transformer and cnn models. Computational Intelligence and Neuroscience 2022 (2022). https://doi.org/10.1155/2022/3998193
[35] Ksibi, A., Ayadi, M., Soufiene, B.O., Jamjoom, M.M., Ullah, Z.: Mobires-net: A hybrid deep learning model for detecting and classifying olive leaf diseases. Applied Sciences 12(20), 10278 (2022). https://doi.org/10.3390/app122010278
[36] Alshammari, H.H., Taloba, A.I., Shahin, O.R.: Identification of olive leaf disease through optimized deep learning approach. Alexandria Engineering Journal 72, 213–224 (2023). https://doi.org/10.1016/j.aej.2023.03.081
[37] Alsaeedi, A.H., Al-juboori, A.M., Al-Mahmood, H.H.R., Hadi, S.M., Mohammed, H.J., Aziz, M.R., Aljibawi, M., Nuiaa, R.R.: Dynamic clustering strategies boosting deep learning in olive leaf disease diagnosis. Sustainability 15(18), 13723 (2023). https://doi.org/10.3390/su151813723
[38] Mahmood, M.A., Alsalem, K.: Olive leaf disease detection via wavelet transform and feature fusion of pre-trained deep learning models. Computers, Materials & Continua 78(3), 13723 (2024). https://doi.org/10.32604/cmc.2024.047604
[39] Bruno, A., Moroni, D., Martinelli, M.: Efficient deep learning approach for olive disease classification. In: 2023 18th Conference on Computer Science and Intelligence Systems (FedCSIS), pp. 889–894 (2023). IEEE. https://doi.org/110.15439/2023F4794
[40] Yun, S., Han, D., Oh, S.J., Chun, S., Choe, J., Yoo, Y.: Cutmix: Regularization strategy to train strong classifiers with localizable features. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 6023–6032 (2019)
[41] Zhang, H., Cisse, M., Dauphin, Y.N., Lopez-Paz, D.: mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412 (2017)
[42] Radford, A., Metz, L., Chintala, S.: Unsupervised representation learning with deep convolutional generative adversarial networks. arXiv preprint arXiv:1511.06434 (2015)
[43] Jayasumana, S., Ramalingam, S., Veit, A., Glasner, D., Chakrabarti, A., Kumar, S.: Rethinking fid: Towards a better evaluation metric for image generation. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9307–9315 (2024)
[44] Tan, M., Le, Q.V.: Efficientnetv2: Smaller models and faster training. CoRR abs/2104.00298 (2021) 2104.00298
[45] Chicco, D., Jurman, G.: The advantages of the matthews correlation coefficient (mcc) over f1 score and accuracy in binary classification evaluation. BMC genomics 21, 1–13 (2020). https://doi.org/10.1186/s12864-019-6413-7, publisher=Springer
[46] Cruz Huayanay, A., Bazán, J.L., Russo, C.M.: Performance of evaluation metrics for classification in imbalanced data. Computational Statistics, 1–27 (2024). https://doi.org/10.1007/s00180-024-01539-5
[47] Tantithamthavorn, C., McIntosh, S., Hassan, A.E., Matsumoto, K.: An empirical comparison of model validation techniques for defect prediction models. IEEE Transactions on Software Engineering 43(1), 1–18 (2016). https://doi.org/10.1016/j.aci.2018.08.003
[48] Tantithamthavorn, C., McIntosh, S., Hassan, A.E., Matsumoto, K.: The impact of automated parameter optimization on defect prediction models. IEEE Transactions on Software Engineering 45(7), 683–711 (2018). https://doi.org/10.1109/TSE.2018.2794977