Rip Current Segmentation: A Novel Benchmark and YOLOv8 Baseline Results

Andrei Dumitriu, Florin Tatui, Florin Miron, Radu Tudor Ionescu, Radu Timofte
4/3/2025
cs.CVcs.AI

Official code: Irikos/rip_currents (16 stars, last commit 2025-09-24).

Abstract

Rip currents are the leading cause of fatal accidents and injuries on many beaches worldwide, emphasizing the importance of automatically detecting these hazardous surface water currents. In this paper, we address a novel task: rip current instance segmentation. We introduce a comprehensive dataset containing $2,466$ images with newly created polygonal annotations for instance segmentation, used for training and validation. Additionally, we present a novel dataset comprising $17$ drone videos (comprising about $24K$ frames) captured at $30 FPS$, annotated with both polygons for instance segmentation and bounding boxes for object detection, employed for testing purposes. We train various versions of YOLOv8 for instance segmentation on static images and assess their performance on the test dataset (videos). The best results were achieved by the YOLOv8-nano model (runnable on a portable device), with an mAP50 of $88.94%$ on the validation dataset and $81.21%$ macro average on the test dataset. The results provide a baseline for future research in rip current segmentation. Our work contributes to the existing literature by introducing a detailed, annotated dataset, and training a deep learning model for instance segmentation of rip currents. The code, training details and the annotated dataset are made publicly available at https://github.com/Irikos/rip_currents.

View on arXivView PDF

Code Implementations(1)

Repository containing work on rip current detection and segmentation.

163Python, Jupyter NotebookApr 12, 20231 years ago

Similar Papers

Cite this paper

@article{dumitriu2025current,
  title  = {Rip Current Segmentation: A Novel Benchmark and YOLOv8 Baseline Results},
  author = {Andrei Dumitriu and Florin Tatui and Florin Miron and Radu Tudor Ionescu and Radu Timofte},
  year   = {2025},
  eprint = {2504.02558},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.02558v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2504.02558.svg)](https://codeofpaper.com/paper/2504.02558)

Discussion