CoolFace
Apppublic

khushal-grover2005/LCA_predictor

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

๐ŸŒ AI-Driven Life Cycle Assessment (LCA) & Circularity Predictor

This repository houses the Inference Engine for an AI-powered platform designed to predict the environmental impact and circularity of metallurgical processes. Developed as part of a 14-day sprint, this system utilizes machine learning to transform complex industrial data into actionable sustainability insights.

๐Ÿš€ Key Features

  • โ€”Dual-Target Prediction: Predicts Global Warming Potential (GWP) and Circularity Index simultaneously.
  • โ€”Sankey Diagram Logic: Generates source-target-value JSON flows to visualize carbon footprints from extraction to finished products.
  • โ€”Automated ML Pipeline: Includes modular components for Data Ingestion, Transformation (OHE, Log Scaling, Outlier Handling), and Model Training.
  • โ€”RESTful API: Flask-based backend ready for integration with React/Next.js frontends.

๐Ÿ› ๏ธ Tech Stack

  • โ€”Language: Python 3.9
  • โ€”ML Frameworks: Scikit-Learn, XGBoost, CatBoost
  • โ€”API: Flask & Flask-CORS
  • โ€”DevOps: Docker, Hugging Face Spaces
  • โ€”Data Handling: Pandas, NumPy, Dill

๐Ÿ“Š Project Structure

text
LCAPredictor/
โ”œโ”€โ”€ artifacts/           # Saved model pickles and preprocessor
โ”œโ”€โ”€ data/                # Raw and processed datasets
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ components/      # Data Ingestion, Transformation, Model Trainer
โ”‚   โ”œโ”€โ”€ pipeline/        # Training and Prediction Pipelines
โ”‚   โ”œโ”€โ”€ logger.py        # Custom logging module
โ”‚   โ””โ”€โ”€ exception.py     # Custom exception handling
โ”œโ”€โ”€ app.py               # Flask API entry point
โ”œโ”€โ”€ Dockerfile           # Container configuration
โ””โ”€โ”€ requirements.txt     # Project dependencies