AI and MCP

How to correct AI categories so they stay fixed

Fix AI categories permanently by turning each correction into a rule for the merchant, with a pharmacy example that is sometimes medical and sometimes groceries.

Editorial illustration for How to correct AI categories so they stay fixed

To make a category correction stick, do it in a way your tracker remembers: create a rule for the merchant, or at least correct the entry where the change is saved as history. Editing one row only fixes that row. A rule fixes every future row from the same merchant, which is what you actually wanted when you noticed the mistake.

Why does the same mistake come back next month?

An AI categoriser guesses from the merchant name and sometimes the amount. If you change one transaction and nothing else, the guess for next month's transaction is made from scratch, so the same wrong label can return. The fix is to give the tool something durable: a rule that says this merchant always goes to this category, or a correction it stores and reuses for similar merchants.

How do I turn a correction into a rule?

  1. Open the transaction that was labelled wrongly and note the merchant name as it appears after cleaning, not the long narration with reference numbers.
  2. Change the category to the one you want.
  3. Create a rule from that correction, matching on the merchant name rather than on the full narration text.
  4. Check the list of other transactions the rule would touch, if your tracker shows one, before you save it.
  5. Next month, look at the first few transactions from that merchant to confirm the rule fired.

The reason for matching on the cleaned merchant name is practical. UPI narrations carry a different reference number every time, so a rule built on the full text will match once and never again.

What if one merchant is sometimes medical and sometimes groceries?

This is where a blunt rule goes wrong. Say you shop at a neighbourhood chemist called Shree Medico. Some visits are prescription medicines; others are soap, shampoo and a packet of oats. If you force every visit into Medical, your health spending looks inflated. If you force it into Groceries, you lose track of medicines.

VisitAmountWhat you boughtCategory
Week 1₹640Prescription tabletsMedical
Week 2₹210Soap and shampooPersonal care
Week 3₹1,150Monthly medicinesMedical
Week 4₹95ToothpastePersonal care

Totals for the month: Medical is ₹640 + ₹1,150 = ₹1,790, and Personal care is ₹210 + ₹95 = ₹305, so the chemist accounts for ₹2,095 overall. A single rule sending everything to Medical would overstate health spending by ₹305. These figures are hypothetical, but the pattern is common.

Two sensible options exist. Make the rule for the dominant use (Medical) and correct the odd visit by hand each month. Or, if your tracker's rules allow an amount condition, set small amounts to Personal care and larger ones to Medical. Neither is perfect; pick the one that costs you fewer corrections.

How does SpendixAI remember corrections?

SpendixAI categorises in stages: your own rules come first, then your history and similar merchants, and only then an AI model if you have left AI on, for whatever is still unmatched. Your corrections become history, and you can add merchant aliases so that two spellings of one shop are treated as the same merchant. That order is why a rule beats a guess: it is checked before the AI is asked anything.

How often should I revisit my rules?

Look at them when something changes. A shop that was only groceries starts selling electronics, you move house and a new local merchant appears, or a category you renamed leaves a rule pointing at the old one. A quick look at your rule list every quarter is plenty for most households.

A short checklist for each correction

  • Did I change the category on the transaction itself?
  • Did I create a rule or alias so it applies next time?
  • Is the rule matching the merchant name rather than a reference number?
  • Is this merchant truly one category, or should I leave it to manual review?
  • Did I check a transaction from the next statement to confirm it worked?
SPENDIXAI JOURNAL

Useful ideas start with a clearer picture of your own spending.

Explore your reports