Mehthab07/openenv-disaster-response
ADRAE++: Autonomous Disaster Response & Resource Allocation
ADRAE++ is a high-fidelity Digital Twin and Reinforcement Learning platform designed to revolutionize crisis management. By integrating real-world geospatial data with hybrid AI coordination, it optimizes the deployment of rescue autonomous units in complex environments.
๐๏ธ System Architecture
graph TD
A[OpenStreetMap Data] --> B[OSMLoader]
C[Weather API Simulator] --> D[Scenario Generator]
B --> E[OpenEnv Digital Twin]
D --> E
E --> F[Multi-Agent System]
subgraph MAS [Multi-Agent System]
G[Heuristic++ A*]
H[RL Brain PPO]
I[Hybrid LLM+RL Planner]
end
F --> G & H & I
E <--> J[FastAPI Backend]
J <--> K[React Dashboard]๐ Key Features
- Digital Twin Engine: High-performance Gymnasium-compatible environment simulating real urban street networks.
- Hybrid Intelligence: Combines long-term reasoning (LLM) with tactical precision (RL/A*).
- Real-World Data: Automated pipeline for fetching and caching OpenStreetMap infrastructure.
- Interactive Visualization: Real-time simulation control via a premium glassmorphic dashboard.
- Operational Benchmarking: Comprehensive suite to evaluate survival rates and mission efficiency.
๐ ๏ธ Tech Stack
- Backend: Python 3.13 | FastAPI | Gymnasium | Stable-Baselines3 | NetworkX
- Data: OSMSnx | GeoPandas
- Frontend: React 18 | Vite | Leaflet Maps | Lucide Icons
- ML Brain: PyTorch | Ollama (Local LLM)
๐ฆ Quick Start
Prerequisites
- Python 3.13+
- Node.js 18+
- Ollama (Optional for Hybrid planning)
Installation
# Clone and setup
pip install -r requirements.txt
# Start Backend
python server.py
# Start Frontend
cd ui
npm install
npm run devUsage
Visit http://localhost:5173 to access the dashboard.
- Select an agent (e.g.,
Hybrid). - Deploy the mission.
- Observe live survivors being rescued on the map.
๐ OpenEnv Specification & Benchmarking
ADRAE++ fully complies with the OpenEnv specification.
OpenEnv Spaces
- Observation Space:
Observation(agents: List[AgentState], victims: List[VictimState], time: int, rescued_count: int) - Action Space:
Action(agent_moves: List[int])representing edge traversal choices per agent. - Reward Signal: Rich continuous tracking (
Reward(value=float)) penalizing gridlock while continuously rewarding sequential rescues to provide steady partial-progress gradients.
OpenEnv Hackathon Evaluation (Inference)
To evaluate the simulation suite against the OpenEnv hackathon standard bounds:
# Ensure you provide the required Environment Variables:
# HF_TOKEN is strictly mandatory.
export HF_TOKEN="your_huggingface_token"
export MODEL_NAME="gpt-4o-mini" # Optional default
export API_BASE_URL="https://api.openai.com/v1" # Optional default
# Launch the official benchmark
python inference.pyThis strictly executes the OpenAI client conforming to the standard stdout [START], [STEP], and [END] syntax grading limits evaluated through the benchmark across native difficulty paradigms.
Official Difficulty Tiers
To ensure standardized benchmarking, the project defines four strict difficulty paradigms. External evaluators can test against these tiers to formally benchmark their agents:
Local RL/Heuristic Benchmark
ADRAE++ includes a built-in evaluation suite in scripts/benchmark.py. Initial benchmarks show that Hybrid Intelligence significantly outperforms baseline models in expert-level scenarios with road blockages and severe weather.
๐ Deployment (Docker & Hugging Face Spaces)
To deploy the production-grade suite using Docker:
docker build -t disaster-env .
docker run -p 7860:7860 disaster-envThis multi-stage Dockerfile automatically mounts the React Dashboard within the FastAPI scope on port 7860, natively supporting Hugging Face Spaces deployments.
๐ค Credits & Research
ADRAE++ is designed for research-level simulation and production-grade operational awareness in humanitarian logistics.
