Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2023 Nov 6;13(1):19220.
doi: 10.1038/s41598-023-46218-5.

Image-based crop disease detection with federated learning

Affiliations

Image-based crop disease detection with federated learning

Denis Mamba Kabala et al. Sci Rep. .

Abstract

Crop disease detection and management is critical to improving productivity, reducing costs, and promoting environmentally friendly crop treatment methods. Modern technologies, such as data mining and machine learning algorithms, have been used to develop automated crop disease detection systems. However, centralized approach to data collection and model training induces challenges in terms of data privacy, availability, and transfer costs. To address these challenges, federated learning appears to be a promising solution. In this paper, we explored the application of federated learning for crop disease classification using image analysis. We developed and studied convolutional neural network (CNN) models and those based on attention mechanisms, in this case vision transformers (ViT), using federated learning, leveraging an open access image dataset from the "PlantVillage" platform. Experiments conducted concluded that the performance of models trained by federated learning is influenced by the number of learners involved, the number of communication rounds, the number of local iterations and the quality of the data. With the objective of highlighting the potential of federated learning in crop disease classification, among the CNN models tested, ResNet50 performed better in several experiments than the other models, and proved to be an optimal choice, but also the most suitable for a federated learning scenario. The ViT_B16 and ViT_B32 Vision Transformers require more computational time, making them less suitable in a federated learning scenario, where computational time and communication costs are key parameters. The paper provides a state-of-the-art analysis, presents our methodology and experimental results, and concludes with ideas and future directions for our research on using federated learning in the context of crop disease classification.

PubMed Disclaimer

Conflict of interest statement

The authors declare no competing interests.

Figures

Figure 1
Figure 1
Working methodology.–We have a working environment comprising a central server for local model aggregation, and local workers with n clients for local model training.
Algorithm 1
Algorithm 1
Client_Role
Algorithm 2
Algorithm 2
Server_Role
Figure 2
Figure 2
Images of four classes of Apple leaves.— Extract of four images of plant leaves from the Apple dataset.
Figure 3
Figure 3
Images of four classes of Corn leaves.—Extract of four images of plant leaves from the Corn dataset.
Figure 4
Figure 4
Images of four classes of Grape leaves.– Extract of four images of plant leaves from the Grape dataset.
Figure 5
Figure 5
Images of ten classes of Tomato leaves.– Extract of ten images of plant leaves from the Tomato dataset.
Figure 6
Figure 6
Accuracy versus Communication Rounds for 3 clients.–This graph shows the Accuracy of models in the configuration where number of clients=3, rounds=30 and epoch=1.
Figure 7
Figure 7
F1-Score versus Communication Rounds for 3 clients.— This graph shows the F1-Score of models in the configuration where number of clients=3, rounds=30 and epoch=1.
Figure 8
Figure 8
Accuracy versus Communication Rounds for 5 clients.— This graph shows the Accuracy of models in the configuration where number of clients=5, rounds=30 and epoch=1.
Figure 9
Figure 9
F1-Score versus Communication Rounds for 5 clients.— This graph shows the F1-Score of models in the configuration where number of clients=5, rounds=30 and epoch=1.
Figure 10
Figure 10
Accuracy versus Communication Rounds for 7 clients.—This graph shows the Accuracy of models in the configuration where number of clients=7, rounds=30 and epoch=1.
Figure 11
Figure 11
F1-Score versus Communication Rounds for 7 clients.— This graph shows the F1-Score of models in the configuration where number of clients=7, rounds=30 and epoch=1.
Figure 12
Figure 12
Accuracy versus Communication Rounds for 3 clients.—This graph shows the Accuracy of models in the configuration where number of clients=3, rounds=100 and epoch=1.
Figure 13
Figure 13
F1-Score versus Communication Rounds for 3 clients.—This graph shows the F1-Score of models in the configuration where number of clients=3, rounds=100 and epoch=1.
Figure 14
Figure 14
Accuracy versus Communication Rounds for 3 clients.—This graph shows the Accuracy of models in the configuration where number of clients=3, rounds=50 and epoch=5.
Figure 15
Figure 15
F1-Score versus Communication Rounds for 3 clients.— This graph shows the F1-Score of models in the configuration where number of clients=3, rounds=50 and epoch=5.

References

    1. Aktar W, Sengupta D, Chowdhury A. Impact of pesticides use in agriculture: Their benefits and hazards. Interdiscip. Toxicol. 2009;2(1):1–12. doi: 10.2478/v10102-009-0001-7. - DOI - PMC - PubMed
    1. Chapter 7: Crop disease and agricultural productivity. In Agricultural Productivity and Producer Behavior 217–250. (University of Chicago Press, 2019). 10.7208/chicago/9780226619941.003.0008 . 10.7208/chicago/9780226619941.003.0008 - DOI
    1. Geetharamani G, Pandian J. A. Identification of plant leaf diseases using a nine-layer deep convolutional neural network. Comput. Electr. Eng. 2019;76:323–338. doi: 10.1016/j.compeleceng.2019.04.011. - DOI
    1. Ouhami M, Hafiane A, Es-Saady Y, Hajji ME, Canals R. Computer vision, IoT and data fusion for crop disease detection using machine learning: A survey and ongoing research. Remote Sens. 2021;13(13):2486. doi: 10.3390/rs13132486. - DOI
    1. Tugrul B, Elfatimi E, Eryigit R. Convolutional neural networks in detection of plant leaf diseases: A review. Agriculture. 2022;12(8):1192. doi: 10.3390/agriculture12081192. - DOI

Publication types