Abstract
Automating waste inspection is critical for environmental sustainability, yet current methods often require manual labor or invasive bag-opening. This paper introduces ETHSeg, a specialized neural network designed for X-ray waste inspection. By leveraging a novel "easy-to-hard" segmentation strategy and the new WIXray dataset—the first high-quality dataset for instance-level waste segmentation—ETHSeg significantly outperforms standard computer vision models in cluttered, overlapping environments.
Introduction
Proper waste disposal is a massive environmental challenge. Currently, inspecting packaged waste requires manual labor or RGB camera systems, both of which necessitate opening bags and spreading out trash—a process that is costly, inefficient, and poses health risks to workers.
While X-ray imaging is a natural solution because it can penetrate bags and reveal overlapping items, it introduces unique computer vision hurdles:
- Heavy Occlusion: Items are piled on top of each other.
- The Penetration Effect: Unlike natural images where one object completely blocks another, X-ray images are semi-transparent. Edges of multiple objects overlap and blend, creating complex visual "clutter" that standard segmentation models struggle to resolve.
Methods
The authors propose the Easy-to-Hard Instance Segmentation Network (ETHSeg). It builds upon a state-of-the-art bilayer GCN framework (BCNet) but adds two critical innovations:
- Global Structure Guidance: Standard models look at small "crops" of an image to identify objects. ETHSeg instead uses a module that predicts a global contour heatmap for the entire image. This provides the network with a "big picture" view of how all object boundaries interact, helping it distinguish between overlapping items.
- Easy-to-Hard Disassembling: This is the core strategy. The network first identifies "easy" instances (objects with high-confidence detections that are likely less occluded). It then uses the masks of these easy objects to guide the search for "hard" instances (heavily occluded or low-confidence objects).
- Mask-Guided Attention (MGA): This specific module takes the "easy" masks and uses them to boost the attention of the network when it tries to segment the "hard" overlapping objects, effectively using known information to solve for the unknown.
The WIXray Dataset
The paper introduces WIXray (Waste Inspection X-ray Dataset), the first of its kind for this task. It consists of 5,038 X-ray images containing 30,881 waste items across 12 categories, including PlasticBottle, Can, Carton, Battery, and FoodWaste.
Crucially, the dataset uses amodal segmentation labels. This means that even if an object is partially hidden, the ground-truth mask covers its entire estimated shape, not just the visible pixels. The dataset averages 6.13 labeled instances per image, making it significantly more crowded than existing X-ray security datasets.
Key Results and Insights
ETHSeg was tested against several heavyweights, including Mask R-CNN, Cascade Mask R-CNN, and BCNet.
- Superior Accuracy: ETHSeg achieved a 46.85 Average Precision (AP) for segmentation, outperforming the previous best model (BCNet) by 1.74 points and standard Mask R-CNN by nearly 4 points.
- Robustness to Overlap: The "Easy-to-Hard" module specifically provided a significant boost in AP for highly occluded objects, proving that the disassembling strategy works as intended.
- Amodal Nature of X-rays: In X-rays, occluded parts are often still visible but faint. Treating this as an "amodal" problem (predicting the whole shape) is the most effective way to handle the "penetration effect."
- The "Human" Approach to Clutter: ETHSeg’s strategy mimics human intuition: identify obvious landmarks first to help decipher obscured items.
Conclusion
Despite the progress, challenges remain regarding low-density materials (like thin plastic) and small objects buried under denser items. Future work may involve incorporating multi-view X-ray angles or specialized sensors to better capture these low-contrast materials. ETHSeg and the WIXray dataset represent a significant step toward automated, non-invasive waste management.
Summary updated