zain329/EpidemicAI-Command-Center
๐๏ธ EpidemicAI: Multi-Agent Policy Command Center Balancing Health, Wealth, and Public Trust through LLM-Driven Governance Team: Neural Nexus
Lead Developer: Zain Pawle
Built For: Meta OpenEnv Hackathon 2026
๐ Executive Summary EpidemicAI is a next-generation epidemic simulation environment that moves beyond static mathematical models. By utilizing Generative Reinforcement Learning from Public Opinion (GRPO) and a Multi-Agent Cabinet Framework, the system simulates the socio-economic friction of a city in crisis. It forces a Large Language Model to navigate the "Impossible Triangle" of governance: minimizing mortality, preventing economic collapse of the vulnerable, and maintaining public trust to prevent social unrest.
๐ Key Features ๐ง Multi-Agent Cabinet Intelligence Every policy decision is the result of a simulated internal debate between specialized AI agents:
Chief Medical Officer (CMO): Optimized for infection suppression and hospital capacity.
Chief Economic Advisor (ECON): Optimized for the wealth preservation of the working class.
The Mayor (Decision Engine): Synthesizes conflicting advice based on the current "Social Pulse."
๐๏ธ Stratified Socio-Economic Environment Unlike standard SIR models, our environment is socially aware:
Class Dynamics: Simulates three distinct tiers (Elite, Middle, Poor) with unique mortality risks and financial buffers.
Economic Realities: Lockdowns disproportionately damage the Poor tier; failing to provide stimulus can lead to bankruptcy and simulation failure.
๐จ Dynamic Trust & Social Unrest Public Trust Metric: A live indicator of government legitimacy.
Riot Logic: If Trust drops below 20%, citizens enter "Social Unrest" mode, ignoring lockdown protocols and causing a second infection wave.
โก God Mode: Reality Injection The dashboard includes an NLP-powered "Scenario Injector":
NLP to Math: Users can type "A vaccine was discovered" or "A deadlier variant emerged," and the AI translates these human events into environmental multipliers like beta or mortality_rate.
๐ ๏ธ Technical Architecture Hybrid Inference Engine The system utilizes a resilient hybrid backend to ensure 100% uptime:
Local Edge: Support for quantized Gemma-2B-GRPO running natively on consumer GPUs (GTX 1060) via 4-bit NF4 quantization.
Cloud Failover: Bulletproof integration with Hugging Faceโs InferenceClient for high-speed serverless reasoning.
The Stack Simulation: Python, NumPy, Pydantic
UI/UX: Streamlit with Plotly Interactive Charts
Graph Math: NetworkX city-map topography
LLM Logic: Hugging Face Inference API
๐ Evaluation Results The system is evaluated across three task levels of increasing complexity:
Level 1 (Health Focus): Simple infection suppression.
Level 2 (Balanced): Infection control with basic economic constraints.
Level 3 (Crisis): Managing high mortality, economic bankruptcy, and rioting simultaneously.
Note: Our agent successfully maintains a task score of >0.8 across all levels by utilizing high-quality Chain-of-Thought reasoning.
๐ง Installation & Setup Bash
Clone the repository
git clone https://github.com/Zayn329/EnvHAck.git
Set up your environment
pip install -r requirements.txt
Set your API token
export HFTOKEN="yourhuggingface_token"
Run the Command Center
python -m streamlit run app.py
