Multi-Layer Feature Fusion for High-Accuracy Solid Waste Classification using a Hybrid Deep Learning Model
This study utilizes deep learning and computer vision techniques to classify solid waste images. The goal is to automatically identify different waste types (plastic, paper, metal, glass, etc.) to facilitate recycling processes. The basic structure of the proposed model is given below.
- Results obtained based on test data on the TrashNet dataset:
Confusion matrix results of (a) the proposed model, (b) EfficientNetB0, and (c) InceptionV3 models.
0: cardboard, 1: glass, 2: metal, 3: paper, 4: plastic, and 5: trash
- Results obtained based on test data on the Household_Garbage dataset:
Confusion matrix results of (a) the proposed model, (b) EfficientNetB0, and (c) InceptionV3 models.
0: battery, 1: biological, 2: brown-glass, 3: cardboard, 4: clothes, 5: green-glass, 6: metal,
7: paper, 8: plastic, 9: shoes, 10: trash, and 11: white-glass
- Python
- TensorFlow / Keras
- OpenCV
- NumPy, Pandas, Matplotlib
This study uses the following datasets containing various types of solid waste:
- Household_Garbage Dataset: Kaggle Link
- TrashNet Dataset: Kaggle Link
The images are categorized and labeled accordingly, and the model is trained on this data.
Additionally, the organized data and the weights of the proposed model can be accessed here.
- img2nparray.py → Resizes images and converts them into
nparray
format. - config.py → Sets parameters.
- train.py → Trains the model.
- test_model.py → Tests the trained model.
- 1_Our_Model_Training_Testing.ipynb → Training, testing, and visualization processes can only be performed through this file.
If you use this code in your research, please cite:
@article{
Celik, G. Multi-layer feature fusion for high-accuracy solid waste classification using a hybrid deep learning model. Vis Comput (2025). https://doi.org/10.1007/s00371-025-04031-3
}