论文信息
论文解读
AI 辅助整理- 方法
- Mamdani模糊推理系统结合部分训练与热启动权重,在四个公开病害数据集上优化A
- 发现
- 相比传统穷举搜索,精度等指标最高提升29%,且超参数排序可解释、计算成本更低。
- 机会点
- 可将模糊多目标HPO迁移到轻量边缘设备或跨作物迁移学习场景,探索动态超参数自适应机制。
论文摘要
深度卷积神经网络(DCNN)在植物病害分类中表现出卓越的性能。然而,其有效性极易受到超参数选择的影响。高效超参数优化(HPO)仍然是将深度学习模型部署于植物病害分类中的一个基本挑战,因为实施网格搜索、贝叶斯优化(BO)和进化算法等大规模搜索技术需要相当大的计算成本。这类传统HPO方法通常依赖单目标适应度标准,并且需要大量计算资源。此外,这些方法在决策过程中往往缺乏可解释性。在本研究中,我们提出了一种基于模糊推理系统(FIS)的HPO方法,将Mamdani FIS集成到DCNN的超参数选择过程中。该方法在保持分类精度的同时,加快了超参数选择过程。候选配置基于多个因素进行评估,包括验证准确率、验证损失和训练时间,而不是仅基于单一因素进行评估。这些因素通过模糊语言规则组合为一个单一的清晰适应度分数,从而提供透明、可解释且多目标的决策。为了最小化计算成本,候选超参数首先通过一种快速部分训练方法进行评估,该方法利用冻结的卷积层和热启动权重。随后,使用Mamdani FIS聚合包括准确率、损失和训练时间在内的性能指标,生成用于候选排序的清晰分数。之后,对所选超参数进行完全端到端训练,从而相对于最先进的穷举搜索技术取得更优的分类性能。实验在四个公开植物病害数据集上执行,采用基于AlexNet的架构,其中在启动模糊引导优化过程之前,首先在随机选择超参数配置的基线模型上进行实验。然后,使用由模糊引导优化过程选出的最佳优化超参数配置运行模型,在准确率、精确率、召回率和F1分数上最高提升29%,同时实现可靠且可理解的超参数排序与优化。所获得的结果表明
全文
Scientific ReportsARTICLE | Article in Press
Scientific Reports https://doi.org/10.1038/s41598-026-64880-3
Scientific Reports
This Article in Press is shared early to give you faster access to new research. It is citable and carries a permanent DOI.
The final edited version will replace it automatically.
Fuzzy-guided hyperparameter optimization for efficient
CNN-based plant disease classification
Medhat Hamdy · Heba M. Elhoseny · Fathi E. Abd El-Samie · Adel S. El-Fishawy ·
Sami A. Eldolil · Elhossiny Ibrahim
Received: 15 April 2026 / Accepted: 28 July 2026
© The Author(s) 2026
Abstract
Deep convolutional neural networks (DCNNs) have exhibited outstanding performance in plant disease classi -
fication. Nevertheless, their usefulness is very susceptible to hyperparameter selection. Efficient hyperparameter
optimization remains a fundamental challenge in deploying deep learning models for plant disease classifica -
tion, as implementing extensive search techniques such as grid search, Bayesian optimization, and evolutionary
algorithms requires considerable computing cost. Such conventional hyperparameter optimization approaches
frequently rely on single-objective fitness criteria and demand substantial computational resources. Moreover,
these approaches often lack interpretability in decision-making. In this study, we propose a hyperparameter
optimization based on a fuzzy inference system (FIS) approach that integrates a Mamdani fuzzy inference
system into the hyperparameter selection process of a deep CNN. It maintains classification accuracy, while
speeding up the hyperparameter selection process. The suggested approach assesses candidate configurations
based on several factors, including validation accuracy, validation loss, and training time, rather than assessing
based on just one factor. These factors are combined into a single, crisp fitness score using fuzzy linguistic
rules, providing transparent, interpretable, and multi-objective decision making. In order to minimize computa -
tional costs, candidate hyperparameters are first assessed using a quick partial training method that makes use
of frozen convolutional layers and warm-started weights. A Mamdani fuzzy inference system is then used to
aggregate performance metrics including accuracy, loss, and training time, producing a crisp score for candidate
ranking. After that, end-to-end training of the chosen hyperparameters is exposed to fully end-to-end training,
resulting in superior classification performance with respect to the state-of-the-art exhaustive search techniques.
Experiments have been executed on four public plant disease datasets, using an AlexNet-based architecture
where the first experiments have been performed on baseline model with randomly chosen hyperparameter
configuration before the fuzzy guided optimization process is initiated. Then, the model is performed with the
best optimized hyperparameter configuration selected by a fuzzy guided optimization process, demonstrating
up to 29% improvement in accuracy, precision, recall and F1-score, alongside with reliable and comprehensible
hyperparameter ranking and optimization. The achieved results show that while keeping an acceptable comput -
ing cost, the introduced fuzzy-guided technique consistently outperforms baseline model configurations with
respect to all evaluation metrics, yielding greater classification accuracy and enhanced generalization. Hence,
our suggested approach provides a lightweight, comprehensible, and efficient solution for hyperparameter
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
tuning in the plant disease classification domain when compared to conventional hyperparameter optimization
techniques, offering a practical route for resource-efficient model optimization in precision agriculture that
enables quick deployment of deep learning systems.
Keywords Deep convolutional neural networks (DCNNs) · Plant disease classification · Fuzzy inference
system (FIS) · Hyperparameter optimization
Introduction
Plant diseases represent a major constraint and threat to global agricultural productivity and food security, caus-
ing substantial yield losses in major staple crops and significantly impacting the sustainability of agricultural
systems worldwide1.
Crop diseases and pests are mainly responsible for considerable reductions in global crop production, high -
lighting the urgent need for efficient and scalable disease monitoring and management strategies, where early
diagnosis and timely intervention are necessary, but manual means remain limited and unsatisfactory2.
Automated plant disease detection using computer vision and deep learning has therefore emerged as a promis-
ing and scalable solution for precision agriculture, enabling rapid and accurate diagnosis from leaf images under
real-world conditions3,4. Recent advances in image-based plant pathology have demonstrated that deep learning
models can reliably capture complex visual disease patterns across multiple crop species, supporting early dis -
ease management and yield preservation5,6.
Convolutional neural networks (CNNs) have become the dominant paradigm for image classification tasks
across diverse computer vision applications due to their hierarchical feature learning capability and superior
performance in large-scale visual recognition benchmarks 7. This dominance has facilitated their widespread
adoption in agricultural image analysis and plant disease classification, where deep CNN architectures have
consistently achieved high accuracy on benchmark leaf disease datasets. Numerous studies have successfully
applied deep learning models to plant disease detection, demonstrating the effectiveness of transfer learning and
fine-tuning strategies when adapting pretrained architectures such as AlexNet, VGG, ResNet, and MobileNet to
agricultural datasets8.
Despite their effectiveness and success in diagnosing various plant diseases, it has been noticed that CNNs'
performance is highly sensitive to hyperparameter configuration. Hence, their effectiveness depends critically on
the careful selection of different hyperparameters such as learning rate, batch size, optimizer type, dropout ratio,
etc. Suboptimal hyperparameter settings can lead to unstable training dynamics, slow convergence, overfitting,
and degraded generalization capability, thereby limiting model reliability in real-world agricultural deployment
scenarios9.
Traditional hyperparameter optimization (HPO) techniques in deep learning, including grid search, random
search, and Bayesian optimization, typically require repeated full training of numerous candidate configurations,
resulting in substantial computational cost and prolonged optimization time 10,11. Such computational demands
significantly restrict their practical applicability in resource-constrained agricultural environments, where both
time efficiency and hardware availability are critical operational constraints.
To mitigate these limitations, several fast evaluation strategies have been explored in the machine learning
literature. Warm-start initialization enables new candidate models to reuse previously learned parameters from
prior training runs, thereby accelerating convergence and reducing redundant computation during the search
process12. Likewise, layer freezing strategies, commonly employed in transfer learning, reduce computational
overhead by updating only higher-level layers, while preserving reusable low-level visual features learned in
earlier layers of deep networks13.
Furthermore, partial training approaches, including early stopping and limited-budget training, have been
widely adopted to terminate poorly performing configurations before full convergence, significantly decreasing
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
the overall computational burden of hyperparameter optimization, while maintaining reliable performance esti -
mation14,15. However, most existing fast HPO frameworks rely predominantly on a single evaluation metric, such
as validation accuracy, when ranking candidate configurations, which may provide an incomplete assessment
of model quality and fail to capture the trade-offs between predictive accuracy, loss stability, and computational
efficiency.
Fuzzy logic offers a systematic and interpretable framework for handling uncertainty and integrating multiple
evaluation indicators into a unified decision-making process 16. Mamdani fuzzy inference systems enable trans -
parent multi-criteria assessment by aggregating heterogeneous performance metrics through linguistic rules and
membership functions, making them well suited for complex model evaluation and ranking scenarios 17. More-
over, fuzzy multi-criteria decision-making methodologies provide a structured mechanism for ranking alternative
solutions based on multiple, potentially conflicting criteria in intelligent optimization systems18.
Motivated by these challenges, this study presents a computationally efficient hyperparameter optimiza -
tion framework for deep learning assigned for plant disease recognition. It integrates fast evaluation strategies,
including warm-start initialization, layer freezing, and partial training, to provide fast candidate evaluation via a
Mamdani fuzzy inference system to rank hyperparameter configurations using multiple performance indicators,
including validation accuracy, validation loss, and training time. This integrated framework aims to achieve a
balanced trade-off between predictive performance and computational efficiency, thereby enabling more reliable
and resource-aware hyperparameter optimization for practical agricultural disease diagnosis applications.
The remainder of our research study is structured as follows. “ Related work” section introduces a concise
literature review of the previous research studies that have been performed in the same research domain as our
research study in addition to research gap and novelty besides contributions introduced by our proposed frame -
work. The structure of our proposed architecture and the methodology used for hyperparameter optimization
based on a fuzzy logic system are illustrated in “Materials and methods” section then, “Results” section provides
the results achieved by performing experiments on four popular plant disease datasets to evaluate our fuzzy-
assisted hyperparameter optimization model. Then, comparisons are performed with their counterpart baseline
models for each of the four popular plant disease datasets, providing in-depth discussion of the obtained results in
“Discussion” section. Moreover, limitations of the proposed fuzzy-assisted hyperparameter optimization model
and suggestions for future work are discussed in “Limitations and future work” section . Finally, the conclusion
is presented in “Conclusion” section.
Related work
Hyperparameter optimization plays a critical role in determining the performance and generalization capability
of convolutional neural networks (CNNs). Selecting appropriate values for parameters such as learning rate,
batch size, dropout rate, and network architecture components often requires extensive experimentation. Con -
sequently, a wide range of optimization approaches have been proposed in the literature, including systematic
search strategies, probabilistic optimization techniques, evolutionary algorithms, as well as hybrid intelligent
systems integrating fuzzy logic processing. They have been employed either for adaptive hyperparameter tuning
or for enhancing model decision making.
Traditional hyperparameter optimization techniques are commonly based on systematic search strategies. One
of the earliest and most widely used methods is grid search, where predefined candidate values for each hyperpa-
rameter are enumerated, and all possible combinations are evaluated. Although grid search guarantees exhaustive
coverage of the defined search space, its computational complexity increases exponentially with the number of
hyperparameters and candidate values. Consequently, grid search becomes impractical for large deep learning
models, where each configuration requires expensive training procedures.
To address this limitation, random search has been proposed as a more scalable alternative for exploring
hyperparameter spaces. Instead of evaluating all possible combinations, random search samples candidate
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
configurations from predefined distributions. Bergstra and Bengio demonstrated that random search can outper -
form grid search in high-dimensional hyperparameter spaces by allocating more trials to influential parameters
rather than exploring all dimensions uniformly 10. Their experimental results showed that random search fre -
quently achieves comparable or superior performance, while requiring significantly fewer model evaluations.
More advanced optimization approaches rely on probabilistic models to guide the search process. Bayesian
optimization is one of the most widely used techniques for hyperparameter tuning in machine learning. This
approach constructs a surrogate model of the objective function and iteratively selects promising configura -
tions based on acquisition functions that balance exploration and exploitation. Snoek et al. introduced a practi -
cal Bayesian optimization framework using Gaussian process models to optimize machine learning algorithms,
efficiently11. Similarly, Bergstra et al. proposed sequential model-based optimization algorithms based on Tree-
structured Parzen Estimators (TPEs), which model the probability distributions of good and poor configurations
to guide the search process toward promising regions of the hyperparameter space19.
Recent research has further explored hybrid and automated hyperparameter optimization frameworks. For
example, Suncak and Varlıklar evaluated the effectiveness of grid search, random search, and Bayesian opti -
mization for tuning CNN and LSTM models in natural language processing tasks 20. Their results demonstrated
that systematic hyperparameter optimization significantly improves accuracy to 89.79% and 92.82% compared
to manual parameter selection with accuracy of 84.33% and 87.94% for CNN and LSTM models, respectively.
Similarly, Aguerchi et al. proposed a particle swarm optimization–based framework to automatically determine
optimal CNN hyperparameters for mammography breast cancer classification, achieving classification accuracies
of 98.23% and 97.98% on DDSM and MIAS datasets, respectively21.
Kiziloluk et al. presented another recent study introducing the EO-CNN framework, which depends on equi -
librium optimization to tune CNN hyperparameters for pneumonia and COVID-19 detection tasks using AlexNet
and DarkNet-19 models, demonstrating improved classification performance with 7% and 4.07% improvement,
respectively, compared to manually configured counterparts22.
Beyond classical optimization approaches, evolutionary algorithms have gained considerable attention for
automated neural network architecture search and hyperparameter optimization. Genetic algorithms are particu -
larly effective in exploring large and complex search spaces. Xie and Yuille proposed the Genetic CNN frame -
work, which encodes CNN architectures as genetic representations and reveals them using mutation, crossover,
and selection operations23.
Their evolutionary search framework successfully identified competitive CNN architectures, while reducing
the need for a huge number of manually selected CNN architectures. The experiments have been executed on
the LeNet structure using multiple cases of genetic representations with up to 200 epochs and different learn -
ing rate values, consuming a huge amount of computational resources. The experiments have been performed
on CIFAR10, CIFAR100, and SVHN datasets, where the results showed the best accuracy of 77.19% on the
CIFAR10 dataset.
Similarly, Sun et al. proposed an evolutionary deep learning framework that depends on convolutional neural
network architectures using genetic algorithms24. In their approach, the CNN architecture is represented as chro-
mosomes that evolve through generations to discover optimal network structures. Experimental results on image
classification datasets demonstrated that evolutionary search can effectively discover high-performing architec -
tures while reducing manual design efforts.
Swarm intelligence algorithms have also been widely explored for CNN optimization. Wang et al. proposed a
variable-length particle swarm optimization algorithm that works on CNN architectures by representing candi -
date networks as particles within a swarm search space25.
More recently, hybrid swarm-based optimization approaches have been proposed. For example, Inik intro -
duced the SwarmCNN framework, which combines particle swarm optimization with artificial bee colony algo-
rithms to jointly optimize CNN design parameters and layer parameters, achieving competitive performance on
datasets such as MNIST and CIFAR-1026.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Alongside these optimization techniques, fuzzy logic has emerged as a promising tool for addressing uncer -
tainty and improving decision making in deep learning systems. Several studies have focused on integrating
fuzzy inference mechanisms with CNN architectures to enhance classification performance and interpretability.
Mohammed and Hussain proposed a hybrid framework incorporating Mamdani type-2 fuzzy rules into CNN
for animal image classification tasks27. In this approach, fuzzy rules are applied at the decision stage to assist the
CNN classification decision and evaluate prediction confidence and uncertainty, leading to improved classifica -
tion accuracy on a dataset of over 27,000 images. A reduced uncertainty was achieved compared with conven -
tional CNN models.
Similarly, Raza et al. introduced a fuzzy logic–based multi-CNN feature fusion method for white blood
cell classification28. Their method extracts features from multiple CNN architectures, including DenseNet121,
MobileNetV2, and ResNet101, and combines them using fuzzy EDAS decision analysis. Experimental evalua -
tion on the Kaggle Blood Images dataset achieved precision values of 99.79% and F1-scores exceeding 99.7%,
demonstrating the effectiveness of fuzzy decision fusion for improving classification reliability.
Another fuzzy ensemble learning and feature fusion approach was proposed by Kundu et al., who proposed
a Sugeno fuzzy integral-based ensemble method to combine predictions from multiple CNN classifiers, includ -
ing Inception-v3, DenseNet-161, and ResNet-3429. The fuzzy integral dynamically assigns weights to classifiers
based on prediction confidence, enabling improved classification robustness compared to conventional ensemble
averaging strategies.
Fuzzy reasoning has also been applied to combine heterogeneous deep learning feature representations. Li
et al. introduced the FTransCNN architecture, which integrates CNN and transformer features through a fuzzy
fusion module designed to handle uncertainty in multimodal medical image segmentation tasks30. The introduced
fuzzy feature fusion mechanism improves segmentation accuracy by adaptively combining complementary fea -
ture representations extracted from different network architectures.
Despite these advancements, most fuzzy-based approaches focus on classification enhancement, decision
fusion, or feature integration, rather than directly addressing the problem of hyperparameter optimization. Only
a limited number of studies have explored the use of fuzzy systems for hyperparameter analysis and optimiza -
tion. For instance, Uyar et al.31 proposed a fuzzy tree-based framework to analyze the relationship between CNN
hyperparameters, including rate, batch size, number of training epochs, and CNN architecture type, considering
the resulting classification accuracy. In their approach, multiple CNN configurations are first trained on a subset
of CNN configurations to generate an experimental dataset, which is then used to construct a fuzzy inference
model capable of capturing uncertainty in hyperparameter selection. Notably, the highest reported classifica -
tion accuracy (approximately 98.33%) is achieved from actual CNN training rather than the fuzzy model. The
collected dataset is subsequently used to develop a hierarchical fuzzy inference system (FIS tree), which cap -
tures nonlinear dependencies and uncertainty in the hyperparameter space, while providing interpretable rule-
based representations. The fuzzy model is then validated using cross-validation, where its predictive capability
is assessed by comparing estimated accuracies against ground-truth CNN results, yielding a low prediction error
(RMSE ≈ 1–2%). The resulting fuzzy system can provide interpretable rules and estimate the suitability of differ-
ent configurations based on previously observed patterns. However, despite its interpretability and competitive
performance, this approach relies on pre-collected experimental data and separates the training phase from the
decision-making process. Consequently, the fuzzy system operates as a predictive or analytical model rather than
an integrated optimization mechanism, as it does not perform real-time evaluation or systematic exploration of
the hyperparameter space during model training.
Although the proposed approach demonstrates strong predictive performance and interpretability, its role
remains limited to post hoc analysis and performance estimation. Specifically, the fuzzy system operates as a
regression-based predictive model that estimates classification accuracy for a given set of hyperparameters, rather
than functioning as an integrated optimization framework. Consequently, it does not perform systematic explora-
tion of the hyperparameter space, nor does it iteratively guide the training process toward optimal configurations.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
This separation between CNN training and fuzzy-based decision-making restricts its applicability for real-time
or adaptive hyperparameter optimization, which remains an open challenge in the field.
Further research has investigated integrating fuzzy logic processing with metaheuristic optimization algo -
rithms. Alotaibi et al. proposed a hyperparameter-tuned fuzzy deep neural network framework for human activity
recognition that combines fuzzy neural networks with manta ray foraging optimization to automatically adjust
model hyperparameters 32. Experimental evaluation on the CAUCAFall dataset demonstrated a classification
accuracy of 99.40%, highlighting the effectiveness of combining fuzzy reasoning with optimization algorithms.
Hybrid fuzzy–swarm optimization strategies have also been proposed for neural network parameter optimiza-
tion. Sobhanifard introduced a framework integrating fuzzy logic processing with particle swarm optimization
for optimizing neural network parameters in time-series forecasting problems, achieving improved convergence
stability and predictive accuracy compared with conventional optimization methods33.
Earlier work by Abraham demonstrated the effectiveness of evolutionary optimization for fuzzy neural net -
works. The GA-TSKfnn framework depends on genetic algorithms to optimize membership functions and rule
parameters in Takagi–Sugeno–Kang fuzzy neural networks, resulting in improved classification performance
compared with traditional neuro-fuzzy systems34.
Yan et al.35 proposed an integrated deep learning framework combining an enhanced RLGA-EfficientNetB0
architecture with MobileNetV1 for five-class diabetic retinopathy grading using the APTOS 2019 retinal fun -
dus image dataset. The proposed framework incorporated transfer learning together with multiple architectural
enhancement mechanisms, including the Residual Local–Global Attention (RLGA) module, Local Perception
Module (LPM), Global–Local Attention Module (GLAM), and CBAM attention mechanism to improve both
local lesion extraction and global contextual representation. In addition, extensive preprocessing and data bal -
ancing strategies such as CLAHE enhancement, Laplacian sharpening, CUTOUT, MIXUP, and SMOTE-ENN
were applied to address image-quality degradation and dataset imbalance problems. Experimental evaluation
demonstrated an accuracy of 94.58%, a precision of 94.64%, and a Kappa coefficient of 93.22%, outperforming
the baseline EfficientNetB0 model by more than 2% in major evaluation metrics.
A hybrid deep learning approach for brain tumor lesion classification was presented by Lin et al. 36. The pro-
posed framework integrated ResNet50 and EfficientNetB0 architectures to exploit complementary deep features
from brain MRI images for multiclass tumor classification. Transfer learning was employed to initialize pre -
trained backbone networks, while feature fusion mechanisms were used to enhance lesion representation capa -
bility and improve discrimination between glioma, meningioma, pituitary tumor, and normal brain tissues. The
model was evaluated using publicly available brain MRI datasets, including the Figshare brain tumor dataset, and
achieved approximately 99.17% classification accuracy with high precision, recall, and F1-score values close to
99%. Experimental results demonstrated that the hybrid architecture significantly outperformed individual back-
bone networks in feature extraction effectiveness and classification robustness.
Feng et al.37 proposed an improved deep convolutional neural network for diabetic retinopathy (DR) classi -
fication using retinal fundus images. The framework enhanced the conventional ResNet50 architecture by inte -
grating an External Attention (EA) mechanism with a Modified Residual Branch (MRB) to improve both local
lesion extraction and global contextual representation. Transfer learning techniques were utilized to initialize the
pretrained backbone network, while the modified residual structure strengthened feature propagation and gradi -
ent flow during training. The presented model was evaluated on the APTOS 2019 diabetic retinopathy dataset
and achieved approximately a 98.34% classification accuracy with high precision, recall, and F1-score values
exceeding 98%. Experimental analysis demonstrated that the incorporation of attention mechanisms and residual
enhancement significantly improved retinal lesion discrimination compared with the baseline ResNet50 architec-
ture and other traditional CNN models.
Farooqui et al. 38 proposed a deep learning-based plant leaf disease segmentation framework using the
UUNet + + architecture for accurate lesion-region extraction from diseased leaf images. The proposed model
extended the conventional U-Net + + segmentation framework by introducing enhanced nested skip pathways and
dense encoder–decoder connectivity to improve multiscale feature fusion and boundary localization performance.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
The framework was evaluated using PlantVillage-based diseased leaf image datasets containing multiple crop
disease categories. Experimental results demonstrated that the proposed UUNet + + model achieved approxi -
mately 97% segmentation accuracy with Dice Similarity Coefficient (DSC) and Intersection over Union (IoU)
values of about 96.8% and 94.7%, respectively, outperforming conventional U-Net and baseline U-Net + + mod-
els in lesion segmentation quality.
Bavana et al. 39 presented a comprehensive investigation into the utilization of machine learning and deep
learning techniques in precision agriculture applications. The study reviewed various intelligent agricultural
frameworks employing machine learning algorithms such as Support Vector Machines (SVM), Random Forest
(RF), Decision Trees (DT), Artificial Neural Networks (ANN), and deep convolutional neural networks (CNNs)
integrated with IoT-based sensing environments. The reviewed systems addressed multiple agricultural tasks,
including crop disease detection, irrigation management, soil monitoring, yield prediction, and environmental
condition analysis. The authors highlighted the effectiveness of CNN-based approaches in image-driven agricul-
tural diagnosis tasks, where several studies achieved classification accuracies exceeding 95% for crop disease
recognition. Furthermore, the paper emphasized the growing importance of IoT-enabled smart farming systems
for real-time agricultural analytics and automation.
Farooqui et al.40 proposed an automatic crop disease recognition framework integrating improved abnormal -
ity segmentation with a heuristic-based concatenated deep learning model for plant disease classification. The
proposed system utilized image preprocessing and heuristic-driven lesion segmentation to isolate infected leaf
regions before classification. For deep feature extraction and classification, a concatenated convolutional neural
network architecture combining AlexNet and GoogLeNet models was employed to exploit complementary hier-
archical features from diseased crop leaf images. The framework was evaluated using the PlantVillage dataset
containing multiple crop disease categories and healthy leaf samples. Experimental results demonstrated that the
proposed method achieved approximately 98.46% classification accuracy with precision, recall, and F1-score
values exceeding 97%, outperforming conventional standalone CNN architectures and traditional machine learn-
ing approaches.
Moreover, the literature has been substantially expanded to provide broader scientific positioning of the pro -
posed framework within modern AI optimization and hybrid modeling research. We incorporated the most appro-
priate recent interdisciplinary studies related to our research study suggested by the reviewers covering advanced
optimization frameworks, swarm intelligence, and intelligent hybrid AI architectures. These additions strengthen
the theoretical and methodological grounding of the proposed fuzzy-guided hyperparameter optimization frame-
work. In addition, these additions significantly improve the interdisciplinary depth and scientific positioning of
the study within contemporary AI optimization and hybrid modeling research.
The study of Ghosh et al. 41 presented a deep learning-based approach for facial emotion recognition using
convolutional neural networks. The proposed framework depends on deep neural network architectures to clas -
sify facial expressions into multiple emotion categories by learning hierarchical feature representations directly
from facial image data. The methodology follows a standard supervised learning pipeline, where convolutional
layers are used for feature extraction and fully connected layers are employed for final emotion classification.
The study is positioned within the domain of image-based emotion detection and demonstrates that deep learning
approaches outperform traditional machine learning techniques in recognizing facial expressions.
Ghosh et al. 42 proposed a PSO-based optimization framework to enhance the YOLO architecture for agri -
cultural weed classification in precision agriculture. The main objective of the study is to optimize the structure
and performance of the YOLO model through employing the PSO algorithm to give architectural configurations
and refine model parameters, thereby enhancing both convergence efficiency and predictive performance. The
model is evaluated on two real-world agricultural datasets, namely the ICAR-DWR and TNAU weed datasets,
where preprocessing steps such as image segmentation and augmentation are applied to improve generalization.
Experimental results demonstrate strong performance, achieving 98.98% precision on the TNAU dataset and
97.89% accuracy on the ICAR-DWR dataset. These results confirm the effectiveness of PSO-driven optimization
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
in improving YOLO-based weed classification systems and highlight its potential for deployment in precision
agriculture and automated weed management systems.
In another related study, Ghosh et al.43 introduced a String Theory-Inspired Hyperparameter Search (STI-HS)
framework for enhancing ResNet-50 performance in the PlantCLEF plant classification dataset. The presented
method employed a physics-inspired optimization strategy derived from concepts in string theory to adaptively
search the hyperparameter space of the ResNet-50 model. The framework optimized learning rate scheduling,
regularization parameters, and network configuration to improve feature discrimination capability for fine-
grained plant species classification. Experimental results demonstrated that the STA achieves 92.4% Top 1 vali-
dation accuracy and 92.1% Top 1 test accuracy, outperforming traditional search methods such as grid search
and random search, as well as advanced techniques including Bayesian Optimization, Hyperband, and Optuna.
Additionally, the method achieves a Macro F1-score of 68.4% and a balanced accuracy of 74.9% on an imbal -
anced dataset split, indicating strong robustness under class imbalance conditions.
Machine learning applications in dairy farm management proposed by Vyas et al. 44 have also demonstrated
the increasing role of intelligent optimization and hybrid AI frameworks in agricultural systems. Recent studies
explored the utilization of machine learning algorithms, deep neural networks, computer vision systems, and
sensor-driven predictive analytics for cattle monitoring, disease detection, milk-yield prediction, and automated
farm management. Several approaches integrated optimization-driven learning models with Internet of Things
(IoT) infrastructures and real-time monitoring systems to improve productivity, decision support, and resource
management in smart farming environments. These studies emphasized the importance of combining adaptive
learning strategies with domain-specific agricultural intelligence for enhancing scalability and operational effi -
ciency in modern precision agriculture applications.
Unlike previous studies that mainly focused on surrogate-assisted turbulence calibration, or swarm-based agri-
cultural intelligence systems, the proposed work introduces a fuzzy-guided hyperparameter optimization frame -
work specifically designed for deep CNN-based plant disease classification. The proposed framework combines
AlexNet architecture, real Mamdani fuzzy inference, warm-start candidate evaluation, and staged optimization
within a unified adaptive optimization pipeline. In contrast to conventional grid search or standalone metaheuris-
tic methods, the proposed approach employs fuzzy reasoning to balance classification accuracy, validation loss,
and computational efficiency during hyperparameter selection, thereby improving both optimization effective -
ness and generalization performance.
Additionally, despite these advances, most existing studies integrating fuzzy logic with deep learning focus
primarily on classification refinement, ensemble decision fusion, or optimization of fuzzy neural network param-
eters, rather than directly guiding the hyperparameter optimization process of CNN models during training.
Furthermore, almost the traditional hyperparameter optimization techniques rely on a single evaluation metric,
typically validation accuracy, when selecting optimal configurations, neglecting other important criteria such as
model convergence behavior, validation loss stability, and computational efficiency.
Therefore, there remains a clear research gap in developing methods that integrate fuzzy multi-objective rea -
soning with systematic hyperparameter search strategies for CNN models. The approach proposed in this study
addresses this limitation by combining grid-based hyperparameter search with a fuzzy inference system for
multi-criteria evaluation of candidate configurations. Instead of selecting the optimal configuration solely based
on validation accuracy, the proposed fuzzy system simultaneously considers validation accuracy, validation loss,
and training time to compute a comprehensive fitness score. This multi-objective evaluation mechanism enables
a more balanced and efficient selection of CNN hyperparameters while maintaining manageable computational
cost.
Research gap and novelty
Despite the rapid advancement of deep learning for image classification, the optimization of convolutional neu -
ral network (CNN) hyperparameters remains a computationally expensive and methodologically challenging
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
task. Existing studies can be broadly categorized into three main directions: fuzzy-based analytical modeling,
conventional optimization algorithms for CNN tuning, and fuzzy-enhanced classification systems. However,
these approaches exhibit significant limitations, when applied to efficient and interpretable hyperparameter
optimization.
First, several studies have incorporated fuzzy logic into CNN-related workflows; nevertheless, most of them
utilize fuzzy systems for performance analysis, decision support, or classification enhancement rather than direct
hyperparameter optimization. For instance, fuzzy inference and fuzzy tree models have been employed to analyze
the relationship between hyperparameter settings and classification accuracy by learning from experimentally
trained CNN configurations. While such methods provide interpretability, they rely on pre-trained experimental
datasets and do not offer a systematic fast-search optimization mechanism or computational cost reduction during
the tuning process.
Second, traditional hyperparameter optimization techniques for CNNs, including grid search, random search,
Bayesian optimization, genetic algorithms (GA), and particle swarm optimization (PSO), have been extensively
investigated in the literature. Although these methods can effectively identify high-performing parameter config-
urations, they typically require repeated full or near-full training of multiple CNN candidates, leading to substan-
tial computational overhead, long training time, and limited scalability for resource-constrained environments
such as agricultural applications.
Third, the popular line of research integrates fuzzy logic processing within CNN architectures to enhance clas-
sification robustness, feature selection, or decision fusion. However, these approaches apply fuzzy reasoning at
the classification stage rather than during the hyperparameter selection phase, thereby failing to address the core
challenge of efficient HPO hyperparameter optimization.
Critically, a comprehensive review of the literature reveals the absence of a unified framework that
simultaneously:
- Performs rapid candidate hyperparameter evaluation.
- Incorporates multi-objective decision-making based on accuracy, loss, and training time.
- Employs an interpretable Mamdani fuzzy inference system to rank hyperparameter configurations prior to full
model training.
Therefore, there remains a clear research gap in developing an interpretable, computationally efficient, and multi-
objective fuzzy-guided hyperparameter optimization framework for CNNs that reduces training cost, while pre -
serving or improving classification performance. This gap is particularly significant in plant disease classification
tasks, where large-scale model retraining is computationally expensive and deployment environments are often
resource constrained.
From the reviewed literature, several critical gaps can be identified: - Existing fuzzy-CNN studies mainly use fuzzy logic processing for decision support, classification enhance -
ment, or hybrid modeling, not for direct CNN hyperparameter optimization. - Few HPO optimization frameworks based on fuzzy logic exist (e.g., Uyar et al. 31). CNN configurations are
evaluated based on full training rather than techniques such as partial training, warm-start strategies, or includ-
ing training time as an explicit indication for efficiency-aware evaluation. - Conventional CNN hyperparameter optimization methods (grid search, random search, Bayesian, GA,
PSO) are generally considered computationally expensive and primarily single-objective indicators, mostly
accuracy-focused. - There is a lack of systematic and intelligent optimization of key hyperparameters in plant disease classification
research such as learning rate and dropout rate despite their strong impact on performance and generalization
of such algorithms.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Thus, the novelty of our proposed framework lies in providing a fuzzy multi-criteria hyperparameter ranking
mechanism specifically designed for CNN training, where candidate configurations (learning rate and dropout)
are evaluated using:
- Validation accuracy
- Validation loss
- Training time (computational efficiency)
These configurations are combined with fast evaluation strategies including partial training and warm-start ini -
tialization. Unlike prior fuzzy-CNN studies that embed fuzzy logic inside the model or use full training for evalu-
ation, the proposed approach applies a Mamdani fuzzy inference system to rank hyperparameter candidates based
on real training behavior, achieving both computational efficiency and interpretable multi-criteria optimization
adjusted for plant disease classification.
Algorithmic and engineering-level novelty and integration
The individual components used in this study, specifically the CNN architecture (AlexNet), fuzzy inference
systems, and grid-based hyperparameter search, besides partial training, are well-established in the literature.
Therefore, we can clarify the novelty by explicitly distinguishing between algorithmic contributions and engi -
neering-level innovations, as outlined below.
(1) Algorithmic novelty.
The proposed framework introduces a novel fuzzy-guided hyperparameter optimization strategy, which differs
from conventional search methods in the following aspects:
a. Multi-objective fuzzy fitness modeling:
Instead of relying on a single metric (e.g., validation accuracy), the proposed method formulates hyperparam-
eter selection as a multi-objective problem that simultaneously considers classification accuracy, validation
loss, and training time using a Mamdani fuzzy inference system. This provides a more balanced and adaptive
evaluation compared to traditional scalar objective functions.
b. Fuzzy decision-based candidate ranking:
Candidate configurations are evaluated using fuzzy rules that encode expert-like reasoning; for example, high
accuracy and low time result in good fitness, enabling interpretable and non-linear decision boundaries that
cannot be achieved with standard grid or random search.
c. Adaptive normalization and aggregation:
The framework dynamically normalizes performance metrics across candidates and integrates them using
fuzzy membership functions, enabling robust comparisons across heterogeneous evaluation scales. - Engineering-level integration:
Beyond algorithmic design, the work presents a carefully engineered pipeline that improves efficiency and
practicality, as shown below:
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
a. Warm-start partial training mechanism:
Candidate models inherit weights from a baseline model, significantly reducing training time during hyperpa-
rameter search.
b. Frozen convolutional evaluation strategy:
Convolutional layers are temporarily frozen during candidate evaluation to accelerate training, while preserv-
ing learned feature representations.
c. Fast candidate evaluation:
A subset-based training approach with a minimized number of epochs is used for rapid evaluation of hyperpa-
rameter configuration candidates before performing full training, reducing computational costs without sacri -
ficing the hyperparameter optimization process.
d. Two-stage training pipeline:
The framework combines initial training with subsequent fine-tuning (unfreezing layers), ensuring both effi -
ciency during search and high final performance.
In summary, while the individual components are established, the novelty of this work lies in the integration of
fuzzy decision-making with efficient CNN hyperparameter optimization, resulting in a framework that is inter -
pretable, computationally efficient, and performance-enhancing.
The block diagrams of algorithmic novelty and engineering-level integration are depicted as shown in Fig. 1.
In addition, the overall framework summary is depicted as shown in Fig. 2.
Difference between the proposed fuzzy-guided HPO framework and the existing fuzzy-based CNN optimization
approaches
Moreover, the novelty statement has been clarified and strengthened in this paper by explicitly differentiating
the proposed fuzzy-guided hyperparameter optimization (HPO) framework from the existing fuzzy-based CNN
optimization approaches.
Unlike conventional fuzzy-assisted CNN optimization methods that primarily employ fuzzy logic as a direct
classifier, feature selector, or static parameter adjustment mechanism, the proposed framework introduces a real
Mamdani fuzzy inference system specifically designed for adaptive hyperparameter ranking and selection during
CNN optimization.
The proposed method differs from existing approaches in several important aspects:
(1) Real Mamdani fuzzy inference for hyperparameter evaluation:The proposed framework employs a complete
real Mamdani fuzzy inference system including fuzzification, rule evaluation, implication, aggregation, and
centroid defuzzification to evaluate candidate hyperparameter configurations. In contrast, many previous
studies utilize simplified fuzzy-inspired scoring strategies or heuristic weighting schemes rather than a full
fuzzy inference pipeline.
(2) Multi-objective fuzzy decision mechanism: The proposed fuzzy system simultaneously considers valida -
tion accuracy, validation loss, and computational time as optimization criteria. Existing CNN optimization
methods commonly rely on single-objective metrics such as validation accuracy alone, which may lead to
overfitting or computational inefficiency.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Fig. 2 Overall framework summary.
Fig. 1 Algorithmic novelty and engineering-level integration.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
(3) Warm-start Guided Candidate Evaluation: A warm-start transfer mechanism is incorporated during candi -
date evaluation, where weights from the baseline AlexNet model are partially transferred, and convolutional
layers are temporarily frozen. This significantly reduces optimization cost, while maintaining reliable can -
didate ranking. Such integration between fuzzy inference and warm-start CNN evaluation is not commonly
addressed in previous fuzzy-based HPO studies.
(4) Two-stage Optimization Strategy: The proposed framework combines fuzzy-guided hyperparameter selec -
tion with staged CNN training consisting of initial optimization followed by fine-tuning. This differs from
conventional fuzzy optimization approaches that typically perform direct end-to-end retraining without adap-
tive staged refinement.
(5) Lightweight and Computationally Efficient Search: Instead of employing computationally expensive evolu-
tionary optimizers such as Genetic Algorithms, Particle Swarm Optimization, or Bayesian Optimization, the
proposed framework uses a fuzzy-guided candidate ranking mechanism that provides efficient hyperparam -
eter selection with lower computational overhead.
Accordingly, the novelty of this work lies not only in integrating fuzzy logic with CNN HPO optimization, but
in introducing a complete Mamdani-based multi-objective fuzzy decision framework for adaptive hyperparam -
eter ranking, warm-start candidate evaluation and staged fine-tuning, within a lightweight AlexNet-based plant
disease classification system.
Hybrid optimization pipeline
The proposed framework combines a CNN-based AlexNet architecture with a Mamdani fuzzy inference system
operating at the hyperparameter optimization stage. The CNN-based AlexNet architecture is responsible for fea-
ture extraction and classification, while the Mamdani fuzzy inference system performs multi-objective decision-
making to rank candidate hyperparameter configurations based on validation accuracy, loss, and training time.
Consequently, hybridization occurs at the optimization and decision level, forming a neuro-fuzzy optimization
framework.
To the best of our knowledge, no prior study has systematically combined fast hyperparameter candidates’
evaluation, warm-start and frozen-layer training, and Mamdani fuzzy inference to rank hyperparameters before
full model training. This gap motivates the proposed framework, which unifies rapid evaluation and fuzzy-guided
ranking to achieve efficient and accurate deep learning–based plant disease classification.
This framework provides an interpretable, efficient, and scalable solution for deploying deep learning models
in agricultural domains with resource-constrained environments.
The main contributions of our research are as follows:
● Proposal of a neuro-fuzzy hyperparameter optimization framework for plant disease classification, in which a
conventional neural network (CNN), specifically AlexNet, is combined with a Mamdani fuzzy inference sys -
tem to guide the optimization of hyperparameter selection under limited computational resources.
● Design of a hybrid training pipeline integrating deep learning and fuzzy logic at the optimization level, consist-
ing of (i) CNN training with SoftMax supervision, (ii) warm-started evaluation of candidate hyperparameter
configurations, and (iii) Mamdani fuzzy inference to rank candidates based on multi-objective candidate evalu-
ation criteria including accuracy, loss, and training time.
● Employment of AlexNet model to perform feature extraction and classification of plant disease classes, while
a fuzzy inference system is employed to guide the hyperparameter optimization strategy.
● Providing a fuzzy logic–guided tuning strategy to enhance the hyperparameter optimization strategy more
efficiently compared to other optimization techniques and overcome their limitations, including conventional
grid search, where candidate learning rate and dropout configurations are evaluated using fast, warm-started
weights and partial training to reduce computational overhead.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
● Providing a fuzzy logic–based multi-objective criteria hyperparameter optimization strategy using accuracy,
loss, and training time to rank hyperparameter candidates and select the optimum candidate, addressing the
limitations of relying on solely one criterion, mainly accuracy for optimization, by incorporating a trade-off
between performance and computational efficiency constraints by utilizing multi-objective criteria including
accuracy, loss, and training time, which are critical for resource-limited agricultural deployment scenarios.
● Providing an interpretable and computationally efficient optimization mechanism for hyperparameter selection
using fuzzy linguistic rules.
● Introducing a resource-aware optimization design for plant disease classification, incorporating early stopping,
convolutional layer freezing, partial-epoch evaluation, and time-aware fitness modeling to reduce computa -
tional cost, while preserving classification performance.
● Conducting a controlled comparison between baseline CNN training and fuzzy-optimized CNN training, ap -
plying a conventional AlexNet model structure as the baseline model. It is then systematically optimized us -
ing the proposed neuro-fuzzy hyperparameter optimization strategy, while maintaining the same structure of
AlexNet model, demonstrating consistent improvements and performance gains without altering the underly -
ing CNN architecture.
● Achieving a significant enhancement in fuzzy-guided hyperparameter optimization on the optimized model
compared to the baseline model due to the superiority of the proposed neuro-fuzzy hyperparameter optimiza -
tion strategy.
● Introducing robustness by performing a comprehensive experimental evaluation on multiple plant disease
datasets using standard evaluation metrics, confusion matrices, and visual performance analysis to confirm the
effectiveness of the proposed neuro-fuzzy optimization framework.
● Demonstrating performance gains from fuzzy-guided hyperparameter optimization compared to baseline CNN
training.
● Validating the approach on multiple agricultural disease datasets using extensive quantitative and visual
evaluation.
Materials and methods
There are two types of parameters that are used and adjusted in CNN architectures’ configuration. The first type of
such parameters is related to those parameters that the network automatically adjusts during learning. The second
type is related to those hyperparameters that must be defined before training, which are critical configurations
that control the learning process and require careful selection to ensure optimal model performance, encompass-
ing aspects such as the learning rate, the dropout, the number of layers, the number of neurons per layer, and the
batch size.
Hence, our proposed research is concerned with the second type of parameters related to those hyperparam -
eters that need to be adjusted before training, aiming to achieve optimum performance and accuracy. How -
ever, the process of selecting and adjusting the second type of hyperparameters itself is divided into two chief
approaches: the first one is concerned with choosing such hyperparameters manually, whereas the second one
is concerned with selecting such hyperparameters automatically. Manual selection typically necessitates high
experience from experts, requiring a deep understanding of how hyperparameters impact the model behavior to
guarantee the selection of the best and optimum hyperparameters to provide the optimum performance of CNN
models, which is a difficult task to achieve. It depends completely on user experience. In contrary, automatic
selection is more comprehensive, and it guarantees better performance than manual selection without requiring
reliance on personal experience. Automatic selection is divided into multiple automatic search strategies, which
are more commonly used but they provide high computational costs, as they involve systematically exploring
different hyperparameter combinations to be estimated according to the performance of CNN models45.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Proposed methodology
This section presents the proposed methodology for automated plant disease classification using deep learning.
It includes a description of the dataset, preprocessing and augmentation techniques applied to the images, and
architecture and training strategy of the implemented model.
Dataset description and preprocessing
Experiments were conducted on publicly available plant disease image datasets commonly used for benchmark-
ing deep learning–based agricultural applications. Each dataset consists of RGB leaf images representing mul -
tiple disease categories as well as healthy samples. The datasets were organized and randomly split into training,
validation, and testing subsets (70%:20%:10%), respectively, ensuring class balance across splits.
All images were resized to a fixed spatial resolution (224,224), which is compatible with the baseline deep
learning architecture of AlexNet. Pixel intensities were normalized to stabilize network training. Standard data
augmentation techniques, including horizontal flipping, rotation, and slight zooming, were applied during train -
ing to improve generalization and reduce overfitting. No augmentation was applied during validation or testing.
Datasets description
Our proposed model was evaluated on four public datasets to verify its superiority as follows:
The first and the second datasets are taken and downloaded from 46, where the description of both datasets is
as shown below:
● The dataset No 1 (DS1) is collected from Mendeley Data proposed by Sethy et al.47, consisting of 5932 images
with four classes of diseases: Bacterial blight, Blast, Brown Spot, and Tungro.
● The dataset No 2 (DS2) is collected from Mendeley Data proposed by Antony and Prasanth 48, consisting of
4684 images with three classes of diseases: Bacterial Blight, Brown Spot, and Leaf Smut.
● The dataset No 3 (DS3) is collected from Kaggle, consisting of 11,790 images with nine classes of diseases:
Bacterial blight, Brown Spot, Healthy Rice Leaf, Leaf Blast, Leaf Scald, Narrow Brown Leaf Spot, Neck
Blast, Hispa, and Sheath Blight. It was proposed by Lokesh R49.
● The dataset No 4 (DS4) is taken from 50, where the dataset is Plant village dataset. It exists on Kaggle and
GitHub51,52, consisting of 20,640 images with fifteen classes of diseases representing three main crops: pepper,
tomato, and potato.
The following tables, Tables 1, 2, 3, and 4, provide samples for each class in the four datasets used in experiments.
We inserted 4 tables, and each table specifies the total number of images in each category, the number of
images in the training set in each category, the number of images in the validation set in each category, and the
Table 1 The dataset No 1, namely rice diseases dataset (DS1).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
number of images in the test set in each category. These additional tables provide more description for details of
the structure of the benchmark datasets used in validating our proposed fuzzy-guided hyperparameter optimiza -
tion framework.
Dataset 1:
See Table 5
Dataset 2:
See Table 6
Dataset 3:
See Table 7
Dataset 4:
See Table 8
System overview
The workflow of our proposed algorithm can be divided into the following processes:
- Baseline CNN training
- Fast Hyperparameter Candidate Evaluation
- Fuzzy-Guided Hyperparameter Ranking
- Final staged training with selected hyperparameters
(1) Baseline CNN architecture.
The baseline deep learning model follows established CNN architectures commonly used in image classifica -
tion tasks7,53. AlexNet-based architecture was employed as the baseline model for plant disease classification.
AlexNet-based CNN is adopted due to its balance between representational capacity and computational effi -
ciency. Batch normalization and dropout are used to improve generalization.
The network follows a standard deep learning design composed of convolutional layers for hierarchical feature
extraction, followed by fully connected layers for classification. Model training was performed using the Adam
optimizer54 with categorical cross-entropy loss. Data augmentation techniques were applied to improve general-
ization following standard practices in deep learning–based image analysis55. Model performance was evaluated
using accuracy, precision, recall, and F1-score, which are standard metrics for classification assessment56.
Initial hyperparameter values were selected based on commonly adopted configurations reported in prior stud-
ies. This baseline model serves two purposes: first, as a reference for evaluating final classification performance
Table 2 The dataset No 2, namely rice diseases dataset (DS2).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
represented in the optimized model; second, as a source of pretrained weights used for warm-starting candidate
hyperparameter evaluations to provide a fast and efficient optimization approach for candidate hyperparameter
configurations. The baseline training was conducted using full dataset exposure and end-to-end optimization to
obtain stable feature representations and extraction. The fuzzy inference system employed in this study is based
on classical fuzzy set theory 57 and Mamdani inference 58, with centroid defuzzification used to compute crisp
ranking scores.
The overall workflow of our proposed algorithm is shown in Fig. 3, where the different stages constituting our
proposed algorithm are illustrated as follows:
(2) Fast hyperparameter candidate evaluation.
Table 3 The dataset No 3, namely rice diseases dataset (DS3).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Table 4 The dataset No 4, namely multiple agricultural crop diseases Plant Village dataset (DS4).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
To reduce the computational burden of exhaustive hyperparameter search, a fast candidate evaluation strategy
was employed. Instead of fully training each hyperparameter configuration, candidate models were evaluated
using partial training with warm-started weights. Specifically, pretrained weights from the baseline model were
loaded, and convolutional layers were frozen to preserve learned feature representations. Only, the classification
layers were retrained during candidate evaluation.
Each candidate configuration was trained for a limited number of epochs using a reduced subset of the training
data. This process provides relative performance indicators rather than final accuracy. For each candidate, three
evaluation metrics were recorded: validation accuracy, validation loss, and training time. These metrics capture
classification effectiveness, convergence behavior, and computational efficiency, respectively.
The objective of this stage is not to obtain the best-performing model directly, but to generate informative
signals that distinguish promising hyperparameter configurations from suboptimal ones at a fraction of the com-
putational cost.
(3) Fuzzy-guided hyperparameter ranking.
The recorded performance metrics from fast evaluation were used as inputs to a Mamdani fuzzy inference sys -
tem designed to rank hyperparameter candidates, as shown in Fig. 4. Validation accuracy, loss, and training time
Category Total number of
images in each
category
Number of images
in training set in
each category
Number of images
in validation set in
each category
Number of
images in test
set in each
category
Bacterial Leaf Blight 1197 854 230 113
Brown Spot 1546 1091 307 148
Healthy Rice 1085 753 238 94
Leaf Blast 1748 1256 318 174
Leaf scald 1332 921 268 143
Narrow Brown Leaf Spot 954 653 195 106
Neck_Blast 1000 707 190 103
Rice Hispa 1299 912 259 128
Sheath Blight 1629 1106 353 170
Total 11,790 8253 2358 1179
Table 7 Distribution of
dataset 3 (DS3).
Category Total number of
images in each
category
Number of images
in the training set in
each category
Number of images in
validation set in each
category
Number of
images in
the test set in
each category
Bacterialblight 1604 1152 302 150
Brownspot 1620 1112 326 182
Leafsmut 1460 1015 308 137
Total 4684 3279 936 469
Table 6 The distribution of
dataset 2 (DS2).
Category Total number of
images in each
category
Number of images
in the training set in
each category
Number of images in
validation set in each
category
Number of
images in test
set in each
category
Bacterialblight 1584 1125 325 144
Blast 1440 1001 286 153
Brownspot 1600 1110 330 160
Tungro 1308 917 255 136
Total 5932 4153 1186 593
Table 5 The distribution of
dataset 1 (DS1).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
were fuzzified into linguistic variables (e.g., low, medium, high) using predefined membership functions. These
Table 8 Distribution of dataset 4 (DS4).
Category Total number of
images in each
category
Number of images in
training set in each
category
Number of images in
validation set in each
category
Number of
images in test
set in each
category
Pepper__bell___Bacterial_spot: 997 695 200 102
Pepper__bell___healthy 1478 1019 306 153
Potato___Early_blight 1000 715 177 108
Potato___Late_blight 1000 715 185 100
Potato___healthy 152 100 37 15
Tomato_Bacterial_spot 2127 1474 454 199
Tomato_Early_blight 1000 709 181 110
Tomato_Late_blight 1909 1366 373 170
Tomato_Leaf_Mold 952 673 180 99
Tomato_Septoria_leaf_spot 1771 1218 361 192
Tomato_Spider_mites_Two_spotted_spider_mite: 1676 1162 351 163
Tomato__Target_Spot 1404 1019 259 126
Tomato__Tomato_YellowLeaf_Curl_Virus 3209 2251 635 323
Tomato__Tomato_mosaic_virus 373 252 79 42
Tomato_healthy 1591 1079 350 162
Total 20,638 14,447 4127 2064
Fig. 3 Overall architecture of the proposed framework.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
variables represent qualitative interpretations of candidate performance.
A rule base was constructed to encode expert knowledge regarding desirable trade-offs. For example, candi -
dates with high accuracy, low loss, and short training time were assigned higher preference scores, while configu-
rations with poor accuracy or excessive training time were penalized. Rule firing strength was computed using
standard fuzzy logic operators, and the outputs of all activated rules were aggregated.
Defuzzification was performed using the centroid method to produce a crisp score for each candidate configu-
ration. This score represents an overall quality measure that integrates performance and efficiency. Candidates
were then ranked according to their fuzzy scores, and the top-ranked configuration was selected for final model
training.
(4) Final staged training with selected hyperparameters.
The hyperparameter configuration selected by the fuzzy ranking process was trained end-to-end using the full
training dataset and unfrozen network layers. This final training stage follows standard deep learning proce -
dures without approximation. Model performance was evaluated on an unseen test set using different evaluation
metrics including accuracy, precision, recall, and F1-score. Confusion matrices were also generated to analyze
class-wise performance. After fuzzy-guided hyperparameter ranking process is done in previous step to ensure
that computational efficiency is achieved during selecting the best hyperparameter candidate, the two-stage opti-
mization framework is performed to ensure that the final classification performance maintains its superior results
without any deterioration as shown in Fig. 5.
Methods
Early stopping strategy and training configuration
Early stopping was employed in all training phases during model training to prevent overfitting in addition to
reducing unnecessary computational cost and improving computational efficiency. In all cases, the validation
accuracy was selected as the monitoring criterion, and the best model weights were restored automatically when
training was terminated.
Fig. 5 Two-stage training strategy
of the optimized model.
Fig. 4 Flowchart of Mamdani fuzzy evaluation and ranking process.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Different patience values were applied across training stages according to their respective objectives. During
baseline model training, a relatively small patience value was used to establish a stable reference model, while
preventing unnecessary training beyond the point of optimal generalization. In the fuzzy logic–based hyper -
parameter evaluation stage, an aggressive early stopping configuration was adopted to enable rapid ranking of
candidate hyperparameter sets with minimal computational overhead. Finally, during optimized model training,
a larger patience value was employed to allow sufficient convergence under the selected hyperparameters. This
adaptive early stopping strategy was executed through analysis of our proposed algorithm, and it resulted in
improved training efficiency without compromising classification performance.
Baseline model training
For the baseline AlexNet model, early stopping was configured with a patience of 2 epochs. Training was termi-
nated when the validation accuracy did not improve for two consecutive epochs. This relatively small patience
value was selected to avoid overfitting during the initial model training and to provide a stable reference model
for subsequent optimization stages.
Fuzzy candidate evaluation
During the fuzzy logic–based hyperparameter evaluation stage, each candidate configuration was trained using
a very small early-stopping patience of 1 epoch. This aggressive stopping strategy was intentionally adopted to
enable rapid evaluation and ranking of multiple hyperparameter candidates without incurring the computational
cost of full convergence. Since this stage is used only for relative comparison rather than final model deployment,
early termination does not negatively affect the selection process.
Optimized model training
The optimized model was trained in two stages: an initial training stage and a fine-tuning stage. In both stages,
early stopping was configured with a patience of 6 epochs. A larger patience value was chosen to permit the opti-
mized model to train more efficiently until reaching stabilization and fully benefit from training the model with
the optimum hyperparameters’ selection. This approach prevents early termination and ensures convergence to a
better-performing solution.
Choice of validation accuracy as early stopping criterion
Validation accuracy was selected as the early stopping criterion instead of validation loss, because the primary
objective of the proposed system is correct classification of plant disease categories. While validation loss reflects
optimization behavior, it may continue to decrease even when classification performance stagnates or degrades
due to over-confidence or class imbalance. Validation accuracy provides a more direct and interpretable measure
of generalization performance for multi-class classification tasks and aligns more closely with the evaluation
metrics reported in this study.
Scientific justification of different patience values
Different early-stop patience values were deliberately assigned to different training stages based on their respec-
tive objectives. The baseline training stage uses a smaller patience value to establish a reliable reference model,
while avoiding unnecessary overfitting. The fuzzy candidate evaluation stage adopts the smallest patience value
to prioritize computational efficiency and rapid hyperparameter ranking. In contrast, the optimized training stage
employs a larger patience value to accommodate slower convergence and allow the model to fully benefit from
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
the selected hyperparameters. This staged early stopping strategy balances training efficiency, model stability,
and final performance.
Study on early stopping configuration
An experimental study was conducted to analyze the impact of early stopping configuration on classification
performance and computational efficiency. Specifically, the effects of monitoring metric selection and patience
value adjustment across training stages were examined.
Results indicate that using validation accuracy as the early stopping criterion leads to more stable generaliza -
tion performance compared to loss-based stopping, particularly in the presence of class imbalance. Moreover,
employing different patience values across training stages proved effective in balancing convergence stability and
training efficiency. The baseline model benefited from early termination without performance degradation, while
the fuzzy hyperparameter evaluation stage achieved substantial reductions in evaluation time due to aggressive
early stopping. In contrast, the optimized model required a larger patience value to fully exploit the selected
hyperparameters, resulting in superior classification accuracy.
Test-set evaluation and time analysis
Performance comparison between the baseline and optimized models was conducted on the held-out test set using
accuracy, precision, recall, and F1-score. In addition, test evaluation time was measured to assess inference effi-
ciency. Test evaluation time denotes the wall-clock time required to perform forward inference and metric com-
putation on the complete test dataset, measured in seconds. This metric reflects deployment-relevant efficiency
and is independent of training time.
Choice of AlexNet as the basic network architecture
Although more recent architecture such as ResNet, EfficientNet, and MobileNet have demonstrated strong per -
formance in large-scale image classification tasks, AlexNet was intentionally selected in this study for several
methodological and practical reasons as follows:
First, the primary objective of this work is not merely to achieve the highest possible classification accuracy,
but rather to investigate and evaluate the effectiveness of the proposed fuzzy-based hyperparameter optimization
framework. AlexNet provides comparatively simpler and more interpretable architecture, making it more suit -
able for analyzing the direct impact of the proposed optimization strategy on training behavior, parameter tuning,
convergence stability, and classification performance.
Second, AlexNet contains a moderate number of layers and parameters compared with very deep residual
architectures. This characteristic reduces computational complexity and training overhead, which is particularly
important for repeated optimization iterations performed during the fuzzy hyperparameter search process. Using
deeper networks such as ResNet or EfficientNet would significantly increase optimization time and computa -
tional cost, especially when multiple candidate configurations must be evaluated.
Third, AlexNet remains a well-established benchmark architecture in agricultural image classification and
plant disease detection studies. Its relatively straightforward structure enables fair evaluation of optimization
techniques without introducing excessive architectural complexity that could obscure the contribution of the
proposed fuzzy optimization module.
Fourth, although MobileNet and EfficientNet are computationally lightweight during inference, their archi -
tectural designs involve advanced components such as depthwise separable convolutions, compound scaling
strategies, squeeze-and-excitation mechanisms, and complex optimization dynamics. These characteristics may
complicate the interpretation of the direct influence of the proposed fuzzy optimization mechanism on parameter
tuning and convergence behavior.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
In contrast, AlexNet provides a more transparent experimental platform for studying optimization effects, and
it is mainly selected because its architecture is comparatively simple, modular, and widely recognized as a clas -
sical baseline in image classification research. This simplicity allows clearer analysis of the contribution of the
proposed fuzzy optimization strategy without the additional complexity introduced by highly optimized modern
architectures.
In addition, the employed datasets are relatively limited in size compared with large-scale datasets such as Ima-
geNet. Extremely deep architectures may increase the risk of overfitting under limited-data scenarios, whereas
AlexNet provides a good balance between representational capability and generalization performance when com-
bined with regularization techniques such as dropout, batch normalization, early stopping, and data augmentation.
Furthermore, the proposed framework is architecture-independent and can be extended to more advanced
CNN backbones in future work, including ResNet, EfficientNet, and MobileNet. The current study therefore
focuses on validating the effectiveness of the fuzzy optimization mechanism using computationally efficient and
experimentally stable baseline architectures.
Experimental results demonstrated that the optimized AlexNet model achieved strong classification per -
formance and stable convergence behavior, confirming that the proposed optimization framework effectively
enhances model performance even when applied to classical CNN architecture.
Therefore, AlexNet was selected not because it is the newest architecture, but because it provides a suitable
experimental platform for objectively evaluating the contribution and effectiveness of the proposed fuzzy opti -
mization framework.
Mathematical formulation of FIS-based hyperparameter ranking
A formal mathematical formulation of the fuzzy inference system (FIS) is illustrated to strengthen the theoretical
foundation of the proposed framework as follows.
The proposed optimization framework formulates hyperparameter selection as a fuzzy multi-objective deci -
sion problem, where the process of FIS-based hyperparameter ranking is divided into the following steps as
shown below.
(a) Input.
For each candidate hyperparameter configuration θi = (learning rate, dropout rate).
The system evaluates three normalized performance metric inputs such as validation accuracy (𝐴𝐴𝑖𝑖), validation
loss (𝐿𝐿𝑖𝑖) and training time (𝑇𝑇𝑖𝑖), where 𝐴𝐴𝑖𝑖 , 𝐿𝐿𝑖𝑖 and 𝑇𝑇𝑖𝑖 ∈ [0,1] , and represents the candidate hyperparameter configura-
tion index, where higher values for the three performance metric inputs 𝐴𝐴𝑖𝑖 , 𝐿𝐿𝑖𝑖 and 𝑇𝑇𝑖𝑖 indicate better performance
after normalization, where:
● 𝐴𝐴𝑖𝑖 represents the accuracy of candidate
● 𝐿𝐿𝑖𝑖 represents the loss of candidate
● 𝑇𝑇𝑖𝑖 represents the training time of candidate
(b) Fuzzification.
Each input variable is fuzzified using triangular membership functions as μ(x; a,b,c) where a, b, and c denote the
lower bound, peak, and upper bound of the fuzzy set, respectively.
(c) Rule firing.
The Mamdani fuzzy inference system computes the firing strength 𝛼𝛼(𝑖𝑖𝑖𝑅𝑅 of each fuzzy rule 𝑅𝑅 using the minimum
operator:
𝛼𝛼(𝑖𝑖𝑖𝑅𝑅 = min(𝜇𝜇𝐴𝐴𝑅𝑅 (𝐴𝐴𝑖𝑖) , 𝜇𝜇𝐿𝐿𝑅𝑅 (𝐿𝐿𝑖𝑖), 𝜇𝜇𝑇𝑇𝑅𝑅 (𝑇𝑇𝑖𝑖) (1)
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
where.
𝑅𝑅 represents the fuzzy rule index.
𝜇𝜇𝐴𝐴𝑅𝑅 represents the membership degree of validation accuracy for rule 𝑅𝑅𝑅
𝜇𝜇𝐿𝐿𝑅𝑅 represents the membership degree of validation loss for rule 𝑅𝑅𝑅
𝜇𝜇𝑇𝑇𝑅𝑅 represents the membership degree of validation time for rule 𝑅𝑅.
𝛼𝛼(𝑖𝑖𝑖𝑅𝑅 represents the firing strength of fuzzy rule 𝑅𝑅 for candidate .
Then the implication stage truncates the output membership function as follows:
𝜇𝜇 ̀𝐶𝐶𝑅𝑅 (𝑦𝑦) = 𝑚𝑚𝑚𝑚𝑚𝑚 (𝛼𝛼(𝑖𝑖)𝑅𝑅 , 𝜇𝜇𝐶𝐶𝑅𝑅 (𝑦𝑦)) (2)
where.
𝜇𝜇 ̀𝐶𝐶𝑅𝑅 (𝑦𝑦𝑦 represents the clipped output fuzzy set for rule 𝑅𝑅.
𝜇𝜇𝐶𝐶𝑅𝑅 (𝑦𝑦𝑦 represents the membership degree of the fuzzy output set for rule 𝑅𝑅𝑅
(d) Aggregation.
All rule outputs are aggregated using the maximum operator as follows:
𝜇𝜇𝐶𝐶 (𝑦𝑦) = 𝑚𝑚𝑚𝑚𝑚𝑚 𝑅𝑅 (𝜇𝜇 ̀𝐶𝐶𝑅𝑅 (𝑦𝑦)) (3)
where 𝜇𝜇𝐶𝐶(𝑦𝑦𝑦 represents aggregated fuzzy output for all rules.
(e) Defuzzification.
Finally, centroid defuzzification is used to compute the final fitness score as follows:
𝐹𝐹𝑖𝑖 = ∫ 𝑦𝑦𝜇𝜇𝐶𝐶(𝑦𝑦𝑦𝑦𝑦𝑦𝑦∫ 𝜇𝜇𝐶𝐶(𝑦𝑦𝑦dy (4)
where.
𝐹𝐹𝑖𝑖 represents the final fuzzy fitness score for the candidate 𝑖𝑖𝑖
Hence, 𝐹𝐹𝑖𝑖 provides the final fuzzy fitness value used to rank candidate hyperparameter configurations. This
formulation transforms hyperparameter optimization into an interpretable fuzzy decision-making framework
capable of balancing classification performance and computational efficiency, simultaneously.
The membership functions for accuracy, loss, and time, along with a summary of the whole FIS-based hyper-
parameter ranking and optimization process, are depicted in Fig. 6.
Computational complexity analysis
Computational complexity analysis is illustrated in the subsequent section to provide more analysis of the pro -
posed framework as shown below.
The proposed fuzzy-guided HPO framework significantly reduces computational cost compared with tradi -
tional optimization approaches.
Let:
● N denote the number of candidate configurations,
● E denote the number of training epochs,
● D denote the dataset size
● P denote the number of trainable parameters.
The computational complexity of conventional exhaustive CNN hyperparameter optimization can be approxi -
mated as:
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
𝑂𝑂 𝑂 𝑂𝑂𝑂𝑂𝑂𝑂𝑂𝑂𝑂𝑂𝑂 𝑂 (5)
because each candidate requires full independent CNN training.
In contrast, the proposed framework reduces optimization complexity through:
(i) Warm-start initialization,
(ii) Temporary convolution-layer freezing,
(iii) Partial candidate evaluation using reduced training epochs,
(iv) Reduced number of candidate configurations
(v) Reduced training dataset size, where training is on a subset of the whole training dataset
(vi) Lightweight Mamdani fuzzy ranking.
The fuzzy inference itself has very low computational complexity:
𝑂𝑂𝑂𝑂𝑂 𝑂 𝑂𝑂𝑂 (6)
Fig. 6 The membership function shapes for accuracy, loss, and time with a summary of FIS-based hyperparameter ranking
and optimization process.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
where:
● R denotes the number of fuzzy rules,
● M denotes the number of membership evaluations.
Since both R and M are small constants, the fuzzy reasoning overhead is negligible compared with CNN training
complexity.
Hence, the computational complexity of the proposed method can be calculated as follows:
𝑂𝑂𝑂𝑂𝑂 𝑂 𝑂𝑂 ′ 𝑂𝐷𝐷 𝑂𝐷𝐷 _𝑓𝑓𝑓𝑓𝑓𝑓𝑓𝑓𝑓𝑓𝑓𝑓 𝑓 𝑂𝑂 𝑂𝑅𝑅 𝑂𝑅𝑅 ) (7)
where E'≪ E due to reduced evaluation epochs.
P_frozen ≪ P, since convolution layers are frozen during candidate evaluation.
As a result, the proposed method achieves lower computational cost than that of conventional Grid Search,
Genetic Algorithms, Bayesian Optimization, and Particle Swarm Optimization approaches that require repeated
full-network retraining.
Convergence behavior
Convergence behavior is discussed in the subsequent section to enrich the analysis of the proposed framework
as shown below.
Although fuzzy inference systems do not possess gradient-based convergence guarantees similar to convex
optimization methods, the proposed framework exhibits stable empirical convergence behavior due to several
design characteristics:
● Candidate evaluation is bounded within normalized fuzzy membership intervals [0, 1],
● Mamdani aggregation produces smooth fitness transitions between neighboring hyperparameter configurations,
● Warm-start initialization stabilizes CNN parameter adaptation,
● Two-stage optimization progressively refines the learned representation.
Experimental results demonstrate that fuzzy fitness values converge consistently toward high-performing can -
didate regions, while avoiding unstable oscillatory behavior commonly observed in stochastic metaheuristic
optimization methods. Furthermore, the proposed framework converges faster in practice than evolutionary
optimization techniques, because it does not require population evolution, mutation, or repeated probabilistic
sampling.
Results
The experiments have been executed on four datasets, and the results attained are demonstrated as follows:
The first rice disease dataset 1 (DS1)
The experiments have been executed on the first rice disease dataset (DS1) with a total of 5930 images divided
into 4 classes. As seen in accuracy/ loss curves in the rice disease dataset 1 demonstrated in Fig. 7, optimized train
and validation results represented by continuous green line and dotted red line outperform baseline train and vali-
dation results represented by continuous blue line and dotted orange line. These results prove the superiority of
our proposed algorithm due to the use of fuzzy logic in hyperparameter optimization, where optimized train and
validation results show almost the optimum performance represented with the maximum accuracy of 99.66%.
The whole experiments have been executed on unseen images in the test set, composed of 10% of the total
number of images in DS1, to ensure generalization. Thus, the test set in DS1 contains a total of 593 images from
all classes.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
As seen in the confusion matrices of both baseline and optimized models shown in Figs. 8 and 9, the number
of correctly classified images in the optimized model is more than the number of correctly classified images in
the baseline model for all classes, as illustrated in Table 9.
The different measurements achieved for each class solely with the baseline model in terms of different evalu-
ation metrics, including precision, recall, and F1-score, in addition to the number of images in each class in DS1,
are demonstrated in Table 10.
The overall accuracy is computed with the following equation:
Fig. 8 Confusion matrix of base-
line model on DS1.
Fig. 7 Accuracy/loss curves on rice disease dataset 1 (DS1).
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 𝐴 𝑇𝑇𝑇𝑇𝑇𝑇𝐴𝐴𝑇𝑇 𝑇𝑇𝑇𝑇 𝑇𝑇𝑇𝑇 𝐴𝐴𝑇𝑇𝐴𝐴𝐴𝐴𝑇𝑇𝐴𝐴𝑇𝑇 𝑇𝑇𝐴𝐴𝑇𝑇𝑇𝑇𝑇𝑇 𝐴𝐴𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝐴𝐴𝑇𝑇 𝑇𝑇𝑇𝑇 𝑇𝑇𝑇𝑇 𝑇𝑇𝐴𝐴𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇𝑇 (8)
𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴𝐴 𝐴 𝑇𝑇𝑇𝑇 𝑇 𝑇𝑇𝑇𝑇𝑇𝑇 𝑇𝑇𝑇𝑇𝑇 𝑇𝑇𝑇𝑇𝑇 𝑇𝑇𝑇𝑇𝑇 𝑇𝑇 (9)
Since accuracy is a global evaluation metric, it is computed using total predictions in all classes, not using macro
average or weighted average, which depends on individual predictions in all classes.
However, other evaluation metrics, including precision, recall, and F1-score, are computed for each class; thus,
macro average for precision, recall, and F1-score are calculated as follows:
Baseline The class Precision (%) Recall (%) F1-score (%) No of images per class
Bacterial blight 66 95 78 144
Blast 86 48 62 153
Brown spot 96 94 95 160
Tungro 94 99 97 136
Table 10 Results of different
evaluation metrics for each
class with the baseline on
DS1.
Class No. of correctly classified images
with baseline model
No. of correctly classified
images with the optimized
model
No. of
images
per
class
Bacterial blight 137 142 144
Blast 74 153 153
Brown spot 150 160 160
Tungro 135 136 136
Table 9 Comparison
between the number of cor-
rectly classified images with
both baseline and optimized
models on DS1.
Fig. 9 Confusion matrix of the
optimized model on DS1.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀 𝑃𝑃𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 1 + 𝑃𝑃𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 2 + ⋯ + 𝑃𝑃𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑛𝑛𝑀𝑀 (10)
𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀 𝑅𝑅𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 1 + 𝑅𝑅𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 2 + ⋯ + 𝑅𝑅𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑛𝑛𝑛𝑛 (11)
𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑀 𝑀𝑀𝑀 𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 1 + 𝑀𝑀𝑀 𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 2 + ⋯ + 𝑀𝑀𝑀 𝑀 𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀𝑀 𝑛𝑛𝑛𝑛 (12)
where n = No. of total classes in each dataset.
Macro average treats all classes equally, where each class contributes equally in calculations regardless of the
number of images in each class.
On the other hand, weighted averages for precision, recall, and F1-score are calculated as follows:
𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊
∑
𝑛𝑛
𝑖𝑖𝑖𝑖(𝑃𝑃𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖 × 𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖)
∑
𝑛𝑛
𝑖𝑖𝑖𝑖 𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖
(13)
𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊
∑
𝑛𝑛
𝑖𝑖𝑖𝑖(𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖 × 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊 𝑖𝑖)
∑
𝑛𝑛
𝑖𝑖𝑖𝑖 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊 𝑖𝑖
(14)
𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊𝑊𝑊 𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑊
∑
𝑛𝑛
𝑖𝑖𝑖𝑖(𝑊𝑊𝑊 𝑊 𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖 × 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖)
∑
𝑛𝑛
𝑖𝑖𝑖𝑖 𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑊𝑊𝑊𝑊𝑊𝑊 𝑖𝑖
(15)
where 𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃𝑃 𝑖𝑖 = precision for class (i).
𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅𝑅 𝑖𝑖 = recall for class (i).
𝐹𝐹𝐹 𝐹 𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹𝐹 𝑖𝑖 = F1- score for class (i).
𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆𝑆 𝑖𝑖= No. of samples in class (i).
=1, 2, …, n
For weighted average, we considered in its calculations the number of images in each class. Each class con -
tributes to the calculations based on its size and its number of images, and hence, the weighted average reflects
the real dataset distribution, where large classes have a larger influence on the weighted average value than small
classes for all evaluation metrics, including precision, recall, and F1-score. When weighted average metrics have
high values, this indicates the existence of classes with large size that highly influence weighted average metrics
values. Hence, the big difference between the number of images among classes in the dataset results in high dis-
crepancy between weighted average metric values and macro average metric values, which indicates high dataset
imbalance; when weighted average metrics are slightly higher than macro average metrics, this indicates that the
dataset fairly balanced. This means that the model is fairly balanced across classes. Hence, the model performs
better on classes with large size, while maintaining relatively consistent performance across classes with small
size.
The overall accuracy, in addition to the macro average and weighted average for precision, recall, F1-score,
and the test evaluation time in seconds for the baseline model on DS1 are presented in Table 11.
As seen in Table 11, weighted average metrics including precision, recall, and F1-score are almost the same as
or slightly different from macro average metrics for the baseline model in DS1, which indicates that the DS1 is
likely fairly balanced but at lower ranges due to using randomly selected hyperparameters for the CNN model.
Table 11 Results: macro average and weighted average for baseline model on DS1.
Baseline Accuracy
(%)
Precision Recall F1-score Total No. of
images in test
set
Test
evaluation
time in
seconds
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
83.65 85.62 86 84.13 84 82.87 83 593 18.61 s
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
The different measurements achieved in each class solely for the optimized model for different evaluation
metrics including precision, recall, and F1-score in addition to the number of images in each class in DS1, are
demonstrated in Table 12.
The overall accuracy, in addition to macro average and weighted average for precision, recall, and F1-score, in
addition to test evaluation time in seconds for the optimized model on DS1 are inserted and presented in Table 13.
As seen in Table 13, weighted average metrics including precision, recall and F1-score are almost the same as
macro average metrics for the optimized model on DS1, which indicates that DS1 is likely fairly balanced but at
higher values compared to baseline results with around 16% improvement due to the use of our proposed fuzzy-
guided hyperparameter optimization algorithm, which reflects the superior impact of our fuzzy guided hyperpa -
rameter optimization algorithm on performance and efficiency of the CNN architecture.
The bar plot for comparison between the baseline and the optimized models for different evaluation metrics
on DS1 is shown in Fig. 10. It indicates that all evaluation metrics, including accuracy, precision, recall, and
F1-score for the optimized model represented by orange bars, outperform all evaluation metrics, including accu-
racy, precision, recall, and F1-score for the baseline model represented by blue bars.
Rice diseases dataset 2
Table 13 Results: macro average and weighted average for the optimized model on DS1.
Optimized Accuracy
(%)
Precision Recall F1-score Total No. of
images in test
set
Test
evaluation
time in
seconds
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
99.66 99.68 99.68 99.65 99.65 99.66 99.66 593 8.11 s
Fig. 10 Bar plot for com-
parison between the baseline
and the optimized models for
different evaluation metrics
on DS1.
Optimized The class Precision (%) Recall (%) F1-score (%) No. of images per class
Bacterial blight 100 99 99 144
Blast 99 100 99 153
Brown spot 100 100 100 160
Tungro 100 100 100 136
Table 12 Results of differ-
ent evaluation metrics for
each class for the optimized
model on DS1.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
The experiments have been executed on the second rice diseases dataset 2 with a total number of images equal
to 4690, divided into 3 classes.
As seen in accuracy/ loss curves on DS2 demonstrated in Fig. 11, optimized train and validation curves are rep-
resented by continuous green line and dotted red line outperform baseline train and validation curves represented
by continuous blue line and dotted orange line. These results prove the superiority of our proposed algorithm for
using fuzzy logic processing in hyperparameter optimization. The optimized train and validation curves show
almost the optimum performance represented with the maximum accuracy of 99.36%.
The whole experiments have been executed on unseen images represented in the test set, composed of 10%
of the total number of images of DS2 to ensure generalization. Thus, the test set in DS2 contains a total of 469
images from all classes in DS2.
As seen in the confusion matrices of both the baseline and the optimized models depicted in Figs. 12 and 13,
the number of correctly classified images in the optimized model is more than the number of correctly classified
images in the baseline model for all classes, as illustrated in Table 14.
The different measurements achieved in each class solely for the baseline model for different evaluation met -
rics including precision, recall, and F1-score, in addition to number of images in each class on DS2 are demon -
strated in Table 15.
The overall accuracy, in addition to macro average and weighted average for precision, recall, and F1-score, in
addition to test evaluation time in seconds for the baseline model in DS2, are inserted and presented in Table 16.
As seen in Table 16, weighted average metrics, including precision, recall, and F1-score, are almost the same
as or slightly different from macro average metrics for the baseline model on DS2. This indicates that DS2 is
likely a fairly balanced dataset, but at lower ranges due to the usage of randomly selected hyperparameters for
the CNN model.
The different measurements achieved in each class are optimized for different evaluation metrics, including
precision, recall, and F1-score, in addition to the number of images in each class in DS2, as demonstrated in
Table 17.
The overall accuracy, in addition to macro average and weighted average for precision, recall, and F1-score, in
addition to test evaluation time in seconds for the optimized model in DS2, are presented in Table 18.
As seen in Table 18, weighted average metrics including precision, recall and F1-score are almost the same
as macro average metrics for the optimized model on DS2, which indicates that DS2 is likely fairly balanced
but at higher values compared to baseline results with around 27% improvement due to the use of our proposed
Fig. 11 Accuracy/ loss curves on DS2.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Fig. 13 Confusion matrix of the
optimized model on DS2.
Fig. 12 Confusion matrix of the
baseline model on DS2.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
fuzzy-guided hyperparameter optimization algorithm. This reflects the superior impact of our fuzzy guided
hyperparameter optimization algorithm on performance and efficiency of CNN architecture.
The bar plot for comparison between the baseline and the optimized models for different evaluation metrics
on DS2 is shown in Fig. 14, which indicates that all evaluation metrics, including accuracy, precision, recall, and
F1-score for the optimized model represented by orange bars, outperform all evaluation metrics, including accu-
racy, precision, recall, and F1-score for the baseline model represented by blue bars.
Rice diseases dataset 3 (DS3):
The experiments have been executed on DS3, with a total No. of 11,790 images, divided into 9 classes.
As seen in accuracy/ loss curves on DS3 demonstrated in Fig. 15, optimized train and validation curves repre-
sented by continuous green line and dotted red line outperform baseline train and validation curves represented
by continuous blue line and dotted orange line. This proves the superiority of our proposed algorithm for using
fuzzy logic processing in hyperparameter optimization, where the optimized train and validation curves show
almost the optimum performance represented with the maximum accuracy of 89.32%.
The whole experiments have been executed on unseen images represented in the test set, composed of 10%
of the total number of images in DS3 to ensure generalization; thus, the test set in DS3 contains a total of 1179
images from all classes in DS3.
Table 16 Results: macro average and weighted average for baseline in DS2.
Baseline Accuracy
(%)
Precision Recall F1-score Total No. of
images in test
set
Test
evaluation
time in
seconds
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
80 82 84 81 80 81 82 469 5.24 s
Table 18 Results: macro average and weighted average for optimization in DS2.
Optimized Accuracy
(%)
Precision Recall F1-score Total No. of
images in test
set
Test
evaluation
time in
seconds
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
Macro aver-
age (%)
Weighted
average (%)
100 100 100 100 100 100 100 469 5.03 s
Optimized The class Precision (%) Recall (%) F1-score (%) No. of images per class
Bacterial blight 100 100 100 150
Brown spot 100 100 100 182
Leaf smut 100 100 100 137
Table 17 Results of differ-
ent evaluation metrics for
each class for optimization
on DS2.
Baseline The class Precision (%) Recall (%) F1-score (%) No. of images per class
Bacterial blight 85 81 83 150
Brown spot 96 71 82 182
Leaf smut 66 92 77 137
Table 15 Results of differ-
ent evaluation metrics for
each class for the baseline
on DS2.
The class No. of correctly classified images in the
baseline model
No. of correctly
classified images
in the optimized
model
Bacterial blight 122 150
Brown spot 129 182
Leaf smut 126 137
Table 14 Comparison
between the number of
correctly classified images
in both the baseline and the
optimized models on DS2.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
As seen in the confusion matrices of both the baseline and optimized models shown in Figs. 16 and 17, the
number of correctly classified images in the optimized model is more than the number of correctly classified
images in the baseline model for all classes, as illustrated in Table 19.
The different measurements achieved in each class are solely for a baseline for different evaluation metrics,
including precision, recall, and F1-score, in addition to the number of images in each class of DS3, are demon -
strated in Table 20.
The overall accuracy, in addition to the macro average and weighted average for precision, recall, and F1-score,
in addition to the test evaluation time in seconds for the baseline model on DS3, are inserted and presented in
Table 21.
Fig. 15 Accuracy/ loss curves on DS3.
Fig. 14 Bar plot for com-
parison between the baseline
and the optimized models for
different evaluation metrics
on DS2.
Article in Press
Scientific Reports
https://doi.org/10.1038/s41598-026-64880-3
Fig. 17 Confusion matrix of the
optimized model on DS3.
Fig. 16 Confusio
论文原文与出版信息
Scientific Reports