Methods for recommending HS codes for goods, electronic equipment and media

The two-level classification model trained through machine learning algorithms uses basic elements and supplementary elements to solve the accuracy problem caused by differences in product coding, achieve fast and accurate HS code recommendation, and reduce error rates and costs.

CN114548041BActive Publication Date: 2024-09-17BMW BRILLIANCE AUTOMOTIVE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011352495.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2024-09-17
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

In the existing technology, the HS codes of goods in different countries are different, which makes accurate coding of goods difficult, time-consuming and error-prone, resulting in customs declaration problems and economic losses.

Method used

Machine learning algorithms are used to train the first-level and second-level classification algorithm models, and the HS codes of goods are recommended through basic elements and supplementary elements in historical data to improve the accuracy and efficiency of coding.

Benefits of technology

Through two-level classification technology, the HS code of goods is quickly and accurately recommended, reducing the error rate of manual coding and the time and cost of cross-checking, and improving coding efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114548041B
    Figure CN114548041B
Patent Text Reader

Abstract

The present invention discloses a method, electronic device and medium for recommending HS codes for goods. The method comprises: obtaining a first-level classification algorithm model; obtaining a second-level classification algorithm model corresponding to each major category; obtaining a list of supplementary elements corresponding to each major category. The method further comprises, in response to receiving the basic elements of the goods, performing the following operations: based on the basic elements, using the first-level classification algorithm model to recommend the major category to which the goods belong; according to the recommended major category, obtaining a list of supplementary elements corresponding to the major category; determining the content of one or more supplementary elements in the list of supplementary elements according to the basic elements; based on the basic elements and the content filled in the list of supplementary elements, using the second-level classification algorithm model corresponding to the recommended major category to recommend the HS code of the goods.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method, an electronic device and a medium for recommending HS codes for goods. Background Art

[0002] In international trade, for the purpose of customs tariffs and trade statistics, as well as for the billing, statistics, computer data transmission, simplification of international trade documents and the use of general preferential tariff numbers, all imported and exported goods need to be coded. The current code is based on the Harmonized Commodity Description and Coding System (abbreviated as "Harmonized System" (HS)), which is a multi-purpose international trade commodity classification catalog developed to coordinate various international commodity classification catalogs.

[0003] HS code divides all commodities into 22 categories and 98 chapters, and each chapter is further divided into headings (the first four digits of the code) and subheadings (the first six digits of the code). The first six digits of the HS code are the unified HS code in the world, and the digits after the sixth digit are the subheadings of each country based on its own actual situation, without violating the basic principles and regulations of the HS code. For example, my country's HS code has 10 digits. In actual work, it is necessary to accurately classify the goods into the corresponding codes in the "Harmonized System" and determine the names of the goods. Since the digits after the sixth digit of the HS code are different for different countries, when determining the HS code of a product in my country, it is not possible to directly refer to the HS code of the product in a foreign country, but it needs to be done manually by professionals. Obviously, this work requires very high skills and experience of the operator, is very time-consuming and prone to errors. Errors in HS codes may cause problems in customs declaration and cause economic losses, and therefore need to be avoided as much as possible. In addition, in order to avoid manual classification errors, it takes time and financial costs to cross-check.

[0004] Therefore, in view of the problem that it is difficult to accurately determine the HS code in the relevant technology, a method for recommending HS codes for goods is needed. Summary of the invention

[0005] In view of the above technical problems, the present invention proposes a method, electronic device and medium for recommending HS codes for goods.

[0006] According to one aspect of the present disclosure, there is provided a method for recommending HS codes for goods, comprising: obtaining a first-level classification algorithm model, wherein the first-level classification algorithm model is trained by a machine learning algorithm using first historical data, the first historical data including basic elements of historical goods and the first few digits of the HS code indicating the major category to which the historical goods belong, and the historical goods are goods for which the HS code has been determined; obtaining a second-level classification algorithm model corresponding to each major category, wherein the second-level classification algorithm model is trained by a machine learning algorithm using second historical data, the second historical data including basic elements, HS codes and supplementary elements of historical goods belonging to the corresponding major category; obtaining a list of supplementary elements corresponding to each major category, wherein the supplementary elements can be determined based on the basic elements of the goods. The method also includes the following operations in response to receiving the basic elements of the goods: based on the basic elements, using a first-level classification algorithm model to recommend a major category to which the goods belong; based on the recommended major category, obtaining a list of supplementary elements corresponding to the major category; based on the basic elements, determining the content of one or more supplementary elements in the list of supplementary elements; based on the basic elements and the content filled in the list of supplementary elements, using a second-level classification algorithm model corresponding to the recommended major category to recommend the HS code of the goods.

[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: a memory configured to store a series of computer-executable instructions; and one or more processors configured to execute the computer-executable instructions stored in the memory, so that the electronic device performs the method according to the present invention.

[0008] According to yet another aspect of the present disclosure, a non-transitory computer-readable medium is provided, on which computer-executable instructions are stored. When the computer-executable instructions are executed by one or more computing devices, the one or more computing devices are enabled to perform the method according to the present invention.

[0009] Other features and advantages of the present invention will become more apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0011] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:

[0012] Figure 1 is a flow chart of a method for recommending HS codes of goods according to an embodiment of the present disclosure;

[0013] Figure 2 is a schematic diagram of an example of a user customizing a second-level classification algorithm model according to an embodiment of the present disclosure;

[0014] Figure 3 is a schematic diagram of another example of a user customizing a second-level classification algorithm model according to an embodiment of the present disclosure;

[0015] Figure 4 is an example of a method for evaluating multiple second-level classification algorithm models according to an embodiment of the present disclosure;

[0016] Figure 5 is another example of a method for evaluating multiple second-level classification algorithm models according to an embodiment of the present disclosure; and

[0017] Figure 6 It is an exemplary configuration of a server and / or terminal device that can implement an embodiment of the present invention. DETAILED DESCRIPTION

[0018] The following description is provided to enable those skilled in the art to make and use the embodiments, and is provided in the context of a particular system and its requirements. Various modifications will be apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and systems without departing from the spirit and scope of the embodiments. Therefore, the embodiments are not limited to the embodiments shown, but are to be given the widest scope consistent with the principles and features disclosed herein.

[0019] Figure 1 4 is a flowchart of a method for recommending HS codes of goods according to an embodiment of the present disclosure.

[0020] like Figure 1 As shown, at step 101, a first-level classification algorithm model is obtained by training the first historical data using a machine learning algorithm. The first historical data includes basic elements of historical goods and the first few digits of the HS code indicating the major category to which the historical goods belong. Historical goods refer to goods for which the HS code has been determined.

[0021] The basic elements of goods are information describing the basic attributes of goods, and can be directly obtained from the database. For example, the basic elements of goods can be basic information provided by the manufacturer or seller of goods. In the embodiment of the present disclosure, the basic elements of goods include, for example, at least one of the name of the goods, text description, HS code of other countries, and internal code. The name and text description of the goods can be the name and descriptive text provided by the manufacturer, seller or supplier of the goods. For example, the name of the goods can be the name used in the production and sales process of the goods, and the text description of the goods can be a text description that can reflect the function, nature, material, composition, use, principle, processing or preservation method of the goods. The HS code of goods in other countries refers to the HS code of goods in other countries, which may be the same or different from the HS code of my country. The internal code of goods is the internal code used by the goods in various links such as production, transportation, sales, and supply. It can be understood by those skilled in the art that the basic elements of goods may not have clear standards and fixed templates, and therefore the basic elements of similar or identical goods may be different.

[0022] In this specification, "major category" refers to the heading, first-level sub-heading or second-level sub-heading in the import and export tariff, to be distinguished from the 8- to 10-digit HS code. Therefore, when the major category is heading, the first historical data includes the first 4 digits of the HS code; when the major category is the first-level sub-heading, the first historical data includes the first 5 digits of the HS code; and when the major category is the second-level sub-heading, the first historical data includes the first 6 digits of the HS code. Those skilled in the art will understand that, although it is described above that the first historical data includes the first few digits of the HS code indicating the major category to which the historical goods belong, the first historical data can actually be all the digits of the HS code of the historical goods, and only the first few digits of the HS code indicating the major category to which the historical goods belong are extracted and used when training the first grading algorithm model.

[0023] In addition, if Figure 1 As shown, in step 102, for each major category, a second-level classification algorithm model corresponding to each major category is obtained by training the second historical data through a machine learning algorithm, and the second historical data includes the basic elements, HS codes, and supplementary elements of the historical goods belonging to the major category. Note that the second historical data only includes the basic elements, HS codes, and supplementary elements related to the historical goods belonging to the major category. Therefore, the second historical data corresponds to each major category respectively, and does not include information related to the historical goods belonging to other major categories.

[0024] The supplementary elements of goods are information about goods that can be determined based on the basic elements. For example, the supplementary elements of goods can be information that can be determined by the name and text description of the goods, information that can be determined by the HS code of other countries, information that can be determined by internal coding, etc. For example, the supplementary elements of goods can be the function, nature, material, composition, use, principle, processing or preservation method of the goods, etc. In addition, the supplementary elements of goods can be Chinese information that can be determined based on the English name and English text description. It can be understood by those skilled in the art that the supplementary elements can be any information that is helpful for the classification of goods. In an embodiment of the present disclosure, the supplementary elements of goods may include the declaration elements of goods listed in the import and export tariff. In addition, the supplementary elements of goods may also include custom elements that are determined by the user based on work experience to help classify the goods. The supplementary elements of goods will be further described below.

[0025] In addition, if Figure 1 As shown, in step 103, for each major category, a list of supplementary elements corresponding to each major category can be determined. For each historical commodity, each item of the stored supplementary elements corresponds to a supplementary element in the list of supplementary elements. As described above, in one embodiment of the present disclosure, the list of supplementary elements is composed of the declared elements and the custom elements of the commodity, that is, the supplementary elements of the commodity can include at least one of the declared elements and the custom elements of the commodity.

[0026] The declaration elements of goods refer to the declaration elements of each HS code listed in the import and export tariff. In an embodiment of the present disclosure, all declaration elements corresponding to all HS codes belonging to the major category can be added to the list of supplementary elements. However, those skilled in the art can understand that in order to increase the efficiency of classification and reduce the complexity of classification, the declaration elements in the list of supplementary elements may not be all declaration elements corresponding to all HS codes belonging to the major category. In one embodiment of the present disclosure, the declaration elements in the list of supplementary elements are declaration elements common to the HS codes belonging to the major category and declaration elements that are helpful for the classification of goods in the major category. For example, for the "electric motor" category with the first four digits of the HS code being "8501", it includes 28 HS codes, and the declaration elements common to these HS codes include: model, GTIN, CAS, export preferential treatment, output power, brand, and brand type. These common declaration elements can be put into the list of supplementary elements as supplementary elements. In addition, in addition to these common declaration elements, there are several other declaration elements that are helpful for the classification of goods in this major category, including: whether it is DC, base size, and purpose. These declaration elements can also be included in the list of supplementary elements as supplementary elements. Therefore, for the "electric motor" category with the first four digits of the HS code as "8501", the declaration elements in the supplementary elements include: model, GTIN, CAS, export preferential status, output power, brand, brand type, whether it is DC, frame size and purpose.

[0027] The custom elements can be determined by the user based on experience. In the embodiment of the present disclosure, the custom elements are elements that are determined by the user based on experience to be helpful for the classification of the goods in this category in addition to the declaration elements. Taking the "electric motor" category whose first four digits of the HS code are "8501" as an example, the custom elements can include: AC-DC switching, whether used for motorcycles or cars, etc. Therefore, adding custom elements to the supplementary elements can use the user's experience to recommend HS codes more accurately.

[0028] Afterwards, return to Figure 1 In response to receiving the basic elements of the goods, in step 104, based on the basic elements, the first-level classification algorithm model is used to recommend the major category to which the goods belong. Thus, the major category of the goods can be recommended quickly and accurately.

[0029] Then, in step 105, a list of supplementary elements corresponding to the recommended categories is obtained. The user may select a category with the highest accuracy from the recommended categories and obtain the list of supplementary elements corresponding to the category determined in step 103.

[0030] Afterwards, in step 106, for each product, the content of one or more supplementary elements in the list of supplementary elements is determined based on the basic elements of the product. The supplementary elements of the product can be automatically identified by artificial intelligence or manually filled in by the user. For example, the supplementary elements of the product can be determined based on the basic elements of the product through natural language recognition and processing combined with machine learning. The technology of identifying the content of the supplementary elements based on the basic elements through natural language processing is known to those skilled in the art and is not described in detail here. Alternatively, the supplementary elements of the product can be determined by the user according to the basic elements according to experience or by looking up, for example, a technical manual. Even in the case where the supplementary elements are manually filled in by the user, since the supplementary elements are familiar to the user, it is easy for the user to determine the content of the supplementary elements based on the basic elements.

[0031] Then, in step 107, based on the contents filled in the list of basic elements and supplementary elements, the HS code of the goods is recommended using the second-level classification algorithm model corresponding to the recommended major category. Thus, the goods belonging to the corresponding major category can be further classified, thereby accurately determining the HS code of the goods.

[0032] By comparing the first historical data and the second historical data used by the first-level classification algorithm model and the second-level classification algorithm model, those skilled in the art can understand that, since the first historical data does not include supplementary elements and only uses the first few digits of the HS code indicating the major category to which the historical goods belong for training, it is possible to avoid the first-level classification algorithm model obtained by training with the first historical data being too large and complex, thereby improving the efficiency of classification. In addition, since the second historical data is determined for each major category and, in addition to the basic elements of the goods, supplementary elements corresponding to each major category are also used, the second-level classification algorithm model obtained by training with the second historical data can more accurately recommend HS codes.

[0033] Therefore, the embodiment of the present disclosure uses a two-level classification technical solution, that is, firstly, the first-level classification algorithm model is used to perform the first classification to determine the major category to which the goods belong, and then the second-level classification algorithm model is used to perform the second classification using supplementary factors for the determined major category to determine the HS code of the goods. By two-level classification and providing corresponding classification algorithm models, the efficiency and accuracy of HS code recommendation can be improved.

[0034] Furthermore, since the supplementary factors include factors that are helpful for the classification of the broad category of goods determined based on user experience, the user experience can be utilized to more accurately recommend HS codes.

[0035] In the embodiments of the present disclosure, in addition to recommending HS codes, the declared product names of the goods can also be recommended according to the recommended HS codes. Those skilled in the art can understand that in the customs tariff, each HS code has a corresponding declared product name, so after recommending the HS code, the corresponding declared product name can naturally be recommended.

[0036] In an embodiment according to the present disclosure, the machine learning algorithms used to establish the first-level classification algorithm model and the second-level classification algorithm model are known in the art, and may include, for example, a random forest algorithm, a gradient boosting decision tree (Gradient Boosting Decison Tree, GBDT) algorithm, and an extreme gradient boosting (eXtreme GradientBoosting, XGBoost) algorithm. These algorithms are not described in detail here. In addition, those skilled in the art will appreciate that other machine learning algorithms known in the art may be used to establish the first-level classification algorithm model and the second-level classification algorithm model, and the machine learning algorithms used to establish the first-level classification algorithm model and the second-level classification algorithm model may be the same or different from each other.

[0037] In the embodiments of the present disclosure, in one or more embodiments, the following optional steps may also be included.

[0038] like Figure 1 As shown, in step 108, one of the recommended HS codes can be selected as the HS code of the product. For example, the user can select one of the recommended HS codes as the HS code of the product. The user can select one of the recommended HS codes based on his or her own experience. In addition, a confidence level can be determined for each recommended HS code, so that the user can select the HS code with reference to the determined confidence level. In addition, the HS code with the highest confidence level among the recommended HS codes can be automatically selected as the HS code of the product.

[0039] In addition, when the user finds that the recommended HS codes are incorrect, the user can manually enter the correct HS code and select the manually entered HS code as the HS code for the product.

[0040] Therefore, by having the user select an HS code from the recommended HS codes or by having the user check whether the recommended HS code is correct, it is equivalent to having the user cross-check the recommended HS code, thereby ensuring that the obtained HS code result is sufficiently accurate. Therefore, the time and financial cost of performing additional cross-checking are saved.

[0041] In addition, in step 109, the selected HS code and the basic elements of the product may be added to the first historical data and the first level classification algorithm model may be retrained. For example, the first few digits of the selected HS code indicating the major category to which the product belongs may be added to the first historical data, or the selected HS code may be directly added to the first historical data.

[0042] In addition, in step 110, the selected HS code, the basic elements and the supplementary elements of the commodity may be added to the second historical data and the second-level classification algorithm model may be retrained.

[0043] By adding the newly determined HS codes, basic elements and supplementary elements of the goods back to the first historical data and the second historical data and retraining the first-level classification algorithm model and the second-level classification algorithm model, the accuracy of the classification algorithm model can be continuously improved.

[0044] Those skilled in the art will appreciate that either step 109 or step 110 may be performed as required, or both step 109 and step 110 may be performed.

[0045] Those skilled in the art will appreciate that the above steps 108, 109 and 110 are optional and therefore Figure 1 In addition, those skilled in the art can also understand Figure 1 The order of the steps in the method can be adjusted as needed, and one or more steps can be performed simultaneously.

[0046] In addition, in one or more embodiments of the present disclosure, the user may be allowed to customize the second-level classification algorithm model corresponding to each major category. By allowing the user to continuously debug the second-level classification algorithm model during the work process, a second-level classification algorithm model with higher work efficiency or accuracy may be obtained. Figure 2 This is a schematic diagram of an example of a user customizing a second-level classification algorithm model.

[0047] like Figure 2As shown, in step 201, for a large category, the list of supplementary elements is modified by the user. The user can try to make various changes to the supplementary elements, and expect that such changes can improve the working efficiency of the second-level classification algorithm model and / or improve the accuracy of the HS code recommendation. In one embodiment, the user can add or delete the declaration elements in the supplementary elements, and can also add, delete or modify the custom elements in the supplementary elements. For example, in the course of work, the user may find that the supplementary elements (e.g., a certain declaration element or a new custom element) not included in the supplementary list are helpful for improving the performance of the second-level classification algorithm model and / or improving the accuracy of the HS code recommendation, and therefore the supplementary elements can be added to the list of supplementary elements. In addition, the user may also find that a certain supplementary element (e.g., a declaration element or a custom element) in the supplementary element list is not helpful for the recommendation of the HS code, and therefore the supplementary element can be deleted, thereby improving the working efficiency of the second-level classification algorithm model. In addition, for the custom elements, the user can modify the expression of the custom elements to make it more clear in meaning, and it is easier for the user to determine its content, which is convenient for the user to operate. Of course, those skilled in the art will appreciate that users may make various attempts without anticipating in advance whether such attempts can improve the working efficiency of the second-level classification algorithm model and / or improve the accuracy of HS code recommendations.

[0048] Thus, for a large category, the list of supplementary elements modified by the user can be stored together with the previous list of supplementary elements, thereby obtaining multiple lists.

[0049] Afterwards, in step 202, the second historical data is modified according to the supplementary elements in the modified supplementary element list. Based on the modified supplementary element list, the second historical data can be modified accordingly. For example, the supplementary elements deleted from the list can be deleted from the second historical data, and / or the second historical data can be supplemented and modified according to the supplementary elements added and modified in the list.

[0050] Thus, for one large category, the second history data modified by the user can be stored together with the previous second history data, thereby obtaining a plurality of second history data.

[0051] Thereafter, in step 203, the modified second historical data is used for training to obtain a modified second-level classification algorithm model.

[0052] Therefore, for one large category, the modified second-level classification algorithm model can be stored together with the previous second-level classification algorithm model to obtain multiple second classification algorithm models.

[0053] Figure 3is a schematic diagram of another example of user customization of the second-level classification algorithm model.

[0054] like Figure 3 As shown, in step 301, for a large category, the user modifies the machine learning algorithm used when obtaining the second-level classification algorithm model. For example, the user can change the machine learning algorithm from the random forest algorithm to other algorithms known in the art, such as the gradient boosting decision tree algorithm. Therefore, the user is allowed to try to use different algorithms to obtain the second-level classification algorithm model. For example, when a new machine learning algorithm is generated as technology develops, the user can try to use the new machine learning algorithm to obtain the second-level classification algorithm model. As a result, the second-level classification algorithm model according to the embodiment of the present disclosure can benefit from the development of technology.

[0055] Thereafter, in step 302, the modified machine learning algorithm is trained using the second historical data to obtain a modified second-level classification algorithm model.

[0056] Therefore, for one large category, the modified second-level classification algorithm model can be stored together with the previous second-level classification algorithm model to obtain multiple second classification algorithm models.

[0057] Those skilled in the art will appreciate that the above Figure 2 and Figure 3 The methods shown in can be combined with each other to obtain a modified second-level classification algorithm model. That is, the user can modify the list of supplementary elements while also modifying the machine learning algorithm used when obtaining the second-level classification algorithm model, and obtain a modified second-level classification algorithm model.

[0058] Through the above embodiments, multiple different second-level classification algorithm models can be obtained, and it can be further determined which second-level classification algorithm model to use to recommend the HS code. Therefore, in one or more embodiments of the present application, a method for evaluating multiple second-level classification algorithm models is also included. Figure 4 is an example of a method for evaluating multiple second-level classification algorithm models.

[0059] like Figure 4 As shown, in step 401, multiple second-level classification algorithm models are obtained for each major category. These second-level classification algorithm models are obtained using the method of the above embodiment and differ in the list of supplementary elements and / or the machine learning algorithm used.

[0060] Then, in step 402, the multiple second-level classification algorithm models are used to recommend HS codes for the goods.

[0061] Then, in step 403, the HS codes recommended by the plurality of second-level classification algorithm models are evaluated. In this step, the accuracy of the HS codes recommended by each second-level classification algorithm model and the working efficiency of each second-level classification algorithm model can be determined.

[0062] Afterwards, in step 404, one of the plurality of second-level classification algorithm models is selected according to the evaluation result. In this step, the user can select the model with the highest accuracy of the recommended HS code or the model with the highest working efficiency. In addition, the user can also make a trade-off between accuracy and working efficiency to find a more suitable model.

[0063] Through the above embodiments, users can use their own experience and ability to continuously optimize the second-level classification algorithm model to obtain a better model.

[0064] In one embodiment of the present disclosure, the first historical data and the second historical data can be stored in different databases independently of each other, and the corresponding data can be extracted from the corresponding database as needed. This data storage method is the simplest and helps to reduce the complexity of the system, but it may waste storage space.

[0065] In addition, those skilled in the art can understand that the first historical data and the second historical data can be stored in the same database, and the required data can be extracted from it as needed. In other words, the basic elements, HS codes and supplementary elements related to each historical commodity are stored in the database corresponding to the HS code. When the first historical data is needed, the basic elements of all historical commodities can be extracted from the database, and the first few digits representing the major category to which the historical commodity belongs can be extracted from the corresponding HS code, thereby forming the first historical data and training through machine learning. When the second historical data corresponding to a certain major category is needed, the basic elements and supplementary elements of the historical commodities belonging to the major category, as well as the corresponding HS code, can be extracted from the same database, thereby forming the second historical data and training through machine learning. In this way, the size of the database can be reduced and the complexity of the system can be reduced.

[0066] Figure 5 is a schematic diagram of a system for recommending HS codes of goods according to an embodiment of the present disclosure.

[0067] like Figure 5As shown, the system 500 includes a server 501 and a terminal device 502. The server 501 includes a historical data database 503, a classification algorithm model knowledge base 504, a supplementary element list knowledge base 505, a database of goods to be recommended 506, a training module 507 and a recommendation module 508. The historical data database 503 stores first historical data and second historical data. The historical data database 503 can store multiple second historical data. The classification algorithm model knowledge base 504 stores a first-level classification algorithm model and a second-level classification algorithm model. The classification algorithm model knowledge base 504 can store multiple second-level classification algorithm models. The supplementary element list knowledge base 505 stores a supplementary element list. For each major category, the supplementary element list knowledge base 505 can store a supplementary element list. In addition, for the same major category, when there are multiple second-level classification algorithm models with different supplementary element lists, the supplementary element list knowledge base 505 can also store corresponding multiple supplementary element lists. The database 506 of goods to be recommended stores basic elements related to the goods to be recommended. The training module 507 is used to train the first-level classification algorithm model and the second-level classification algorithm model. The recommendation module 508 is used to recommend the major category to which the goods belong and recommend the HS code of the goods. The terminal device 502 includes a user interface 5021 and an input device 5022, which are used to display the recommended major category and the recommended HS code to the user and receive the user's selection of the major category and the HS code, and allow the user to fill in the content of the supplementary elements.

[0068] Figure 6 An exemplary configuration of a server 501 and / or a terminal device 502 according to an embodiment of the present invention is shown. The server 501 and / or the terminal device 502 are examples of hardware devices to which the above-mentioned aspects of the present invention can be applied. The server 501 and / or the terminal device 502 can be any machine configured to perform processing and / or calculation. The server 501 can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal data assistant (PDA), a vehicle-mounted computer, etc. The server 501 can also adopt a microservice architecture deployed on a cloud server. The terminal device 502 can be, but is not limited to, a portable mobile terminal such as a laptop computer and a smart phone.

[0069] like Figure 6As shown, the server 501 and / or the terminal device 502 may include one or more elements that may be connected or communicated with the bus 602 via one or more interfaces. The bus 602 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus, etc. The server 501 and / or the terminal device 502 may include, for example, one or more processors 604, one or more input devices 606, and one or more output devices 608. The one or more processors 604 may be any kind of processor, and may include, but is not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips). The input device 606 may be any type of input device capable of inputting information to a computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. The output device 608 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer.

[0070] The server 501 and / or the terminal device 502 may also include or be connected to a non-transient storage device 614, which may be any non-transient storage device that can realize data storage, and may include but is not limited to a disk drive, an optical storage device, a solid-state memory, a floppy disk, a flexible disk, a hard disk, a tape or any other magnetic medium, a compressed disk or any other optical medium, a cache memory and / or any other storage chip or module, and / or any other medium from which a computer can read data, instructions and / or codes. The server 501 and / or the terminal device 502 may also include a random access memory (RAM) 610 and a read-only memory (ROM) 612. The ROM 612 may store programs, utilities or processes to be executed in a non-volatile manner. The RAM 610 may provide volatile data storage and store instructions related to the operation of the server 501 and / or the terminal device 502. The server 501 and / or the terminal device 502 may also include a network / bus interface 616 coupled to a data link 618. The network / bus interface 616 may be any type of device or system capable of enabling communication with an external device and / or a network, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication device, and / or a chipset (such as a Bluetooth TM equipment, 1302.11 equipment, WiFi equipment, WiMax equipment, cellular communication facilities, etc.).

[0071] Various aspects, embodiments, implementations or features of the foregoing embodiments may be used alone or in any combination. Various aspects of the foregoing embodiments may be implemented by software, hardware or a combination of hardware and software.

[0072] For example, the foregoing embodiments may be embodied as computer readable code on a computer readable medium. A computer readable medium is any data storage device that can store data that can thereafter be read by a computer system. Examples of computer readable media include read-only memory, random access memory, CD-ROM, DVD, magnetic tape, hard drive, solid state drive, and optical data storage device. The computer readable medium may also be distributed in a network coupled computer system so that the computer readable code is stored and executed in a distributed manner.

[0073] For example, the aforementioned embodiments may be in the form of hardware circuits. The hardware circuits may include any combination of combinational logic circuits, clock storage devices (such as floppy disks, flip-flops, latches, etc.), finite state machines, memories such as static random access memories or embedded dynamic random access memories, custom designed circuits, programmable logic arrays, etc.

[0074] In one embodiment, a hardware circuit according to the present disclosure may be implemented by coding a circuit description in a hardware description language (HDL) such as Verilog or VHDL. The HDL description may be synthesized from a library of cells designed for a given integrated circuit manufacturing technology and may be modified for timing, power, and other reasons to obtain a final design database that may be transmitted to a factory to produce integrated circuits through a semiconductor manufacturing system. The semiconductor manufacturing system may produce integrated circuits by depositing semiconductor materials (e.g., on a wafer that may include a mask), removing materials, changing the shape of the deposited materials, modifying the materials (e.g., by doping materials or modifying dielectric constants using ultraviolet treatment), and the like. The integrated circuit may include transistors and may also include other circuit elements (e.g., passive elements such as capacitors, resistors, inductors, etc.) and interconnections between transistors and circuit elements. Some embodiments may implement multiple integrated circuits coupled together to implement the hardware circuit, and / or discrete elements may be used in some embodiments.

[0075] Although some specific embodiments of the present invention have been shown in detail by example, it will be appreciated by those skilled in the art that the above examples are intended to be illustrative only and do not limit the scope of the present invention. It should be appreciated that some steps in the aforementioned method are not necessarily performed in the order shown in the figure, but they can be performed simultaneously, in different orders or in an overlapping manner. In addition, those skilled in the art can add some steps or omit some steps as needed. Some components in the aforementioned system are not necessarily arranged according to the figure, and those skilled in the art can add some components or omit some components as needed. It will be appreciated by those skilled in the art that the above embodiments can be modified without departing from the scope and essence of the present invention. The scope of the present invention is defined by the appended claims.

Claims

1. A method for recommending HS codes for goods, comprising: Obtaining a first-level classification algorithm model, wherein the first-level classification algorithm model is trained by a machine learning algorithm using first historical data, wherein the first historical data includes basic elements of historical goods and first digits of the HS code indicating a major category to which the historical goods belong, wherein the historical goods are goods for which the HS code has been determined; Obtaining a second-level classification algorithm model corresponding to each major category, wherein the second-level classification algorithm model is trained by a machine learning algorithm using second historical data, the second historical data including basic elements, HS codes, and supplementary elements of historical goods belonging to the corresponding major category, wherein the supplementary elements include at least one of a declaration element and a custom element of the goods; Obtaining a list of supplementary elements corresponding to each major category, wherein the supplementary elements can be determined based on the basic elements of the goods; The method further includes, in response to receiving the essential elements of the goods, performing the following operations: Based on the basic elements, using the first-level classification algorithm model to recommend the major category to which the goods belong; Based on the recommended major category, obtain a list of supplementary elements corresponding to the major category; Determining content of one or more supplementary elements in the list of supplementary elements based on the basic elements; Based on the contents filled in the lists of the basic elements and the supplementary elements, the HS code of the goods is recommended using a second-level classification algorithm model corresponding to the recommended major category.

2. The method according to claim 1, wherein: The basic elements include at least one of the name of the product, a text description, the HS code of other countries, and the internal code.

3. The method according to claim 1, wherein: Custom elements can be determined by the user based on experience.

4. The method according to claim 1 or 2, wherein: The method further comprises recommending a declared product name of the product according to the recommended HS code.

5. The method according to claim 1 or 2, wherein: The major category is the item in the import and export tariff, and the first historical data includes the first 4 digits of the HS code. The major category is a first-level sub-item in the import and export tariff, and the first historical data includes the first 5 digits of the HS code, or The major category is a secondary sub-item in the import and export tariff, and the first historical data includes the first 6 digits of the HS code.

6. The method according to claim 1 or 2, wherein: The method also includes selecting one of the recommended HS codes as the HS code for the product.

7. The method according to claim 6, wherein: The method further comprises: Add the selected HS code and the basic elements of the commodity to the first historical data and retrain the first level classification algorithm model, and / or The selected HS code, the basic elements and the supplementary elements of the commodity are added to the second historical data and the second-level classification algorithm model is retrained.

8. The method according to claim 1, wherein: The method also includes, for a large category: The list of supplementary elements is modified by the user, Modify the second historical data according to the supplementary elements in the modified supplementary element list, The modified second historical data is used for training to obtain a modified second-level classification algorithm model.

9. The method according to claim 1, wherein: The method also includes, for a large category: The machine learning algorithm used to obtain the second-level classification algorithm model is modified by the user. The modified machine learning algorithm is trained using the second historical data to obtain a modified second-level classification algorithm model.

10. The method according to claim 8 or 9, wherein: The method further comprises: For each major category, multiple second-level classification algorithm models are obtained. The plurality of second-level classification algorithm models are used to recommend HS codes for the goods respectively. Evaluate the HS codes recommended by the plurality of second level classification algorithm models, One of the plurality of second-level classification algorithm models is selected according to the evaluation result.

11. An electronic device, comprising: a memory configured to store a series of computer executable instructions; and One or more processors are configured to execute computer executable instructions stored in the memory so that the electronic device performs the steps of the method according to any one of claims 1-10.

12. A non-transitory computer readable medium having computer executable instructions stored thereon, the computer executable instructions, when executed by one or more computing devices, causing the one or more computing devices to perform the method according to any one of claims 1-10.