A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning
<p>Samples from our Imagery Dataset that Show Different Types of Healthy and Diseased Plant Leaves.</p> "> Figure 2
<p>System Architecture.</p> "> Figure 3
<p>The Structure of the CNN model.</p> "> Figure 4
<p>Dataset Augmentation.</p> "> Figure 5
<p>The Training Accuracy and Loss of the CNN Model.</p> "> Figure 6
<p>Screenshots of the Mobile App for Detecting Plant Leaf Diseases. (<b>a</b>) Landing Screen, (<b>b</b>) Image Selection Sceeen, (<b>c</b>) Inference Result of the CNN Model.</p> "> Figure 7
<p>Examples of Successful Recognition of Different Plant Leaf Diseases in Natural Conditions. (<b>a</b>) Tomato Leaf Mold, (<b>b</b>) Corn Common rust, (<b>c</b>) Potato Late Blight, (<b>d</b>) Apple Black Rot, (<b>e</b>) Tomato Target Spot.</p> "> Figure 8
<p>The Confusion matrix for the CNN Model.</p> ">
Abstract
:1. Introduction
2. Related Work
3. System Design
3.1. CNN Structure
3.2. Dataset
4. Implementation
4.1. CNN Implementation
4.2. Mobile App
5. Experimental Evaluation
6. Conclusions and Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Sinha, A.; Shekhawat, R.S. Review of image processing approaches for detecting plant diseases. IET Image Process. 2020, 14, 27–39. [Google Scholar] [CrossRef]
- Ai, Y.; Sun, C.; Tie, J.; Cai, X. Research on recognition model of crop diseases and insect pests based on deep learning in harsh environments. IEEE Access 2020, 8, 686–693. [Google Scholar] [CrossRef]
- Zeng, Q.; Ma, X.; Cheng, B.; Zhou, E.; Pang, W. Gans-based data augmentation for citrus disease severity detection using deep learning. IEEE Access 2020, 8, 882–891. [Google Scholar] [CrossRef]
- Thomas, S.; Thomas, S.; Kuska, M.T.; Bohnenkamp, D.; Brugger, A.; Alisaac, E.; Wahabzada, M.; Behmann, J.; Mahlein, A.K. Benefits of hyperspectral imaging for plant disease detection and plant protection: A technical perspective. J. Plant Dis. Prot. 2018, 125, 5–20. [Google Scholar] [CrossRef]
- Crop Protection Network. 2021. Available online: https://cropprotectionnetwork.org/ (accessed on 25 June 2021).
- Jiang, P.; Chen, Y.; Liu, B.; He, D.; Liang, C. Real-time detection of apple leaf diseases using deep learning approach based on improved convolutional neural networks. IEEE Access 2019, 7, 69–80. [Google Scholar] [CrossRef]
- Chen, W.; Lin, Y.; Ng, F.; Liu, C.; Lin, Y. Ricetalk: Rice blast detection using internet of things and artificial intelligence technologies. IEEE Internet Things J. 2020, 7, 1001–1010. [Google Scholar] [CrossRef]
- He, K.; Gkioxari, G.; Dollár, P.; Girshick, R. Mask R-CNN. In Proceedings of the IEEE International Conference on Computer Vision, ser. ICCV ’17, Venice, Italy, 22–29 October 2017; pp. 2980–2988. [Google Scholar]
- Ahmed, A.A.; Omari, S.A.; Awal, R.; Fares, A.; Chouikha, M. A distributed system for supporting smart irrigation using iot technology. Eng. Rep. 2020, 1–13. [Google Scholar] [CrossRef]
- Sun, J.; Yang, Y.; He, X.; Wu, X. Northern maize leaf blight detection under complex field environment based on deep learning. IEEE Access 2020, 8, 79–688. [Google Scholar] [CrossRef]
- Su, J.; Yi, D.; Su, B.; Mi, Z.; Liu, C.; Hu, X.; Xu, X.; Guo, L.; Chen, W.H. Aerial visual perception in smart farming: Field study of wheat yellow rust monitoring. IEEE Trans. Ind. Inf. 2021, 17, 42–49. [Google Scholar] [CrossRef] [Green Version]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. Imagenet classification with deep convolutional neural networks. In Advances in Neural Information Processing Systems; Pereira, F., Burges, C.J.C., Bottou, L., Weinberger, K.Q., Eds.; Association for Computing Machinery: New York, NY, USA, 2012; Volume 25, pp. 1097–1105. [Google Scholar]
- USDA. Plant Diseases That Threaten U.S. Agriculture. 2021. Available online: https://www.ars.usda.gov/crop-production-and-protection/plant-diseases/docs/npdrs/ (accessed on 25 June 2021).
- Government of Western Australia: Pests and Weeds Diseases. 2021. Available online: https://www.agric.wa.gov.au/pests-weeds-diseases/diseases/ (accessed on 25 June 2021).
- Ramcharan, A.; McCloskey, P.; Baranowski, E.A.K. A mobile-based deep learning model for cassava disease diagnosis. Front. Plant Sci. 2019, 10, 1–8. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Openvino: A Toolkit for Optimizing Deep Learning Models. 2021. Available online: https://software.intel.com/content/www/us/en/develop/tools/openvino-toolkit.html (accessed on 25 June 2021).
- Lin, T.; Maire, M.; Belongie, S.J.; Bourdev, L.D.; Girshick, R.B.; Hays, J.; Perona, P.; Ramanan, D.; Dollár, P.; Zitnick, C.L. Microsoft COCO: Common objects in context. In European Conference on Computer Vision; Springer: Cham, Switzerland, 2014. [Google Scholar]
- Kaggle: Machine Learning and Data Science Community. 2021. Available online: https://www.kaggle.com/ (accessed on 25 June 2021).
- Hughes, D.P.; Salathe, M. An open access repository of images on plant health to enable the development of mobile disease diagnostics. Comput. Soc. 2016, 11, 1–13. [Google Scholar]
- Google Web Scraper. 2021. Available online: https://chrome.google.com/webstore/detail/web-scraper/jnhgnonknehpejjnehehllkliplmbmhn?hl=en (accessed on 25 June 2021).
- Keras: A Python Deep Learning Api. 2021. Available online: https://keras.io/ (accessed on 25 June 2021).
- Tensorflow: A Machine Learning Platform. 2021. Available online: https://www.tensorflow.org/ (accessed on 25 June 2021).
- Kotlin: A Multiplatform Mobile Framework. 2021. Available online: https://kotlinlang.org/lp/mobile/ (accessed on 25 June 2021).
- Moamen, A.A.; Nadeem, J. ModeSens: An approach for multi-modal mobile sensing. In Proceedings of the 2015 ACM SIGPLAN International Conference on Systems, Programming, Languages and Applications: Software for Humanity, ser. SPLASH Companion 2015, Pittsburgh, PA, USA, 25–30 October 2015; pp. 40–41. [Google Scholar]
- Abdelmoamen, A. A modular approach to programming multi-modal sensing applications. In Proceedings of the IEEE International Conference on Cognitive Computing, ser. ICCC ’18, San Francisco, CA, USA, 2–7 July 2018; pp. 91–98. [Google Scholar]
- Moamen, A.A.; Jamali, N. An actor-based approach to coordinating crowd-sourced services. Int. J. Serv. Comput. 2014, 2, 43–55. [Google Scholar] [CrossRef]
- Moamen, A.A.; Jamali, N. CSSWare: A middleware for scalable mobile crowd-sourced services. In Proceedings of the MobiCASE, Berlin, Germany, 12–13 November 2015; pp. 181–199. [Google Scholar]
- Moamen, A.A.; Jamali, N. Supporting resource bounded multitenancy in akka. In Proceedings of the ACM SIGPLAN International Conference on Systems, Programming, Languages and Applications: Software for Humanity (SPLASH Companion 2016), Amsterdam, The Netherlands, 30 October–4 November 2016; pp. 33–34. [Google Scholar]
- Moamen, A.A.; Wang, D.; Jamali, N. Supporting resource control for actor systems in akka. In Proceedings of the International Conference on Distributed Computing Systems (ICDCS 2017), Atlanta, GA, USA, 5–8 June 2017; pp. 1–4. [Google Scholar]
- Abdelmoamen, A.; Wang, D.; Jamali, N. Approaching actor-level resource control for akka. In Proceedings of the IEEE Workshop on Job Scheduling Strategies for Parallel Processing, ser. JSSPP ’18, Vancouver, BC, Canada, 25 May 2018; pp. 1–15. [Google Scholar]
- Moamen, A.M.A.; Hamza, H.S. On securing atomic operations in multicast aodv. Ad Hoc Sens. Wirel. Netw. 2015, 28, 137–159. [Google Scholar]
- Moamen, A.A.; Jamali, N. ShareSens: An approach to optimizing energy consumption of continuous mobile sensing workloads. In Proceedings of the 2015 IEEE International Conference on Mobile Services (MS’15), New York, NY, USA, 27 June–2 July 2015; pp. 89–96. [Google Scholar]
- Moamen, A.A.; Jamali, N. Opportunistic sharing of continuous mobile sensing data for energy and power conservation. IEEE Trans. Serv. Comput. 2020, 13, 503–514. [Google Scholar] [CrossRef]
- Moamen, A.A.; Jamali, N. CSSWare: An actor-based middleware for mobile crowd-sourced services. In Proceedings of the 2015 EAI International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services (Mobiquitous’15), Coimbra, Portugal, 22–24 July 2015; pp. 287–288. [Google Scholar]
- Ahmed, A.A.; Olumide, A.; Akinwa, A.; Chouikha, M. Constructing 3D maps for dynamic environments using autonomous uavs. In Proceedings of the 2019 EAI International Conference on Mobile and Ubiquitous Systems: Computing, Networking and Services (Mobiquitous’19), Houston, TX, USA, 12–14 November 2019; pp. 504–513. [Google Scholar]
- Moamen, A.A.; Jamali, N. An actor-based middleware for crowd-sourced services. EAI Endorsed Trans. Mob. Commun. Appl. 2017, 3, 1–15. [Google Scholar]
- Abdelmoamen, A.; Jamali, N. A model for representing mobile distributed sensing-based services. In Proceedings of the IEEE International Conference on Services Computing, ser. SCC’18, San Francisco, CA, USA, 2–7 July 2018; pp. 282–286. [Google Scholar]
- Ahmed, A.A. A model and middleware for composable iot services. In Proceedings of the International Conference on Internet Computing & IoT, ser. ICOMP’19, Las Vegas, NV, USA, 29 July–1 August 2019; pp. 108–114. [Google Scholar]
- Ahmed, A.A.; Eze, T. An actor-based runtime environment for heterogeneous distributed computing. In Proceedings of the International Conference on Parallel & Distributed Processing, ser. PDPTA’19, Las Vegas, NV, USA, 29 July–1 August 2019; pp. 37–43. [Google Scholar]
- Moamen, A.A.; Hamza, H.S.; Saroit, I.A. Secure multicast routing protocols in mobile ad-hoc networks. Int. J. Commun. Syst. 2014, 27, 2808–2831. [Google Scholar] [CrossRef]
- Ahmed, A.A. A privacy-preserving mobile location-based advertising system for small businesses. Eng. Rep. 2021, 1–15. [Google Scholar] [CrossRef]
- Ahmed, A.A.; Echi, M. Hawk-eye: An ai-powered threat detector for intelligent surveillance cameras. IEEE Access 2021, 9, 63283–63293. [Google Scholar] [CrossRef]
Class # | Plant Disease Classes | Training | Validation | Testing | Total |
---|---|---|---|---|---|
1 | Apple scab | 2016 | 504 | 209 | 2819 |
2 | Apple Black rot | 1987 | 497 | 246 | 2730 |
3 | Apple Cedar apple rust | 1760 | 440 | 220 | 2420 |
4 | Apple healthy | 2008 | 502 | 187 | 2697 |
5 | Blueberry healthy | 1816 | 454 | 232 | 2502 |
6 | Cherry healthy | 1826 | 456 | 192 | 2282 |
7 | Cherry Powdery mildew | 1683 | 421 | 209 | 2214 |
8 | Corn Cercospora Gray leaf spot | 1642 | 410 | 162 | 2214 |
9 | Corn Common rust | 1907 | 477 | 234 | 2618 |
10 | Corn healthy | 1859 | 465 | 233 | 2557 |
11 | Corn Northern Leaf Blight | 1908 | 477 | 209 | 2594 |
12 | Grape Black rot | 1888 | 472 | 231 | 2591 |
13 | Grape Esca Black Measles | 1920 | 480 | 220 | 2620 |
14 | Grape healthy | 1692 | 423 | 198 | 2313 |
15 | Grape blight Isariopsis | 1722 | 430 | 220 | 2372 |
16 | Orange Citrus greening | 2010 | 503 | 253 | 2766 |
17 | Peach Bacterial spot | 1838 | 459 | 220 | 2517 |
18 | Peach healthy | 1728 | 432 | 231 | 2391 |
19 | Pepper bell Bacterial spot | 1913 | 478 | 220 | 2611 |
20 | Pepper bell healthy | 1988 | 497 | 242 | 2727 |
21 | Potato Early blight | 1939 | 485 | 231 | 2655 |
22 | Potato healthy | 1824 | 456 | 231 | 2511 |
23 | Potato Late blight | 1939 | 485 | 231 | 2655 |
24 | Raspberry healthy | 1781 | 445 | 209 | 2435 |
25 | Soybean healthy | 2022 | 505 | 253 | 2780 |
26 | Squash Powdery mildew | 1736 | 434 | 209 | 2379 |
27 | Strawberry healthy | 1824 | 456 | 242 | 2522 |
28 | Strawberry Leaf scorch | 1774 | 444 | 209 | 2427 |
29 | Tomato Bacterial spot | 1702 | 425 | 209 | 2336 |
30 | Tomato Early blight | 1920 | 480 | 242 | 2642 |
31 | Tomato healthy | 1926 | 481 | 231 | 2638 |
32 | Tomato Late blight | 1851 | 463 | 220 | 2534 |
33 | Tomato Leaf Mold | 1882 | 470 | 242 | 2594 |
34 | Tomato Septoria leaf spot | 1745 | 436 | 220 | 2401 |
35 | Tomato Two-spotted spider mite | 1741 | 435 | 143 | 2319 |
36 | Tomato Target Spot | 1827 | 457 | 220 | 2504 |
37 | Tomato mosaic virus | 1790 | 448 | 209 | 2447 |
38 | Tomato Yellow Leaf Curl Virus | 1961 | 490 | 220 | 2671 |
Total | 70,295 | 17,572 | 8339 | 96,206 |
Class # | Plant Disease Classes | Precision | Recall | F1-score |
---|---|---|---|---|
1 | Apple scab | 0.95 | 0.93 | 0.94 |
2 | Apple Black rot | 0.93 | 0.99 | 0.96 |
3 | Apple Cedar apple rust | 0.98 | 0.96 | 0.97 |
4 | Apple healthy | 0.97 | 0.96 | 0.96 |
5 | Blueberry healthy | 0.97 | 0.98 | 0.98 |
6 | Cherry healthy | 0.98 | 0.99 | 0.98 |
7 | Cherry Powdery mildew | 0.99 | 0.97 | 0.98 |
8 | Corn Cercospora Gray leaf spot | 0.96 | 0.86 | 0.91 |
9 | Corn Common rust | 0.98 | 1.00 | 0.99 |
10 | Corn healthy | 1.00 | 1.00 | 1.00 |
11 | Corn Northern Leaf Blight | 0.89 | 0.95 | 0.92 |
12 | Grape Black rot | 0.98 | 0.96 | 0.97 |
13 | Grape Esca Black Measles | 0.96 | 0.99 | 0.97 |
14 | Grape healthy | 1.00 | 0.99 | 0.99 |
15 | Grape blight Isariopsis | 0.99 | 1.00 | 0.99 |
16 | Orange Citrus greening | 0.98 | 1.00 | 0.99 |
17 | Peach Bacterial spot | 0.93 | 0.98 | 0.96 |
18 | Peach healthy | 0.94 | 1.00 | 0.97 |
19 | Pepper bell Bacterial spot | 0.90 | 0.97 | 0.93 |
20 | Pepper bell healthy | 0.96 | 0.94 | 0.95 |
21 | Potato Early blight | 0.98 | 0.96 | 0.97 |
22 | Potato healthy | 0.97 | 0.88 | 0.93 |
23 | Potato Late blight | 0.90 | 0.94 | 0.92 |
24 | Raspberry healthy | 0.96 | 0.99 | 0.97 |
25 | Soybean healthy | 0.94 | 0.97 | 0.95 |
26 | Squash Powdery mildew | 0.99 | 1.00 | 0.99 |
27 | Strawberry healthy | 0.99 | 0.93 | 0.96 |
28 | Strawberry Leaf scorch | 1.00 | 0.99 | 0.99 |
29 | Tomato Bacterial spot | 0.84 | 0.95 | 0.89 |
30 | Tomato Early blight | 0.90 | 0.68 | 0.78 |
31 | Tomato healthy | 0.92 | 0.93 | 0.92 |
32 | Tomato Late blight | 0.85 | 0.89 | 0.87 |
33 | Tomato Leaf Mold | 0.88 | 0.91 | 0.89 |
34 | Tomato Septoria leaf spot | 0.80 | 0.81 | 0.80 |
35 | Tomato Two-spotted spider mite | 0.88 | 0.81 | 0.84 |
36 | Tomato Target Spot | 0.77 | 0.76 | 0.76 |
37 | Tomato mosaic virus | 0.88 | 0.94 | 0.91 |
38 | Tomato Yellow Leaf Curl Virus | 0.99 | 0.92 | 0.96 |
Overall Average Accuracy | 0.94 | |||
Macro Average | 0.94 | 0.94 | 0.94 | |
Weighted Average | 0.94 | 0.94 | 0.94 |
Class # | Plant Disease Classes | Accuracy | Prediction Time (s) |
---|---|---|---|
1 | Apple scab | 92% | 0.99 |
2 | Apple Black rot | 92% | 1.01 |
3 | Apple Cedar apple rust | 99% | 0.77 |
4 | Apple healthy | 95% | 1.11 |
5 | Blueberry healthy | 96% | 0.76 |
6 | Cherry healthy | 98% | 0.74 |
7 | Cherry Powdery mildew | 100% | 0.75 |
8 | Corn Cercospora Gray leaf spot | 80% | 0.79 |
9 | Corn Common rust | 99% | 0.89 |
10 | Corn healthy | 100% | 1.02 |
11 | Corn Northern Leaf Blight | 88% | 1.06 |
12 | Grape Black rot | 98% | 1.31 |
13 | Grape Esca Black Measles | 97% | 0.75 |
14 | Grape healthy | 99% | 0.74 |
15 | Grape blight Isariopsis | 100% | 1.37 |
16 | Orange Citrus greening | 96% | 0.75 |
17 | Peach Bacterial spot | 99% | 0.76 |
18 | Peach healthy | 98% | 0.93 |
19 | Pepper bell Bacterial spot | 81% | 0.86 |
20 | Pepper bell healthy | 93% | 0.95 |
21 | Potato Early blight | 100% | 0.74 |
22 | Potato healthy | 98% | 0.88 |
23 | Potato Late blight | 87% | 0.75 |
24 | Raspberry healthy | 99% | 1.04 |
25 | Soybean healthy | 92% | 0.93 |
26 | Squash Powdery mildew | 100% | 0.84 |
27 | Strawberry healthy | 98% | 0.87 |
28 | Strawberry Leaf scorch | 99% | 0.74 |
29 | Tomato Bacterial spot | 92% | 0.73 |
30 | Tomato Early blight | 93% | 0.76 |
31 | Tomato healthy | 93% | 0.89 |
32 | Tomato Late blight | 90% | 0.75 |
33 | Tomato Leaf Mold | 83% | 0.77 |
34 | Tomato Septoria leaf spot | 83% | 1.04 |
35 | Tomato Two-spotted spider mite | 78% | 0.96 |
36 | Tomato Target Spot | 74% | 1.04 |
37 | Tomato mosaic virus | 92% | 0.75 |
38 | Tomato Yellow Leaf Curl Virus | 97% | 0.73 |
Average | 93.6% | 0.88 |
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations. |
© 2021 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Ahmed, A.A.; Reddy, G.H. A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning. AgriEngineering 2021, 3, 478-493. https://doi.org/10.3390/agriengineering3030032
Ahmed AA, Reddy GH. A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning. AgriEngineering. 2021; 3(3):478-493. https://doi.org/10.3390/agriengineering3030032
Chicago/Turabian StyleAhmed, Ahmed Abdelmoamen, and Gopireddy Harshavardhan Reddy. 2021. "A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning" AgriEngineering 3, no. 3: 478-493. https://doi.org/10.3390/agriengineering3030032
APA StyleAhmed, A. A., & Reddy, G. H. (2021). A Mobile-Based System for Detecting Plant Leaf Diseases Using Deep Learning. AgriEngineering, 3(3), 478-493. https://doi.org/10.3390/agriengineering3030032