Code Monkey home page Code Monkey logo

real-time-churn-prediction-for-telecom-companies's Introduction

Real-Time Churn Prediction System for Telecom Companies

This project is a proof-of-concept system that uses Kafka, Apache Spark, and H2O GBM model to predict churn in real-time for a telecom company. The system is divided into three modules: a publisher module that sends customer data to a Kafka topic, a consumer module that reads data from the Kafka topic and writes it to an Apache Spark stream, and a third module that reads from the Apache Spark stream and uses an H2O GBM model to predict churn rate.

The project was divided into two stages. In the first stage, a classification model was trained on a public telecom dataset from Kaggle. This model was used to predict customer churn based on features such as call duration, call frequency, and plan type. In the second stage, a Kafka service was configured on the Upstash Kafka platform, and the Kafka producer, consumer, and H2O integration with Apache Spark stream were designed and implemented.

Getting Started

You will need to download the public telecom dataset from Kaggle and place it in the data folder (https://www.kaggle.com/datasets/blastchar/telco-customer-churn).

To run the system, follow these steps:

  1. Create an account on Upstash Kafka and create a topic
  2. Create a Databricks community account
  3. Import all .py files as Source to be converted to databricks notebooks
  4. Train the model running the training notebook
  5. Run the publisher module to send customer data to the Kafka topic
  6. Run the third module to predict churn rate in real-time

Conclusion

This real-time churn prediction system has significant potential to benefit the telecom industry by providing a powerful tool for predicting and managing churn. With further development and refinement, this system could become a valuable tool for companies looking to improve customer retention and increase profitability.

real-time-churn-prediction-for-telecom-companies's People

Contributors

derruba2000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.