Skip to main content

A Python library for visualizing and analyzing fire detection data

Project description

🔥 FireVizz

A Python library for visualizing and analyzing fire detection data from sensor networks.


✨ Features

  • 🗺️ Interactive map visualization of fire sensor data
  • 🤖 Real-time fire prediction using machine learning models
  • 🌡️ Heatmap visualization for various sensor parameters
  • 📤 Export of fire prediction coordinates and sensor data
  • 🔌 Support for multiple sensor types (CO, air quality, temperature, etc.)

📦 Installation

pip install firevizz

🚀 Usage

from firevizz import FireVizz

# Initialize the visualizer
visualizer = FireVizz(
    data_path="sensor_data.csv",
    model_path="fire_detection_model.pkl"  # Optional
)

# Create an interactive map
visualizer.create_map("fire_map.html")

# Export fire predictions to CSV
visualizer.export_fire_predictions("fire_locations.csv")

🤖 Sample ML Model

A sample pretrained SVM model can be downloaded from here tarined on this dataset.

🧾 Input Data Format

The input CSV file should contain the following columns:

  • 📍 latitude
  • 📍 longitude
  • 🧪 co_level
  • 🌫️ air_quality
  • 🌡️ temperature
  • 💧 humidity
  • ⚖️ pressure
  • 🧴 voc_level

📊 Output

  1. Interactive HTML map showing:

    • 📍 Sensor locations
    • 🔥 Fire predictions
    • 🌡️ Heatmaps for various parameters
    • 🧭 Layer controls for toggling different visualizations
  2. CSV file containing:

    • 🌍 GPS coordinates of predicted fire locations
    • 📋 Associated sensor readings

🖼️ Example

Here’s a preview of the generated interactive fire map:

FireVizz Output Map
Example fire prediction and sensor overlay map.

ℹ️ Don't forget to open fire_map.html in your browser to explore the interactive features!


📄 License

📝 MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firevizz-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

firevizz-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file firevizz-0.1.1.tar.gz.

File metadata

  • Download URL: firevizz-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for firevizz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 67c125d0d04d621c290da2c2a7e2f0b92ace9191ca9689dfb61551bc5e8a18d4
MD5 e85819038acfafadae40527a00ac96d3
BLAKE2b-256 d508cbadadb39ca0be57983cc03cad4755f2b9d2a5b8464e46b9917522a68dc3

See more details on using hashes here.

File details

Details for the file firevizz-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: firevizz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for firevizz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4f518e31ae459cfc421e98c6eb0b67359b1632f78a2834548585f491b38e3caf
MD5 192c1e43dd75a4d093313fddec1361d0
BLAKE2b-256 26df0e02228e0edc9e328dc9b86ac27e030c5afac1532b3a40cffce0b8328da7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page