Automated Rip Current Detection with Region based Convolutional Neural Networks

Akila de Silva, Issei Mori, Gregory Dusek, James Davis, Alex PangCoastal 2021

Abstract

Rip currents—powerful, narrow channels of water flowing seaward—are the leading cause of beach-related rescues and fatalities globally. This paper introduces a deep learning framework that identifies these dangerous currents in coastal imagery with higher accuracy than human experts. By combining a Faster R-CNN object detector with a novel temporal aggregation stage, the researchers achieved a 98.4% detection accuracy, providing a scalable path toward real-time public safety alerts on beaches.

Introduction

Despite their danger, rip currents are notoriously difficult for the average beachgoer to identify. Current detection methods are often insufficient: manual observation by lifeguards is limited to patrolled areas, and traditional "time-averaging" techniques often lose critical information or lead to misinterpretation. Furthermore, rip currents are "ephemeral objects"—they lack the rigid boundaries of cars or pedestrians—making them a unique challenge for standard computer vision algorithms. This research aims to bridge this gap by creating an automated, high-accuracy system capable of detecting these amorphous hazards in both still images and video.

Methodology

The authors employ a two-stage approach to tackle the visual complexity of moving water:

  1. Static Detection (Faster R-CNN): The Faster R-CNN architecture is used to identify potential rip currents in individual frames. The model proposes regions of interest and classifies them as either "rip current" or "background."
  2. Temporal Aggregation (The "Accumulation Buffer"): Because rip currents shift and pulse, detections in single video frames can be inconsistent. The authors introduced a custom temporal aggregation stage using a sliding window of $N=60$ frames and an accumulation buffer. If a region is consistently flagged across frames, its value in the buffer increases. A final detection is rendered only if the buffer value exceeds a threshold ($T=50$).

This aggregation acts as a "smoothing" filter, ensuring the system tracks the persistent, underlying structure of the rip current rather than triggering on transient waves.

Data Acquisition

Since no public database for rip currents existed, the authors constructed a comprehensive dataset:

  • Training Set: 2,440 high-resolution aerial images from Google Earth, including 1,740 expert-labeled rip currents and 700 negative samples.
  • Test Set: 23 video clips (18,042 frames) taken from a shore-based perspective to test robustness across different viewpoints.
  • Expert Validation: Ground truth annotations were verified by rip current experts at the National Oceanic and Atmospheric Administration (NOAA).
Examples of coastal imagery used in the study, showcasing diverse viewpoints and wave conditions.

Results and Analysis

The proposed Faster R-CNN + Frame Aggregation (FA) model significantly outperformed all benchmarks, reaching an average accuracy of 98.4%. In contrast, human participants correctly identified rip currents only 76% of the time, suggesting the AI can discern subtle textural patterns in breaking waves that the human eye misses.

Automated detection of a rip current using a bounding box on an aerial image.

Key findings include:

  • Temporal Consistency: Treating rip currents as transient phenomena and leveraging temporal consistency is more effective than traditional time-averaging methods.
  • Performance Gains: The FA stage improved accuracy from 88.4% (static Faster R-CNN) to 98.4% and drastically reduced bounding box "jitter."
  • Comparison to Baselines: Traditional machine learning approaches, such as Haar-cascades (21.0%) and optical flow (30.7%), were significantly less effective.

Discussion and Future Work

While the results are promising, the authors identify several areas for future development. The current dataset primarily focuses on rip currents characterized by gaps in breaking waves; future iterations should include more diverse signatures, such as sediment plumes. Additionally, expanding the dataset to include varied weather and lighting conditions is essential for global deployment. Future work will focus on porting the model to mobile devices and coastal camera networks to provide real-time hazard maps for public safety.

Summary updated

BibTeX
@misc{silva2021automated,
  author = {Akila de Silva and Issei Mori and Gregory Dusek and James Davis and Alex Pang},
  title = {{Automated Rip Current Detection with Region based Convolutional Neural Networks}},
  year = {2021},
  eprint = {2102.02902},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.02902},
}
Figure