Adaptive Metaheuristic-driven Deep Learning Framework for Early-stage Coffee Leaf Disease Detection

S
S. Santhosh Kumar1,*
H
H. Sandeep2
C
C.V. Jayaram3
S
Swaminathan Balasubramanian4
K
K. Bhavani5
K
K.A. Vani6
S
S. Pooja Nayak7
1Department of Computer Science and Engineering, Jain University, Bengaluru- 562 112, Karnataka, India.
2Department of AI and Data Science, Global Academy of Technology, Bengaluru-560 098, Karnataka, India.
3Department of Computer Science and Engineering,Mysore College of Engineering and Management, Mysore-570 028, Karnataka, India.
4Department of CSE, Vel Tech Multi Tech Dr.Rangarajan Dr. Sakunthala Engineering College, Chennai-600 062, Tamilnadu, India.
5Department of Computer science and engineering, B.M.S. College of Engineering, Bengaluru-560 019, Karnataka, India.
6Department of AIML, BNM Institute of Technology, Bengaluru-560 070, Karnataka, India.
7Department of ISE, Dayananda Sagar Academy of Technology and Management, Bengaluru-560 082, Karnataka, India.

Background: Organic acids, amino acids, proteins and carbohydrates are enclosed in coffee leaves.In various applications like coffee leaf tea, therapeutic agents, tobacco substitutes, packaging material, personal hygienic products, ethno medicine and animal feed, coffee leaves were wielded. For preventing disease in coffee plants,research has been done for high potential benefits. For coffee leaf disease classification,the utilized Deep Learning (DL) models were effectively applied. But, to predict tiny portion of disease in the complete leaf area,prevailing techniques were not effective.

Methods: This work proposes a novel technique of Weibull distributed-Golden Flower Pollination Optimization (W-GFPO) YoloV3 and Jaccard Index Fuzzy C-means Clustering (J-FCM)-centric Multi-disease Prediction in Coffee Leaf (WJMPCL).Primarily, to enhance the edge, images are pre-processed. Then, image is given to color spacing model and further given to feature extraction. For training purposes, the features are given to W-GFPO YoloV3 and segmentation is done with labeling. Then, for clustering the images into healthy leaf clusters,coffee leaf miner,phoma tarda,coffee leaf rust and Iron spot, labeled image is given to J-FCM. Utilizing coffee leaf images, proposed mechanism attained superior performance in all experiments when analogized with prevailing approaches.

Result: 98% accuracy level was achieved in the prediction of several illnesses in coffee leaves, surpassing previous studies.

Coffee was estimated to be consumed in nearly 200 million kilogram bags in future, it has been recorded as widely consumed beverages worldwide. Thus, almost all countries that are tropical, it is no wonder that coffee cultivation has been widespread (Bordin et al., 2023). Owing to climatic conditions and multiple coffee diseases that have persisted for several years, this cultivation might get affected. Seeds, beans, stem and roots are major parts while considering multi-diseases of coffee plants (Abd Algani et al., 2023). The photosynthesis of plants is carried out by leaves, they are considered the most important part; thus, health of the fruit and beans is based on leaves.
 
Problem definition
 
For coffee leaf disease prediction, prevailing models suffered from certain issues. From that, most unsolvable issues were taken, which are enlisted further,
• Previous works mainly concentrated on coffee leaf rust disease (CLF) owing to its fine spot prediction on image processing; They did not focus on other diseases owing to color transformation problems in preprocessing and cropping in infected area.
• Segmentation algorithms wielded in prevailing coffee leaf approaches failed to consider multi-disease in a single leaf and also perceptual completion causes high-level vision issues.
• Conventional histogram features, textural features and shape features are not sufficient for predicting disease in the tip of leaf and starting area owing to its inorganic quality. To address the aforementioned problems, this research suggests a novel disease prediction model and major contributions are,
• To develop a coffee leaf disease prediction model for rust, miner, phomatarda and iron spot utilizing G-CLAHE and PURF pre-processing.
• A novel segmentation algorithm with the W-GFPO-YoloV3 model to consider multi-disease in a single leaf and overcome perceptual completion problems.
• To include features like GIST and PHOG; also, conventional features enhanced the prediction accuracy.
 
Related work
 
Marriam et al., (2024) concentrated on overcoming stated limitations by putting forth an innovative, efficient DL model CoffeeNet. The CenterNet approach is improved by including a spatial-channel attention strategy-based ResNet-50 model to compute deep disease-specific sample characteristics. Fragoso et al., (2025) used YOLO models that determine high efficiency in identifying diseases, pests on coffee leaves, outclassing in quantitative metrics, visual assessments of predictions.
       
Mehta et al., (2025) explored an  efficient model based on deep learning, EffResViT-SE FusionNet, that combines EfficientNetB3, ResNet50, ViT, SE blocks to categorize coffee leaf illnesses with precision, robustness. Ardah et al., (2025) proposed an improved deep-learning framework for categorizing coffee diseases that integrates hybrid strategies of CNNs, sophisticated feature-selection algorithms. Complementary feature extraction is achieved by pairing GoogLeNet with ResNet18, while dimensionality reduction is performed using Principal Component Analysis and Singular Value Decomposition.
       
Saveedra et al., (2023) studied the use of marker-assisted recurrent selection to improve disease resistance in Coffea arabica. The study focused on combining resistance genes against coffee leaf rust and coffee berry disease using molecular markers. Santhosh et al. (2021) studied the major challenges involved in coffee leaf disease segmentation and identification. The study highlighted problems such as complex backgrounds, unclear disease boundaries, variations in disease symptoms and similarities between different diseases. Santhosh et al. (2019) presented a review of different image processing techniques used for plant leaf disease detection. The study discussed various steps involved in disease detection, including image acquisition, preprocessing, segmentation, feature extraction and classification. Mandlik et al., (2026) developed a hybrid deep learning model for plant disease detection by combining CNN-based feature extraction with LSTM and BiLSTM models.The proposed method effectively identifies plant diseases from leaf images and demonstrates the potential of deep learning techniques. Prasanna et al. (2026) proposed a multi-scale Vision Transformer (MSViT) combined with EfficientetB3 for plant leaf disease classification. The model extracts multi-scale features and focuses on disease-affected regions,improving robustness of disease classification under noisy and varying background conditions. Sharma et al., (2026) proposed a dual-encoder Variational Autoencoder (VAE) for plant leaf disease detection and classification, integrating ResNet and VGGNet as parallel encoders to extract complementary features. The proposed model achieved 98.86% accuracy for the summer dataset and 97.53% for winter dataset, demonstrating its effectiveness in handling seasonal variations. Jadhav et al., (2026) presented a comprehensive review of plant disease pathology, focusing on the causes of plant diseases, machine learning and deep learning-based disease detection and sustainable disease management strategies. The study discussed how image-based machine learning techniques can facilitate early and automated identification of plant diseases.
Multidisease in coffee leaf prediction approach using GFPO-YOLOv3

Predicting coffee leaf disease utilizing DL has been trendy research; however, it could not predict disease even with small spots. This paper proposes a model for multi-disease prediction in coffee leaf utilizing GFPO-YOLOv3 model as displayed in Fig 1.

Fig 1: Proposed framework for coffee leaf multi-disease prediction model.



Pre-processing
 
Obtained raw images are given for pre-processing and their distortions are suppressed for finding deep features for further processing. Pre-processing was done in three steps:Image resizing,contrast enhancement and edge enhancement.
 
• Contrast enhancement
 
Gaussian-Contrast Limited Adaptive Histogram Equalization (G-CLAHE) has been utilized for contrast enhancement. Conventional CLAHE was taken owing to its operation even in small regions of the image. Still, it has been enhanced by utilizing overall Gaussian value of image to select a threshold Gaussian value is the weighted average of each pixel’s neighborhood. Resized image (Ez) has been given to G-CLAHE for contrast enhancement image as (Ezc)
 
                     
Where,
Vcr-xp = Signifies number of pixels in contextual region (m).
Vcr-yp = Pixels in contextual region (n) number of gray levels is specified as Vgray.
       
CLAHE was then clipped utilizing Gaussian function (G) computed by fraction of mean and standard deviation values of an image.  The parameters of the formulas used in this section are listed in Table 5.

G = y - mean/std dviation                        ...(2)

        Ezc = GCLAHE (Ez)                               ...(3)  
                                              
• Edge enhancement
 
Pansharpening Rational Unsharp Mask Filter (PRUF) has been proposed for edge enhancement. For extracting and amplifying target image’s high-frequency components, then adding them back to target image, a conventional Rational Unsharp Mask Filter has been selected. Primarily, filter (Edi) of PRUF works as,

         Edi = Ezc + ϑ(Ezc-z)                        ...(4)
                                   
Where,
Smoothed image is symbolized as Z that was low pass filter’s output and factor of gain is signified as ϑ. After that, by passing through a high-pass filter,outcomes were modified as,

        Edi = Ezc + ϑa                      ...(5)
 
Where,
α = indicates the input image’s high-frequency component. To find α equation (4) is utilized.
 
                    a = Fy (p,q)Cy(p,q) + Fz(p,q)Cz(p,q)                      ...(6)
Where, 
                    Fy(p,q) = 2y(p,q) - y(p,q-1) - y(p,q+1)                        ...(7)    

            Fz (p, q) = 2y(p, q) - y(p - 1, q) - y(p +  1, q)         ...(8) 
 


   
κ = Constant parameter.
y(p,q) = Pixel intensity value at location.
(p,q) = Input image.
       
These rational operations (Fy,Fz) could enhance details of gradients at low and medium intensities Cy and Cz. Afterward, applying this rational filter to original image,its enhanced image is expressed as,


 
(Ep) symbolizes enhanced image,is mean of the high-frequency component and this image was then mapped utilizing pansharpening mapping. The mapping indexes were obtained by determining threshold of vectors. These indexes assist in finding whether the disease spots were highly thresholded at leaf tip or edge area. It is represented as,
 

                                 
Perimeter and Area indicate perimeter and area of patches correspondingly.
 
Color spacing model
 
After pre-processing, the image was further given to color spacing models to enhance luminance and intensity of image. RGB2HSI, YCbCr, YCgCr, HIS and HSV are the color spacing models utilized. Primarily, input image was taken and converted to a grayscale, which was then plotted in a histogram. It might further undergo extraction of color components that produce an enhanced image as depicted in Fig 2.

Fig 2: Proposed color space model working procedure.


 
RGB2HSI color spacing
 
Edge-enhanced images were attained here. Images were initially at chrominance Red (α), Green (β) and Blue (δ) values, which were then converted to (Hue Saturation Intensity) HSI as follows





HSV color spacing
 
Same as the HSI model, Hue, saturation were computed for (Ep) with formulation and V is value or brightness of the color.





                 V = max (α, β, δ)                       ...(18)
YCbCr Color spacing
 
Here, obtained edge-enhanced image (Ep) is transformed to YCbCr, as Y is luminance,Blue chrominance is Cb and red is Cr.

YCgCr color spacing
 
Similar to YCbCr, green chrominance was signified as Cg and this also gets input as edge enhanced image (Ep) and generates YCgCr as,


    
The overall enhanced image obtained out of color spacing is exemplified as  (Eoe) and this image was given to the next stage.
 
Feature extraction
 
The images obtained (Eoe) were then given to feature extraction to identify multi-diseases in coffee leaves. Features extracted here are both conventional (Color and Texture) and additional features (Gist and PHOG). To enhance the classifier’s accuracy, additional features were added in feature extraction. The features extracted are explicated further,
 
                               ΓF = {Γ1, Γ2, Γ3, Γ4}                          ...(21)
Texture features (Γ1)
 
These features are extracted since they have important details about structural arrangement of surfaces with their relationships.Texture features extracted here are,
 
Contrast(Con)
 

                    
where,
L = Limit of intensity value of image.
Homogeneity (Hom)


 
Dissimilarity (Disim)


 
Correlation (corr)


 
where,







Variance


    
Color features (Γ2)
 
Color features were extracted for finding representation of image’s pixel values at position (p,q). Let the input image has dimensions f × g. Color features extracted are,
Mean (N)


                      
Deviation (ϕ)
 

 
Gist feature (Γ3)
 
The Gist feature was selected as it could describe infected area even with a lower dimensional matrix and further provided a spatial structure of infected area. Gist feature has a collection of perceptual dimenwsions. It can overcome perceptual completion problem.Feature extraction technique filters input images with several low-level visual feature channels like flicker, motion, orientation, color, intensity. These filter output maps were computed by,

                                                    My (p, q) = |Oy (p) Θ Oy (q)|                             ...(33)                                       
Where,
Mapping filter output is specified as My, pixels were mapped at varying scales, denoted as Θ and scale difference was indicated as. These results of feature map when given through orientation channels resulted in,

       M y (p) = Gabor (θy, p)                   ...(34)
Were,
θy = Symbolizes image’s different spatial angles.
        From this computation, a low level of center features was attained.
 
Pyramid of histogram of oriented gradients (PHOG) features (Γ4)
 
PHOG features describe an image by its local shape along with spatial layout,were spatial descriptors. These features enclosed HOG over every single sub-region of image at every resolution stage. Histogram of Oriented Gradients (HOG) was computed from an image for varying bin count (Bc). PHOG features attained for an image is a weighted combination of above HOG features (HB), which is expressed as,
 
           Γ4 = Bc ∈ HB                          ...(35)
W-GFPO YOLOv3 segmentation
 
By utilizing W-GFPO YoloV3 model, segmentation of multi-diseased areas in leaves was done by taking input image Eoe. The conventional YoloV3 model was selected since it has an efficient selection of multi-disease in a single subject. Utilizing leaky Relu or Relu as activation function failed in training when a non-linear input pixel neighborhood occurs. Thus, to surpass this issue, Learnable Leaky ReLU is activated, which has advantage of learning deeply with features and obtaining outcome. Fig 3 elucidates overall framework of W-GFPO Yolo V3.

Fig 3: W-GFPO Yolo V3 architecture.


       
Yolov3 framework utilized DarkNet-53 as the basic network. Model contains 106-layer network and significant,familiar structure is made by deeper network level.A hop layer connection along with a residual module with multi-dimensional detection and upsampling feature fusion technique is enclosed in framework.
 
Weibull distributed- golden flower pollination optimization algorithm (W-GFPO)
 
The target score of each bounding box on different scales is predicted by Yolo-V3 and values are chosen using W-GPFO. Conventional Golden Flower Pollination Optimization (GFPO) algorithm was selected. Although it has advantage of finding infected area of disease with less convergence, still it has a maximum value constraint on updating stage. To overcome issue,it was selected using weigh bull distribution strategy.W-GPFO creates population and solution space. For searching purpose,Weibull distribution has been adopted and given as follows,


 
The value w signifies scale parameter, j epitomizes shape parameter and fitness function of maximum threshold is exemplified as fi.After that, this fitness function was selected grounded on obtained features that are less than threshold and is given as,
 
    fi = Max(Γ)                     ...(37)
                                             
At this evaluation stage, a heavy-tailed probability distribution algorithm has been utilized that undergoes global explorative process and random selection was done with Weibull distribution given as:
 
                                  fit+1 = fit + stp*Q(fi)*(fit - g*)                           ...(38)
 
Where,
fi t+1 = Specifies solution vector at t+1 iteration.
Likewise; Fit is solution vector at t iteration.
Q(fi) = Indicates the Weibull distribution.
g* = Symbolizes global solution.
stp.= Srep size.
       
Utilizing the switching probability, global and local search processes were controlled. This probability permits pollens to investigate the global as well as local pollination functions.Golden selection was done to divide search space into line segments as follows:


                                                                 
v indicates inverse golden ratio and golden ratio(∃) was a constant value. After,separate search equations were obtained as:

                           fi1 = j + 0.618(w - j)                        ...(40) 

                            fi2 = j + 0.618(w - j)                      ...(41)
 
In 40 and 41 equations, fi1 and fi2 are two solution vectors. These new intervals were applied for subsequent iteration. Step size is computed by disparity between individuals in current population and given as:

                          fi0 = low + (up - low)* rand(R)                  ...(42)
 
Here, solution vector attained via intensification process is represented as fi0. Initial solution obtained was dispersed uniformly over the search area  utilizing following equation:

                      fit+1 = fit + stp*tanθ* (fit - g*)               ...(43)
             
From optimized solution [Q(x)], only one box gets selected for identifying infected area. Further, YoloV3 model processes the image as follows,
Step 1: Let pre-processed image pixel K(p,q) be divided into U*U grids. The position information of (Bb) boundary boxes and their corresponding objectness score is computed by grid and is represented as,

       
 signifies objectness score of Tth grid, Pl,m(Object) denotes object function of mth bounding box in ith grid and IOUTruth Pred signifies intersection over union between predicted box and ground truth box. Correspondingly, Pl, m (Object) =1 illustrates presence of object in grid and otherwise 0. Intersection Over Union (IOU) is formulated as,
 

                                                            
A1 and A2 denote area of box1 and box2, correspondingly.
 
Step 2: The binary cross entropy (EBC) is determined for predicted objectness score and ground truth objectness score. It is expressed as,


    
U2 = Image’s number of grids.
G signifies number of bounding boxes and.
 is entropy loss function.
       
Moreover,  and  represent predicted objectness score and truth objectness score, correspondingly.
 
Step 3: Selecting multiple targets at same location and thereby best bounding boxes using (Q(x)) is selected.Then, K(Ci,Cj) is modeled as,
 
             K(Ci, Cj) = tanh (βTi Cj + Z)             ...(47)
β and Z = Kernel parameter.
Therefore, the objects detected in image are signified as K(p,q)
Where T=1,2,3,..,L which signifies number of objects detected. These segmented images were labeled (Li) grounded on their features. The Learning Leaky Relu function wielded as activation is given as,
 

   
l symbolizes the input’s control learning point and f(l) is activation function.The term exp symbolizes exponential function.
 
Pseudocode 1 for W-GPFO
 
Input: Input image and features
Output: Labeled bounding box of infected area
Begin
Initialize GF population, low, up, rand (R) maximum
iteration tmax
Set Iteration t = 1
while (t ≤ tmax) do
calculate fitness fi
obtain best global solution (g*)
if (rand < Γ){
Distribute flowers with Weibull distribution (Q(x))
Apply tangent flight algorithm
}else {
Perform Uniform distribution
Apply 
}
end If
Evaluate new flower fitness
if (fi t+1 > fit) {
Update position by fit + stp * tan θ * (fit -g*)
}else {
Discard flower
}
end If
Update current best solution
end While
t = t+1
Return optimal solution
End
 
Clustering using J-Fcm
 
Labeled data obtained (Li ) was further given for clustering with similar diseases utilizing J-FCM. Since conventional Fuzzy C-Means Clustering (FCM) has low constraint properties, it has been selected here. The J-FCM working process is described further,
 
• (Li ) are given as input and number of cluster centroids
   (zk) is selected randomly. It is expressed as,
 
                         Zk = Z1, Z2, ......., Zy                    ...(49)       
                   
 • Jaccard distance  between initial pixels T and cluster centroids (zk) is computed using equation (49),


 
G signifies the cluster and.
• J-FCM’s objective function  is computed as,


 
 Where, 
specifies real number greater than 1 that controls degree of fuzziness, mjk displays membership function. Further, it was modified as,
 
 ||m jk (It) - m jk (It + 1)|| ≤ ε                      ...(52)
 
is a constant in range of 0 to 1, indicates number of iterations. Thus, finally obtained clusters are given as,

H = {h0, h1, h2, h3, h4}                     ...(53)
                     
signifies total clusters,  is healthy leaf cluster, coffee leaf miner, phoma tarda, coffee leaf rust and Iron spot are signified as and , correspondingly.
                         
Pseudocode 2 for G-YOLOv3
Input: Labelled image (Li)
Output: clusters H
Begin
Initialize pixels T, It
For each labeled feature do
Determine (zk)


 
Perform
with Jaccard distance
Update G until all pixels are grouped
Compute
end For
Return clusters H
End
 
Experiments
 
Datasets and details
 
The coffee leaf dataset consists of 1747 images, including healthy and damaged leaves that have undergone one or more biotic stressors. The dataset comprises following stresses: Cercospora leaf spot, brown leaf spot, rust and leaf miner. The photos were labeled based on main biotic stress experienced by each leaf and its severity. Out of these, 372 photos showed leaves subjected to various pressures; among them, 62 leaves experienced stresses that were alike in magnitude, complicating visual determination of dominant stress. This dataset did not incorporate 62 photos as a result. Fig 4. depicts sample image results after proposed preprocessing and segmentation. The proposed WJMPCL framework was developed with the help of Python and tested with 1747 images of coffee leaves. Dataset was split into training, validation and test sets with a ratio which amounts to 1229 images for training, 271 for validation and 247 for testing. All input images were resized to 416 × 416 pixels and contrast enhanced using Gaussian-Contrast Limited Adaptive Histogram Equalization (G-CLAHE) and edge enhanced using Pansharpening Rational Unsharp Mask Filter (PRUF) before training. To enhance generalization capability of the model, training images were used for data augmentation methods, such as horizontal flipping, vertical flipping, rotation, scaling and brightness variation. The proposed segmentation model used a combination of YOLOv3, DarkNet-53 as the backbone network structure and Learnable Leaky ReLU as activation function. The model was trained for 100 epochs with a learning rate of 0.001 and optimizer Adam and batch size of 16. The W-GFPO algorithm was combined with YOLOv3 and the optimization process was evaluated for 10 to 50 iterations, of which 50 iterations gave best results. The experiments were performed in Google Colaboratory with an NVIDIA Tesla T4 GPU having 16GB of memory. The implementation was implemented in python 3.10, PyTorch 2.0, torchvision 0.15, OpenCV 4.8, NumPy 1.24 and scikit-learn 1.3. The optimized outputs from segmentation stage were then labeled and passed onto J-FCM clustering stage for multi-disease prediction. The pre-processing, training and evaluation conditions were used with comparative models to give a fair experimental comparison.

Fig 4: Sample results of (a) Input images (b) Images Preprocessed and (c) segmented images using the proposed approaches.

Performance evaluation of edge enhancement
 
The proposed edge enhancement technique PRUF’s performance is analyzed in comparison with RUF,UF,Wavelet Transform (WT) and Sobel approach regarding False Positive(FP), False Negative(FN) and error.
       
Fig 5 represents that FP and FN value obtained by the RUF (0.0533, 0.0625) was better than other prevailing algorithms. Utilizing Pansharpening in RUF, FN and FP are reduced to 0.0094 and 0.0186. Hence, for efficient edge enhancement, PRUF technique was utilized, which enhanced the edges by perfect detection of edges and non-edges.   

Fig 5: FP and FN results of enhanced images.


       
The experimental error outcomes of proposed PRUF and conventional edge detection algorithms are displayed in Table 1. The error value is error (false edges, missing edges, etcetera) detected during edge enhancement. From the table, it is evident that less error value of the PRUF (0.1125) technique makes it more suitable for reliable edge enhancement of leaves.

Table 1: Error analysis.


 
Performance analysis of segmentation
 
The section discusses the Intersection Of Union (IOU), accuracy, sensitivity, specificity, Dice score and Jaccard Index results of proposed G-YOLOv3 segmentation in comparison with conventional Grabcut-YOLOv3, YOLOv3 and watershed segmentation. Moreover, proposed W-GPFO is analogized with existing Ant Colony Optimization (ACO), GPFO, Particle Swarm Optimization (PSO),and GA concerning the Fitness vs iteration.
       
Utilizing the accuracy metric, accuracy of segmented foreground and background pixels is assessed. The Grabcut-YOLOv3 segmented image is 2.35% and 4.13% more accurate than YOLOv3 and watershed segmentation. Still, proposed G-YOLOv3 overthrow the Grabcut-YOLOv3 by 1.46%, which is apparent from Fig 6. Thus, it is concluded that with G-YOLOv3 segmentation can be done more accurately than other techniques. The experimental sensitivity and specificity outcomes of suggested and prevailing segmentation techniques are depicted in Fig 7. Perfectness of a system in segmenting foreground and background from segmented image is determined by sensitivity and specificity.

Fig 6: Accuracy level of the segmented image.



Fig 7: Performance analysis based on sensitivity and specificity.


       
It is transparent that watershed algorithm gives a poor performance of 89.4% and 89% for sensitivity and specificity, followed by YOLOv3. The G-YOLOv3 obtained better outcomes during experimental analysis, which shows that with G-YOLOv3, foreground as well as background of diseased coffee leaves are segmented more perfectly, which makes it more suitable for proposed framework.
       
The Jaccard index and dice score are metrics utilized for evaluating similarity level between predicted and ground truth segmented images. From Table 2, it is transparent that the YOLOv3 gives superior outcomes when analogized with the watershed algorithm, followed by Grabcut-YOLOv3 and G-YOLOv3. However, the G-YOLOv3 segmented the image more similarly to the ground truth, which is confirmed by achieving higher dice score (88.13%) and Jaccard index (79.54%) values than other segmentation techniques.

Table 2: Dice score and jaccard index results.


       
IOU determines the degree of overlap between the segmented image by a system and ground truth Fig 8. illustrates that during experimental analysis, Grabcut-YOLOv3 attained a better IOU degree (88.62%) in contrast to the other prevailing segmentations. However, the proposed G-YOLOv3 attained a 1.55% higher IOU degree than the Grabcut-YOLOv3, which shows the superiority of the G-YOLOv3 during segmentation.

Fig 8: IOU analysis.


       
The fitness values for 10-50 iterations for proposed W-GPFO and conventional optimization algorithms are depicted graphically in Fig 9.

Fig 9: Fitness vs iteration.


 
Performance analysis of clustering
 
In this phase, multi-disease classification of coffee leaf utilizing proposed JFCM clustering model experimental results is analyzed grounded on accuracy, F1-macro and F1-micro metrics.
       
From Fig 10. it is evident that proposed JFCM technique attained a 98% accuracy level, 95.46% F1-Macro level and 97.17% F1-Micro level during the coffee leaf multi-disease classification. The accuracy, F1-Macro and F1-Micro are the metrics wielded for evaluating classified outcomes quality. The proposed framework achieved a higher accuracy level, which is nearly close to 100%, which depicts the efficacy of the JFCM for classification in the proposed framework. Hence, it is proved that the multiple diseases in the coffee leaf are classified more accurately in proposed mechanism. The ablation results are presented in Table 3.

Fig 10: Analysis of proposed JFCM.



Table 3: Ablation studies.


 
Ablation studies
 
Comparative analysis
 
The proposed WGPFO-JFCM-based Multi-disease Prediction of Coffee Leaves (WJMPCL) framework is analogized with the related works Gaussian Mixture Model(GMM) (Hasan et al., 2022), DenseNet121 (Binney and Ren, 2022) and Ensemble (Novtahaning et al., 2022) concerning accuracy.
       
The comparative assessment of the proposed along with  the prevailing works whose objective is the multi-disease prediction in coffee leaves is illustrated in Table 4 Although the objective of the proposed and the GMM, DenseNet121, ensemble model are the same, still the WJMPCL predicts the multi-disease in coffee leaves 8.88%, 2.68% and 0.71% more accurately than the prevailing GMM, DenseNet121 and ensemble models. This comparative analysis proves the dominance of the WJMPCL framework over other models for multi-disease prediction in coffee leaves. The parameters used in the above formulas are listed in Table 5.

Table 4: Comparative results based on the accuracy.



Table 5: Parameters of the formula.

This paper put forth JFCM-centric disease prediction in coffee leaves with a reliable G-YOLOv3 segmentation. Here, the PRUF approach is used to improve images and JFCM is used to predict coffee leaf disease. A generated dataset is utilized for analysis of proposed approaches’ performance. In the experimental analysis, the proposed PRUF attained a less error of 0.1125 during image enhancement. Moreover, the images are segmented with a higher accuracy level of 97%, dice score of 86.81%, Jaccard index of 79.54% and IOU degree of 90%. In comparative analysis, 98% accuracy level was achieved in the prediction of several illnesses in coffee leaves, surpassing previous studies. These evaluations proved the proposed WJMPCL model’s superiority over other models for multi-disease prediction in coffee leaves. This system concentrated on a multi-disease prediction, but the fungus, which causes the disease in coffee leaves, is not considered. Thus, fungus prediction with other diseases in the coffee leaves will be predicted in the future.
We acknowledge every one for supporting me for doing research.
 
Author contributions
 
Santhosh Kumar S: Writing-review and editing, Investigation, Conceptualization. Sandeep H: Writing-  review and editing, Jayaram C V: Writing-review and editing, Supervision, Conceptualization. B.Swaminathan: Writing -review and editing, Supervision, Project administration, Conceptualization. Bhavani K: Supervision, Project administration, Vani K A: Conceptualization, Pooja Nayak S: review
 
Statement on the use of artificial intelligence tools
 
The authors declare that they didn’t use artificial intelligence tools for text or other media generation in this article.
The authors declare no conflict of interest.

  1. Abd Algani, Y.M., Marquez Caro, O.J., Robladillo Bravo, L.M., Kaur, C., Al Ansari, M.S. and Kiran Bala, B. (2023). Leaf disease identification and classification using optimized deep learning. Measurement: Sensors. 25: 1-6.  https://doi.org/ 10.1016/j.measen.2022.100643.

  2. Ardah, H., Alrahhal, M, M. Abd-Elhafiez W, Trabay D. (2025). Robust coffee plant disease classification using deep learning and advanced feature engineering techniques. PeerJ Computer Science. 11: e3386 https://doi.org/10.7717/ peerj-cs.3386.

  3. Binney, E. and Ren, D. (2022). Coffee leaf diseases classification and the effect of fine-tuning on deep convolutional neural networks. International Journal for Multidispliinary Research. 4(5): 1-13. https://doi.org/10.36948/ijfmr.2022. v04i05.861.

  4. Bordin, Y. and Leite, P.R.R. (2023). Smart agricultural technology coffee disease classification at the edge using deep learning. Smart Agricultural Technology. 4: 1-9. https:// doi.org/10.1016/j.atech.2023.100183.

  5. Fragoso, J., Silva, C., Paixão, T., Alvarez, A.B., Júnior, O. C., Florez, R., Palomino-Quispe, F., Savian, L.G. and  Trazzi, P.A. (2025). Coffee-leaf diseases and pests detection based on YOLO models. Applied Sciences. 15(9): 5040. https:// doi.org/10.3390/app15095040   

  6. Hasan, R.I., Yusuf, S.M., Mohd Rahim, M.S. and Alzubaidi, L. (2022). Automated masks generation for coffee and apple leaf infected with single or multiple diseases-based color analysis approaches. Informatics in Medicine Unlocked. 28: 1-8. https://doi.org/10.1016/j.imu.2021.100837. 

  7. Jadhav, K.D., Pokhriyal, N., Rathore, T.S., Abhishek M.B. and Pallerla, N. (2026). Plant disease pathology: Causes, machine learning-based detection and sustainable management strategies. Agricultural Science Digest. 46(5): 891-898. doi: 10.18805/ag.DF-833.

  8. Mandlik, V.S. and Lenina, S.V.B. (2026). Deep hybrid learning for smart agriculture using CNN-based feature extraction and LSTM-BiLSTM sequence modeling for robust plant disease detection. Indian Journal of Agricultural Research. 60(4): 597-606. doi: 10.18805/IJARe.A-6490.        

  9. Marriam, N., Nazir, T., Javed, A., Amin, S.T., Jeribi, F. and Tahir, A. (2024). A deep learning approach for coffee plant leaves diseases recognition, Expert System with Applications, 237:  Part A. 121481. https://doi.org/10.1016/j.eswa.2023. 121481.

  10. Mehta, B., Bharany, S., Elkamchouchi, D.H., Rehman, A.U., Singh, R. and Adem, S.H. (2025). EffResViT-SE FusionNet: A hybrid deep learning framework for accurate classification of coffee leaf diseases. Food Sci Nutr. 13(12): e71311. doi: 10.1002/fsn3.71311. PMID: 41383578; PMCID: PMC 12689465. 

  11. Novtahaning, D., Shah, H.A. and Kang, J.M. (2022). Deep learning ensemble-based automated and high- performing recognition of coffee leaf disease. Agriculture. 12(11): 1909. https:// doi.org/10.3390/agriculture12111909.      

  12. Prasanna, G.L. and Nagarajan S. (2026). Multi scale vision transformer for enhancing efficientnetb3 based leaf disease classification. Agricultural Science Digest. doi: 10.18805/ag.D-6517.

  13. Santhosh, S.K. and Raghavendra, B.K. (2021) A Study on Core Challenges in Coffee Plant Leave Disease Segmentation and Identification on Various Factors. Proceedings 3rd International Conference on Data Science, Machine Learning and Applications (ICDSMLA), Springer 433-446. https://doi.org/10.1007/978-981-19-5936-3_41.  

  14. Santhosh, S.K. and Raghavendra, B.K. (2019). Diseases Detection of Various Plant Leaf using Image Processing Techniques: A review. In: 2019 5th International Conference on Advanced Computing and Communication Systems (ICACCS). doi: 10.1109/Icaccs.2019.8728325. 

  15. Saveedra, L.M., Caixeta, E.T., Barka, G.D., Borem, A., Zambolim, L., Nascimento, M., Cruz, D.C., Oliveria, A. carlos B. de and Pereria, A. antonia. (2023). Marker-assisted recurrent selection for pyramiding leaf rust and coffee berry disease resistance Alleles in Coffea arabica L. Genes. 14:  1-18.   

  16. Sharma, A. and Kumar, A. (2026). Dual-encoder variational auto encoder for detection and classification of plant leaf diseases. Indian Journal of Agricultural Research. 60(6): 912-918 . doi: 10.18805/IJARe.A-6451.

Adaptive Metaheuristic-driven Deep Learning Framework for Early-stage Coffee Leaf Disease Detection

S
S. Santhosh Kumar1,*
H
H. Sandeep2
C
C.V. Jayaram3
S
Swaminathan Balasubramanian4
K
K. Bhavani5
K
K.A. Vani6
S
S. Pooja Nayak7
1Department of Computer Science and Engineering, Jain University, Bengaluru- 562 112, Karnataka, India.
2Department of AI and Data Science, Global Academy of Technology, Bengaluru-560 098, Karnataka, India.
3Department of Computer Science and Engineering,Mysore College of Engineering and Management, Mysore-570 028, Karnataka, India.
4Department of CSE, Vel Tech Multi Tech Dr.Rangarajan Dr. Sakunthala Engineering College, Chennai-600 062, Tamilnadu, India.
5Department of Computer science and engineering, B.M.S. College of Engineering, Bengaluru-560 019, Karnataka, India.
6Department of AIML, BNM Institute of Technology, Bengaluru-560 070, Karnataka, India.
7Department of ISE, Dayananda Sagar Academy of Technology and Management, Bengaluru-560 082, Karnataka, India.

Background: Organic acids, amino acids, proteins and carbohydrates are enclosed in coffee leaves.In various applications like coffee leaf tea, therapeutic agents, tobacco substitutes, packaging material, personal hygienic products, ethno medicine and animal feed, coffee leaves were wielded. For preventing disease in coffee plants,research has been done for high potential benefits. For coffee leaf disease classification,the utilized Deep Learning (DL) models were effectively applied. But, to predict tiny portion of disease in the complete leaf area,prevailing techniques were not effective.

Methods: This work proposes a novel technique of Weibull distributed-Golden Flower Pollination Optimization (W-GFPO) YoloV3 and Jaccard Index Fuzzy C-means Clustering (J-FCM)-centric Multi-disease Prediction in Coffee Leaf (WJMPCL).Primarily, to enhance the edge, images are pre-processed. Then, image is given to color spacing model and further given to feature extraction. For training purposes, the features are given to W-GFPO YoloV3 and segmentation is done with labeling. Then, for clustering the images into healthy leaf clusters,coffee leaf miner,phoma tarda,coffee leaf rust and Iron spot, labeled image is given to J-FCM. Utilizing coffee leaf images, proposed mechanism attained superior performance in all experiments when analogized with prevailing approaches.

Result: 98% accuracy level was achieved in the prediction of several illnesses in coffee leaves, surpassing previous studies.

Coffee was estimated to be consumed in nearly 200 million kilogram bags in future, it has been recorded as widely consumed beverages worldwide. Thus, almost all countries that are tropical, it is no wonder that coffee cultivation has been widespread (Bordin et al., 2023). Owing to climatic conditions and multiple coffee diseases that have persisted for several years, this cultivation might get affected. Seeds, beans, stem and roots are major parts while considering multi-diseases of coffee plants (Abd Algani et al., 2023). The photosynthesis of plants is carried out by leaves, they are considered the most important part; thus, health of the fruit and beans is based on leaves.
 
Problem definition
 
For coffee leaf disease prediction, prevailing models suffered from certain issues. From that, most unsolvable issues were taken, which are enlisted further,
• Previous works mainly concentrated on coffee leaf rust disease (CLF) owing to its fine spot prediction on image processing; They did not focus on other diseases owing to color transformation problems in preprocessing and cropping in infected area.
• Segmentation algorithms wielded in prevailing coffee leaf approaches failed to consider multi-disease in a single leaf and also perceptual completion causes high-level vision issues.
• Conventional histogram features, textural features and shape features are not sufficient for predicting disease in the tip of leaf and starting area owing to its inorganic quality. To address the aforementioned problems, this research suggests a novel disease prediction model and major contributions are,
• To develop a coffee leaf disease prediction model for rust, miner, phomatarda and iron spot utilizing G-CLAHE and PURF pre-processing.
• A novel segmentation algorithm with the W-GFPO-YoloV3 model to consider multi-disease in a single leaf and overcome perceptual completion problems.
• To include features like GIST and PHOG; also, conventional features enhanced the prediction accuracy.
 
Related work
 
Marriam et al., (2024) concentrated on overcoming stated limitations by putting forth an innovative, efficient DL model CoffeeNet. The CenterNet approach is improved by including a spatial-channel attention strategy-based ResNet-50 model to compute deep disease-specific sample characteristics. Fragoso et al., (2025) used YOLO models that determine high efficiency in identifying diseases, pests on coffee leaves, outclassing in quantitative metrics, visual assessments of predictions.
       
Mehta et al., (2025) explored an  efficient model based on deep learning, EffResViT-SE FusionNet, that combines EfficientNetB3, ResNet50, ViT, SE blocks to categorize coffee leaf illnesses with precision, robustness. Ardah et al., (2025) proposed an improved deep-learning framework for categorizing coffee diseases that integrates hybrid strategies of CNNs, sophisticated feature-selection algorithms. Complementary feature extraction is achieved by pairing GoogLeNet with ResNet18, while dimensionality reduction is performed using Principal Component Analysis and Singular Value Decomposition.
       
Saveedra et al., (2023) studied the use of marker-assisted recurrent selection to improve disease resistance in Coffea arabica. The study focused on combining resistance genes against coffee leaf rust and coffee berry disease using molecular markers. Santhosh et al. (2021) studied the major challenges involved in coffee leaf disease segmentation and identification. The study highlighted problems such as complex backgrounds, unclear disease boundaries, variations in disease symptoms and similarities between different diseases. Santhosh et al. (2019) presented a review of different image processing techniques used for plant leaf disease detection. The study discussed various steps involved in disease detection, including image acquisition, preprocessing, segmentation, feature extraction and classification. Mandlik et al., (2026) developed a hybrid deep learning model for plant disease detection by combining CNN-based feature extraction with LSTM and BiLSTM models.The proposed method effectively identifies plant diseases from leaf images and demonstrates the potential of deep learning techniques. Prasanna et al. (2026) proposed a multi-scale Vision Transformer (MSViT) combined with EfficientetB3 for plant leaf disease classification. The model extracts multi-scale features and focuses on disease-affected regions,improving robustness of disease classification under noisy and varying background conditions. Sharma et al., (2026) proposed a dual-encoder Variational Autoencoder (VAE) for plant leaf disease detection and classification, integrating ResNet and VGGNet as parallel encoders to extract complementary features. The proposed model achieved 98.86% accuracy for the summer dataset and 97.53% for winter dataset, demonstrating its effectiveness in handling seasonal variations. Jadhav et al., (2026) presented a comprehensive review of plant disease pathology, focusing on the causes of plant diseases, machine learning and deep learning-based disease detection and sustainable disease management strategies. The study discussed how image-based machine learning techniques can facilitate early and automated identification of plant diseases.
Multidisease in coffee leaf prediction approach using GFPO-YOLOv3

Predicting coffee leaf disease utilizing DL has been trendy research; however, it could not predict disease even with small spots. This paper proposes a model for multi-disease prediction in coffee leaf utilizing GFPO-YOLOv3 model as displayed in Fig 1.

Fig 1: Proposed framework for coffee leaf multi-disease prediction model.



Pre-processing
 
Obtained raw images are given for pre-processing and their distortions are suppressed for finding deep features for further processing. Pre-processing was done in three steps:Image resizing,contrast enhancement and edge enhancement.
 
• Contrast enhancement
 
Gaussian-Contrast Limited Adaptive Histogram Equalization (G-CLAHE) has been utilized for contrast enhancement. Conventional CLAHE was taken owing to its operation even in small regions of the image. Still, it has been enhanced by utilizing overall Gaussian value of image to select a threshold Gaussian value is the weighted average of each pixel’s neighborhood. Resized image (Ez) has been given to G-CLAHE for contrast enhancement image as (Ezc)
 
                     
Where,
Vcr-xp = Signifies number of pixels in contextual region (m).
Vcr-yp = Pixels in contextual region (n) number of gray levels is specified as Vgray.
       
CLAHE was then clipped utilizing Gaussian function (G) computed by fraction of mean and standard deviation values of an image.  The parameters of the formulas used in this section are listed in Table 5.

G = y - mean/std dviation                        ...(2)

        Ezc = GCLAHE (Ez)                               ...(3)  
                                              
• Edge enhancement
 
Pansharpening Rational Unsharp Mask Filter (PRUF) has been proposed for edge enhancement. For extracting and amplifying target image’s high-frequency components, then adding them back to target image, a conventional Rational Unsharp Mask Filter has been selected. Primarily, filter (Edi) of PRUF works as,

         Edi = Ezc + ϑ(Ezc-z)                        ...(4)
                                   
Where,
Smoothed image is symbolized as Z that was low pass filter’s output and factor of gain is signified as ϑ. After that, by passing through a high-pass filter,outcomes were modified as,

        Edi = Ezc + ϑa                      ...(5)
 
Where,
α = indicates the input image’s high-frequency component. To find α equation (4) is utilized.
 
                    a = Fy (p,q)Cy(p,q) + Fz(p,q)Cz(p,q)                      ...(6)
Where, 
                    Fy(p,q) = 2y(p,q) - y(p,q-1) - y(p,q+1)                        ...(7)    

            Fz (p, q) = 2y(p, q) - y(p - 1, q) - y(p +  1, q)         ...(8) 
 


   
κ = Constant parameter.
y(p,q) = Pixel intensity value at location.
(p,q) = Input image.
       
These rational operations (Fy,Fz) could enhance details of gradients at low and medium intensities Cy and Cz. Afterward, applying this rational filter to original image,its enhanced image is expressed as,


 
(Ep) symbolizes enhanced image,is mean of the high-frequency component and this image was then mapped utilizing pansharpening mapping. The mapping indexes were obtained by determining threshold of vectors. These indexes assist in finding whether the disease spots were highly thresholded at leaf tip or edge area. It is represented as,
 

                                 
Perimeter and Area indicate perimeter and area of patches correspondingly.
 
Color spacing model
 
After pre-processing, the image was further given to color spacing models to enhance luminance and intensity of image. RGB2HSI, YCbCr, YCgCr, HIS and HSV are the color spacing models utilized. Primarily, input image was taken and converted to a grayscale, which was then plotted in a histogram. It might further undergo extraction of color components that produce an enhanced image as depicted in Fig 2.

Fig 2: Proposed color space model working procedure.


 
RGB2HSI color spacing
 
Edge-enhanced images were attained here. Images were initially at chrominance Red (α), Green (β) and Blue (δ) values, which were then converted to (Hue Saturation Intensity) HSI as follows





HSV color spacing
 
Same as the HSI model, Hue, saturation were computed for (Ep) with formulation and V is value or brightness of the color.





                 V = max (α, β, δ)                       ...(18)
YCbCr Color spacing
 
Here, obtained edge-enhanced image (Ep) is transformed to YCbCr, as Y is luminance,Blue chrominance is Cb and red is Cr.

YCgCr color spacing
 
Similar to YCbCr, green chrominance was signified as Cg and this also gets input as edge enhanced image (Ep) and generates YCgCr as,


    
The overall enhanced image obtained out of color spacing is exemplified as  (Eoe) and this image was given to the next stage.
 
Feature extraction
 
The images obtained (Eoe) were then given to feature extraction to identify multi-diseases in coffee leaves. Features extracted here are both conventional (Color and Texture) and additional features (Gist and PHOG). To enhance the classifier’s accuracy, additional features were added in feature extraction. The features extracted are explicated further,
 
                               ΓF = {Γ1, Γ2, Γ3, Γ4}                          ...(21)
Texture features (Γ1)
 
These features are extracted since they have important details about structural arrangement of surfaces with their relationships.Texture features extracted here are,
 
Contrast(Con)
 

                    
where,
L = Limit of intensity value of image.
Homogeneity (Hom)


 
Dissimilarity (Disim)


 
Correlation (corr)


 
where,







Variance


    
Color features (Γ2)
 
Color features were extracted for finding representation of image’s pixel values at position (p,q). Let the input image has dimensions f × g. Color features extracted are,
Mean (N)


                      
Deviation (ϕ)
 

 
Gist feature (Γ3)
 
The Gist feature was selected as it could describe infected area even with a lower dimensional matrix and further provided a spatial structure of infected area. Gist feature has a collection of perceptual dimenwsions. It can overcome perceptual completion problem.Feature extraction technique filters input images with several low-level visual feature channels like flicker, motion, orientation, color, intensity. These filter output maps were computed by,

                                                    My (p, q) = |Oy (p) Θ Oy (q)|                             ...(33)                                       
Where,
Mapping filter output is specified as My, pixels were mapped at varying scales, denoted as Θ and scale difference was indicated as. These results of feature map when given through orientation channels resulted in,

       M y (p) = Gabor (θy, p)                   ...(34)
Were,
θy = Symbolizes image’s different spatial angles.
        From this computation, a low level of center features was attained.
 
Pyramid of histogram of oriented gradients (PHOG) features (Γ4)
 
PHOG features describe an image by its local shape along with spatial layout,were spatial descriptors. These features enclosed HOG over every single sub-region of image at every resolution stage. Histogram of Oriented Gradients (HOG) was computed from an image for varying bin count (Bc). PHOG features attained for an image is a weighted combination of above HOG features (HB), which is expressed as,
 
           Γ4 = Bc ∈ HB                          ...(35)
W-GFPO YOLOv3 segmentation
 
By utilizing W-GFPO YoloV3 model, segmentation of multi-diseased areas in leaves was done by taking input image Eoe. The conventional YoloV3 model was selected since it has an efficient selection of multi-disease in a single subject. Utilizing leaky Relu or Relu as activation function failed in training when a non-linear input pixel neighborhood occurs. Thus, to surpass this issue, Learnable Leaky ReLU is activated, which has advantage of learning deeply with features and obtaining outcome. Fig 3 elucidates overall framework of W-GFPO Yolo V3.

Fig 3: W-GFPO Yolo V3 architecture.


       
Yolov3 framework utilized DarkNet-53 as the basic network. Model contains 106-layer network and significant,familiar structure is made by deeper network level.A hop layer connection along with a residual module with multi-dimensional detection and upsampling feature fusion technique is enclosed in framework.
 
Weibull distributed- golden flower pollination optimization algorithm (W-GFPO)
 
The target score of each bounding box on different scales is predicted by Yolo-V3 and values are chosen using W-GPFO. Conventional Golden Flower Pollination Optimization (GFPO) algorithm was selected. Although it has advantage of finding infected area of disease with less convergence, still it has a maximum value constraint on updating stage. To overcome issue,it was selected using weigh bull distribution strategy.W-GPFO creates population and solution space. For searching purpose,Weibull distribution has been adopted and given as follows,


 
The value w signifies scale parameter, j epitomizes shape parameter and fitness function of maximum threshold is exemplified as fi.After that, this fitness function was selected grounded on obtained features that are less than threshold and is given as,
 
    fi = Max(Γ)                     ...(37)
                                             
At this evaluation stage, a heavy-tailed probability distribution algorithm has been utilized that undergoes global explorative process and random selection was done with Weibull distribution given as:
 
                                  fit+1 = fit + stp*Q(fi)*(fit - g*)                           ...(38)
 
Where,
fi t+1 = Specifies solution vector at t+1 iteration.
Likewise; Fit is solution vector at t iteration.
Q(fi) = Indicates the Weibull distribution.
g* = Symbolizes global solution.
stp.= Srep size.
       
Utilizing the switching probability, global and local search processes were controlled. This probability permits pollens to investigate the global as well as local pollination functions.Golden selection was done to divide search space into line segments as follows:


                                                                 
v indicates inverse golden ratio and golden ratio(∃) was a constant value. After,separate search equations were obtained as:

                           fi1 = j + 0.618(w - j)                        ...(40) 

                            fi2 = j + 0.618(w - j)                      ...(41)
 
In 40 and 41 equations, fi1 and fi2 are two solution vectors. These new intervals were applied for subsequent iteration. Step size is computed by disparity between individuals in current population and given as:

                          fi0 = low + (up - low)* rand(R)                  ...(42)
 
Here, solution vector attained via intensification process is represented as fi0. Initial solution obtained was dispersed uniformly over the search area  utilizing following equation:

                      fit+1 = fit + stp*tanθ* (fit - g*)               ...(43)
             
From optimized solution [Q(x)], only one box gets selected for identifying infected area. Further, YoloV3 model processes the image as follows,
Step 1: Let pre-processed image pixel K(p,q) be divided into U*U grids. The position information of (Bb) boundary boxes and their corresponding objectness score is computed by grid and is represented as,

       
 signifies objectness score of Tth grid, Pl,m(Object) denotes object function of mth bounding box in ith grid and IOUTruth Pred signifies intersection over union between predicted box and ground truth box. Correspondingly, Pl, m (Object) =1 illustrates presence of object in grid and otherwise 0. Intersection Over Union (IOU) is formulated as,
 

                                                            
A1 and A2 denote area of box1 and box2, correspondingly.
 
Step 2: The binary cross entropy (EBC) is determined for predicted objectness score and ground truth objectness score. It is expressed as,


    
U2 = Image’s number of grids.
G signifies number of bounding boxes and.
 is entropy loss function.
       
Moreover,  and  represent predicted objectness score and truth objectness score, correspondingly.
 
Step 3: Selecting multiple targets at same location and thereby best bounding boxes using (Q(x)) is selected.Then, K(Ci,Cj) is modeled as,
 
             K(Ci, Cj) = tanh (βTi Cj + Z)             ...(47)
β and Z = Kernel parameter.
Therefore, the objects detected in image are signified as K(p,q)
Where T=1,2,3,..,L which signifies number of objects detected. These segmented images were labeled (Li) grounded on their features. The Learning Leaky Relu function wielded as activation is given as,
 

   
l symbolizes the input’s control learning point and f(l) is activation function.The term exp symbolizes exponential function.
 
Pseudocode 1 for W-GPFO
 
Input: Input image and features
Output: Labeled bounding box of infected area
Begin
Initialize GF population, low, up, rand (R) maximum
iteration tmax
Set Iteration t = 1
while (t ≤ tmax) do
calculate fitness fi
obtain best global solution (g*)
if (rand < Γ){
Distribute flowers with Weibull distribution (Q(x))
Apply tangent flight algorithm
}else {
Perform Uniform distribution
Apply 
}
end If
Evaluate new flower fitness
if (fi t+1 > fit) {
Update position by fit + stp * tan θ * (fit -g*)
}else {
Discard flower
}
end If
Update current best solution
end While
t = t+1
Return optimal solution
End
 
Clustering using J-Fcm
 
Labeled data obtained (Li ) was further given for clustering with similar diseases utilizing J-FCM. Since conventional Fuzzy C-Means Clustering (FCM) has low constraint properties, it has been selected here. The J-FCM working process is described further,
 
• (Li ) are given as input and number of cluster centroids
   (zk) is selected randomly. It is expressed as,
 
                         Zk = Z1, Z2, ......., Zy                    ...(49)       
                   
 • Jaccard distance  between initial pixels T and cluster centroids (zk) is computed using equation (49),


 
G signifies the cluster and.
• J-FCM’s objective function  is computed as,


 
 Where, 
specifies real number greater than 1 that controls degree of fuzziness, mjk displays membership function. Further, it was modified as,
 
 ||m jk (It) - m jk (It + 1)|| ≤ ε                      ...(52)
 
is a constant in range of 0 to 1, indicates number of iterations. Thus, finally obtained clusters are given as,

H = {h0, h1, h2, h3, h4}                     ...(53)
                     
signifies total clusters,  is healthy leaf cluster, coffee leaf miner, phoma tarda, coffee leaf rust and Iron spot are signified as and , correspondingly.
                         
Pseudocode 2 for G-YOLOv3
Input: Labelled image (Li)
Output: clusters H
Begin
Initialize pixels T, It
For each labeled feature do
Determine (zk)


 
Perform
with Jaccard distance
Update G until all pixels are grouped
Compute
end For
Return clusters H
End
 
Experiments
 
Datasets and details
 
The coffee leaf dataset consists of 1747 images, including healthy and damaged leaves that have undergone one or more biotic stressors. The dataset comprises following stresses: Cercospora leaf spot, brown leaf spot, rust and leaf miner. The photos were labeled based on main biotic stress experienced by each leaf and its severity. Out of these, 372 photos showed leaves subjected to various pressures; among them, 62 leaves experienced stresses that were alike in magnitude, complicating visual determination of dominant stress. This dataset did not incorporate 62 photos as a result. Fig 4. depicts sample image results after proposed preprocessing and segmentation. The proposed WJMPCL framework was developed with the help of Python and tested with 1747 images of coffee leaves. Dataset was split into training, validation and test sets with a ratio which amounts to 1229 images for training, 271 for validation and 247 for testing. All input images were resized to 416 × 416 pixels and contrast enhanced using Gaussian-Contrast Limited Adaptive Histogram Equalization (G-CLAHE) and edge enhanced using Pansharpening Rational Unsharp Mask Filter (PRUF) before training. To enhance generalization capability of the model, training images were used for data augmentation methods, such as horizontal flipping, vertical flipping, rotation, scaling and brightness variation. The proposed segmentation model used a combination of YOLOv3, DarkNet-53 as the backbone network structure and Learnable Leaky ReLU as activation function. The model was trained for 100 epochs with a learning rate of 0.001 and optimizer Adam and batch size of 16. The W-GFPO algorithm was combined with YOLOv3 and the optimization process was evaluated for 10 to 50 iterations, of which 50 iterations gave best results. The experiments were performed in Google Colaboratory with an NVIDIA Tesla T4 GPU having 16GB of memory. The implementation was implemented in python 3.10, PyTorch 2.0, torchvision 0.15, OpenCV 4.8, NumPy 1.24 and scikit-learn 1.3. The optimized outputs from segmentation stage were then labeled and passed onto J-FCM clustering stage for multi-disease prediction. The pre-processing, training and evaluation conditions were used with comparative models to give a fair experimental comparison.

Fig 4: Sample results of (a) Input images (b) Images Preprocessed and (c) segmented images using the proposed approaches.

Performance evaluation of edge enhancement
 
The proposed edge enhancement technique PRUF’s performance is analyzed in comparison with RUF,UF,Wavelet Transform (WT) and Sobel approach regarding False Positive(FP), False Negative(FN) and error.
       
Fig 5 represents that FP and FN value obtained by the RUF (0.0533, 0.0625) was better than other prevailing algorithms. Utilizing Pansharpening in RUF, FN and FP are reduced to 0.0094 and 0.0186. Hence, for efficient edge enhancement, PRUF technique was utilized, which enhanced the edges by perfect detection of edges and non-edges.   

Fig 5: FP and FN results of enhanced images.


       
The experimental error outcomes of proposed PRUF and conventional edge detection algorithms are displayed in Table 1. The error value is error (false edges, missing edges, etcetera) detected during edge enhancement. From the table, it is evident that less error value of the PRUF (0.1125) technique makes it more suitable for reliable edge enhancement of leaves.

Table 1: Error analysis.


 
Performance analysis of segmentation
 
The section discusses the Intersection Of Union (IOU), accuracy, sensitivity, specificity, Dice score and Jaccard Index results of proposed G-YOLOv3 segmentation in comparison with conventional Grabcut-YOLOv3, YOLOv3 and watershed segmentation. Moreover, proposed W-GPFO is analogized with existing Ant Colony Optimization (ACO), GPFO, Particle Swarm Optimization (PSO),and GA concerning the Fitness vs iteration.
       
Utilizing the accuracy metric, accuracy of segmented foreground and background pixels is assessed. The Grabcut-YOLOv3 segmented image is 2.35% and 4.13% more accurate than YOLOv3 and watershed segmentation. Still, proposed G-YOLOv3 overthrow the Grabcut-YOLOv3 by 1.46%, which is apparent from Fig 6. Thus, it is concluded that with G-YOLOv3 segmentation can be done more accurately than other techniques. The experimental sensitivity and specificity outcomes of suggested and prevailing segmentation techniques are depicted in Fig 7. Perfectness of a system in segmenting foreground and background from segmented image is determined by sensitivity and specificity.

Fig 6: Accuracy level of the segmented image.



Fig 7: Performance analysis based on sensitivity and specificity.


       
It is transparent that watershed algorithm gives a poor performance of 89.4% and 89% for sensitivity and specificity, followed by YOLOv3. The G-YOLOv3 obtained better outcomes during experimental analysis, which shows that with G-YOLOv3, foreground as well as background of diseased coffee leaves are segmented more perfectly, which makes it more suitable for proposed framework.
       
The Jaccard index and dice score are metrics utilized for evaluating similarity level between predicted and ground truth segmented images. From Table 2, it is transparent that the YOLOv3 gives superior outcomes when analogized with the watershed algorithm, followed by Grabcut-YOLOv3 and G-YOLOv3. However, the G-YOLOv3 segmented the image more similarly to the ground truth, which is confirmed by achieving higher dice score (88.13%) and Jaccard index (79.54%) values than other segmentation techniques.

Table 2: Dice score and jaccard index results.


       
IOU determines the degree of overlap between the segmented image by a system and ground truth Fig 8. illustrates that during experimental analysis, Grabcut-YOLOv3 attained a better IOU degree (88.62%) in contrast to the other prevailing segmentations. However, the proposed G-YOLOv3 attained a 1.55% higher IOU degree than the Grabcut-YOLOv3, which shows the superiority of the G-YOLOv3 during segmentation.

Fig 8: IOU analysis.


       
The fitness values for 10-50 iterations for proposed W-GPFO and conventional optimization algorithms are depicted graphically in Fig 9.

Fig 9: Fitness vs iteration.


 
Performance analysis of clustering
 
In this phase, multi-disease classification of coffee leaf utilizing proposed JFCM clustering model experimental results is analyzed grounded on accuracy, F1-macro and F1-micro metrics.
       
From Fig 10. it is evident that proposed JFCM technique attained a 98% accuracy level, 95.46% F1-Macro level and 97.17% F1-Micro level during the coffee leaf multi-disease classification. The accuracy, F1-Macro and F1-Micro are the metrics wielded for evaluating classified outcomes quality. The proposed framework achieved a higher accuracy level, which is nearly close to 100%, which depicts the efficacy of the JFCM for classification in the proposed framework. Hence, it is proved that the multiple diseases in the coffee leaf are classified more accurately in proposed mechanism. The ablation results are presented in Table 3.

Fig 10: Analysis of proposed JFCM.



Table 3: Ablation studies.


 
Ablation studies
 
Comparative analysis
 
The proposed WGPFO-JFCM-based Multi-disease Prediction of Coffee Leaves (WJMPCL) framework is analogized with the related works Gaussian Mixture Model(GMM) (Hasan et al., 2022), DenseNet121 (Binney and Ren, 2022) and Ensemble (Novtahaning et al., 2022) concerning accuracy.
       
The comparative assessment of the proposed along with  the prevailing works whose objective is the multi-disease prediction in coffee leaves is illustrated in Table 4 Although the objective of the proposed and the GMM, DenseNet121, ensemble model are the same, still the WJMPCL predicts the multi-disease in coffee leaves 8.88%, 2.68% and 0.71% more accurately than the prevailing GMM, DenseNet121 and ensemble models. This comparative analysis proves the dominance of the WJMPCL framework over other models for multi-disease prediction in coffee leaves. The parameters used in the above formulas are listed in Table 5.

Table 4: Comparative results based on the accuracy.



Table 5: Parameters of the formula.

This paper put forth JFCM-centric disease prediction in coffee leaves with a reliable G-YOLOv3 segmentation. Here, the PRUF approach is used to improve images and JFCM is used to predict coffee leaf disease. A generated dataset is utilized for analysis of proposed approaches’ performance. In the experimental analysis, the proposed PRUF attained a less error of 0.1125 during image enhancement. Moreover, the images are segmented with a higher accuracy level of 97%, dice score of 86.81%, Jaccard index of 79.54% and IOU degree of 90%. In comparative analysis, 98% accuracy level was achieved in the prediction of several illnesses in coffee leaves, surpassing previous studies. These evaluations proved the proposed WJMPCL model’s superiority over other models for multi-disease prediction in coffee leaves. This system concentrated on a multi-disease prediction, but the fungus, which causes the disease in coffee leaves, is not considered. Thus, fungus prediction with other diseases in the coffee leaves will be predicted in the future.
We acknowledge every one for supporting me for doing research.
 
Author contributions
 
Santhosh Kumar S: Writing-review and editing, Investigation, Conceptualization. Sandeep H: Writing-  review and editing, Jayaram C V: Writing-review and editing, Supervision, Conceptualization. B.Swaminathan: Writing -review and editing, Supervision, Project administration, Conceptualization. Bhavani K: Supervision, Project administration, Vani K A: Conceptualization, Pooja Nayak S: review
 
Statement on the use of artificial intelligence tools
 
The authors declare that they didn’t use artificial intelligence tools for text or other media generation in this article.
The authors declare no conflict of interest.

  1. Abd Algani, Y.M., Marquez Caro, O.J., Robladillo Bravo, L.M., Kaur, C., Al Ansari, M.S. and Kiran Bala, B. (2023). Leaf disease identification and classification using optimized deep learning. Measurement: Sensors. 25: 1-6.  https://doi.org/ 10.1016/j.measen.2022.100643.

  2. Ardah, H., Alrahhal, M, M. Abd-Elhafiez W, Trabay D. (2025). Robust coffee plant disease classification using deep learning and advanced feature engineering techniques. PeerJ Computer Science. 11: e3386 https://doi.org/10.7717/ peerj-cs.3386.

  3. Binney, E. and Ren, D. (2022). Coffee leaf diseases classification and the effect of fine-tuning on deep convolutional neural networks. International Journal for Multidispliinary Research. 4(5): 1-13. https://doi.org/10.36948/ijfmr.2022. v04i05.861.

  4. Bordin, Y. and Leite, P.R.R. (2023). Smart agricultural technology coffee disease classification at the edge using deep learning. Smart Agricultural Technology. 4: 1-9. https:// doi.org/10.1016/j.atech.2023.100183.

  5. Fragoso, J., Silva, C., Paixão, T., Alvarez, A.B., Júnior, O. C., Florez, R., Palomino-Quispe, F., Savian, L.G. and  Trazzi, P.A. (2025). Coffee-leaf diseases and pests detection based on YOLO models. Applied Sciences. 15(9): 5040. https:// doi.org/10.3390/app15095040   

  6. Hasan, R.I., Yusuf, S.M., Mohd Rahim, M.S. and Alzubaidi, L. (2022). Automated masks generation for coffee and apple leaf infected with single or multiple diseases-based color analysis approaches. Informatics in Medicine Unlocked. 28: 1-8. https://doi.org/10.1016/j.imu.2021.100837. 

  7. Jadhav, K.D., Pokhriyal, N., Rathore, T.S., Abhishek M.B. and Pallerla, N. (2026). Plant disease pathology: Causes, machine learning-based detection and sustainable management strategies. Agricultural Science Digest. 46(5): 891-898. doi: 10.18805/ag.DF-833.

  8. Mandlik, V.S. and Lenina, S.V.B. (2026). Deep hybrid learning for smart agriculture using CNN-based feature extraction and LSTM-BiLSTM sequence modeling for robust plant disease detection. Indian Journal of Agricultural Research. 60(4): 597-606. doi: 10.18805/IJARe.A-6490.        

  9. Marriam, N., Nazir, T., Javed, A., Amin, S.T., Jeribi, F. and Tahir, A. (2024). A deep learning approach for coffee plant leaves diseases recognition, Expert System with Applications, 237:  Part A. 121481. https://doi.org/10.1016/j.eswa.2023. 121481.

  10. Mehta, B., Bharany, S., Elkamchouchi, D.H., Rehman, A.U., Singh, R. and Adem, S.H. (2025). EffResViT-SE FusionNet: A hybrid deep learning framework for accurate classification of coffee leaf diseases. Food Sci Nutr. 13(12): e71311. doi: 10.1002/fsn3.71311. PMID: 41383578; PMCID: PMC 12689465. 

  11. Novtahaning, D., Shah, H.A. and Kang, J.M. (2022). Deep learning ensemble-based automated and high- performing recognition of coffee leaf disease. Agriculture. 12(11): 1909. https:// doi.org/10.3390/agriculture12111909.      

  12. Prasanna, G.L. and Nagarajan S. (2026). Multi scale vision transformer for enhancing efficientnetb3 based leaf disease classification. Agricultural Science Digest. doi: 10.18805/ag.D-6517.

  13. Santhosh, S.K. and Raghavendra, B.K. (2021) A Study on Core Challenges in Coffee Plant Leave Disease Segmentation and Identification on Various Factors. Proceedings 3rd International Conference on Data Science, Machine Learning and Applications (ICDSMLA), Springer 433-446. https://doi.org/10.1007/978-981-19-5936-3_41.  

  14. Santhosh, S.K. and Raghavendra, B.K. (2019). Diseases Detection of Various Plant Leaf using Image Processing Techniques: A review. In: 2019 5th International Conference on Advanced Computing and Communication Systems (ICACCS). doi: 10.1109/Icaccs.2019.8728325. 

  15. Saveedra, L.M., Caixeta, E.T., Barka, G.D., Borem, A., Zambolim, L., Nascimento, M., Cruz, D.C., Oliveria, A. carlos B. de and Pereria, A. antonia. (2023). Marker-assisted recurrent selection for pyramiding leaf rust and coffee berry disease resistance Alleles in Coffea arabica L. Genes. 14:  1-18.   

  16. Sharma, A. and Kumar, A. (2026). Dual-encoder variational auto encoder for detection and classification of plant leaf diseases. Indian Journal of Agricultural Research. 60(6): 912-918 . doi: 10.18805/IJARe.A-6451.
In this Article
Published In
Agricultural Science Digest

Editorial Board

View all (0)