HealthMamba: An Uncertainty-aware Spatiotemporal Graph State Space Model for Effective and Reliable Healthcare Facility Visit Prediction

The paper proposes HealthMamba, an uncertainty-aware spatiotemporal graph state space model that integrates a unified context encoder, a novel GraphMamba architecture, and comprehensive uncertainty quantification to significantly improve the accuracy and reliability of healthcare facility visit predictions across four large-scale real-world datasets.

Dahai Yu, Lin Jiang, Rongchao Xu, Guang Wang

Published 2026-03-05
📖 4 min read☕ Coffee break read

Imagine you are the mayor of a large state, and you need to know exactly how many people will visit the hospital, the urgent care clinic, or the nursing home tomorrow. If you guess wrong, you might run out of doctors (causing chaos) or have too many sitting idle (wasting money).

For a long time, computers tried to solve this by looking at time. They said, "Last Tuesday was busy, so next Tuesday will probably be busy too." But this is like trying to predict traffic by only looking at a clock, ignoring that a car accident on a specific road changes everything.

The paper introduces HealthMamba, a new "smart crystal ball" that doesn't just look at time; it looks at space, context, and uncertainty.

Here is how it works, broken down into simple concepts:

1. The Problem: The "Blindfolded" Forecasters

Previous methods had three big flaws:

  • They treated everyone the same: They didn't distinguish between a small dentist's office and a massive trauma hospital.
  • They ignored geography: They didn't realize that if a flu hits one town, the neighboring town might get sick too. They treated every county as an island.
  • They were overconfident: When a hurricane hit or a pandemic started, these models kept giving the same "normal" answers, acting like nothing was wrong. They couldn't say, "I'm not sure, but it might be crazy."

2. The Solution: HealthMamba

HealthMamba is like a super-smart traffic controller for healthcare. It has three main tools in its toolkit:

A. The "Context Chef" (Unified Spatiotemporal Context Encoder)

Imagine you are trying to guess how hungry a crowd will be. You wouldn't just look at the time of day; you'd also look at the weather, the age of the crowd, and if there's a festival nearby.

  • What it does: HealthMamba mixes all this "ingredients" together. It looks at static data (like how many old people live in a county) and dynamic data (like a sudden heatwave or a flu outbreak) and blends them into a single, rich picture before making a prediction.

B. The "Neighborhood Watch" (GraphMamba)

This is the heart of the system. Imagine a neighborhood where everyone talks to their neighbors. If one house has a party, the neighbors hear about it.

  • What it does: HealthMamba builds a digital map (a graph) connecting all the counties. It uses a special engine called Mamba (which is great at remembering long stories) to watch how diseases or visits spread from one county to another.
  • The Magic: It doesn't just use a fixed map. It learns on the fly! If a hurricane hits, the "roads" between counties change (people can't travel), and HealthMamba updates its map instantly to reflect that new reality.

C. The "Honesty Meter" (Uncertainty Quantification)

This is the most important part. Most AI models are like a confident but wrong weatherman who says, "It will be sunny," even when a storm is coming.

  • What it does: HealthMamba has three different ways to check its own confidence:
    1. Local Check: "Does this specific town usually have weird numbers?"
    2. Distribution Check: "Does the pattern of numbers look normal, or is it chaotic?"
    3. Memory Check: "If I run this simulation 100 times with slight changes, do I get the same answer?"
  • The Result: Instead of just saying "500 people will visit," it says, "We are 90% sure it will be between 450 and 550." If a hurricane hits, the range gets wider, honestly admitting, "We don't know exactly, but it could be huge."

3. The Real-World Test

The researchers tested HealthMamba on data from four huge US states (California, New York, Texas, Florida).

  • The Score: It was 6% more accurate than the best existing models.
  • The Safety Net: It was 3.5% better at giving honest "confidence ranges."
  • The Emergency Test: When they tested it on real disasters (like the COVID-19 lockdowns or Hurricane Hanna), the old models failed completely. HealthMamba, however, adapted. It saw the sudden drop in visits during lockdowns and the sudden spike during the hurricane, and it adjusted its predictions accordingly.

The Bottom Line

Think of HealthMamba as the difference between a weatherman who only looks at yesterday's calendar and a meteorologist who looks at the radar, the wind, the humidity, and admits when a storm is coming.

By understanding that healthcare visits depend on where you are, who you are, and what is happening in the world, HealthMamba helps hospitals and governments prepare for the future without being caught off guard. It doesn't just predict the future; it tells you how sure it is about that prediction.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →