Introduction: Crop yield prediction is important for agricultural planning, food security, and sustainable farming. However, the farmers are aware with the traditional yield prediction approaches that are based on the centralized data aggregation. In this scenario, farmers raise concerns about data privacy, ownership, and security. Because the farmers are not reluctant to share their farm-level data. Objective: In this paper, we aim to predict crop yield using federated learning. To handle the issues, we have developed a privacy-preserving crop yield prediction framework using the federated learning environment (FL), `facilitating collaborative model training without the exchange of raw data. `
Material/method: This study uses 20 machine learning models to predict yield. This paper utilizes the SPAS-Dataset-BD, which contains 4,608 samples from 64 districts in Bangladesh. Apart from these four centralized ML classifiers (RF, DT, GB, and ET), the remaining models are considered as base models. Subsequently, their federated counterparts were implemented through multiple communication rounds, and their performance was evaluated against that of locally trained models trained independently.
Result: Experimental work shows that the centralized tree model (ET) performed well, with an RMSE of 3462.06 tons and an R2 of 0.9946. Among twenty ML models, ET gives the overall best performer. The Weighted Federated Gradient Boosting model achieved the highest federated performance among the privacy-preserving approaches, with an RMSE of 21403.59 tonnes and a R² score of 0.7954.`The average local model has an RMSE of 25503.50 tonnes and a R² score of 0.7096. Although centralized learning achieved the highest prediction accuracy, federated learning significantly improved performance over local models while preserving data privacy.
Conclusion : Our result demonstrates that FL is a promising approach for distributed and secure agricultural analytics and crop yield prediction systems since it provides an efficient balance between prediction accuracy and privacy preservation