Explainable Non-Organic Waste Classification: A Comparative Study of CNN with SHAP Interpretability Against Vision Transformer Approaches
Abstract
This study develops a classification model based on Machine Learning (ML) and Computer Vision (CV) to automatically distinguish recyclable and non-recyclable waste. Waste management still faces the challenge of low manual sorting efficiency, thus reducing recycling potential. The dataset consists of 399 waste images divided with a ratio of 80:10:10 for training, validation, and testing. Three combinations of visual features were tested, namely Mean Color (RGB) + LBP + HOG, Histogram + HOG + Edge, and Mean Color (RGB) + Histogram + GLCM, each of which was evaluated using four conventional ML algorithms, namely SVM-RBF, SVM-Linear, Random Forest, and Gradient Boosting. Meanwhile, deep learning models namely CNN, ViT, and LoRA ViT were trained directly on raw images without manual feature extraction. Experimental results show that CNN achieved the highest testing accuracy of 82.50%, outperforming all conventional ML models that achieved a maximum accuracy of 75.00%, as well as ViT (72.50%) and LoRA ViT (70.00%). The application of SHAP-based Explainable AI (XAI) provides transparency to the model's decision-making process. These findings demonstrate that CNN with certain regularization settings are effective for distinguishing recyclable and non-recyclable waste, in supporting sustainable smart waste management systems.
References
Alhindi, T. J., Kalra, S., Ng, K. H., Afrin, A., & Tizhoosh, H. R. (2018). Comparing LBP, HOG and Deep Features for Classification of Histopathology Images. 2018 International Joint Conference on Neural Networks (IJCNN), 1–7. https://doi.org/10.1109/IJCNN.2018.8489329
Andi Muhammad Akbar, Muhammad Basri, & Wahyuddin Wahyuddin. (2025). Implementasi Machine Learning Menggunakan Algoritma Klasifikasi untuk Mendeteksi Jenis Sampah. Jurnal Publikasi Manajemen Informatika, 3(3), 152–161. https://doi.org/10.55606/jupumi.v3i3.3751
Asmawati, A., Kurniawan, Y., & Fadilah, R. N. (2025). Efisiensi Pemilahan Sampah Daur Ulang Menggunakan Model CNN SSDMobileNet V2. ICIT Journal, 11(2), 197–208. https://doi.org/10.33050/icit.v11i2.3939
Azhar, N. A., Mohd Pozi, M. S., Mohamed Din, A., & Jatowt, A. (2022). An Investigation of SMOTE based Methods for Imbalanced Datasets with Data Complexity Analysis. IEEE Transactions on Knowledge and Data Engineering, 1–1. https://doi.org/10.1109/TKDE.2022.3179381
Boumaraf, S., Liu, X., Wan, Y., Zheng, Z., Ferkous, C., Ma, X., Li, Z., & Bardou, D. (2021). Conventional Machine Learning versus Deep Learning for Magnification Dependent Histopathological Breast Cancer Image Classification: A Comparative Study with Visual Explanation. Diagnostics, 11(3), 528. https://doi.org/10.3390/diagnostics11030528
Doly Ilham Saputra Huta Julu, & Dewi Nurdiyah. (2025). KLASIFIKASI SAMPAH ORGANIK DAN NON ORGANIK MENGGUNAKAN TRANSFER LEARNING. Jurnal Transformatika, 23(1), 12–29. https://doi.org/10.26623/transformatika.v23i1.12201
Fotovvatikhah, F., Ahmedy, I., Noor, R. M., & Munir, M. U. (2025). A Systematic Review of AI-Based Techniques for Automated Waste Classification. Sensors, 25(10), 3181. https://doi.org/10.3390/s25103181
Friedman, J. H. (2001). Greedy function approximation: A gradient boosting machine. The Annals of Statistics, 29(5). https://doi.org/10.1214/aos/1013203451
Givisis, I., Kalatzis, D., Christakis, C., & Kiouvrekis, Y. (2025). Comparing Explainable AI Models: SHAP, LIME, and Their Role in Electric Field Strength Prediction over Urban Areas. Electronics, 14(23), 4766. https://doi.org/10.3390/electronics14234766
Gurcan, F., & Soylu, A. (2026). Automated waste classification for smart recycling: A multi-class CNN approach with transfer learning and pre-trained models. Environmental Technology & Innovation, 41, 104673. https://doi.org/10.1016/j.eti.2025.104673
Hallur, S., & Gavade, A. (2025). Image feature extraction techniques: A comprehensive review. Franklin Open, 12, 100366. https://doi.org/10.1016/j.fraope.2025.100366
Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., & Chen, W. (2021). LoRA: Low-Rank Adaptation of Large Language Models. http://arxiv.org/abs/2106.09685
Huang, K., Lei, H., Jiao, Z., & Zhong, Z. (2021). Recycling Waste Classification Using Vision Transformer on Portable Device. Sustainability, 13(21), 11572. https://doi.org/10.3390/su132111572
Ibnul Rasidi, A., Pasaribu, Y. A. H., Ziqri, A., & Adhinata, F. D. (2022). Klasifikasi Sampah Organik dan Non-Organik Menggunakan Convolutional Neural Network. Jurnal Teknik Informatika Dan Sistem Informasi, 8(1). https://doi.org/10.28932/jutisi.v8i1.4314
Kiyokawa, T., Katayama, H., Tatsuta, Y., Takamatsu, J., & Ogasawara, T. (2021). Robotic Waste Sorter With Agile Manipulation and Quickly Trainable Detector. IEEE Access, 9, 124616–124631. https://doi.org/10.1109/ACCESS.2021.3110795
Kiyokawa, T., Takamatsu, J., & Koyanaka, S. (2024). Challenges for Future Robotic Sorters of Mixed Industrial Waste: A Survey. IEEE Transactions on Automation Science and Engineering, 21(1), 1023–1040. https://doi.org/10.1109/TASE.2022.3221969
Kurniawan, R., Wintoro, P. B., Mulyani, Y., & Komarudin, M. (2023). IMPLEMENTASI ARSITEKTUR XCEPTION PADA MODEL MACHINE LEARNING KLASIFIKASI SAMPAH ANORGANIK. Jurnal Informatika Dan Teknik Elektro Terapan, 11(2). https://doi.org/10.23960/jitet.v11i2.3034
Muslihati, M., Sahibu, S., & Taufik, I. (2024). Implementasi Algoritma Convolutional Neural Network untuk Klasifikasi Jenis Sampah Organik dan Non Organik. MALCOM: Indonesian Journal of Machine Learning and Computer Science, 4(3), 840–852. https://doi.org/10.57152/malcom.v4i3.1346
Nisa, I. Z., Endah, S. N., Sasongko, P. S., Kusumaningrum, R., Khadijah, K., & Rismiyati, R. (2022). Klasifikasi Citra Sampah Menggunakan Support Vector Machine dengan Ekstraksi Fitur Gray Level Co-Occurrence Matrix dan Color Moments. Jurnal Teknologi Informasi Dan Ilmu Komputer, 9(5), 921–930. https://doi.org/10.25126/jtiik.2022954868
Razaque, A., Ben Haj Frej, M., Almi’ani, M., Alotaibi, M., & Alotaibi, B. (2021). Improved Support Vector Machine Enabled Radial Basis Function and Linear Variants for Remote Sensing Image Classification. Sensors, 21(13), 4431. https://doi.org/10.3390/s21134431
S.Intam, R. N. J., Raihan, A., Alfajri, M., Kaswar, A. B., Andayani, D. D., & Asnidar. (2024). Sistem Klasifikasi Jenis Sampah Berdasarkan Kombinasi Fitur Warnac Tekstur Menggunakan Artifical Neural Network Berbasis Pengolahan Citra Digital. Jurnal Teknologi Informasi Dan Ilmu Komputer, 11(2), 411–420. https://doi.org/10.25126/jtiik.20241128330
Saeed, W., & Omlin, C. (2023). Explainable AI (XAI): A systematic meta-survey of current challenges and future opportunities. Knowledge-Based Systems, 263, 110273. https://doi.org/10.1016/j.knosys.2023.110273
Sami, K. N., Amin, Z. M. A., & Hassan, R. (2020). Waste Management Using Machine Learning and Deep Learning Algorithms. International Journal on Perceptive and Cognitive Computing, 6(2), 97–106. https://doi.org/10.31436/ijpcc.v6i2.165
Sapanli, K., Putro, F. A. D., Arifin, S. D., Putra, A. H., Andamari, H. A., & Anggraini, U. (2023). Pengelolaan Sampah Rumah Tangga Berbasis Circular Economy di Tingkat Desa: Pendekatan Sistem Dinamik. Jurnal Wilayah Dan Lingkungan, 11(2), 141–155. https://doi.org/10.14710/jwl.11.2.141-155
Sunardi, Yudhana, A., & Fahmi, M. (2023). Improving Waste Classification Using Convolutional Neural Networks: An Application of Machine Learning for Effective Environmental Management. Revue d’Intelligence Artificielle, 37(4), 845–855. https://doi.org/10.18280/ria.370404
Zhao, X., Wang, L., Zhang, Y., Han, X., Deveci, M., & Parmar, M. (2024). A review of convolutional neural networks in computer vision. Artificial Intelligence Review, 57(4), 99. https://doi.org/10.1007/s10462-024-10721-6





