FedXCrop: Privacy-Preserving Crop Disease Detection via Federated Learning with Post-Aggregation Explainability under Non-IID Farm Distributions
Abstract
Deep learning can classify crop diseases accurately from benchmark leaf images, but centralized training requires farms to share raw data, and predictions without explanations offer limited support for treatment decisions. We present FedXCrop, a federated crop disease classification pipeline that quantitatively evaluates explanations of the aggregated global model. A MobileNetV2 model trained centrally on PlantVillage achieved 99.38% test accuracy (standard deviation 0.05 over three seeds) on a fixed test set of 5,428 images across 38 classes. Federated models initialized with ImageNet weights were trained for 30 rounds across five clients. FedAvg achieved 98.81% accuracy with identically distributed clients and 98.81%, 98.59%, and 97.78% under Dirichlet label skew (alpha = 1, 0.5, and 0.1, respectively). FedProx was not significantly different from FedAvg at any heterogeneity level (McNemar p > 0.3). Grad-CAM and SmoothGrad explanations were evaluated on 380 test images. Both attributed more energy to the leaf than chance (0.70-0.78 versus 0.60), while Grad-CAM maps from federated and centralized models showed Spearman correlations of 0.74-0.76. Agreement decreased as heterogeneity increased, lesion localization was only modestly above chance, and a model-randomization test indicated that SmoothGrad maps depended substantially on image structure rather than learned parameters. In this setting, label skew reduced federated accuracy by 0.6-1.6 percentage points relative to centralized training. FedAvg largely preserved Grad-CAM behavior, while FedProx provided no measurable benefit.
Create a lesson
Metadata
- Comments
- 26 pages. Includes 38-class crop disease classification experiments, federated learning evaluation under non-IID client distributions, and quantitative explainability analysis using Grad-CAM and SmoothGrad. Code and experimental results: https://github.com/Kriti2709/fedxcrp
Related papers
Foundation Model and Radiomics Distance Scores for Post-Hoc Segmentation Failure Detection
Shared title terminologycs.CVSimon Johannes Joham, Gianluca Guglielmo, Mateusz Kozinski et al.
Computer Vision by YOLOs for Detection of Major Diseases in Vietnamese Custard Apple Using Fruit Imagery
Shared title terminologycs.CVTri Nhut Do, Quoc Tuan Vo
Enhanced MRI brain tumor detection using deep learning in conjunction with explainable AI SHAP based diverse and multi feature analysis
Shared title terminologycs.CVAsif Rahman, Maqsood Hayat, Nadeem Iqbal et al.
Subspace Learning with Outlier Exposure for Out-of-Distribution Detection
Shared title terminologycs.CVHongxu Shen, Kun Fang, Jiahui Zheng et al.
Beyond Raw Similarity: Prior-Aware Fusion for Out-of-Distribution Detection
Shared title terminologycs.CVLakpa Tamang, Mohamed Reda Bouadjenek, Saman Forouzandeh et al.
PTQ4SAM3: Semantics-Preserving Post-Training Quantization for Segment Anything Model 3
Shared title terminologycs.CVXi Xiao, Yunbei Zhang, Lin Zhao et al.