Automatic Product Classification in International Trade: Machine Learning and Large Language Models
- 16 July 2025
- journal article
- Published by Wiley in Review of International Economics
- Vol. 34 (1) , 3-19
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.Keywords
This publication has 19 references indexed in Scilit:
- Can ChatGPT improve investment decisions? From a portfolio management perspectiveFinance Research Letters, 2024
- ChatGPT: Jack of all trades, master of noneInformation Fusion, 2023
- Role of Chat GPT in Public HealthAnnals of Biomedical Engineering, 2023
- ChatGPT for good? On opportunities and challenges of large language models for educationLearning and Individual Differences, 2023
- The use of machine learning to identify the correctness of HS Code for the customs import declarations2021
- Machine Learning: Algorithms, Real-World Applications and Research DirectionsSN Computer Science, 2021
- Deep learning-based image recognition for autonomous drivingIATSS Research, 2019
- A Comparison of Traditional Machine Learning and Deep Learning in Image RecognitionJournal of Physics: Conference Series, 2019
- Visual and Textual Feature Fusion for Automatic Customs Tariff Classification2015
- A Survey of Text Classification Algorithms2012