Skip to content

KevinShilla/ClimateHero

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 Climate Hero

Welcome to Climate Hero, your go-to tool for visualizing energy consumption and CO2 emissions trends. Designed to empower users with insights, Climate Hero predicts future energy usage and emissions trends, enabling informed decisions toward a sustainable future.


📖 Table of Contents


Introduction

Climate Hero is an interactive web app that leverages machine learning to provide accurate predictions of energy consumption and CO2 emissions for various countries. With visualizations that make complex data easy to understand, this tool fosters awareness about global energy trends and helps users explore solutions for a greener planet.

🔮 Key Features:

  • Predictions up to 2030 for energy consumption and CO2 emissions.
  • Normalized graphs comparing trends side-by-side.
  • Historical data visualizations with tables and scatter plots.

🔑 Features

  • 🌍 Dynamic Filtering: Choose a country to analyze its energy and emission trends.
  • 📊 Interactive Visualizations:
    • Normalized graphs for energy consumption and CO2 emissions.
    • Individual prediction graphs for energy consumption and CO2 emissions.
  • 🧠 Machine Learning Models:
    • Prophet for energy consumption predictions.
    • Random Forest for CO2 emissions forecasting.
  • 📈 Historical Data: Explore past trends with scatter plots and data tables.

🛠️ Tech Stack

Technology Purpose
Python Data processing and application logic.
Pandas Data manipulation and cleaning.
Matplotlib Creating interactive visualizations.
Prophet Forecasting future energy consumption trends.
Scikit-learn Machine learning model to predict CO2 emissions.
Streamlit Building an interactive and user-friendly web application.
NumPy Data computations and array handling.

🔄 How It Works

Input:

  • Upload or access preloaded energy consumption and CO2 emission datasets.

Process:

  1. Load Data: Process the dataset for analysis.
  2. Predictions:
    • Use Prophet for energy consumption predictions.
    • Use Random Forest for CO2 emission predictions.
  3. Visualize:
    • Scatter plots and tables for historical data.
    • Line graphs for future predictions.

Output:

  • Historical Data Table: Overview of past energy usage.
  • Scatter Plot: Visualization of historical energy consumption by type.
  • Prediction Graphs:
    • Normalized graph comparing energy and CO2 emissions.
    • Individual graphs for energy consumption and CO2 predictions.

🖼️ Screenshots

🌍 Homepage

**image **

📊 Historical Data

_image _

🔮 Energy Consumption by type Graph

_image _

📈 Energy and CO2 Predictions

_image _

Climate Hero Rankings

image


⚙️ Setup

Follow these steps to set up and run Climate Hero:

  1. Clone the Repository:

    git clone https://github.com/KevinShilla/ClimateHero.git
    cd Climate-Hero

    Install Dependencies:

    pip install -r requirements.txt

    Run the App:

    streamlit run app.py

Access the App: Open the local URL provided in the terminal (e.g., http://localhost:8501) to explore the app.

OR Go to: https://climatehero.streamlit.app/

💡 How It Helps Climate Hero is designed to serve a wide audience:

Policy Makers: Use predictions to implement data-driven sustainability initiatives.

Researchers: Analyze trends in energy consumption and CO2 emissions for environmental studies.

Individuals: Gain insights into energy and CO2 trends to make informed lifestyle choices.

Made by Kevin Shilla and Sabeha Khan

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages