Technology
· 13 min read

How AI HTS Classification Works: A Step-by-Step Breakdown

From product description to 10-digit HTS code — here's exactly what happens inside an AI classification system. Attribute extraction, GRI analysis, confidence scoring, and duty calculation explained.

TT

TariffLens Team

Trade Compliance

From product description to 10-digit HTS code — here's exactly what happens inside an AI classification system

You've heard that AI can classify products to HTS codes in seconds. But what actually happens between entering a product description and getting a tariff code back? Understanding the mechanics helps you evaluate tools, trust the output, and know when to override the machine.

This post walks through the entire AI HTS classification process, step by step, so you can understand what's happening under the hood and make better decisions about when and how to use it.

Step 1: Product Description Ingestion

Everything starts with information about the product. AI HTS classification systems accept input in several forms:

  • Free-text product descriptions from invoices, purchase orders, or catalogs
  • Structured product data with fields for material, dimensions, weight, function, and intended use
  • Images and technical specifications (in more advanced systems)
  • Historical classification data from previous entries

The quality of input directly determines the quality of output. A description like "plastic widget" gives the AI almost nothing to work with. A description like "injection-molded polypropylene snap-fit enclosure for consumer electronics, 12cm x 8cm x 3cm, manufactured in Vietnam" provides the specific attributes needed for accurate classification.

This is why the best AI HTS classification tools include structured input forms that prompt users for the exact information the system needs — material composition, primary function, dimensions, country of origin, and end use.

Step 2: Understanding the Product

Once the system has a product description, it needs to understand what the product actually is. AI systems use natural language processing to identify the attributes that matter for classification — things like material composition, function, intended use, and physical characteristics.

This is more than keyword extraction. The AI needs to understand that for some products, material composition is the primary classification driver (Chapter 39 for plastics, Chapter 72 for steel), while for others, function dominates (Chapter 84 for machinery, Chapter 85 for electronics). Getting this distinction right is essential for navigating the tariff schedule correctly.

Step 3: Navigating the Tariff Schedule

With a solid understanding of the product, the AI navigates the HTS hierarchy — much like a human classifier would, starting broad and narrowing down.

The HTS is organized into 22 sections covering everything from live animals (Section I) to works of art (Section XXI). The AI needs to identify which section and chapter a product belongs to, then determine the correct 4-digit heading.

This is where the General Rules of Interpretation (GRI) become critical. Consider a plastic enclosure designed for electronics:

  • Under GRI 1, should it classify by material (Chapter 39, plastics) or by function (Chapter 85, electronics)?
  • Chapter notes may exclude certain articles — Chapter 39 Note 2 excludes parts of Section XVI articles
  • The AI must weigh these rules to determine the correct heading

These GRI decisions are where classification gets genuinely difficult — for both humans and AI. Products that could fall under multiple headings require careful analysis of the rules, not just pattern matching.

Step 4: Subheading and Statistical Suffix Determination

Once the heading is identified, the AI drills down to the 6-digit subheading and then the full 10-digit HTS code. Each level adds specificity:

  • 4-digit heading: Broad product category
  • 6-digit subheading: International standard (harmonized across countries)
  • 8-digit code: U.S.-specific tariff line
  • 10-digit code: Statistical reporting suffix

At this level, the AI considers highly specific criteria — exact material composition percentages, dimensional thresholds, value ranges, and technical specifications that distinguish one statistical suffix from another.

Step 5: Confidence Scoring

A critical feature that separates good AI HTS classification from basic lookup tools: the system evaluates how confident it is in the result.

Not every classification carries the same certainty. A standard cotton t-shirt maps cleanly to a single code. A composite product made from multiple materials with both decorative and functional uses could reasonably fall under several headings. AI systems that provide confidence scores let you know which is which.

What Confidence Means in Practice

Confidence Level Recommended Action
High (90%+) Auto-classify with periodic audit sampling
Medium (70-89%) Route to analyst for quick review
Low (Below 70%) Requires full manual classification

This tiered approach is how AI HTS classification delivers real productivity gains. Instead of classifying every product manually, analysts focus their expertise where it matters most — on the ambiguous cases that AI flags for review.

Step 6: Duty Rate Calculation

Once the HTS code is assigned, the AI calculates the total duty exposure. In 2026, this is far more complex than looking up a single rate:

  • Column 1 General Rate: The standard MFN duty rate
  • Column 1 Special Rate: Preferential rates under trade agreements (USMCA, etc.)
  • Section 301 tariffs: Additional duties on Chinese-origin goods
  • Section 232 tariffs: Steel and aluminum duties
  • Section 122 tariffs: The new 15% baseline tariff
  • Antidumping/Countervailing duties: Product and country-specific additional duties

A single product from China might face a 5% general duty rate plus 25% Section 301 tariff plus 15% Section 122 tariff — totaling 45% in duties. AI calculates this instantly across thousands of SKUs, flagging products with the highest total duty exposure for potential mitigation strategies.

Step 7: Explanation and Documentation

The final output isn't just a code — it should include a classification rationale that explains why the code was chosen. Good AI classification tools provide enough reasoning for a trade compliance professional to quickly evaluate the result and for audit purposes.

This documentation serves a dual purpose: it helps analysts review the classification quickly, and it provides the audit trail that CBP expects if your classifications are ever questioned.

Why This Step-by-Step Process Matters

Understanding how AI HTS classification works helps you in three ways:

Better Input = Better Output

Knowing that the system extracts specific attributes means you can provide better product descriptions. Structured data with material composition, function, and dimensions will always produce more accurate results than vague descriptions.

Smarter Review Workflows

Understanding confidence scoring lets you build efficient triage workflows. High-confidence classifications get approved in bulk. Low-confidence ones get expert attention. This is how a team of five analysts can handle the classification volume that previously required twenty.

Informed Tool Selection

When evaluating AI HTS classification vendors, you can ask the right questions: How does the system handle GRI conflicts? What's the confidence threshold for auto-classification? Can it calculate layered duty rates? Does it provide audit-ready documentation?

The AI systems that follow this structured, explainable approach — rather than treating classification as a black-box prediction — are the ones that deliver real compliance value.


Last updated: March 2026. This content is for informational purposes only and does not constitute legal or trade compliance advice. Consult a licensed customs broker or trade attorney for guidance on specific classification questions.

Ready to classify your products?

Try our AI-powered classification tool for instant HTS codes.

Learn more