Inspiration
A bridge near us floods again and again, and we have been stranded by it. Each time, we knew the water was there but had no idea what the roads around it looked like, or which neighborhoods were cut off. River gauges and flood maps show where water is, not how deep it is on the street you need. Many cities already have traffic cameras on those streets, but nobody reads them for water.
What it does
flood watch is decision support for emergency dispatchers and city staff. It turns street images into water-depth readings that a person can check, then uses them to plan routes.
- Reads photos with AI. NVIDIA Nemotron 3.5 Super VL looks at a street photo and decides whether floodwater is visible. It then reads where the waterline meets an object of known height (tire top, wheel hub, curb, knee) to give a depth range. When it has no reliable reference it says "depth unknown" rather than guessing.
- Replays a real flood. Our proof of concept replays Hurricane Harvey (2017) in Meyerland, Houston. We start from 10 high-water marks surveyed by USGS and fill the lidar ground model from them. Every street is then labeled likely flooded, possibly flooded or unknown: past the edge of our evidence we say unknown, never dry. The result is drawn on a 2D street map and on Google's photorealistic 3D city, with the water at its measured height.
- Proposes routes. The dispatcher gets 2–3 route options under a depth limit that a person at the agency sets for each vehicle type. Each option shows its distance, its deepest point and how much of it has no observations. Nemotron 3.5 Lightning writes a short comparison, and every number it quotes is checked against the router's output. The dispatcher picks; the system never calls a road safe.
- Keeps a person in charge. Every AI reading is marked as a proposal and waits for review.
How we built it
- Vision: a pretrained PyTorch / torchvision Faster R-CNN first finds cars, people and signs. Nemotron Super VL (on NVIDIA Build) then gets the photo, close-ups of those objects and a table of reference heights, each row with a cited source. We ask it three times and take the majority. A depth that relies on an object the detector didn't find goes to a person.
- Flood surface: Python with rasterio, NumPy and SciPy fills the lidar terrain from the USGS high-water marks. Roads come from OpenStreetMap through OSMnx.
- Prediction: a scikit-learn Gaussian process for each camera projects depth at most 60 minutes ahead, with a range that widens the further out it looks.
- Routing: NetworkX finds the route whose deepest point is shallowest. Each segment's planning depth is the top of its range at the time the vehicle would arrive:
$$d_{\text{plan}}(e) = \mu_e(t_{\text{arrive}}) + \sigma_e(t_{\text{arrive}})$$
Segments deeper than the agency's limit $L$ are dropped. We then raise a depth cap $c = 0, 5, 10, \dots$ cm until some route connects using only segments with $d_{\text{plan}}(e) \le c \le L$, and take the shortest such route.
- Front end: MapLibre GL for the street map, CesiumJS with Google Photorealistic 3D Tiles for the city, and plain HTML, CSS and JavaScript.
- Tests: 157 pytest tests, with fake model replies for the AI paths.
Challenges we ran into
- Heights didn't line up. Our lidar heights use one vertical reference (NAVD88) and the 3D city uses another (the WGS84 ellipsoid). Instead of assuming the difference, we measure it by sampling the 3D city at 21 road points, which gives about −28.9 m.
- The model changes its mind. The same photo read five times named the wheel hub three times (0.30–0.36 m), the curb once and gave no depth once. That is why we take a majority over three reads and send every reading to a person.
- Speed. Super VL reasons before it answers, so one photo takes 17–67 s.
- No camera permission. We could not get permission to reuse TranStar camera snapshots, so we have no flood-time camera footage. We catalogued 6 cameras near the replay area and used public-domain USGS field photos for the live AI demo.
- Validation data that didn't cover our area. The USGS mapped Harvey flood extent stops outside Meyerland, so we compared against the U.S. Army Corps of Engineers' modeled extent instead.
Accomplishments that we're proud of
- An end-to-end chain from photo to AI reading to a structured result to a person's decision, running on real model calls.
- Where our replay has evidence, it covers 91.6% of the Corps' modeled Harvey flood area. Across the whole neighborhood it covers 22.7%, because our evidence reaches only part of it. We report both numbers.
- A design that shows uncertainty: unknown areas look different from dry ones, every depth says where it came from, and the AI can say "I don't know."
What we learned
- Giving the model real reference heights works better than letting it guess object sizes.
- "No water seen" and "no data" are different, and the map has to show the difference.
- Building this took several fields at once: computer vision, hydrology, GIS, transportation networks, emergency management and design.
What's next for flood watch
- Get permission and connect live TranStar cameras, each with a reviewed dry-weather baseline image.
- Measure depth accuracy on 20 or more labeled photos, with and without the detector.
- Replay several past floods to find the crossings that flood again and again, and flag them for engineering study.
Built With
- cesium
- css
- google-photorealistic-3d-tiles
- html
- javascript
- maplibre
- networkx
- numpy
- nvidia-build
- nvidia-nemotron
- openstreetmap
- osmnx
- python
- pytorch
- rasterio
- scikit-learn
- scipy
- torchvision