An electronic voucher data application method and system based on intelligent association graph
Through intelligent correlation graph technology, electronic voucher data is automatically processed and managed, which solves the problems of low manual efficiency and data matching accuracy in the existing technology, and achieves efficient and accurate data entry and management.
Patent Information
- Application Number
- CN202410661530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-27
AI Technical Summary
In the existing technology, employees need to manually download and fill in financial documents when using electronic vouchers to handle related matters, resulting in low manual efficiency and difficulty in ensuring the accuracy of data integration and matching.
Using a method based on intelligent correlation graphs, graph nodes are formed by obtaining electronic voucher data, and input into the preset correlation graph for reconstruction, and the correlation value between the node and the original node is calculated. If the correlation value is greater than the preset value , it is automatically entered into the report to realize automatic processing and management of data.
It improves the efficiency of automated processing and management of electronic voucher data, reduces manual intervention, improves the accuracy and efficiency of data entry, saves manual entry and verification time, and prevents data entry errors and omissions.
Smart Images

Figure CN118229441B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to an electronic voucher data application method and system based on an intelligent association graph. Background Art
[0002] Electronic accounting documents include electronic invoices, railway electronic tickets, air transport electronic itineraries, electronic non-tax payment documents, and other documents issued by banks, such as electronic bank receipts and electronic bank statements. Employees of various companies can use electronic documents to make reimbursements, enter accounts, reconcile accounts, and other related matters in the financial system. At present, when employees use electronic documents to handle related matters, they usually need to manually download electronic documents, and then fill in the information in the electronic documents into financial documents such as forms and documents, and then upload the financial documents and electronic documents to the company's financial system. For example, download electronic documents from banks, third-party institutions, or official platforms that provide electronic documents, and then fill in financial documents such as reports and reimbursement forms, and then upload the financial documents and electronic documents to the company's financial system. In the existing technology, employees are required to fill in and upload by themselves. At the same time, when editing different financial documents, financial personnel still need to integrate and adjust the data, resulting in low manual efficiency.
[0003] The Chinese patent with the publication number CN110503537A discloses a financial accounting data intelligent matching method and system, which is used for training and predictive matching of original information content, including a word feature extraction module, an invoice feature extraction module, a subject feature extraction module, an attention network module and a fully connected network layer module. The original information content transmits information to the word feature extraction module, and the original information content includes original bill information and company subject information; the original invoice voucher and subject information obtained from the financial system are used, and the deep neural network is used for training and learning to achieve intelligent matching. The word feature extraction module is connected to the invoice feature extraction module data, and the word feature extraction module is connected to the subject feature extraction module data; it is difficult to ensure the matching accuracy by only using semantic matching. To this end, the present invention proposes an electronic voucher data application method and system based on intelligent association graph. Summary of the invention
[0004] In view of the technical problems existing in the prior art, the present invention provides an electronic voucher data application method and system based on an intelligent association graph.
[0005] The technical solution of the present invention to solve the above technical problems is as follows: An electronic voucher data application method based on intelligent association graph comprises the following steps:
[0006] S1: Obtain electronic voucher data and enter the electronic voucher data into the financial system;
[0007] S2: extracting the electronic voucher data and forming a graph node;
[0008] S3: inputting the graph nodes into a preset association graph to form a reconstructed association graph;
[0009] S4: Calculate the correlation value between the graph node and the original graph node;
[0010] S5: If the associated value is greater than a preset value, the electronic voucher data is entered into the report corresponding to the original graph node.
[0011] Furthermore, in the electronic voucher data application method based on intelligent association graph, the acquisition of electronic voucher data includes collecting data of paper bills through OCR recognition and generating corresponding electronic voucher data.
[0012] Furthermore, the electronic voucher data application method based on the intelligent association graph extracts the electronic voucher data including:
[0013] Obtain the text data in the electronic voucher and input the text data into the encoder:
[0014] For an input text data S, the encoder represents the features of each word in the text data as follows;
[0015] ;
[0016] ;
[0017] in The input representation of the nth word includes the sum of the word embedding, position embedding and segment embedding. Represents the hidden state of the nth word;
[0018] Use the encoder to learn the feature information about the main entity and the object entity in the word respectively:
[0019] ;
[0020] ;
[0021] in, and They represent the nth feature representation of the main entity and the guest entity in the input text data, respectively. and denote the training parameters in the perception process of the main entity and the guest entity respectively, and It is the bias term in the perception process of the main entity and the object entity.
[0022] Furthermore, the electronic voucher data application method based on the intelligent association graph classifies different words through the attention mechanism:
[0023] For the feature representation of the nth word about the main entity and the feature representation of the mth word about the guest entity, calculate the word pair The score vector of :
[0024] ;
[0025] in, and They represent the trainable parameters, Represents the concatenation of two feature information, b is the bias term; after obtaining the score vector, the category is predicted based on the defined relationship set:
[0026] ;
[0027] k represents the kth relationship, Represents the category distribution probability under the kth relationship;
[0028] The electronic voucher data is extracted from the encoder in a comprehensive manner:
[0029] ;
[0030] Where N is the total number of words, K is the total number of relations, It represents the category of the word pair under the kth relationship, and log is the logarithmic operation.
[0031] Furthermore, in the electronic voucher data application method based on the intelligent association graph, in the step of inputting the graph node into a preset association graph to form a reconstructed association graph, a single piece of attribute information of the graph node in the reconstructed association graph includes:
[0032] ;
[0033] in, and Entity The attributes and attribute values of and Yes and Mapping vector mapped to the unified vector space; all attribute values are merged through the aggregation function to obtain the entity The attribute information indicates:
[0034] ;
[0035] AGG is an aggregate function. Representing Entities A collection of all property values.
[0036] Furthermore, in the electronic voucher data application method based on the intelligent association graph, the step of calculating the association value between the graph node and the original graph node includes:
[0037] The graph nodes are represented by triples: , the original graph nodes are set to: :
[0038] ;
[0039] Among them, I is the attribute value association value, p represents the attribute value set, Representing Entities and Shared property values, Is Entity and Shared property values, Is the number of elements in a set.
[0040] An electronic voucher data application system based on intelligent association graph is applied to the above-mentioned electronic voucher data application method based on intelligent association graph, and the system includes:
[0041] Acquisition unit: acquires electronic voucher data and enters the electronic voucher data into the financial system;
[0042] Extraction unit: extract the electronic voucher data and form a graph node;
[0043] Input unit: input the graph nodes into a preset association graph to form a reconstructed association graph;
[0044] Calculation unit: calculates the association value between the graph node and the original graph node;
[0045] Judgment unit: If the associated value is greater than a preset value, the electronic voucher data is entered into the report corresponding to the original graph node.
[0046] The beneficial effects of the present invention are:
[0047] Automated processing: Through extraction algorithms and association graph technology, the electronic voucher data can be automatically processed and managed, reducing manual intervention and operations, and improving efficiency and accuracy;
[0048] Data relationship visualization: converting electronic voucher data into graph nodes, so that users can intuitively view the relationship and dependency between entities, which is conducive to data understanding and analysis, and makes it easier to find the connection between data;
[0049] By matching associated values, electronic voucher data is automatically entered into related reports, saving time on manual entry and verification, while preventing data entry errors and omissions. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 It is a flow chart of the electronic voucher data application method based on the intelligent association graph of the present invention;
[0051] Figure 2 It is a schematic diagram of the electronic voucher data application system based on the intelligent association graph of the present invention.
[0052] Figure 3 is a schematic diagram of an association map in an embodiment of the present invention;
[0053] Figure 4 Schematic diagram of the association map in the embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.
[0055] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, "plurality" means two or more, unless otherwise clearly and specifically defined.
[0056] In the description of the present application, the term "for example" is used to mean "used as an example, illustration or description". Any embodiment described as "for example" in the present application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any technician in the field to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes will not be elaborated in detail to avoid unnecessary details to obscure the description of the present invention. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in the present application.
[0057] An electronic voucher data application method based on intelligent association graph includes the following steps:
[0058] S1: Obtain electronic voucher data and enter the electronic voucher data into the financial system; specifically: electronic voucher data includes various financial vouchers such as invoices, receipts, contracts, etc. These electronic voucher data are stored in the financial system and applied in the financial system.
[0059] S2: extracting the electronic voucher data and forming graph nodes; specifically: in the electronic voucher data, graph nodes can represent different entities, such as accounts, transactions, dates, etc., and the attributes of these entities may include account balances, transaction amounts, date and time, etc.; by organizing these entities and attributes in the form of graph nodes, the relationships and dependencies between them can be more clearly displayed, thereby better performing data analysis and application.
[0060] S3: inputting the graph nodes into a preset association graph to form a reconstructed association graph; specifically: after receiving new electronic voucher data, the original association graph in the financial system generates a new graph part with the electronic voucher data and the original association graph.
[0061] S4: Calculate the association value between the graph node and the original graph node; specifically: represent the association between the entity in the electronic voucher data and the original graph node according to the association value, and determine whether the two have an affiliation relationship.
[0062] S5: If the associated value is greater than a preset value, the electronic voucher data is entered into the report corresponding to the original graph node.
[0063] In this embodiment, the preset association map is the association map between various financial data in the financial system. The association maps are different according to different attributes and different entities. At the same time, according to the data at each level in the financial system, the degree of subdivision of the association map is different. After entering new electronic voucher data into the financial system, the association map will change and be inserted into the association map according to the relationship at different levels, such as Figure 3 and Figure 4 shown.
[0064] In a specific embodiment, an electronic reimbursement invoice including invoice number, date, amount, commodity name and other information is entered into the financial system. The system uses an extraction algorithm to decompose the information of the electronic invoice into keywords and entities, and form graph nodes. For example, the invoice number is used as a node, the date is used as a node, the amount and the commodity name are used as nodes respectively, and a connection is established between them to represent the relationship between them. The main entity of the invoice is input as an entity into the preset association graph, and the system reorganizes the connection of these nodes to form a more structured association graph. If the system needs to make a monthly reimbursement table, the association value between the electronic invoice node and the node in the monthly reimbursement table is calculated according to the time association graph to determine whether it is associated with the monthly reimbursement table. If the calculated association value meets the preset matching standard, the system can automatically match this electronic reimbursement invoice to the monthly reimbursement table, and fill in the amount, commodity name and other information according to the graph relationship to complete the automatic generation of the report; the financial system can match the electronic invoice data with the reimbursement table data more quickly and accurately, realize the automatic processing and management of financial data, and improve work efficiency and accuracy.
[0065] In this embodiment, the acquisition of electronic voucher data includes collecting data on paper bills through OCR recognition and generating corresponding electronic voucher data. Here, the electronic voucher data not only includes electronic data obtained online, but also can directly input paper electronic vouchers into the financial system through existing OCR recognition technology. Here, the recognition and data extraction of paper bills are existing technologies.
[0066] In one embodiment, extracting the electronic credential data includes:
[0067] Obtain text data in the electronic voucher, and input the text data into an encoder, where the encoder uses a BERT pre-trained language model to classify the text data. BERT is a text representation model that is constructed by a multi-layer bidirectional Ttansformer;
[0068] For an input text data S, the encoder represents the features of each word in the text data as follows;
[0069] ;
[0070] ;
[0071] in The input representation of the nth word includes the sum of the word embedding, position embedding and segment embedding. Represents the hidden state of the nth word;
[0072] The encoder is used to learn the feature information of the main entity and the guest entity in the word respectively. The encoder includes two multi-layer perceptrons, namely the main entity perceptron and the guest entity perceptron, to respectively learn the main entity and the guest entity:
[0073] ;
[0074] ;
[0075] in, and They represent the nth feature representation of the main entity and the guest entity in the input text data, respectively. and denote the training parameters in the perception process of the main entity and the guest entity respectively, and It is the bias term in the perception process of the main entity and the object entity.
[0076] Here, the Biaffine attention mechanism is used to classify different words:
[0077] For the feature representation of the nth word about the main entity and the feature representation of the mth word about the guest entity, calculate the word pair The score vector of :
[0078] ;
[0079] in, and They represent the trainable parameters, Represents the concatenation of two feature information, b is the bias term; after obtaining the score vector, the category is predicted based on the defined relationship set:
[0080] ;
[0081] k represents the kth relationship, Represents the category distribution probability under the kth relationship;
[0082] The electronic voucher data is extracted from the encoder in a comprehensive manner:
[0083] ;
[0084] Where N is the total number of words, K is the total number of relations, It represents the category of the word pair under the kth relationship, and log is the logarithmic operation.
[0085] In a specific embodiment, suppose there is an electronic invoice containing the following information: the invoice number is GHI789, the date is November 1, 2022, the total amount is 3,000 yuan, and the name of the purchased product is office furniture. Then this invoice involves the company's procurement expenses, and the specific analysis process of its category is: the system obtains its text data from the electronic invoice, and processes the text data according to the encoder. The encoder performs feature recognition on each word and number, and the main entity perceptron and the guest entity perceptron will learn to extract the feature information of the product type and amount, such as extracting the product type from "office furniture" and extracting the procurement cost from the corresponding amount, thereby realizing the extraction of graph nodes in the electronic invoice.
[0086] In one embodiment, in the step of inputting the graph node into a preset association graph to form a reconstructed association graph, a single piece of attribute information of the graph node in the reconstructed association graph includes:
[0087] ;
[0088] in, and Entity The attributes and attribute values of and Yes and Mapping vector mapped to the unified vector space; all attribute values are merged through the aggregation function to obtain the entity The attribute information indicates:
[0089] ;
[0090] AGG is an aggregate function. Representing Entities A collection of all property values.
[0091] The step of calculating the association value between the graph node and the original graph node includes:
[0092] The graph nodes are represented by triples: , the original graph nodes are set to: :
[0093] ;
[0094] Among them, I is the attribute value association value, p represents the attribute value set, Representing Entities and Shared property values, Is Entity and Shared property values, Is the number of elements in a set.
[0095] An electronic voucher data application system based on intelligent association graph is applied to the above-mentioned electronic voucher data application method based on intelligent association graph, and the system includes:
[0096] Acquisition unit: acquires electronic voucher data and enters the electronic voucher data into the financial system;
[0097] Extraction unit: extract the electronic voucher data and form a graph node;
[0098] Input unit: input the graph nodes into a preset association graph to form a reconstructed association graph;
[0099] Calculation unit: calculates the association value between the graph node and the original graph node;
[0100] Judgment unit: If the associated value is greater than a preset value, the electronic voucher data is entered into the report corresponding to the original graph node.
[0101] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0102] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An electronic voucher data application method based on intelligent association graph, characterized in that: The following steps are involved: S1: Obtain electronic voucher data and enter the electronic voucher data into the financial system; S2: extracting the electronic voucher data and forming a graph node; S3: inputting the graph nodes into a preset association graph to form a reconstructed association graph; S4: Calculate the correlation value between the graph node and the original graph node; S5: If the correlation value is greater than the preset value, the electronic voucher data is entered into the report corresponding to the original graph node; Extracting the electronic voucher data includes: Obtain the text data in the electronic voucher and input the text data into the encoder: For an input text data S, the encoder represents the features of each word in the text data as follows; ; ; in The input representation of the nth word includes the sum of the word embedding, position embedding and segment embedding. Represents the hidden state of the nth word; Use the encoder to learn the feature information about the main entity and the object entity in the word respectively: ; ; in, and They represent the nth feature representation of the main entity and the guest entity in the input text data, respectively. and denote the training parameters in the perception process of the main entity and the guest entity respectively, and It is the bias term in the perception process of the subject entity and the object entity; In the step of inputting the graph node into a preset association graph to form a reconstructed association graph, a single piece of attribute information of the graph node in the reconstructed association graph includes: ; in, and Entity The attributes and attribute values of and Yes and Mapping vector mapped to the unified vector space; all attribute values are merged through the aggregation function to obtain the entity The attribute information indicates: ; AGG is an aggregate function. Representing Entities A collection of all property values.
2. According to claim 1, the electronic voucher data application method based on intelligent association graph is characterized in that: The obtaining of electronic voucher data includes collecting data of paper bills through OCR recognition and generating corresponding electronic voucher data.
3. According to claim 1, the electronic voucher data application method based on intelligent association graph is characterized in that: Classify different words through the attention mechanism: For the feature representation of the nth word about the main entity and the feature representation of the mth word about the guest entity, calculate the word pair The score vector of : ; in, and They represent the trainable parameters, Represents the concatenation of two feature information, b is the bias term; after obtaining the score vector, the category is predicted based on the defined relationship set: ; k represents the kth relationship, Represents the category distribution probability under the kth relationship; The electronic voucher data is extracted from the encoder in a comprehensive manner: ; Where N is the total number of words, K is the total number of relations, It represents the category of the word pair under the kth relationship, and log is the logarithmic operation.
4. The electronic voucher data application method based on intelligent association graph according to claim 1 is characterized in that: The step of calculating the association value between the graph node and the original graph node includes: The graph nodes are represented by triples: , the original graph nodes are set to: : ; Among them, I is the attribute value association value, p represents the attribute value set, Representing Entities and Shared property values, Is Entity and Shared property values, Is the number of elements in a set.
5. An electronic voucher data application system based on intelligent association graph, characterized in that: An electronic voucher data application method based on an intelligent association graph as described in any one of claims 1 to 4, the system comprising: Acquisition unit: acquires electronic voucher data and enters the electronic voucher data into the financial system; Extraction unit: extract the electronic voucher data and form a graph node; Input unit: input the graph nodes into a preset association graph to form a reconstructed association graph; Calculation unit: calculates the association value between the graph node and the original graph node; Judgment unit: If the associated value is greater than a preset value, the electronic voucher data is entered into the report corresponding to the original graph node.
Citation Information
Patent Citations
Financial accounting data intelligent matching method and system
CN110503537A
Intelligent reimbursement method
CN110046978A
Case reasoning method based on dynamic knowledge representation learning
CN110956254A
Keyword generation method based on heterogeneous associated subgraph
CN114840633A
Digital resource component multi-dimensional mapping system and method based on graph association and fusion
CN116340545A
