Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
59
6k
label
class label
6 classes
label_id
int64
0
5
label_name
stringclasses
6 values
source_dataset
stringclasses
4 values
original_label
stringclasses
57 values
image_context
stringclasses
3 values
3paper
3
paper
tricascade
S_Tetra Pak
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
5trash
5
trash
tricascade
B_Animal Dead Body
default
3paper
3
paper
tricascade
D_Newspaper
default
1glass
1
glass
household_garbage
glass_food_jars
real_world
1glass
1
glass
garbage_dataset
glass
unknown
5trash
5
trash
household_garbage
food_waste
real_world
3paper
3
paper
tricascade
E_Paper Cups
default
3paper
3
paper
tricascade
D_Newspaper
default
1glass
1
glass
garbage_dataset
glass
unknown
2metal
2
metal
household_garbage
steel_food_cans
real_world
5trash
5
trash
tricascade
A_Foods
default
2metal
2
metal
tricascade
K_Beverage Cans
default
1glass
1
glass
household_garbage
glass_food_jars
real_world
5trash
5
trash
household_garbage
tea_bags
real_world
3paper
3
paper
tricascade
F_Papers
default
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
4plastic
4
plastic
tricascade
R_Plastic Cups
default
1glass
1
glass
garbage_dataset
glass
unknown
5trash
5
trash
garbage_dataset
trash
unknown
3paper
3
paper
trashnet
paper
default
1glass
1
glass
garbage_dataset
glass
unknown
2metal
2
metal
tricascade
M_Metal Containers
default
4plastic
4
plastic
garbage_dataset
plastic
unknown
2metal
2
metal
trashnet
metal
default
1glass
1
glass
household_garbage
glass_beverage_bottles
default
3paper
3
paper
household_garbage
magazines
default
4plastic
4
plastic
garbage_dataset
plastic
unknown
0cardboard
0
cardboard
tricascade
C_Cardboard
default
5trash
5
trash
tricascade
A_Foods
default
5trash
5
trash
tricascade
V_Gloves
default
1glass
1
glass
tricascade
I_Green Glass
default
2metal
2
metal
garbage_dataset
metal
unknown
2metal
2
metal
garbage_dataset
metal
unknown
5trash
5
trash
tricascade
X_Bandai
default
5trash
5
trash
tricascade
L_Construction Scrap
default
5trash
5
trash
garbage_dataset
trash
unknown
1glass
1
glass
garbage_dataset
glass
unknown
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
2metal
2
metal
tricascade
K_Beverage Cans
default
2metal
2
metal
garbage_dataset
metal
unknown
4plastic
4
plastic
household_garbage
plastic_detergent_bottles
real_world
3paper
3
paper
household_garbage
newspaper
real_world
3paper
3
paper
household_garbage
styrofoam_food_containers
real_world
1glass
1
glass
garbage_dataset
glass
unknown
5trash
5
trash
tricascade
V_Gloves
default
5trash
5
trash
tricascade
V_Gloves
default
3paper
3
paper
household_garbage
paper_cups
default
5trash
5
trash
tricascade
A_Foods
default
4plastic
4
plastic
household_garbage
plastic_trash_bags
real_world
4plastic
4
plastic
garbage_dataset
plastic
unknown
1glass
1
glass
household_garbage
glass_cosmetic_containers
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
3paper
3
paper
household_garbage
paper_cups
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
1glass
1
glass
tricascade
J_White Glass
default
0cardboard
0
cardboard
household_garbage
cardboard_packaging
real_world
3paper
3
paper
tricascade
D_Newspaper
default
5trash
5
trash
tricascade
A_Foods
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
5trash
5
trash
tricascade
Z_A_Diaper
default
2metal
2
metal
tricascade
K_Beverage Cans
default
3paper
3
paper
garbage_dataset
paper
unknown
0cardboard
0
cardboard
tricascade
C_Cardboard
default
3paper
3
paper
tricascade
F_Papers
default
4plastic
4
plastic
household_garbage
plastic_soda_bottles
real_world
0cardboard
0
cardboard
trashnet
cardboard
default
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
4plastic
4
plastic
tricascade
N_Plastic Bag
default
5trash
5
trash
tricascade
Z_A_Diaper
default
3paper
3
paper
garbage_dataset
paper
unknown
1glass
1
glass
household_garbage
glass_food_jars
default
4plastic
4
plastic
household_garbage
plastic_cup_lids
real_world
4plastic
4
plastic
tricascade
Y_Medicine and Medicine Strip
default
1glass
1
glass
garbage_dataset
glass
unknown
1glass
1
glass
tricascade
J_White Glass
default
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
1glass
1
glass
household_garbage
glass_cosmetic_containers
real_world
5trash
5
trash
household_garbage
food_waste
real_world
5trash
5
trash
tricascade
A_Foods
default
3paper
3
paper
household_garbage
styrofoam_food_containers
real_world
5trash
5
trash
tricascade
X_Bandai
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
4plastic
4
plastic
household_garbage
plastic_water_bottles
real_world
2metal
2
metal
tricascade
M_Metal Containers
default
3paper
3
paper
garbage_dataset
paper
unknown
2metal
2
metal
tricascade
M_Metal Containers
default
1glass
1
glass
trashnet
glass
default
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
4plastic
4
plastic
household_garbage
plastic_water_bottles
real_world
4plastic
4
plastic
household_garbage
plastic_straws
real_world
3paper
3
paper
tricascade
D_Newspaper
default
0cardboard
0
cardboard
tricascade
C_Cardboard
default
4plastic
4
plastic
household_garbage
plastic_shopping_bags
default
5trash
5
trash
tricascade
A_Foods
default
3paper
3
paper
household_garbage
office_paper
real_world
1glass
1
glass
household_garbage
glass_cosmetic_containers
real_world
3paper
3
paper
tricascade
F_Papers
default
0cardboard
0
cardboard
garbage_dataset
cardboard
unknown
End of preview. Expand in Data Studio

Dataset Card for Waste Classification Harmonized Dataset

Dataset Details

Dataset Description

This dataset is a harmonized image classification dataset for waste classification. It combines multiple waste-related image datasets into a unified label structure with six target classes:

  • cardboard
  • glass
  • metal
  • paper
  • plastic
  • trash

The dataset is designed for training and evaluating computer vision models for waste classification, especially in the context of recycling and real-world trash recognition. The original datasets used different label names and different levels of class granularity, so their labels were mapped into one common classification scheme.

The final dataset contains 29,849 images.

  • License: MIT

Dataset Sources

This project combines and harmonizes the following public waste-classification datasets:

TrashNet

  • Source: Kaggle — TrashNet by Feyza Ozkefe
  • Link: https://www.kaggle.com/datasets/feyzazkefe/trashnet
  • Notes: Contains six TrashNet-style classes: cardboard, glass, metal, paper, plastic, and trash.
  • Used for: Base label structure and additional image data.
  • License: MIT

Household Garbage Dataset

The Garbage Dataset / Garbage Classification V2

  • Source: Kaggle — Garbage Classification V2
  • Link: https://www.kaggle.com/datasets/sumn2u/garbage-classification-v2
  • Notes: Only the original folder was used. The standardized_256 and standardized_384 folders were ignored to avoid duplicate or near-duplicate images.
  • Used for: Additional training data after label harmonization.
  • License: MIT

TriCascade WasteImage

Uses

Direct Use

This dataset can be used for:

  • image classification
  • waste classification
  • recycling-related computer vision experiments
  • transfer learning
  • fine-tuning pretrained vision models
  • comparing image classification architectures
  • evaluating model robustness across different image sources

Suitable model architectures include, but are not limited to:

  • ResNet
  • ConvNeXt
  • DeiT
  • EfficientNet
  • MLP-Mixer
  • Vision Transformer variants

Out-of-Scope Use

This dataset is not intended for direct deployment in production-level recycling systems without further validation.

The dataset should not be used as the only evaluation source for real-world waste sorting systems, because real-world environments may include:

  • multiple objects in one image
  • damaged or dirty waste objects
  • unusual lighting conditions
  • occlusion
  • mixed materials
  • unseen waste categories
  • local recycling rules that differ by region

The dataset is also not suitable for fine-grained waste classification such as distinguishing between PET, HDPE, organic waste, batteries, electronic waste, or hazardous materials.

Dataset Structure

Each sample contains an image, a harmonized label, and metadata about the original source.

Example sample:

{
    "image": "<PIL.Image.Image>",
    "label": 4,
    "label_id": 4,
    "label_name": "plastic",
    "source_dataset": "household_garbage",
    "original_label": "plastic_soda_bottles",
    "image_context": "real_world"
}

Fields

Field Description
image Image file loaded as a Hugging Face image feature
label Integer class label used for training
label_id Integer ID of the harmonized label
label_name Name of the harmonized class
source_dataset Name of the dataset from which the image originated
original_label Original label before harmonization
image_context Context information about the image, for example real_world, default, or source-specific context

Label Mapping

Label ID Label Name
0 cardboard
1 glass
2 metal
3 paper
4 plastic
5 trash

Label Distribution

The final harmonized dataset contains 29,849 images across six classes.

Label Count
cardboard 4,849
glass 5,000
metal 5,000
paper 5,000
plastic 5,000
trash 5,000

Most classes were limited to 5,000 images per label to reduce class imbalance. The cardboard class contains 4,849 images, because fewer images were available after harmonization and filtering.

Data Splits

Split Number of Images
train 20,894
validation 4,477
test 4,478

Total: 29,849 images

Dataset Creation

Curation Rationale

Waste classification datasets often use different class names, different label granularities, and different image conditions. For example, one dataset may use a broad label such as plastic, while another may contain more specific labels such as plastic_soda_bottles, plastic_food_containers, or plastic_cup_lids.

The goal of this dataset is to create a unified and practical waste-classification dataset with a common label structure. This makes it easier to train and compare different image classification models under the same classification task.

Source Data

The source data consists of waste images from multiple public Kaggle datasets. These datasets contain images of recyclable and non-recyclable waste objects, including cardboard, glass, metal, paper, plastic, and general trash.

The original datasets use different label names, image contexts, and levels of class granularity. Therefore, their labels were mapped into one shared six-class structure:

  • cardboard
  • glass
  • metal
  • paper
  • plastic
  • trash

The original dataset name and original label are preserved in the metadata fields source_dataset and original_label.

Annotations

The dataset does not introduce completely new manual annotations for every image. Instead, it harmonizes existing source labels into a shared six-class label structure.

Annotation Process

The annotation process consisted mainly of label harmonization. Source-specific labels were mapped to one of the following final classes:

  • cardboard
  • glass
  • metal
  • paper
  • plastic
  • trash

For example:

  • plastic_soda_bottlesplastic
  • plastic_food_containersplastic
  • plastic_cup_lidsplastic

The original labels are preserved in the dataset metadata.

Who are the annotators?

The original annotations were provided by the creators of the source datasets. The harmonized label mapping was created during the dataset preparation process.

Personal and Sensitive Information

This dataset contains images of waste objects. It is not intended to contain personal, sensitive, or private information.

However, because the dataset contains real-world images from multiple sources, there is a possibility that some images may include background objects or environmental details. Users should inspect the dataset before using it in privacy-sensitive applications.

Bias, Risks, and Limitations

This dataset has several limitations:

  1. Source bias The dataset combines images from different sources. Each source may have different image styles, backgrounds, camera qualities, object positions, and lighting conditions.

  2. Background bias Some images may contain clean or artificial backgrounds, while others may contain more realistic environments. A model trained on this dataset may learn background patterns instead of only learning the waste object.

  3. Label noise Some images may contain multiple objects, unclear objects, damaged waste items, or objects made of mixed materials. In such cases, a single label may not fully describe the image.

  4. Limited taxonomy The dataset only contains six broad classes. It does not distinguish between more specific waste categories such as organic waste, batteries, electronics, hazardous materials, or different plastic types.

  5. Near-duplicate images Since the dataset was created from multiple sources, there may be duplicate or near-duplicate images. Users should perform duplicate detection if they need a strict evaluation setup.

  6. Real-world generalization Good performance on this dataset does not guarantee good performance in real recycling facilities or outdoor waste-detection scenarios.

Recommendations

Users should evaluate models with more than accuracy alone. Recommended metrics include:

  • macro F1-score
  • per-class precision
  • per-class recall
  • confusion matrix
  • validation loss
  • test loss

Macro F1-score is especially recommended because each waste class should be treated equally.

For stronger evaluation, users should consider source-aware testing. For example, they can train on some source datasets and test on a different source dataset to measure domain generalization. APA:

Lavassani, A. (2026). Waste Classification Harmonized Dataset. Hugging Face.

Glossary

Harmonization The process of mapping labels from different datasets into one shared label structure.

Source dataset The original dataset from which an image was taken.

Original label The label assigned to the image in its original dataset before harmonization.

Image context Metadata describing the visual context or source-specific image condition, such as real-world or default images.

Macro F1-score An evaluation metric that calculates the F1-score for each class separately and then averages them equally. This is useful when all classes are important.

More Information

This dataset was created as part of a machine learning project for waste image classification. The project focuses on dataset harmonization, model comparison, transfer learning, and fine-tuning pretrained computer vision models.

Downloads last month
29