Skip to content

Shibu-pal/Forest-fire-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forest Fire Prediction Logo Forest Fire Prediction System

A comprehensive web application for predicting forest fires using machine learning models. This system analyzes environmental data and images to forecast fire risks, aiding in preventive measures and disaster management. Built for researchers, forest managers, and emergency responders.


🧩 Table of Contents


🚀 Demo

Forest Fire Prediction

For IVR(Interactive Voice Interface) Contact with me


🖼 Screenshots

Background Home Page Image input Data input Fire Prediction


⚙️ Features

  • Data-based Fire Prediction: Predict fire risk using environmental parameters like temperature, humidity, wind speed, etc.
  • Image-based Fire Prediction: Upload images to detect fire presence using computer vision models.
  • Interactive Web Interface: User-friendly React-based frontend with Inertia.js for seamless navigation.
  • IVR Integration: Interactive Voice Response system for accessibility.
  • Docker Support: Containerized deployment for easy setup and scalability.
  • Real-time Predictions: Console commands for automated fire prediction runs.
  • Responsive Design: Works across devices with light/dark mode support.

🧠 Tech Stack

Frontend: React, TypeScript, Inertia.js, TailwindCSS
Backend: Laravel (PHP)
ML Libraries: Scikit-learn, TensorFlow
Deployment: Docker, Docker Compose\


🛠 Installation

Clone the repository and install dependencies.

# Clone the project
git clone https://github.com/your-username/forest-fire-prediction.git

# Go to the project directory
cd forest-fire-prediction

# Install PHP dependencies
composer install

# Install Node.js dependencies
npm install
npm run build

# Install Python dependencies for ML backend
cd backend && pip install -r backend/requirement.txt

# To migrate with database
php artisan migrate

# To use for upload and use image
php artisan storage:link

💻 Run Locally

Using Docker (Recommended)

# Start all services
docker-compose up -d

# Run database migrations
docker-compose exec app php artisan migrate

# Build frontend assets
docker-compose exec app npm run build

Manual Setup

Start the Laravel backend:

composer run dev

Your app should now be running at:
Frontend → http://localhost:8000


🔑 Environment Variables

cp .env.example .env
php artisan generate:key

Edit .env file in the root directory with:

# for IVR
TWILIO_SID=write_twilio_sid
TWILIO_AUTH_TOKEN=write_twilio_auth_token
TWILIO_PHONE_NUMBER=+Write_phone_number

🚢 Deployment

Using Docker

# Build and deploy
docker-compose -f docker-compose.prod.yml up -d

# Run migrations on production
docker-compose -f docker-compose.prod.yml exec app php artisan migrate --force

Traditional Deployment

  1. Set up a web server (Apache/Nginx) with PHP support.
  2. Configure database and environment variables.
  3. Run composer install --optimize-autoloader --no-dev
  4. Run npm run build

For cloud deployment, consider services like AWS, DigitalOcean, Render, Railway or Heroku with Docker support.


🤝 Contributing

Contributions are always welcome!

  1. Fork the repo
  2. Create a feature branch:
    git checkout -b feature/your-feature-name
  3. Commit your changes:
    git commit -m "Added new feature"
  4. Push to the branch:
    git push origin feature/your-feature-name
  5. Open a Pull Request

Please ensure your code follows the project's coding standards and includes tests.


👥 Authors


📜 License

This project is licensed under the MIT License.
You’re free to use, modify, and distribute this project with proper attribution.


💬 Feedback

If you have any feedback or suggestions, feel free to reach out:
📧 shibadiptapal@gmail.com
💬 or open an issue on GitHub Issues

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published