GEO INFER HEALTH

From ActiveInferenceInstitute/GEO-INFER · View interactive version

GEO INFER HEALTH is an AI agent skill from the GitHub repository ActiveInferenceInstitute/GEO-INFER. Spatial epidemiology and public health analysis. Use when modeling disease spread, analyzing health disparities, performing spatial health risk assessment, building epidemiological surveillance systems, or assessing healthcare accessibility.

How to use this skill

Skill file

GEO-INFER-HEALTH

Instructions

Core Capabilities

Key Imports

from geo_infer_health.core import (
    DiseaseHotspotAnalyzer,
    ActiveInferenceDiseaseAnalyzer,
    HealthcareAccessibilityAnalyzer,
    EnvironmentalHealthAnalyzer,
)
from geo_infer_health.models import (
    Location,
    DiseaseReport,
    PopulationData,
    EnvironmentalData,
)
from geo_infer_health.utils.advanced_geospatial import (
    spatial_clustering,
    calculate_spatial_autocorrelation,
    calculate_hotspot_statistics,
)

Examples

from datetime import datetime, timezone
from geo_infer_health.core import DiseaseHotspotAnalyzer
from geo_infer_health.models import DiseaseReport, Location

reports = [
    DiseaseReport(
        report_id="case001",
        disease_code="FLU",
        location=Location(latitude=34.05, longitude=-118.24),
        report_date=datetime(2024, 1, 10, tzinfo=timezone.utc),
        case_count=5,
        source="Hospital A",
    ),
    DiseaseReport(
        report_id="case002",
        disease_code="FLU",
        location=Location(latitude=34.06, longitude=-118.25),
        report_date=datetime(2024, 1, 11, tzinfo=timezone.utc),
        case_count=3,
        source="Clinic B",
    ),
]

analyzer = DiseaseHotspotAnalyzer(reports=reports)
hotspots = analyzer.identify_simple_hotspots(threshold_case_count=2, scan_radius_km=2.0)
rate, cases, population, population_estimated = analyzer.calculate_local_incidence_rate(
    center_loc=Location(latitude=34.05, longitude=-118.24),
    radius_km=5.0,
)
from geo_infer_health.core import ActiveInferenceDiseaseAnalyzer

# Enhanced surveillance with belief updating and risk prediction
enhanced = ActiveInferenceDiseaseAnalyzer(reports=reports)
result = enhanced.analyze_with_active_inference(time_window_days=30)
print(result["overall_risk"])

API server

geo-infer-health serve --host 0.0.0.0 --port 8000
# Routes are mounted under /api/v1: /surveillance, /environment, /accessibility

Agent interfaces

Use uv run --frozen geo-infer catalog HEALTH to discover public source

APIs, then geo-infer describe before calling a selected target. Scripts use

geo_infer_api.agent_runtime.AgentSession; the optional stdio MCP server is

geo-infer-mcp. See requests, native objects and composition.

The adapter retains this module's dependencies and authorization requirements.

Guidelines

the analyzer applies type filters but does not clip to area geometry. A zero

population retains an infinite ratio and reports the filtered facility count.

order for equal distances. Haversine utilities use degree-valued coordinates

on a 6,371 km sphere and do not transform CRS metadata.

population_estimated=False) when no population data is available.

Integrations

None: this module has no runtime imports of other GEO-INFER modules.

Test: uv run python GEO-INFER-TEST/run_unified_tests.py --module HEALTH

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.