Real-Time Beach Litter Detection and Counting: A Comparative Analysis of RT-DETR Model Variants

Miftahul Huda*, Arsyiah Azahra, Putri Maulida Chairani, Dimas Rizky Ramadhani, Nabila Azhari, Ade Lailani · 2025

Read Real-Time Beach Litter Detection and Counting: A Comparative Analysis of RT-DETR Model Variants by Miftahul Huda*, Arsyiah Azahra, Putri Maulida Chairani, Dimas Rizky Ramadhani, Nabila Azhari, Ade Lailani (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-13101.txt.

Introduction

Miftahul Huda and co-authors present a 2025 test of vision models that spot and count beach litter in real time. Coastal trash is a world problem, and hand counts can not scale. The team trained two sizes of a current detector model on a public set of shore debris photos. The larger model edged the smaller on accuracy scores by a hair.

The smaller model, though, read each frame in about 20 milliseconds against 35 for the larger. That speed gap matters more in the field than the tiny score gap. The authors back the smaller model for live use on drones or handheld gear. Careful size choice, the study shows, beats raw size for green monitoring tools.

Catalog record

CREATORMiftahul Huda*, Arsyiah Azahra, Putri Maulida Chairani, Dimas Rizky Ramadhani, Nabila Azhari, Ade Lailani
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE17 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2508-13101

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Real-Time Beach Litter Detection and Counting: A Comparative Analysis of RT-DETR Model Variants Miftahul Huda*, Arsyiah Azahra, Putri Maulida Chairani, Dimas Rizky Ramadhani, Nabila Azhari, Ade Lailani Abstract Coastal pollution is a pressing global environmental issue, necessitating scalable and automated solutions for monitoring and management. This study investigates the efficacy of the Real-Time Detection Transformer (RT-DETR), a state-of-the-art, end-to-end object detection model, for the automated detection and counting of beach litter. A rigorous comparative analysis is conducted between two model variants, RT-DETR-Large (RT-DETR-L) and RT-DETR-Extra-Large (RT-DETR-X), trained on a publicly available dataset of coastal debris. The evaluation reveals that the RT-DETR-X model achieves marginally superior accuracy, with a mean Average Precision at 50% IoU (mAP@50) of 0.816 and a mAP@50-95 of 0.612, compared to the RT-DETR-L model’s 0.810 and 0.606, respectively. However, this minor performance gain is realized at a significant computational cost; the RT-DETR-L model demonstrates a substantially faster inference time of 20.1 ms versus 34.5 ms for the RT-DETR-X. The findings suggest that the RT-DETR-L model offers a more practical and efficient solution for real-time, in-field deployment due to its superior balance of processing speed and detection accuracy. This research provides valuable insights into the application of advanced Transformer-based detectors for environmental conservation, highlighting the critical trade-offs between model complexity and operational viability. Keywords: RT-DETR, Real-Time Object Detection, Beach Litter, Environmental Monitoring, Deep Learning 1 Introduction The accumulation of waste along coastlines has emerged as one of the most urgent environmental crises worldwide. This debris, particularly plastic, not only degrades the aesthetic quality of natural landscapes but also inflicts severe damage upon marine ecosystems. Plastic waste, which constitutes approximately 60% of all marine debris, persists in the environment for hundreds of years and is often ingested by marine fauna, leading to detrimental health effects that cascade through the food web and can ultimately impact human health [ 1 , 2 ] . The scale of this problem, with a significant portion of waste originating from coastal human activities, necessitates effective and scalable methods for monitoring and removal. Traditional methods for managing beach litter rely on manual surveys and clean-up efforts, which are inherently labor-intensive, time-consuming, and costly [ 3 , 4 ] . These limitations hinder the ability to conduct frequent, large-scale assessments required for effective environmental management. In response, the fields of computer vision and artificial intelligence (AI) have presented powerful alternatives for automating the surveillance and data collection process. Automated systems can analyze vast amounts of visual data from sources like drones or fixed cameras, enabling rapid, accurate, and consistent identification and quantification of litter, thereby overcoming the logistical challenges of manual approaches. The technological backbone of these automated systems has evolved significantly. Early successes were driven by Convolutional Neural Network (CNN) based object detectors, such as the YOLO (You Only Look Once) and SSD (Single Shot MultiBox Detector) families, which prioritized high-speed processing. A paradigm shift occurred with the introduction of Transformer architectures to computer vision, culminating in models like the Detection Transformer (DETR) [ 5 ] . DETR introduced an elegant end-to-end approach that eliminated the need for many hand-designed components like non-maximum suppression. However, the high computational complexity of its Transformer encoder made the original DETR model ill-suited for real-time applications where low latency is critical [ 6 ] . This paper addresses the need for both high accuracy and real-time performance in environmental monitoring by investigating the Real-Time Detection Transformer (RT-DETR) [ 7 ] . RT-DETR is a state-of-the-art architecture designed to overcome the computational bottlenecks of its predecessors while maintaining a robust, end-to-end detection pipeline. This study conducts a rigorous comparison of two RT-DETR model variants—Large (RT-DETR-L) and Extra-Large (RT-DETR-X) applied specifically to the domain of beach debris detection. By systematically evaluating the trade-offs between model complexity, detection accuracy, and inference speed, this study aims to identify the most viable architecture for practical, in-field deployment in environmental conservation efforts. 2 Methodology 2.1 Dataset The dataset utilized in this study is the ”Beach Waste Dataset” provided by Monash and publicly available on Roboflow under a Creative Commons Attribution 4.0 International (CC BY 4.0) license [ 8 , 9 ] . The dataset is composed of images depicting various forms of litter commonly found on coastlines. It is partitioned into a training set of 2,675 images and a validation set of 841 images. The annotations cover seven distinct object categories: ”Bottle,” ”Clothes,” ”Metal,” ”Plastic,” ”Rope,” ”Styrofoam,” and ”Wood”. Each object instance is annotated with a bounding box defined by its normalized center coordinates ( x,y ), width, and height, along with its corresponding class label. A critical limitation of this dataset is that the validation set does not contain any instances of the ”Wood” and ”Clothes” categories. Consequently, while the models were trained on all seven classes, their performance on these two specific classes could not be quantitatively evaluated using the provided validation split. The reported performance metrics are therefore calculated based only on the five classes present in the validation data. 2.2 RT-DETR Architecture RT-DETR is an end-to-end object detector that features a hybrid design, integrating a CNN backbone for efficient multi-scale feature extraction with a Transformer-based encoder-decoder for object detection and classification [ 7 , 10 ] . The detailed architecture is depicted in Figure 1 . • Efficient Hybrid Encoder: The core of RT-DETR’s real-time capability lies in its Efficient Hybrid Encoder. This component is specifically designed to process the multi-scale feature maps generated by the CNN backbone in a computationally efficient manner. It employs mechanisms like Attention-based Intra-scale Feature Interaction (AIFI) to model relationships within features at the same scale, avoiding the high cost of global attention across all scales. • Uncertainty-minimal Query Selection: To improve accuracy, RT-DETR incorporates an Uncertainty-minimal Query Selection mechanism. Instead of using fixed or learned object queries, this module intelligently selects the most informative features from the encoder’s output to serve as initial object queries for the decoder. The selection is optimized during training by minimizing the uncertainty between localization and classification predictions, ensuring that the decoder focuses on high-quality, relevant proposals. • Backbone Variants: This study compares two RT-DETR variants: Large (L) and Extra-Large (X). The primary architectural distinction between them lies in the depth and complexity of the CNN backbone, specifically in the number of HGBlocks used at different stages [ 10 , 11 ] . The RT-DETR-L model employs a sequence of one, three, and one HGBlocks, whereas the RT-DETR-X model uses a deeper configuration of two, five, and two HGBlocks, respectively. This increased depth in the XLarge model results in a greater number of parameters and higher computational requirements (FLOPs). Figure 1: RT-DETR Architecture. Features with three different scales generated by the backbone are processed through the Efficient Hybrid Encoder. Features from the last layer pass through a Transformer layer, which applies an Attention-based Intra-scale Feature Interaction (AIFI) mechanism for channel-wise attention. The three features are combined, and then Uncertainty-minimal Query Selection is applied to choose features from the encoder as object queries for the decoder. Finally, the decoder with its heads optimizes the object queries to produce object categories and bounding box coordinates. 2.3 Loss Function Formulation The RT-DETR model outputs a fixed set of N predictions, where N

Read the complete text