Skip to content

sudhanvapops/warehouse_intel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏭 AI-Powered Smart Warehouse Inventory Intelligence Platform

A hackathon-grade full-stack Streamlit application for intelligent inventory management, demand forecasting, anomaly detection, and AI-assisted decision making.


🚀 Quick Start

# 1. Clone the repo
git clone "https://github.com/sudhanvapops/warehouse_intel.git"
cd warehouse_intel

# 2. Install dependencies
pip install -r requirements.txt

# 3. Run the app
streamlit run app.py

Open http://localhost:8501 in your browser.


📁 Project Structure

warehouse_intel/
├── app.py                     # Main entry point & routing
├── requirements.txt
├── data/
│   └── inventory_demand_forecasting_dataset.csv
├── pages/
│   ├── dashboard.py           # KPIs & demand visualizations
│   ├── inventory.py           # Optimization engine
│   ├── forecasting.py         # ML demand forecasting
│   ├── segmentation.py        # K-Means product clustering
│   ├── anomalies.py           # Isolation Forest anomaly detection
│   ├── simulator.py           # What-If scenario simulator
│   ├── assistant.py           # AI chat assistant
│   └── report.py              # Executive report generator
├── src/
│   ├── data_loader.py         # Data loading + simulated columns
│   ├── inventory_optimizer.py # Safety stock & ROP calculations
│   ├── forecasting.py         # Model training & evaluation
│   ├── clustering.py          # Product segmentation
│   ├── anomaly_detection.py   # Isolation Forest detection
│   ├── report_generator.py    # Markdown report generation
│   └── ai_assistant.py        # LLM-ready Q&A module
└── README.md

🎯 Features

Feature Method Description
Inventory Analytics Pandas + Plotly KPIs, trends, promotion analysis
Inventory Optimization Statistical (Z-score) Safety stock, ROP, reorder alerts
Demand Forecasting LR / Random Forest / XGBoost Multi-model comparison + 30-day forecast
Product Segmentation K-Means (k=3) Fast / Medium / Slow moving segments
Anomaly Detection Isolation Forest Demand spikes, drops, abnormal patterns
What-If Simulator Parametric recalculation Instant scenario modeling
AI Assistant Rule-based + LLM API Natural language inventory Q&A
Executive Report Auto-generated Markdown Downloadable business summary

📊 Dataset

  • Records: 4,380 rows
  • Columns: date, store_id, product_id, price, promotion, demand
  • Products: A, B, C, D
  • Stores: 3 stores
  • Period: Full year 2024

Simulated Columns (Assumptions)

Column Simulation Assumption
current_stock Uniform random 20–200 per product-store Represents snapshot stock at analysis time
lead_time_days Uniform random 3–14 per product Typical supplier lead time range

🤖 AI Assistant — LLM Integration

The assistant works out-of-the-box with rule-based intelligence.

To enable real LLM responses:

  1. Open the AI Assistant page
  2. Expand Connect LLM API
  3. Select your provider (Claude / OpenAI)
  4. Paste your API key

Supports: Claude (Anthropic) · OpenAI GPT-4o


🛠️ Tech Stack

  • Streamlit — UI framework
  • Pandas / NumPy — Data processing
  • Plotly — Interactive charts
  • Scikit-learn — Linear Regression, Random Forest, K-Means, Isolation Forest
  • XGBoost — Gradient boosting forecast model

📈 Model Performance

Models are trained on 80% of data and evaluated on 20% hold-out.

Best model is auto-selected by lowest RMSE.


Built for hackathon. Production-ready architecture.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages