An India-first Personal Financial Intelligence System
An independent, local-first personal financial intelligence system designed to bring financial accounts, bank statements and transactions together into a coherent and verifiable picture of personal finances.
Built around encrypted financial vaults, deterministic calculations, statement intelligence, and reconciliation, Personal Financial Intelligence (PFI) explores how financial information can be organised, validated, and understood without relying on third-party cloud aggregators.
Financial intelligence begins with trustworthy financial data.
The Idea
Personal financial information is scattered across bank accounts, credit cards, savings instruments and financial statements. Each institution provides information in its own format, with different descriptions, transaction conventions and reporting periods.
Bringing this information together is only the first step.
Transactions need to be organised, income and expenses distinguished from internal transfers, statement periods verified, and account balances reconciled. Without this underlying integrity, even a sophisticated financial dashboard can present an incomplete or misleading picture.
Personal Financial Intelligence is built around a simple idea: financial intelligence begins with trustworthy financial data.
Rather than starting with dashboards or recommendations, PFI starts with the underlying financial record. It brings together statement ingestion, transaction organisation, deterministic financial calculations, and account reconciliation to establish a more reliable view of financial activity.
Designed around Indian banking realities, the system supports statement formats and transaction conventions from major Indian banks, alongside custom CSV formats.
Its broader objective is to move beyond recording transactions towards understanding the financial activity they represent.
Record → Organise → Reconcile → Understand → Anticipate
Who Is This For?
Personal Financial Intelligence is built for individuals and households who want a clearer, more reliable understanding of their financial lives.
It is particularly relevant for people who manage money across multiple bank accounts, credit cards, savings instruments, and financial institutions, and find it difficult to bring that information together into one coherent picture.
It is designed for those who:
- Want to consolidate financial information scattered across different accounts and statements.
- Prefer to work with verifiable financial data rather than rely on fragmented summaries.
- Want to understand their transactions, spending patterns, and overall financial position.
- Value privacy, control over their financial information, and a local-first approach to managing sensitive data.
PFI is for people who want to take ownership of their financial information and build a trustworthy foundation for understanding their finances.
How It Works
Financial Profiles & Accounts
Personal finances rarely exist within a single account. An individual may have multiple savings accounts, current accounts, credit cards and other financial instruments, each representing a different part of their financial activity.
PFI organises financial information through profiles and their associated accounts.
Each profile maintains its own financial records and independently encrypted vault. Multiple profiles can be maintained on the same host, with separate encryption keys and isolated financial databases.
This allows individuals to maintain distinct financial contexts, such as personal and professional finances, or enables different members sharing a computer to maintain independent records.
Profiles are deliberately independent. PFI does not combine information across profiles or provide a consolidated household balance sheet. Its focus is the integrity and understanding of each financial record.
Account management includes opening balances, opening balance dates, and account-level controls. These establish the starting point against which subsequent financial activity can be evaluated.
The objective is to create a structured financial record in which accounts, transactions and their relationships remain connected and traceable.
Statement Ingestion & Organisation
Bank statements are an important source of financial information, but their formats are rarely consistent.
Date conventions, number formats, debit and credit representations, transaction descriptions and additional headers or footers can differ between institutions.
PFI includes a CSV ingestion pipeline designed to handle common Indian banking formats, including variations in date representation, Indian number grouping and transaction sign conventions.
Imported transactions pass through a structured staging and validation process before being committed to the financial database.
The system also maintains transaction provenance, retaining original bank narration and the relationship between transactions and their source statements and imports.
This is important because a financial record should not simply contain a cleaned-up transaction description. It should retain enough information to understand where the record originated and how it entered the system.
PFI also incorporates deterministic format recognition and a privacy-preserving format discovery process to support variations in statement structures.
The objective is to reduce manual processing while preserving the integrity and traceability of imported financial information.
Financial Calculations & Cash Flow
Once financial transactions are organised, they can be used to understand how money moves through accounts and across time.
PFI provides deterministic income and expense calculations, monthly cash-flow summaries and category-level breakdowns.
An important distinction is the treatment of internal transfers.
Moving money between two accounts does not represent income or expenditure. Similarly, settling a credit card balance should not cause the underlying spending to be counted twice.
PFI incorporates transfer matching to identify corresponding debit and credit transactions across accounts. This allows financial summaries to distinguish actual economic activity from movements of money between accounts.
The calculation engine also maintains currency isolation, preventing transactions denominated in different currencies from being combined into misleading totals.
Financial calculations use exact decimal arithmetic rather than binary floating-point approximations, an important consideration when working with monetary values.
The objective is to produce financial summaries that are consistent, reproducible and traceable to the underlying transactions.
Statement & Account Reconciliation
A collection of imported transactions does not automatically constitute a complete financial record.
Statements may be missing, periods may be incomplete, and transaction totals may not agree with the balances reported by the bank.
PFI approaches reconciliation as a distinct part of financial intelligence.
Its reconciliation capabilities include:
- Account-by-month completeness: A matrix showing statement coverage across the lifetime of an account, distinguishing different levels of supporting evidence and missing periods.
- Balance-chain verification: Checking whether an account’s opening balance corresponds to the previous closing balance and whether transaction totals reconcile with reported balances.
- Transfer candidate pairing: Identifying potential transfers between accounts using matching amounts, currencies, debit and credit directions, and date proximity.
- Transaction integrity: Protecting the financial attributes of transactions participating in active transfer matches.
The completeness matrix distinguishes between statement metadata, balance-supported evidence, and user-attested information. These represent different levels of assurance rather than treating every imported month as equally verified.
These capabilities help identify gaps, inconsistencies, and relationships that may otherwise remain hidden in a conventional transaction list.
The intention is not to assume that imported information is correct simply because it has been accepted by the application. It is to provide mechanisms for examining whether the financial record is internally consistent.
Recurring Patterns & Spending Anomalies
Financial transactions contain patterns that are not always immediately visible in a list of individual entries.
Salary credits, rent, subscriptions, utility payments and other recurring commitments tend to follow identifiable patterns. Similarly, unusual spending and duplicate transactions can be difficult to recognise without examining historical activity.
PFI uses deterministic, locally executed analytical methods to examine these patterns.
Recurring commitment detection
The system identifies recurring transaction patterns across four cadences:
- Weekly
- Bi-weekly
- Monthly
- Quarterly
Transactions are grouped using currency, account, transaction type, and normalised merchant descriptions. With at least two historical transactions, the system can identify a recurring cadence, estimate average run-rates, and project expected payment dates.
The purpose is to make regular financial commitments more visible and provide a clearer understanding of recurring cash-flow requirements.
Spending anomalies and outliers
PFI also examines expenses against historical category behaviour to identify unusual spending.
The anomaly detection mechanism uses a leave-one-out statistical approach, flagging transactions that exceed a +2 standard deviation threshold relative to the historical category baseline, subject to a minimum of four baseline transactions.
Potential duplicate debits within a three-day window are also flagged for examination.
These are statistical indicators, not conclusions about whether a transaction is incorrect or inappropriate. Their purpose is to draw attention to activity that may warrant a closer look.
Both mechanisms operate through deterministic local calculations rather than sending transaction descriptions to external AI services.
Financial Reporting & Exports
Financial information becomes more useful when it can be examined outside the application.
PFI provides financial report generation in CSV, Excel, and PDF formats.
Excel reports support multi-tab workbooks, while PDF reports provide structured financial summaries. The reporting process also incorporates exact monetary formatting and protection against spreadsheet formula injection.
Reports are generated in memory rather than through temporary plaintext financial files on disk.
This allows users to examine and retain their financial information in familiar formats while keeping the application’s own storage architecture independent of external reporting files.
Establishing Financial Integrity
Financial analysis is only as reliable as the information on which it depends.
A monthly cash-flow summary may look convincing even when statements are missing. A balance may appear correct while individual transactions have been duplicated or omitted. Transfers between accounts may be mistaken for income or expenditure.
PFI treats these as problems that need to be examined rather than assumptions that can be ignored.
Its approach combines transaction provenance, statement completeness, account balance continuity, transfer identification and deterministic calculations.
Consider the balance chain of an account. The opening balance of a statement period should correspond to the preceding period’s closing balance. The net movement across the period should also agree with the transactions recorded within it.
These relationships provide a mathematical basis for examining whether the financial record is internally consistent.
Transfer neutrality adds another important dimension. A debit from one account and a corresponding credit to another should not inflate income or expenditure simply because money has moved between accounts.
The distinction between different levels of statement evidence is equally important. A month supported by imported statement metadata is not necessarily equivalent to one supported only by a manually attested balance.
By making these distinctions visible, PFI attempts to provide a clearer understanding of the quality and completeness of the financial record itself.
The objective is to move beyond presenting financial numbers towards establishing confidence in how those numbers were derived.
Privacy & Security
Personal financial information is among the most sensitive information an individual maintains. Bank statements, transaction histories, account balances, and financial behaviour reveal considerably more than simple spending patterns.
PFI is designed around a local-first architecture in which financial databases are maintained as independently encrypted vaults on the host computer.
Each profile has its own data encryption key (DEK), independently wrapped using the user’s passphrase and Recovery Card secret.
The financial database is encrypted at rest using AES-256-GCM. When a vault is unlocked, its SQLite database operates transiently in memory rather than as a persistent plaintext database on disk.
The architecture incorporates several additional protections:
- Independent encrypted vaults: Separate financial databases and encryption keys for each profile.
- Authenticated encryption: AES-256-GCM protects financial data at rest.
- Key derivation: PBKDF2-HMAC-SHA256 with 600,000 iterations is used for passphrase-based key wrapping.
- Recovery Card: An independent recovery mechanism for the wrapped data encryption key.
- Concurrency controls: Cross-process locking and optimistic concurrency controls protect against conflicting updates.
- Durable storage: Atomic saves, crash-recovery mechanisms, and authenticated backups protect the integrity of stored financial records.
PFI does not maintain a central database of users’ financial profiles, provide cloud-based financial data aggregation, or offer central key escrow.
The Recovery Card provides an independent means of recovering the encrypted data encryption key. If both the passphrase and Recovery Card secret are lost, the encrypted financial data cannot be recovered.
There are also important limits to the privacy guarantees.
Financial data is unencrypted in active session memory while a vault is unlocked. Python cannot guarantee absolute cryptographic memory erasure, and operating-system paging, crash dumps, hardware storage behaviour and external backups remain outside the application’s complete control.
PFI does not claim to be a mathematical zero-knowledge system. Its approach is to minimise unnecessary exposure of sensitive financial information through explicit architectural boundaries and application-managed encryption.
Privacy is treated as an engineering constraint rather than simply a statement in a policy document.
An Evolving System
Personal Financial Intelligence is an independent product and technology project developed around the idea that personal finance software should do more than record transactions and display charts.
Its development has involved building the financial data model, ingestion pipeline, deterministic calculation engine, reconciliation framework, encrypted vault architecture, and operational recovery mechanisms as parts of one coherent system.
The first production release follows the completion of the initial development and hardening milestones.
The system will continue to evolve as new financial use cases are explored, analytical capabilities improve, and actual usage exposes areas that need refinement.
The broader ambition is to move from maintaining financial records towards building a more complete understanding of personal financial activity.
The interesting question is not simply how much money came in or went out. It is whether the underlying financial information is complete, consistent, and meaningful enough to support better understanding.
Explore the Application
Personal Financial Intelligence is available as a live application.
Visitors can explore the system through a built-in synthetic demonstration profile based on Rahul Sharma, populated with representative Indian banking data.
The demonstration contains three accounts:
- HDFC Bank Salary Account
- ICICI Coral Credit Card
- Cash Wallet
The sample financial history covers three complete calendar months: August, September, and October 2026.
The demonstration is designed to expose the application’s capabilities rather than simply display a collection of sample transactions. It includes transfer matching, different levels of statement assurance, uncategorised transactions, a flagged spending outlier, and financial report generation.
Visitors can explore:
- Account and transaction management.
- Monthly cash-flow analysis.
- Statement completeness and balance-chain reconciliation.
- Transfer pairing and transfer-neutral calculations.
- Recurring commitment detection.
- Spending anomaly identification.
- CSV, Excel and PDF reporting.
The synthetic profile operates using an ephemeral in-memory SQLite database. It does not require visitors to register, provide a passphrase, or upload personal financial statements. Permanent vault storage and credential rotation are disabled in demonstration mode.
Explore the application without exposing your own financial data.
Explore Personal Financial Intelligence →
Research & Feedback
PFI is now in production, but remains an evolving system. Its financial models, analytical capabilities, ingestion methods, and operational architecture will continue to be examined and refined.
Questions, critical feedback, suggestions, and ideas for additional capabilities are welcome. The intention is to build something useful through continued development, scrutiny and actual use.
Personal Financial Intelligence is an independent financial information and analysis tool intended for informational and educational purposes. It is not a bank, financial institution, investment adviser or provider of personalised financial, investment, legal or tax advice. Its calculations and analytical outputs depend on the accuracy, completeness and interpretation of the financial information supplied or imported by users. Statistical indicators and reconciliation results are intended to support examination of financial records and should not be interpreted as guarantees of accuracy or completeness. Users should independently evaluate their financial circumstances and consult qualified professionals where appropriate.