explaingit

jaideep005/churn_retention_system

Analysis updated 2026-05-18

57PythonAudience · pm founderComplexity · 3/5Setup · easy

TLDR

A Streamlit web app that predicts which customers are likely to churn and generates personalized retention strategies for each at-risk customer.

Mindmap

mindmap
  root((churnguard ai))
    What it does
      Predicts customer churn
      Scores risk segments
      Generates retention strategies
    Tech stack
      Python
      Streamlit
      scikit-learn
    Use cases
      Load telecom or custom data
      Compare two ML models
      Export CSV for Power BI
    Audience
      Business teams
      Data analysts

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Load a public telecom dataset or your own API data to predict customer churn.

USE CASE 2

Compare Logistic Regression and Random Forest models and use whichever scores higher.

USE CASE 3

View a dashboard of churn probability, revenue at risk, and customer risk segments.

USE CASE 4

Export a CSV of churn predictions and lifetime value estimates for use in Power BI.

What is it built with?

PythonStreamlitscikit-learn

How does it compare?

jaideep005/churn_retention_systemhexsecteam/droidhunterkyrtstn/syv
Stars575757
LanguagePythonPythonPython
Setup difficultyeasyhardeasy
Complexity3/54/52/5
Audiencepm founderresearcherops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Works without an API key using a rule-based fallback, a Gemini or OpenAI key improves the retention suggestions.

In plain English

ChurnGuard AI is a web app that predicts which customers are likely to stop using a service and then suggests personalized strategies to keep them. It is built for businesses that want to identify at-risk customers before they leave, rather than reacting after the fact. The app works through five steps shown as tabs in the browser. First, it loads customer data, either from a public IBM telecom dataset or from a custom API endpoint you provide. Second, it cleans and prepares the data automatically, calculating things like estimated customer lifetime value, engagement scores, and risk segments. Third, it trains two machine learning models (Logistic Regression and Random Forest) on that data, runs cross-validation to measure accuracy, and picks the better-performing one to generate predictions for all customers. Fourth, it displays a dashboard with charts showing churn probability distribution, revenue at risk, and how customers break into low, medium, and high risk groups. Fifth, it generates a retention strategy for each at-risk customer using an AI language model. For the retention strategies, the app supports three modes. If you do not have an API key, it uses a built-in rule-based template that produces reasonably detailed suggestions. If you have a Google Gemini or OpenAI API key, it uses that model instead to produce more tailored recommendations. Once analysis is complete, you can export a CSV file that includes each customer's churn probability, predicted outcome, risk segment, and estimated 24-month lifetime value. The file is formatted for easy import into Power BI dashboards. The app runs locally via Streamlit and opens in a browser at localhost. It requires Python 3.9 or higher and a standard set of data science libraries. No database or server setup is needed beyond installing the dependencies.

Copy-paste prompts

Prompt 1
Help me run this Streamlit churn prediction app locally with Python 3.9 or higher.
Prompt 2
Show me how to connect my own API endpoint as a custom data source for this app.
Prompt 3
Explain how this repo generates retention strategies with a Gemini or OpenAI API key.
Prompt 4
Walk me through exporting this app's churn predictions as a CSV for Power BI.

Frequently asked questions

What is churn_retention_system?

A Streamlit web app that predicts which customers are likely to churn and generates personalized retention strategies for each at-risk customer.

What language is churn_retention_system written in?

Mainly Python. The stack also includes Python, Streamlit, scikit-learn.

How hard is churn_retention_system to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is churn_retention_system for?

Mainly pm founder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.