Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

35 Commits

Folders and files

Repository files navigation

🚨 CrisisFlow – AI-Powered Emergency Response Management System

Python FastAPI Next.js React License

CrisisFlow is an AI-powered emergency response management system that simulates disaster response scenarios by intelligently prioritizing incidents, allocating emergency teams, and tracking response workflows.

The project demonstrates AI-assisted decision making, backend API development, frontend visualization, structured inference pipelines, and real-time emergency response simulation.


πŸš€ Live Demo

🌐 Hugging Face Space

https://huggingface.co/spaces/SiddiquaFathima/crisisflow

πŸ’» GitHub Repository

https://github.com/siddiquafathima/crisisflow


πŸ“Œ Project Overview

Emergency response requires quick, accurate, and explainable decision-making. CrisisFlow provides an AI-assisted environment that helps emergency coordinators:

  • Prioritize emergency incidents
  • Allocate available response teams
  • Track incident status
  • Simulate disaster management workflows
  • Visualize incident handling in real time

The project combines AI decision logic with a modern web interface and REST API.


🎯 Key Features

  • 🚨 AI-assisted emergency response workflow
  • πŸ“‹ Incident management dashboard
  • πŸš‘ Intelligent emergency team allocation
  • ⚑ Priority-based incident handling
  • πŸ“Š Explainable inference logs
  • πŸ”„ Multi-incident simulation
  • 🌐 REST API powered by FastAPI
  • πŸ’» Interactive frontend using Next.js
  • πŸ“ˆ Real-time response tracking
  • 🧩 Modular and extensible architecture

πŸ—οΈ System Architecture

                User
                  β”‚
                  β–Ό
        Next.js Frontend (React)
                  β”‚
                  β–Ό
          FastAPI REST API
                  β”‚
                  β–Ό
          AI Inference Engine
                  β”‚
                  β–Ό
     Incident Decision Logic
                  β”‚
                  β–Ό
      Emergency Response Simulation

πŸ› οΈ Tech Stack

Programming Languages

  • Python
  • JavaScript
  • HTML
  • CSS

Backend

  • FastAPI
  • Uvicorn

Frontend

  • Next.js
  • React
  • Tailwind CSS

AI / ML

  • OpenAI Compatible APIs
  • Prompt-based Decision Workflow
  • Rule-based Inference Engine

Deployment

  • Hugging Face Spaces
  • GitHub

Tools

  • Git
  • GitHub
  • VS Code

πŸ“‚ Project Structure

crisisflow/
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ routes/
β”‚   β”œβ”€β”€ models/
β”‚   └── utils/
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ app/
β”‚   β”œβ”€β”€ components/
β”‚   └── public/
β”‚
β”œβ”€β”€ inference.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
└── images/

βš™οΈ Installation

Clone Repository

git clone https://github.com/siddiquafathima/crisisflow.git

cd crisisflow

Create Virtual Environment

python -m venv .venv

Windows

.venv\Scripts\activate

Linux / Mac

source .venv/bin/activate

Install Dependencies

pip install -r requirements.txt

Run Backend

uvicorn backend.main:app --reload

Run Frontend

cd frontend

npm install

npm run dev

Run Inference

python inference.py

πŸ“‘ API Documentation

After starting the backend, open:

http://127.0.0.1:8000/docs

FastAPI automatically generates interactive Swagger documentation for testing API endpoints.


🧠 AI Inference Workflow

The inference engine follows a structured emergency response workflow:

  1. Inspect Incident
  2. Verify Incident
  3. Assign Response Team
  4. Escalate Critical Emergencies (if required)
  5. Mark Incident Resolved
  6. Generate Explainable Logs

This workflow enables transparent and reproducible emergency decision-making.


πŸ“Έ Project Screenshots

Dashboard

Dashboard


FastAPI Documentation

API Docs


AI Inference Output

Inference


Steps Taken Outpur

Images


Hugging Face Deployment

Deployment


πŸ“ˆ Example Inference Output

[START] task=task_easy_apartment_fire

↓

Inspect Incident

↓

Verify Incident

↓

Assign Team

↓

Resolve Incident

↓

Success

The inference engine logs every decision step, making the workflow transparent and easy to analyze.


πŸ‘©β€πŸ’» My Contributions

This project was independently designed and developed by me.

Key contributions include:

  • Designed the overall project architecture
  • Developed the FastAPI backend
  • Built the AI inference workflow
  • Implemented emergency response decision logic
  • Developed the Next.js frontend dashboard
  • Integrated backend APIs with the frontend
  • Deployed the project on Hugging Face Spaces
  • Created comprehensive project documentation

🎯 Learning Outcomes

Through this project, I gained practical experience in:

  • Full Stack Development
  • FastAPI
  • REST API Design
  • AI Workflow Design
  • Frontend Integration
  • Deployment
  • Git & GitHub
  • Software Architecture
  • Explainable AI Workflows

πŸš€ Future Enhancements

Potential future improvements include:

  • Reinforcement Learning for dispatch optimization
  • Real-time GIS mapping
  • Multi-agent emergency coordination
  • Live notification system
  • Voice-assisted emergency reporting
  • Analytics dashboard
  • Historical incident analysis
  • AI-powered risk prediction

🀝 Contributing

Contributions, suggestions, and improvements are welcome.

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Push the branch
  5. Open a Pull Request

πŸ“„ License

This project is released under the MIT License.


πŸ‘©β€πŸ’» Author

Siddiqua Fathima

Master of Computer Applications (MCA)

AI | Machine Learning | Computer Vision | Full Stack Development

GitHub: https://github.com/siddiquafathima

Hugging Face: https://huggingface.co/SiddiquaFathima


⭐ If you found this project useful, consider giving it a Star on GitHub.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages