A method and device for generating financial vouchers based on business form data
Automatically generate financial vouchers through machine learning, natural language processing and blockchain technology, solving the problems of low efficiency and error-prone financial voucher generation in the existing technology, realizing efficient and reliable financial voucher generation, and reducing corporate accounting processing costs and improved credential quality and credibility.
Patent Information
- Application Number
- CN202410426750.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-10
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2044-04-10
AI Technical Summary
The existing method of generating financial vouchers is inefficient and error-prone, requiring manual entry, resulting in high corporate accounting processing costs and insufficient voucher quality and credibility.
Adopt a method based on business form data, using machine learning, natural language processing, knowledge graph and blockchain technology to automatically identify, parse and standardize business data, generate financial vouchers, and ensure data traceability through blockchain.
It realizes automatic and efficient financial voucher generation, reduces corporate accounting processing costs, and improves the quality and credibility of vouchers.
Smart Images

Figure CN118037294B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information technology, and in particular to a method and device for generating financial vouchers based on business form data. Background Art
[0002] Financial vouchers are an important part of business data management for enterprises. Financial vouchers are generally divided into three forms: receipt, payment and transfer. The basic contents of financial vouchers include summary, subject, amount, date of issuance, debit and credit direction, etc. The main way to generate financial vouchers is to use accountants to collect business voucher data and sort them out by category, and manually enter financial vouchers into the financial software system according to accounting requirements. However, this method is inefficient and prone to errors. Summary of the invention
[0003] Based on the above problems, the present invention proposes a method and device for generating financial vouchers based on business form data. By intelligently acquiring business data sources and applying cutting-edge technologies such as machine learning, knowledge graphs, and blockchain, automatic and efficient financial voucher generation can be achieved, which can reduce corporate accounting processing costs and improve voucher quality and credibility.
[0004] In view of this, one aspect of the present invention provides a method for generating a financial voucher based on business form data, comprising:
[0005] Collecting business form data of different types of business forms, and identifying the business form data using machine learning technology to obtain first business data in the business form;
[0006] Parsing and standardizing the unstructured first business data using natural language processing technology to convert the first business data into structured second business data;
[0007] Generate multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data and historical enterprise accounting standards;
[0008] Automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model;
[0009] Using knowledge graph technology to review the first generated financial voucher and output review opinions;
[0010] Blockchain technology is used to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process.
[0011] Optionally, the step of collecting business form data of different types of business forms, identifying the business form data using machine learning technology, and acquiring the first business data in the business form includes:
[0012] Scanning a paper business form using an image scanning device to obtain first business form data;
[0013] Using computer vision technology, identifying form layout data, frame line data, coordinate data, and text data in the first business form data;
[0014] Annotating key information of the historical business form data to construct a training data set of form text;
[0015] Use the sequence labeling model in natural language processing technology to train a field extraction model for form text;
[0016] Extract key information fields according to the field extraction model, combining the form layout data, the frame line data, and the coordinate data;
[0017] The first business data is identified according to the key information field and the text data.
[0018] Optionally, the step of parsing and standardizing the unstructured first business data by using natural language processing technology to convert the first business data into structured second business data includes:
[0019] For the first unstructured business data, according to a predefined first data specification, the identified text field is converted and normalized to obtain first business identification data;
[0020] For a portion of the first business data in which no fields can be identified, extract the first structured business data using a rule-based text parsing method;
[0021] According to the business meanings of the different types of forms, the first business identification data and the first structured business data are recombined into a structured data set to obtain the second business data.
[0022] Optionally, the step of generating multiple business rule models and multiple accounting processing models according to historical business form data, historical voucher data and historical enterprise accounting standards includes:
[0023] Preprocessing the text data of the historical business form data and the historical voucher data using natural language processing technology, extracting key information and marking data sources respectively, to obtain first key information;
[0024] Extracting a first form structured feature from the historical business form data;
[0025] Extracting a first voucher structured feature from the historical voucher data;
[0026] Using the historical enterprise accounting standards and the first key information, respectively marking the first form structured feature and the first voucher structured feature with a business rule label and an accounting processing method label;
[0027] Construct a deep learning framework, design a first convolutional neural network model, and use the first form structured features and the first voucher structured features to train the first convolutional neural network model to learn the mapping relationship between business data and business rules and accounting processing methods, and generate multiple business rule models and multiple accounting processing models respectively.
[0028] Optionally, it also includes:
[0029] Use blockchain technology to build a decentralized business rule model storage structure to ensure the consistency of the business rule model configuration;
[0030] Adopt smart contracts to implement the modification transaction operation of the business rule model to ensure that historical records are traceable;
[0031] Using the digital signature of the enterprise-related personnel as the trigger condition for modifying the transaction operation to perform authority control;
[0032] Setting up a test environment in the blockchain network for business rule model verification to avoid misconfiguration;
[0033] After the business rule model configuration is successfully changed, it is automatically synchronized to the local cache database of each node;
[0034] The data collection system and the credential generation system are connected to the blockchain network to call the business rule model in real time.
[0035] Optionally, the step of automatically generating different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model includes:
[0036] generating an applicable first business rule according to the second business data and the business rule model;
[0037] Extracting the account-related data features of the second business data, and determining a matching first account processing solution in combination with the account processing model;
[0038] Inputting the second business data, the first business rules and the first accounting processing scheme into a preset voucher generation model;
[0039] The voucher generation model generates a first voucher account text describing the business corresponding to the second business data;
[0040] In combination with current enterprise accounting standards, the formatted structured data of the first voucher account text is supplemented to obtain the first financial voucher.
[0041] Optionally, the step of using the knowledge graph technology to review the generated first financial voucher and outputting a review opinion includes:
[0042] Acquire accounting-related knowledge data and build an accounting knowledge graph;
[0043] Using natural language processing technology, extracting a text description from the generated first financial voucher;
[0044] Associating and querying the text description with accounting rules in the accounting knowledge graph to check whether the first financial voucher complies with the rules;
[0045] Generate an audit report based on the inspection results, identifying abnormalities and non-conformities;
[0046] Outputting audit opinions according to the audit report.
[0047] Optionally, it also includes:
[0048] Combined with historical financial data, verify the rationality of the key data of the first financial voucher;
[0049] Analyzing the matching of the internal data of the first financial voucher using a machine learning model;
[0050] Build a business rule verification engine to verify whether the first financial voucher meets the requirements of the business rules.
[0051] Optionally, the step of using blockchain technology to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process includes:
[0052] Designing a matching relationship between the form digital identity identifier of the form data and the voucher digital identity identifier of the financial voucher that have a corresponding relationship on the blockchain;
[0053] When the business form data is uploaded, the digital identity and metadata of the first form are written into the blockchain;
[0054] When generating the first financial voucher, assigning a first voucher digital identity to it, and writing the first voucher digital identity and the first form digital identity of the business form data based on the first financial voucher to the blockchain;
[0055] Through the smart contract and the matching relationship, the first matching relationship between the first form digital identity identifier and the first certificate digital identity identifier is verified.
[0056] Another aspect of the present invention provides a financial voucher generation device based on business form data, comprising: a data acquisition module, a data standardization module, a model generation module, a voucher generation module, an audit module and a data association module;
[0057] The data collection module is used to collect business form data of different types of business forms, and identify the business form data using machine learning technology to obtain the first business data in the business form;
[0058] The data standardization module is used to parse and standardize the unstructured first business data by using natural language processing technology, and convert the first business data into structured second business data;
[0059] The model generation module is used to generate multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data and historical enterprise accounting standards;
[0060] The voucher generation module is used to automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model;
[0061] The audit module is used to audit the generated first financial voucher using knowledge graph technology and output an audit opinion;
[0062] The data association module is used to establish an association between the business form data and the first financial voucher using blockchain technology to ensure data traceability throughout the entire process.
[0063] The method for generating financial vouchers based on business form data using the technical solution of the present invention includes: collecting business form data of different types of business forms, and identifying the business form data using machine learning technology to obtain the first business data in the business form; parsing and standardizing the unstructured first business data using natural language processing technology, and converting the first business data into structured second business data; generating multiple business rule models and multiple account processing models based on historical business form data, historical voucher data and historical enterprise accounting standards; automatically generating different types of first financial vouchers using machine learning algorithms based on the second business data, the business rule model and the account processing model; auditing the generated first financial voucher using knowledge graph technology and outputting audit opinions; and establishing the association between the business form data and the first financial voucher using blockchain technology to ensure data traceability throughout the entire process. By intelligently acquiring business data sources and using cutting-edge technologies such as machine learning, knowledge graphs, and blockchain to achieve automatic and efficient generation of financial vouchers, the cost of enterprise accounting processing can be reduced and the quality and credibility of vouchers can be improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] Figure 1 is a flow chart of a method for generating financial vouchers based on business form data provided by an embodiment of the present invention;
[0065] Figure 2 It is a schematic block diagram of a financial voucher generation device based on business form data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0067] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0068] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0069] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0070] Refer to the following Figure 1 to Figure 2 A method and apparatus for generating a financial voucher based on business form data is described in accordance with some embodiments of the present invention.
[0071] like Figure 1 As shown, one embodiment of the present invention provides a method for generating a financial voucher based on business form data, comprising:
[0072] Collecting business form data of different types of business forms, and identifying the business form data using machine learning technology to obtain first business data in the business form;
[0073] Parsing and standardizing the unstructured first business data using natural language processing technology to convert the first business data into structured second business data;
[0074] Generate multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data, and historical enterprise accounting standards (a decentralized configuration solution based on blockchain can be used);
[0075] Automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model (which may be generated based on enterprise accounting standards);
[0076] Using knowledge graph technology to review the first generated financial voucher and output review opinions;
[0077] Blockchain technology is used to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process.
[0078] The technical solution of this embodiment is adopted, by collecting business form data of different types of business forms, and using machine learning technology to identify the business form data, the first business data in the business form is obtained; the first unstructured business data is parsed and standardized using natural language processing technology, and the first business data is converted into structured second business data; multiple business rule models and multiple account processing models are generated according to historical business form data, historical voucher data and historical enterprise accounting standards; different types of first financial vouchers are automatically generated using machine learning algorithms according to the second business data, the business rule model and the account processing model; the generated first financial voucher is audited using knowledge graph technology and the audit opinion is output; the association between the business form data and the first financial voucher is established using blockchain technology to ensure data traceability throughout the entire process. This embodiment can reduce the cost of enterprise accounting processing and improve the quality and credibility of vouchers by intelligently acquiring business data sources and using cutting-edge technologies such as machine learning, knowledge graphs, and blockchain to achieve automatic and efficient generation of financial vouchers.
[0079] In some possible implementations of the present invention, the step of collecting business form data of different types of business forms, identifying the business form data using machine learning technology, and obtaining the first business data in the business form includes:
[0080] Scanning a paper business form using an image scanning device to obtain first business form data;
[0081] Using computer vision technology, identifying form layout data, frame line data, coordinate data, and text data in the first business form data;
[0082] In this step, a large number of different types of business form image samples can be collected first, and data can be annotated to obtain form frame coordinates, text position and other data; use the target detection model in deep learning (such as Faster R-CNN, SSD, etc.) to train the form frame detection model; use the segmentation model in the neural network (such as FCN, U-Net, etc.) to train the form pixel-level segmentation model; use the CRNN model constructed by convolutional neural network + recurrent neural network to train and recognize form text; input the form image (first business form data) into the trained detection model to obtain frame coordinates; input into the segmentation model to obtain pixel-level layout; input into the CRNN model to recognize text; post-process the recognition results, combine the layout, frame and text results, and output structured form data; based on the annotated data, evaluate the accuracy of the model in layout recognition, text recognition and other aspects; continue to add form sample data, incrementally train and adjust the model to improve recognition accuracy; deploy the optimized model to the form information extraction system to form a complete form image understanding process. Through the training and integration of deep learning models, the semantic parsing of business form images can be automatically realized to improve the efficiency of information extraction.
[0083] Annotating key information of the historical business form data to construct a training data set of form text;
[0084] It is understandable that the data collected from various business forms generated by the company over the years are unstructured form text data; by manually checking the form content, key business information (such as business type, transaction date, amount, transaction party, etc.) is found, and semantic annotation of the form text is performed around this key information, such as marking it with XML tags. The goal of annotation is to extract business entities and attributes in the text and know their location and meaning; the annotated form text forms a training data set, which contains the form text and the corresponding semantic annotation information; these annotated historical form text data can train the sequence annotation model to learn to perform structured extraction on similar forms; as the amount of form data accumulates, the annotated data set will continue to expand, which is conducive to improving the generalization ability of the model; through the annotation of historical data, the annotation work of new forms can be reduced and the data processing efficiency can be improved.
[0085] Use sequence annotation models in natural language processing technology (such as conditional random field models) to train a field extraction model for form text;
[0086] In this step, you can build a dictionary for form text annotation (including field types (date, amount, etc.), vocabulary, etc.) to provide a basis for feature extraction; use CRF++ and PyCRF libraries in Python to implement a sequence annotation model based on the conditional random field model; annotate the training data set in BIO encoding to indicate the start, middle, and end positions of the field; extract the form text's part of speech, length, position and other features, combine the dictionary features, and use them as model input; use the annotated data set to train the CRF model to learn the transition probability between text features and annotated labels; extract the same text features on the new form text and input the CRF model to predict the label sequence; parse the business field content in the form based on the predicted BIO label; improve the model's adaptability to changing fields by fine-tuning feature templates and model hyperparameters; build a model test set to evaluate the model's extraction F1 score and continuously optimize the model effect; deploy the model to achieve automatic field extraction and content parsing for the form. By learning the intrinsic structural information of the form text through the CRF sequence annotation model, you can achieve automatic extraction of custom fields.
[0087] Extract key information fields according to the field extraction model, combining the form layout data, the frame line data, and the coordinate data;
[0088] In this step, the frame coordinates, text position and other structured data of the form are obtained through OCR and layout analysis; the trained sequence annotation model is used to extract the fields of the natural language description text in the form; the frame coordinate data is aligned and combined with the text annotation results to locate the text segment describing each frame; according to the coordinate position of the frame, the text contained in it is extracted to obtain the text information corresponding to the frame; based on the field extraction results, the semantic label of the text in the frame is identified to determine the business meaning it represents; adjacent meaning-related frames are merged to construct business fields and obtain field names and contents; the coordinate positions of the identified business fields in the form are associated to form the extraction results of business information; the business fields of the form and their names, contents, and coordinate positions are output in JSON and other formats; the accuracy of information extraction is evaluated, and sample data is continuously added to improve the generalization ability of the model; the extraction results are fed back to the subsequent system to realize form understanding and business data storage. Through multi-model collaboration, the fusion analysis of multi-dimensional information of form images, texts, and layouts is realized to achieve the purpose of accurately locating the key fields of the form.
[0089] The first business data is identified according to the key information field and the text data.
[0090] In this step, in the form text, each key information field has been identified through the field extraction model; optical character recognition technology is used to identify all text content in the form; the text content is mapped to the corresponding key information field to form a complete field name and text value; according to the semantics of different fields, structured data such as date and amount in the text are extracted; for fields that cannot be directly mapped, rules or machine learning models are used for association inference to obtain the meaning of the field; finally, the mapping relationship between each business field and the extracted business data is formed; according to the predefined business data structure, the field Mapping is converted to a standard business data format. For example, "Invoice Date: 2021-10-22" is converted to a standard JSON structure {"invoice_date":"2021-10-22"}; the knowledge base is used to verify the correctness of the data for key fields and correct the recognition errors; finally, the structured first business data is output and stored in the back-end database; the gold standard of business data is constructed, the recognition quality is evaluated, and the recognition and conversion effects are continuously improved. Through the steps of recognition, mapping, conversion, and verification, the accurate conversion from complex forms to structured business data is achieved.
[0091] In this embodiment, it can also include: evaluating the extraction effect of the field extraction model, marking and correcting the misidentified fields, and continuously optimizing the model by increasing training data; using a collaborative filtering algorithm to learn information associations from massive form data to help parse difficult-to-identify fields; collecting electronic business form data (such as setting a standard input interface, defining data format specifications for different types of forms; supporting the upload and parsing of commonly used electronic form formats, such as Excel, PDF, etc.); verifying the standardization of uploaded data and realizing field mapping; for non-standard data, using natural language processing technology to parse; finally outputting standardized structured form data; using a continuous learning machine learning model to continuously optimize the accuracy of form recognition; supporting custom configuration of forms to guide the model to recognize specific forms.
[0092] In this embodiment, by combining image recognition and machine learning technology, intelligent collection of business form data can be effectively achieved.
[0093] In some possible implementations of the present invention, the step of parsing and standardizing the unstructured first business data using natural language processing technology to convert the first business data into structured second business data includes:
[0094] For the first unstructured business data, according to a predefined first data specification, the identified text fields are converted and normalized (for example, a unified format of date, amount, code, etc.) to obtain first business identification data;
[0095] In this step, define the data specification document and clarify the standard format of each field, such as the date field should be converted to the YYYY-MM-DD format; build a field conversion rule library based on the document to support conversion logic such as regular expressions and dictionary lookups; detect whether the field type needs to be converted for the identified unstructured data; implement the conversion of unstructured text to structured data according to the conversion logic in the rule library; use rule-based parsing or machine learning models for auxiliary conversion in cases where direct conversion is not possible; perform a normative check after conversion to ensure that the conversion result meets the predefined target data specification; if non-compliance is found, redesign the conversion rules for the field and continuously optimize; map and associate the converted structured data with the original unstructured business data to support traceability; evaluate the accuracy of the conversion, add standardized test cases, and improve robustness; and continuously maintain the specification document and conversion rule library to cope with the impact of business changes. By clarifying the specification requirements and converting them into executable conversion rules, the automation of unstructured data to structured data can be achieved.
[0096] For a portion of the first business data in which no fields can be identified, extract the first structured business data using a rule-based text parsing method;
[0097] In this embodiment, business data samples of unrecognizable fields are collected and annotated to find the grammatical and structural patterns therein; based on the annotation results, a rule-based text parsing template is designed to express common grammatical structured patterns; the parsing template is input into the parsing system in a configuration manner to support the extension of new templates; for unrecognized fields, the matching parsing templates are traversed to find templates that can be matched; according to the successfully matched templates, regular expressions are used to perform string segmentation and extraction; according to the semantics defined by the template, the business meaning of the segmented content is identified to form structured data; for fields that cannot successfully match the parsing template, an error is output, and new parsing rules need to be manually designed; the parsing success rate is evaluated, and new samples and parsing templates are continuously added to improve the recognition ability; it is merged with the previous field recognition results to form a complete first structured business data containing structured recognized fields and unrecognized fields; the parsing template is continuously iterated and optimized to reduce the need for manual design and realize the automatic parsing of long-tail fields. Through the use of parsing template configuration and rule engine technology, the limitations of the model that cannot recognize fields can be effectively supplemented and enhanced.
[0098] According to the business meanings of the different types of forms, the first business identification data and the first structured business data are recombined into a structured data set to obtain the second business data.
[0099] In this embodiment, the business data structure of different types of form templates is defined, and the meaning of the fields is expressed in the form of JSON schema, etc.; in the process of business data identification, the template type corresponding to the form is identified at the same time; according to the identified template type, the corresponding target data structure definition is loaded; the identified business keywords and text segments are mapped to the fields in the data structure template; for existing structured data, they are directly converted and filled into the field positions specified by the template; it is checked whether the required key fields in the data structure have been assigned values, and the prompts for unassigned values need to be filled manually; for different business form types, different verification rules are selected to verify the correctness of the data; the data remapped to the data structure is stored as a data set as input for subsequent processing; the mapping accuracy is evaluated, and mapping test cases are added to strengthen the robustness of the mapping engine; the data structure template is continuously optimized to enable it to adapt to changes in business models. By combining business meaning mapping and structured conversion, more unified and standardized processing of form data is achieved, and the subsequent utilization value is improved.
[0100] In this embodiment, the method may further include: outputting a normalized form data set and storing it in a database to facilitate subsequent business rule configuration and credential generation.
[0101] In this embodiment, by combining machine learning and rules, the standardized processing of unstructured form information is continuously improved, which can ensure the reasonable, accurate and efficient use of data.
[0102] In some possible implementations of the present invention, the step of generating multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data and historical enterprise accounting standards includes:
[0103] Preprocessing the text data of the historical business form data and the historical voucher data using natural language processing technology, extracting key information and marking data sources respectively, to obtain first key information;
[0104] Extracting a first form structured feature from the historical business form data;
[0105] Extracting a first voucher structured feature from the historical voucher data;
[0106] Using the historical enterprise accounting standards and the first key information, respectively marking the first form structured feature and the first voucher structured feature with a business rule label and an accounting processing method label;
[0107] Construct a deep learning framework, design a first convolutional neural network model, and use the first form structured features and the first voucher structured features to train the first convolutional neural network model to learn the mapping relationship between business data and business rules and accounting processing methods, and generate multiple business rule models and multiple accounting processing models respectively.
[0108] In this embodiment, the generation of business rule model and / or accounting processing model can be: by collecting a large amount of historical business form data and corresponding accounting processing voucher data; pre-processing the form and voucher data, extracting structured features for model learning, such as amount, date, business type, etc.; using frameworks such as TensorFlow and PyTorch to design the network structure of convolutional neural network; using form features and voucher features as inputs, connecting the fully connected layer to output predictions of business rules and accounting methods; training model parameters, and learning the feature mapping relationship between the two through the back propagation algorithm; collecting business data from different periods, training multiple models, and supporting different accounting standards; evaluating the accuracy of business rule extraction of the model on the validation set data; selecting models with good performance to save and deploy to the business rule reasoning system; using the model to output the corresponding business rules and accounting processing methods for the newly input business form data; continuously adding training data, incrementally adjusting the model, and optimizing the robustness of feature learning. Through the deep learning method driven by big data, the system can automatically perceive the inherent relationship between business and rules and realize intelligent business processing.
[0109] In this embodiment, it also includes: saving data and models from multiple periods to support processing logic under different accounting standards; loading the corresponding period model for newly input business data, outputting its business rules and recommended processing methods; evaluating model accuracy, using distillation and other techniques to improve the robustness of multiple models; and continuously optimizing the model to adapt to changes in corporate business and accounting standards.
[0110] In this embodiment, business rules are automatically learned from a large amount of historical data through deep learning, so that intelligent generation of business rule models and accounting processing models can be achieved.
[0111] In some possible implementations of the present invention, the following further aspects are included:
[0112] Use blockchain technology to build a decentralized business rule model storage structure to ensure the consistency of the business rule model configuration;
[0113] Adopt smart contracts to implement the modification transaction operation of the business rule model to ensure that historical records are traceable;
[0114] Using the digital signature of the enterprise-related personnel as the trigger condition for modifying the transaction operation to perform authority control;
[0115] Setting up a test environment in the blockchain network for business rule model verification to avoid misconfiguration;
[0116] After the business rule model configuration is successfully changed, it is automatically synchronized to the local cache database of each node;
[0117] The data collection system and the credential generation system are connected to the blockchain network to call the business rule model in real time.
[0118] In this embodiment, through the introduction of blockchain technology, the configuration process of the business rule model is controllable and transparent, effectively ensuring the compliance of financial voucher generation.
[0119] In some possible implementations of the present invention, the step of automatically generating different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model, and the account processing model includes:
[0120] generating an applicable first business rule according to the second business data and the business rule model;
[0121] In this step, you can find a matching pre-trained business rule model based on the type of the second business data; extract the feature fields in the second business data as the input of the model; run the business rule model, and output the recommended business rules applicable to the data of the business based on the business knowledge that the model has learned; the business rules can be conditional judgment logic for accounting processing, etc., given in the form of executable code; verify the business rules given by the model to ensure the correctness of the rules and avoid the generation of erroneous rules; output the business rules that pass the verification as the first business rule results; build a standardized business rule representation format to facilitate subsequent process calls; test the applicability of business rules on more business data and evaluate the breadth of coverage; and continuously optimize the business rule model to adapt to business changes and emerging business models. The purpose of automatically deriving applicable rules based on data is achieved through AI models, which improves the intelligence and flexibility of business processing.
[0122] Extracting the account-related data features of the second business data, and determining a matching first account processing solution in combination with the account processing model;
[0123] In this step, the second business data is parsed to extract the structured data features related to accounting, such as date, amount, currency, business classification, etc.; according to the name and value of the feature, it is converted into a standardized format accepted by the model input layer; the processed feature data is input into the input layer of the accounting processing model; the forward calculation of the accounting processing model is run, and the matching accounting processing code is output through the inherent extraction learning of the model; the accounting processing method corresponding to the query code is obtained to obtain the recommended accounting processing plan for the business data; the plan contains detailed information such as specific accounting subjects and accounting operation instructions; according to the internal accounting standards of the enterprise, the plan output by the model is verified twice; if the verification passes, the accounting processing plan is determined to be the first accounting processing plan; if it fails, the model needs to be modified or the processing flow needs to be customized again; the applicability of the accounting processing plan to more business cases is tested to evaluate the generalization ability of the model. By using AI models to assist in determining accounting processing plans, processing efficiency and correctness can be improved and manual workload can be reduced.
[0124] Inputting the second business data, the first business rule and the first accounting processing scheme into a preset voucher generation model (generated by using a machine learning algorithm); the voucher generation model generates a first voucher accounting text describing the business corresponding to the second business data;
[0125] In this step, the second business data is collected, and the matching first business rules and the first accounting processing scheme are generated through the aforementioned process; the above three parts are formatted and organized into the input data structure of the machine learning model; the pre-trained voucher text generation model based on LSTM and other methods is read; the input data is imported into the model, and the forward calculation process of the model is run; the model automatically generates the accounting processing text describing the business through the learned semantic parsing and writing knowledge; the generated text presents the business background and specific accounting operation content of the business; the accounting elements such as amount and account are parsed from the generated text through keyword extraction and other methods; the correctness of the text content and compliance with business rules and other requirements are verified; if the verification is passed, the text is determined to be the first voucher accounting text; the generated voucher accounting text describing the business is returned and input into the subsequent process to improve the voucher content. The purpose of automatically generating voucher accounting text is achieved through machine learning methods, reducing the workload of manual writing.
[0126] In combination with current enterprise accounting standards, the formatted structured data of the first voucher account text is supplemented to obtain the first financial voucher.
[0127] In this embodiment, by calling the pre-trained model and loading the latest business data, different types of financial vouchers can be automatically generated.
[0128] In some possible implementations of the present invention, the following further aspects are included:
[0129] Build a standard voucher template library (including the framework format of various vouchers);
[0130] Based on the form data set, the rule engine is called to execute the configured business rules to decide which voucher template to select;
[0131] Use the sequence-to-sequence model in machine learning to read the form data and generate voucher text described in natural language;
[0132] Combined with enterprise accounting standards, automatically generate necessary structured data for vouchers (such as number, date, etc.);
[0133] Integrate the generated text description and structured data into the voucher template to assemble a complete voucher;
[0134] Support configuration and expansion of new voucher templates to adapt to more business scenarios;
[0135] Check the generated results to ensure compliance with accounting standards and business rules;
[0136] Continuously collect feedback data and apply reinforcement learning algorithms to optimize the decision model for credential generation;
[0137] Output various electronic certificates generated, store them in the database, and associate them with the original business data.
[0138] In this embodiment, the automation level of credential generation is greatly improved through the integrated application of AI and rule engine technology.
[0139] In some possible implementations of the present invention, the step of using the knowledge graph technology to review the generated first financial voucher and outputting a review opinion includes:
[0140] Acquire accounting-related knowledge data and construct an accounting knowledge graph (including structured knowledge such as accounting standards and industry norms);
[0141] Using natural language processing technology, extracting a text description from the generated first financial voucher;
[0142] Associating and querying the text description with accounting rules in the accounting knowledge graph to check whether the first financial voucher complies with the rules;
[0143] Generate an audit report based on the inspection results, identifying abnormalities and non-conformities;
[0144] Outputting audit opinions according to the audit report.
[0145] In this embodiment, the application of knowledge graph technology can greatly improve the automation and efficiency of credential review.
[0146] In some possible implementations of the present invention, the following further aspects are included:
[0147] Combined with historical financial data, verify the rationality of the key data of the first financial voucher (such as the rationality of time and amount);
[0148] Analyzing the matching of the internal data of the first financial voucher using a machine learning model;
[0149] Build a business rule verification engine to verify whether the first financial voucher meets the requirements of the business rules.
[0150] In this embodiment, the comprehensive use of AI technologies such as rule engines can greatly improve the automation and efficiency of credential review.
[0151] In some possible implementations of the present invention, the step of using blockchain technology to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process includes:
[0152] Designing a matching relationship between the form digital identity identifier of the form data and the voucher digital identity identifier of the financial voucher that have a corresponding relationship on the blockchain;
[0153] When the business form data is uploaded, the digital identity and metadata of the first form are written into the blockchain;
[0154] When generating the first financial voucher, assigning a first voucher digital identity to it, and writing the first voucher digital identity and the first form digital identity of the business form data based on the first financial voucher to the blockchain;
[0155] Through the smart contract and the matching relationship, the first matching relationship between the first form digital identity identifier and the first certificate digital identity identifier is verified.
[0156] In this embodiment, it is also possible to: embed the address metadata of its blockchain record in the credential data; design a traceable query interface, input the credential digital identity, and return the form digital identity based on which it was generated; query the blockchain to obtain the form's upload time, operator and other meta-information based on the form digital identity; upload form data and generate credential operations require digital signatures to ensure the authenticity of the operation; display the life cycle of business data and credentials on the blockchain browser to prove the traceability process; the immutability of blockchain data effectively ensures the authenticity and reliability of traceable queries.
[0157] In this embodiment, technical guarantees for the traceability of business data and credentials can be achieved through metadata management and smart contracts of the blockchain.
[0158] See also Figure 2 ,Another embodiment of the present invention provides a financial voucher generation device based on business form data, comprising: a data acquisition module, a data standardization module, a model generation module, a voucher generation module, an audit module and a data association module;
[0159] The data collection module is used to collect business form data of different types of business forms (through image scanning or a specified interface), and identify the business form data using machine learning technology to obtain the first business data in the business form;
[0160] The data standardization module is used to parse and standardize the unstructured first business data by using natural language processing technology, and convert the first business data into structured second business data;
[0161] The model generation module is used to generate multiple business rule models and multiple accounting processing models (a decentralized configuration solution based on blockchain may be adopted) according to historical business form data, historical voucher data and historical enterprise accounting standards;
[0162] The voucher generation module is used to automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model (which may be generated based on enterprise accounting standards);
[0163] The audit module is used to audit the generated first financial voucher using knowledge graph technology and output an audit opinion;
[0164] The data association module is used to establish an association between the business form data and the first financial voucher using blockchain technology to ensure data traceability throughout the entire process.
[0165] In this embodiment, by intelligently acquiring business data sources and applying cutting-edge technologies such as machine learning, knowledge graphs, and blockchain, automatic and efficient financial voucher generation is achieved, thereby reducing corporate accounting processing costs and improving voucher quality and credibility.
[0166] It should be known that Figure 2 The block diagram of the financial voucher generation device based on business form data is only for illustration, and the number of modules shown therein does not limit the protection scope of the present invention.
[0167] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0170] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0172] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.
[0173] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a magnetic disk or an optical disk, etc.
[0174] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0175] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions without departing from the spirit and scope of the present invention, and can make various changes and modifications, including the combination of the above-mentioned different functions and implementation steps, including software and hardware implementation methods, all of which are within the scope of protection of the present invention.
Claims
1. A method for generating financial vouchers based on business form data, It is characterized in that include: Collecting business form data of different types of business forms, and identifying the business form data using machine learning technology to obtain first business data in the business form; Parsing and standardizing the unstructured first business data using natural language processing technology to convert the first business data into structured second business data; Generate multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data and historical enterprise accounting standards; Automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model; Using knowledge graph technology to review the first generated financial voucher and output review opinions; Using blockchain technology to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process; The step of collecting business form data of different types of business forms, identifying the business form data using machine learning technology, and obtaining the first business data in the business form includes: Scanning a paper business form using an image scanning device to obtain first business form data; Using computer vision technology, identifying form layout data, frame line data, coordinate data, and text data in the first business form data; Annotating key information of the historical business form data to construct a training data set of form text; Use the sequence labeling model in natural language processing technology to train a field extraction model for form text; Extract key information fields according to the field extraction model, combining the form layout data, the frame line data, and the coordinate data; identifying the first business data according to the key information field and the text data; The step of generating multiple business rule models and multiple accounting processing models according to historical business form data, historical voucher data and historical enterprise accounting standards includes: Preprocessing the text data of the historical business form data and the historical voucher data using natural language processing technology, extracting key information and marking data sources respectively, to obtain first key information; Extracting a first form structured feature from the historical business form data; Extracting a first voucher structured feature from the historical voucher data; Using the historical enterprise accounting standards and the first key information, respectively marking the first form structured feature and the first voucher structured feature with a business rule label and an accounting processing method label; Constructing a deep learning framework, designing a first convolutional neural network model, using the first form structured features and the first voucher structured features to respectively train the first convolutional neural network model to learn the mapping relationship between business data and business rules and accounting processing methods, and respectively generating multiple business rule models and multiple accounting processing models; The step of automatically generating different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model includes: outputting a recommended business rule applicable to the second business data according to the second business data and the business rule model; verifying the recommended business rule, and outputting the recommended business rule after verification as the first business rule; Extracting the account-related data features of the second business data, inputting the account processing model, and outputting the matching account processing code; querying the account processing method corresponding to the account processing code as the recommended account processing scheme for the second business data, and performing a secondary verification on the recommended account processing scheme according to the internal accounting standards of the enterprise; if the verification passes, determining that the recommended account processing scheme is the first account processing scheme; Inputting the second business data, the first business rules and the first accounting processing scheme into a preset voucher generation model; The voucher generation model generates a first voucher account text describing the business corresponding to the second business data; In combination with current enterprise accounting standards, the formatted structured data of the first voucher account text is supplemented to obtain the first financial voucher.
2. The method for generating financial vouchers based on business form data according to claim 1, It is characterized in that The step of parsing and standardizing the unstructured first business data by using natural language processing technology to convert the first business data into structured second business data includes: For the first unstructured business data, according to a predefined first data specification, the identified text field is converted and normalized to obtain first business identification data; For a portion of the first business data in which no fields can be identified, extract the first structured business data using a rule-based text parsing method; According to the business meanings of the different types of forms, the first business identification data and the first structured business data are recombined into a structured data set to obtain the second business data.
3. The method for generating financial vouchers based on business form data according to claim 2, It is characterized in that Also includes: Use blockchain technology to build a decentralized business rule model storage structure to ensure the consistency of the business rule model configuration; Adopt smart contracts to implement the modification transaction operation of the business rule model to ensure that historical records are traceable; Using the digital signature of the enterprise-related personnel as the trigger condition for modifying the transaction operation to perform authority control; Setting up a test environment in the blockchain network for business rule model verification to avoid misconfiguration; After the business rule model configuration is successfully changed, it is automatically synchronized to the local cache database of each node; The data collection system and the credential generation system are connected to the blockchain network to call the business rule model in real time.
4. The method for generating financial vouchers based on business form data according to claim 3, It is characterized in that The step of using the knowledge graph technology to review the generated first financial voucher and outputting a review opinion includes: Acquire accounting-related knowledge data and build an accounting knowledge graph; Using natural language processing technology, extracting a text description from the generated first financial voucher; Associating and querying the text description with accounting rules in the accounting knowledge graph to check whether the first financial voucher complies with the rules; Generate an audit report based on the inspection results, identifying abnormalities and non-conformities; Outputting audit opinions according to the audit report.
5. The method for generating financial vouchers based on business form data according to claim 4, It is characterized in that Also includes: Combined with historical financial data, verify the rationality of the key data of the first financial voucher; Analyzing the matching of the internal data of the first financial voucher using a machine learning model; Build a business rule verification engine to verify whether the first financial voucher meets the requirements of the business rules.
6. The method for generating financial vouchers based on business form data according to claim 5, It is characterized in that The step of using blockchain technology to establish an association between the business form data and the first financial voucher to ensure data traceability throughout the entire process includes: Designing a matching relationship between the form digital identity identifier of the form data and the voucher digital identity identifier of the financial voucher that have a corresponding relationship on the blockchain; When the business form data is uploaded, the first form digital identity and metadata are written to the blockchain; When generating the first financial voucher, assigning a first voucher digital identity to it, and writing the first voucher digital identity and the first form digital identity of the business form data based on the first financial voucher to the blockchain; Through the smart contract and the matching relationship, the first matching relationship between the first form digital identity identifier and the first certificate digital identity identifier is verified.
7. A financial voucher generation device based on business form data, It is characterized in that include: Data collection module, data standardization module, model generation module, credential generation module, audit module and data association module; The data collection module is used to collect business form data of different types of business forms, and identify the business form data using machine learning technology to obtain the first business data in the business form; The data standardization module is used to parse and standardize the unstructured first business data by using natural language processing technology, and convert the first business data into structured second business data; The model generation module is used to generate multiple business rule models and multiple accounting processing models based on historical business form data, historical voucher data and historical enterprise accounting standards; The voucher generation module is used to automatically generate different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model; The audit module is used to audit the generated first financial voucher using knowledge graph technology and output an audit opinion; The data association module is used to establish an association between the business form data and the first financial voucher using blockchain technology to ensure data traceability throughout the entire process; The step of collecting business form data of different types of business forms, identifying the business form data using machine learning technology, and obtaining the first business data in the business form includes: Scanning a paper business form using an image scanning device to obtain first business form data; Using computer vision technology, identifying form layout data, frame line data, coordinate data, and text data in the first business form data; Annotating key information of the historical business form data to construct a training data set of form text; Use the sequence labeling model in natural language processing technology to train a field extraction model for form text; Extract key information fields according to the field extraction model, combining the form layout data, the frame line data, and the coordinate data; identifying the first business data according to the key information field and the text data; The step of generating multiple business rule models and multiple accounting processing models according to historical business form data, historical voucher data and historical enterprise accounting standards includes: Preprocessing the text data of the historical business form data and the historical voucher data using natural language processing technology, extracting key information and marking data sources respectively, to obtain first key information; Extracting a first form structured feature from the historical business form data; Extracting a first voucher structured feature from the historical voucher data; Using the historical enterprise accounting standards and the first key information, respectively marking the first form structured feature and the first voucher structured feature with a business rule label and an accounting processing method label; Constructing a deep learning framework, designing a first convolutional neural network model, using the first form structured features and the first voucher structured features to respectively train the first convolutional neural network model to learn the mapping relationship between business data and business rules and accounting processing methods, and respectively generating multiple business rule models and multiple accounting processing models; The step of automatically generating different types of first financial vouchers using a machine learning algorithm according to the second business data, the business rule model and the account processing model includes: outputting a recommended business rule applicable to the second business data according to the second business data and the business rule model; verifying the recommended business rule, and outputting the recommended business rule after verification as the first business rule; Extracting the account-related data features of the second business data, inputting the account processing model, and outputting the matching account processing code; querying the account processing method corresponding to the account processing code as the recommended account processing scheme for the second business data, and performing a secondary verification on the recommended account processing scheme according to the internal accounting standards of the enterprise; if the verification passes, determining that the recommended account processing scheme is the first account processing scheme; Inputting the second business data, the first business rules and the first accounting processing scheme into a preset voucher generation model; The voucher generation model generates a first voucher account text describing the business corresponding to the second business data; In combination with current enterprise accounting standards, the formatted structured data of the first voucher account text is supplemented to obtain the first financial voucher.
Citation Information
Cited By
Methods for extracting OCR data from purchase and sales invoices or other vouchers
TWI879700B
Biofuel compliance manager
WO2026185448A1
