PROJECT 19 • DAY 1 OF 90 • FINANCIAL ANALYTICS

EXPENSEIQ
SPEND ENGINE.

An offline, privacy-first personal finance engine turning cryptic bank statement logs into clean categories, trend analytics, budget variance alerts, and dual-layer statistical + Isolation Forest spending anomaly detections.

Python 3.12Streamlit 1.35+TF-IDF + LogRegIsolation ForestSQLite3Plotly
ExpenseIQ Preview
CATEGORIZER
3-Layer Hybrid NLP
ANOMALY ENGINE
Z-Score + IsolForest
3 Layers
ML + 100+ Stems + Fallback
12 Categories
Clean Merchant Mapping
Dual Detector
Z-Score/IQR + IsolForest
5 / 5 Suites
Automated Pytest Passed
01 / Overview

PRIVACY-FIRST SPEND INTELLIGENCE WITH ZERO BANK CREDENTIALS.

Cryptic card statement lines hide stealth subscriptions and spending outliers. ExpenseIQ normalizes CSV statements locally on SQLite without touching cloud APIs.

01

Heuristic CSV Ingestion

Auto-detects date, description, amount, and category columns from heterogeneous bank & card exports (140+ sample rows included).

02

3-Layer Hybrid Classifier

Combines Joblib-serialized TfidfVectorizer + LogisticRegression (P >= 0.35 gate), 100+ merchant regex stems across 12 categories, and safe fallback.

03

Dual-Layer Anomalies

Flags extreme single spends via per-category Z-Score/IQR and catches multivariate timing/amount patterns via Isolation Forest.

04

Dynamic Budget Variance

Monitors monthly outlays against caps with clear Within Budget (<85%), Near Limit (85–100%), and Over Budget (>100%) badges.

05

Executive Spend Plots

Interactive Plotly daily burn rate charts, 7-day rolling averages, monthly trend bars, and category donuts.

06

100% Local Persistence

Zero-config SQLite3 storage paired with filtered CSV and JSON export deliverables.

02 / Architecture

HOW IT WORKS.

Raw CSV statements pass through column normalization, hybrid ML/regex classification, SQLite persistence, and parallel analytics/anomaly engines.

STAGE 01

CSV Sniffer

Heuristic date & amount normalization.

→
STAGE 02

Hybrid NLP

TF-IDF LogReg (P>=0.35) -> 100+ regex.

→
STAGE 03

SQLite Store

expenses.db persistence & budget caps.

→
STAGE 04

Anomaly AI

Category Z-Score/IQR + IsolationForest.

→
STAGE 05

Plotly Dash

KPIs, 7-day rolling & CSV/JSON export.

03 / Screenshots

APPLICATION SCREENSHOTS.

Live screens captured from the running application. Click any image to view full size, or follow setup instructions in the GitHub repository.

04 / Technical Details

CLASSIFICATION & BUDGET THRESHOLD ARCHITECTURE.

Key modules, rules, safety checks, and automated test results documented in the repository.

Engine Stage Algorithm / Threshold Operational Role
Layer 1 Text ML TfidfVectorizer + LogisticRegression (P >= 0.35) High-confidence merchant prediction
Layer 2 Rule Bank 100+ domain regex stems over 12 categories Deterministic override & low-conf catch
Anomaly Detection Category Z-Score/IQR + IsolationForest Univariate + multivariate outlier flags
Budget Variance Within (<85%) | Near (85–100%) | Over (>100%) Proactive monthly spend control
05 / Tech Stack

CORE TECHNOLOGIES.

Frameworks, databases, visualization tools, and testing libraries used in ExpenseIQ.

DASHBOARD
Streamlit 1.35+ • Plotly
TEXT ML & ANOMALY
Scikit-Learn • Joblib
DATA ENGINE
Pandas • NumPy
STORAGE
SQLite 3 (expenses.db)
TESTING
5 / 5 Pytest Suites
ENVIRONMENT
Python 3.12 • Offline First
06 / Next Steps

FUTURE ENHANCEMENTS.

Upcoming improvements planned for ExpenseIQ.

Multi-currency FX normalization for international card statements.
Local Tesseract receipt image scanning into itemized entries.
Recurring subscription & upcoming bill cycle calendar predictor.
Optional SQLCipher encrypted SQLite backup archives.
Custom user-taught correction feedback loop retraining Joblib weights.
Year-over-year category inflation & savings rate benchmarking.
OPEN-SOURCE PROJECT • GITHUB.COM/RAGURAMRRP

EXPLORE SOURCE & DOCS.

View the complete codebase, sample datasets, quick-launch scripts, and automated test suites on GitHub.