Data processing method and device, equipment and storage medium
The food information of imported food is obtained through data processing methods, the type of violation is determined and the risk identification is generated, which solves the problem of inefficient risk analysis of imported foods in the prior art, and achieves efficient processing procedures and cost savings.
Patent Information
- Application Number
- CN202411434933.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-02-28
AI Technical Summary
The prior art requires a lot of labor costs and is inefficient in risk analysis of imported food that is not allowed to enter, resulting in inefficient processing.
A data processing method is proposed to obtain food information of target food, including the fact that the entry is not allowed, determine the type of violation and generate risk marks, guide staff to handle imported food, save labor costs and improve processing efficiency.
By extracting the facts of unauthorized entry and generating risk marks, the types of violations and treatment methods of imported food can be quickly determined, which significantly saves labor costs and improves processing efficiency.
Smart Images

Figure CN119539470A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of food safety technology, and in particular to a data processing method, device, equipment and storage medium. Background Art
[0003] At present, after imported foods are inspected by customs, some are determined as imported foods allowed to enter the country, and some are determined as imported foods not allowed to enter the country.
[0004] For imported foods that are not allowed to enter the country, the staff needs to analyze the risks of imported foods based on the information table of imported foods that are not allowed to enter the country, where the information table of imported foods that are not allowed to enter the country includes the Harmonized System (HS) code, product name, origin, fact of non-entry, specifications, quantity / weight, production date, company name, etc. However, due to the large number of imported foods that are not allowed to enter the country, the amount of data in the corresponding information table is also large. In order to complete the risk analysis of imported foods that are not allowed to enter the country, a lot of manpower costs are required, and the efficiency is low. Summary of the invention
[0005] The present application proposes a data processing method, device, equipment and storage medium for improving the processing efficiency of imported food that is not allowed to enter the country.
[0006] In order to achieve the above purpose, this application adopts the following technical solutions:
[0007] In a first aspect, a data processing method is provided, the method comprising: a data processing device obtains food information of a target food, the target food being any imported food that is not allowed to enter the country, and the food information includes the fact that it is not allowed to enter the country. Further, the data processing device determines the violation type of the target food according to the fact that the target food is not allowed to enter the country; and determines the risk identification of the target food according to the violation type, and the risk identification is used to characterize the handling method of the imported food.
[0008] In the data processing method provided in the present application, it is possible to extract the fact that entry is not allowed based on the food information of imported food that is not allowed to enter the country, and determine the violation type of any imported food based on the fact that entry is not allowed, and then obtain the risk identification of the target food according to the violation type, and guide the staff to handle the imported food, thereby saving a lot of manpower costs for screening imported food that is not allowed to enter the country and improving processing efficiency.
[0009] In a possible design, the food information also includes the Customs Harmonization System HS code and the product name, and the above data processing method also includes: the data processing device determines the imported food chapter corresponding to the HS code of the target food. Further, when the imported food chapter is the first chapter, the data processing device generates a new HS code for the target food based on the HS code, and the new HS code is used to characterize the raw materials, process, characteristics or uses of the imported food; and, when the imported food chapter is the second chapter, the data processing device generates a new HS code for the target food based on the product name of the target food. In this design, by determining the new HS code of the target food, the efficiency of the staff in determining the raw materials, process, characteristics or uses of the imported food can be accelerated, and its processing is convenient.
[0010] In a possible design, the data processing device generates a new HS code for the target food according to the product name of the target food, including: the data processing device determines the category of the target food according to the product name of the target food. Further, when the category of the target food is a preset category, the data processing device determines a first subcode according to the category of the target food; and performs keyword matching according to the product name of the target food to determine a second subcode. Further, the data processing device generates a new HS code for the target food according to the first subcode and the second subcode.
[0011] In one possible design, the data processing device determines the risk identification of the target food according to the violation type, including: when the violation type is a preset type, the data processing device performs keyword matching based on the fact that the target food is not allowed to enter the country, and determines the risk identification of the target food.
[0012] In one possible design, the data processing device determines the risk warning index of the target food according to the violation type, risk identification, new HS code and category of the target food. The risk warning index is used to characterize the safety level of the target food.
[0013] In a second aspect, a data processing device is provided, including an acquisition unit and a determination unit. The acquisition unit is used to acquire food information of a target food, where the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that the target food is not allowed to enter the country. The determination unit is used to determine the violation type of the target food based on the fact that the target food is not allowed to enter the country. The determination unit is also used to determine the risk identification of the target food based on the violation type, and the risk identification is used to characterize the handling method of the imported food.
[0014] In a possible design, the food information also includes the HS code and the product name, and the data processing device also includes a generating unit. The determining unit is further used to determine the imported food chapter corresponding to the HS code of the target food. The generating unit is used to generate a new HS code of the target food according to the HS code when the imported food chapter is the first chapter, and the new HS code is used to characterize the raw materials, process, characteristics or uses of the imported food. The generating unit is also used to generate a new HS code of the target food according to the product name of the target food when the imported food chapter is the second chapter.
[0015] In a possible design, the determination unit is further used to determine the category of the target food according to the product name of the target food. The determination unit is further used to determine the first subcode according to the category of the target food when the category of the target food is a preset category. The determination unit is further used to perform keyword matching according to the product name of the target food to determine the second subcode. The generation unit is further used to generate a new HS code for the target food according to the first subcode and the second subcode.
[0016] In a possible design, the determination unit is specifically used to perform keyword matching based on the fact that the target food is not allowed to enter the country when the violation type is a preset type, so as to determine the risk identification of the target food.
[0017] In a possible design, the determination unit is also used to determine the risk warning index of the target food according to the violation type, risk identification, new HS code and category of the target food. The risk warning index is used to characterize the safety level of the target food.
[0018] In a third aspect, a data processing device is provided, which includes a memory and a processor; the memory and the processor are coupled, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the data processing device performs the data processing method provided by the first aspect or any possible design thereof.
[0019] In a fourth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a data processing device, the data processing device executes the data processing method provided in the first aspect or any possible implementation thereof.
[0020] According to a fifth aspect, a computer program product is provided, which includes computer instructions. When the computer instructions are executed on a data processing device, the data processing device executes the data processing method provided in the first aspect or any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1A schematic diagram of a data processing system structure provided for an embodiment of the present application;
[0022] Figure 2 A data processing method flow diagram provided for an embodiment of the present application Figure 1 ;
[0023] Figure 3 A data processing method flow diagram provided for an embodiment of the present application Figure 2 ;
[0024] Figure 4 A data processing method flow diagram provided for an embodiment of the present application Figure 3 ;
[0025] Figure 5 A schematic diagram of a data processing method framework provided for an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0027] Figure 7 A data processing device structure diagram provided for an embodiment of the present application Figure 1 . DETAILED DESCRIPTION
[0028] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0029] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0030] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" and "plurality" refer to two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0031] In the related art, for imported foods that are not allowed to enter the country, staff need to analyze the risks of imported foods based on the information table of imported foods that are not allowed to enter the country, where the information table of imported foods that are not allowed to enter the country includes HS code, product name, origin, fact of not being allowed to enter the country, specifications, quantity / weight, production date, company name, etc. However, due to the large number of imported foods that are not allowed to enter the country, the amount of data in the corresponding information table is also large. In order to complete the risk analysis of imported foods that are not allowed to enter the country, a lot of manpower costs are consumed, and the efficiency is low.
[0032] To solve the above problems, the present application proposes a data processing method, device, equipment and storage medium. The data processing device obtains food information of a target food, where the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that it is not allowed to enter the country. Furthermore, the data processing device determines the violation type of the target food based on the fact that the target food is not allowed to enter the country; and determines the risk identification of the target food based on the violation type, and the risk identification is used to characterize the handling method of the imported food.
[0033] In this way, the data processing method proposed in this application can extract the fact that the imported food is not allowed to enter the country based on the food information of the imported food that is not allowed to enter the country, and determine the violation type of any imported food based on the fact that the imported food is not allowed to enter the country, and then obtain the risk identification of the target food according to the violation type, and guide the staff to handle the imported food, saving a lot of manpower costs for the screening of imported food that is not allowed to enter the country, and improving the processing efficiency.
[0034] Figure 1 A data processing system is shown. The base station performance evaluation method provided in the embodiment of the present application can be applied to Figure 1 The data processing system shown is used to improve the efficiency of processing imported food that is not allowed to enter the country and guide staff to process imported food that is not allowed to enter the country. Figure 1 As shown, the data processing system 10 includes a data processing device 11 and a server 12 .
[0035] Among them, the server 12 stores an information table of imported foods that have been verified by the customs, including imported foods that are allowed to enter the country and imported foods that are not allowed to enter the country. The information table includes the HS code, product name, place of origin, fact that entry is not allowed, specifications, quantity / weight, production date, company name and other information of the imported food.
[0036] The data processing device 11 can be used to obtain food information of imported food that is not allowed to enter the country from the server 12.
[0037] Among them, food information includes the fact that imported food is not allowed to enter the country, and the fact that it is not allowed to enter the country is used to indicate the reason why the imported food fails to pass customs inspection.
[0038] The data processing device 11 may also be used to determine the violation type of the target food according to the fact that the target food is not allowed to enter the country.
[0039] Among them, the target food is any imported food that is not allowed to enter the country.
[0040] The data processing device 11 may also be used to determine the risk identification of the target food according to the violation type.
[0041] Among them, the risk identification is used to characterize the handling method of imported food, and can be used to specify staff to handle the imported food in the subsequent process based on the handling method represented by the risk identification.
[0042] Figure 2 The flowchart of a data processing method according to some exemplary embodiments is shown. The embodiment of the present application takes the data processing method applied to a data processing device as an example to illustrate the above data processing method.
[0043] like Figure 2 As shown, the data processing method provided in the embodiment of the present application includes the following S201-S203.
[0044] S201. The data processing device obtains food information of a target food.
[0045] Among them, the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that it is not allowed to enter the country.
[0046] As a possible implementation manner, the data processing device selects any one unprocessed imported food from a plurality of imported foods not allowed to enter the country included in an information table stored in the server to determine it as a target food, and obtains food information of the target food from the information table.
[0047] In some embodiments, the information table is imported into the server in advance by the operation and maintenance personnel of the data processing system, and the information of imported food obtained from customs statistics is included in the information table, including the HS code, product name, place of origin, fact of non-entry permission, specifications, quantity / weight, production date, company name and other information of the imported food.
[0048] Exemplarily, the information table of imported food is shown in Table 1 below.
[0049] Table 1: Information table of imported food
[0050]
[0051]
[0052] For example, based on the imported foods not allowed to enter the country shown in Table 1 above, if the data processing device determines that the target food is cereal A, the obtained fact of not being allowed to enter the country is that mold exceeds the standard.
[0053] S202: The data processing device determines the violation type of the target food according to the fact that the target food is not allowed to enter the country.
[0054] As a possible implementation, a mapping relationship table between the fact of non-permitted entry and the violation type is stored in the data processing device. Further, based on the fact of non-permitted entry of the target food obtained in step S201, the data processing device determines the violation type corresponding to the fact of non-permitted entry of the target food from the mapping relationship table of the fact of non-permitted entry and the violation type.
[0055] It should be noted that the mapping relationship table between the fact of non-permitted entry and the violation type can be set in advance in the data processing device by the operation and maintenance personnel of the data processing system, and the embodiment of the present application does not make any specific limitation on this.
[0056] Exemplarily, the mapping relationship table between the fact of non-entry permission and the violation type is shown in Table 2 below.
[0057] Table 2: Mapping relationship between the fact of non-entry and violation type
[0058] Facts of non-entry Violation Type Excessive use of food additives Colorants Excessive mold Mildew Label failure Label Lead exceeds the limit heavy metal Total colony count exceeded the limit Microbial contamination
[0059] For example, taking the target food as cereal A in Table 1 above, the fact that it is not allowed to enter the country is that the mold exceeds the standard, and the matched violation type is mold.
[0060] In some embodiments, a violation type dictionary table is stored in the data processing device, and the violation type of the target food can be determined by matching the violation type dictionary table based on the fact that the target food is not allowed to enter the country.
[0061] Exemplarily, the field names and data types in the violation type dictionary table are shown in Table 3 below.
[0062] Table 3: Violation type dictionary table
[0063]
[0064]
[0065] Based on the above violation type dictionary table and the fact that the above target food is not allowed to enter the country, a query can be performed based on the following statement to determine the violation type of the target food.
[0066] SELECT VIOLATION_CATEGORY FROM FOOD F;
[0067] LEFT JOIN FOOD_DICT D ON F.UNENTRY_FACT=D.UNENTRY_FACT;
[0068] Among them, the queried VIOLATION_CATEGORY field is the "violation type" of the target food.
[0069] S203. The data processing device determines the risk identification of the target food according to the violation type.
[0070] Among them, risk identification is used to characterize the handling methods of imported food.
[0071] As a possible implementation manner, the data processing device determines the risk identifier corresponding to the violation type of the target food from a mapping relationship table between the violation type and the risk identifier based on the violation type of the target food determined in the above step S202.
[0072] It should be noted that the mapping relationship table between violation types and risk identifiers can be set in advance in the data processing device by the operation and maintenance personnel of the data processing system, and the embodiments of the present application do not specifically limit this.
[0073] Exemplarily, the mapping relationship between violation types and risk indicators may be as shown in Table 4 below.
[0074] Table 4: Mapping relationship between violation types and risk indicators
[0075]
[0076]
[0077] For example, taking the target food as cereal A in Table 1 above, the fact that it is not allowed to enter the country is that the mold exceeds the standard, and the matched violation type is mildew, then the risk identification of the target food is further determined to be 47.
[0078] Correspondingly, the risk label corresponds to the handling method of imported food. After the staff checks the risk label of the target food, they can know the handling method of the target food.
[0079] In some embodiments, the risk identification of the target food can be determined according to the violation type by enumeration, as shown below.
[0080] EXCESS_FOOD_ADDITIVES("food additives", "21");
[0081] OVER_LIMIT_NUTRITIONAL_ENHANCER("Nutritional Enhancer", "23");
[0082] UNAUTHORIZED_ADDITIVE("un-food additives", "24");
[0083] RESTRICTED_SUBSTANCE_COSMETICS("Restricted substances (cosmetics)", "25");
[0084] AGRO_VETERINARY_RESIDUES("Agricultural animal residues", "27");
[0085] OTHER_UNSATISFACTORY_ITEM("Other unqualified items", "29");
[0086] RADIOACTIVE_MATERIAL("Radioactive Material", "31").
[0087] In the above example, each line of enumeration consists of English letters + two values in brackets. The English letters are the variable names, the first value is the violation type, and the second value is the risk identifier. If the violation type of the target food is food additives, the risk identifier of the target food is 21.
[0088] In some embodiments, there are multiple risk identifiers for target foods corresponding to some violation types. In order to determine the appropriate risk identifier for the target food, the data processing method proposed in this application also includes the following method for preset violation types.
[0089] When the violation type is a preset type, the data processing device performs keyword matching based on the fact that the target food is not allowed to enter the country, and determines the risk identification of the target food.
[0090] Exemplarily, taking the preset type as quality, if the violation type of the target food is quality, and the fact that the food is not allowed to enter the country is excessive lead content, then after the data processing device determines that the violation type of the target food is the preset type, it identifies the keyword (lead) in the fact that the food is not allowed to enter the country, and determines that the risk indicator of the target food is "26" corresponding to excessive heavy metal content.
[0091] In one design, the food information also includes the HS code of the imported food and the product name. In order to improve the efficiency of the staff's response to imported food, the data processing method proposed in this application provides a new coding method that can speed up the staff's efficiency in determining the raw materials, processes, characteristics or uses of imported food and facilitate its processing, such as Figure 3 As shown, the following steps S301-S303 are included.
[0092] S301. The data processing device determines the imported food chapter corresponding to the HS code of the target food.
[0093] Among them, the first two digits of the HS code are used to characterize the chapter of imported food.
[0094] As a possible implementation method, the data processing device determines the imported food chapter to which the target food belongs based on the HS code of the target food.
[0095] For example, if the HS code is "0204002090", the corresponding imported food chapter is Chapter 2; if the HS code is "1601002090", the corresponding imported food chapter is Chapter 16.
[0096] S302: When the imported food is in the first chapter, the data processing device generates a new HS code for the target food according to the HS code.
[0097] Among them, the new HS code is used to characterize the raw materials, processes, characteristics or uses of imported food.
[0098] As a possible implementation, the data processing device determines whether the imported food chapter of the target food determined in step S301 is the first chapter. Further, if the imported food chapter is the first chapter, the data processing device determines the first two digits of the HS code of the target food as the first two digits of the new HS code, and determines the third digit of the new HS code of the target food based on the third and fourth digits of the HS code of the target food.
[0099] Among them, the third digit of the new HS code can be composed of English letters. For example, if the third and fourth digits are "01", the third digit of the new HS code is "A"; if the third and fourth digits are "02", the third digit of the new HS code is "B"; if the third and fourth digits are "03", the third digit of the new HS code is "C"; and so on. If the third and fourth digits are "26", the third digit of the new HS code is "Z".
[0100] Exemplarily, if the HS code of the target food is "0204002090" and the target food is the first chapter, the data processing device determines that the new HS code of the target food is "02D"; if the HS code of the target food is "1601002090" and the target food is the first chapter, the data processing device determines that the new HS code of the target food is "16A".
[0101] It should be noted that the first chapter can be set in advance in the data processing device by the operation and maintenance personnel of the data processing system, and this application does not make any specific limitations on this.
[0102] S303: When the imported food chapter is the second chapter, the data processing device generates a new HS code for the target food according to the product name of the target food.
[0103] Among them, the second chapter contains different chapters from the first chapter.
[0104] As a possible implementation, the data processing device determines whether the imported food chapter of the target food determined in step S301 is the second chapter. Further, if the imported food chapter is the second chapter, the data processing device obtains the product name of the target food, and performs matching based on the product name of the target food to obtain the new HS code of the target food.
[0105] It should be noted that the second chapter can be Chapter 21 (Miscellaneous Foods). Since the classification of miscellaneous foods is confusing and complicated, it is impossible to achieve the purpose of scientific classification of foods and scientific management of food risks. Therefore, this application reconstructs the miscellaneous foods through new HS codes. For example, the goods under code 2101 are classified into Chapter 9; 2102 yeast (active or inactive), other dead single-cell microorganisms (excluding vaccines under heading 30.02) and baking powder are classified into Class 6 of the newly added Chapter 23 "Condiments"; 2103 sauces and their products, mixed condiments, mustard powder and its condiments are classified into the corresponding categories of the newly added Chapter 23; 2104 soups and their products are classified into the corresponding categories of Chapter 23; 2105 ice cream and other ice products are classified into the corresponding categories of Chapter 4 of Dairy Products.
[0106] In some embodiments, the new HS code of the target food can be determined by enumeration based on the first 8 digits of the HS code, as shown below.
[0107] A("21039020","23E"),
[0108] B("21033000","23E"),
[0109] C("21032000","23D"),
[0110] D("21039010","23C"),
[0111] E("21031000","23A"),
[0112] F("21011100","09A"),
[0113] G("21011200","09A"),
[0114] H("21013000","09A").
[0115] In the above example, each line of enumeration consists of English letters + two values in brackets. The English letters are the variable names. The first value is the first 8 digits of the HS code of the target food, and the second value is the new HS code of the target food. If the HS code of the target food is 21039020, the new HS code of the target food is 23E.
[0116] In some embodiments, the first 8 digits of the HS codes of some foods are the same. If the HS codes alone cannot distinguish them, such as tea and yerba mate, both of which have the first 8 digits of their HS codes as "21012000", the new HS code of the food can be determined by using the keyword of the product name in advance, as shown in the following pseudo code.
[0117]
[0118] In some embodiments, there is no pattern for foods whose first 4 digits of the HS code are "2106". By setting the category corresponding to the product name of the imported food, a new HS code can be more accurately configured for the target food. For example, the mapping relationship between the HS code of the imported food whose first 4 digits of the HS code are "2106" and the new HS code is shown in Table 5 below.
[0119] Table 5: HS code mapping table
[0120]
[0121]
[0122] It should be noted that the above Table 5 only shows the new HS codes corresponding to the HS codes of some imported foods whose first four digits of the HS codes are "2106" for example, which is used to understand the mapping relationship between the HS codes and the new HS codes, and does not constitute a limitation on specific values.
[0123] Based on the above definition, the corresponding new HS code can be matched according to the name of the imported food in an enumeration manner. The pseudo code is shown below.
[0124] SOLID_DRINKS("solid drinks", "22I"),
[0125] JUICES("Juice", "20I"),
[0126] CANDIES("Candy", "17D"),
[0127] BIRD_NEST("Bird's Nest", "04J"),
[0128] CONDIMENTS("Seasoning", "23E"),
[0129] PASTRIES("Pastry","19E"),
[0130] INFANT_AND_TODDLER_FOODS("Infant and Toddler Foods", "21A").
[0131] In the above example, each line of enumeration consists of English letters + two values in brackets. The English letters are the variable names. The first value is the name of the target food, and the second value is the new HS code of the target food. If the name of the target food is "solid beverage", the new HS code of the target food is "22I".
[0132] In some embodiments, there are still detailed classifications under the same product name. In order to more accurately configure new HS codes for target foods, the data processing method proposed in this application, such as Figure 4 As shown, the following steps S401-S404 are also included.
[0133] S401. The data processing device determines the category of the target food according to the product name of the target food.
[0134] As a possible implementation manner, the data processing device extracts keywords based on the product name of the target food, matches the extracted keywords with preset categories, and determines the matched category as the category of the target food.
[0135] For example, if the product name of the target food includes keywords such as fish, crab, shrimp or oyster, the matched aquatic products are determined as the category of the target food.
[0136] S402: When the category of the target food is a preset category, the data processing device determines a first sub-code according to the category of the target food.
[0137] Exemplarily, taking the preset category of aquatic products as an example, the data processing device determines that the chapter corresponding to aquatic products is 16, and then determines the first sub-code to be 16.
[0138] It should be noted that the correspondence between preset categories and chapters is pre-stored in the data processing device, and this embodiment of the present application does not specifically limit this.
[0139] S403: The data processing device performs keyword matching according to the product name of the target food to determine the second sub-code.
[0140] Exemplarily, the data processing device matches the corresponding new HS code according to the name of the imported food, and some pseudo code is shown below.
[0141]
[0142] For example, when the product name of the target food is “XX canned fish”, based on the above method, it can be determined that the second sub-code is D.
[0143] S404: The data processing device generates a new HS code for the target food according to the first sub-code and the second sub-code.
[0144] As a possible implementation manner, the data processing device combines the first sub-code and the second sub-code to generate a new HS code for the target food.
[0145] For example, when the first subcode is "16" and the second subcode is "D", the new HS code of the target food is "16D".
[0146] In one design, after obtaining the violation type, risk identification, new HS code and category of the target food, the data processing device can further determine the risk warning index of the target food, and the risk warning index is used to characterize the safety level of the target food.
[0147] For example, the data processing device inputs the violation type, risk identification, new HS code and category of the target food into a preset neural network model, processes it through the preset neural network model, and outputs the risk warning index of the target food.
[0148] In one design, Figure 5 As shown, after obtaining the food information of the imported food, the data processing device performs violation type matching, product name matching and keyword matching respectively, obtains the violation type, risk identification, new HS code and category of the imported food, and then updates the source data table to obtain an updated food information table. The updated food information table includes the fields shown in Table 6 below.
[0149] Table 6: Food Information Table
[0150]
[0151] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0152] The embodiment of the present application can divide the functional modules of the user equipment according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. Optionally, the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0153] Figure 6 The following is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device is used to execute the above-mentioned data processing method. Figure 6 As shown, the data processing device 60 includes an acquisition unit 601 and a determination unit 602 .
[0154] The acquisition unit 601 is used to acquire food information of a target food, where the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that it is not allowed to enter the country. Figure 2 As shown, the acquisition unit 601 can be used to execute S201.
[0155] The determination unit 602 is used to determine the violation type of the target food according to the fact that the target food is not allowed to enter the country. Figure 2 As shown, the determining unit 602 can be used to execute S202.
[0156] The determination unit 602 is further used to determine the risk identification of the target food according to the violation type, and the risk identification is used to characterize the treatment method of the imported food. Figure 2 As shown, the determining unit 602 can be used to execute S203.
[0157] Optional, such as Figure 6 As shown, in the data processing device 60 provided in the embodiment of the present application, the food information also includes the HS code and the product name, and the data processing device also includes a generation unit 603.
[0158] The determination unit 602 is further used to determine the imported food chapter corresponding to the HS code of the target food. Figure 3 As shown, the determining unit 602 can be used to execute S301.
[0159] The generating unit 603 is used to generate a new HS code of the target food according to the HS code when the imported food chapter is the first chapter. The new HS code is used to characterize the raw materials, process, characteristics or uses of the imported food. Figure 3 As shown, the generating unit 603 can be used to execute S302.
[0160] The generating unit 603 is also used to generate a new HS code of the target food according to the product name of the target food when the imported food chapter is the second chapter. Figure 3 As shown, the generating unit 603 can be used to execute S303.
[0161] Optional, such as Figure 6 As shown, in the data processing device 60 provided in the embodiment of the present application, the determination unit 602 is also used to determine the category of the target food according to the product name of the target food. Figure 4 As shown, the determining unit 602 can be used to execute S401.
[0162] The determination unit 602 is further configured to determine the first subcode according to the category of the target food when the category of the target food is a preset category. Figure 4 As shown, the determining unit 602 can be used to execute S402.
[0163] The determination unit 602 is further configured to perform keyword matching according to the product name of the target food to determine the second subcode. Figure 4 As shown, the determining unit 602 can be used to execute S403.
[0164] The generating unit 603 is further used to generate a new HS code of the target food according to the first sub-code and the second sub-code. Figure 4 As shown, the generating unit 603 can be used to execute S404.
[0165] Optional, such as Figure 6 As shown, in the data processing device 60 provided in the embodiment of the present application, the determination unit 602 is specifically used to perform keyword matching based on the fact that the target food is not allowed to enter the country, and determine the risk identification of the target food when the violation type is a preset type.
[0166] Optional, such as Figure 6 As shown, in the data processing device 60 provided in the embodiment of the present application, the determination unit 602 is also used to determine the risk warning index of the target food according to the violation type, risk identifier, new HS code and category of the target food. The risk warning index is used to characterize the safety level of the target food.
[0167] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present application provides a possible structural diagram of a data processing device. The data processing device is used to execute the data processing method executed by the data processing device in the above-mentioned embodiment. Figure 7 As shown, the data processing device 70 includes a processor 701, a memory 702 and a bus 703. The processor 701 and the memory 702 may be connected via the bus 703.
[0168] The processor 701 is the control center of the data processing device, which can be a processor or a general term for multiple processing elements. For example, the processor 701 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.
[0169] As an embodiment, the processor 701 may include one or more CPUs, such as Figure 7 CPU 0 and CPU 1 are shown in .
[0170] The memory 702 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.
[0171] As a possible implementation, the memory 702 may exist independently of the processor 701, and the memory 702 may be connected to the processor 701 via a bus 703 to store instructions or program codes. When the processor 701 calls and executes the instructions or program codes stored in the memory 702, the data processing method provided in the embodiment of the present application can be implemented.
[0172] In another possible implementation, the memory 702 may also be integrated with the processor 701 .
[0173] The bus 703 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0174] It should be pointed out that Figure 7 The structure shown does not constitute a limitation on the data processing device 70. Figure 7 In addition to the components shown, the data processing device 70 may include Figure 7 More or fewer components, or combinations of certain components, or different arrangements of components may be shown.
[0175] As an example, combining Figure 6 The functions implemented by the acquisition unit 601, the determination unit 602 and the generation unit 603 in the data processing device 60 are similar to those Figure 7 The function of processor 701 in is the same.
[0176] Optional, such as Figure 7 As shown, the data processing device provided in the embodiment of the present application may further include a communication interface 704 .
[0177] The communication interface 704 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 704 may include an acquisition unit for receiving data and a sending unit for sending data.
[0178] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0179] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.
[0180] An embodiment of the present application provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the data processing method in the above method embodiment.
[0181] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.
[0182] Since the apparatus, device computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present application will not be repeated here.
[0183] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A data processing method, characterized in that: The method comprises: Acquire food information of a target food, wherein the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that the food is not allowed to enter the country; Determine the violation type of the target food based on the fact that the target food is not allowed to enter the country; According to the violation type, a risk identification of the target food is determined, and the risk identification is used to characterize the handling method of the imported food.
2. The data processing method according to claim 1, characterized in that: The food information also includes the Harmonized Customs System HS code and the product name, and the method further includes: Determine the imported food chapter corresponding to the HS code of the target food; If the imported food chapter is the first chapter, a new HS code for the target food is generated based on the HS code. The new HS code is used to characterize the raw materials, process, characteristics or uses of the imported food; When the imported food chapter is the second chapter, a new HS code of the target food is generated based on the product name of the target food.
3. The data processing method according to claim 2, characterized in that: The generating of a new HS code of the target food according to the product name of the target food comprises: Determining the category of the target food according to the product name of the target food; When the category of the target food is a preset category, determining a first sub-code according to the category of the target food; Perform keyword matching according to the product name of the target food to determine a second sub-code; A new HS code for the target food is generated according to the first sub-code and the second sub-code.
4. The data processing method according to any one of claims 1 to 3, characterized in that: Determining the risk identification of the target food according to the violation type includes: In the case that the violation type is a preset type, keyword matching is performed based on the fact that the target food is not allowed to enter the country to determine the risk identifier of the target food.
5. The data processing method according to any one of claims 1 to 3, characterized in that: The method further comprises: The risk warning index of the target food is determined based on the violation type, risk identification, new HS code and category of the target food. The risk warning index is used to characterize the safety level of the target food.
6. A data processing device, characterized in that: It includes an acquisition unit and a determination unit; The acquisition unit is used to acquire food information of a target food, wherein the target food is any imported food that is not allowed to enter the country, and the food information includes the fact that the food is not allowed to enter the country; The determining unit is used to determine the violation type of the target food according to the fact that the target food is not allowed to enter the country; The determination unit is further used to determine a risk identifier of the target food according to the violation type, and the risk identifier is used to characterize a handling method for the imported food.
7. The data processing device according to claim 6, characterized in that: The food information also includes HS code and product name, and the data processing device also includes a generating unit; The determining unit is further used to determine the imported food chapter corresponding to the HS code of the target food; The generating unit is used to generate a new HS code for the target food according to the HS code when the imported food chapter is the first chapter, wherein the new HS code is used to characterize the raw materials, process, characteristics or use of the imported food; The generating unit is further configured to generate a new HS code for the target food according to the product name of the target food when the imported food chapter is the second chapter.
8. The data processing device according to claim 7, characterized in that: The determining unit is further used to determine the category of the target food according to the product name of the target food; The determining unit is further configured to determine the first sub-code according to the category of the target food when the category of the target food is a preset category; The determination unit is further used to perform keyword matching according to the product name of the target food to determine the second sub-code; The generating unit is further used to generate a new HS code for the target food according to the first sub-code and the second sub-code.
9. A data processing device, characterized in that: including memory and processor; The memory is coupled to the processor; The memory is used to store computer program code, wherein the computer program code includes computer instructions; When the processor executes the computer instructions, the data processing device performs the data processing method according to any one of claims 1 to 4.
10. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on a data processing device, the data processing device is caused to execute the data processing method according to any one of claims 1 to 4.