Hands typing on a laptop showing financial charts beside a calculator, for a post on transaction categorization taxonomy
AI, ROBOTICS & AVS

Building a Transaction Categorization Taxonomy That Models and People Can Both Use

Transaction categories power budgeting apps, spend analytics, lending models and fraud detection. A weak taxonomy makes every one of them worse. This is how to build one that models and people can both use.

On this page
  1. Start with what the categories are for
  2. Keep the structure shallow and exclusive
  3. Write definitions with inclusion and exclusion rules
  4. Transfers, refunds and reversals
  5. Merchant identification and marketplaces
  6. Mixed-purpose merchants and cash
  7. Version the taxonomy and track changes
  8. Measuring categorization quality
  9. Taxonomy documentation for model governance
  10. Taxonomies across markets
  11. Running a categorization program
KEY TAKEAWAYS
  • ✓Design the taxonomy around the decisions it supports, not around a list of every possible merchant type.
  • ✓Keep levels shallow, categories mutually exclusive and definitions written down with examples.
  • ✓Plan for the hard cases: transfers, refunds, marketplaces, mixed-purpose merchants and cash.
  • ✓Version the taxonomy and keep a merchant reference list so labels stay consistent over time.

The short answer: A good transaction categorization taxonomy starts from what the categories are used for, such as budgeting, underwriting or spend control; uses a small number of levels; defines each category with inclusion and exclusion rules and examples; handles transfers, refunds, marketplaces and mixed-purpose merchants explicitly; and is versioned alongside a maintained merchant reference list. Labels built on it are consistent enough for models and clear enough for users. Teams labeling at volume often use specialist financial data annotation providers.

Start with what the categories are for

A budgeting app needs categories people recognize, such as groceries, dining, transport and subscriptions. A lender needs categories that reveal income stability, essential spending and risky behavior. A corporate spend tool needs categories that map to accounting codes and policy rules. One taxonomy rarely serves all three well, so the first step is deciding which decisions the categories support.

Write the purpose down and test every proposed category against it. A category nobody uses for a decision adds labeling cost and confusion without improving any model or product.

Keep the structure shallow and exclusive

Deep hierarchies look thorough but are hard to label consistently. Two or three levels, such as a broad group, a category and an optional subcategory, are usually enough. Categories at each level should be mutually exclusive, so a transaction belongs in one place, and collectively cover the common cases, with a clearly defined other category for the rest.

Avoid categories that overlap in meaning, such as entertainment and leisure, unless definitions make the difference explicit. Overlap is the main cause of disagreement between annotators and of inconsistent model output.

Write definitions with inclusion and exclusion rules

Each category needs a written definition, a list of what belongs, a list of what does not and examples of real descriptors. For example, groceries might include supermarkets and grocery delivery but exclude convenience store fuel purchases and restaurant delivery. Clear exclusions resolve most borderline decisions before they reach a reviewer.

Definitions should be reviewed by people who will use the categories, such as product managers, credit analysts or finance teams, so the rules reflect real needs and not only an annotator’s judgment.

Transfers, refunds and reversals

Some of the most important labels are not spending at all. Transfers between a customer’s own accounts, credit card payments, loan repayments, refunds, reversals and chargebacks must be identified so they are not counted as income or spending. Mislabeling them inflates or hides cash flow, which matters for budgeting tools and especially for lending decisions.

Rules should explain how to recognize each type from descriptors, amounts and timing, and how to link a refund to the original purchase where data allows. See payments reconciliation for how the same patterns are handled in finance operations.

Merchant identification and marketplaces

Categories depend on knowing the merchant, and descriptors are messy: processor prefixes, truncated names, location codes and reference numbers. A maintained merchant reference list maps cleaned merchant names to categories, so the same merchant is labeled the same way every time. New merchants are researched and added, and mistakes are corrected centrally.

Marketplaces and payment platforms are a special challenge, because one descriptor can hide thousands of sellers selling different things. Rules should say when to use a marketplace category and when other data allows a more specific label.

Mixed-purpose merchants and cash

Some merchants sell many kinds of things: big-box retailers sell groceries, electronics and clothing; warehouse clubs sell fuel and food; pharmacies sell medicine and snacks. Without item-level data, the taxonomy needs a rule, such as assigning the merchant’s primary category or using a general merchandise category. Whatever rule is chosen should be applied consistently.

Cash withdrawals, peer-to-peer payments and money transfers also need rules, because their purpose is unknown. Labeling them as their own categories is usually better than guessing. See fintech outsourcing for products that rely on these labels.

Version the taxonomy and track changes

Taxonomies change as products evolve: a new category is added, two are merged, a definition is clarified. Every change should get a version number, a change note and a mapping from old to new categories. Labels should record which version they were made under, so training data can be converted or filtered when the taxonomy changes.

Without versioning, datasets mix incompatible labels and model performance drifts for reasons nobody can trace.

Measuring categorization quality

Report accuracy by category, not only overall, because errors concentrate in a few hard categories. Agreement between annotators on the same transactions shows where definitions are unclear. Gold sets with reviewed labels should be mixed into production work and refreshed as new merchants and patterns appear.

User feedback, such as people recategorizing transactions in an app, is another useful signal. Patterns in corrections often point to definitions or merchant mappings that need updating.

Taxonomy documentation for model governance

Banks and regulated lenders must explain the data behind their models. A documented taxonomy, with definitions, version history, merchant list changes and quality results, gives model risk teams the evidence they need. Labels should be traceable to the taxonomy version and guideline that produced them.

This documentation also helps product teams explain categories to customers and regulators when questions arise about how spending or income was classified.

Taxonomies across markets

Spending patterns and merchant types vary by country: local payment apps, utilities, transit systems and retailers differ. Global products often keep one top-level taxonomy and add market-specific subcategories and merchant lists. Annotators familiar with each market label its transactions more accurately.

Currency, tax and fee descriptors also differ by market and need their own rules.

Running a categorization program

Start with a pilot on your messiest descriptors, refine definitions with the people who use the categories and build the merchant list as you go. Mask account identifiers and work in secure environments.

Our financial data annotation outsourcing page explains how vetted Philippine teams with finance backgrounds categorize transactions and label financial documents, and table annotation guidelines for document AI covers statement and filing tables in the same cluster.

Where this fits
MORE IN THIS CLUSTER
Designing a Remote Operations Center for Robots, Drones and Autonomous VehiclesLiDAR Annotation Quality: The Checks That Separate Usable 3D Labels From Expensive ReworkHow to Plan an Autonomous Driving Data Collection Campaign That Fills Real Coverage GapsConsent and Privacy for First-Person Video Datasets: A Practical ChecklistRobot Demonstration Data: Why Diversity Beats Volume for Robot Foundation ModelsTable Annotation Guidelines for Document AI: Cells, Spans, Headers and the Hard CasesHow to Screen Developer-Annotators for Code Model Training DataDiarization Error Rate Explained: What It Measures, What It Misses and How to Label for ItNegation and Uncertainty in Clinical Text Annotation: Rules That Keep Healthcare Models HonestOffline Recommender Evaluation With Human Raters: When Clicks Are Not EnoughReward Hacking: How to Detect It Before Your Policy Learns ItMeasuring Hallucination in Vision-Language Models: A Claim-by-Claim MethodBuilding a Coding Agent Benchmark From Real RepositoriesDesigning Graders for RL Environments That Agents Cannot Game

Frequently asked questions

How many levels should a transaction taxonomy have?

Usually two or three; deeper hierarchies are hard to label consistently.

How should transfers between own accounts be labeled?

As transfers, not income or spending, so cash flow is not distorted.

What is a merchant reference list?

A maintained mapping from cleaned merchant names to categories, so each merchant is labeled consistently.

Why version a taxonomy?

So labels made under different versions can be converted or filtered when categories change.

KEEP READING
Hands typing on a laptop with data dashboards projected above the keyboard, for a post on table annotation guidelines
AI, ROBOTICS & AVS
Table Annotation Guidelines for Document AI: Cells, Spans, Headers and the Hard Cases
Tables are where document AI fails most visibly: wrong totals, shifted columns,…
Humanoid robots carrying boxes between warehouse racks, for a post on robot demonstration data diversity
AI, ROBOTICS & AVS
Robot Demonstration Data: Why Diversity Beats Volume for Robot Foundation Models
Robot foundation models need real interaction data, and teams often chase episode…
Hand on a laptop showing an audience analytics dashboard, for a post on First-Person video dataset consent
AI, ROBOTICS & AVS
Consent and Privacy for First-Person Video Datasets: A Practical Checklist
First-person video shows hands, homes, screens and other people. Before collecting it,…
FREE · VENDOR-NEUTRAL

Get a readiness read before you outsource.

Thirty minutes with our CEO. We will screen your processes against the 4-test framework and tell you what to centralize first.

Book a call →