Inspiration

The idea for us came from the 2008 Wenchuan earthquake in China. During that catastrophe, roads collapsed, and phone lines went down. People outside couldn't reach them easily, and they couldn't call out either. The places that needed help the most were the hardest to hear from.

State Farm's prompt, "The Worst Day, at Scale," really resonated with us because of this. After a big disaster, an insurer gets thousands of claims and texts at once, and the natural thing is to work through whatever comes in first. But the people who can still send a message are usually the ones who came through okay. The ones in real trouble might not be able to reach anyone at all.

So we wanted to build something that pays attention to who hasn't spoken up yet, and treats that silence as a reason to go check.

What it does

Saviu is a command center for an insurance catastrophe team in the first few days after a hurricane or earthquake. It helps them figure out which policyholders to get to first, and which ones nobody has heard from yet.

After a big storm, claims and texts flood in all at once, and there are only so many adjusters. If you work through them in the order they arrive, you end up helping the neighborhoods that can still reach you. The places where towers and roads went down often go quiet, and those are usually the ones hit hardest. So we built Saviu around one rule: a quiet household is never assumed to be safe.

The map is split into hexagons. For each one, Saviu combines how strong the hazard was there, what people said when we texted them, and how many claims came in compared with how many we'd expect. Each hexagon gets a priority from P0 to P2, plus a separate flag that says whether anyone has actually confirmed it yet. A hard hit area with no replies stays at the top of the list until somebody gets eyes on it.

The manager's dashboard shows that map updating live as the disaster plays out. Off to the side there's a list of every household we haven't heard from, along with the next step for each one. That might be another text, a phone call, or sending an adjuster to the door. Anyone who reports a life safety problem gets referred to 911 or a local agency on a timer, and the dashboard flags it when a referral runs late. You can click into any area to see who's on the way there. You can also open a single text message and follow it from what the person wrote, through what Claude pulled out of it, to how the rules ranked it.

Adjusters use a phone app. It opens on a full screen map with a tasks sheet you can swipe up and down. At the top is a "Next best" suggestion based on where they're standing and how urgent the nearby homes are. When they accept a task, the policyholder gets a message right away saying who's coming, and in our demo that message goes out as a real iMessage to a phone. The adjuster files a quick report from the house. If they lose signal, the report waits on the phone and goes through once they're back online.

Policyholders get a reply page with no login. They can tap a button or just type what's going on in their own words, in whatever language they're comfortable with.

Our two demo worlds use real geography. One is a hypothetical Category 4 hurricane over Corpus Christi with 20,000 households. The other is the USGS HayWired scenario, a magnitude 7 quake on the Hayward Fault, covering 30,000 households in Alameda County. There's also a button that rolls a brand new random hurricane or earthquake, so you can watch the model handle a storm it has never seen.

How we built it

Almost the whole app lives inside SpacetimeDB. The tables, permissions, scoring engine, household tracking and replay clock all run in the database as reducers, which works out to 31 tables and 43 reducers. A scheduled tick moves the disaster forward every second. Each time something comes in, like a text reply, a claim or a field report, the database rescores only the hexagons it touched in that same transaction, and every open screen gets the update through its subscription. We didn't write any sync code for that. Each world is its own database on Maincloud.

The scoring engine is TypeScript. It runs two logistic models, one for severe damage and one for whether a household needs help, on 45 features. Those cover the hazard, the house, the household, their text replies and their claims. We trained the models on simulated past storms, holding out one storm at a time, and each hexagon gets a 90% range around its estimate. When an adjuster files a report, the estimate for that area changes right away. Trust in each data source shifts more slowly as reports add up. We left race, ethnicity and income out of the features on purpose.

Every household is synthetic, but the worlds come from real public data. We used Census and ACS demographics, LEHD commuting data (so we know who's likely at work during the day), the CDC's Social Vulnerability Index, NCES schools, OpenStreetMap for hospitals, fire stations, shelters and cell towers, AWS terrain tiles, USGS ShakeMaps, and California liquefaction zones. No real customer data is used anywhere.

Claude Sonnet 5.5 has one job. It reads text replies and turns them into structured data: is the person safe, how bad is the damage, what do they need, and is anyone missing. It only ever sees the message itself, never the person's age, address or coverage, and it doesn't rank anything. A keyword check runs afterward to catch any emergency it might have missed. Reducers can't call outside APIs, so Claude runs in a small Node worker that listens to the database. Two more small workers run on a Mac during the demo. One generates the random disasters, and the other sends the iMessage notices through Messages.

The frontend is React 19 with Vite and TypeScript. We drew the map with Leaflet and h3, used d3 for the hazard contours, and put it on HERE and Esri basemaps. It's hosted on Vercel. A single world has up to 30,000 households, so each screen subscribes only to the rows it actually shows.

Challenges we ran into

The biggest one was telling silence apart from danger. Someone who doesn't answer might be trapped, or they might just be at work across town. Our Bay Area quake hits during a weekday, when most people aren't home, so their replies can't tell us anything about the house. We used commuting data to estimate where people are during the day, and we track "not home" separately from "needs help."

Being honest about uncertainty took a few tries. Our first set of ranges looked great on the old storms, then turned out overconfident on the harder live quake, catching the truth only 67% of the time at the start. We switched to a more conservative range and added a live check on the dashboard that shows how often the ranges actually contain the simulated truth.

Speed was a problem too. Rescoring 30,000 households every second was way too slow, so now we only rescore what changed and do a full pass less often. A field report makes the round trip in about 5 ms on a local server.

The backend schema kept changing under the frontend all weekend, and every time the generated bindings fell behind, the map went blank. We ended up writing a script that pulls the bindings straight from the live schema.

Making the phone app usable with one hand in the field took more work than we expected. We had to keep the offline queue from sending a report twice, stop the iOS keyboard from covering the chat, and make the tasks sheet follow your finger and snap into place.

Accomplishments that we're proud of

In simulation, Saviu's ranked queue helped the same staff reach 27,598 of the 30,000 Bay Area households within 72 hours. With nobody following up, only 8,981 were reached. Late 911 referrals went from 65 to zero.

The Next best list really changed what adjusters got done. In an eight hour shift with five adjusters, they finished 147 of the most urgent tasks in the Bay Area. Working the queue in order got through 66, and always driving to the nearest house got through 37.

We tested the reply parser on 800 messages in English, Spanish, Chinese, Vietnamese, Tagalog and Korean. It caught 222 of the 224 emergencies, and it called someone safe when they weren't only twice out of 386. It returned valid JSON every single time. Since then we've fixed both misses and also stopped insurance questions and unsure replies from pushing an area to the top of the list.

We're also proud that we wrote down exactly what's real and what's simulated, along with what we can't claim. Every number above comes from simulated events with made up staffing rates, so it shows the system works the way we designed it, not that it would hold up in a real hurricane.

What we learned

The model turned out to be the easy part. The hard part was deciding what to do when you don't know. Splitting "how urgent is this" from "how sure are we" made the map much easier to act on.

Claude was most useful when we gave it one narrow job and let plain rules make the decisions. That also made it a lot easier to test.

Putting the logic inside the database saved us a ton of work. Every screen sees the same state, and we never had to think about keeping them in sync.

Testing against our own simulator only proves the pieces fit together. We learned to be careful about how we talk about the results because of that.

What's next for Saviu

We'd start by sending the outreach texts in each household's own language, and by connecting to a real SMS provider with delivery receipts and proper consent. We'd also want to hook into real policy and claims systems.

We want to learn how many claims to expect from OpenFEMA flood insurance data, and pull tower outages from FCC outage reports, so the model leans less on our simulator. We'd love to have real emergency dispatchers label the parser's test messages, and to try Saviu with actual catastrophe managers and adjusters.

On the technical side, the shared demo passcodes would become a real sign in, the Claude worker would move into a SpacetimeDB procedure so nothing runs outside the database, and adjusters would get offline maps and photo uploads for the field.

Built With

Share this project:

Updates

Submission history