Skip to content

Multi-Layer Feature Fusion for High-Accuracy Solid Waste Classification using a Hybrid Deep Learning Model

Notifications You must be signed in to change notification settings

GaffariCelik/SolidWasteClassification

Repository files navigation

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.

Garbage_Classification-ProposedModule drawio

Experimental Results

  • Results obtained based on test data on the TrashNet dataset:

TrashNet_tablo

TrashNet 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:

HouseHold_Garbage_Tablo

HouseHold_Garbage

 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

Technologies Used

  • Python
  • TensorFlow / Keras
  • OpenCV
  • NumPy, Pandas, Matplotlib

Dataset

This study uses the following datasets containing various types of solid waste:

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.

Usage Steps

  1. img2nparray.py → Resizes images and converts them into nparray format.
  2. config.py → Sets parameters.
  3. train.py → Trains the model.
  4. test_model.py → Tests the trained model.
  5. 1_Our_Model_Training_Testing.ipynb → Training, testing, and visualization processes can only be performed through this file.

Citation

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 }

About

Multi-Layer Feature Fusion for High-Accuracy Solid Waste Classification using a Hybrid Deep Learning Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published