TLDR: This research introduces a comprehensive method for monitoring floating debris in urban rivers using fixed cameras. It combines deep learning models (YOLO variants) for continuous detection and a geometric model to accurately estimate the real-world size of detected objects from 2D images. The study emphasizes rigorous data handling, including techniques to prevent data leakage and the use of negative images, to ensure reliable performance metrics. The pipeline demonstrates high precision in object detection and size estimation, paving the way for robust, low-cost, automated river pollution monitoring systems.
The health of our rivers is under constant threat from floating debris, particularly plastics, which harm wildlife, degrade water quality, and disrupt human activities like navigation and recreation. Traditional monitoring methods often fall short, being either too localized or unable to provide continuous data. This pressing environmental concern calls for innovative, automated solutions to track and quantify river pollution.
A recent study, titled “A geometric and deep learning reproducible pipeline for monitoring floating anthropogenic debris in urban rivers using in situ cameras,” proposes a groundbreaking approach to tackle this challenge. The research, conducted by Gauthier Grimmera, Romain Wengera, Clément Flintb,c, Germain Forestierd,e, Gilles Rixhona, and Valentin Chardona, introduces a novel framework that combines deep learning with geometric modeling to provide continuous and accurate monitoring of floating waste in rivers. You can read the full paper here: Research Paper.
A Smart Eye on the River: The Core Idea
At its heart, this study utilizes fixed, in-situ cameras positioned along riverbanks to capture continuous footage. This allows for round-the-clock observation, overcoming the limitations of intermittent or localized monitoring. The framework makes two significant contributions:
1. Continuous Quantification: It uses advanced deep learning techniques to constantly detect and count floating debris.
2. Optimal Model Identification: The study identifies the most effective deep learning models that balance detection accuracy with processing speed, even in challenging river environments.
Beyond just detection, the research also implements a clever geometric model to estimate the actual size of detected objects from a 2D image, taking into account the camera’s unique characteristics and position.
Building a Robust System: The Methodology
The researchers set up two pan-tilt-zoom (PTZ) cameras on the Steingiessen River in Strasbourg, France. To train their models, they manually introduced various types of debris (plastic bottles, bags, wood) into the river and captured images. These images were then meticulously labeled, with bounding boxes drawn around anthropogenic debris, natural debris, and non-debris materials like boats.
A crucial aspect of the methodology involved addressing a common issue in machine learning: data leakage. This occurs when similar data points appear in both the training and testing sets, leading to an overestimation of a model’s real-world performance. To prevent this, the team used sophisticated techniques like t-Distributed Stochastic Neighbor Embedding (t-SNE) for dimension reduction and DBSCAN clustering to group similar images. This ensured that images from the same scene or with the same debris were kept together, preventing them from being split across different datasets and providing a more realistic evaluation of the models.
The study also explored the impact of including “negative images” – images with no objects – during training. The hypothesis was that these images would help the models better distinguish between actual debris and complex background elements like water reflections or eddies, thereby reducing false detections.
Deep Learning in Action: Choosing the Right Model
The researchers tested several variants of the popular YOLO (You Only Look Once) deep learning algorithm, including YOLOv5, YOLOv8, and YOLOv11. These models are known for their efficiency in object detection. They were trained using a technique called transfer learning, where models pre-trained on large, general datasets are fine-tuned for a specific task, saving significant training time and resources. Data augmentation techniques, such as tilting, brightness variations, and mosaic augmentation, were also employed to increase the diversity and robustness of the training data.
The goal was to find models that not only accurately detected debris but also operated efficiently enough to be deployed on low-cost, embedded devices like Raspberry Pi. After extensive testing, YOLOv8-n (nano) and YOLOv11-m (medium) emerged as the most promising candidates, offering a good balance between performance and inference speed.
Measuring the Unmeasurable: Object Size Estimation
One of the most innovative parts of this research is the geometric model used to estimate the actual size of detected objects. Since cameras are mounted on riverbanks, they capture images with perspective distortion. The model uses the camera’s intrinsic parameters (like focal length and sensor size) and extrinsic parameters (like height and tilt angle) to convert the 2D pixel coordinates of a detected object’s bounding box into real-world 3D dimensions.
To further refine these estimates, a two-step regression-based correction pipeline was applied. The first correction adjusted for biases in the predicted bounding box shapes, while the second refined the estimated dimensions (width and length) by comparing them against manually measured ground truth data. This dual correction significantly improved the accuracy of the size estimations.
Also Read:
- AI-Driven Green Canopy Measurement for Urban Planning in Industrial Cities
- Deep Learning Unlocks New Methods for Tea Leaf Disease Detection
Key Findings and Future Outlook
The study yielded several important insights:
- The t-SNE and DBSCAN clustering proved highly effective in creating datasets free from temporal data leakage, leading to more reliable performance metrics for the deep learning models.
- While including negative images improved the performance of the simpler YOLOv8-n model, its impact on the more complex YOLOv11-m was mixed, suggesting that model architecture plays a role in how beneficial negative samples are.
- Training models on leak-free datasets provided a more realistic assessment of their performance, even if the raw metrics appeared lower than those from models trained with leakage. YOLOv11-m generally performed better than YOLOv8-n in these rigorous conditions.
- The geometric model, combined with the two-step correction pipeline, achieved remarkable precision in estimating object dimensions, with errors approaching the theoretical limits dictated by image resolution (around 1.3 cm).
The researchers even tested the YOLOv11-m model on images from a different river, the Bruche, with encouraging results, demonstrating the model’s potential for broader application.
This reproducible pipeline represents a significant step forward in environmental monitoring. It provides a robust, low-cost, and automated system for continuously tracking floating debris in rivers. Future work aims to extend this to mass estimation, incorporate material recognition, and develop models that can handle rotated objects more effectively. By providing accurate data on debris presence and size, this research paves the way for better strategies to combat plastic pollution in our vital aquatic environments.


