Skip to content

Latest commit

Β 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š Customer Churn Prediction System

An end-to-end Machine Learning project that predicts whether a telecom customer will churn using classification models and a deployed Streamlit web application.


πŸš€ Live Demo

Click here to view the app


πŸ“Œ Problem Statement

Telecom companies lose revenue when customers leave (churn). The goal is to predict churn in advance so businesses can take proactive actions.


πŸ“‚ Dataset

  • Telco Customer Churn Dataset
  • Features include:
    • Customer demographics
    • Subscription details
    • Service usage
    • Billing information

🧠 Machine Learning Pipeline

1. Data Preprocessing

  • Missing value handling
  • Encoding categorical variables
  • Feature scaling

2. Feature Engineering

  • Tenure groups
  • Spend categories
  • Engagement features
  • Risk indicators

3. Handling Imbalance

  • SMOTE (Synthetic Minority Oversampling Technique)

4. Models Trained

  • Logistic Regression βœ… (Final Model)
  • Decision Tree
  • Random Forest
  • XGBoost

πŸ† Best Model Performance

Metric Score
Accuracy ~0.77
Precision ~0.54
Recall ~0.79
F1 Score ~0.64
ROC-AUC ~0.86

πŸ“Š Key Insights

  • Month-to-month contracts have highest churn
  • Low tenure customers are high risk
  • Electronic check payments increase churn probability
  • Customers with more services are less likely to churn

🌐 Deployment

  • Built using Streamlit
  • Real-time prediction interface
  • User-friendly input form

πŸ›  Tech Stack

  • Python
  • Pandas, NumPy
  • Scikit-learn
  • Imbalanced-learn (SMOTE)
  • Streamlit
  • Matplotlib / Seaborn

πŸ“ Project Structure

customer-churn-prediction/

β”‚

β”œβ”€β”€ app/

β”‚ └── app.py

β”‚

β”œβ”€β”€ models/

β”‚ β”œβ”€β”€ logistic_model.pkl

β”‚ └── preprocessor.pkl

β”‚

β”œβ”€β”€ notebooks/

β”‚

β”œβ”€β”€ data/

β”‚

β”œβ”€β”€ requirements.txt

β”œβ”€β”€ README.md

β”œβ”€β”€ .gitignore

About

πŸ“Š End-to-end telecom customer churn prediction system using Machine Learning, SMOTE, classification models, and a deployed Streamlit application for real-time churn risk prediction.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages