Enhanced Plant Disease Classification Using Deep Learning: An Attention-Guided Transfer Learning Approach
Keywords:
Attention mechanism, Convolutional neural networks, Deep learning, Efficient Net, Grad-CAM, Plant disease classification, Precision agriculture, Transfer learningAbstract
Timely and accurate identification of crop diseases from leaf images remains one of the more stubborn problems in precision agriculture, largely because the visual differences between many diseases are subtle and the imaging conditions in the field are anything but controlled. This paper presents an enhanced deep learning framework for plant leaf disease classification that couples a lightweight EfficientNet-B0 backbone with a Convolutional Block Attention Module (CBAM) and a carefully tuned training pipeline. The attention module lets the network concentrate on lesion-bearing regions of the leaf rather than spreading its capacity across the whole image, while the training pipeline — combining transfer learning, an aggressive-but-realistic augmentation strategy, label smoothing, and mixup regularisation — pushes generalisation without inflating the parameter budget. Evaluation of the model is performed on the PlantVillage dataset (54,305 images across 38 disease-and-crop categories spanning 14 species), with benchmarking against six widely used convolutional architectures: VGG16, InceptionV3, ResNet50, MobileNetV2, DenseNet121, and a plain EfficientNet-B0. The proposed model reaches a test accuracy of 99.56% with a macro-averaged F1-score of 99.54%, outperforming every baseline while keeping the parameter count at roughly 5.4 million — an order of magnitude smaller than VGG16. An ablation study isolates the contribution of each component, and Grad-CAM visualisations confirm that the attention-augmented network attends to the diseased tissue rather than the background. A deliberately unflattering cross-dataset evaluation on field-condition images is also presented, where accuracy decreases to 71.8%, highlighting the challenges and implications for real-world deployment. The results suggest that modest architectural additions, applied thoughtfully, can deliver a favourable accuracy-to-cost trade-off suitable for mobile and edge diagnosis.
References
Food and Agriculture Organization of the United Nations, "Climate change fans spread of pests and threatens plants and crops, new FAO study," FAO, Rome, Italy, 2021.
S. Savary, L. Willocquet, S. J. Pethybridge, P. Esker, N. McRoberts, and A. Nelson, "The global burden of pathogens and pests on major food crops," Nature Ecology & Evolution, vol. 3, no. 3, pp. 430–439, Mar. 2019.
A. Krizhevsky, I. Sutskever, and G. E. Hinton, "ImageNet classification with deep convolutional neural networks," Communications of the ACM, vol. 60, no. 6, pp. 84–90, Jun. 2017.
D. Hughes and M. Salathé, "An open access repository of images on plant health to enable the development of mobile disease diagnostics," arXiv preprint arXiv:1511.08060, Nov. 2015.
S. P. Mohanty, D. P. Hughes, and M. Salathé, "Using deep learning for image-based plant disease detection," Frontiers in Plant Science, vol. 7, Art. no. 1419, Sep. 2016.
S. Sladojevic, M. Arsenovic, A. Anderla, D. Culibrk, and D. Stefanovic, "Deep neural networks based recognition of plant diseases by leaf image classification, " Computational Intelligence and Neuroscience, vol. 2016, Art. no. 3289801, 2016.
K. P. Ferentinos, "Deep learning models for plant disease detection and diagnosis," Computers and Electronics in Agriculture, vol. 145, pp. 311–318, Feb. 2018.
E. C. Too, L. Yujian, S. Njuki, and L. Yingchun, "A comparative study of fine-tuning deep learning models for plant disease identification," Computers and Electronics in Agriculture., vol. 161, pp. 272–279, Jun. 2019.
Ü. Atila, M. Uçar, K. Akyol, and E. Uçar, "Plant leaf disease classification using EfficientNet deep learning model," Ecological Informatics, vol. 61, Art. no. 101182, Mar. 2021.
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei, "ImageNet: A large-scale hierarchical image database," IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Miami, FL, USA, 2009, pp. 248–255.
O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, M. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, and A. C. Berg, "ImageNet large scale visual recognition challenge," International Journal of Computer Vision, vol. 115, no. 3, pp. 211–252, Dec. 2015.
J. Chen, J. Chen, D. Zhang, Y. Sun, and Y. A. Nanehkaran, "Using deep transfer learning for image-based plant disease identification," Computers and Electronics in Agriculture., vol. 173, Art. no. 105393, Jun. 2020.
J. Hu, L. Shen, and G. Sun, "Squeeze-and-excitation networks," IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 2018, pp. 7132–7141.
S. Woo, J. Park, J.-Y. Lee, and I.-S. Kweon, "CBAM: Convolutional block attention module, European Conference on Computer Vision (ECCV), Munich, Germany, 2018, pp. 3–19.
J. G. A. Barbedo, "Factors influencing the use of deep learning for plant disease recognition," Biosystems Engineering., vol. 172, pp. 84–91, Aug. 2018.
D. Singh, N. Jain, P. Jain, P. Kayal, S. Kumawat, and N. Batra, "PlantDoc: A dataset for visual plant disease detection," Proceedings of the 7th ACM India Joint International Conference on Data Science and Management of Data, Hyderabad, India, 2020, pp. 249–253.
Z. Zhong, L. Zheng, G. Kang, S. Li, and Y. Yang, "Random erasing data augmentation,” In Proceedings of the AAAI Conference on Artificial Intelligence., vol. 34, no. 7, pp. 13001–13008, 2020.
H. Zhang, M. Cisse, Y. N. Dauphin, and D. Lopez-Paz, "mixup: Beyond empirical risk minimization," arXiv preprint arXiv:1710.09412, Oct. 2017.
M. Tan and Q. V. Le, "EfficientNet: Rethinking model scaling for convolutional neural networks," arXiv preprint arXiv:1905.11946, May 2019.
C. Szegedy, V. Vanhoucke, S. Ioffe, J. Shlens, and Z. Wojna, "Rethinking the Inception architecture for computer vision," Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 2016, pp. 2818–2826.
I. Loshchilov and F. Hutter, "Decoupled weight decay regularization," arXiv preprint arXiv:1711.05101, Nov. 2017.
I. Loshchilov and F. Hutter, "SGDR: Stochastic gradient descent with warm restarts," arXiv preprint arXiv:1608.03983, Aug. 2016.
R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, "Grad-CAM: Visual explanations from deep networks via gradient-based localization," International Journal of Computer Vision., vol. 128, no. 2, pp. 336–359, Feb. 2020.
K. Simonyan and A. Zisserman, "Very deep convolutional networks for large-scale image recognition," arXiv preprint arXiv:1409.1556, Sep. 2014.
K. He, X. Zhang, S. Ren, and J. Sun, "Deep residual learning for image recognition," In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition), Las Vegas, NV, USA, 2016, pp. 770–778.
G. Huang, Z. Liu, L. van der Maaten, and K. Q. Weinberger, "Densely connected convolutional networks," arXiv preprint arXiv:1608.06993, Aug. 2016.
M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, and L.-C. Chen, "MobileNetV2: Inverted residuals and linear bottlenecks," arXiv preprint arXiv:1801.04381, Jan. 2018.
M. Brahimi, K. Boukhalfa, and A. Moussaoui, "Deep learning for tomato diseases: Classification and symptoms visualisation," Applied Artificial Intelligence, vol. 31, no. 4, pp. 299–315, 2017.
D. Argüeso, A. Picon, U. Irusta, A. Medela, M. G. San-Emeterio, A. Bereciartua, and A. Alvarez-Gila, "Few-shot learning approach for plant disease classification using images taken in the field," Computers and Electronics in Agriculture, vol. 175, Art. no. 105542, Aug. 2020.
D. P. Kingma and J. Ba, "Adam: A method for stochastic optimization," arXiv preprint arXiv:1412.6980, Dec. 2014.