TY - JOUR T1 - Detection of Rotten Fruits Using XGBoost-Based Deep Learning Algorithm with Explainable Artificial Intelligence Models TT - XGBoost Tabanlı Derin Öğrenme Algoritması ile Açıklanabilir Yapay Zeka Modellerinin Kullanımı: Çürük Meyvelerin Tespiti AU - Şengöz, Nilgün AU - Köroğlu, Harun AU - Kırıktaş, Beyza Nur PY - 2025 DA - April Y2 - 2025 DO - 10.19113/sdufenbed.1575098 JF - Süleyman Demirel Üniversitesi Fen Bilimleri Enstitüsü Dergisi JO - J. Nat. Appl. Sci. PB - Süleyman Demirel University WT - DergiPark SN - 1308-6529 SP - 124 EP - 133 VL - 29 IS - 1 LA - en AB - Abstract: Achieving high accuracy rates in the field of image processing often exceeds the limits of a single model. Therefore, hybridizing XGBoost and deep learning models is a common approach to obtaining more accurate and reliable results. Deep learning models are highly capable of extracting complex and meaningful features from images. However, to effectively classify these features, the use of a powerful machine learning algorithm like XGBoost can further enhance performance. Hybrid models combine the best features of both models, allowing them to achieve higher accuracy rates that would not be possible if used individually. High accuracy improves the model's reliability and effectiveness in application, thereby preventing misclassification and improving overall performance. Therefore, hybridization of models is essential for better results. In this paper, after flattening the extracted features, an XGBoost-based model was trained by utilizing decision trees, and the model achieved an accuracy of 98.813% on the test data. SHAP and XAI LIME were employed to explain the model, providing visualizations of how the features impacted the model's decisions positively or negatively based on their weight values, and demonstrating how these features influenced the decision-making process. KW - Image Processing KW - XGBoost KW - Deep Learning KW - XAI LimeSHAP N2 - Görüntü işleme alanında yüksek doğruluk oranlarına ulaşmak, çoğu zaman tek bir modelin sınırlarını aşar. Bu nedenle XGBoost ve derin öğrenme modellerinin hibritlenmesi, daha doğru ve güvenilir sonuçlar elde etmek için yaygın bir yaklaşımdır. Derin öğrenme modelleri görüntülerden karmaşık ve anlamlı özellikler çıkarma konusunda oldukça yeteneklidir. Ancak, bu özelliklerin etkin bir şekilde sınıflandırılması için XGBoost gibi güçlü bir makine öğrenmesi algoritmasının kullanılması, performansı daha da artırır. Hibrit modeller, her iki modelin en iyi özelliklerini birleştirerek tek başına kullanıldıklarında elde edemeyecekleri yüksek doğruluk oranlarına ulaşabilirler. Yüksek doğruluk oranı modelin güvenirliğini ve uygulamadaki etkinliğini artırır, böylece yanlış sınıflandırmanın önüne geçilir ve genel performans iyileştirilir. Bu nedenle modellerin hibritlenmesi daha iyi sonuç elde etmek için gereklidir. Bu makalede XGBoost modelini kullanırken çıkarılan özellikleri düzleştirdikten sonra XGBoost karar ağaçları tabanlı bir model eğitilerek model oluşturulmuş ve oluşturulan model üzerinde test verileri 98.813 yüzde ile doğruluk göstermiştir. Bu modelin açıklanmasında SHAP, XAI lime gibi açıklanabilir modeller kullanılmıştır. Çıkarılan özelliklerin ağırlık değerlerine göre modeli olumlu ya da olumsuz etkilemesi veya özelliklerin kararların alınmasında nasıl etkilediği grafik olarak verilmiş. CR - [1] Food Losses and Waste (FAO) Inventory and management at each stage in the food chain, 2016. https://openknowledge.fao.org/server/api/core/bitstreams/36cb45bc-392c-41fb-97f1-90ca1f16ee7f/content (Access date: 25.12.2024) CR - [2] Bhattiprolu, S. 2021. XGBoost for image classification using VGG16. https://github.com/bnsreenu/python_for_microscopists/blob/master/195_xgboost_for_image_classification_using_VGG16.py (Access date: 26.03.2024) CR - [3] Kaggle, 2018, Fruits Fresh and Rotten for Classification, https://www.kaggle.com/datasets/sriramr/fruits-fresh-and-rotten-for-classification (Access date: 26.02.2024) CR - [4] Mendeley Data, 2022, Fresh and Rotten Fruits Dataset for Machine-Based Evaluation of Fruit Quality, https://data.mendeley.com/datasets/bdd69gyhv8/1 (Access date: 25.12.2024) CR - [5] Mehedi, H., Moinul, H. 2021. Fresh and Rotten Fruit Classification Using Deep Learning. Daffodil International University. Computer Science and Engineering. CR - [6] Ayşin, B. 2022. Determining the Freshness of Fruits with Deep Learning Methods. Tekirdağ Namık Kemal Üniversitesi. Bilgisayar Mühendisliği Anabilim Dalı. Yüksek Lisans Tezi. Tekirdağ. CR - [7] Hithesh Kumar, C.M., Vikash, VArun, Dyamanagouda, P. 2021. Detection of Quality of Fruits Usıng AI. International Research Journal of Modernization in Engineering Technology and Science, 3(7). CR - [8] Sohel, M., Tayeeba, T., Mirajul., I., Mumenunnesa, K., Riazue, R., Syed, A.H. 2021. An Advanced Method of Identification Fresh and Rotten Fruits using Different Convolutional Neural Networks. International Conference on Computing Communication and Networking Technologies (ICCCNT) 12th CR - [9] Amin, U.; Shahzad, M.I.; Shahzad, A.; Shahzad, M.; Khan, U.; Mahmood, Z. Automatic Fruits Freshness Classification Using CNN and Transfer Learning. Appl. Sci. 2023, 13, 8087. CR - [10] Tapia-Mendez, E.; Cruz-Albarran, I.A.; Tovar-Arriaga, S.; Morales-Hernandez, L.A. Deep Learning-Based Method for Classification and Ripeness Assessment of Fruits and Vegetables. Appl. Sci. 2023, 13, 12504 CR - [11] Deyner Julian, N. O., Silvia Alejandra, M. L. (2022). Automatic Identification of banana quality with Deep Neural Network Classification. ISSN online 2344-9217 CR - [12] Sai Sudhan, S.P., Venkata Rami, R.C., Yakobu, D., Suneetha B. 2020. Fresh and Rotten Fruits Classification Using CNN and Transfer Learning. Revue d'Intelligence Artificielle 34(5), pp. 617-622 CR - [13] Florence, S., Nur Shabira, B. 2023. Hyperparameter Tuning of Convolutional Neural Network for Fresh and Rotten Fruit Recognition. 2023 IEEE International Conference on Artificial Intelligence in Engineering and Technology (IICAIET) UR - https://doi.org/10.19113/sdufenbed.1575098 L1 - https://dergipark.org.tr/en/download/article-file/4321475 ER -