homehome Home chatchat Notifications


How CCTV Cameras and AI Can Prevent Floods in Cities

Researchers have developed an AI system using CCTV cameras to monitor culverts, potentially reducing urban flooding by detecting blockages in real-time.

Mihai Andrei
November 19, 2024 @ 1:02 am

share Share

Culverts are essential yet often overlooked structures in our cities. These tunnels or pipes allow water to flow under roads, railways, or other infrastructure, playing a crucial role in water management. The UK alone is estimated to have over a million culverts. However, when these culverts become blocked by debris or trash, they can cause flooding. Monitoring them is a significant challenge, but new research suggests that AI, trained on CCTV data, could revolutionize this process.

CCTV image using AI to detect debris blocking a culvert
The ‘AI on The River’ software is trained to accurately detect debris blocking culvert trash screens. Credit: Journal of Flood Risk Management (2024). DOI: 10.1111/jfr3.13038

Water management has been a core challenge for cities since ancient times. Effective sewage systems were among the key innovations that enabled urban expansion. However, in modern times, urban areas face an increasing risk of flooding, especially as climate change intensifies storms and rainfall. Many cities are experiencing more frequent floods, leading to costly damage.

While this new research may not completely solve urban flooding, it addresses a specific issue: detecting culvert blockages.

Culvert entrances typically feature screens (usually a set of bars) that are meant to stop debris from passing through. Ironically, however, these screens often become clogged themselves. And if they do get clogged, they become a significant flood risk. Municipalities deal with this issue in two ways. Either they have teams regularly clean up these entrances or they clean them up when they receive a flood warning.

Both of these approaches have downsides. Having teams regularly clean culverts is safe but wastes a lot of resources when there’s no blockage, while reactive cleaning could be too late or even dangerous for the cleaning crew.

Rory Smith and colleagues from the University of Bath believe there’s a better way of doing things.

AI, meet culverts

They developed a method that uses CCTV cameras to monitor trash screens continuously. Using CCTV cameras and image-based classification, this system can determine whether a culvert is blocked or unblocked, allowing for quicker, more efficient responses and reducing the risk of urban flooding.

The study focused on the Tongwynlais screen in Cardiff, where a CCTV camera takes regular images each morning, and additional images when water levels rise. Initially, they started with 755 images and after quality control, reduced the dataset to 577 images. Around 80% of these images showed blocked screens while 20% showed unblocked screens.

Image of a culvert prone to blockage.
Depiction of a culvert prone to blockage (not from the study). Image via Wiki Commons.

Researchers explored three approaches for the data because with far more blocked images than unblocked ones, the model could become biased, leading to incorrect predictions. The approaches were:

  1. Using the original, imbalanced dataset — This model trained on all the images as they were.
  2. Undersampling — The number of blocked images was reduced to match the number of unblocked images, creating a more balanced dataset.
  3. Data augmentation — The number of unblocked images was artificially increased by adding noise to the images, thus expanding the dataset without requiring more real-world examples.

Of the three approaches, data augmentation performed the best, boosting the model’s accuracy by 8% and achieving an overall accuracy of 88%. This improvement highlights the potential of data augmentation as a solution for dealing with imbalanced datasets, a common issue in machine learning.

This approach can be scaled

While the study focused on a single trash screen in Cardiff, the implications are much broader. In the future, similar systems could be installed across entire cities, creating a real-time network for flood monitoring. However, several challenges need to be addressed before this vision can become a reality.

Each culvert is different, and the conditions affecting trash screens can vary widely. One solution could be to develop a database of pre-trained models for different types of culverts, allowing new installations to benefit from transfer learning — a process that adapts an existing model to a new location.

In the future, systems like these could form the backbone of an early warning network for urban flooding, providing real-time data to
authorities and helping them respond before disaster strikes. With continued research and development, this technology could revolutionize how we manage urban water infrastructure in the face of a changing climate.

Journal Reference: Rory Cornelius Smith et al, CCTV image‐based classification of blocked trash screens, Journal of Flood Risk Management (2024). DOI: 10.1111/jfr3.13038

share Share

The Universe’s First “Little Red Dots” May Be a New Kind of Star With a Black Hole Inside

Mysterious red dots may be a peculiar cosmic hybrid between a star and a black hole.

Peacock Feathers Can Turn Into Biological Lasers and Scientists Are Amazed

Peacock tail feathers infused with dye emit laser light under pulsed illumination.

Helsinki went a full year without a traffic death. How did they do it?

Nordic capitals keep showing how we can eliminate traffic fatalities.

Scientists Find Hidden Clues in The Alexander Mosaic. Its 2 Million Tiny Stones Came From All Over the Ancient World

One of the most famous artworks of the ancient world reads almost like a map of the Roman Empire's power.

Ancient bling: Romans May Have Worn a 450-Million-Year-Old Sea Fossil as a Pendant

Before fossils were science, they were symbols of magic, mystery, and power.

This AI Therapy App Told a Suicidal User How to Die While Trying to Mimic Empathy

You really shouldn't use a chatbot for therapy.

This New Coating Repels Oil Like Teflon Without the Nasty PFAs

An ultra-thin coating mimics Teflon’s performance—minus most of its toxicity.

Why You Should Stop Using Scented Candles—For Good

They're seriously not good for you.

People in Thailand were chewing psychoactive nuts 4,000 years ago. It's in their teeth

The teeth Chico, they never lie.

To Fight Invasive Pythons in the Everglades Scientists Turned to Robot Rabbits

Scientists are unleashing robo-rabbits to trick and trap giant invasive snakes