DEV Community

Cover image for šŸŒ¤ļø Building an Explainable Weather–Health Risk Intelligence System Using OpenWeather, FastAPI, and Local LLMs
Daniel Dake
Daniel Dake

Posted on

šŸŒ¤ļø Building an Explainable Weather–Health Risk Intelligence System Using OpenWeather, FastAPI, and Local LLMs

šŸš€ I’m excited to share a project I’ve been developing at the intersection of climate resilience, public health, and explainable AI.

I recently built and released an Explainable Weather–Health Risk Intelligence System that uses OpenWeather, FastAPI, and a local LLM (Ollama) to translate real-time weather and air-quality data into clear, personalized health-risk insights.

As climate-driven heat waves, pollution spikes, and humidity extremes increase across the U.S., many communities—especially vulnerable groups—lack accessible tools to interpret how daily environmental conditions affect their health. Traditional weather apps rarely communicate risk in a medically relevant or explainable way.

This project explores how we can bridge that gap using lightweight, local-first AI and transparent risk-scoring models.

šŸŒ What the System Contributes
Using real-time data from OpenWeather, the system converts:

  • Temperature
  • Humidity
  • AQI
  • PM2.5
  • PM10
  • Oā‚ƒ

Into four core risk metrics:

  • Asthma / respiratory risk
  • Heat-stress risk
  • Dehydration risk
  • Overall daily health-risk index

It also generates a 24-hour forecast-based risk outlook, helping users understand how risk changes throughout the day.

🧠 Local LLM Explainability
Using a local LLM running through Ollama, the system produces:

  • Clear explanations
  • Personalized safety recommendations
  • Profile-specific notes (age + underlying conditions)

This keeps data private and enables fully offline deployments — ideal for public-health environments or low-resource settings.

🧩 Technical Foundations
FastAPI (Python) backend:

  • React + TypeScript + Tailwind frontend
  • Ollama for local LLM inference (no cloud model required)
  • OpenWeather APIs for weather + air-quality retrieval

The architecture is designed for scalability, local privacy, and smooth integration into health-analytics workflows, climate-health dashboards, or community-resilience tools.

🧪 Code Repositories

Both are fully open-source and available for developers, researchers, and public-health practitioners who want to build on top of the framework.

šŸŽÆ Why This Matters
This project strengthens my ongoing work in combining:

  • AI,
  • environmental intelligence, and
  • health literacy, — an area increasingly recognized as critical to U.S. public health, emergency preparedness, and climate-adaptation planning.

Improving how everyday people interpret environmental risk—especially those with asthma, heat sensitivity, or dehydration risk—supports broader national goals around:

  • Reducing climate-related health burdens
  • Enhancing community resilience
  • Improving risk communication
  • Advancing safe, interpretable AI systems
  • Ensuring equitable access to environmental health insights

šŸ¤ Open to Collaboration
I’m excited to continue expanding this work and collaborating with others focused on:

  • AI for public health
  • Climate resilience
  • Explainable decision-support systems
  • Environmental monitoring
  • Community health tools

If this aligns with your interests or ongoing projects, I’d love to connect.

I’m actively exploring partnerships, research opportunities, and applied AI use cases in public health and climate resilience.

Thanks for reading!

Top comments (0)