DOCS

Country of Origin

Country of Origin

Predict manufacturing origin when it's missing, or validate a declared country of origin against AI-powered analysis.

Country of Origin 

Zonos AI Country of origin (COO) eliminates supply chain uncertainty by intelligently determining product manufacturing locations when this critical information is missing. Our COO prediction system examines product attributes and manufacturing patterns to identify the most likely country of origin with measurable confidence scores.

Accurate country of origin information is essential for international trade compliance, determining tariff rates, meeting regulatory requirements, and navigating trade restrictions. Missing or incorrect origin data can result in customs delays, penalties, and supply chain disruptions.

This solution addresses critical scenarios like missing manufacturer data from sellers or suppliers, secondhand marketplaces where resellers don't know the original manufacturing location, and verifying compliance by cross-checking existing country of origin claims.

How it works 

Under the hood, the service runs our proprietary multimodal, multilingual transformer based model. The model ingests text from the name, description, and categories fields, and when supplied, an image URL is encoded by a shared vision adapter. The model has been optimized to produce well calibrated inference probabilities across all 200+ Zonos supported countries. The label with the highest probability is returned as countryOfOrigin and the top 5 labels form alternates. The model is refreshed on a rolling schedule using tens of millions of anonymized customs declarations and ecommerce listings.

Prediction accuracy correlates directly with input data quality. Detailed product descriptions with ship-from country data yield high confidence results, while generic descriptions provide insufficient information for reliable prediction.

Alternates 

Since global manufacturing often involves multiple countries, Zonos Country of Origin provides a primary country of origin prediction along with alternate possibilities when manufacturing patterns indicate multiple viable locations. Each prediction includes confidence scores based on data strength. We recommend using alternates to evaluate edge cases and make informed verification decisions, particularly when the primary prediction has moderate confidence. See the Infer a country of origin section below for an example of alternates in the API response.

Confidence scoring 

Every prediction includes a confidence score (0.0-1.0) based on data quality and pattern strength, with higher scores indicating greater certainty and lower scores suggesting manual review may be needed.

The primary prediction receives the main confidenceScore (0.0-1.0) representing overall confidence in the top result. Alternates, on the other hand, use probabilityMass values - negative log probabilities where values closer to zero indicate higher likelihood among the alternative countries. All prediction scores across alternates total 1.0, showing how certainty is distributed across possible countries.

You can establish custom confidence thresholds that align with your business requirements - for example, automatically accepting primary predictions above 0.85 while routing lower scores to manual review where alternates can guide decision-making.

Infer a country of origin 

Zonos Country of Origin is currently available via API only.

To infer a country of origin, use the countryOfOriginInfer mutation with your product data. While only the name field is required, providing more detailed information significantly improves prediction accuracy and confidence scores.

1mutation CountryOfOriginInfer($input: [CountryOfOriginInferenceInput!]!) {
2 countryOfOriginInfer(input: $input) {
3 brand
4 categories
5 confidenceScore
6 countryOfOrigin
7 name
8 description
9 material
10 alternates {
11 countryOfOrigin
12 probabilityMass
13 }
14 }
15}

Validate a country of origin 

When a country of origin is already provided — whether from a seller, catalog, or other source — Zonos can validate it rather than predict from scratch. The countryOfOriginValidate mutation passes the provided country directly to the model and asks: "How likely is it that this product actually comes from this country?"

The response includes a probabilityOfMisrepresentation score (0.0–1.0). A score closer to zero means the provided country is plausible; a score closer to 1.0 indicates the declared origin is likely inaccurate. The alternates field shows other countries the model considers likely, which can help identify the actual origin when misrepresentation is flagged.

This is useful for cross-checking supplier-provided country of origin claims, screening secondhand or resale inventory, and supporting compliance review workflows.

1mutation CountryOfOriginValidate($input: [CountryOfOriginValidateInput!]!) {
2 countryOfOriginValidate(input: $input) {
3 countryOfOrigin
4 probabilityOfMisrepresentation
5 alternates {
6 countryOfOrigin
7 probabilityMass
8 }
9 }
10}

In the example above, the provided country of origin is US, but the model returns a probabilityOfMisrepresentation of 0.884 — indicating a high likelihood the declared origin is inaccurate. The alternates list shows CN as the most probable actual origin, which would be consistent with the manufacturer of this product.

Implementation 

We recommend deploying Zonos Country of Origin with confidence thresholds that align to your compliance standards, review workflows for low-confidence results, and implementing fallback strategies when primary predictions return moderate confidence.

This solution is meant to enhance (not replace) your existing country of origin and compliance processes by filling information gaps. Use predictions as actionable intelligence to support verification efforts and identify where additional due diligence is needed.

GraphQL API ReferenceTypes, inputs, and operations used in this guide
Book a demo

Was this page helpful?