Pretrained Convolutional Neural Network for Fruit Classification Analysis of Pineapple Plantation Images
Received: 12 October 2024 | Revised: 22 December 2024 | Accepted: 29 December 2024 | Online: 3 April 2025
Corresponding author: Muhammad Asraf Hairuddin
Abstract
The adoption of precision agriculture in pineapple farming has a significant impact by increasing the yield and reducing the input resources while improving the management of pineapple crops. The intersection of advanced drone technology and cutting-edge artificial intelligence has reformed fruit crop management through revolutionary levels of automation, precision fruit detection, yield estimation, and crop health detection. However, the capability for obscuring the detection of subtle features to better manage occlusions and complex environments in images captured by drones at certain heights with drones is challenging to distinguish, thus hindering an accurate object analysis for fruit-environment differentiation. The proposed work uses Deep Learning (DL) techniques to classify pineapple fruit images captured ten meters above the ground. This is achieved specifically through the use of pretrained models and Faster Region-Based Convolutional Neural Networks (Faster R-CNNs) due to their ability to learn robust interpretations from images for object classification tasks. This paper evaluates the capabilities and accuracies of four pretrained models, namely ResNet-101, ResNet-50, Inception-ResNet-v2, and VGG-19, to detect and classify the pineapple fruit amidst the complex background and varying lighting conditions. By evaluating the pretrained models for pineapple fruit classification using comprehensive metrics (True Positive Rate (TPR), False Positive Rate (FPR), Accuracy (ACC), Recall (REC), Precision (PRE), F1-score), the results reveal that the Faster R-CNN architecture with the VGG-19 pretrained model outperformed the other architectures, demonstrating the best performance in pineapple fruit detection with an ACC of 0.7924 (79.24%), a PRE of 0.9990 (99.90%), a REC of 0.7930 (79.30%), and an F1-score of 0.8839 (88.39%). The effectiveness of this model in overseeing complex scenarios suggests potential improvements in classification accuracy compared to other pretrained models, while acknowledging performance variability across various architectures.
Keywords:
ananas comosus, deep learning, image processing, pretrained deep neural networks, pineapple farmingDownloads
References
W. A. I. U. Bandara, K. A. D. K. S. Kuruppuarachchi, N. N. D. Maduwantha, U. S. S. Samaratunge Arachchillage, T. A. D. T. N. D. Alwis, and T. A. Kuruppu, "Smart Intelligent Pineapple Farming Assistant Agent (SIPFAA)," in 2022 4th International Conference on Advancements in Computing, Colombo, Sri Lanka, 2022, pp. 48–53.
N. H. M. Suhaimi and F. A. Fatah, "Profitability of Pineapple Production (Ananas comosus) among Smallholders in Malaysia," International Journal of Recent Technology and Engineering, vol. 8, no. 4, pp. 4201–4207, Nov. 2019.
F. Alaieri, "Precision Agriculture based on Machine Learning and Remote Sensing Techniques," Engineering, Technology & Applied Science Research, vol. 14, no. 3, pp. 14206–14211, Jun. 2024.
M. Gonzalez-Hernandez et al., "Evaluation of the Influence of Multispectral Imaging for Object Detection in Pineapple Crops," in 2023 IEEE 5th International Conference on BioInspired Processing, San Carlos, Alajuela, Costa Rica, 2023, pp. 1–6.
A. Sakuma and H. Yamano, "Satellite Constellation Reveals Crop Growth Patterns and Improves Mapping Accuracy of Cropping Practices for Subtropical Small-Scale Fields in Japan," Remote Sensing, vol. 12, no. 15, Aug. 2020, Art. no. 2419.
T. D. Pham, D. T. H. Nguyen, D. H. Tran, and T. T. Tran, "Application of satellite images and GIS to assess the site situation and propose solutions for developing pineapple cultivation in U Minh Thuong, Kien Giang, Vietnam," IOP Conference Series: Earth and Environmental Science, vol. 1306, no. 1, Mar. 2024, Art. no. 012026.
F. Meng, J. Li, Y. Zhang, S. Qi, and Y. Tang, "Transforming unmanned pineapple picking with spatio-temporal convolutional neural networks," Computers and Electronics in Agriculture, vol. 214, Nov. 2023, Art. no. 108298.
M. Mohd Ali, N. Hashim, S. K. Bejo, M. Jahari, and N. A. Shahabudin, "Innovative non-destructive technologies for quality monitoring of pineapples: Recent advances and applications," Trends in Food Science & Technology, vol. 133, pp. 176–188, Mar. 2023.
S. Alqethami, B. Almtanni, W. Alzhrani, and M. Alghamdi, "Disease Detection in Apple Leaves Using Image Processing Techniques," Engineering, Technology & Applied Science Research, vol. 12, no. 2, pp. 8335–8341, Apr. 2022.
G. Qiu et al., "Nondestructive Detecting Maturity of Pineapples Based on Visible and Near-Infrared Transmittance Spectroscopy Coupled with Machine Learning Methodologies," Horticulturae, vol. 9, no. 8, Aug. 2023, Art. no. 889.
M. Mohd Ali, N. Hashim, S. Abd Aziz, and O. Lasekan, "Characterisation of Pineapple Cultivars under Different Storage Conditions Using Infrared Thermal Imaging Coupled with Machine Learning Algorithms," Agriculture, vol. 12, no. 7, Jul. 2022, Art. no. 1013.
N. C. Kundur and P. B. Mallikarjuna, "Deep Convolutional Neural Network Architecture for Plant Seedling Classification," Engineering, Technology & Applied Science Research, vol. 12, no. 6, pp. 9464–9470, Dec. 2022.
W. N. S. Rahimi, M. A. H, and M. S. A. M. Ali, "Ananas comosus crown image thresholding and crop counting using a colour space transformation scheme," TELKOMNIKA Telecommunication Computing Electronics and Control, vol. 18, no. 5, pp. 2472–2479, Oct. 2020.
N. H. H. Cuong, T. H. Trinh, P. Meesad, and T. T. Nguyen, "Improved YOLO object detection algorithm to detect ripe pineapple phase," Journal of Intelligent & Fuzzy Systems, vol. 43, no. 1, pp. 1365–1381, Jan. 2022.
M. A. A. Nawawi, F. S. Ismail, and H. Selamat, "Comprehensive Pineapple Segmentation Techniques with Intelligent Convolutional Neural Network," Indonesian Journal of Electrical Engineering and Computer Science, vol. 10, no. 3, pp. 1098–1105, Jun. 2018.
J. Hobbs, P. Prakash, R. Paull, H. Hovhannisyan, B. Markowicz, and G. Rose, "Large-Scale Counting and Localization of Pineapple Inflorescence Through Deep Density-Estimation," Frontiers in Plant Science, vol. 11, Jan. 2021, Art. no. 599705.
A. N. J. Kukunuri and D. Singh, "Efficient Application of Drone with Satellite data for Early-Stage Wheat Detection: For Precision Agriculture Monitoring," in IGARSS 2022 - 2022 IEEE International Geoscience and Remote Sensing Symposium, Kuala Lumpur, Malaysia, 2022, pp. 4388–4391.
A. Agarwal, A. K. Singh, S. Kumar, and D. Singh, "Critical analysis of classification techniques for precision agriculture monitoring using satellite and drone," in 2018 IEEE 13th International Conference on Industrial and Information Systems, Rupnagar, India, 2018, pp. 83–88.
W. B. Demilie, "Plant disease detection and classification techniques: a comparative study of the performances," Journal of Big Data, vol. 11, no. 1, Jan. 2024, Art. no. 5.
Z. Li, Y.-W. Chong, M. N. Ab Wahab, G.-K. Lim, and R. Dawood, "Classification and Prediction of Pineapple Quality using Deep Learning," in 2023 4th International Conference on Big Data Analytics and Practices, Bangkok, Thailand, 2023, pp. 1–6.
C. Wang, J. Zhou, C. Xu, and X. Bai, "A Deep Object Detection Method for Pineapple Fruit and Flower Recognition in Cluttered Background," in 2nd International Conference on Pattern Recognition and Artificial Intelligence, Zhongshan, China, 2020, pp. 218–227.
C.-Y. Chang, C.-S. Kuan, H.-Y. Tseng, P.-H. Lee, S.-H. Tsai, and S.-J. Chen, "Using deep learning to identify maturity and 3D distance in pineapple fields," Scientific Reports, vol. 12, no. 1, May 2022, Art. no. 8749.
D. Hussain, I. Hussain, M. Ismail, A. Alabrah, S. S. Ullah, and H. M. Alaghbari, "A Simple and Efficient Deep Learning-Based Framework for Automatic Fruit Recognition," Computational Intelligence and Neuroscience, vol. 2022, no. 1, Feb. 2022, Art. no. 6538117.
Y. Chen, S. Pan, and H. Wang, "Performance comparison of different convolutional neural networks for vegetable and fruit recognition," Applied and Computational Engineering, vol. 5, pp. 593–602, May 2023.
Ma. C. V. Magabilin, A. C. Fajardo, and R. P. Medina, "Optimal Ripeness Classification of the Philippine Guyabano Fruit using Deep Learning," in 2022 Second International Conference on Power, Control and Computing Technologies, Raipur, India, 2022, pp. 1–5.
A. Kaur, V. Kukreja, P. Tiwari, M. Manwal, and R. Sharma, "Fruitful Fusion: An Accuracy-Boosting Ensemble of VGG19 and Convolutional Neural Networks for Dragon Fruit Classification," in 2024 IEEE International Conference on Interdisciplinary Approaches in Technology and Management for Social Innovation, Gwalior, India, 2024, vol. 2, pp. 1–5.
D. Mohapatra, N. Das, K. K. Mohanty, and J. Shresth, "Automated Visual Inspecting System for Fruit Quality Estimation Using Deep Learning," in 2nd International Conference on Innovation in Electrical Power Engineering, Communication, and Computing Technology, Bhubaneswar, India, 2021, pp. 379–389.
A. Bandyopadhyay, S. Ghosh, M. Bose, L. Kessi, and L. Gaur, "Supervised Neural Networks for Fruit Identification," in 5th International Conference on Recent Trends in Image Processing and Pattern Recognition, Kingsville, TX, USA, 2022, pp. 220–230.
M. S. Patil and P. B. Mane, "Fused Image Classification using Pre-trained Deep Convolutional Neural Networks," in 2023 Third International Conference on Artificial Intelligence and Smart Energy, Coimbatore, India, 2023, pp. 1215–1221.
D. Hindarto, N. Afarini, and E. T. E. H, "Comparison Efficacy of VGG16 and VGG19 Insect Classification Models," JIKO (Jurnal Informatika dan Komputer), vol. 6, no. 3, pp. 189–195, Dec. 2023.
M. Widyaningsih, T. K. Priyambodo, M. E. Wibowo, and M. Kamal, "Optimization Contrast Enhancement and Noise Reduction for Semantic Segmentation of Oil Palm Aerial Imagery," International Journal of Intelligent Engineering and Systems, vol. 16, no. 1, pp. 597–609, Feb. 2023.
T.-H. Nguyen, T.-N. Nguyen, and B.-V. Ngo, "A VGG-19 Model with Transfer Learning and Image Segmentation for Classification of Tomato Leaf Disease," AgriEngineering, vol. 4, no. 4, pp. 871–887, Dec. 2022.
R. Wan Nurazwin Syazwani, H. Muhammad Asraf, M. A. Megat Syahirul Amin, and K. A. Nur Dalila, "Automated image identification, detection and fruit counting of top-view pineapple crown using machine learning," Alexandria Engineering Journal, vol. 61, no. 2, pp. 1265–1276, Feb. 2022.
Downloads
How to Cite
License
Copyright (c) 2025 Nurhazirah Mohd Rahim, Muhammad Asraf Hairuddin, Megat Syahirul Amin Megat Ali, Nooritawati Md. Tahir, Ali Abd Almisreb, Nur Dalila Khirul Ashar

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.