Templefield Technologies
Data Science / ML Engineering

Customer Churn Prediction

An end-to-end system for predicting customer churn, built in Python

Industry
Telecommunications (confidential client)
Client
Confidential — Telecommunications sector
Engagement period
October 2022 – January 2023
Delivery mode
Remote
Customer churn prediction

Situation

The telecommunications client was losing substantial revenue to customer churn, putting its market position under pressure. It lacked a reliable, automated way to identify at-risk customers before they left.

Objective

Templefield Technologies was engaged to build a comprehensive, end-to-end predictive system that identifies customers at risk of churning and surfaces the drivers behind that risk.

Approach

  • Data ingestion from spreadsheets and SQL databases, with exploratory analysis, cleaning, and validation
  • Classification of customers into risk categories using ensembles of decision trees, verified through cross-validation
  • Causal analysis linking input data to churn likelihood
  • Gradio visualizations displaying churn probabilities and feature importance
  • Performance monitoring via MLflow, model serving via FastAPI, and Kubernetes deployment for scalability

Results

The system enabled automated identification of at-risk customers, powering targeted email campaigns that significantly reduced churn and helped the client protect and expand its market share. These prediction-guided campaigns reduced the churn rate by 7%.

Technology stack

XGBoostPythonscikit-learnPandasMLflowFastAPIGradioKubernetesDocker
All work