SmartSeg-AI / README.md
mallelamanoj75's picture
Upload README.md
1afe04e verified
|
Raw
History Blame Contribute Delete
2.78 kB

A newer version of the Gradio SDK is available: 6.25.0

Upgrade
metadata
title: SmartSeg AI
emoji: πŸ€–
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 5.9.1
python_version: 3.11
app_file: app.py

πŸ€– SmartSeg AI – Advanced Customer Segmentation Dashboard

SmartSeg AI is a professional machine learning application that uses K-Means clustering to segment customers based on their demographic and spending behavior. It provides real-time predictions and interactive visualizations to help businesses understand their customer base better.

πŸš€ Features

  • K-Means Clustering: Robust segmentation using industry-standard algorithms.
  • Real-time Prediction: Instant classification of new customer data.
  • Interactive Dashboards: Visualized using Plotly and Gradio.
  • PCA Analysis: 2D projection of high-dimensional data for better cluster visibility.
  • Business Insights: Actionable advice based on customer segments.

πŸ“Š Dataset

The project uses the Mall Customer Segmentation dataset, which includes:

  • Gender
  • Age
  • Annual Income (k$)
  • Spending Score (1-100)

πŸ› οΈ Installation & Local Setup

  1. Clone the repository:

    git clone https://huggingface.co/spaces/your-username/smartseg-ai
    cd smartseg-ai
    
  2. Install dependencies:

    pip install -r requirements.txt
    
  3. Train the model (Optional):

    python train.py
    
  4. Run the App:

    python app.py
    

πŸ“‚ Project Structure

smartseg-ai/
β”‚
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ Mall_Customers.csv        # Raw dataset
β”‚   └── clustered_customers.csv  # Data with cluster labels
β”œβ”€β”€ model/
β”‚   β”œβ”€β”€ kmeans.pkl               # Trained K-Means model
β”‚   β”œβ”€β”€ scaler.pkl               # StandardScaler object
β”‚   └── label_encoder.pkl        # LabelEncoder for Gender
β”œβ”€β”€ outputs/
β”‚   └── elbow_plot.png           # Elbow method visualization
β”œβ”€β”€ train.py                     # Model training script
β”œβ”€β”€ app.py                       # Gradio dashboard application
β”œβ”€β”€ requirements.txt             # Python dependencies
└── README.md                    # Project documentation

πŸ€– Hugging Face Deployment

The live version of this app is hosted on Hugging Face Spaces.

View the Live Demo: https://huggingface.co/spaces/mallelamanoj75/SmartSeg-AI

How to Deploy Your Own

  1. Create a new Space with the Gradio SDK.
  2. Upload all files (including model/ and data/ directories).
  3. The app will automatically build and run.

πŸ“Έ Screenshots

(Add screenshots here after running the app)


Built with ❀️ by Manojkumar