Advanced Real-time Wildfire Monitoring & Prediction System
FireGuard AI is a comprehensive wildfire monitoring and prediction system that aggregates real-time data from thousands of sources including NASA FIRMS satellite data, government fire agencies, weather stations, and news feeds. The system uses machine learning to predict fire risk and provides early warning capabilities for wildfire threats.
- NASA FIRMS Integration: Real-time satellite fire detection from MODIS and VIIRS sensors
- Government APIs: CAL FIRE, NIFC, InciWeb incident data
- Weather Data: NOAA, NWS alerts, RAWS weather stations
- News & RSS Feeds: Real-time fire incident reporting from news sources
- Historical Data: Archive of fire patterns and weather conditions
- TensorFlow.js Implementation: Browser-based neural network training
- Risk Assessment: Real-time fire danger level calculations
- Pattern Recognition: Historical fire behavior analysis
- Weather Integration: Temperature, humidity, wind speed correlation
- Accuracy Metrics: Confusion matrix and performance tracking
- Interactive Fire Map: Live fire locations with satellite imagery
- Weather Monitoring: Current conditions and forecasts
- Alert System: Customizable notifications for high-risk areas
- Data Visualization: Charts and graphs of fire activity trends
- Mobile Responsive: Optimized for all device types
- Web Scraping: Automated data collection from fire agencies
- CORS Proxy Integration: Bypass browser limitations for data access
- Caching System: Optimized performance with smart data caching
- Error Handling: Robust fallback mechanisms for data reliability
- Node.js 16+ and npm
- Modern web browser with JavaScript enabled
# Clone the repository
git clone https://github.com/TheAgencyMGE/wildfire-sentinel.git
# Navigate to project directory
cd wildfire-sentinel
# Install dependencies
npm install
# Start development server
npm run devThe application will be available at http://localhost:5173
# Build for production
npm run build
# Preview production build
npm run preview- Frontend: React 18, TypeScript, Tailwind CSS
- UI Components: shadcn/ui component library
- Machine Learning: TensorFlow.js, ml-matrix, simple-statistics
- Build Tool: Vite for fast development and optimized builds
- Styling: Tailwind CSS with custom wildfire theme
src/
βββ components/ # React components
β βββ AlertSystem.tsx # Fire alert notifications
β βββ FireMap.tsx # Interactive fire map
β βββ WeatherWidget.tsx # Weather display
β βββ WebScraper.tsx # Data collection interface
βββ services/ # Core services
β βββ api.ts # Fire data API integration
β βββ mlTrainer.ts # Machine learning engine
β βββ dataAggregator.ts # Multi-source data collection
β βββ corsProxy.ts # CORS handling service
βββ pages/ # Application pages
β βββ Dashboard.tsx # Main monitoring dashboard
β βββ Index.tsx # Landing page
βββ lib/ # Utilities and helpers
Create a .env file in the root directory:
# API Keys (optional - system works with public data)
VITE_NASA_FIRMS_API_KEY=your_nasa_key_here
VITE_WEATHER_API_KEY=your_weather_key_here
# CORS Proxy Settings
VITE_CORS_PROXY_URL=https://api.allorigins.win/get?url=The system automatically aggregates data from:
- NASA FIRMS (Fire Information for Resource Management System)
- CAL FIRE incident APIs
- National Interagency Fire Center (NIFC)
- InciWeb incident information
- NOAA weather services
- Various state fire agency RSS feeds
- Input Layer: Weather data, historical fire patterns, satellite readings
- Hidden Layers: 128 β 64 β 32 neurons with dropout regularization
- Output Layer: Fire risk probability (0-1 scale)
- Optimizer: Adam with learning rate scheduling
- Loss Function: Binary cross-entropy for classification
- Historical fire incidents with location and timing
- Weather conditions at fire start times
- Satellite thermal anomaly data
- Terrain and vegetation indices
- Data Refresh: 5-minute intervals for critical sources
- CORS Handling: Multiple proxy services for reliability
- Caching: Intelligent caching with TTL management
- Error Recovery: Automatic fallback to cached or simulated data
- Chrome/Edge 90+
- Firefox 88+
- Safari 14+
- Mobile browsers supported
We welcome contributions! Please see our Contributing Guidelines for details.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: support@theagencymge.com
- NASA FIRMS for satellite fire detection data
- NOAA/NWS for weather data and alerts
- CAL FIRE and other fire agencies for incident information
- TensorFlow.js team for machine learning capabilities
- shadcn/ui for beautiful UI components