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
- Install Dependencies:
pip install -r requirements.txt - 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.