IE11 Not Supported

For optimal browsing, we recommend Chrome, Firefox or Safari browsers.

UC Santa Cruz Researchers Build AI to Prevent Drownings

As the winter swell approaches, UC Santa Cruz researchers are developing potentially life-saving artificial intelligence technology.

In partnership with the National Oceanic and Atmospheric Administration (NOAA) and funded by UC Santa Cruz’s Center for Coastal Climate Resilience, Alex Pang and his team are working on algorithms — sets of programmed instructions — that can monitor shoreline change, identify rip currents, and alert lifeguards of potential hazards. They hope to improve beach safety and ultimately save lives.

The initial seed of inspiration took root while Pang was windsurfing with his friends.

“They would point out a rip, and I would look in the water and say, ‘That’s just water,’” said Pang. Since rip currents are difficult for the untrained eye to detect, Pang thought, computer technology might be useful. He officially started the rip current detection project in 2015, one year before UC Santa Cruz lost two students to drowning.

“That put more pressure on realizing this capability,” Pang said.

According to NOAA, a rip current is a “powerful, narrow channel of fast-moving water.” It pulls unsuspecting swimmers into deep water, where they risk fatigue and drowning after trying to fight the current. Santa Cruz Marine Safety reports 10 drowning deaths in the past decade, including two in 2023. The National Weather Service ranks rip currents as the third most dangerous of all weather hazards, just behind heat and flooding.

Rip currents can be difficult to detect from shore and sometimes appear unexpectedly. Pang’s team explored many different methods of rip detection and ultimately decided to use a machine-learning-based system similar to the obstacle detection systems used in self-driving cars. Machine learning is a type of artificial intelligence that describes the ability of a machine to make decisions based on information it has been given. Scientists showed their rip current detector a collection of images, some with rip currents and some without, to train the system to recognize the common attributes of a rip current. After training, the detector can find rip currents in live video streams.

Pang’s team partnered with NOAA to develop and refine its detection methods. With the help of the Santa Cruz Harbor Office, O’Neill Sea Odyssey and the U.S. Coast Guard, researchers installed a streaming webcam at Walton Lighthouse with views of Seabright and Twin Lakes beaches. Pang’s team is now using the machine learning model to process and detect rip currents on these beaches via the live video feed.

Pang’s rip current detection model will create a rip current observation data set that can validate and improve NOAA’s existing forecast model developed by Greg Dusek, physical oceanographer at NOAA. The forecast model takes information on the wave height, wave direction, tide and the presence of sand bars, and calculates the risk of a rip current developing. “It predicts the likelihood of a hazardous rip current from zero to 100 percent, similar to other weather forecasts,” said Dusek.

Once Pang’s detector model is reliable and there aren’t too many false flags, the research team plans to develop an alert system that lifeguards can customize based on their needs. “Ideally, the system will send alerts to lifeguards only if there are people detected in the rip. If necessary, it can distinguish between people and surfers,” said Pang.

The ultimate goal is to have a national network of cameras operating in real time with rip current detection. The detection accuracy at each location will improve over time as data is collected, and different environmental and weather conditions are factored in.

Another potential development could be a phone app that would do the same job. “You could bring your smartphone to a beach without Internet, and take videos of the water. The app would detect a potential rip current and then contribute to the data pool,” Pang said.

This technology does not eliminate the need for boots on the ground. The Santa Cruz Fire Department is responsible for patrolling the beach by the Boardwalk. “This would still require a dispatch of responding rescuers to help someone that is caught in a life-threatening situation,” said Brian Thomas, marine safety captain for the Santa Cruz Fire Department. “This system may help get resources started if a bystander did not see the person in distress and call 911. For that specific scenario, it could have a benefit.”

(c)2023 the Santa Cruz Sentinel. Distributed by Tribune Content Agency, LLC.