AppLink: [Mpesa Finance App]
The M-Pesa Finance App is an AI-powered personal finance assistant built to clean your M-Pesa statements, analyze transactions, detect spending patterns, and forecast future expenses. Think of it as your budget’s watchdog — but smarter and way less dramatic.
• Automated Data Extraction
- Upload your M-Pesa PDFs
- The app parses → cleans → structures your data
- Removes footers, line breaks, duplicated spaces, inconsistent fields
• Data Preprocessing & Cleaning
- Handles messy formats and weird characters (like Withdraw\r\n)
- Converts dates, balances, and amounts correctly
- Detects outliers using IQR
- Normalizes and standardizes transaction categories
• Interactive Analysis Dashboard
- Total expenses, income, balances
- Category-wise insights (Send Money, Buy Goods, PayBill, Withdraw, etc.)
- Time filters (daily, weekly, monthly)
- Dynamic trend visualizations
• Forecasting Engine (AI + Time Series Models)
- Uses Prophet / ARIMA to forecast expenses
- Evaluates predictions using RMSE and MAE
- Supports future multivariate forecasting
- Predicts upcoming spending trends
• Smart Alerts & Insights
- Flags suspicious or unusual spending
- Notifies about overspending streaks
- Visualize your spendings
• Image & Report Saving
- Export charts and analysis screenshots directly
- Useful for financial tracking or monthly reports
- Clone the repository
git clone https://github.com/Brian342/MpesaFinance
cd MpesaApp.py- Install dependencies
pip install -r requirements.txt
- Run the app
streamlit run MpesaApp.py
Python
Streamlit
Pandas / NumPy
Prophet / ARIMA
Matplotlib / Plotly
Django (future API)
This project is licensed under the MIT License. See the LICENSE file for more details.





