[Paper Review] Attention Neural Network for Trash Detection on Water Channels
This paper proposes a novel attention neural network for detecting small, deformed, and partially submerged trash floating on urban water channels, introducing the first publicly available dataset with instance-level annotations. The method improves small-object detection by integrating a log-based attention mechanism into object detectors, achieving state-of-the-art performance, particularly on small objects, with a 51.8% average precision on the hard test set using RetinaNet+Attn.
Rivers and canals flowing through cities are often used illegally for dumping the trash. This contaminates freshwater channels as well as causes blockage in sewerage resulting in urban flooding. When this contaminated water reaches agricultural fields, it results in degradation of soil and poses critical environmental as well as economic threats. The dumped trash is often found floating on the water surface. The trash could be disfigured, partially submerged, decomposed into smaller pieces, clumped together with other objects which obscure its shape and creates a challenging detection problem. This paper proposes a method for the detection of visible trash floating on the water surface of the canals in urban areas. We also provide a large dataset, first of its kind, trash in water channels that contains object-level annotations. A novel attention layer is proposed that improves the detection of smaller objects. Towards the end of this paper, we provide a detailed comparison of our method with state-of-the-art object detectors and show that our method significantly improves the detection of smaller objects. The dataset will be made publicly available.
Motivation & Objective
- To address the critical environmental and urban flooding risks posed by illegal trash dumping in urban water channels.
- To develop a vision-based system for detecting visible floating trash in complex, real-world urban canal environments.
- To overcome challenges such as object deformation, partial submersion, reflections, and small object size in water-based trash detection.
- To introduce the first publicly available, large-scale, instance-annotated dataset for trash in water channels.
- To enhance small-object detection performance using a novel attention mechanism in deep object detectors.
Proposed method
- Collected 12,500 annotated images from five urban canal sites under diverse lighting, weather, and time-of-day conditions to form a new benchmark dataset.
- Proposed a log-based attention layer that enhances feature representation by focusing on discriminative regions, especially for small objects.
- Integrated the attention layer into backbone networks (e.g., Darknet-53 in YOLO-v3) to refine features before detection heads.
- Trained models using transfer learning with ImageNet/Pascal VOC pre-trained weights and evaluated on a fixed 80-20 train-validation split.
- Used standard metrics—average precision (AP) and IoU—on two test sets: Easy (500 images) and Hard (500 images) with varying visual complexity.
- Applied data augmentation and standard training protocols to ensure fair comparison with state-of-the-art detectors like SSD, YOLO-v3, RetinaNet, and PeleeNet.
Experimental results
Research questions
- RQ1Can a novel attention mechanism significantly improve the detection of small, deformed, and partially submerged trash in urban water channels?
- RQ2How does the proposed method compare to state-of-the-art object detectors in terms of average precision and IoU on challenging water surface trash detection?
- RQ3To what extent does the attention mechanism enhance detection performance on small objects compared to large and medium objects?
- RQ4Does the proposed dataset enable better generalization and benchmarking for future research in urban water pollution detection?
- RQ5Can the attention mechanism reduce false positives caused by reflections, shadows, and bubbles in water channel imagery?
Key findings
- The proposed attention mechanism significantly improves detection of small objects, increasing small-object AP from 5.0% (RetinaNet) to 6.3% on the Easy Test Set.
- RetinaNet with the attention layer achieved the highest overall AP of 51.8% on the Hard Test Set, outperforming all other models.
- YOLO-v3 with the attention layer achieved 48.1% AP on the Easy Test Set, surpassing vanilla YOLO-v3 (43.8%) and SSD (24.1%).
- On the Hard Test Set, the attention-enhanced models maintained strong performance, with RetinaNet+Attn achieving 43.9% AP, a 2.9% improvement over vanilla RetinaNet.
- The attention mechanism improved detection of small objects by up to 1.8 percentage points over non-attention baselines, especially in cluttered scenes with reflections and debris.
- YOLO-v3-Tiny performed poorly across all metrics (11.6% AP on Hard Set), highlighting the limitations of lightweight models on small-object detection in complex environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.