Back to blog
AIMay 21, 2026 13 min

Automatic expense classification: what AI can and can't do

Person reviewing AI-powered automatic expense classification on the month's bank statement

A language model effortlessly understands that 'MERCADONA 4412' is groceries and 'IBERIA TICKET' is travel. What it cannot know, without context from you, is whether that €900 transfer to your own account is savings, rent paid by hand or a loan to a friend. That is the whole difference between an app that sorts transactions and one that tells you the truth about your savings rate.

Rules first, AI second

The best system is hybrid: deterministic rules for what repeats — payroll, mortgage, direct debits, transfers between your own accounts — and a language model only for the long tail of unknown merchants. Rules give stability; AI gives coverage.

Rules cover 60-70% of volume at 100% accuracy. AI handles the rest at 90-95%, and that rest is exactly where the interesting information lives: discretionary spending, travel, health and subscriptions.

“You cannot improve what you cannot clearly see.”
Peter Drucker · Father of modern management

The expensive mistake: double counting

When you move money between your accounts there are two entries. If both get classified as ordinary spending and income, your savings rate becomes fiction and your monthly spending inflates. Matching pairs by amount, nearby date and ownership solves 90% of cases.

The remaining 10% are the odd cases: partial transfers, currency conversions with fees, or money leaving one month and landing the next. There you need to confirm once, and the system must remember forever.

Share of spending in the “other” bucket

Manual categorization versus AI categorization on the same statements.

Phone showing already categorised bank transactions next to paper receipts
Rules for the repetitive, AI for the long tail: each where it wins.

Travel spending: group without duplicating

A trip generates flights, hotels, restaurants, taxis and shopping spread across different categories. Seeing it only as 'travel' hides how much you spend eating out; seeing it only by category hides what each trip really costs.

The fix is to tag by event without moving the amount out of its category: each transaction stays in its real category and also belongs to a dated trip. You can read both angles without counting the money twice.

“Spend extravagantly on what you love and cut mercilessly on everything else. For that you need to know which is which.”
Ramit Sethi · Author of 'I Will Teach You To Be Rich'

Correct once, learn forever

Every manual correction should create a persistent per-merchant rule, not a one-off edit. A typical user fixes 30-40 transactions in month one, under 10 in month two and fewer than 5 by month three.

  • One correction = one merchant rule, not a patch.
  • Review only what the AI flags with low confidence.
  • Lock critical categories (savings, debt) with fixed rules.
Monthly leaks found once categorization is right

A freelancer's case: €900 a month hidden in the “other” bucket.

Rules vs. AI: who wins where
Transaction typeRulesAIBest
Payroll & mortgage100%95%Rules
Transfer between your accounts98%60%Rules
Unknown merchant0%93%AI
Mixed travel spending35%88%AI + tag

Privacy: what should leave your device

Classifying needs neither your name, your IBAN nor your balance. The transaction description, amount and date are enough. Any system that needs more than that to categorise is asking for data it does not use.

“Most financial mistakes don't come from missing information, but from not looking at the data you already have.”
Morgan Housel · Author of 'The Psychology of Money'

Real case: €900 a month hiding outside every category

Nuria, a freelancer, uploaded statements and categorized by hand once a quarter; she always ended with 40% in “other”. Automating categorization with AI shrank that bucket to 4% and revealed the pattern: €900 a month across forgotten subscriptions, food delivery and last-minute transport.

She did not cut everything: she removed €430 that gave her nothing and kept the rest guilt-free. That cut, invested at 7%, brings her financial freedom forward by almost three years. The AI did not tell her what to spend; it showed her where she was looking wrong.

Freelancer reviewing on her phone the expenses automatically categorized with artificial intelligence
When the “other” bucket drops below 5%, you start deciding with real data.

Why your bank's categories don't help you decide

Banking apps tag transactions with generic categories designed to render a nice chart, not to support decisions. A 45-euro charge might show up as "shopping" whether it's clothing or tax-deductible work supplies, and a 12-euro streaming charge gets lumped into "leisure" without distinguishing an active subscription from a ghost charge. The result looks informative but doesn't tell you what to cut or what to protect.

The underlying problem is that these categories classify by merchant type, not by financial function. What matters for your net worth is knowing whether an expense is fixed or variable, avoidable or structural, and whether it competes with your target savings rate. A well-configured AI system doesn't just replace the bank's labels with prettier ones: it changes the classification criteria so every euro is tagged by the role it plays in your financial plan.

Another common limitation is fixed granularity: the bank decides how many categories exist and you can't merge or split them to fit your reality. If you rent a parking space separately from your home, or want to track pet expenses apart from general household costs, you need your own chart of accounts. AI reading your statement can adapt to those custom categories as long as you define them clearly before processing transactions, not after.

Designing a category plan built for decisions

Before automating anything, sketch on paper the category plan you'll actually use to decide. The most useful structure has four blocks: committed fixed costs (housing, insurance, debt), necessary variable costs (food, transport, utilities), discretionary spending (leisure, dining out, shopping), and non-expense movements (transfers between your own accounts, investing, refunds). Mixing these blocks is why so many spending analyses never lead to concrete action.

Within each block, cap the total number of categories at eight to fifteen. Beyond that, monthly review becomes tedious and you end up ignoring the detail. It's better to have a single "dining out" category than to split "bars," "restaurants," and "food delivery" separately if you're ultimately going to add all three together to check whether you're over budget on eating out.

A frequently overlooked point is explicitly tagging annual or quarterly expenses, such as car insurance, local taxes, or professional membership fees. If the AI lumps them into the month they're charged, they distort month-to-month comparisons and can look like a discretionary spending spike when they're actually a predictable commitment. The fix is to create a "non-monthly recurring expenses" category and manually prorate them when calculating your average budget.

  • Committed fixed costs: housing, insurance, debt payments, essential subscriptions.
  • Necessary variable costs: food, transport, utilities, health.
  • Discretionary: leisure, dining out, non-essential shopping, travel.
  • Not real spending: transfers between your own accounts, investment contributions, refunds and reimbursements.

How an AI classification engine reads a bank statement

The first technical step is normalizing the merchant text. The same business might appear on your statement as "MERCADONA 3421 MADRID," "COMPRA MERCADON," or "MERCADONA S.A." depending on the terminal and the bank. An AI engine trained for this strips numeric suffixes, terminal codes, and spelling variations to recognize all three as the same merchant, then assigns the category far more consistently than an exact-text rule would.

The second step is grouping recurring subscriptions even when the amount varies slightly, as happens with plans that raise prices or services with taxes that differ by billing region. A good system looks for periodicity patterns — same merchant, an interval of roughly 28 to 32 days, an amount within a reasonable range — instead of requiring an exact figure match. This is what lets you spot that you've been paying for two nearly identical streaming platforms without noticing.

The third, more advanced step is detecting trips and grouping expenses by temporal and geographic context. If within four days you see charges from an airline, two hotels, and several restaurants in a city other than your usual residence, an AI engine can automatically group them under a single trip event instead of scattering them across "transport," "lodging," and "dining" with no apparent link. This is especially useful for calculating the real cost of each trip against the budget you set.

Finally, duplicate and erroneous charge detection compares amounts, merchants, and nearby dates to flag double charges, typically caused by point-of-sale terminal glitches or auto-renewals that fire twice. These aren't always bank errors: sometimes they're legitimate charges that simply share a date, so the system should flag them as suspicious for you to review rather than removing them automatically.

Transfers, mislabeled income, and other false positives

The most common error in any automated classification is treating a transfer between your own accounts as an expense. If you move money from your checking account to a high-yield savings account or a broker, that amount hasn't left your net worth, it has just changed location. If the system counts it as discretionary spending, your apparent savings rate collapses artificially and can push you to cut expenses that don't need cutting.

To avoid this, identify the IBAN or alias of each of your accounts in advance and create an explicit rule marking any movement between them as an "internal transfer," excluding it from both income and expenses when calculating your savings rate. The same applies to investment contributions: if you invest 400 euros a month, that money is savings that has turned into assets, not an expense reducing your financial well-being, and it should sit in a separate category that adds to your net worth rather than subtracting from your living budget.

Income also gets frequently mislabeled. A tax refund, an insurance payout, or money a friend pays you back after a shared expense are not "income" in the sense of employment or capital income: they're compensations that simply reverse a prior expense. If you add them to your real income, you'll artificially inflate your savings rate for the month and lose visibility into your recurring income generation capacity, which is the figure you should actually track to plan financial independence.

Privacy: what data gets shared and how to protect it

Classifying expenses with AI usually means either uploading a bank statement or connecting an account through a financial aggregator. Before doing so, distinguish between two models: one that processes the file once without keeping a permanent copy, and one that maintains a continuous connection to your bank to sync transactions in real time. The second is more convenient, but it means handing over credentials or access tokens to a third party indefinitely, so check which aggregation provider the service uses and what security certifications it holds.

A bank statement contains sensitive information that goes far beyond spending: it reveals where you live, where you work, your health status if you pay for pharmacies or medical visits, your beliefs if you donate to organizations, and your relationships if you split expenses with someone else. Before uploading a file to any tool, check its privacy policy to confirm whether the data is used to train third-party models, whether it's genuinely anonymized, or merely pseudonymized, which offers much weaker protection.

A reasonable practice is to manually redact the account number and holder's name before uploading a PDF to a third-party tool, leaving only date, description, and amount visible, which is the minimum needed for classification. If you use a general-purpose AI assistant to paste transactions and ask it to categorize them, avoid including highly identifiable full merchant names when unnecessary, and always prioritize tools that process data locally or explicitly state they don't retain content after the session.

The ten-minute monthly review that keeps the system reliable

No automated classifier gets it right one hundred percent of the time forever, so a brief monthly review is what separates a useful system from one abandoned after three months. Set aside ten minutes, ideally the same day you review your budget, and focus on just three things: new merchants the AI didn't recognize and left as "uncategorized," unusual amounts flagged as suspicious, and the discretionary spending category, which tends to accumulate most errors due to its variety.

When you manually correct a category, check whether the tool lets you save that correction as a permanent rule for that merchant. If it doesn't, you'll have to repeat the fix every month, which undermines much of the time savings you're after with automation. Most well-designed financial managers and AI assistants learn from your corrections and progressively reduce the share of transactions needing manual review, typically below five percent after two or three months of use.

Use this review to spot subscriptions you no longer use, too. This is when they become clearest, since you've spent a month seeing the recurring expenses category grouped together, and it's much easier to decide to cancel something when you see the projected annual cost — a 9.99-euro monthly subscription is nearly 120 euros a year — than when you only see the isolated monthly charge and it looks insignificant.

The metrics that actually matter once spending is classified

Having spending properly classified is useless if you then look at the wrong metrics. The first figure to calculate every month is your real savings rate, defined as savings plus investment divided by net income, excluding internal transfers as explained earlier. It's the metric that best predicts when you'll reach financial independence, far more than how much you spend in any single category, because it connects directly to the pace at which you build net worth.

The second metric is the share of discretionary spending over the total, not in absolute euros but as a percentage. Discretionary spending at 15 percent of the total with a 30 percent savings rate is a healthy situation; that same 15 percent with a 5 percent savings rate signals the problem isn't leisure but that your fixed costs are eating nearly all your income, in which case cutting discretionary spending will barely move the needle.

The third metric, often overlooked, is the real cost of subscriptions and recurring services as a percentage of income, calculated on an annual basis. It's common for someone who has never grouped these charges to discover they add up to between 3 and 8 percent of monthly income spread across ten or fifteen small services, a figure rarely seen this clearly until automated classification brings it to light by grouping everything under one recurring category.

From classification to sustainable cuts: acting without pain

The most common mistake after classifying spending is trying to cut every discretionary category at once with an aggressive, generic target like "spend 30 percent less this month." That approach works for a few weeks and usually ends in a compensatory spending rebound the following month. It works better to pick a single category with clear room to cut — usually dining out, subscriptions, or impulse purchases — and set a concrete, sustainable cap for three consecutive months before moving to the next one.

Use the automated classification to trigger an alert when a category hits eighty percent of its monthly cap before the month closes, instead of finding out on day one with the summary already final. That reaction window, even if just a few days, is what lets you adjust behavior in time without needing extraordinary willpower, because you turn an abstract decision into a concrete, actionable alert.

Finally, explicitly route part of any savings achieved into automatic investing before it dissolves back into next month's regular spending. If you cut 80 euros a month in subscriptions and dining out, schedule an automatic transfer of that same amount to your investment portfolio on payday. AI classification has given you the exact figure for potential savings; the step that actually builds net worth is automating where it goes so it doesn't depend on a manual decision every month.

Frequently asked questions

How does AI classify my expenses?

It combines rules over the transaction text (merchant, amount, recurrence) with a language model that interprets ambiguous descriptions and groups related spending, such as one trip's costs.

Is automatic categorization reliable?

It gets most routine transactions right and flags doubtful ones for review. Every correction you make improves future classification.

Do I have to connect my bank?

No. You can upload a PDF or CSV statement, or enter expenses manually by day or by month.

Emma Lindström, Financial planner — author at WhatsYournumber

Written by

Emma Lindström

Financial planner

Loves finance and honest money conversations. She is passionate about turning wealth planning into simple everyday decisions.

Try the free calculator and understand your financial freedom

Use the free calculator in minutes: calculate your net worth, runway and number at no cost. Already have an account? Sign in and pick up where you left off.

Keep reading