# RipViz: Finding Rip Currents by Learning Pathline Behavior

**Authors:** Akila de Silva, Mona Zhao, Donald Stewart, Fahim Hasan Khan, Gregory, Dusek, James Davis, and Alex Pang

arXiv: 2302.12983 · 2023-02-28

## TL;DR

RipViz is a novel method combining flow analysis and machine learning to automatically detect and visualize dangerous rip currents in stationary videos, aiding public safety and awareness.

## Contribution

It introduces a hybrid approach using optical flow, pathline analysis, and an LSTM autoencoder to identify rip currents as flow anomalies without user input.

## Key findings

- Successfully detects rip currents in stationary videos.
- Provides clear visualization of rip locations.
- Automated and easy to interpret for lay audiences.

## Abstract

We present a hybrid machine learning and flow analysis feature detection method, RipViz, to extract rip currents from stationary videos. Rip currents are dangerous strong currents that can drag beachgoers out to sea. Most people are either unaware of them or do not know what they look like. In some instances, even trained personnel such as lifeguards have difficulty identifying them. RipViz produces a simple, easy to understand visualization of rip location overlaid on the source video. With RipViz, we first obtain an unsteady 2D vector field from the stationary video using optical flow. Movement at each pixel is analyzed over time. At each seed point, sequences of short pathlines, rather a single long pathline, are traced across the frames of the video to better capture the quasi-periodic flow behavior of wave activity. Because of the motion on the beach, the surf zone, and the surrounding areas, these pathlines may still appear very cluttered and incomprehensible. Furthermore, lay audiences are not familiar with pathlines and may not know how to interpret them. To address this, we treat rip currents as a flow anomaly in an otherwise normal flow. To learn about the normal flow behavior, we train an LSTM autoencoder with pathline sequences from normal ocean, foreground, and background movements. During test time, we use the trained LSTM autoencoder to detect anomalous pathlines (i.e., those in the rip zone). The origination points of such anomalous pathlines, over the course of the video, are then presented as points within the rip zone. RipViz is fully automated and does not require user input. Feedback from domain expert suggests that RipViz has the potential for wider use.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/2302.12983/full.md

## Figures

16 figures with captions in the complete paper: https://tomesphere.com/paper/2302.12983/full.md

## References

45 references — full list in the complete paper: https://tomesphere.com/paper/2302.12983/full.md

---
Source: https://tomesphere.com/paper/2302.12983