Deep Learning-Based Multiclass Classification of Diseases in Cucumber Fruit: Enhancing Agriculture Diagnosis

Authors

  • Asim Mehmood Department of Computer Science, University of Central Punjab, Lahore, Pakistan
  • Rabia Tehseen Department of Computer Science, University of Central Punjab, Lahore, Pakistan
  • Ayesha Zaheer Department of Computer Science, University of Central Punjab, Lahore, Pakistan
  • Maham Mehr Awan Department of Software Engineering, University of Central Punjab, Lahore, Pakistan

Keywords:

Cucumber diseases classification, Transfer learning, Deep learning, MobileNetv2, VGG16, ResNet50, Preprocessing, Clahe, Convolutional Neural Network (CNN), Machine learning.

Abstract

Agriculture plays a key role in the economies of many developing nations. cucumber is cultivated vegetable that are grown in large quantities, but the production is regularly affected by diseases, with its yield loss impacted by diseases which include Belly Rot and Pythium Fruit Rot. Early and accurate disease diagnosis is critical for minimizing economic losses and improving crop quality. Traditional method techniques are based on visual identification and time-consuming and often inaccurate, especially for the early stages of the disease. In this work, we aim to tackle these problems and present an automatic cucumber disease classification system by transfer learning. Three convolutional neural network models (pre-trained VGG16, MobileNetV2 and ResNet-50) were retrained on a set of 2400 images containing two disease classes and one normal class. The images were preprocessed with the Contrast Limited Adaptive Histogram Equalization (CLAHE) and background removal by deep learning segmentation to eliminate the background noise and focus only on the informative feature of the image. The models were trained and tested by using training, validation, and test sets with the respective accuracies of 95.28%, 98.06%, and 57.5%. MobileNetV2 showed superior performance to all other models including the highest precision, recall, and F1 score of 0.98, confirming that it was robust and appropriate for real-time disease classification. The results demonstrate that the transfer learning method is conducive to improving the issues of lack of labeled samples and variations in image acquisition and strength, thus providing a reliable model for early disease detection in cucumbers. The system we propose can support farmers and agronomists in early disease management decisions and reduce chemical usage. In the future, we will increase the data set with more disease classes, and develop a mobile APP for field level disease detection.

References

M. J. Mia, S. K. Maria, S. S. Taki, and A. A. Biswas, “Cucumber disease recognition using machine learning and transfer learning,” Bull. Electr. Eng. Informatics, vol. 10, no. 6, pp. 3432–3443, Dec. 2021, doi: 10.11591/EEI.V10I6.3096.

D. Mohammadzamani, S. M. Javidan, M. Zand, and M. Rasouli, “Detection of Cucumber Fruit on Plant Image Using Artificial Neural Network,” J. Agric. Mach., vol. 13, no. 1, pp. 27–39, Mar. 2023, doi: 10.22067/JAM.2022.73827.1077.

“(PDF) Automatic Detection of Citrus Fruit and Leaves Diseases Using Deep Neural Network Model.” Accessed: Jun. 05, 2025. [Online]. Available: https://www.researchgate.net/publication/354087157_Automatic_Detection_of_Citrus_Fruit_and_Leaves_Diseases_Using_Deep_Neural_Network_Model

J. Ma, K. Du, F. Zheng, L. Zhang, Z. Gong, and Z. Sun, “A recognition method for cucumber diseases using leaf symptom images based on deep convolutional neural network,” Comput. Electron. Agric., vol. 154, pp. 18–24, Nov. 2018, doi: 10.1016/J.COMPAG.2018.08.048.

S. Singh and N. P. Singh, “Machine Learning-Based Classification of Good and Rotten Apple,” Lect. Notes Electr. Eng., vol. 524, pp. 377–386, 2019, doi: 10.1007/978-981-13-2685-1_36.

A. Hayat, F. Morgado-Dias, T. Choudhury, T. P. Singh, and K. Kotecha, “FruitVision: A deep learning based automatic fruit grading system,” Open Agric., vol. 9, no. 1, Jan. 2024, doi: 10.1515/OPAG-2022-0276/ASSET/GRAPHIC/J_OPAG-2022-0276_FIG_014.JPG.

A. Pande, M. Munot, R. Sreeemathy, and R. V. Bakare, “An Efficient Approach to Fruit Classification and Grading using Deep Convolutional Neural Network,” 2019 IEEE 5th Int. Conf. Converg. Technol. I2CT 2019, Mar. 2019, doi: 10.1109/I2CT45611.2019.9033957.

S. L. Wu, H. Y. Tung, and Y. L. Hsu, “Deep Learning for Automatic Quality Grading of Mangoes: Methods and Insights,” Proc. - 19th IEEE Int. Conf. Mach. Learn. Appl. ICMLA 2020, pp. 446–453, Dec. 2020, doi: 10.1109/ICMLA51294.2020.00076.

A. Bhargava and A. Bansal, “Classification and Grading of Multiple Varieties of Apple Fruit,” Food Anal. Methods, vol. 14, no. 7, pp. 1359–1368, Jul. 2021, doi: 10.1007/S12161-021-01970-0/METRICS.

M. Mukhiddinov, A. Muminov, and J. Cho, “Improved Classification Approach for Fruits and Vegetables Freshness Based on Deep Learning,” Sensors 2022, Vol. 22, Page 8192, vol. 22, no. 21, p. 8192, Oct. 2022, doi: 10.3390/S22218192.

L. Raufer, J. Wiedey, M. Mueller, P. Penava, and R. Buettner, “A deep learning-based approach for the detection of cucumber diseases,” PLoS One, vol. 20, no. 4, p. e0320764, Apr. 2025, doi: 10.1371/JOURNAL.PONE.0320764.

R. Saha, “Orange Fruit Disease Classification using Deep Learning Approach,” Int. J. Adv. Trends Comput. Sci. Eng., vol. 9, no. 2, pp. 2297–2301, Apr. 2020, doi: 10.30534/IJATCSE/2020/211922020.

K. Lin, L. Gong, Y. Huang, C. Liu, and J. Pan, “Deep learning-based segmentation and quantification of cucumber powdery mildew using convolutional neural network,” Front. Plant Sci., vol. 10, p. 422622, Mar. 2019, doi: 10.3389/FPLS.2019.00155/BIBTEX.

P. Jain, V. K. Gupta, G. Sharma, G. Dhiman, J. Meena, and M. K. Singh, “Detection of Cucumber Diseases using Deep Learning models,” 2024 5th IEEE Glob. Conf. Adv. Technol. GCAT 2024, 2024, doi: 10.1109/GCAT62922.2024.10924118.

Downloads

Published

2025-05-28

How to Cite

Mehmood, A., Tehseen, R., Zaheer, A., & Awan, M. M. (2025). Deep Learning-Based Multiclass Classification of Diseases in Cucumber Fruit: Enhancing Agriculture Diagnosis. International Journal of Innovations in Science & Technology, 7(2), 1006–1021. Retrieved from https://journal.50sea.com/index.php/IJIST/article/view/1403

Issue

Section

Articles