Skip to content

Mageed-Ghaleb/SmartMerchantAdvance

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

SmartMerchantAdvance

A machine learning + optimization pipeline that simulates a real-world solution for automating merchant loan offerings, inspired by a deployed fintech system used at scale.

πŸ“Œ Project Overview

SmartMerchantAdvance is an open-source replica of a real-world AI system designed to predict merchant processing volumes and generate optimized loan offers. It mimics a production-grade solution originally built at Moneris, adapted for public demonstration using simulated data.

πŸ’‘ Business Problem

Merchants often need short-term financing. By predicting their future transaction volumes, we can proactively offer optimized cash advances tailored to their capacity and risk profileβ€”maximizing both acceptance and profitability.

🧠 Methodology

  • Forecasting: A Convolutional Neural Network (CNN) model predicts 12 months of future processing volume.
  • Optimization: A nonlinear mixed-integer model (solved via Gurobi) determines the optimal loan amount, term, and pricing for each merchant.
  • Integration: Forecast results feed directly into the optimization engine.

πŸ§ͺ Technologies Used

  • Python
  • PyTorch (CNN)
  • Gurobi Optimizer
  • Pandas / NumPy
  • Matplotlib / Seaborn

πŸ“ Project Structure

SmartMerchantAdvance/
β”œβ”€β”€ data/                # Simulated merchant time series data
β”œβ”€β”€ models/              # Trained models and checkpoints
β”œβ”€β”€ notebooks/           # EDA, model training, and evaluation notebooks
β”œβ”€β”€ outputs/             # Optimization results and plots
β”œβ”€β”€ src/                 # Core forecasting and optimization code
β”œβ”€β”€ requirements.txt     # Project dependencies
└── README.md            # Project documentation

πŸš€ Getting Started

  1. Clone the repo:
git clone https://github.com/mageed-ghaleb/SmartMerchantAdvance.git
cd SmartMerchantAdvance
  1. Install dependencies:
pip install -r requirements.txt
  1. Run a basic simulation pipeline:
python src/run_pipeline.py

πŸ“Š Demo (Coming Soon)

We will soon add a Streamlit-based dashboard for interactive forecasting and optimization tuning.

πŸ‘¨β€πŸ’» Author

Created by Mageed Ghaleb – Senior Data Scientist | Optimization & AI Specialist
Inspired by real-world work at Moneris (Canada’s leading payment processor)

πŸ“„ License

MIT License – Free to use with attribution.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages