Indian Journal of Agricultural Research

Indian Journal of Agricultural Research cover
Volume 60 · Issue 3 · 2026/02/04

Vit-CNN Fusion for Robust Mango Quality Evaluation based on Classification Across Multiple Public Datasets

Anuja A. Gharpure
Neha Jain
Vaibhav E. Narawade
297 Views

Submitted

2025/12/19

First Online

2026/02/04

doi

10.18805/IJARe.A-6493

Cite article - Anuja A. Gharpure, Neha Jain, Vaibhav E. Narawade. (2026). Vit-CNN Fusion for Robust Mango Quality Evaluation based on Classification Across Multiple Public Datasets. Indian Journal of Agricultural Research. 60(3): 436–442. doi: 10.18805/IJARe.A-6493

Abstract

Background: Mango quality is crucial for economic viability, waste reduction and public health, yet traditional assessment methods often suffer from subjectivity, inefficiency and can be destructive. Existing deep learning approaches, specifically Convolutional Neural Networks (CNNs), achieve higher accuracies but are unable to generalise across diverse datasets because they cannot capture contextual features.

Methods: To address these limitations, this research explores the application of machine learning algorithms, particularly deep learning techniques such as Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs), for an objective and efficient mango classification task. The research work concentrated on two publicly available datasets viz . Mango Ripeness Dataset, Mango Classification Dataset based on Mango. A comparative study of these datasets is performed to analyse their performance when fed to variants of CNNs, such as ResNet, MobileNet and ShuffleNet. By leveraging image analysis and feature extraction, this study aims to study the behaviour of different variants of the Convolutional Neural Network on different datasets related to mangoes.

Result: Comparative experiments with CNN-ViT fusion achieve superior accuracy (98.19% on the Mango Ripeness Dataset and 100% on the Mango Classification Dataset), consistently. Additional ablation studies and cross-dataset validation confirm the robustness and scalability of the approach. This work establishes a reproducible framework for automated mango quality evaluation, paving the way for practical deployment in agricultural quality control and supply chain management.

References

  1. Abayomi-Alli, O.O., Damaševièius, R., Misra, S. and Abayomi-Alli, A. (2024). FruitQ: A new dataset of multiple fruit images for freshness evaluation. Multimedia Tools and Applications . 83(4): 11433-11460. https://doi.org/10.1007/s11042-023- 16058-6. Aishwarya, N. and Vinesh Kumar, R. (2023). Banana Ripeness Classification with Deep CNN on NVIDIA Jetson Xavier AGX. Proceedings of the 7th International Conference on I-SMAC. Institute of Electrical and Electronics Engineers. https://doi.org/10.1109/I-SMAC58438.2023.10290326. Akshi, Varshney, P., Avasthi, S. and Agarwal, K. (2024). Fruit and vegetable classification and freshness detection using machine learning. Proceedings of the MIT Art, Design and Technology School of Computing International Conference (MITADTSoCiCon 2024). Institute of Electrical and Electronics Engineers. https://doi.org/10.1109/MITADTSoCiCon60330. 2024.10575107 Alamri, F.S., Sadad, T., Almasoud, A.S., Aurangzeb, A. and Khan, A. (2025). Mango disease detection using fused vision transformer with ConvNeXt architecture. Computers, Materials and Continua. https://doi.org/10.32604/cmc. 2025.061890 Ali, S., Ibrahim, M., Ahmed, S.I., Nadim, M., Rahman, M.R., Shejunti, M.M. and Jabid, T. (2022). MangoLeafBD dataset (Version 1). Mendeley Data. https://doi.org/10.17632/hxsnvwty3r.1. Begum, N. and Hazarika K.M. (2022). Deep learning based image processing solutions in food engineering: A Review. Agricultural Reviews . 43(3): 267-277. doi: 10.18805/ag. R-2182 . Bhat, A., Khan, F. and Mir, I.A. (2023). Impact of image preprocessing techniques on the performance of deep learning models for mango fruit classification. Information Processing in Agriculture . 10(3): 450-462. Bobde, S., Jaiswal, S., Kulkarni, P., Patil, O., Khode, P. and Jha, R. (2021). Fruit quality recognition using deep learning algorithm. Proceedings of the international conference on smart generation computing, communication and networking (SMART GENCON 2021). Institute of Electrical and Electronics Engineers. https://doi.org/10.1109/SMART GENCON51891.2021.9645793. Das, J., Chakraborty, S. and Ghosh, D. (2022). Non-destructive mango quality assessment using support vector machine on near-infrared spectral data. Postharvest Biology and Technology . 185: 111780. Devi, P., Meena, S. and Jain, R. (2024). Enhanced mango fruit classification using ensemble of multiple deep learning models. Artificial Intelligence in Agriculture . 8: 100120. Dhiman, B., Kumar, Y. and Hu, Y. C. (2021). A general-purpose multi-fruit system for assessing the quality of fruits using recurrent neural networks. Soft Computing . 25(14): 9255-9272. https://doi.org/10.1007/s00500-021-05867-2. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T. and Houlsby, N. (2021). An image is worth 16×16 words: Transformers for Image Recognition at Scale. ICLR. Geerthik, S., Senthil, G.A., Oliviya, K.J. and Keerthana, R. (2024). A system and method for fruit ripeness prediction using transfer learning and CNN. Proceedings of the International Conference on Communication, Computing and Internet of Things (IC3IoT 2024). Institute of Electrical and Electronics Engineers. https://doi.org/10.1109/IC3IoT60841.2024. 10550209. Huang, Z., Zhang, C., Wang, L. and Wang, H. (2023). Fruit disease detection and classification using CNN and transformer hybrid models. Expert Systems with Applications . 213: 119070. Islam, M.Z., Hossain, M.S. and Andersson, K. (2021). Vision transformer- based fruit disease recognition using attention-guided feature extraction. IEEE Access . 9: 165404-165414. Joseph, T., Mathew, G. and Abraham, S. (2021). Development of a mobile application for mango variety identification using fine-tuned convolutional neural networks. Applied Engineering in Agriculture . 37(6): 987-995. Kalmani, V.H., Dharwadkar, N.V., Thapa, V. (2025). Crop yield prediction using deep learning algorithm based on CNN- LSTM with attention layer and skip connection. Indian Journal of Agricultural Research . 59(8): 1303-1311. doi: 10.18805/IJARe.A-6300 . Kamilaris, A. and Prenafeta-Boldú, F.X. (2020). Deep learning in agriculture: A survey. Computers and Electronics in Agriculture . 147: 70-90. Li, W., Zhang, Q., Wei, R. and Chen, S. (2022). High-accuracy mango variety classification using deep convolutional neural networks with attention mechanisms. Computers and Electronics in Agriculture . 198: 107025. Mehta, D., Sehgal, S., Choudhury, T. and Sarkar, T. (2021). Fruit quality analysis using modern computer vision methodologies. Proceedings of the IEEE Madras Section International Conference (MASCON 2021). Institute of Electrical and Electronics Engineers. https://doi.org/10.1109/MASCON 51689.2021.9563427. Mumuni, A. and Mumuni, F. (2022). Data augmentation: A comprehensive survey of modern approaches. Array. 16: 100258. https:/ /doi.org/10.1016/j.array.2022.100258. Oltean, M. (2025). Fruit-360 Dataset [Dataset]. Kaggle. Patel, R., Sharma, V. and Gupta, A. (2023). Real-time mango maturity grading based on lightweight CNN architectures for embedded systems. Journal of Agricultural Engineering Research . 34(2): 112-125. Patil R.G. and More A. (2025). A comparative study and optimization of deep learning models for grape leaf disease identification. Indian Journal of Agricultural Research . 59(4): 654- 663. doi: 10.18805/IJARe.A-6242 . Picon, A., Alvarez-Gila, A., Seitz, M., Ortiz-Barredo, A., Echazarra, J. and Johannes, A. (2020). Deep convolutional neural networks for mobile capture device-based crop disease classification. Computers and Electronics in Agriculture . 161: 104892. Prabhu, A. (2024). Alphonso Mango Ripening Stage Classification Dataset (Version 1). Mendeley Data. https://doi.org/10. 17632/tyghd6gxw2.1 Raghavendra, A., Guru, D.S., Rao, M.K. and Sumithra, R. (2020). Hierarchical approach for ripeness grading of mangoes. Artificial Intelligence in Agricultur e. 4: 243-252. https:/ /doi.org/10.1016/j.aiia.2020.10.003. Reddy, L., Devi, K. and Rao, M. (2020). Transfer learning for efficient mango disease classification with limited data. Plant Pathology Journal . 36(4): 380-387. Shahane, S. (2022). Mango Varieties Classification and Grading [Dataset]. Kaggle. Sikder, M.S., Islam, M.S., Islam, M. and Reza, M.S. (2025). Improving mango ripeness grading accuracy: A comprehensive analysis of deep learning, traditional machine learning and transfer learning techniques. Machine Learning with Applications . 19: 100619. https://doi.org/10.1016/j.mlwa. 2025.100619. Singh, S., Verma, N. and Kumar, P. (2021). Mango defect detection using random forest classifier with optimized feature selection from digital images. Precision Agriculture . 22(5): 1456-1478. Suresh, K., Priya, R. and Mohan, S. (2024). Comparative analysis of machine learning algorithms for mango maturity classification using color and texture features. Journal of Horticultural Science. 79(1): 55-68. Tan, S., Zhang, Y., Li, W. and Xu, J. (2022). A lightweight deep learning model for fruit ripeness and disease classification based on MobileNet and attention mechanism. Computers and Electronics in Agriculture . 198: 107054. Yuan, Y., Chen, J., Polat, K. and Alhudhaif, A. (2024). Detecting fruit and vegetable freshness through integration of convolutional neural networks and bidirectional long short-term memory networks. Current Research in Food Science . 8: 100723. https://doi.org/10.1016/j.crfs.2024. 100723.
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
V. Geethalakshmi
Chief Editor

V. Geethalakshmi

Ex-Vice ChancellorTamil Nadu Agricultural University Coimbatore, INDIA

R. Sarada Jaya Lakshmi
Associate chief editor

R. Sarada Jaya Lakshmi

Ex-Vice ChancellorCoordinator, DAATTC Kurnool, Acharya N.G. Ranga Agricultural University, Andhra Pradesh, INDIA

Neetu Sharma
Editor

Neetu Sharma

ProfessorSher-e-Kashmir University of Agricultural Sciences & Technology of Jammu and Kashmir, INDIA

S. Alarmelu
Editor

S. Alarmelu

Principal ScientistICAR-Sugarcane Breeding Institute, Coimbatore, Tamil Nadu, INDIA.