Abstract
Automating industrial waste sorting is a critical challenge for environmental sustainability, yet current deep learning solutions are bottlenecked by the need for extensive manual pixel-level annotations. This paper introduces WS2, a novel framework that utilizes "Before-After" supervision to train segmentation models without manual labels. By observing the items removed by human operators on a conveyor belt, the system generates implicit training signals. We present a multi-stage pipeline incorporating a novel background-removal strategy and SAM2 refinement, alongside a new 11,000-frame real-world dataset.
Introduction
The diversity of materials in recycling plants makes universal automation difficult. Traditional fully supervised (FS) training requires humans to manually trace thousands of objects, a process that is both slow and expensive. WS2 addresses this by leveraging the existing workflow of human operators. As operators remove unwanted items from a conveyor belt, they provide a natural "before" and "after" signal that can be used for supervision.
Methodology
The WS2 framework transforms the binary "before" and "after" states into high-fidelity segmentation masks through several key stages:
- Auxiliary Classifier Training: A classifier is trained to distinguish between "before" images (containing target and non-target items) and "after" images (containing only target items).
- Saliency Map Generation: The classifier's attention maps on "before" images highlight the objects unique to that class—the items removed by the operator.
- Background Removal (BR) Strategy: To prevent the model from learning camera-specific background artifacts or lighting reflexes, a three-class strategy ("before," "after," and "background only") is employed. This forces the network to focus on object-level differences.
- Refinement with SAM2: Raw saliency maps are often coarse. The Segment Anything Model (SAM2) is used to refine these into sharp, object-aligned pseudo-masks.
- Final Segmentation Training: These pseudo-masks serve as ground truth for training a standard segmentation architecture, such as SegFormer.
The WS2 Dataset
To evaluate the framework, we introduce the WS2 dataset, consisting of over 11,000 high-resolution video frames captured at a real-world plastic sorting facility in Italy. Unlike previous datasets, WS2 provides full video sequences, enabling the use of temporal consistency to improve localization.
Results and Discussion
Benchmarking various weakly supervised methods revealed that leveraging temporal cues is highly effective. POF-CAM, which utilizes motion information across frames, achieved a mean Intersection over Union (mIoU) of 42.58%. Refinement with SAM2 was found to be a critical component, consistently improving boundary accuracy across all tested methods.
A significant finding was the necessity of the Background Removal (BR) strategy. Without it, models frequently failed by over-focusing on lighting reflections on the conveyor belt rather than the waste objects themselves.
Conclusion
WS2 demonstrates that human-in-the-loop industrial processes can provide sufficient supervision for complex computer vision tasks without explicit labeling. While challenges remain—such as handling operator errors and distribution shifts between "before" and "after" views—this paradigm offers a scalable path toward automating diverse industrial sorting tasks. Future work will explore deeper integration of temporal consistency and cross-domain generalization.
Summary updated