Journal of Machine and Computing


Intelligent Fruit Detection System Using Optimized Hybrid Deep Learning Models



Journal of Machine and Computing

Received On : 30 October 2024

Revised On : 02 January 2025

Accepted On : 26 March 2025

Published On : 05 July 2025

Volume 05, Issue 03

Pages : 1386-1395


Abstract


Accurate and efficient detection of dragon fruit ripeness is crucial for optimizing harvesting schedules, reducing post-harvest losses, and ensuring fruit quality. This research investigates applying optimized hybrid deep learning (DL) models for intelligent dragon fruit ripeness classification using a dataset of 2,563 images. The feature extraction using pre-trained CNNs, specifically DenseNet-50 and ResNet-50, followed by dimensionality reduction using Principal Component Analysis (PCA). The reduced feature sets are then fed into various classifiers, including Support Vector Machines (SVM) with linear and RBF kernels, a Voting ensemble of SVMs, and a Multi-Layer Perceptron (MLP). The performance of models is evaluated using key metrics such as accuracy, AUC, etc. The experimental findings indicate that the DenseNet-50 features combined with PCA and an SVM Voting ensemble achieve the highest classification accuracy of 97.71%, along with a balanced recall, precision, and F1-score of 0.96. The ResNet-50 features coupled with an MLP also exhibit competitiveperformance.


Keywords


Multi-Layer Perceptron (MLP), Support Vector Machines (SVM), Self-Attention, RBF Kernels, Steel Strength Estimation, DenseNet-50, ResNet-50, Data-Driven Analysis.


  1. T. Khatun, Md. A. S. Nirob, P. Bishshash, M. Akter, and M. S. Uddin, “A comprehensive dragon fruit image dataset for detecting the maturity and quality grading of dragon fruit,” Data in Brief, vol. 52, p. 109936, Feb. 2024, doi: 10.1016/j.dib.2023.109936.
  2. M. V. da Silva Ferreira, S. Barbon Junior, V. G. Turrisi da Costa, D. F. Barbin, and J. Lucena Barbosa Jr, “Deep computer vision system and explainable artificial intelligence applied for classification of dragon fruit (Hylocereus spp.),” Scientia Horticulturae, vol. 338, p. 113605, Dec.2024, doi: 10.1016/j.scienta.2024.113605.
  3. P. U. Patil, S. B. Lande, V. J. Nagalkar, S. B. Nikam, and G. C. Wakchaure, “Grading and sorting technique of dragon fruits using machine learning algorithms,” Journal of Agriculture and Food Research, vol. 4, p. 100118, Jun. 2021, doi: 10.1016/j.jafr.2021.100118.
  4. R. Shakil et al., “Addressing agricultural challenges: An identification of best feature selection technique for dragon fruit disease recognition,” Array, vol. 20, p. 100326, Dec. 2023, doi: 10.1016/j.array.2023.100326.
  5. H. H. C. Nguyen, C. Jana, I. M. Hezam, H. P. Hieu, and N. T. Thuy, “Identification of dragon trees and fruits in ham Thuan Bac growing areas, Phan Thiet city, Binh Thuan province, Vietnam,” Heliyon, vol. 10, no. 10, p. e31233, May 2024, doi: 10.1016/j.heliyon.2024.e31233.
  6. B. Zhang, K. Lou, Z. Wang, Y. Xia, W. Fu, and Z. Bai, “MIRNet_ECA: Multi-scale inverted residual attention network used for classification of ripeness level for dragon fruit,” Expert Systems with Applications, vol. 274, p. 127019, May 2025, doi: 10.1016/j.eswa.2025.127019.
  7. P. C. Sarkar, G. K. Pranta, M. U. Mojumdar, A. Mahmud, S. R. H. Noori, and N. R. Chakraborty, “UDCAD-DFL-DL: A unique dataset for classifying and detecting agricultural diseases in dragon fruits and leaves,” Data in Brief, vol. 59, p. 111411, Apr. 2025, doi: 10.1016/j.dib.2025.111411.
  8. Sattar, Md. A. M. Ridoy, A. K. Saha, H. Md. Hasan Babu, and M. N. Huda, “Computer vision based deep learning approach for toxic and harmful substances detection in fruits,” Heliyon, vol. 10, no. 3, p. e25371, Feb. 2024, doi: 10.1016/j.heliyon.2024.e25371.
  9. J. Zhou, Y. Zhang, and J. Wang, “A Dragon Fruit Picking Detection Method Based on YOLOv7 and PSP-Ellipse,” Sensors, vol. 23, no. 8, p.3803, Apr. 2023, doi: 10.3390/s23083803.
  10. Z. Qiu, Z. Huang, D. Mo, X. Tian, and X. Tian, “GSE-YOLO: A Lightweight and High-Precision Model for Identifying the Ripeness of Pitaya (Dragon Fruit) Based on the YOLOv8n Improvement,” Horticulturae, vol. 10, no. 8, p. 852, Aug. 2024, doi: 10.3390/horticulturae10080852.

CRediT Author Statement


The authors confirm contribution to the paper as follows:

Conceptualization: Angajala Guna Sai Abhishek, Ravi Kumar T, Panduranga Vital Terlapu, Chalapathi Rao Tippana and Ramkishor Pondreti; Methodology: Angajala Guna Sai Abhishek and Ravi Kumar T; Visualization: Panduranga Vital Terlapu, Chalapathi Rao Tippana and Ramkishor Pondreti; Investigation: Angajala Guna Sai Abhishek and Ravi Kumar T; Writing- Reviewing and Editing: Angajala Guna Sai Abhishek, Ravi Kumar T, Panduranga Vital Terlapu, Chalapathi Rao Tippana and Ramkishor Pondreti; All authors reviewed the results and approved the final version of the manuscript.


Acknowledgements


We would like to thank Reviewers for taking the time and effort necessary to review the manuscript. We sincerely appreciate all valuable comments and suggestions, which helped us to improve the quality of the manuscript.


Funding


No funding was received to assist with the preparation of this manuscript.


Ethics declarations


Conflict of interest

The authors have no conflicts of interest to declare that are relevant to the content of this article.


Availability of data and materials


Data sharing is not applicable to this article as no new data were created or analysed in this study.


Author information


Contributions

All authors have equal contribution in the paper and all authors have read and agreed to the published version of the manuscript.


Corresponding author


Rights and permissions


Open Access This article is licensed under a Creative Commons Attribution NoDerivs is a more restrictive license. It allows you to redistribute the material commercially or non-commercially but the user cannot make any changes whatsoever to the original, i.e. no derivatives of the original work. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/


Cite this article


Angajala Guna Sai Abhishek, Ravi Kumar T, Panduranga Vital Terlapu, Chalapathi Rao Tippana and Ramkishor Pondreti, “Intelligent Fruit Detection System Using Optimized Hybrid Deep Learning Models”, Journal of Machine and Computing, vol.5, no.3, pp. 1386-1395, July 2025, doi: 10.53759/7669/jmc202505109.


Copyright


© 2025 Angajala Guna Sai Abhishek, Ravi Kumar T, Panduranga Vital Terlapu, Chalapathi Rao Tippana and Ramkishor Pondreti. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.