Back to Blog
AI

Not Knowing What You Spend On: Starting Spend Analysis with Machine Learning Purchase Item Classification

Free-text item descriptions and inconsistent account coding hide your spend even when the purchasing data is there. This post shows how to start spend analysis, from designing a taxonomy to classifying items with ML and LLMs and detecting maverick spend.

POLYGLOTSOFT Tech Team2026-11-257 min read12
Spend AnalysisPurchase Item ClassificationProcurementMachine LearningERP

Why You Have Purchasing Data but Can't See Your Spend

Most companies have years of purchasing records in their ERP. Yet a simple question like "How much did we spend on tools last year?" often has no quick answer. The data exists. It just isn't classified.

  • Free-text item descriptions: The same glove shows up as "Nitrile glove L", "Glove (nitrile) large", and "NITRILE GLOVE". This is especially common in indirect purchasing, where requesters type items directly into a request form instead of picking from an item master.
  • Inconsistent account coding: One department books a consumable as supplies, another books it as repairs. Account codes are built for accounting, so they tell you nothing about what was actually bought.
  • Spend piling up in "Other": MRO (maintenance, repair and operations) and indirect purchases come in high volumes at low values, so they often end up as "Other." If 30% of 80,000 annual purchase lines land there, that share of spend never gets analyzed.
  • Start with the Taxonomy

    Before you build a model, decide what you are classifying into.

    Internal Taxonomy vs. Standard Taxonomy

  • Internal taxonomy: It mirrors how your purchasing team and buyers are organized, so you can use it right away. The downside is that it's hard to compare across subsidiaries or with external data.
  • A standard such as UNSPSC: UNSPSC uses an 8-digit, four-level hierarchy of segment, family, class and commodity. It helps when you combine data from several legal entities or match against supplier catalogs.
  • A common approach is to use the standard codes as the backbone and map your internal categories onto them.

    How Deep to Go

    A top-level category such as MRO only tells you where the budget goes. Supplier consolidation and price negotiation need the lowest level, for example cutting tools > end mills. Don't try to classify everything in depth at once. Refine the categories that make up the top 20% of spend first.

    Classifying Items with Machine Learning and LLMs

    Supervised Learning

    If you already have a few thousand or more labeled records, supervised learning gives stable results. Useful features include:

  • Item description and specification text (character n-grams or embeddings)
  • Supplier (most suppliers have a core product range)
  • Account code, requesting department, unit price band
  • Adding supplier and account data alongside the text helps with short, ambiguous descriptions.

    When Labels Are Scarce: LLM First Pass Plus Human Review

    With almost no labels, give an LLM your taxonomy and the items and let it do a first pass. Buyers review the output, and the reviewed data then trains a supervised model. This takes less setup time than labeling everything by hand. As volumes grow, move to the lighter supervised model, which is cheaper and faster.

    Confidence-Based Routing

    People don't need to review every line. For example, you can auto-confirm anything with confidence of 0.9 or higher and send the rest to a review queue, so reviewers spend their time only on ambiguous cases. Tune the threshold based on how accurate the reviewed results turn out to be.

    What Classified Spend Lets You Do

  • Supplier concentration: See how many suppliers serve each category and how much the top suppliers account for. If you buy the same consumable from 15 vendors, that category is a consolidation candidate.
  • Price variance: Large price gaps between plants within the same category give you leverage in negotiations.
  • Consolidated ordering: Find items that several departments buy separately in small quantities and bundle them into annual price agreements.
  • Maverick spend detection: Flag purchases in contracted categories that went to non-contracted suppliers. You can only tell whether a purchase falls under a contract once it has been classified.
  • Designing for Ongoing Operation

  • Automatic classification of new items: Classify purchases as they come in and feed the review results back into the training data. Retraining every quarter keeps up with new items and new suppliers.
  • Better input at the source: Getting it right at entry costs less than fixing it later. If the requisition screen suggests a category as the requester types and asks them to pick one, the "Other" bucket shrinks sharply.
  • Track the metrics: Watching classification coverage, auto-confirm rate and review accuracy every month shows you early when the model starts to degrade.
  • Start Your Spend Analysis with POLYGLOTSOFT

    POLYGLOTSOFT supports the whole effort: cleansing purchasing data, designing the taxonomy, building ML- and LLM-based item classification, integrating with ERP requisition screens, and creating spend analytics dashboards. We design the solution so you can use classification results in daily purchasing work without replacing your current ERP. If you want to know what your company really spends on, contact POLYGLOTSOFT.