Machine learning-based industrial product document data automatic generation method and system
The automated generation method for industrial product documentation data through machine learning utilizes an LSTM model to analyze user input behavior, identify risks, and generate documentation verification records. This solves the problem of logical gaps in documentation data, achieves automated risk alerts and audits, reduces labor costs, and improves audit efficiency.
Patent Information
- Application Number
- CN202611400336.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, there are gaps in the information linkage and logic of import and export document data. Some companies use this loophole to circumvent supervision, which increases the difficulty of customs traceability, puts normal business enterprises in unfair competition, and makes it difficult to realize risk warning functions between upstream and downstream departments.
An automated generation method for industrial product documentation data based on machine learning is adopted. By analyzing user input behavior through an LSTM model, risks are identified, documentation verification records are generated, and risk alarms are sent, thus establishing a risk warning chain between upstream and downstream departments.
It enables predictive identification of user risky behaviors, automates the entire process of supervision and review, significantly reduces labor costs, ensures the consistency and stability of review results, and shortens the review cycle.
Smart Images

Figure CN123141122A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of electronic digital data processing technology, and in particular to a method for digital computing or data processing specifically applicable to a particular application, specifically a method and system for automatically generating industrial product document data based on machine learning. Background Technology
[0002] Import and export are an indispensable part of economic life. Import and export involve a wide variety of documents, covering dozens of types of documents such as customs declarations, commercial invoices, packing lists, certificates of origin, and regulatory documents. Most of these documents have formed standardized and fixed filling formats with clear field boundaries, clear filling rules, and prominent overall formatting features, which provides great convenience for the declaration of document data.
[0003] However, gaps exist in the information linkage and logic of some documents. For example, if the consignee is A and the logistics company is B, there is no necessary logical relationship between them. This objectively leaves room for manipulation by a few companies. Some companies exploit the lack of correlation between fields in different documents to circumvent regulatory requirements such as origin verification and customs duties by splitting the trade chain, adjusting partial declaration information, and falsifying partial document content. This not only increases the difficulty of subsequent customs traceability but also creates an unfair competitive environment for normally compliant foreign trade companies. In addition, data reuse between different management departments is mostly limited to the level of pooled data. Even if upstream departments have a data foundation, it is difficult to systematically develop the ability to predict the risks faced by downstream departments, making it difficult to implement inter-departmental alert functions.
[0004] How to combine the characteristics of industrial products with technological means to provide an automated method for generating documentation data, so as to predictively identify users' risky behaviors and provide conditions for opening up the risk warning chain between upstream and downstream departments, has become an urgent problem to be solved. Summary of the Invention
[0005] This application provides a method and system for automatically generating industrial product documentation data based on machine learning, in order to at least partially solve the above-mentioned technical problems.
[0006] The embodiments of this application adopt the following technical solutions: In a first aspect, embodiments of this application provide a method for automatically generating industrial product document data based on machine learning, the method being executed by a machine learning-based system for automatically generating industrial product document data; the method includes: For a specific industrial product category, determine its basic information fields and related information fields; When a user's data entry behavior is detected, the user is prompted to enter the data based on the basic information field of the corresponding industrial product category. If it is detected that the user's current declaration entry behavior belongs to the two-step declaration mode, then based on the monitoring data, it is determined whether the user's entry behavior meets the preset conditions; the determination includes: if the first core field of the summary declaration stage of the two-step declaration mode is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds the preset tax value threshold, then it is determined that the preset conditions are met; the first core field is a field that is required in both the declaration and tax settlement stages; If the preset conditions are met, a pre-trained LSTM model is used to process the monitoring data representing the user's current declaration entry behavior to obtain risk data; the LSTM model is trained based on historical user risk behavior data and the industrial product categories involved in the risk behavior; the risk data includes declaration risk data and tax settlement risk data. When generating a document verification record based on the document data obtained from the user's input behavior, the risk data is added to the document verification record.
[0007] In an optional embodiment of this specification, the method further includes: The sample is constructed based on historical user risk behavior data. Labels are added to the samples; the labels represent the risk type, risk level, and ease of risk detection of the data representation of the risk behavior to which the sample belongs. Using the samples and their labels, the LSTM model to be trained is obtained, thus obtaining the pre-trained LSTM model.
[0008] In an optional embodiment of this specification, the method further includes: The sample comprises a first-class sample and a second-class sample; the first-class sample is constructed based on reporting risk behaviors that may lead to tax risks; the second-class sample is constructed based on reporting risk behaviors that may not lead to tax risks; the labels of the first-class sample represent the reporting risk type, reporting risk level, difficulty of detecting reporting risks, and type of tax risk of the data representation of the risk behavior to which it belongs; the labels of the second-class sample represent the reporting risk type, reporting risk level, difficulty of detecting reporting risks, and probability of leading to tax risks of the data representation of the risk behavior to which it belongs.
[0009] In an optional embodiment of this specification, the method further includes at least one of the following: The historical user risk behavior data includes: the industrial product category corresponding to a certain entry behavior in history, the entry behavior data, the document data entered by the historical user, the profile of the historical user, and the frequency of occurrence of the same type of risk represented by the historical data. A benchmark process is established for the two-step reporting model; the benchmark process represents the order of actions, the method of actions, and the tolerance range for modifications across field nodes of the data entry behavior; the sample also represents the distance between the actual risk process represented by the risk behavior data of its historical user and the benchmark process.
[0010] In an optional embodiment of this specification, the method further includes at least one of the following: The risky behaviors used to construct the aforementioned sample include at least one of the following: false quotation, false declaration of product name / HS code, and false declaration of weight / quantity; The risky behaviors used to construct the second type of samples include at least one of the following: smuggling undeclared goods, failing to declare dangerous goods as required, and exporting controlled items without a license. The learning rate when training the model using the first type of samples is greater than the learning rate when training the model using the second type of samples.
[0011] In an optional embodiment of this specification, the determination further includes at least one of the following: During the application process, the number of times a user modified a certain second core field exceeded the preset first threshold. The number of times a user modifies a set of related fields during the application process exceeds the second preset threshold. The user in question is a historically high-risk user.
[0012] In an optional embodiment of this specification, the method further includes: The basic information fields include at least one of the following: basic identification information, operating and consignee / consignee unit, import / export and time information, transportation-related information, trade and tax exemption information, cargo geographic information, price and fee information, cargo details, gross weight and net weight; and / or, The associated information field includes at least one of the following: licenses or accompanying documents.
[0013] In an optional embodiment of this specification, the method further includes: Based on the tax risks represented in the document verification records, risk alerts are sent to the tax authorities.
[0014] In an optional embodiment of this specification, the method further includes: For the aforementioned sample type, the learning rate is positively correlated with the duration between the historical time when the preset conditions were met and the historical time when the application was completed, and negatively correlated with the distance between the actual risk process and the benchmark process represented by the risk behavior data of the historical users to which the sample type belongs. Based on the learning rate, the samples of the same type are clustered to obtain several sample clusters; The LSTM model to be trained is trained sequentially using the sample clusters in descending order of their learning rates.
[0015] Secondly, embodiments of this application also provide an automated generation system for industrial product documentation data based on machine learning, the system comprising: The field determination module is configured to determine the basic information fields and related information fields for a specific industrial product category. The detection module is configured to prompt the user to enter data for a document when it detects the user's data entry behavior. This prompts the user to enter the data based on the basic information field of the corresponding industrial product category. The judgment module is configured as follows: if it detects that the user's current declaration entry behavior belongs to the two-step declaration mode, it judges whether the user's entry behavior meets the preset conditions based on the monitoring data; the judgment includes: if the first core field of the summary declaration stage of the two-step declaration mode is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds the preset tax value threshold, it is determined that the preset conditions are met; the first core field is a field that is required in both the declaration and tax settlement stages; The monitoring data processing module is configured to: when the preset conditions are met, use a pre-trained LSTM model to process the monitoring data representing the user's current declaration entry behavior to obtain risk data; the LSTM model is trained based on historical user risk behavior data and the industrial product categories involved in the risk behavior; the risk data includes declaration risk data and tax settlement risk data. The document verification record generation module is configured to add the risk data to the document verification record when generating a document verification record based on the document data obtained from the user's input behavior.
[0016] Thirdly, embodiments of this application also provide an electronic device, including: Processor; and A memory configured to store computer-executable instructions, which, when executed, cause the processor to perform the steps of the method described in the first aspect.
[0017] Fourthly, embodiments of this application also provide a computer-readable storage medium storing one or more programs that, when executed by an electronic device including multiple applications, cause the electronic device to perform the steps of the method described in the first aspect.
[0018] The above-described technical solutions adopted in the embodiments of this application can achieve the following beneficial effects: To address the issue of relatively dispersed user data entry behavior and difficulty in centrally identifying risks in the two-step tax filing process, this application's method addresses risk prediction by considering both current user behavior and historical user behavior. Regarding current user behavior, based on pre-defined conditions, when a user's data entry behavior is deemed to pose a risk, a combined approach of analyzing and representing historical data using a pre-trained LSTM model is initiated to predict whether the current user indeed poses a high risk. Furthermore, the risks in this application extend beyond those faced by upstream tax processing departments to include those faced by downstream tax processing departments. Therefore, this method can identify risky user behavior and facilitate a risk warning chain between upstream and downstream departments. The LSTM model dynamically filters and retains temporal information through a gating mechanism, aligning with the memory and forgetting patterns of things over time, representing a precise extraction and technological implementation of natural temporal logic. The technical solution in this application uses an LSTM model to express historical user behavior characteristics, demonstrating its application and expression of natural laws. The method proposed in this application transforms the previously manual, end-to-end supervisory and auditing process into a standardized workflow that can be automatically executed by a program. Under the previous manual auditing model, auditors had to verify document information and validate declaration logic document by document, which was not only time-consuming but also prone to verification errors due to human oversight. After implementing the method in this application, the program can automatically complete all stages, including rule matching, anomaly identification, and result determination, eliminating the need for repetitive human intervention, significantly shortening the audit cycle, substantially reducing labor costs, and ensuring the consistency and stability of audit results. Attached Figure Description
[0019] Figure 1 A schematic diagram illustrating the process of the automated generation method for industrial product document data based on machine learning provided in the embodiments of this specification; Figure 2 This is a schematic diagram of the structure of an electronic device in an embodiment of this specification. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings and specific embodiments. Similar elements in different embodiments are referred to by related similar element reference numerals. In the following embodiments, many details are described to facilitate a better understanding of the present application. However, those skilled in the art will readily recognize that some features may be omitted in different situations, or may be replaced by other elements, materials, or methods. In some cases, certain operations related to the present application are not shown or described in the specification. This is to avoid obscuring the core parts of the present application with excessive description. For those skilled in the art, detailed description of these related operations is not necessary; they can fully understand the related operations based on the description in the specification and general technical knowledge in the art.
[0021] Furthermore, the features, operations, or characteristics described in the specification can be combined in any suitable manner to form various embodiments. At the same time, the steps or actions in the method description can be rearranged or adjusted in a manner obvious to those skilled in the art. Therefore, the various orders in the specification and drawings are only for the clear description of a particular embodiment and do not imply a necessary order, unless otherwise stated that a particular order must be followed.
[0022] The serial numbers assigned to components in this document, such as "first" and "second," are used only to distinguish the described objects and have no sequential or technical meaning. The terms "connection" and "linkage" used in this application, unless otherwise specified, include both direct and indirect connections (linkages).
[0023] The technical solutions provided by the various embodiments of this application are described in detail below with reference to the accompanying drawings.
[0024] like Figure 1 As shown, the machine learning-based automated generation method for industrial product document data in this specification is executed by a machine learning-based automated generation system for industrial product document data. This method includes the following steps: S100: For a specific industrial product category, determine its basic information fields and related information fields.
[0025] In my country, the classification of industrial products is primarily based on the current "National Industrial Classification of Economic Activities" (GB / T 4754—2017), which is the core and universal standard for industrial product classification in China. Its hierarchical structure divides all industries into three major categories and 41 sub-categories, extending downwards to hundreds of intermediate categories and over 600 sub-categories, each with its own unique numerical code. The three major industrial categories include: mining, manufacturing, and the production and supply of electricity, heat, gas, and water, covering all industrial production activities. Each sub-category corresponds to a unique standard code. The industrial product categories discussed in this specification are based on current national standards. In optional embodiments, different levels can be adopted for different categories, depending on the business scenario. That is, even within the same embodiment, a "certain industrial product category" in this specification can be a fine-grained sub-category in relevant standards and regulations, or a coarse-grained major category.
[0026] The documentary data in this manual refers to the structured data content carried on various formal documents (such as contracts, invoices, bills of lading, etc.) in international trade, logistics, warehousing, and other commercial activities, used to record information such as transactions, transportation, and supervision. Simply put, it is the "text and numbers" information on these documents, and is the core carrier of the authenticity of commercial activities. Industrial product documentary data, serving the international trade and circulation of industrial products, must include, in addition to general trade documents, a series of specific data that can prove its technical compliance, security, and quality. When a company intends to export products and declares documentary data to customs through the Single Window, according to the Single Window design, the company needs to fill in the documentary data according to the basic information fields and related information fields.
[0027] During the customs declaration process, in actual business scenarios, the basic information fields and related information fields may be added to, removed from, or have their classification changed due to system upgrades or expansion of business content. However, this does not affect the business logic described in this specification. The content of the basic information fields and related information fields under the current business logic will be described exemplarily below.
[0028] In an optional embodiment of this specification, the basic information fields are mainly the header fields of the customs declaration form, which may include at least one of the following: basic identification information (e.g., customs office of declaration location, pre-entry number (automatically generated by the system), customs number (automatically generated by the system)), operating and consignee / consignee unit (e.g., consignor, consignee, consumer / production and sales unit, declaring unit (currently logged-in enterprise)), entry and exit and time information (e.g., entry and exit customs type, export date (not required during declaration, automatically filled by the system, declaration date), declaration date (automatically recorded by the system)), transportation-related information (e.g., mode of transport, sea or air transport, name of means of transport, voyage number), trade and tax exemption information (e.g., regulatory method (e.g., general trade), nature of tax exemption, license number), cargo geographical information (e.g., country of arrival, port of destination, final destination country), price and cost information (e.g., transaction method FOB, freight, insurance and miscellaneous charges), cargo details information (e.g., commodity number, commodity name, specifications, quantity), gross weight and net weight.
[0029] The associated information field includes at least one of the following: licenses (e.g., regulatory documents) and accompanying documents. Both are mandatory documents, but the timing of their requirement may differ. Licenses may include at least one of the following: import licenses, dual-use items and technology import licenses, dual-use items and technology export licenses, export licenses, temporary export licenses for textiles, dual-use items and technology export licenses (targeted), export licenses (processing trade), and export licenses (border trade). Accompanying documents cover other regulatory documents or accompanying documents not included in the above categories, such as entry clearance documents (code A), processing trade domestic sales tax collection contact forms (code c), preferential certificates of origin (code Y), etc.
[0030] It should be noted that the basic information fields and related information fields may differ for different industrial product categories, but this does not affect the technical solutions in this specification.
[0031] S102: When a user's data entry behavior is detected, the user is prompted to enter the data based on the basic information field of the corresponding industrial product category.
[0032] The execution logic of this step is consistent with the business logic of the single-window system. The machine learning-based automated generation system for industrial product documentation data described in this specification can be embedded within the single-window system. While the machine learning-based automated generation system for industrial product documentation data can obtain log data from the single-window system, a certain degree of isolation exists between them. That is, the system described in this specification cannot upload data to the single-window system; the data flow between the two is unidirectional. Related technologies can control this data flow to achieve isolation and protection of the single-window system. Furthermore, the related technologies can also ensure the security of the machine learning-based automated generation system for industrial product documentation data described in this specification, guaranteeing that the log data and other data it obtains from the single-window system will not be leaked.
[0033] S104: If it is detected that the user's current entry behavior belongs to the two-step entry mode, then the monitoring data will be used to determine whether the user's entry behavior meets the preset conditions.
[0034] In customs clearance, one-step declaration (or "single declaration") and two-step declaration are two main customs clearance methods for imported goods. The core difference between the two lies in the different timing of declaration and information submission.
[0035] The two-step declaration model splits the declaration process into two steps: a first step, "Summary Declaration," and a second step, "Complete Declaration." (The specific documents and data required for each step can be determined based on the actual business scenario. In an optional embodiment, the first step primarily requires the user to enter the document data corresponding to the basic information fields.) The one-step declaration model requires submitting all 105 declaration items and all accompanying documents at once. Because the timing of data entry in the two-step model is somewhat dispersed, it may disrupt the system's monitoring logic. Furthermore, the dispersed entry of document data can also serve as a form of concealment should a user intend to violate regulations. The technical solutions in this specification also include more targeted technical solutions designed to address the potential risks of the two-step declaration model, which will be described below.
[0036] In related technologies, any technical means that can be used to identify whether a user's data entry behavior is a one-step or two-step reporting mode are applicable to this specification, provided that conditions permit.
[0037] In one optional embodiment of this specification, the system can determine the submission mode through the entry path. Specifically, the menu entry selected by the enterprise during the application process directly distinguishes the mode. The system classifies documents submitted through the "One-Time Application" entry as a one-time entry, and documents submitted through the "Two-Time Application" entry as a phased entry. Alternatively, the system can determine the submission mode through data integrity verification. Specifically, the system verifies the coverage of data fields in the initial submission in real time. If all 105+ complete application fields are submitted at once, it is determined as a one-time application; if only the 9 basic fields of the summary application are submitted initially, it is determined as two-time applications. Another option is to determine the submission mode through application process node marking. Specifically, the system automatically records all nodes in the application process. If only one complete application submission action occurs, it is determined as a one-time application; if two independent submission nodes—one for the summary application and one for the complete application—are generated sequentially, it is determined as two-time applications. Finally, the system can determine the submission mode through auxiliary submission rules. Specifically, if the enterprise selects "Auxiliary Submission" during entry, the system will mark it as a one-time application mode, and the complete application will be automatically triggered after the summary application is approved, without requiring manual secondary operation. All of the above business logic can be automated through scripts.
[0038] This step involves supervising the declaration and clearance of documents by users (i.e., enterprises) through a single window. There is a prior customs filing process, which will not be elaborated here.
[0039] The monitoring data in this manual is generated through recording user behavior and user-entered data. It can be used as part of the log data for analysis by the machine learning-based automated generation system for industrial product documentation data. Any related technologies capable of generating monitoring data are applicable to this manual, where conditions permit.
[0040] In an optional embodiment of this specification, monitoring data can be collected using user behavior tracking techniques. User behavior tracking refers to automatically capturing all user interaction behaviors, such as clicks, dwell time, and page jumps, by pre-setting data collection nodes on the front end of the system's interactive interface, and uploading them to the backend for subsequent user profiling, user behavior, and conversion analysis. This can also be called user session behavior recording, focusing on completely reconstructing the user's entire operation trajectory from entering the page to exiting. An example script for implementing this function is as follows: For example, the Traquer open-source script is specifically designed for recording user behavior on web pages. It can directly capture mouse clicks, control click events, page scrolling, and supports capturing full interaction data such as user input in forms and dwell time. It supports exporting behavior record data in JSON format and can also generate page heatmaps to meet the user behavior analysis needs of the scenarios described in this manual.
[0041] For example, Laravel's accompanying data collection scripts intercept front-end requests through middleware and automatically record information such as user access paths, clicked target control IDs, IP addresses, entered information, and operation times. With a custom UserActionLog model, the collected browsing duration and control click behavior can be directly written to the backend database.
[0042] For example, a general-purpose front-end event tracking SDK script can automatically report core fields such as click events, page dwell time, and browsing path without requiring development from scratch. It can also capture every user input action in input boxes through form event listener mechanisms, including detailed data such as the complete text entered, input duration, and modification path.
[0043] The judgment in this step includes: if, based on monitoring data, it is determined that the first core field of the summary declaration stage of the two-step declaration model is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds a preset tax value threshold (an empirical value that can be negotiated and determined with downstream departments), then it is determined that the preset condition is met. That is, from the perspective of this data entry behavior, the user's personal data entry behavior is likely to cause a high risk. The first core field in this manual is a field that must be filled in the relevant system in both the customs declaration and tax settlement stages (i.e., tax declaration and settlement after product export). Due to different information dimensions, the first core field may be a part of the basic information field and the related information field. The first core fields include identity and entity identifiers (domestic consignor / consignee number (operating unit code), declarant unit code, etc.), core transaction information (contract number, trade method (regulatory method), transaction method, currency, total price, etc.), logistics and time information (transportation method, bill of lading number, export date, etc.), cargo description information (commodity number (HS code), commodity name, first / second quantity, first / second unit of measurement, transaction quantity and unit of measurement), and fee and document information (freight, insurance, miscellaneous fees, license number, filing number, etc.). The judgment in this step can identify data entry behaviors that are highly likely to bring risks to upstream departments and that may spread downstream.
[0044] In real-world business scenarios, the first core field may also be adjusted as different departments make business changes, but the technical solutions in this manual will still be applicable.
[0045] In an optional embodiment of this specification, the determination of the preset conditions further includes at least one of the following: During the declaration phase, the number of times a user modifies a certain second core field (a field within the single window constraint that is only related to import and export customs declaration and not related to taxation) exceeds a preset first threshold (empirical value); the number of times a user modifies a set of related fields (fields that have a causal relationship, such as unit price and total price; not necessarily both first core fields or both second core fields) during the declaration phase exceeds a preset second threshold (empirical value). The user in question is a historically risky user (not all users with risky behavior are risky users, but those with subjective intent are; users with unintentional risky behavior are not risky users. This differs from users with historically risky behavior used in subsequent sample construction. Historical users used in sample construction, regardless of whether they had subjective intent, form the data basis for sample construction).
[0046] In other words, if one of the preset conditions is met, the subsequent steps can be executed. If one of the conditions is not met, the process will exit.
[0047] S106: If the preset conditions are met, a pre-trained LSTM model is used to process the monitoring data representing the user's current declaration entry behavior to obtain risk data.
[0048] Long Short-Term Memory (LSTM) networks are a type of recurrent neural network whose core design mimics and refines the natural thinking process humans use when processing "coherent events," making them particularly adept at processing information that has a sequence and is interconnected.
[0049] LSTM excels in many fields because it captures and extracts a series of universal natural laws concerning "time" and "sequence." LSTM is a highly successful digital simulation of the "memory-based, regular sequential processes" that are ubiquitous in nature. By simulating the human "memory-forgetting-updating" mechanism, it allows machines to understand and predict data with complex temporal relationships, just as they understand natural laws.
[0050] For example, there's continuity and causality (a current event is often triggered by a series of previous events, influencing subsequent developments. This is the "causal relationship" and "temporal continuity" between events). LSTM captures this multi-step dependency through its memory units. For instance, in customs declaration anomaly detection, whether a user's action (such as changing the consignee) is abnormal depends not on the single action, but on its position and sequence within a series of actions. LSTM is designed precisely to learn this "causal sequence" pattern.
[0051] Another example is periodicity and repetitive patterns (many natural and man-made phenomena repeat in fixed or similar patterns, such as the changing seasons and peak traffic periods). LSTM can identify these recurring subsequence patterns within a sequence. For instance, the baseline workflow in document data declaration—"first fill in the consignee, then the product quantity, and finally check the price"—is a periodic behavioral pattern. LSTM can learn this pattern, and once an operation deviates from the established order, LSTM can keenly detect it.
[0052] The LSTM model in this specification is trained based on historical user risk behavior data (which has a high probability of posing a risk to customs and could create hidden dangers for downstream sectors. Whether this risk actually poses a risk to downstream sectors needs to be characterized by samples built from historical data) and the industrial product categories involved in this risk behavior. The risk data includes declaration risk data (representing risks arising during the customs declaration stage) and tax settlement risk data (representing risks posed to downstream tax authorities). The risk data expresses the prediction results of the risks.
[0053] S108: When generating a document verification record based on the document data obtained from the user's input behavior, the risk data is added to the document verification record.
[0054] During the pre-release document verification process, if customs has doubts about the declared price or other document data fields (for example, if the aforementioned steps indicate a high probability of risk), it can generate several specific types of external documents based on the document verification records (these internal records are not publicly disclosed, but constitute the basis for verification decisions).
[0055] In an optional embodiment of this specification, after generating the document verification record, a risk alert can be sent to the tax authorities based on the tax risks represented in the document verification record, so as to remind downstream departments.
[0056] The method described in this specification addresses the phenomenon in the two-step declaration process where user data entry behavior is relatively dispersed, making it difficult to centrally identify risks. This application's method addresses risk prediction by considering both current user behavior and historical user behavior. Regarding current user behavior, based on the judgment results of preset conditions, when a potential risk is identified in the current user's data entry behavior, a combined approach of analyzing and representing historical data using a pre-trained LSTM model is initiated to predict whether the current user indeed poses a high risk. Furthermore, the risks in this application include not only those faced by upstream declaration processing departments but also those faced by downstream tax processing departments. Therefore, this application's method can identify risky user behavior and provides conditions for establishing a risk warning chain between upstream and downstream departments. The LSTM model dynamically filters and retains temporal information through a gating mechanism, aligning with the memory and forgetting patterns of things evolving over time, representing a precise extraction and technical implementation of natural temporal logic. The technical solution in this application uses an LSTM model to express the behavioral characteristics of historical users, demonstrating the application and expression of natural laws in this technical solution. The method proposed in this application transforms the previously manual, end-to-end supervisory and auditing process into a standardized workflow that can be automatically executed by a program. Under the previous manual auditing model, auditors had to verify document information and validate declaration logic document by document, which was not only time-consuming but also prone to verification errors due to human oversight. After implementing the method in this application, the program can automatically complete all stages, including rule matching, anomaly identification, and result determination, eliminating the need for repetitive human intervention, significantly shortening the audit cycle, substantially reducing labor costs, and ensuring the consistency and stability of audit results.
[0057] As can be seen from the foregoing, the technical solutions in this specification rely on a pre-trained LSTM model. The training process of the LSTM model will now be described.
[0058] Before training the model, samples must first be constructed.
[0059] In an optional embodiment of this specification, the sample construction process involves: constructing samples based on historical user risk behavior data. Then, labels are added to the samples; these labels represent the risk type, risk level (including declaration risk level and tax risk level, with specific levels determined according to preset business needs, such as high, medium, and low levels), and the ease with which the risk (including declaration risk level and tax risk level) is detected (primarily referring to the ease with which customs detects it; specific quantitative indicators can be determined based on actual business needs. For example, the later the detection, the higher the difficulty of detection. Risks automatically identified by the system are less difficult to detect, while risks requiring manual intervention are more difficult. Risks caused by business rules are more difficult to detect; for example, the default rule of random checks on small packages makes it more difficult to detect risky behavior through small packages). Using the samples and their labels, a pre-trained LSTM model is trained to obtain the pre-trained LSTM model.
[0060] The sample in this manual contains several field nodes. Each field node corresponds one-to-one with the field of the document data entered through a single window. In addition to the above, the data dimensions represented by the field nodes in the sample also include modifications across field nodes. For example, field nodes A, B, and C are normally entered in the order 1 (field node A), 2 (field node B), and 3 (field node C). If the user modifies the entered data, the actual entry order might be 1 (field node A), 2 (field node B), 3 (field node A), 4 (field node A), and 5 (field node C), demonstrating repeated modifications to (field node A) and modifications across field node B.
[0061] The risk behavior data in this specification refers to actual risk behaviors that have been substantiated by evidence to have caused actual risks. The historical user risk behavior data in this specification includes: the industrial product category corresponding to a specific data entry behavior in history; data entry behavior data (which can be data collected through the aforementioned user behavior tracking points, and can be part of the monitoring data, representing the user's repeated modifications, cross-stage modifications, etc.); the data entered by that historical user (which can also be part of the monitoring data); the profile of that historical user (technical means of generating user profiles based on monitoring data in related technologies are applicable to this specification where conditions permit; optionally, PySpark behavior analysis and profiling scripts can be directly used to generate the profile of historical users); and the frequency of occurrence of similar risks represented by historical data (based on statistics of historical data).
[0062] The risk types in this specification can be categorized according to actual business needs. In an optional embodiment of this specification, the risk types can be categorized as follows: malicious tampering with core fields after the fact (modifying core fields such as commodity number, value, and quantity filled in during the summary declaration, with a significant difference in tax amount before and after the modification; the behavior after the goods are quickly released should be closely monitored); deliberate misreporting or concealment of key information (deliberately underreporting the value of goods or falsely reporting the commodity name during the summary declaration stage, using the fast release channel to transport high-tax or controlled goods out of the regulatory area); illegally skipping minimum declaration items (deliberately omitting mandatory minimum declaration items such as departure date and production date for certain specific commodities to circumvent inspection and quarantine supervision); and late supplementary declaration with abnormal information (submitting the declaration after exceeding the statutory time limit of 14 days for the entry of the means of transport). Submitting a complete declaration with significant discrepancies between the declared data and the summary declaration data; forging and replacing accompanying documents afterward (the contracts and invoices uploaded in the summary declaration are genuine, but are replaced with forged low-priced documents in the complete declaration to maliciously evade taxes); splitting declarations to disperse the value of goods (splitting the same batch of high-value goods into multiple two-step declarations to circumvent key supervision by using the single-item value threshold); circumventing the guarantee limit for smuggling (using the tax guarantee limit circumvention rule to declare a large number of high-tax goods in a short period of time, then disappearing after delivery and refusing to pay taxes); falsely declaring the nature of trade (falsely declaring general trade taxable goods as tax-free under supervision, quickly delivering them through two-step declarations, and then selling them privately in China for profit), etc.
[0063] In a further optional embodiment of this specification, the sample construction is also differentiated based on the scope of the risk's impact. The samples are divided into Class I and Class II samples during construction. The first type of sample is constructed based on declaration risk behaviors that lead to tax risks (and also customs risks); the second type of sample is constructed based on declaration risk behaviors that do not lead to tax risks (whether or not they lead to tax risks can be represented by historical data). The labels of the first type of sample represent the declaration risk type, declaration risk level (the tax risk level is not represented, as tax risks are often interconnected and may increase over time, potentially leading to errors in quantification. Therefore, only the presence or absence of tax risk is examined, not the specific amount), the ease of detection of the declaration risk, and the type of tax risk (e.g., tax declaration errors and omissions, tax evasion, etc.) of the risk behavior to which the second type of sample is constructed. The labels of the second type of sample represent the declaration risk type, declaration risk level, ease of detection of the declaration risk, and the probability of leading to tax risks (generally, the second type of sample represented by historical data does not lead to tax risks; to maintain the alignment of the label dimensions, the probability here can be set to 0).
[0064] In a further optional embodiment of this specification, to make the features in the sample more distinct, a baseline process is established for the two-step declaration mode (the process may differ for different industrial product categories, determined according to actual business needs); the baseline process characterizes the order of actions of each field node in the data entry behavior (characterizing which is filled in first and which is filled in later), the behavior method (e.g., selecting from a drop-down list, filling in, etc. Different methods allow different levels of error tolerance. For example, the risk of filling in the wrong expression three times is the same as the risk of selecting the wrong expression twice), and the error tolerance range for modifying cross-field nodes (e.g., the risk level of modifying the expression of the basic information field after filling in the related information field is higher. Or, the order of field nodes in the basic information field...). The first and fourth items in the sample are unrelated, but the first and second items are related. The behavior of filling in the second item and then going back to modify the first indicates a higher level of risk, suggesting the user may be piecing together data. The tolerance range can be used for quantifying distance, risk level, etc.; the sample also represents the distance between the actual risk process (e.g., the aforementioned five-step process for field node A, field node B, and field node C) and the baseline process represented by the historical user's risk behavior data (in related technologies, any technical means used to determine distance, where conditions permit, are applicable to this specification, such as the Euclidean distance algorithm, the similarity algorithm for variable-length sequences, etc.). The larger the distance, the higher the risk.
[0065] In the context of industrial product import and export, the declaration risk behaviors used to construct the first type of sample include at least one of the following: inaccurate pricing (too high or too low), misrepresentation of product name / HS code (to evade commodity inspection or to defraud taxes), and misrepresentation of weight / quantity (to defraud tax refunds). The declaration risk behaviors used to construct the second type of sample include at least one of the following: smuggling undeclared goods, failing to declare dangerous goods as required, and failing to obtain a license for export controlled items.
[0066] In an optional embodiment of this specification, during model training, the learning rate when training the model using the first type of samples is greater than the learning rate when training the model using the second type of samples. The first type of samples are constructed from historical behaviors that actually involve customs declaration risks and tax risks. Their representation of risk behavior is relatively comprehensive, and their accuracy is high over a longer timeframe. The second type of samples clearly involve customs declaration risks, but no tax risks, or even if tax risks exist, they are not detected. It is difficult to rule out the possibility that they may still exhibit tax risks over a longer timeframe.
[0067] In a further optional embodiment, for the aforementioned sample type, the learning rate is positively correlated with the duration between the historical time when the preset conditions were met and the historical time of the declaration completion (the longer the duration, the stronger the subjective concealment, and the greater the urgency to detect this subjective intent in order to stop losses in time), and negatively correlated with the distance between the actual risk process represented by the risk behavior data of the historical users to which the sample type belongs and the benchmark process (the closer to the benchmark process, the stronger the concealment, and the more attention should be paid). Then, the aforementioned sample type is clustered based on the learning rate (the clustering algorithm is flexible, such as the K-Means algorithm), resulting in several sample clusters. The LSTM model to be trained is then trained sequentially using the sample clusters in descending order of their corresponding learning rates. This improves the training efficiency of the model and also contributes to the accuracy of the output of the trained model.
[0068] Furthermore, this specification also provides an automated generation system for industrial product documentation data based on machine learning, the system comprising: The field determination module is configured to determine the basic information fields and related information fields for a specific industrial product category. The detection module is configured to prompt the user to enter data for a document when it detects the user's data entry behavior. This prompts the user to enter the data based on the basic information field of the corresponding industrial product category. The judgment module is configured as follows: if it detects that the user's current declaration entry behavior belongs to the two-step declaration mode, it judges whether the user's entry behavior meets the preset conditions based on the monitoring data; the judgment includes: if the first core field of the summary declaration stage of the two-step declaration mode is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds the preset tax value threshold, it is determined that the preset conditions are met; the first core field is a field that is required in both the declaration and tax settlement stages; The monitoring data processing module is configured to: when the preset conditions are met, use a pre-trained LSTM model to process the monitoring data representing the user's current declaration entry behavior to obtain risk data; the LSTM model is trained based on historical user risk behavior data and the industrial product categories involved in the risk behavior; the risk data includes declaration risk data and tax settlement risk data. The document verification record generation module is configured to add the risk data to the document verification record when generating a document verification record based on the document data obtained from the user's input behavior.
[0069] The system can execute the methods in any of the foregoing embodiments and achieve the same or similar technical effects, which will not be elaborated here.
[0070] Figure 2 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Please refer to it. Figure 2 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and memory. The memory may include main memory, such as high-speed random-access memory (RAM), or non-volatile memory, such as at least one disk drive. Of course, the electronic device may also include other hardware required for other business operations.
[0071] The processor, network interface, and memory can be interconnected via an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 2 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.
[0072] Memory is used to store programs. Specifically, programs may include program code, which includes computer operation instructions. Memory may include main memory and non-volatile memory, and provides instructions and data to the processor.
[0073] The processor reads the corresponding computer program from non-volatile memory into memory and runs it, forming a machine learning-based automated generation system for industrial product documentation data at the logical level. The processor executes the program stored in memory and specifically performs any of the aforementioned machine learning-based automated generation methods for industrial product documentation data.
[0074] The above is as stated in this application. Figure 1The machine learning-based automated generation method for industrial product documentation data disclosed in the illustrated embodiments can be applied to or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method.
[0075] The electronic device can also perform Figure 1 A machine learning-based method for automatically generating industrial product documentation data was developed and implemented. Figure 1 The functions of the embodiments shown are not described in detail here.
[0076] This application also proposes a computer-readable storage medium that stores one or more programs, the programs including instructions that, when executed by an electronic device including multiple applications, perform any of the aforementioned machine learning-based automated generation methods for industrial product document data.
[0077] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0078] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A system that specifies functions in one or more boxes.
[0079] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including an instruction set implemented in a process. Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0080] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0081] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0082] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0083] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0084] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0085] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0086] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A method for automatically generating industrial product documentation data based on machine learning, characterized in that, The method is executed by a machine learning-based automated generation system for industrial product documentation data; the method includes: For a specific industrial product category, determine its basic information fields and related information fields; When a user's data entry behavior is detected, the user is prompted to enter the data based on the basic information field of the corresponding industrial product category. If it is detected that the user's current declaration entry behavior belongs to the two-step declaration mode, then based on the monitoring data, it is determined whether the user's entry behavior meets the preset conditions; the determination includes: if the first core field of the summary declaration stage of the two-step declaration mode is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds the preset tax value threshold, then it is determined that the preset conditions are met; the first core field is a field that is required in both the declaration and tax settlement stages; If the preset conditions are met, a pre-trained LSTM model is used to process the monitoring data representing the user's current declaration entry behavior to obtain risk data; the LSTM model is trained based on historical user risk behavior data and the industrial product categories involved in the risk behavior; the risk data includes declaration risk data and tax settlement risk data. When generating a document verification record based on the document data obtained from the user's input behavior, the risk data is added to the document verification record.
2. The method as described in claim 1, characterized in that, The method further includes: The sample is constructed based on historical user risk behavior data. Labels are added to the samples; the labels represent the risk type, risk level, and ease of risk detection of the data representation of the risk behavior to which the sample belongs. Using the samples and their labels, the LSTM model to be trained is obtained, thus obtaining the pre-trained LSTM model.
3. The method as described in claim 2, characterized in that, The method further includes: The sample comprises a first-class sample and a second-class sample; the first-class sample is constructed based on reporting risk behaviors that may lead to tax risks; the second-class sample is constructed based on reporting risk behaviors that may not lead to tax risks; the labels of the first-class sample represent the reporting risk type, reporting risk level, difficulty of detecting reporting risks, and type of tax risk of the data representation of the risk behavior to which it belongs; the labels of the second-class sample represent the reporting risk type, reporting risk level, difficulty of detecting reporting risks, and probability of leading to tax risks of the data representation of the risk behavior to which it belongs.
4. The method as described in claim 2, characterized in that, The method further includes at least one of the following: The historical user risk behavior data includes: the industrial product category corresponding to a certain entry behavior in history, the entry behavior data, the document data entered by the historical user, the profile of the historical user, and the frequency of occurrence of the same type of risk represented by the historical data. Establish a benchmark process for the two-step reporting model; The baseline process characterizes the behavior order, behavior mode, and fault tolerance range for cross-field nodes of the data entry behavior. The sample also represents the distance between the actual risk process represented by the risk behavior data of its historical users and the benchmark process.
5. The method as described in claim 3, characterized in that, The method further includes at least one of the following: The risky behaviors used to construct the aforementioned sample include at least one of the following: false quotation, false declaration of product name / HS code, and false declaration of weight / quantity; The risky behaviors used to construct the second type of samples include at least one of the following: smuggling undeclared goods, failing to declare dangerous goods as required, and exporting controlled items without a license. The learning rate when training the model using the first type of samples is greater than the learning rate when training the model using the second type of samples.
6. The method as described in claim 1, characterized in that, The judgment also includes at least one of the following: During the application process, the number of times a user modified a certain second core field exceeded the preset first threshold. The number of times a user modifies a set of related fields during the application process exceeds the second preset threshold. The user in question is a historically high-risk user.
7. The method as described in claim 1, characterized in that, The method further includes: The basic information fields include at least one of the following: basic identification information, operating and consignee / consignee unit, import / export and time information, transportation-related information, trade and tax exemption information, cargo geographic information, price and fee information, cargo details, gross weight and net weight; and / or, The associated information field includes at least one of the following: licenses or accompanying documents.
8. The method as described in claim 1, characterized in that, The method is followed by: Based on the tax risks represented in the document verification records, risk alerts are sent to the tax authorities.
9. The method as described in claim 5, characterized in that, The method further includes: For the aforementioned sample type, the learning rate is positively correlated with the duration between the historical time when the preset conditions were met and the historical time when the application was completed, and negatively correlated with the distance between the actual risk process and the benchmark process represented by the risk behavior data of the historical users to which the sample type belongs. Based on the learning rate, the samples of the same type are clustered to obtain several sample clusters; The LSTM model to be trained is trained sequentially using the sample clusters in descending order of their learning rates.
10. An automated generation system for industrial product documentation data based on machine learning, characterized in that, The system includes: The field determination module is configured to determine the basic information fields and related information fields for a specific industrial product category. The detection module is configured to prompt the user to enter data for a document when it detects the user's data entry behavior. This prompts the user to enter the data based on the basic information field of the corresponding industrial product category. The judgment module is configured as follows: if it detects that the user's current declaration entry behavior belongs to the two-step declaration mode, it judges whether the user's entry behavior meets the preset conditions based on the monitoring data; the judgment includes: if the first core field of the summary declaration stage of the two-step declaration mode is modified in the subsequent complete declaration stage, and the difference in tax value before and after the modification exceeds the preset tax value threshold, it is determined that the preset conditions are met; the first core field is a field that is required in both the declaration and tax settlement stages; The monitoring data processing module is configured to: when the preset conditions are met, use a pre-trained LSTM model to process the monitoring data representing the user's current declaration entry behavior to obtain risk data; the LSTM model is trained based on historical user risk behavior data and the industrial product categories involved in the risk behavior; the risk data includes declaration risk data and tax settlement risk data. The document verification record generation module is configured to add the risk data to the document verification record when generating a document verification record based on the document data obtained from the user's input behavior.
