PRODUCT TAXONOMY · HS codes
HS code classification: AI suggestions for human review
Train a model on the HS codes you've filed, get a code and a confidence for each new product, and send the unsure ones to your broker. Measured on CBP rulings.
The same question for every new product
The Harmonized System is the shared language of customs tariffs. More than 200 countries and economies use it. Codes are international to six digits, and national tariff schedules can add further digits.
Every new product raises the same question: which code? And for a company that imports or ships thousands of products, the answer is usually already in its own records:
- Your broker classified your earlier shipments, and those codes sit in your entries and your ERP.
- Your compliance team made calls on the products that could fit two headings, sometimes backed by a ruling.
- New products are mostly variations of old ones: a new color, a new size, a new supplier.
CBP suspended duty-free de minimis treatment for covered shipments from all countries on 29 August 2025, increasing the importance of accurate classification. Read CBP’s guidance and exceptions.
Your filed codes are the training file
Suppose you have 20,000 reviewed products and another 2,000 to classify. That is an illustrative workflow, not a measured result: train on the reviewed items and use confidence to help prioritize the next batch.
StayCharted AI Model Trainer learns from the codes you've filed, on the products you sell. It suggests codes consistent with your past decisions, says how sure it is, and leaves the decision with a person.
Keep your labels aligned with the standard’s definitions and release. A model can repeat past mistakes as well as useful patterns; review the history before training.
Six-digit HS vs. national tariff codes: train on what you file
The international HS subheading has six digits. National schedules extend it, often to eight or ten digits, as in the US Harmonized Tariff Schedule (HTS). Keep the destination country and tariff version consistent: an approved code in one market is not automatically the code to file in another.
The UK Government Digital Service gives roasted, non-decaffeinated coffee as an example of a commodity code:
| Product row | Level | Code |
|---|---|---|
| Roasted coffee, not decaffeinated | HS heading | 0901 |
| Same product | HS subheading | 090121 |
| Same product in the UK government example | UK commodity code | 0901210000 |
This shows why the target column matters. If your workflow files national codes, train on the reviewed national code rather than a mixture of four-, six- and ten-digit labels. Preserve leading zeros by storing codes as text.
Check the current national tariff and applicable classification rules before using a code for a declaration. Product composition, processing and intended use can change the decision. Your broker or trade team should approve the example labels and review unfamiliar products; StayCharted learns those labels rather than determining legal tariff treatment.
How it works
- Export your classified products to CSV or Excel: one row per product, with the columns that describe it (description, material, intended use, your product category) and the code you filed. A model can read several columns together.
- Choose the level to train on. The six-digit subheading is the same in every country that uses the HS. Your full national tariff line adds digits; train on it if your history is consistent at that level.
- Check the data before training. Data quality finds duplicate rows, and codes with too few examples.
- Train, then read the report. Accuracy is measured on products the model never saw during training, with accuracy per code and the codes it mixes up.
- Suggest codes for new products. Upload a file with the code column blank, or call the model from your systems through the Prediction API. Every row gets a suggested code and a confidence.
- Send the uncertain ones to a person. Pick a confidence cutoff from the report. Everything below it goes to a Review Queue for your compliance team, or onto the list you send your broker. Their answers become training examples for the next version.
Confidence helps prioritize review; it does not guarantee correctness. Check a sample of high-confidence answers too. Review Queue and Prediction API availability depends on your plan; see current plans. CSV/Excel export and the API are workflow options, not a native PIM or ERP integration.
How accurate is it? We measured it on CBP rulings
CBP publishes classification rulings: a product and its 10-digit HTS code. We trained two StayCharted models on 5,621 rulings and asked them for the code of 1,167 later ones. Each model read only the one-line subject.
| StayCharted AI Model Trainer | 10 digits | 6 (HS) | 2 (chapter) |
|---|---|---|---|
| AI Classifier Model | 22.2% | 29.9% | 53.1% |
| Dedicated AI Model | 25.1% | 39.2% | 74.0% |
- An exact 10-digit code from one line is hard. Material or use may be missing.
- The surest answers are right more often. At confidence ≥0.9, the AI Classifier Model qualified 6.7% of test rulings, with 96.2% exact-code accuracy on those rows. The other 93.3% would go to review.
- Your own history may be easier to learn. Repeated products and fuller descriptions can help; measure accuracy on your own held-out rows before relying on it.
What it is, and what it is not
- It suggests; a person decides. The importer stays responsible for the classification declared to customs. Use the model to prepare and prioritize work for your compliance team or broker, not to replace them.
- It learns your past decisions, including the wrong ones. Wrong codes in your history can teach the model the wrong patterns. Review evaluation errors and source records for inconsistent history.
- It reads text, not the legal notes. HS classification follows General Rules of Interpretation, section and chapter notes, and rulings. The model learns patterns from your descriptions; it doesn't apply those rules.
- Codes change. HS 2028 takes effect on 1 January 2028. Have your compliance team review the WCO amendments, relevant correlation tables and national schedules before updating labels and retraining.
For retailers and marketplaces
Online retailers and marketplaces selling across borders need a code for every product they ship, and their catalogs change daily. Most of those products are new variants of products already classified.
A model trained on the catalog you've already classified suggests codes for new listings as they arrive, from the title, description and your own category. The products it's unsure about go to a person first. And the same catalog history can train a second model that places supplier products into your own category tree. More on this in e-commerce product categorization.
Why not just ask an AI assistant?
An assistant can be a useful starting point when you have a few products to explore. It does not automatically know your approved labels or company conventions unless you supply that context. A trained model learns from labeled examples and gives you held-out results to inspect.
Our assistant-versus-trained-model benchmarks cover other tasks, including banking messages and contract clauses. We haven't compared an assistant on HS codes yet. We have measured trained models on 6,788 CBP rulings, at every digit level, in our HS code benchmark. Those results do not establish accuracy on your product codes. Compare approaches on representative items from your own catalog before relying on them.
What to expect
- Start with the codes you use. Begin with the codes represented in your reviewed data. Our CBP benchmark included 2,014 training codes, many with very few examples; sparse codes were difficult to learn. For a wide range, train one model per chapter or product line, or design and validate a separate chapter-then-code workflow.
- Check rare codes. A category with only a few examples may be difficult to learn and evaluate. The report shows which ones.
- Descriptions decide it. "Bag" leaves out important facts; including material and intended use gives reviewers more information but may not settle the classification. Include material and use where you have them.
What is recorded when you review a suggested HS code?
For answers in StayCharted’s Review Queue, the review record includes the suggested label and confidence, the review state, the label chosen by the reviewer, who reviewed it and when. It also records whether the answer changed and whether review came through the screen or an assistant. Corrections are recorded in Activity against the model with the member who made the change.
| Record | What it helps you check |
|---|---|
| Suggested label and confidence | What the model proposed |
| Reviewed label and changed status | Whether the person kept or corrected that suggestion |
| Reviewer and review time | Who reviewed the answer and when |
| Correction in Activity | The correction action associated with the model |
This is a record of model suggestions and review, not an automatically generated legal classification rationale. A confirmed label is not a customs authority’s approval. Keep tariff rules, product evidence and your broker’s reasoning in your trade-compliance system, linked to the product or declaration. The Review Queue is an operational workflow, not a permanent customs archive. See how long data is kept.
For an audit-ready case file, combine these review records with the applicable tariff rules, product evidence and your broker’s rationale in your compliance system.
Next to your trade suite or your broker
StayCharted doesn't replace a trade compliance suite or a licensed broker. It has no tariff content, rulings research or filing. It prepares the first pass:
- Before your trade suite. Export classification history from your trade or ERP system, train on it, and pre-sort new PIM or ERP items. Your system of record stays where it is.
- Before your broker. Use the cutoff to prepare a review list, with suggested codes or chapters. Your compliance team determines which items require broker confirmation.
- For brokers and forwarders. Keep each client's model and history in a separate workspace.
- In your own cloud. Train a Dedicated AI Model in Amazon Bedrock, Microsoft Foundry or Google Cloud. The trained model stays in your cloud account; StayCharted still processes the examples and results needed to run the workflow. See train-in-your-cloud options.
Common questions about HS code classification
Can AI assign HS codes automatically?
It can suggest them, with a confidence score, from your own classification history. The importer remains responsible for the declared code, so a person should confirm, especially for uncertain or high-value items.
Is a suggested code a binding classification?
No. Only customs authorities issue binding rulings. A suggestion is a starting point for your compliance team or broker.
Should we train on six digits or the full tariff line?
The HS defines the international six-digit level; use the correct edition and jurisdiction. The full national line is more specific; train on it if your history is consistent at that level.
How do you keep up with HS revisions?
WCO’s next edition is HS 2028, effective January 1, 2028. StayCharted does not automatically update your labels. Have your compliance team re-review affected examples against the new edition and national schedule, relabel changed codes, then train and evaluate a new model version before publishing it.
Is my product data used to train anyone else's model?
No. Each model is trained on your examples for your use and is not pooled with anyone else's data.
How accurate is it at 8 or 10 digits?
On later public CBP rulings, from a one-line description, our models matched the 10-digit code on 22.2–25.1%, the 8-digit line on 28.6–34.5%, and the 6-digit subheading on 29.9–39.2%. At confidence ≥0.9, the AI Classifier Model reached 96.2% accuracy on the 6.7% of test rows meeting that cutoff. Measure your own model on held-out rows at the code level you train on.
Is there an accuracy guarantee?
No. The model suggests a code and confidence; the classification decision stays with your compliance team or broker. Validate results on representative products and review unfamiliar or uncertain cases. What we give instead is a measurement: accuracy on products the model never saw, per code, for each version, and a cutoff for review.
Which model should we use for HS codes?
In this CBP test, the AI Classifier Model’s high-confidence subset was more accurate, while the Dedicated AI Model was right more often overall and reached 74% chapter accuracy. Compare both on your own history: use confidence to prioritize review, and chapter suggestions to help your team or broker.
Sources and classification guidance
Check the current guidance and the rules that apply to your business. These sources explain classification systems and requirements; they do not certify StayCharted or validate its predictions.
Explore related classification workflows
Map supplier products to your own categories →
Compare ETIM, ECLASS, GS1 GPC and HS classification workflows →
- What Is a Business Taxonomy, and Why It Matters
- ETIM Classification Tool: Train AI on Your Catalog
- ECLASS Classification with AI
- GS1 GPC Brick Classification with AI
Product categorization for retail and e-commerce · Supplier data classification