Claim Missing Document
Check
Articles

Found 1 Documents
Search
Journal : International Journal of Advances in Artificial Intelligence and Machine Learning

A Comparative Study of Convolutional Neural Networks and Vision Transformers for Fruit Classification Jawarneh, Malik; Marwanto, Arief; Syamsuar, Dedy; Kusnandar, Maivi
International Journal of Advances in Artificial Intelligence and Machine Learning Vol. 2 No. 2 (2025): International Journal of Advances in Artificial Intelligence and Machine Learni
Publisher : CV Media Inti Teknologi

Show Abstract | Download Original | Original Source | Check in Google Scholar | DOI: 10.58723/ijaaiml.v2i2.435

Abstract

Background of study:  Accurate fruit classification is vital for agricultural automation, yet traditional methods are often subjective and inefficient. Convolutional Neural Networks (CNNs) are effective but struggle with global context in fine-grained tasks. Vision Transformers (ViTs), inspired by NLP models, offer global attention mechanisms that may improve classification in complex scenarios.Aims and scope of paper: This study compares the performance of EfficientNet-B0 (a CNN model) and ViT-B/16 (a Transformer model) on a fruit classification task involving five fruit types. The goal is to evaluate their strengths and weaknesses under controlled experimental conditions using a moderately sized dataset.Methods: A dataset of 10,000 fruit images was preprocessed with standard augmentation techniques and split into training and validation sets. Both models were fine-tuned using pretrained weights. Performance was evaluated using accuracy, precision, recall, F1-score, and confusion matrices.Result: EfficientNet-B0 achieved higher overall accuracy (94%) than ViT-B/16 (92%). The CNN model performed consistently across all classes, particularly excelling in bananas and strawberries. ViT-B/16 showed superior results for strawberries but struggled with apples. Confusion matrices revealed class-specific strengths and weaknesses.Conclusion: EfficientNet-B0 is better suited for general fruit classification due to its balanced performance, while ViT-B/16 excels in capturing fine-grained visual features. A hybrid approach may leverage both models’ strengths for enhanced performance in real-world applications.
Co-Authors A. M. Harb, Hani Abo-Taleb, Ahmed Agung Satrio Nugroho agus sukarno Agus Suprajitno Agus Suprajitno Ahmed Abo-Taleb Ahmed S. Samra Ahsraf Ashraf Khalil Amir, Afandi Andrianto, Dian Andri Arinan Putra Aser Anou Asri, Mohd Hafizulhadi Mohd Bakhtiar Indra Kurniawan Berkah Fajar Tamtomo kiono Brama Sakti Handoko Brama Sakti Handoko Daniel Triswahyudi Dedi Nugroho Dedy Syamsuar Deshinta Arrova Dewi Diah Arie WK Eka Nuryanto Budi Susila fajar pujiyanto Fitri Anindyahadi Gunawan Alim Habib ALzaroug Abobaker Wardeko Hadi Pranoto Haikal Satria, Muhammad Hani A. M. Harb Hapsari, Jenny Putri I Nyoman Gede Muliawan Imam Much Ibnu Subroto Iska Yanuartanti Iwan Setiawan Jawarneh, Malik Jenny Putri Hapsari Kamilah Syed Yusof, Sharifah Kamilah, Sharifah khaled jemah basher Khalifa Mansour Khalifa Kuat Supriyadi Laksamana Rajendra Haidar Lawrence Adi Supriyono Lukman Abdul Fatah M Satria M. Gaballah, Waleed M. Haider Abu Yazid M. Haikal Satria M. Haikal Satria M. Ulin Nuha Maivi Kusnandar Mohamad Habib Ahsan Mohammad Alfian Mudzakir Mohd Hafizulhadi Mohd Asri Muhamad Haddin Muhammad ‘Atiq Muhammad Haikal Satria Muhammad Haikal Satria Muhammad Haikal Satria Muhammad Qomaruddin Muhammad Qomaruddin Muhammad Qomaruddin Muhammad Rifai Rifai Munaf Ismail Munaf Ismail Mustaqim Musyahar, Ghoni Nashruddin Anwar Nuha, M. Ulin Praditya, Muhammad Irfan Nur Pramono Mukti Wibowo Putra, Arinan Qirom Qirom Renantivani, Alivia Reza Yoga Diputra Riky Maulana Firdaus S Sukiran S. Kamilah S. Y S. Kamilah S. Y, S. Kamilah S. Y S. Samra, Ahmed Sarman Sarman Sarman Sarman Sarman, Sarman Satria, M Satria, M. Haikal Satria, Muhammad Haikal Setyanto, Barry Nur Sharifah Kamilah Syed Yusof Sharifah Kamilah Syed Yusof Sharifah Kamilah Syed Yusof Sharifah Yusof Sigit Prakosa Adhi Nugraha Sonny Hady Winoto Sri Arttini Dwi Prasetyawati Sucipto, Dany Sukarno Budi Utomo Sunaryo Sunaryo Sunaryo, Sunaryo Sunu Arsy Pratomo Suprawikno . Supriyadi, Kuat Suryani Alifah Sutarta Tarta Suyanta Suyanta Tri Basuki Kurniawan Triswahyudi, Daniel Vugar Abdullayev Waleed M. Gaballah Yahya Hidayatullah Yazid, M. Haider Abu Yudha Adi Putra Yudistira Marsya Puvindra Yusof, Sharifah Zakariya Ali Saeid Saeid