Legume Research

Legume Research cover
Volume 49 · 2026/08/22

A DenseNet121-based Deep Learning Approach for Multi-class Classification of Cowpea Leaf Diseases

Seng-Phil Hong
107 Views

Submitted

2026/03/24

First Online

2026/08/22

doi

10.18805/LR-5659

Cite article - Seng-Phil Hong. (2026). A DenseNet121-based Deep Learning Approach for Multi-class Classification of Cowpea Leaf Diseases. Legume Research. 49: 35–44. doi: 10.18805/LR-5659

Abstract

Background: Cowpea is a drought-resilient legume that is important in India, Africa and parts of Asia. In India, it is widely cultivated in arid and semi-arid regions, supporting rural nutrition and income. Leaf diseases, however, significantly reduce yields, making AI-based detection systems essential for timely and accurate diagnosis.

Methods: This study presents a deep learning framework using DenseNet121 for multi-class classification of cowpea leaf conditions: Bacterial wilt, septoria leaf spot, mosaic virus and fresh leaves. A total of 2,273 annotated images were curated, preprocessed and divided into training, validation and test sets. Real-time data augmentation and transfer learning techniques were employed to improve model generalization. The model was trained using categorical cross-entropy loss and evaluated with various metrics.

Result: The model achieved a test accuracy of 93.87%, with strong F1-scores and precision across all four classes. The matthews correlation coefficient (MCC) was 0.9184, indicating high reliability, while the multi-class ROC-AUC score reached 0.9931, showing excellent class separability. Confusion matrix and precision–recall analysis further confirmed robust performance, especially for bacterial wilt and Septoria leaf spot. These results support the model’s potential for integration into smart agricultural systems for early disease detection in cowpea cultivation.

References

  1. Abebe, B.K. and Alemayehu, M.T. (2022). A review of the nutritional use of cowpea [ Vigna unguiculata (L.) Walp] for human and animal diets. Journal of Agriculture and Food Research . 10: 100383. https://doi.org/10.1016/j.jafr.2022.100383. Adhab, M., Ezzulddin, D.L. and Ahmed, A.S. (2025). Cultivating resilience: Sustainable plant virus control in Iraq’s agricultural landscape. BIO Web of Conferences . 192: 06002. https://doi.org/10.1051/bioconf/202519206002. Anaz, A., Kadhim, N., Sadoon, O., Alwan, G. and Adhab, M. (2023). Sustainable utilization of machine-vision-technique- based algorithm in objective evaluation of confocal microscope images. Sustainability . 15(4): 3726. https:// doi.org/10.3390/su15043726. Arathi, B. and Dulhare, U.N. (2023). Classification of Cotton Leaf Diseases Using Transfer Learning-DenseNet-121. In Lecture Notes in Networks and Systems. (pp. 393-405). https://doi.org/10.1007/978-981-19-9228-5_33. Bankina, B., Bimšteine, G., Kaņeps, J., Plūduma-Pauniņa, I., Gaile, Z., Paura, L. and Stoddard, F.L. (2021). Discrimination of leaf diseases affecting faba bean ( Vicia faba ). Acta Agriculturae Scandinavica Section B-Soil and Plant Science . 71(5): 399-407. https://doi.org/10.1080/ 09064710.2021.1903985. Bayar, J., Ali, N., Cao, Z., Ren, Y. and Dong, Y. (2025). Artificial intelligence of things (AIoT) for precision agriculture: Applications in smart irrigation, nutrient and disease management. Smart Agricultural Technology . 12: 101629. https://doi.org/10.1016/j.atech.2025.101629. Belay, A.J., Salau, A.O., Ashagrie, M. and Haile, M.B. (2022). Development of a chickpea disease detection and classification model using deep learning. Informatics in Medicine Unlocked . 31: 100970. https://doi.org/10.1016/ j.imu.2022.100970. CBI. (2024). Exporting Cowpeas to Europe: Market Potential. Centre for the Promotion of Imports from Developing Countries. https://www.cbi.eu/market-information/grains-pulses- oilseeds/cowpeas/market-potential. Chipeta, M.M., Kafwambira, J. and Yohane, E. (2025). Cowpea genetic diversity, population structure and genome-wide association studies in Malawi: Insights for breeding programs. Frontiers in Plant Science . 15. https://doi.org/ 10.3389/fpls.2024.1461631. Cho, O.H. (2024). An evaluation of various machine learning approaches for detecting leaf diseases in agriculture. Legume Research . 47(4): 619-627. doi: 10.18805/LRF-787 . Choudhary, V., Guha, P., Tripathi, K. and Mishra, S. (2021). Automatic Detection of Cowpea Leaves Using Image Processing and Inception-V3 Model of Deep Learning. 2021 6 th International Conference on Signal Processing, Computing and Control (ISPCC). 314-318. https://doi.org/10.1109/ ISPCC53510.2021.9609358. Choudhary, V., Guha, P., Tripathi, K. and Mishra, S. (2022). Edge Detection of Variety of Cowpea Leaves Using OpenCV and Deep Learning. In 2022 4 th International Conference on Advances in Computing, Communication Control and Networking (ICAC3N). IEEE. (pp. 1312-1316). https:// doi.org/10.1109/ICAC3N56670.2022.10074348. Choudhary, V., Guha, P., Pau, G., Dhanaraj, R.K. and Mishra, S. (2023). Automatic classification of cowpea leaves using deep convolutional neural network. Smart Agricultural Technology . 4: 100209. https://doi.org/10.1016/j.atech. 2023.100209. Choudhary, V., Kumar, S.P. and Saimbhi, V.S. (2026). A brief review on potential applications of drones in agriculture. Next Research . 5: 101309. https://doi.org/10.1016/j.nexres. 2026.101309. Deshpande, S.K., Kavyashree, N.M., Singh, K., Ramya, K.R., Sharma, N. and Tripathi, K. (2023). Diseases in Cowpea [ Vigna unguiculata (L.) Walp.]: Next Generation Breeding Techniques for Developing Disease-Resistant Cowpea. In: Diseases in Legume Crops. [Jha, U.C., Nayyar, H., Sharma, K.D., von Wettberg, E.J.B., Singh, P. and Siddique, K.H. (Eds.)], Springer. (pp. 125-139). https://doi.org/ 10.1007/978-981-99-3358-7_6. Paek, J.J., Kim, J., Bae, S., Paek, K.S. and Lee, Y. (2026). Chive- fortified fermentation enhances gamma-aminobutyric acid production by Levilactobacillus brevis PL9014. International Journal of Probiotics and Prebiotics . 21: 1-6. https://doi.org/10.37290/ijpp.v21i1.12. Dubey, N., Bhagat, E., Rana, S. and Pathak, K. (2022). A Novel Approach to Detect Plant Disease Using DenseNet-121 Neural Network. In: Lecture Notes in Networks and Systems. (pp. 63-74). https://doi.org/10.1007/978-981- 16-9967-2_7. Feizi, H., Sattari, M.T. and Apaydin, H. (2023). A comparative study of different optimization algorithms for the optimum operation of the mahabad dam reservoir. Results in Engineering . 21: 101664. https://doi.org/10.1016/j.rineng.2023.101664. Food and Agriculture Organization of the United Nations (FAO). (2024). A new Report Sheds Light on Losses Across Agricultural and Agrifood Value Chains in Niger. https:// www.fao.org/in-action/agrisurvey/news/news-detail/a- new-report-sheds-light-on-losses-across-agricultural- and-agrifood-value-chains-in-niger/en. Girmaw, D.W. and Muluneh, T.W. (2024). Field pea leaf disease classification using a deep learning approach. Plos One . 19(7): e0307747. https://doi.org/10.1371/journal.pone. 0307747. Jayathilake, C., Visvanathan, R., Deen, A., Bangamuwage, R., Jayawardana, B., Nammi, S. and Liyanage, R. (2018). Cowpea: An overview on its nutritional facts and health benefits. Journal of the Science of Food and Agriculture . 98(13): 4793-4806. https://doi.org/10.1002/jsfa.9074. Joshi, P., Chauhan, C., Ubale, R., Patil, N., Malusare, V. and Patil, S. (2025). Smart Farming: A Comprehensive Review on the Role of Artificial Intelligence and IoT in Modern Agriculture. In Advances in Intelligent Systems Research/ Advances in Intelligent Systems Research. (pp. 1005- 1025). https://doi.org/10.2991/978-94-6463-948-3_69. Kim, S.Y. and AlZubi, A.A. (2024). Blockchain and artificial intelligence for ensuring the authenticity of organic legume products in supply chains. Legume Research . 47(7): 1144-1150. doi: 10.18805/LRF-786 . Market Data Forecast. (2024). Cowpeas Market Size, Growth (2024-2033). https://www.marketdataforecast.com/ market-reports/global-cowpeas-market. Megalingam, R.K., Menon, G.G., Swathi, B., Sai, D.A., Kunnambath, A.R. and Manoharan, S.K. (2024). Cowpea leaf disease identification using deep learning. Smart Agricultural Technology . pp 100662. https://doi.org/10.1016/j.atech. 2024.100662. Min, P.K., Mito, K. and Kim, T.H. (2024). The evolving landscape of artificial intelligence applications in animal health. Indian Journal of Animal Research . 58(10): 1793-1798. doi: 10.18805/IJAR.BF-1742 . Mohammad, A.A.S., Mohammad, S.I., Vasudevan, A. and Heindric, A. (2026). Intelligent decision support system for crop management using data analytics. Journal of Experimental Biology and Agricultural Sciences . 14(3): 9-14. Nasir, A.A. and Adhab, M. (2021). A Biologically Distinct Isolate of Cucumber Mosaic Virus from Iraq. In: Proceedings of the Third International Sustainability and Resilience Conference: Climate Change. IEEE. (pp. 148-150). https:// doi.org/10.1109/IEEECONF53624.2021.9668142. Nazarov, P.A., Baleev, D.N., Ivanova, M.I., Sokolova, L.M. and Karakozova, M.V. (2020). Infectious plant diseases: etiology, current status, problems and prospects in plant protection. Acta Naturae . 12(3): 46-59. https://doi.org/ 10.32607/actanaturae.11026. NER Databank. (2023). Pulses. Retrieved from https://databank. nedfi.com/nagaland-agriculture/pulses. Parmar, H. K., Sharma, M., Patel, P., Soni, N. and Zala, H. (2025). Breeding cowpea ( Vigna unguiculata L.) for high seed yield, protein content and harvest index: Genetic parameters to identify useful parents. Legume Research . 49(5): 775-780. doi: 10.18805/LR-5381 . Rashid, M.R.A., Hasan, M., Gani, R., Kamara, R., Tarin, T.K. and Rabbi, S.F. (2024). Image Dataset for Bean and Cowpea Plant Leaf Disease Detection and Freshness Assessment from Bangladesh. Mendeley Data. https://doi.org/ 10.17632/ykvcrjffzd.1 Saputra, A.D., Hindarto, D. and Santoso, H. (2023). Disease classification on rice leaves using DenseNet121, DenseNet169, DenseNet201. SinkrOn . 8(1): 48-55. https://doi.org/10.33395/sinkron.v8i1.11906. Sasmal, B., Das, A., Dhal, K.G., Saheb, S.B., Khurma, R.A. and Castillo, P.A. (2024). A novel groundnut leaf dataset for detection and classification of groundnut leaf diseases. Data in Brief . 55: 110763. https://doi.org/10.1016/j.dib. 2024.110763. Souza, K.F., Gonçalves, L.C.O. and Espindola, F.S. (2026). A broad overview of the multifaceted royal jelly and its applicability in health and performance. Current Topics in Nutraceutical Research . 24(1): 4-14. https://doi.org/10.37290/ctnrv24.i1.8. Trivedi, P., Narayan, Y., Ravi, V., Kumar, P., Kaur, P., Tabianan, K., Singh, P. and Diwakar, M. (2024). Plant leaf disease detection and classification using segmentation encoder techniques. The Open Agriculture Journal . 18(1). https:// doi.org/10.2174/0118743315321139240627092707.
EDITORIAL BOARD

Guided by Experienced Academic Leadership

Distinguished scholars and subject experts committed to editorial excellence, scientific integrity and rigorous peer review.

View Full Board
Kadambot Siddique
Chief Editor

Kadambot Siddique

DirectorThe UWA Institute of Agriculture, The University of Western Australia, AUSTRALIA

Pei Xu
Associate chief editor

Pei Xu

DeanChina Jiliang University, CHINA

Satpal Singh Bisht
Editor

Satpal Singh Bisht

Vice ChancellorS.S.J.University Almora, Uttarakhand, INDIA

H.K. Dikshit
Editor

H.K. Dikshit

Principal Scientist Indian Agricultural Research Institute, New Delhi, INDIA