Published July 1, 2025 | Version v1
Dataset Open

WS2: Weakly Supervised Segmentation for Smarter Waste Sorting

  • 1. ROR icon Politecnico di Milano
  • 1. ROR icon Politecnico di Milano
  • 2. ROR icon EURECOM

Description

The WS2 dataset is a benchmark dataset specifically designed for weakly supervised waste sorting segmentation. Collected from a plastic waste sorting facility, it comprises high-resolution video sequences captured before and after a human operator manually removes unwanted items from a stream of mixed plastic waste on a conveyor belt, leaving only semi-transparent colored PET items.

The dataset is designed to facilitate the segmentation of removed waste items by leveraging the implicit supervision provided by the operator. Specifically, before images contain both items to keep and items to remove, while after images include only the items to keep. This dataset enables the evaluation of weakly supervised methods (such as CAM-based approaches) in complex industrial environments, eliminating the need for extensive pixel-level annotations required for training fully supervised segmentation networks.

The dataset consists of a training set with 9,563 unannotated before-and-after images, already organized into training and validation folders, and a test set containing 1,497 before-and-after images with corresponding pixel-level ground truth masks. The test set masks are binary annotated, distinguishing items to be removed from the rest. Images are grouped into folders containing video sequences, allowing models to leverage temporal information and enabling the evaluation of both frame-based and video-based segmentation methods.

It includes both original images and background-removed versions, enabling direct comparisons between models trained with or without background information. The dataset follows a structured folder organization to support various training and evaluation setups.

If you use any ideas or materials from the paper, code or dataset from this repo, please consider citing:

@inproceedings{marelli2025ws2,
  author    = {Marelli, Andrea and Foresti, Alberto and Pesce, Leonardo and Boracchi, Giacomo and Grosso, Mario},
  title     = {WS2: Weakly Supervised Segmentation using Before-After Supervision in Waste Sorting},
  booktitle = {Computer Vision--ICCV 2025 Workshops},
  year      = {2025},
  url       = {https://arxiv.org/abs/2509.06485}
}

Files

README.md

Files (5.4 GB)

Name Size Download all
md5:8a8f00387bfbf7c7a7e25b73549ada87
9.2 kB Preview Download
md5:e9868537a111d49d8ca300e60d365ec7
8.1 kB Preview Download
md5:f86cc375888513aaeb37cfe7a046cec8
483.0 MB Preview Download
md5:acf8882aa10adc76c1ca9ce925064ccd
2.2 GB Preview Download
md5:d91888750ac84bd0be0eb4624e61b515
2.7 GB Preview Download
md5:33e1f6c1a8d40366fd85452d202483cb
894.1 kB Preview Download

Additional details

Related works

Is published in
Conference paper: arXiv:2509.06485 (arXiv)

Software

Repository URL
https://github.com/andreamarelli99/WS2-Dataset
Programming language
Python

References

  • Marelli, A., Foresti, A., Pesce, L., Boracchi, G., & Grosso, M. (2025). WS2: Weakly Supervised Segmentation using Before-After Supervision in Waste Sorting. In Computer Vision–ICCV 2025 Workshops.