Attribute knowledge and KBGAT for predicting the accuracy of the harmonized system code for classifying import and export commodities

The harmonized system (HS) code is a unique identifier for classifying import and export commodities, serving as the foundation for customs statistics and taxation and the safe regulation of imports and exports. However, its accuracies in import- and export-commodity classifications can only be examined via highly specialized and labor-intensive procedures. The traditional methods for predicting the accuracy of the HS code are limited by several factors, such as disordered declaration information, isolated declaration elements, excessively specialized terminologies, and imbalanced commodity categories, and often focus on only one of the semantic or spatial features, which results in unsatisfactory prediction accuracy. Thus, this study fully combines the semantic and spatial features of commodity description information, aiming to demonstrate a method for predicting the HS codes for classifying import and export commodities by integrating attribute knowledge with a knowledge-based graph attention network (KBGAT). Additionally, this study leverages the semantic associations and attribute associations of declaration elements in the declaration information of customs declaration, the HS code prediction problem is transformed into a link complementation problem on the knowledge graph through the structured representation of the knowledge graph and the graph attention mechanism. In comparative experiments involving single- and multi-category HS-code predictions, our KBGAT model significantly outperforms the TransE, ConvE, relational graph convolutional network (R-GCN) and bidirectional encoder representations from transformers (BERT) models across various evaluation metrics, including accuracy, F1 score, Hits@3 and Hits@10. Furthermore, the results of the ablation study indicate that the attribute associations among the declaration elements significantly improve the HS-code prediction accuracy, whereas the semantic associations in the commodity-description texts positively contribute to the prediction effectiveness.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-12-09
DOI
https://doi.org/10.1038/s41598-025-16580-7
Primary Topic
Economic and Technological Innovation
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Attribute knowledge and KBGAT for predicting the accuracy of the harmonized system code for classifying import and export commodities

Mengjie Liao, Lin Qi, Qianqian Zhang, Jian Zhang et al.
Scientific Reports
Economic and Technological Innovation
article

Attribute knowledge and KBGAT for predicting the accuracy of the harmonized system code for classifying import and export commodities

Mengjie Liao, Lin Qi, Qianqian Zhang, Jian Zhang, Lin Xiao
article en

Abstract

The harmonized system (HS) code is a unique identifier for classifying import and export commodities, serving as the foundation for customs statistics and taxation and the safe regulation of imports and exports. However, its accuracies in import- and export-commodity classifications can only be examined via highly specialized and labor-intensive procedures. The traditional methods for predicting the accuracy of the HS code are limited by several factors, such as disordered declaration information, isolated declaration elements, excessively specialized terminologies, and imbalanced commodity categories, and often focus on only one of the semantic or spatial features, which results in unsatisfactory prediction accuracy. Thus, this study fully combines the semantic and spatial features of commodity description information, aiming to demonstrate a method for predicting the HS codes for classifying import and export commodities by integrating attribute knowledge with a knowledge-based graph attention network (KBGAT). Additionally, this study leverages the semantic associations and attribute associations of declaration elements in the declaration information of customs declaration, the HS code prediction problem is transformed into a link complementation problem on the knowledge graph through the structured representation of the knowledge graph and the graph attention mechanism. In comparative experiments involving single- and multi-category HS-code predictions, our KBGAT model significantly outperforms the TransE, ConvE, relational graph convolutional network (R-GCN) and bidirectional encoder representations from transformers (BERT) models across various evaluation metrics, including accuracy, F1 score, Hits@3 and Hits@10. Furthermore, the results of the ablation study indicate that the attribute associations among the declaration elements significantly improve the HS-code prediction accuracy, whereas the semantic associations in the commodity-description texts positively contribute to the prediction effectiveness.

Scientific ReportsVol. 15(1)
Beijing Institute of Big Data Research (CN), Beijing Urban Systems Engineering Research Center (CN), Beijing Information Science & Technology University (CN)
Openalex Percentile: Top 54%
Economic and Technological Innovation
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.