The proposed framework centres on an optimized region-based fully convolutional network built to spot and map multiple paddy diseases simultaneously. To handle the unpredictability of field conditions, the pipeline integrates rigorous pre-processing, a modified RFCN structure and specific bounding box regression strategies.
Dataset acquisition and annotation
Image collection
Images were sourced from experimental plots and working farms across several agro-climatic zones in India. This geographic spread was intentional, ensuring the model saw varying growth stages and diverse symptom expressions. High-resolution DSLR cameras (≥24MP) and standard smartphones (≥12MP) were both used to keep the dataset realistic. The focus was on four major pathogens: Paddy Blast (
Magnaporthe oryzae), Brown Spot (
Bipolaris oryzae), Sheath Blight (
Rhizoctonia solani) and Tungro Virus. Crucially, the collection actively targeted plants showing mixed infections, providing the multi-label data necessary for the network to learn co-occurring disease patterns (
Kappali, 2024).
Annotation
Agronomists annotated the raw images via the CVAT platform. Every entry recorded the bounding box coordinates, the specific disease class and the affected plant organ (leaf, stem, or panicle). The final export used the COCO JSON format for seamless integration with the training framework. Metadata tracking synthetic augmentations was also kept to manage class balancing.
Image pre-processing
Raw field images require standardization to prevent the network from learning environmental noise.
Normalization
: Pixel values were scaled using:

Where
μ = Mean intensity.
σ = Standard deviation.
Resizing
Inputs were standardized to 800×800 pixels to fit the backbone architecture while retaining the fine details of small lesions.
Iresized R ∈512×512×3
Ensures uniform input dimensions without losing lesion details.
Data augmentation
To simulate harsh field realities, geometric shifts (rotation between -45° and 180°, flipping, cropping) and photometric shifts (brightness, contrast, hue jittering) were applied. We also injected Gaussian noise and applied random erasing. Ablation tests confirmed that removing these augmentations caused the mAP to drop by 4-6%.
Iaug= Tgeo [Tphoto (lnorm)]
Geometric Transformations (Tgeo): Rotation, flipping, translation, cropping.
Photometric Transformations (Tphoto): Brightness, contrast, saturation adjustment.
To improve the robustness and generalization of the proposed model, various data augmentation techniques were applied, as shown in Table 1.
Noise Reduction and Balancing: Median filtering cleared sensor noise and morphological operations (dilation and erosion) sharpened lesion borders. To prevent rare diseases from being overshadowed, synthetic oversampling (similar to SMOTE) equalized the class distribution.
Optimized RFCN architecture
The architecture chains together feature extraction, region proposal, RoI alignment and dual prediction heads into a single pipeline. The overall architecture of the proposed Optimized RFCN model is illustrated in Fig 1.
An input image passes through a convolutional backbone (
e.g., ResNet) that builds multi-scale feature maps. These maps encode both raw textures and high-level semantic clues about the disease. From there, a Region Proposal Network (RPN) scans the features and outputs candidate Regions of Interest (RoIs). What sets R-FCN apart from standard detectors is its use of position-sensitive score maps. Instead of stripping away spatial data during pooling, the R-FCN divides each RoI into a grid. This position-sensitive RoI pooling locks onto local quirks-like jagged lesion edges or specific colour gradients-preventing the spatial misalignment that plagues standard RoI pooling. Computer vision and machine learning in paddy diseases identification and classification
(Kappali et al., 2024).
Once the local features are aggregated, they feed into two separate branches. The classification head assigns a disease label (or “healthy”) to the box, while the regression head tightens the box coordinates. Because the heavy convolutional work is shared across all RoIs, the system runs much faster than Faster R-CNN without sacrificing the tight bounding boxes required for overlapping paddy lesions.
Mathematical formulation
Backbone extraction
Given an input X, the backbone generates features
F = f_θ(X)
To prevent overfitting on small datasets, the earliest layers were frozen, supplemented by batch normalization and dropout.
RPN: The RPN slides anchors
A = {(xi, yi, wi, hi)}
across the feature map. An objectness score
Pi = σ(Wo^T * Fi + bo)
determines if an anchor holds a lesion. We applied focal loss here to balance the heavy bias toward background pixels and used multi-scale anchors (16×16 up to 128×128) to catch varying symptom sizes.
RoI align
Bypassing the coarse quantization of older pooling methods, RoI Align [Froi = ROIAlign (F, R)] uses bilinear interpolation to pull exact feature values at fractional coordinates.
Froi= ROIAlign (F, R)
Loss functions
The classification head uses sigmoid activation for multi-label tagging, governed by Focal Loss (L_cls). Bounding box adjustments use Smooth L1 Loss (L_loc). The network minimizes the combined sum:
L_total = L_cls + λ* L_loc.
y^c= σ(WcFroi+ bc), c = 1, ...,C
Sigmoid activation for multi-label detection.
Focal Loss:
a. Bounding box regression head:
Smooth L1 Loss:
b. Total Loss:
Ltotal= Lcls+ λLloc
Training strategy and validation
Parameters were updated using the Adam optimizer, which adapts learning rates based on gradient momentum. A cosine annealing scheduler adjusted the learning rate dynamically and gradient clipping prevented destabilizing spikes. The model trained for 100 epochs with a batch size of 8, using L2 weight decay and early stopping as guardrails against overfitting. Implementation was handled via PyTorch on an NVIDIA RTX 3090 GPU.
Optimizer (Adam)
To optimize trainable parameters of network, Adam (Adaptive Moment Estimation) optimizer is engaged. Advantages of force and adaptive erudition rates by maintaining exponentially decaying estimates first and second moments of gradients.
Parameter update rule is:
Where
θt = Parameter at iteration t.
η= Learning rate.
m^t= Bias-corrected first moment.
V^t is bias-corrected second moment.
∈= A small constant added for numerical stability.
Learning rate scheduler (Cosine Annealing)
ηt= ηmin +0.5(ηmax-ηmin) [1+cos(πTcur/Tmax)]
1. Gradient Clipping:
θ= clip(θ,-T,T)
2. Batch Size/Epochs: batch 8-16, epochs 50-100.
3. Cross-Validation: 5-fold stratified to ensure robustness.
4. Regularization: L2 weight decay, dropout and early stopping to prevent over fitting.
Post-processing
a) Non-Maximum Suppression (NMS):
NMS(B)= {bi ∈ B/IoU (bi, bj) < T}, i/j
b) Confidence Thresholding: predictions with probability pi≥0.5 retained.
c) Severity estimation: weighted IoU to predict lesion severity:
Where
wi is proportional to lesion size or severity.
Evaluation metrics
1. Intersection over Union (IoU)
2. Precision and Recall
3. F1-Score
4. Mean average precision (mAP)

5. Weighted IoU: for severity and multi-organ detection.
Validation methods
To ensure consistency and stoutness of proposed optimised region-based fully convolutional network (R-FCN) for multi-disease detection in paddy crops, multiple validation strategies were employed.
Cross-validation
K-Fold Cross Validation was employed by dividing dataset into k subsets, where model was iteratively trained on (k-1) folds and validated on remaining fold. Average accuracy, mean Average Precision (mAP) across folds provided a robust estimate of generalization. Stratified K-Fold was fur adopted to maintain class balance, ensuring proportional representation of each disease category and healthy samples in all folds.
Train-Validation-Test Split
Data set separated three subsets: training set (70%), validation set (15%) and test set (15%). Validation set cast off hyper parameter tuning and early stopping, while trial set provided an unbiased final performance evaluation. This strict separation avoided data leakage during model optimization.
Evaluation Metrics: Validation employed multiple evaluation indicators:
Classification metrics
Accuracy, Precision, Recall and F1-score (both per-class and macro-averaged).
Detection metrics
Mean Average Precision (mAP) at different Intersection over Union (IoU) thresholds and IoU scores for bounding box overlap.
Loss monitoring
Convergence of classification and regression loss curves to identify under fitting or over fitting.
Confusion matrix analysis
A class-wise confusion matrix made to examine misclassification patterns, particularly among visually like diseases such as Brown Spot and Bacterial Leaf Blight. This analysis highlighted disease-specific errors and guided furr model refinements.
Cross-dataset validation
To verify generalization capability, Optimised RFCN was tested on external datasets, such as PlantVillage paddy subset and real-world images collected across different agroclimatic conditions. This ensured that model-maintained performance consistency outside training domain. Robustness Validation: Robustness testing agreed out by subjecting model augmented images under challenging conditions, including changes in illumination, rotation, occlusion and noise.
Statistical significance testing
Statistical validation was conducted to ensure performance enhancement, Optimised RFCN were not incidental. Paired t-tests and Wilcoxon signed-rank tests were applied to link its performance baseline machine learning prototypes such as Faster R-CNN, SSD, EfficientDet and RetinaNet. Tests confirmed statistical implication of observed improvements. The validation techniques used to evaluate the performance of the proposed optimized RFCN framework are compared in Table 2.
Validation relied on a strict 70/15/15 train-validation-test split to guarantee no data leakage. We also employed Stratified 5-Fold Cross-Validation to ensure no single disease class skewed the generalization metrics. To prove the 88.7% mAP was a genuine improvement, paired t-tests and Wilcoxon signed-rank tests were run against baseline architectures (Faster R-CNN, SSD, EfficientDet).