arXiv:2611.06221cs.CVNov 2026

Manuscript Offprint

arXiv:2611.06221

FedXCrop: Privacy-Preserving Crop Disease Detection via Federated Learning with Post-Aggregation Explainability under Non-IID Farm Distributions

Kriti Saini, Manikandan P

ABSTRACT

Deep learning models identify crop diseases from leaf images with high accuracy on benchmark datasets, but two obstacles stand between these models and field use: training normally requires farms to pool their images on a central server, and a prediction without an explanation gives a farmer or agronomist little basis for a costly treatment decision. This paper presents FedXCrop, a federated learning pipeline for crop disease classification in which explanations of the aggregated global model are evaluated quantitatively rather than by inspection of a few images. A MobileNetV2 classifier trained centrally on PlantVillage reached a test accuracy of 99.38±0.05%99.38 \pm 0.05\% (mean ±\pm standard deviation over three seeds) on a fixed test split of 5,428 images covering 38 classes. Federated models were initialized from ImageNet weights and trained for 30 rounds on the full training split distributed across five clients. FedAvg reached 98.81±0.09%98.81 \pm 0.09\% with identically distributed clients and 98.81±0.25%98.81 \pm 0.25\%, 98.59±0.14%98.59 \pm 0.14\% and 97.78±0.48%97.78 \pm 0.48\% under Dirichlet label skew with concentration α=1\alpha = 1, 0.5 and 0.1. FedProx, with its proximal coefficient selected on the validation split, was not significantly different from FedAvg at any level of heterogeneity (McNemar p > 0.3 in every case). Grad-CAM and SmoothGrad were applied to the aggregated models on 380 test images. Both placed more attribution on the leaf than chance (energy ratio 0.70 to 0.78 against a chance level of 0.60), and Grad-CAM maps of the federated models correlated with those of the centralized model (Spearman ρ\rho 0.74 to 0.76). Agreement fell as heterogeneity increased, attribution on lesion tissue was only modestly above chance, and a model randomization check showed that SmoothGrad maps depend substantially on image structure rather than on the learned classifier. Federated training under label skew therefore cost between 0.6 and 1.6 percentage points of accuracy in this setting and largely preserved Grad-CAM explanations, while proximal regularization gave no measurable benefit.

Keywords: Federated learning, crop disease detection, non-IID data, explainable artificial intelligence (XAI), attribution evaluation, PlantVillage.

1. Introduction

Plant diseases are estimated to reduce global agricultural yield by 20 to 40 percent each year, which makes them a major threat to food security and sustainable farming. Crop pathogens and pests affect many economically important species, and their impact is most severe for smallholder communities that depend on agricultural production for both income and food. Where smallholder farming dominates, early and accurate diagnosis is limited by access to agronomic expertise, so automated image-based detection has become an important research priority. Convolutional neural networks (CNNs), particularly lightweight transfer-learned architectures, perform strongly on benchmark plant disease datasets, and models trained on PlantVillage routinely exceed 95 percent classification accuracy. Systematic reviews covering more than 160 studies report that transfer-learned architectures such as MobileNetV2, ResNet and EfficientNet achieve state-of-the-art results on leaf image classification.

Despite this benchmark accuracy, two obstacles complicate deployment. First, conventional training requires raw leaf images from geographically distributed farms to be collected on a single server. This raises data ownership and privacy concerns, since farm-level disease data can be commercially sensitive, and limited rural bandwidth can make large transfers impractical. Second, an accurate model is not necessarily an interpretable one: a prediction delivered without visual evidence gives a farmer or agronomist little basis for deciding whether an expensive treatment is justified. The black-box nature of deep learning has been identified as one of the main barriers to the adoption of artificial intelligence in agriculture.

Federated learning (FL) addresses the first obstacle by allowing several farms or agricultural organizations to train a shared model without transferring their images to a central server. Each client trains locally and sends only model updates to an aggregation server. FL has been applied to crop disease identification, yield prediction and irrigation control. Two qualifications apply. Sharing model updates instead of images reduces exposure but does not by itself guarantee privacy, since gradients can leak information about training data. In addition, data held by different farms is rarely identically distributed: farms grow different crops, face different regional disease pressure and capture images under different conditions. The resulting statistical heterogeneity can degrade standard aggregation strategies such as FedAvg. FedProx adds a proximal term to each client's local objective that keeps local updates close to the current global model, with the aim of reducing client drift under heterogeneous data.

Explainable artificial intelligence (XAI) addresses the second obstacle by providing visual evidence for predictions. Grad-CAM and SmoothGrad produce attribution maps that indicate which image regions most influenced a classification. Both have been applied widely to centrally trained plant disease classifiers, and studies report that well-trained models attend to lesion regions when appropriate augmentation is used. Much less is known about how these methods behave after federated aggregation. Averaging parameters across clients with different data distributions may not preserve the attribution patterns of a centrally trained model. A systematic review of 145 FL and XAI studies in precision agriculture published between 2023 and 2025 found that few studies combine accuracy, interpretability and robustness under realistic agricultural conditions, and that quantitative evaluation of post-aggregation explanations is largely missing.

This paper makes four contributions. First, it evaluates FedAvg and FedProx for crop disease classification under a controlled sweep of label heterogeneity (identically distributed clients and Dirichlet concentrations α=1,0.5\alpha = 1, 0.5 and 0.1), with three seeds per configuration, a single fixed test split, model selection on the validation split only, bootstrap confidence intervals and paired significance tests. Second, it applies Grad-CAM and SmoothGrad to the aggregated global models and evaluates the resulting explanations quantitatively: faithfulness by deletion and insertion curves, localization against leaf masks and lesion pseudo-masks, agreement with the explanations of a centrally trained model, and a model randomization sanity check. Third, it reports where these explanations fall short, including attribution failure cases, the limited lesion-level localization and the partial failure of SmoothGrad under randomization. Fourth, it shows that a common shortcut in federated plant disease experiments, initializing clients from a model already trained centrally on the same data, yields accuracies that do not reflect federated training. All results are produced by publicly released code and are traceable to stored result files.

References (55)