IDEAS home Printed from https://ideas.repec.org/p/zbw/wtowps/314422.html

Beyond six digits: Automated tariff line HS transposition using Natural Language Processing

Author

Listed:
  • Bayona, Pamela

Abstract

This paper explores the application of Natural Language Processing (NLP) techniques to automate Harmonized System (HS) tariff line transposition, employing a three-stage process: unique 1:1 tariff code matching (Round 1), exact description matching (Round 2), and "smart" description matching (Round 3) using Artificial Intelligence (AI) and lexical similarity methods paired with harmonized 6- digit concordance and cosine similarity. Similarity is calculated using either Term Frequency Inverse Document Frequency (TF-IDF) vectors or Sentence-BERT (SBERT) embeddings, comparing two scenarios: a straightforward case (Economy A) with standardized descriptions, and a complex case (Economy B), with more detailed technical descriptions. Results indicate that automated HS transposition can significantly augment the efficiency of traditionally manual methods, reducing processing time from two to three weeks to approximately half a day (up to 30 times faster). The overall accuracy rate is 99.6% for the simpler scenario and 98.8% for the complex one, for a standard set of approximately 10,000 HS codes. While non-AI techniques cover most of the accurate matches, AI-based Round 3 techniques address cases requiring the most manual effort. SBERT generally outperforms TF-IDF, however including subheadings tends to reduce its accuracy. In certain cases, particularly for highly technical tariffs, TF-IDF's straightforward approach provides an advantage over SBERT. Overall, NLP techniques hold significant potential for improving HS transposition methods and facilitating the development of richer tariffs and trade datasets to enable more in-depth analyses. Future research should focus on refining these techniques across diverse datasets to optimize their broader application in tariff and trade data analysis.

Suggested Citation

  • Bayona, Pamela, 2025. "Beyond six digits: Automated tariff line HS transposition using Natural Language Processing," WTO Staff Working Papers ERSD-2025-04, World Trade Organization (WTO), Economic Research and Statistics Division.
  • Handle: RePEc:zbw:wtowps:314422
    as

    Download full text from publisher

    File URL: https://www.econstor.eu/bitstream/10419/314422/1/192058840X.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Feinerer, Ingo & Hornik, Kurt & Meyer, David, 2008. "Text Mining Infrastructure in R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 25(i05).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Grinis, Inna, 2017. "The STEM requirements of "non-STEM" jobs: evidence from UK online vacancy postings and implications for skills & knowledge shortages," LSE Research Online Documents on Economics 85123, London School of Economics and Political Science, LSE Library.
    2. Sjoerd Halem & Eeske Roekel & Jaap Denissen, 2024. "Understanding the Dynamics of Hedonic and Eudaimonic Motives on Daily Well-Being: Insights from Experience Sampling Data," Journal of Happiness Studies, Springer, vol. 25(7), pages 1-25, October.
    3. Julia Bachtrögler & Christoph Hammer & Wolf Heinrich Reuter & Florian Schwendinger, 2019. "Guide to the galaxy of EU regional funds recipients: evidence from new data," Empirica, Springer;Austrian Institute for Economic Research;Austrian Economic Association, vol. 46(1), pages 103-150, February.
    4. Shuyue Huang & Lena Jingen Liang & Hwansuk Chris Choi, 2022. "How We Failed in Context: A Text-Mining Approach to Understanding Hotel Service Failures," Sustainability, MDPI, vol. 14(5), pages 1-18, February.
    5. Laura Anderlucci & Cinzia Viroli, 2020. "Mixtures of Dirichlet-Multinomial distributions for supervised and unsupervised classification of short text data," Advances in Data Analysis and Classification, Springer;German Classification Society - Gesellschaft für Klassifikation (GfKl);Japanese Classification Society (JCS);Classification and Data Analysis Group of the Italian Statistical Society (CLADAG);International Federation of Classification Societies (IFCS), vol. 14(4), pages 759-770, December.
    6. Stefano Sbalchiero & Maciej Eder, 2020. "Topic modeling, long texts and the best number of topics. Some Problems and solutions," Quality & Quantity: International Journal of Methodology, Springer, vol. 54(4), pages 1095-1108, August.
    7. Daoud, Adel & Kohl, Sebastian, 2016. "How much do sociologists write about economic topics? Using big data to test some conventional views in economic sociology, 1890 to 2014," MPIfG Discussion Paper 16/7, Max Planck Institute for the Study of Societies.
    8. Necmettin Alpay Koçak, 2020. "The Role of Ecb Speeches in Nowcasting German Gdp," European Financial and Accounting Journal, Prague University of Economics and Business, vol. 2020(2), pages 05-20.
    9. JooSeok Oh & Timothy Paul Connerton & Hyun-Jung Kim, 2019. "The Rediscovery of Brand Experience Dimensions with Big Data Analysis: Building for a Sustainable Brand," Sustainability, MDPI, vol. 11(19), pages 1-21, September.
    10. Schierholz, Malte & Gensicke, Miriam & Tschersich, Nikolai, 2016. "Occupation coding during the interview," IAB-Discussion Paper 201617, Institut für Arbeitsmarkt- und Berufsforschung (IAB), Nürnberg [Institute for Employment Research, Nuremberg, Germany].
    11. Igor Barahona & Daría Micaela Hernández & Héctor Hugo Pérez-Villarreal & María Pilar Martínez-Ruíz, 2018. "Identifying research topics in marketing science along the past decade: a content analysis," Scientometrics, Springer;Akadémiai Kiadó, vol. 117(1), pages 293-312, October.
    12. Borke, Lukas & Härdle, Wolfgang Karl, 2016. "Q3-D3-Lsa," SFB 649 Discussion Papers 2016-049, Humboldt University Berlin, Collaborative Research Center 649: Economic Risk.
    13. Sangsung Park & Sunghae Jun, 2020. "Patent Keyword Analysis of Disaster Artificial Intelligence Using Bayesian Network Modeling and Factor Analysis," Sustainability, MDPI, vol. 12(2), pages 1-11, January.
    14. David C Molik & DeAndre Tomlinson & Shane Davitt & Eric L Morgan & Matthew Sisk & Benjamin Roche & Natalie Meyers & Michael E Pfrender, 2021. "Combining natural language processing and metabarcoding to reveal pathogen-environment associations," PLOS Neglected Tropical Diseases, Public Library of Science, vol. 15(4), pages 1-21, April.
    15. Hornik, Kurt & Grün, Bettina, 2014. "movMF: An R Package for Fitting Mixtures of von Mises-Fisher Distributions," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 58(i10).
    16. Tomasz Kopczewski, 2015. "Think not calculate! Implementation of Felix Klein postulates in economic education with CAS software," Working Papers 2015-38, Faculty of Economic Sciences, University of Warsaw.
    17. Croce, Annalisa & Toschi, Laura & Ughetto, Elisa & Zanni, Sara, 2024. "Cleantech and policy framework in Europe: A machine learning approach," Energy Policy, Elsevier, vol. 186(C).
    18. Holand, Øystein & Contiero, Barbara & Næss, Marius W. & Cozzi, Giulio, 2024. "“The Times They Are A-Changin' “ – research trends and perspectives of reindeer pastoralism – A review using text mining and topic modelling," Land Use Policy, Elsevier, vol. 136(C).
    19. Cho, Yung-Jan & Fu, Pei-Wen & Wu, Chi-Cheng, 2017. "Popular Research Topics in Marketing Journals, 1995–2014," Journal of Interactive Marketing, Elsevier, vol. 40(C), pages 52-72.
    20. Junhyeog Choi & Sunghae Jun & Sangsung Park, 2016. "A Patent Analysis for Sustainable Technology Management," Sustainability, MDPI, vol. 8(7), pages 1-13, July.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • F10 - International Economics - - Trade - - - General
    • F13 - International Economics - - Trade - - - Trade Policy; International Trade Organizations

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:zbw:wtowps:314422. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: ZBW - Leibniz Information Centre for Economics (email available below). General contact details of provider: https://edirc.repec.org/data/wtoerch.html .

    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.