Logo Lanfrica
  • Accueil
  • Atlas
  • Analyses
  • Documentation
  • Sign in

© 2026 Lanfrica. Tous droits réservés. Tous les droits d'auteur des ressources affichées sur le site Web Lanfrica appartiennent aux détenteurs de droits d'auteur d'origine, sauf indication contraire explicite.

EmmanuelOchieng01/mobile-lending-risk-kenya

Domaine:

socioeconomic
Créateur:
Emm
HĂ´te:
ML credit scoring API for mobile lending in Kenya # 🇰🇪 Mobile Lending Risk API - Kenya ## Problem Definition Across Kenya, mobile lending has become the everyday bank for millions — fast, digital, and accessible through a few taps. But while lending has gone mobile, risk assessment hasn’t kept up. Many platforms still depend on outdated rules or guesswork, leading to poor credit decisions, high defaults, and unfair loan rejections. This project builds a smarter alternative: a machine-learning API that reads real financial behavior — especially M-PESA transactions — to instantly predict a borrower’s credit risk. It gives lenders a data-driven, explainable, and human-centered way to decide who gets credit, creating a more inclusive and transparent digital lending ecosystem for Kenya. ML-powered credit scoring API for mobile lending in Kenya with M-PESA integration. ## Live Demo **API**: [Will be added after deployment] **Docs**: [Will be added after deployment]/docs ## Features - Real-time credit risk prediction - M-PESA transaction analysis - REST API with automatic documentation - Kenya-specific features ## Quick Start ### Local Setup ```bash # Install dependencies pip install -r requirements.txt # Run API cd api uvicorn main:app --reload ``` Visit: localhost ### Test API ```bash curl -X POST "localhost" \ -H "Content-Type: application/json" \ -d '{ "age": 32, "monthly_income": 45000, "loan_amount": 50000, "loan_term_months": 12, "existing_loans": 1, "previous_defaults": 0, "employment_status": "employed", "education_level": "university", "dependents": 2, "mpesa_transactions_monthly": 45, "mpesa_average_balance": 15000, "mpesa_savings_rate": 0.15 }' ``` ## API Endpoints | Endpoint | Method | Description | |----------|--------|-------------| | `/` | GET | API information | | `/health` | GET | Health check | | `/predict` | POST | Score loan applicant | ## Example Response ```json { "app …

Visit

github.com

Languages

Lusengo

Licenses

MIT