PyroScan AI is an advanced multi-agent artificial intelligence system designed to predict, monitor, and analyze forest fires using real-time satellite data from NASA FIRMS API, weather information, and historical fire data. The system employs a sophisticated agentic architecture with specialized AI agents working collaboratively to provide comprehensive fire risk assessment and early warning capabilities for critical forest regions worldwide.
This project is built and developed by
- Sreehari S J
- Aromal S
- Multi-Agent System: Coordinated AI agents working together for comprehensive analysis
- Real-time Fire Detection: Live fire data from NASA FIRMS satellite API
- Multi-Region Monitoring: Tracks fire incidents in 10 critical forest regions globally
- Weather Integration: Real-time weather data analysis for fire risk assessment
- Historical Analysis: Web search capabilities for historical fire data and news
- Intelligent Filtering: AI-powered filtering based on proximity to high-risk areas
- Agentic Decision Making: Advanced AI analysis and prediction capabilities
- Geographic Analysis: Location-based fire risk assessment and mapping
The system monitors fire incidents in these critical forest regions:
- British Columbia (Canada)
- Siberia Forests (Russia)
- Athens Outskirts (Greece)
- Canberra Region (Australia)
- Alberta Forests (Canada)
- Western Cape (South Africa)
- Mato Grosso (Brazil)
- Los Angeles National Forest (USA)
PyroScan AI employs a sophisticated multi-agent architecture where specialized AI agents collaborate to provide comprehensive fire analysis:
The Main Agent serves as the central coordinator of the multi-agent system, orchestrating communication between specialized agents and managing the overall fire analysis workflow.
Capabilities:
- Coordinates all other agents
- Manages conversation memory
- Integrates results from multiple agents
- Provides comprehensive fire risk assessment
- Makes final recommendations based on agent inputs
The Fire Spot Agent specializes in real-time fire detection and analysis using NASA FIRMS satellite data.
Capabilities:
- Fetches live fire data from NASA FIRMS API
- Analyzes fire activity patterns
- Identifies active fire hotspots
- Provides fire intensity and spread analysis
- Filters fire data for monitored regions
Tools:
Fire data tool
: Retrieves recent fire data from NASA FIRMS API for given coordinates
The Weather Agent focuses on weather analysis and its impact on fire risk assessment.
Capabilities:
- Retrieves current weather conditions
- Analyzes weather forecasts
- Assesses weather-related fire risk factors
- Monitors temperature, humidity, and wind conditions
Tools:
Weather data tool
: Retrieves current or forecasted weather data for given coordinates
The Output Data Processing Agent cleans, validates, and converts raw agent output into structured JSON predictions.
Capabilities:
- Extracts and cleans raw output from all agents
- Validates and formats predictions
- Handles malformed or incomplete data
- Ensures final output is usable by downstream systems
Tools:
Output data processing tool
: Processes and converts raw agent output to clean JSON
The Web Search Agent gathers historical fire data and recent news about fire incidents.
Capabilities:
- Performs live web searches for fire-related information
- Gathers historical fire data for specific locations
- Analyzes recent fire news and reports
- Provides context about previous fire incidents
- Identifies patterns in fire occurrence
Tools:
-
Web search tool
: Performs live web searches for location-specific fire information -
Python 3.8 or higher
-
Clone the repository
git clone https://github.com/sjsreehari/PyroScan-AI.git cd PyroScan-AI
-
Create a virtual environment (recommended)
python -m venv venv # On Windows venv\Scripts\activate # On macOS/Linux source venv/bin/activate
-
Install dependencies
pip install -r requirements.txt
PyroScan AI requires API keys for external services. Create a .env
file in the project root with the following keys:
-
NASA FIRMS API Key
- Get your API key from: https://firms.modaps.eosdis.nasa.gov/api/
- Add to
.env
file:
NASA_FIRM_API_KEY=your_nasa_api_key_here
-
OpenRouter API Key
- Get your API key from: https://openrouter.ai/settings/keys
- Add to
.env
file:
OPENROUTER_API_KEY=your_openrouter_api_key_here
-
Weather API Key
- Get your API key from: https://www.weatherapi.com/login.aspx
- Add to
.env
file:
WEATHERAPI_API_KEY=your_weather_api_key_here
NASA_FIRM_API_KEY=9b********************6ee
OPENROUTER_API_KEY=sk-or-v1-**************************************d7d
WEATHERAPI_API_KEY=59***********************704
PyroScan-AI
├─ .dockerignore
├─ Dockerfile
├─ LICENSE
├─ main.py
├─ pyroscan-ai.toml
├─ README.md
├─ requirements.txt
├─ run.sh
├─ src
│ ├─ agent
│ │ ├─ fire_spot_agent.py
│ │ ├─ main_agent.py
│ │ ├─ output_data_processing_agent.py
│ │ ├─ prompt.py
│ │ ├─ weather_agent.py
│ │ └─ web_search_agent.py
│ ├─ assets
│ │ ├─ PyroScan-AI_Banner_Image.jpg
│ │ └─ system_architecture.png.png
│ ├─ data
│ │ └─ danger-zone.json
│ ├─ db
│ │ ├─ processed
│ │ │ └─ prediction.json
│ │ └─ raw
│ │ └─ agent_thought_output_raw.txt
│ ├─ presentation
│ │ ├─ index.html
│ │ └─ script.js
│ ├─ server
│ │ └─ app.py
│ ├─ tools
│ ├─ fire_data.py
│ ├─ runnable.py
│ ├─ weather_data.py
│ └─ web_search.py
└─ workflow.mmd
python src/tools/fire_data.py
This will:
- Fetch real-time fire data from NASA FIRMS API
- Filter data for monitored regions
- Save filtered data to
src/db/filtered_fire_data.csv
python main.py
# Build the Docker image
docker build -t pyroscan-ai .
# Run the container
docker run -p 8483:8483 --env-file .env pyroscan-ai
- NASA FIRMS API: Real-time satellite fire detection data
- Weather APIs: Current and forecasted weather conditions
- Web Search APIs: Historical fire data and news
- VIIRS Satellite: Visible Infrared Imaging Radiometer Suite
- NRT Data: Near Real-Time fire detection
- Multi-Agent System: Coordinated AI agents for comprehensive analysis
- Decision Maker: AI agent for fire risk assessment
- Heat Map Classifier: Machine learning for fire pattern analysis
- Prompt Engineering: Optimized prompts for AI analysis
- Memory Management: Conversation buffer for agent communication
- Real-time monitoring of critical forest regions
- Geographic proximity analysis
- Risk assessment algorithms
- Multi-region coverage for global monitoring
- Framework: LangChain for agent orchestration
- AI Models: DeepSeek Chat v3 via OpenRouter
- Memory: ConversationBufferMemory for agent communication
- Tools: Custom tools for fire data, weather, and web search
- Architecture: Multi-agent system with specialized agents
PyroScan AI is designed for research and monitoring purposes. Always follow local emergency protocols and contact appropriate authorities in case of actual fire emergencies. The system provides analysis and predictions but should not be the sole source for emergency decisions.
⭐ Drop a star on GitHub if you find PyroScan AI useful!