Skip to content
Back to skills

GEO INFER HEALTH

ASecurity

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.

  • 17 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 1, 2026
ai-agentspythonbashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-HEALTH --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER HEALTH?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER HEALTH
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-health/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-health)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-health
description: 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.
prerequisites:
  recommended:
    - geo-infer-space
    - geo-infer-data
difficulty: intermediate
estimated_time: 45min
examples_dir: ../examples/
---

# GEO-INFER-HEALTH

## Instructions

### Core Capabilities

- **Disease surveillance**: hotspot detection (DBSCAN-style local density), local incidence rates, temporal trend analysis
- **Active Inference surveillance**: belief-state updating, free-energy driven anomaly detection, and risk prediction (`ActiveInferenceDiseaseAnalyzer`)
- **Healthcare accessibility**: facility search by radius, nearest-facility lookup, facility-to-population ratios
- **Environmental health**: exposure averaging over space and time windows anchored to the latest reading
- **Geospatial utilities**: UTM projection, spatial clustering, Moran's I autocorrelation, Voronoi regions, local hotspot statistics

### Key Imports

```python
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

```python
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,
)
```

```python
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

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

## Guidelines

- All analytics run on plain Pydantic models — no external geospatial services required.
- `calculate_local_incidence_rate` returns raw case counts in the rate slot (flagged via
  `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`

Files in this skill

  • AGENTS.md1.3 KB
  • MANIFEST.in409 B
  • README.md1.1 KB
  • SKILL.md1.9 KB
  • config/.gitkeep1 B
  • config/AGENTS.md1.2 KB
  • config/README.md995 B
  • config/data_sources.yaml8.1 KB
  • config/health_config.yaml6.8 KB
  • config/schema.json9.1 KB
  • docs/.gitkeep1 B
  • docs/AGENTS.md1.2 KB
  • docs/README.md950 B
  • docs/api_schema.yaml33.2 KB
  • examples/.gitkeep1 B
  • examples/AGENTS.md1.3 KB
  • examples/README.md2.4 KB
  • examples/advanced_health_analysis.py26.4 KB
  • examples/example_disease_surveillance.py3.9 KB
  • examples/example_environmental_health.py3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.