Giter Club home page Giter Club logo

e-commerce-customers-automatic-clustering's Introduction

E-commerce customers automatic classification by ML/AI

ecommerce

1.Background

The Brazilian e-commerce platform Olist would like to use artificial intelligence to automatically classify customers into categories.

The business goal is to identify user types based on their personal data and buying behavior. This can help them with:

1. Competitive pricing.
2. Targeting customers.
3. Decision making.
4. Making better strategies.

Unsupervised machine learning should provide better results than traditional methods such as recency-frequency-monetary value (RFM) analysis.

Expected goals for this project:

  • offer to Olist Marketing team a straightforward visualization of the machine learning (ML) classification algorithm output.

  • estimate the timespan for the ML classification pipeline and offer to Olist a reasonable maintenance contract.

2. The data

The Brazilian e-commerce company Olist dataset

https://www.kaggle.com/olistbr/brazilian-ecommerce

provides 9 csv files. Those spreadsheets can be combined into a Pandas dataframe to extract relevant information.

3. The model outcome

For details, you can consult the full presentation describing target achievement to OList Marketing team

Below an illustration of 4 clusters generated using the K-Means algorithm and represented after projection on the two main principal components

clusters

Test data fit well into those clusters, indicating a robust model. The evaluation of pipeline stability over time showed that maintenance is not needed at least for a year.

chisquare Calculations have been carried out using rapids.ai, running on Google COLABS GPUs

4. Conclusions

  • Clusters obtained by machine learning correspond to distinct customers behaviors and can be used to improve marketing targets.

  • Plotting « test » data in 2D using PCA showed that new customers will fit well into the segments.

  • The Chi-Test showed K-means segmentation stability over 1-2 years timespan.

  • Best selling products are for personal care, in the categories “bed-bath-table” and “health-beauty”

  • EDA showed that most customers only bought once. This limits RFM analysis use.

Python code can be found in the following Jupyter notebooks:

jupyterpart 1: Data cleaning and exploration

jupyterpart 2: Alghoritms for unsupervised clustering of the customers

e-commerce-customers-automatic-clustering's People

Contributors

opsabarsec avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  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.