‹ Back to Projects

Automation of HS codes assignment for Nestle

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.

HS codes

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.

In the following graph, we can observe how the HS codes are organized:

HS code hierarchy used to classify traded products
HS code hierarchy used to classify traded products.

As we can see, each pair of numbers refers to some specific information about the product.


Machine learning algorithm

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.

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:

01Product descriptions

Millions of labelled descriptions are prepared for training.

02Machine learning model

The model learns the patterns that connect text with HS codes.

03Unique rules

Relevant words and combinations are converted into assignment rules.

04Automatic code

New products receive the most appropriate HS code with fewer manual errors.

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’s description and must be unique for each product.


Conclusions

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.

However, by using Artelnics’ machine learning technology, this company managed to eliminate manual data entry, reduce human errors, and improve efficiency.