{"id":1041,"date":"2023-05-01T10:01:10","date_gmt":"2023-05-01T10:01:10","guid":{"rendered":"https:\/\/artelnics.com\/?post_type=case_studies&#038;p=1041"},"modified":"2026-08-21T20:20:26","modified_gmt":"2026-08-21T20:20:26","slug":"hscodes","status":"publish","type":"case_studies","link":"https:\/\/artelnics.com\/case_studies\/hscodes\/","title":{"rendered":"Automation of HS codes assignment for Nestle"},"content":{"rendered":"<div class=\"aui aui-content-page artelnics-shared-page\" data-artelnics-shared-content>\n<section>An increasing number of businesses are choosing to automate their manual processes. This allows them to streamline their workflows, become more productive, cut costs, and reduce human error. Manual data entries fall victim to human error. Moreover, they consume a lot of time, which could be used for other, more complex tasks. This is why a Nestle decided to invest in automating the HS assignment process for each of its products.<\/section>\n<section id=\"HS codes\">\n<hr \/>\n<h2>HS codes<\/h2>\n<p>The HS code is an international standardized system of numbers to classify traded products. In an international shipment, every item must have an HS code and should be placed in the Commercial Invoice. The code must be correctly introduced to determine the number of import duties or other taxes the company must pay.<\/p>\n<p>In the following graph, we can observe how the HS codes are organized:<\/p>\n<figure class=\"artelnics-shared-figure\"><img decoding=\"async\" src=\"https:\/\/artelnics.com\/wp-content\/uploads\/2023\/05\/hscodes.webp\" alt=\"HS code hierarchy used to classify traded products\"><figcaption>HS code hierarchy used to classify traded products.<\/figcaption><\/figure>\n<p>As we can see, each pair of numbers refers to some specific information about the product.<\/p>\n<\/section>\n<section id=\"algorithm\">\n<hr \/>\n<h2>Machine learning algorithm<\/h2>\n<p>This project aims to create a machine learning model to automatically assign the HS code to each product based on its description. By using this algorithm, it is possible to eliminate manual data entry. This simplifies the work of warehouse employees, reduces errors in assigning HS codes to products, and saves time and costs.<\/p>\n<p>The algorithm consists of a machine learning model that describes a product and assigns the proper HS code by using specific rules. We can observe this process in the following diagram:<\/p>\n<div class=\"aui-card-grid aui-grid-two artelnics-shared-flow\" aria-label=\"Machine learning workflow for HS code assignment\">\n<div class=\"aui-card\"><span>01<\/span><strong>Product descriptions<\/strong><\/p>\n<p>Millions of labelled descriptions are prepared for training.<\/p>\n<\/div>\n<div class=\"aui-card\"><span>02<\/span><strong>Machine learning model<\/strong><\/p>\n<p>The model learns the patterns that connect text with HS codes.<\/p>\n<\/div>\n<div class=\"aui-card\"><span>03<\/span><strong>Unique rules<\/strong><\/p>\n<p>Relevant words and combinations are converted into assignment rules.<\/p>\n<\/div>\n<div class=\"aui-card\"><span>04<\/span><strong>Automatic code<\/strong><\/p>\n<p>New products receive the most appropriate HS code with fewer manual errors.<\/p>\n<\/div>\n<\/div>\n<p>First, the algorithm is trained using millions of product descriptions and their matching HS codes, employing machine learning. Then, it is possible to build a mathematical model that consists of specific rules for the HS code assignment. These rules are a single word or a combination of terms contained in the product\u2019s description and must be unique for each product.<\/p>\n<\/section>\n<section>\n<hr \/>\n<h2>Conclusions<\/h2>\n<p>Before applying artificial intelligence to their HS code assignment process, the company spent a lot of time on this, and the codes were more frequently incorrect.<\/p>\n<p>However, by using Artelnics\u2019 machine learning technology, this company managed to eliminate manual data entry, reduce human errors, and improve efficiency.<\/p>\n<\/section>\n<nav class=\"artelnics-shared-related\" aria-label=\"Case study actions\">\n<div><strong>Have a similar challenge?<\/strong><span>Artelnics can help turn operational data into a practical AI system.<\/span><\/div>\n<div class=\"aui-actions artelnics-shared-related-actions\"><a class=\"aui-button aui-button--secondary\" href=\"\/case_studies\/\">View all projects<\/a><a class=\"aui-button\" href=\"\/contact\/\">Talk to us<\/a><\/div>\n<\/nav>\n\n\n<\/div>","protected":false},"excerpt":{"rendered":"<p>An increasing number of businesses are choosing to automate their manual processes. This allows them to streamline their workflows, become more productive, cut costs, and reduce human error. Manual data entries fall victim to human error. Moreover, they consume a lot of time, which could be used for other, more complex tasks. This is why [&hellip;]<\/p>\n","protected":false},"featured_media":626,"parent":0,"menu_order":0,"template":"","categories":[],"class_list":["post-1041","case_studies","type-case_studies","status-publish","has-post-thumbnail","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/artelnics.com\/api\/wp\/v2\/case_studies\/1041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/artelnics.com\/api\/wp\/v2\/case_studies"}],"about":[{"href":"https:\/\/artelnics.com\/api\/wp\/v2\/types\/case_studies"}],"version-history":[{"count":15,"href":"https:\/\/artelnics.com\/api\/wp\/v2\/case_studies\/1041\/revisions"}],"predecessor-version":[{"id":3304,"href":"https:\/\/artelnics.com\/api\/wp\/v2\/case_studies\/1041\/revisions\/3304"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/artelnics.com\/api\/wp\/v2\/media\/626"}],"wp:attachment":[{"href":"https:\/\/artelnics.com\/api\/wp\/v2\/media?parent=1041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artelnics.com\/api\/wp\/v2\/categories?post=1041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}