DIVYANSHI SINGH
Fix YAML syntax in README.md metadata
9e7b7e8
metadata
title: 'SegmentX: Behavioral Intelligence'
emoji: πŸ›οΈ
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
license: mit

πŸ›οΈ SegmentX: E-Commerce Behavioral Intelligence Portal

SegmentX is a professional behavioral intelligence platform. It transforms e-commerce transactions into actionable segments using RFM and K-Means++. Features include revenue forecasting, Pareto analysis, churn probability, and product affinity mapping to maximize customer retention and mission-critical marketing ROI.


πŸš€ Key Features

  • Behavioral Segmentation: Automated RFM analysis and K-Means++ clustering for precision customer categorization.
  • Advanced Forecasting: Monthly revenue trend analysis to identify seasonality and long-term growth patterns.
  • Predictive Analytics: Individual-level Churn Probability (%) and Customer Lifetime Value (CLV) projections.
  • Market Basket Insights: Segment-specific product affinity analysis highlighting top-selling items per cluster.
  • Strategic Visualization: Heatmaps, 2D PCA projections, and Pareto-based revenue contribution charts.
  • Campaign Ready: Interactive direct-to-CSV segment export for immediate use in email marketing tools.

πŸ“ Project Structure

customer_segmentation/
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ raw/                # Cleaned transactions (UK-only)
β”‚   └── processed/          # Aggregated RFM features and scaled data
β”œβ”€β”€ docs/                   # Project documentation and instructions
β”œβ”€β”€ models/                 # Saved K-Means cluster model
β”œβ”€β”€ outputs/                # Visualization plots, segment mapping, and product affinity
β”œβ”€β”€ pipeline/               # Modular Python scripts (Cleaning, RFM, Training)
β”œβ”€β”€ app.py                  # Streamlit dashboard
β”œβ”€β”€ README.md               # User guide and setup instructions
β”œβ”€β”€ Procfile                # Deployment configuration
└── requirements.txt        # Required Python libraries

πŸ› οΈ Installation & Usage

  1. Install Dependencies:
    pip install -r requirements.txt
    
  2. Launch the Dashboard:
    streamlit run app.py
    

πŸš€ Deployment

This project is configured for one-click deployment to Heroku, Streamlit Cloud, or Docker.

  • Procfile: Pre-configured for web dyno execution.
  • runtime.txt: Specifies Python 3.10 usage.
  • .gitignore: Optimized to handle large dataset storage.

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.