TL;DR
This paper introduces a novel weakly supervised video segmentation (WSVS) framework that generates highly accurate semantic segmentation masks for industrial waste sorting without requiring expensive pixel-level annotations. By enforcing both spatial and temporal coherence directly within the loss function during classifier training, the method leverages motion-compensated video frames to produce consistent, high-quality Class Activation Maps (CAMs).
What Problem Does This Paper Address?
Automating industrial waste sorting using deep learning is a powerful way to increase recycling efficiency and lower operational costs. However, state-of-the-art fully supervised segmentation models require massive datasets with precise, pixel-level annotations—a process that is incredibly tedious and expensive to scale to diverse recycling facilities.
Weakly supervised (WS) methods offer an alternative by training models on cheap, image-level labels (e.g., "before" vs. "after" sorting). They use Class Activation Maps (CAMs) to localize objects. However, standard CAMs are notoriously blurry and often fail in industrial conveyor belt environments due to two major issues:
- Background Bias: Because cameras are static, classifiers easily overfit to subtle lighting or background differences between camera zones rather than focusing on the waste objects themselves.
- Temporal Neglect: Existing methods treat video streams as collections of independent static images, completely ignoring the rich temporal correlations and motion dynamics between consecutive frames.
This paper tackles these gaps by introducing a framework that eliminates background bias and enforces temporal consistency during the training phase.
Methods
The authors design a dual-camera setup along a recycling conveyor belt. Camera $C_1$ records the mixed waste stream before a human operator removes specific "illegal" items, and Camera $C_2$ records the stream after removal.
To generate accurate segmentation masks from this setup, the framework introduces three core components:
- Background Removal & Three-Class Formulation: To prevent the network from cheating via background features, the authors estimate the static background using a pixel-wise median image across frames and mask it out. They then frame the task as a three-class classification problem: before (illegal objects), after (legal objects), and background.
- Spatial Module: Built upon PuzzleCAM, this module splits a central frame into local patches, computes their feature spaces, and merges them back. A spatial reconstruction loss ($\mathcal{L}_{\text{spatial}}$) ensures that the features extracted from the full image match those aggregated from the patches.
- Temporal Module (The Core Innovation): The network processes triplets of consecutive video frames ($X_{t-1}, X_t, X_{t+1}$). Saliency maps are generated for all three frames. To account for the movement of the conveyor belt, an optical flow algorithm (DICL-Flow) warps the adjacent maps ($M_{t-1}, M_{t+1}$) to align with the central frame ($X_t$). A temporal reconstruction loss ($\mathcal{L}_{\text{temporal}}$) then forces the central frame's CAM to match the fused, motion-compensated maps of its neighbors.
Datasets
The approach was validated on two datasets:
- SERUSO (Custom Dataset): A real-world dataset collected by the authors at a recycling facility. It contains 3,682 high-resolution ($2400 \times 2400$) images split into 36 "after" videos and 32 "before" videos tracking PET plastic bottle sorting. For evaluation purposes only, 364 "before" images were manually pixel-annotated to serve as a ground-truth test set.
- ZeroWaste-w: A public benchmark dataset from a recycling facility containing "before" and "after" sorting images. This dataset was primarily used to evaluate the effectiveness of the background removal technique.
Key Insights and Ideas
- Training-Time Temporal Regularization: Unlike prior video CAM methods that apply optical flow smoothing as a post-processing step, this framework embeds temporal coherence directly into the loss function during training. This forces the feature extractor to naturally learn representations that are stable over time.
- Breaking the Background Trap: In weakly supervised settings with static cameras, background subtraction isn't just about cleaning up the image—it's vital for generalization. Turning the background into an explicit third class forces the network's attention maps onto the foreground objects.
- Exploiting Workflow Structure: The method elegantly turns an existing industrial reality (a human operator sorting items between two cameras) into a self-contained, self-supervised data engine.
Key Results
The authors evaluated segmentation performance using the mean Intersection-over-Union (mIoU) metric on the "before" class to see how accurately illegal objects were masked.
- State-of-the-Art Performance: On the SERUSO dataset, the proposed method achieved an mIoU of 37.84%, noticeably outperforming standard GradCAM (22.08%), Frame-to-Frame post-processing (27.94%), and the spatial-only PuzzleCAM (34.20%).
- Ablation Verification: Removing both the spatial and temporal modules caused the mIoU to plummet to 24.08%. Using the temporal module alone yielded 29.23%, proving that spatial and temporal constraints provide powerful, complementary regularizations.
- ZeroWaste-w Limitation: The authors noted it was "Impossible" to train their full temporal model on the public ZeroWaste-w dataset because it only provides video streams for the "before" class and static images for the "after" class, validating the necessity of video streams across both camera views.
Limitations and Future Work
- Strict Video Requirements: The temporal module relies entirely on continuous video streams for both classes. If an industrial site only provides static image snapshots for one of the states, the temporal loss cannot be computed.
- Single-Frame Inference: Although the model is trained using triplets of frames to enforce temporal consistency, the saliency maps are currently extracted during inference using only a single frame. The authors plan to explore multi-frame aggregation at inference time to further smooth the masks.
- Pseudo-Label Pipeline: A natural next step highlighted by the authors is to use these high-quality weakly supervised masks as pseudo-labels to train a standard, fully supervised segmentation network (like a U-Net or SegFormer), which could bridge the remaining accuracy gap to fully supervised methods.
Summary updated