AI powered Mobile Money Scam Detector for East Africa
# π‘οΈ NgaoAI - AI-Powered Mobile Money Scam Detector
> *Ngao = Shield in Swahili*
NgaoAI detects mobile money scams targeting M-Pesa, Airtel Money, and Tigo Pesa users in East Africa. Built specifically for Swahili - the first of its kind.
## How it works
1. User pastes or forwards a suspicious SMS/WhatsApp message
2. NgaoAI analyzes it using a fine-tuned Swahili NLP model
3. Returns: **SCAM π¨** or **SAFE β
** + explanation in Swahili
## Channels
- π Web app (PWA)
- π± WhatsApp Bot
- π USSD (works on 2G feature phones - no internet needed)
## Tech Stack
- **Model:** Fine-tuned AfriBERT (Hugging Face)
- **Backend:** Python + FastAPI
- **Frontend:** React (Next.js)
- **USSD:** Africa's Talking API
- **WhatsApp:** Twilio / WhatsApp Business API
## Project Structure
```
ngaoai/
βββ backend/ # FastAPI server + model inference
βββ frontend/ # Next.js web app
βββ model/ # Training scripts + model files
βββ data/
β βββ raw/ # Raw collected scam messages
β βββ processed/ # Cleaned, labeled dataset
βββ scripts/ # Data collection + utility scripts
βββ README.md
```
## Setup
```bash
# Backend
cd backend
pip install -r requirements.txt
uvicorn main:app --reload
# Frontend
cd frontend
npm install
npm run dev
```
## Author
**Edward Elisha Musabila**
- GitHub: @eddyelly
- Web: edwardelisha.com