Skip to content
James Ross
articlePublished Updated 8 min read

Color families from supplier chaos: AI classification with a review queue

By James Ross

Supplier color names are a data problem wearing a design costume. A catalogue can hold hundreds of strings for what a shopper thinks of as six colors, and each one has to become a clickable filter value. The color-filter app built for a promotional-products supplier assigns each name to a family with text and vision models, then puts the mapping through a human review and re-review queue. It runs alongside the four-store Medusa v2 network.

Hundreds of swatch tiles sorted by a machine into six color bins with a review tray, showing AI color classification.

Why supplier color names break storefront filters

A storefront filter needs a small closed vocabulary. “Blue” is a filter value; “Midnight Navy Heather” is a supplier’s merchandising decision. The gap between them is where filters fail, and it is a human taxonomy rather than a colour space: CSS Color 4 can define a small named set with precise coordinates, while a supplier catalogue is an open vocabulary of merchandising names.

The failure modes repeat across every catalogue:

  • Codes instead of names. 001, 215, A-14 — the name exists in the supplier’s UI as a tooltip or a swatch label, not in the field the scrape reads.
  • Compound names. “Navy/White”, “Black-Gold”, “Red & Blue” describe a two-tone product that still needs one primary family for filtering.
  • Merchandising adjectives. “Team Navy”, “Campus Red”, “Heather Charcoal” bury the color under a program name.
  • Inconsistent spelling. “Grey” and “Gray”, “Charcoal Hthr”, “Lt. Blue”, “Oatmeal” versus “Oat”.
  • Same name, different color. A supplier’s “Natural” can be off-white, tan or raw canvas depending on the product line.
  • Missing values. Single-color products often have no color name at all, because the concept does not apply.

None of these is a model problem at heart. The supplier’s vocabulary is open, the storefront’s is closed, and something has to sit between them and be accountable.

The data model that makes review possible

The mapping table is the product. Everything else — the model calls, the UI, the filters — reads from it.

The useful shape is one row per supplier color name, scoped to the brand or supplier it came from, with the raw string, a normalised string, the assigned family, how the assignment was made, a confidence, who reviewed it and when.

Field Why it exists
Brand or supplier “Navy” from two suppliers is not the same input
Raw name The audit trail back to the source
Normalised name Case, punctuation and spacing folded for matching
Family The closed storefront value that filters use
Method alias, model or human — how the answer was produced
Confidence What routed it to review
Reviewer and timestamps Who accepted it, and when it was last re-checked

Scoping by brand matters more than it looks. A global alias table that maps “Navy” to “Blue” is right for most suppliers and wrong for the one whose “Navy” is nearly black. Per-brand rows let the exception exist without disabling the rule. On a Shopify storefront the colour arrives as a product option value on the variant, so that option value is the string the mapping has to resolve.

The normalised name is also the cache key. Navy, NAVY and navy normalise to one row, so the same supplier string is classified once and reused across every product that carries it. On a catalogue with thousands of variants, that collapses model calls from per-variant to per-distinct-name.

Text versus vision: what each model is good for

Text models are good at language: splitting compound names, recognising that “Hthr” means heather, deciding that “Team Navy” is a navy. Vision models are good at the thing text cannot see: the actual swatch, the product photo, the printed sample.

Input Text model Vision model
“Midnight Navy Heather” Strong: recognises navy, treats heather as a texture not a color Not needed
001 with no label Weak: nothing to read Weak without a swatch image
001 plus a swatch tile No signal Strong: reads the tile
Two-tone “Navy/White” Strong: picks the dominant term, flags the compound Useful to confirm which side dominates
“Natural” on canvas Ambiguous: could be cream or tan Strong: sees the actual product
Misspelled “Charcal” Moderate: usually recoverable Not needed

Which should you choose?

Run the text model first, because most names are language and text is cheaper and faster. Send a name to the vision model when the text carries no color information — a bare code, an abbreviation the alias table does not know, or a merchandising name with no color word in it — and when a swatch or product image exists to look at. Treat vision as the tiebreaker, not the default, and never let either model write a family without a confidence the pipeline can act on.

The benefit of the split is cost control: vision calls are the expensive ones, and the text pass removes most of the volume before them, so vision spends its budget on the rows a human would otherwise review.

The classification pipeline

A pipeline of this kind is deliberately boring, because the interesting failure is a wrong filter value nobody notices.

  1. Extract. Read the supplier color string, the swatch label, the product image reference and the brand from the source.
  2. Normalise. Fold case, trim, strip punctuation, expand known abbreviations, and keep the raw string untouched for audit.
  3. Exact match. Check the alias table for this brand and normalised string. An exact hit skips the models entirely.
  4. Classify. Send the remaining rows to the text model with a closed list of allowed families, then to the vision model when the text has no usable color signal and an image exists.
  5. Route by confidence. High-confidence answers can be auto-accepted under a policy the operator sets; everything else enters the review queue with the model’s suggestion attached.
  6. Publish. Only accepted rows reach the storefront filter. A row in review is not a filter value.
  7. Re-review. When the family list, the alias table or the model changes, previously accepted rows are re-queued for a second look.

Step 4 is where the prompt does the work: the allowed families are enumerated, and the model answers with one of them or says it cannot. An open-ended “what color is this” produces a new name every time; a closed list produces a decision the database can store.

Step 7 is the one teams skip. A mapping accepted under a six-family taxonomy is not automatically correct under a twelve-family one, and a model upgrade can change hundreds of answers at once. Re-review lets the taxonomy evolve without freezing.

Designing the review queue

The queue is a work surface, not a table with a filter: it gets a human through uncertain rows quickly, with enough context to decide once.

The states that work are simple: unclassified, suggested, accepted, rejected and needs-re-review. Each row shows the raw supplier name, the brand, a swatch or image, the model’s suggestion with its confidence, and the families as one-click options.

The behaviours that make it usable:

  • One decision per row, keyboard-first. A reviewer working through hundreds of rows should never need the mouse.
  • Bulk accept only where the evidence is identical. Accepting every row for one brand with the same normalised name is safe. Accepting every row a model liked is not.
  • Rejection is data. A rejected suggestion becomes an alias for that brand, so the same input never returns to the queue.
  • The audit trail is visible. Who decided, when, and on what basis. A filter value that turns out wrong is a support ticket, and the trail is how it gets answered.
  • Re-review is a queue, not a warning banner. If the taxonomy changed, the affected rows come back as work, not as a notice someone can dismiss.

The queue also needs a way to say “not a color”: single-color products with no color name, and products whose “color” is a print name, belong in a category that means “no filter value” rather than the nearest family.

Keeping the source names clean

Classification cannot fix a name that never arrived, and the upstream parser is part of this system.

On the supplier feed, some brands leave the color-name element blank and publish only a code. The parser originally passed that code through, so the storefront received 001 as a color. The fix was to collect the first tooltip on the swatch — title, data-tip, data-original-title or alt — and pair it with the code, producing 001 BLACK.

The rule that came with it matters as much as the fix: a string that already reads as a name is never touched. NAVY does not become 215 NAVY, because prefixing a code onto a good name makes the data worse, not better.

The parser also had to stop trusting that a name exists. When no selector finds one, it keeps the code and logs no color name found for code '001' on <style>, which turns an invisible data gap into a line someone can grep after a run. A missing color name is a broken selector, and a log line is how it gets found.

What broke and what we changed

Bare codes reached the storefront. A numeric code passed through to the filter as if it were a color. The fix paired the code with the swatch tooltip, and the rule “never prefix a name that is already a name” stopped the fix from damaging good data. This is the general lesson: clean at the boundary where the name is captured, because a classifier downstream is being asked to guess.

Blank swatches survived as blank colors. Single-color products without a color name persisted as null, which the connector’s readiness gate flags. The right answer is an explicit “not applicable” state, not a guess at a family and not a null that breaks a filter.

A missing label was silent. The first version simply produced a wrong value. The warning line per unresolved code turned it into a task.

Model confidence was not correctness. Compound and merchandising names passed text classification with high confidence and still landed in the wrong family. Those rows are why the review queue exists and why auto-accept is a policy the operator sets, not a default.

A taxonomy change invalidated old decisions. Adding families made earlier mappings ambiguous. Re-review is the only honest response: the previous acceptance was correct under the old list, and pretending otherwise leaves a filter that is wrong in a way nobody can see.

Frequently asked questions

Why not just use a fixed list of color names?

Because supplier vocabulary is open and the storefront vocabulary is closed, and the two do not meet without a mapping. A fixed list handles Navy and fails on Team Navy, 001, Charcoal Hthr and Navy/White. The list is still needed — as the set of allowed answers the classifier must choose from.

Do you need a vision model for color classification?

Only for the rows where text has nothing to say: a bare code, an unknown abbreviation, or a merchandising name with no color word. Text handles most names more cheaply and more predictably. Vision earns its cost as the tiebreaker on the residue, and only when a swatch or product image exists.

How does the review queue stay manageable?

By classifying distinct names rather than variants, so a thousand products with twelve color names produce twelve decisions, and by letting an accepted or rejected decision become an alias so the same input never returns. Bulk accept is limited to rows with identical evidence, which keeps the queue fast without turning it into a rubber stamp.

What is re-review and why does it matter?

Re-review is the pass that re-queues previously accepted mappings after the family list, the alias table or the model changes. A decision made under a six-family taxonomy is not automatically right under a twelve-family one, and a model upgrade can change many answers at once.

How should a product with no color name be handled?

As an explicit "not applicable" state, not as a guess and not as null. Single-color products often have no meaningful color name, and forcing them into the nearest family pollutes the filter. Null is worse, because it silently breaks any code that expects a value.

Can the models write directly to the storefront filter?

No. Only accepted rows are published. A model suggestion enters the queue with its confidence and evidence, and a human decision promotes it. The storefront reads a reviewed mapping table, which means a model change cannot alter live filters without a review pass.

What is the most common cause of bad color data?

A blank or renamed field at the source, not a bad classification. Codes passed through, names hidden in tooltips, and swatches with no label account for more wrong filter values than model errors do. Cleaning at the capture boundary is cheaper than correcting downstream.