CP#26 - Retail Pulse: Customer Journey Prediction & Marketing Impact Analysis!!!


πŸš€ Excited to kick off our new project: Retail Pulse – Customer Journey Prediction & Marketing Impact Analysis πŸ“ŠπŸ›οΈ

This machine learning project is built around 10 months of real-world mobile sales data from TechCorner, a retail store based in Rangamati, Bangladesh. Our goal? To uncover deep insights into customer behavior, Facebook marketing effectiveness, and purchasing trends, using a blend of classification, clustering, and interactive visualizations.

We’ll be building a smart, user-friendly Streamlit dashboard (with a FastAPI backend πŸ’») that allows business users to interactively explore predictions, marketing impact, and customer segments β€” all driven by data.

πŸ“¦ Dataset: Link to dataset

Here’s what the project journey looks like:

βœ… Exploratory Data Analysis (EDA)

  • Understand geographic distribution (local vs. non-local buyers)

  • Analyze behavioral trends (new vs. returning customers, Facebook vs. walk-ins)

  • Handle missing data and encode categorical variables

  • Explore brand preferences and pricing behavior

βœ… Model Development
Classification Models

  • Predict customer return likelihood

  • Predict if Facebook marketing influenced a sale

Clustering Models

  • Segment customers by engagement type, brand loyalty, and purchase behavior

πŸ† Evaluation using: Accuracy, Precision, Recall, F1-score, ROC-AUC, and Silhouette Score
πŸ› οΈ Hyperparameter tuning to squeeze out peak performance

βœ… Model Deployment

  • A sleek Streamlit web app to:
    πŸ”Ή Input customer attributes and receive predictions
    πŸ”Ή Explore interactive dashboards
    πŸ”Ή Visualize customer segments and marketing reach

  • FastAPI backend deployed via Render to support robust architecture


πŸ—ΊοΈ Our Timeline

πŸ“Œ Week 1: Project Setup (GitHub, virtual environment, folder structure)
πŸ“Œ Week 2: EDA & Data Cleaning (visual insights, preprocessing)
πŸ“Œ Weeks 3-4: Model Development (classification, clustering, tuning & evaluation)
πŸ“Œ Week 5: Streamlit Dashboard Launch + Backend Deployment on Render


πŸ›  Tech Stack:

  • Data Handling: pandas, numpy

  • Visualization: matplotlib, seaborn, plotly

  • ML Models: scikit-learn, xgboost, lightgbm

  • Clustering & Dimensionality Reduction: KMeans, DBSCAN, PCA

  • Deployment: Streamlit, FastAPI, Render

  • Python: v3.8+


Link to GitHub:

GitHub - SuperDataScience-Community-Projects/SDS-CP026-retail-pulse: A Machine Learning model to predict consumer behavior using FB marketplace data

Project Mentor: @Shaheer Airaj Ahmed

Project Lead: @Adebayo Olaonipekun

Team Members: @Eslam Mahmoud Awad, @Raju Kalidindi, @AYUSH SHARMA, @Pavan Kumar Reddy Kathi, @Greg Gibson, @KARL MUNROE, @Maryam