Skip to content
Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ SubSence AI

Build License Python Flask Last Commit Issues Forks Stars

AI-Powered Subscription Intelligence Platform

SubSence AI is an intelligent financial assistant that analyzes bank statements, detects subscriptions, identifies duplicate services, discovers hidden price hikes, and provides AI-powered recommendations to reduce unnecessary spending.


🌟 Features

  • πŸ“‚ Upload Bank Statements (CSV, PDF, JSON)
  • 🧠 AI-powered Subscription Detection
  • πŸ’° Financial Health Analysis
  • πŸ” Duplicate Subscription Detection
  • πŸ“ˆ Price Hike Detection
  • πŸ“Š Interactive Dashboard
  • πŸ€– AI Recommendations
  • πŸ“‘ Comprehensive Financial Report

πŸ— Project Architecture

                User Uploads Statement
                        β”‚
                        β–Ό
              Input Intelligence Module
                        β”‚
                        β–Ό
          Structured Transaction Extraction
                        β”‚
                        β–Ό
            Financial Intelligence Module
                        β”‚
                        β–Ό
        Subscription & Spending Analysis
                        β”‚
                        β–Ό
               AI Intelligence Module
                        β”‚
                        β–Ό
        Personalized Financial Insights
                        β”‚
                        β–Ό
            Dashboard & Final Report

πŸ“ Project Structure

SubSence-AI
β”‚
β”œβ”€β”€ backend/
β”‚   β”œβ”€β”€ app.py
β”‚   β”œβ”€β”€ input_intelligence/
β”‚   β”œβ”€β”€ FINANCIAL/
β”‚   β”œβ”€β”€ ai/
β”‚   β”œβ”€β”€ routes/
β”‚   └── uploads/
β”‚
β”œβ”€β”€ frontend/
β”‚   β”œβ”€β”€ index.html
β”‚   β”œβ”€β”€ upload.html
β”‚   β”œβ”€β”€ dashboard.html
β”‚   β”œβ”€β”€ loading.html
β”‚   β”œβ”€β”€ css/
β”‚   └── js/
β”‚
β”œβ”€β”€ sample_json/
β”‚
β”œβ”€β”€ README.md
β”‚
└── requirements.txt

βš™ Workflow

Step 1 β€” Upload

The user uploads a financial statement.

Supported formats:

  • CSV
  • PDF
  • JSON

The uploaded file is sent to:

POST /api/upload

Step 2 β€” Input Intelligence

The Input Intelligence module performs:

  • Statement Parsing
  • Data Cleaning
  • Merchant Extraction
  • Date Extraction
  • Amount Detection
  • Transaction Classification

Output:

Structured Transactions

Example

{
  "merchant":"Netflix",
  "amount":649,
  "date":"2025-01-05"
}

Step 3 β€” Financial Intelligence

The Financial Intelligence engine analyzes transactions.

It detects:

  • Active subscriptions
  • Duplicate subscriptions
  • Monthly spending
  • Annual spending
  • Subscription frequency
  • Price hikes
  • Spending trends
  • Financial health score

Output

financial_analysis.json

Step 4 β€” AI Intelligence

The AI module studies the financial analysis and generates recommendations.

Examples:

  • Cancel duplicate subscriptions
  • Switch to cheaper plans
  • Reduce unnecessary spending
  • Optimize recurring payments

Output

AI Recommendations

Step 5 β€” Dashboard

The frontend requests:

GET /api/dashboard

The dashboard displays:

  • Financial Health Score
  • Active Subscriptions
  • Duplicate Services
  • Price Hikes
  • Monthly Spending
  • AI Recommendations

πŸ”„ API Flow

Frontend
      β”‚
      β–Ό
POST /api/upload
      β”‚
      β–Ό
Input Intelligence
      β”‚
      β–Ό
Financial Intelligence
      β”‚
      β–Ό
AI Intelligence
      β”‚
      β–Ό
Dashboard JSON
      β”‚
      β–Ό
Frontend Dashboard

πŸ“‘ API Endpoints

Health

GET /api/health

Checks server status.


Upload

POST /api/upload

Uploads financial statement.


Analysis

GET /api/analysis/<analysis_id>

Returns complete financial analysis.


Dashboard

GET /api/dashboard

Returns dashboard data.


AI

GET /api/ai

Returns AI-generated recommendations.


Report

GET /api/report

Returns the complete report.


πŸ›  Technologies Used

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • Flask
  • Python

AI

  • Gemini API (optional)
  • Rule-based fallback

Data Processing

  • Pandas
  • JSON
  • CSV Parser
  • PDF Parser

πŸ’‘ Financial Intelligence

SubSence AI detects:

βœ… Recurring subscriptions

βœ… Duplicate streaming services

βœ… Hidden renewals

βœ… Silent price increases

βœ… Monthly subscription costs

βœ… Annual subscription costs

βœ… Subscription health score


πŸ€– AI Intelligence

The AI engine provides:

  • Smart saving recommendations
  • Subscription optimization
  • Duplicate service alerts
  • Financial health insights
  • Personalized advice

Deployed Link

https://subsence-ai.onrender.com/

🎯 User Journey

Upload Statement
       β”‚
       β–Ό
Transactions Extracted
       β”‚
       β–Ό
Subscriptions Detected
       β”‚
       β–Ό
Financial Analysis
       β”‚
       β–Ό
AI Recommendation
       β”‚
       β–Ό
Interactive Dashboard

πŸš€ How to Run

Clone

git clone <repository-url>

Install Dependencies

pip install -r requirements.txt

Start Backend

python backend/app.py

Open Browser

http://127.0.0.1:5000

βœ… Supported Inputs

Format Supported
CSV βœ…
PDF βœ…
JSON βœ…

πŸ“Š Output

SubSence AI generates:

  • Financial Health Score
  • Active Subscriptions
  • Duplicate Subscriptions
  • Price Hikes
  • Monthly Spending
  • AI Recommendations
  • Complete Financial Report

Future Enhancements

  • Bank API Integration
  • UPI Transaction Analysis
  • Email Receipt Parsing
  • Real-time Subscription Tracking
  • Mobile Application
  • Personalized Budget Planner
  • Predictive Spending Analytics

Contributors

Built with ❀️ by the SubSence AI Team.

About

AI Financial Leak Intelligence Platform for detecting subscriptions, recurring payments, duplicate services, silent price hikes, and personalized financial insights.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages