Skip to main navigation menu Skip to main content Skip to site footer

Research Articles

Early Access

Legume leaf disease classification via attention-enhanced Swin transformer with feature pyramid fusion (AE-SwinFPF)

DOI
https://doi.org/10.14719/pst.10613
Submitted
13 July 2025
Published
22-09-2025
Versions

Abstract

Legume crops are vital to global agriculture due to their high nutritional value, ability to fix atmospheric nitrogen and role in promoting sustainable farming practices. However, these crops are susceptible to various foliar diseases that adversely impact productivity and crop quality. Accurate and early disease identification is essential for effective disease control and yield protection. This study proposed an Attention-Enhanced Swin Transformer integrated with Feature Pyramid Fusion (AE-SwinFPF) to effectively capture multi-scale spatial and semantic features for legume leaf disease classification. For enhanced interpretability, Grad-CAM visualizes the model’s focus on disease-relevant regions in the output, providing insights into the decision-making process. The proposed model was evaluated on publicly available legume crop leaf image datasets comprising peas, beans and black gram, achieving classification accuracies of 97.16 %, 98.50 % and 99.99 % respectively. It also consistently yielded high precision, recall and F1-score, demonstrating its reliable and effective performance across all three legume types. Comparative analysis against several baseline Convolutional Neural Network (CNN) models and previously published methods revealed consistent improvements in classification performance. The integration of hierarchical attention with interpretable feature fusion highlights the model's effectiveness and reliability for real-world deployment. However, further validation across diverse crop types and field conditions is recommended to ensure broader applicability.

References

  1. 1. Pierre JF. Legumes: cornerstones of global food security and sustainable agriculture. In: Pierre JF, editor, Legume crops - cultivation, uses and benefits. London: IntechOpen; 2024. https://doi.org/10.5772/intechopen.1006180
  2. 2. Stagnari F, Maggio A, Galieni A, Pisante M. Multiple benefits of legumes for agriculture sustainability: an overview. Chem Biol Technol Agric. 2017;4(1):2. https://doi.org/10.1186/s40538-016-0085-1
  3. 3. Karavidas I, Ntatsi G, Vougeleka V, Karkanis A, Ntanasi T, Saitanis C, et al. Agronomic practices to increase the yield and quality of common bean (Phaseolus vulgaris L.): a systematic review. Agronomy. 2022;12(2):271. https://doi.org/10.3390/agronomy12020271
  4. 4. Vemulakonda AL, Saad AA, Kumar SS, Wani OA, Singh L, Babu S, et al. Revealing the nexus between fertilizer composition and the performance of common bean (Phaseolus vulgaris L.) genotypes in the himalayan heartland of india. Sustainability. 2024;16(14):6234. https://doi.org/10.3390/su16146234
  5. 5. Girmaw DW, Muluneh TW. Deep convolutional neural network model for classifying common bean leaf diseases. Discov Artif Intell. 2024;4(1):96. https://doi.org/10.1007/s44163-024-00212-6
  6. 6. Magrini MB, Anton M, Chardigny JM, Duc G, Duru M, Jeuffroy MH, et al. Pulses for sustainability: breaking agriculture and food sectors out of lock-in. Front Sustain Food Syst. 2018;2:64. https://doi.org/10.3389/fsufs.2018.00064
  7. 7. Nemecek T, von Richthofen JS, Dubois G, Casta P, Charles R, Pahl H. Environmental impacts of introducing grain legumes into European crop rotations. Eur J Agron. 2008;28(3):380–93. https://doi.org/10.1016/j.eja.2007.11.004
  8. 8. Gebre GG, Amekawa Y, Fikadu AA, Rahut DB. Farmers' use of climate change adaptation strategies and their impacts on food security in Kenya. Clim Risk Manag. 2023;40:100495. https://doi.org/10.1016/j.crm.2023.100495
  9. 9. Hwang SF, Wang H, Gossen BD, Chang KF, Turnbull GD, Howard RJ. Impact of foliar diseases on photosynthesis, protein content and seed yield of alfalfa and efficacy of fungicide application. Eur J Plant Pathol. 2006;115(4):389–99. https://doi.org/10.1007/s10658-006-9027-2
  10. 10. Kumari T, Kannan MKJ, Nithya V. A survey on plant leaf disease detection. Int J Comput Appl. 2022;184(17):23–30. https://doi.org/10.5120/ijca2022922170
  11. 11. Osuna-Caballero S, Rispail N, Barilli E, Rubiales D. Management and breeding for rust resistance in legumes. J Plant Pathol. 2024;106(1):1–12. https://doi.org/10.1007/s42161-024-01679-z
  12. 12. Pei G, Qian X, Zhou B, Liu Z, Wu W. Research on agricultural disease recognition methods based on very large kernel convolutional network-RepLKNet. Sci Rep. 2025;15(1):16843. https://doi.org/10.1038/s41598-025-01553-7
  13. 13. Oerke EC. Crop losses to pests. J Agric Sci. 2006;144(1):31–43. https://doi.org/10.1017/S0021859605005708
  14. 14. Garrett KA, Dendy SP, Frank EE, Rouse MN, Travers SE. Climate change effects on plant disease: genomes to ecosystems. Annu Rev Phytopathol. 2006;44(1):489–509. https://doi.org/10.1146/annurev.phyto.44.070505.143420
  15. 15. Ferentinos KP. Deep learning models for plant disease detection and diagnosis. Comput Electron Agric. 2018;145:311–8. https://doi.org/10.1016/j.compag.2018.01.009
  16. 16. Pacal I, Işık G. Utilizing convolutional neural networks and vision transformers for precise corn leaf disease identification. Neural Comput Appl. 2025;37(4):2479–96. https://doi.org/10.1007/s00521-024-10769-Z
  17. 17. Liu Z, Lin Y, Cao Y, Hu H, Wei Y, Zhang Z, et al. Swin transformer: hierarchical vision transformer using shifted windows. In: 2021 IEEE/CVF International Conference on Computer Vision (ICCV). IEEE. 2021. p. 9992–10002. https://doi.org/10.1109/ICCV48922.2021.00986
  18. 18. Karthik R, Aswin R, Geetha KS, Suganthi K. An explainable deep learning network with transformer and custom CNN for bean leaf disease classification. IEEE Access. 2025;13:38562–73. https://doi.org/10.1109/access.2025.3546017
  19. 19. Sharma V, Tripathi AK, Mittal H, Nkenyereye L. SoyaTrans: A novel transformer model for fine-grained visual classification of soybean leaf disease diagnosis. Expert Syst Appl. 2025;260:125385. https://doi.org/10.1016/j.eswa.2024.125385
  20. 20. Katumba A, Okello WS, Murindanyi S, Nakatumba-Nabende J, Bomera M, Mugalu BW, et al. Leveraging edge computing and deep learning for the real-time identification of bean plant pathologies. Smart Agric Technol. 2024;9:100627. https://doi.org/10.1016/j.atech.2024.100627
  21. 21. Noviandy TR, Maulana A, Khowarizmi F, Muchtar K. Effect of CLAHE-based enhancement on bean leaf disease classification through explainable AI. In: 2023 IEEE 12th Global Conference on Consumer Electronics (GCCE). IEEE. 2023. p. 544–47. https://doi.org/10.1109/gcce59613.2023.10315394
  22. 22. Tavakoli H, Alirezazadeh P, Hedayatipour A, Banijamali Nasib AH, Landwehr N. Leaf image-based classification of some common bean cultivars using discriminative convolutional neural networks. Comput Electron Agric 2021;181:105935. https://doi.org/10.1016/j.compag.2020.105935
  23. 23. Mallick MT, Biswas S, Das AK, Saha HN, Chakrabarti A, Deb N. Deep learning based automated disease detection and pest classification in Indian mung bean. Multimed Tools Appl. 2023;82(8):12017–41. https://doi.org/10.1007/s11042-022-13673-7
  24. 24. Elfatimi E, Eryigit R, Elfatimi L. Beans leaf diseases classification using MobileNet models. IEEE Access. 2022;10:9471–82. https://doi.org/10.1109/access.2022.3142817
  25. 25. Abed S, Esmaeel AA. A novel approach to classify and detect bean diseases based on image processing. In: 2018 IEEE Symposium on Computer Applications & Industrial Electronics (ISCAIE). IEEE. 2018. p. 297–302. https://doi.org/10.1109/iscaie.2018.8405488
  26. 26. Singh K, Kumar S, Kaur P. Support vector machine classifier-based detection of fungal rust disease in pea plant (Pisum sativum). Int J Inf Technol. 2019;11(3):485–92. https://doi.org/10.1007/s41870-018-0134-Z
  27. 27. Ray P, Chandran D. Spray inoculation and image analysis-based quantification of powdery mildew disease severity on pea leaves. MethodsX. 2024;13:102980. https://doi.org/10.1016/j.mex.2024.102980
  28. 28. Hajare N, Rajawat AS. IoT based smart agri system: deep classifiers for black gram disease classification with modified feature set. Int J Syst Assur Eng Manag. 2024;15(7):3368–84. https://doi.org/10.1007/s13198-024-02347-2
  29. 29. Talasila S, Rawal K, Sethi G. Black gram disease classification using a novel deep convolutional neural network. Multimed Tools Appl. 2023;82(28):44309–33. https://doi.org/10.1007/s11042-023-15220-4
  30. 30. Hajare N, Rajawat AS. Black gram disease classification via deep ensemble model with optimal training. Int J Image Graph. 2023;23(8):2550033. https://doi.org/10.1142/S0219467825500330
  31. 31. Makerere AI Lab. ibean: Bean disease dataset. 2020. https://github.com/AI-Lab-Makerere/ibean/
  32. 32. Zunorain. Pea plant dataset. 2022. https://www.kaggle.com/datasets/zunorain/pea-plant-dataset
  33. 33. Andy Ting Zhi Wei. Black gram plant leaf disease. 2023. https://www.kaggle.com/datasets/andytingzhiwei/black-gram-plant-leaf-disease
  34. 34. Mehta S, Kukreja V, Gupta A. Collaborative intelligence in AgriTech: federated learning CNN for bean leaf disease classification. In: 2023 World Conference on Communication & Computing (WCONF). IEEE. 2023. p. 1–6. https://doi.org/10.1109/wconf58270.2023.10235221
  35. 35. Wang Y, Wang Q, Su Y, Jing B, Feng M. Detection of kidney bean leaf spot disease based on a hybrid deep learning model. Sci Rep. 2025;15(1):11185. https://doi.org/10.1038/s41598-025-93742-7
  36. 36. Pravin SS, Surendiran A, Sriraman P, Mariyappan I. Early detection and classification of black gram plant leaf diseases using ITL-CHB method. IETE J Res. 2025;71(2):465–78. https://doi.org/10.1080/03772063.2024.2425775
  37. 37. Prasanth K, Kabilamani P, Sangar G, Kaliraj V, Rajasekar V. Enhanced disease recognition and classification in black gram plant leaves using deep learning. In: Geetha R, Dao NN, Khalid S, editors. Advances in artificial intelligence and machine learning in big data processing. AAIMB 2023. Communications in Computer and Information Science, vol 2202. Cham: Springer. 2025. p. 213–24. https://doi.org/10.1007/978-3-031-73065-8_17
  38. 38. Sangar G, Rajasekar V. An optimized attention-based deep learning model for black gram leaf disease classification. J Theor Appl Inf Technol. 2025;28(4). https://doi.org/10.5281/zenodo.15118315

Downloads

Download data is not yet available.