IDEAS home Printed from https://ideas.repec.org/a/bla/reviec/v34y2026i1p3-19.html

Automatic Product Classification in International Trade: Machine Learning and Large Language Models

Author

Listed:
  • Ignacio Marra de Artiñano
  • Franco Riottini Depetris
  • Christian Volpe Martincus

Abstract

Accurate product classification is crucial in international trade. In this study, we apply and assess several algorithms to automatically classify agricultural and food products based on text descriptions sourced from different public agencies, including customs authorities and the United States Department of Agriculture (USDA). We find that while traditional machine learning (ML) models tend to perform well within the dataset on which they are trained, their precision drops dramatically when applied to external datasets. In contrast, large language models (LLMs) show a consistently strong performance across all datasets. The top performing LLMs—Claude 3.5 Sonnet and GPT‐4—achieve accuracy rates of approximately 80% at classifying products into 6‐digit Harmonized System (HS) categories and above 90% for HS 2‐digit Chapters. Our analysis highlights the valuable role that artificial intelligence can play in facilitating product classification at scale and, more generally, in enhancing the categorization of unstructured data.

Suggested Citation

  • Ignacio Marra de Artiñano & Franco Riottini Depetris & Christian Volpe Martincus, 2026. "Automatic Product Classification in International Trade: Machine Learning and Large Language Models," Review of International Economics, Wiley Blackwell, vol. 34(1), pages 3-19, February.
  • Handle: RePEc:bla:reviec:v:34:y:2026:i:1:p:3-19
    DOI: 10.1111/roie.70009
    as

    Download full text from publisher

    File URL: https://doi.org/10.1111/roie.70009
    Download Restriction: no

    File URL: https://libkey.io/10.1111/roie.70009?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    Other versions of this item:

    More about this item

    JEL classification:

    • F10 - International Economics - - Trade - - - General
    • C55 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Large Data Sets: Modeling and Analysis
    • C81 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Microeconomic Data; Data Access
    • C88 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Other Computer Software

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bla:reviec:v:34:y:2026:i:1:p:3-19. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: http://www.blackwellpublishing.com/journal.asp?ref=0965-7576 .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.