Skip to content

SQUADRON-LEADER/EcoPredict-AI

Repository files navigation

🌱 EcoPredict AI - Greenhouse Gas Emission Forecasting



ChatGPT Image Jul 3, 2025, 01_18_35 AM

EcoPredict AI is an advanced web-based application for predicting greenhouse gas (GHG) emissions in supply chains using artificial intelligence and machine learning technologies. Built with Streamlit and powered by a Linear Regression model trained on EPA's official supply chain emission data from 2010–2016, the application provides intelligent predictions for emission factors across various US industries and commodities.

The system features a modern, interactive GUI with glassmorphism design, animated gradients, and professional styling. It allows users to input parameters such as:

  • Greenhouse gas type (carbon dioxide, methane, nitrous oxide, or others)

  • Measurement units (kg, tons, COβ‚‚e, etc.)

  • Emission factors

  • Comprehensive data quality metrics:

    • Reliability
    • Temporal correlation
    • Geographic correlation
    • Technological correlation
    • Data collection quality

User inputs are processed through a sophisticated preprocessing pipeline, standardized using scaling, and sent to the ML model for real-time predictions. Visual analytics include interactive Plotly charts such as gauges, bar charts, and radar plots. The platform also offers AI-powered sustainability recommendations based on input trends.

It serves as both an educational tool and practical solution for environmental impact analysisβ€”ideal for researchers, analysts, and organizations aiming to optimize their carbon footprint.


🌍 Why EcoPredict AI?

🌿 Climate change is one of the most pressing global challenges. Accurate emission forecasting can support better decisions for a greener future. EcoPredict AI helps:

  • πŸ“Š Predict GHG emissions by sector or activity
  • 🧠 Visualize trends & outcomes
  • ⚑ Deliver real-time results via a beautiful interface
  • πŸ“ˆ Encourage data-driven climate action

πŸ”§ Features

  • βœ… AI-powered emission predictions using EPA data
  • πŸ’  Glassmorphism UI with responsive layout
  • πŸ“ˆ Real-time charts: Gauge, Bar, Radar (Plotly-powered)
  • πŸ”Ž Data quality scoring system (5 metrics)
  • 🧠 AI suggestions for emission reduction
  • πŸ“ Upload and compare industry datasets
  • πŸ›‘οΈ Error handling and validation checks
  • 🌐 Deployable via Streamlit Cloud or localhost

πŸ“Έ Screenshots



Screenshot 2025-07-03 011100

Screenshot 2025-07-03 011111

Screenshot 2025-07-03 011119

Screenshot 2025-07-03 011218

Screenshot 2025-07-03 011225

Screenshot 2025-07-03 011235

Screenshot 2025-07-03 011243

πŸ“ˆ Visual Insights

EcoPredict AI provides graphical output that enhances interpretation and decision-making. Users receive:

  • πŸ“‰ Line Graphs: Track emission trends across inputs
  • πŸ“Š Bar Charts: Compare emissions between industries
  • 🎯 Gauge Charts: Assess overall impact severity
  • 🌐 Radar Charts: Visualize data quality profiles

All visualizations are interactive and rendered using Plotly.


🧠 Model & Training Details

The AI model was built and trained using the following pipeline:

πŸ“š Libraries Used

  • Core Data Processing:

    • pandas, numpy
  • Visualization:

    • matplotlib.pyplot, seaborn, plotly
  • Machine Learning:

    • sklearn.model_selection:

      • train_test_split, GridSearchCV
    • sklearn.preprocessing:

      • StandardScaler
    • sklearn.linear_model:

      • LinearRegression
    • sklearn.ensemble:

      • RandomForestRegressor
    • sklearn.metrics:

      • mean_squared_error, r2_score
  • Model Persistence:

    • joblib

🎯 Process Summary

  • Preprocessing: null value handling, scaling
  • Feature engineering
  • Model training using Linear Regression (final model)
  • Evaluation using MSE and RΒ²
  • Hyperparameter tuning with GridSearchCV
  • Models saved as LR_model.pkl and scaler.pkl

πŸ’» Tech Stack

Layer Tools Used
Backend Python, Pandas, Scikit-learn, LinearRegression
Frontend/UI Streamlit, Plotly
Deployment Streamlit Cloud / Local Host
Visualization Plotly, Seaborn, Matplotlib

πŸš€ Getting Started

1. Clone the Repository

git clone https://github.com/yourusername/EcoPredict-AI.git
cd EcoPredict-AI

2. Install Dependencies

pip install -r requirements.txt

3. Run the Application

streamlit run app.py

🌐 Live Demo

Check out the app live here πŸ‘‰ EcoPredict AI - Streamlit App


πŸ—‚ Project Structure

EcoPredict-AI/
β”œβ”€β”€ app.py                 # Streamlit App Logic
β”œβ”€β”€ model/
β”‚   └── LR_model.pkl       # Trained Linear Regression Model
β”œβ”€β”€ scaler/
β”‚   └── scaler.pkl         # StandardScaler instance
β”œβ”€β”€ data/
β”‚   └── emissions.csv      # Industry Emissions Data
β”œβ”€β”€ assets/
β”‚   └── ecopredict_banner.png  # Project banner image
β”œβ”€β”€ utils/
β”‚   └── preprocess.py      # Data Cleaning & Helper Functions
β”œβ”€β”€ requirements.txt
└── README.md

πŸ“Š Example Use Case

Input: Industry: "Steel Manufacturing", GHG: "Methane", Unit: "Ton" Prediction: ~4.82 metric tons COβ‚‚e emitted per ton produced.

Gauge, radar, and bar charts will help interpret the output visually.


🀝 Contribution Guidelines

We welcome all contributions, ideas, and suggestions!

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

Licensed under the MIT License.

Copyright (c) 2025 Aayush Kumar

Permission is hereby granted to use, copy, modify, and distribute this software for any purpose with or without fee, provided that the above copyright notice appears in all copies.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.


πŸ™ Acknowledgements

  • EPA Supply Chain GHG Emissions Data
  • IBM Greenhouse Gas Project
  • Streamlit Community
  • Scikit-learn Contributors
  • OpenAI Copilot

πŸ‘¨β€πŸ’» Author

Aayush Kumar πŸ“« Email: [aayush05.af@gmail.com] πŸ”— LinkedIn: linkedin.com/in/aayush-kumar-146252314


"The best way to predict the future is to design it sustainably." 🌏

About

EcoPredict AI is a powerful, AI-driven solution for predicting Greenhouse Gas (GHG) emissions based on user-input industry data. Designed for environmental sustainability initiatives, EcoPredict AI utilizes machine learning models to deliver accurate carbon emission predictions and is deployed via Streamlit for real-time access.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors