A multi-dimensional evaluation method for verifying the effect of a document recognition
By evaluating the document recognition system using a multi-dimensional verification method, the problem of insufficient evaluation in existing systems is solved, and the document recognition effect is comprehensively improved and the system iteration is accelerated.
Patent Information
- Application Number
- CN202211151260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-21
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-09-21
AI Technical Summary
Existing document recognition systems lack comprehensive evaluation methods, leading to missed and incorrect recognition issues, making it difficult to quickly locate and accelerate the system's self-upgrade and iteration.
A multi-dimensional verification method is adopted, including entity-level and document-level scoring modules. It conducts a comprehensive evaluation by combining multiple dimensions such as keyword verification, compliance verification, fill rate verification, location verification, and distribution verification with the scoring module.
It enables multi-dimensional and comprehensive verification of document recognition results, improves recognition accuracy, and can quickly filter out uncommon documents and accelerate system iteration and optimization.
Smart Images

Figure CN115587586B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of document recognition performance evaluation methods, and in particular to a multi-dimensional verification method for evaluating document recognition performance. Background Technology
[0002] Document recognition technology has wide applications in various fields of daily production. A good document recognition system can reduce repetitive labor and greatly improve enterprise efficiency. However, there are currently very few document recognition systems on the market that can be used across all fields. Even customized document recognition systems developed for specific fields may have problems such as missed recognition and incorrect recognition. While various document recognition systems exist, there are very few evaluation methods for these systems. Therefore, a comprehensive and multi-dimensional evaluation method for verifying document recognition performance is particularly important for quickly identifying problems in existing document recognition systems and accelerating their self-upgrading and iteration. Summary of the Invention
[0003] The purpose of this invention is to provide a method for evaluating the recognition effect of multidimensional verification documents in order to solve the above-mentioned problems.
[0004] To achieve the above objectives, the present invention adopts the following technical solution:
[0005] A method for evaluating the effectiveness of multi-dimensional document recognition includes an entity-level scoring module, a document-level scoring module, and a scoring module. The entity-level scoring module can be divided into verification logic for general entities and verification logic for specific entities, involving the following dimensions:
[0006] (1) Keyword verification of entity content. Some entity content often involves certain high-frequency words, so a keyword dictionary is maintained for different entities. Hitting high-frequency keywords will add points to the score.
[0007] (2) Compliance verification of entity content mainly targets numerical entities, such as date and number types. Verification will be performed based on the length and range of the numerical value. If the value falls within a reasonable range, points will be added to the score; otherwise, the dimension will be scored as 0.
[0008] (3) Entity fill rate verification: Fill rate = area of the rectangle formed by the coordinates of individual entity text / area of the rectangle formed by the outermost coordinates of the entire entity block. The fill rate varies for different entities. By statistically analyzing the entities in the corpus, a reasonable range of fill rates can be obtained. This dimension can quickly verify entities that are incorrectly identified or relatively scattered.
[0009] (4) Validation of the cell location of the entity: The same entity tends to be located in the same cell or adjacent cells. By statistically analyzing the attributes of the cells where different entities are located, documents containing cells, such as Excel, can be validated.
[0010] (5) Entity line number verification: Affected by entity attributes and document type layout, the length of entity content has a certain regularity. This dimension can quickly filter out related entities with multiple recognitions or uncommon content lengths.
[0011] (6) Heat map verification of entity distribution: There are certain regularities in the version production of documents in different industries. Due to the influence of page layout, the distribution of entities in the document also has certain regularities.
[0012] (7) Other types of validation are customized for field types, and customized validation logic has been developed for some entities based on the industry background of the entity.
[0013] Preferably, the document level scoring module mainly evaluates the document from aspects such as overall layout and key content, aiming to identify documents with uncommon layouts and content compositions. The relevant evaluation mainly involves the following dimensions:
[0014] (1) Verification of the number of entities identified in the whole document. There is a regularity in the number of entities involved in the same type of document. This dimension can quickly verify the entity missed recall situation.
[0015] (2) Key field validation: From the perspective of the entire document, some high-frequency words are validated;
[0016] (3) Entity position relationship verification: Different entity types have certain vertical or horizontal position relationships in the layout. By statistically analyzing the relative position relationships of entities in the corpus, some high-frequency entity relationships with strong position relationships are verified.
[0017] (4) Keyword distribution verification: Similar to entity distribution, the distribution of high-frequency keywords in the entire document also has a certain regularity. By extracting this regularity, it is added to the scoring system as an evaluation dimension.
[0018] (5) Verify the number of nodes in the parsed text. A node is the smallest unit of text that is parsed after the document is parsed. In common document types, the number of nodes should also fluctuate within a reasonable range.
[0019] (6) Verification of the distribution information of the text nodes parsed from the document throughout the entire page. Similar to the distribution of entities and keywords, the distribution of nodes throughout the entire document also has certain regularities.
[0020] (7) Field-level scoring verification: There is often a certain proportion of uncommon documents in documents with poor entity recognition performance, so field-level scoring is also added as an evaluation dimension to the document scoring.
[0021] Preferably, the scoring module mainly summarizes and weights the scores of each dimension in the above scoring module, and finally outputs an entity-level score and a document-level score. At the same time, based on the error analysis of the document recognition system, the weights of each dimension are iteratively optimized to obtain a more reasonable score.
[0022] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0023] 1. This evaluation system primarily focuses on the entity and document levels, comprehensively verifying document recognition results from multiple dimensions, including layout, distribution, and content. Applying this system to the verification of document recognition systems, field-level scores serve as the confidence level for the recognition performance of that field. Based on this confidence level, the recognition results can be selectively displayed, ensuring high accuracy for the displayed fields. Business personnel verifying recognition performance can use the confidence score to verify only fields with low confidence, reducing the number of fields to be verified and significantly improving business processing efficiency.
[0024] 2. By combining field-level and document-level scores, documents with uncommon formatting and poor predicted recognition performance can be filtered out. These documents can be quickly archived to an annotation platform for expanded annotation. The annotated corpus then participates in model iteration, accelerating the upgrade and iteration of the entire recognition system. Furthermore, this scoring method is also of great guiding significance in quickly locating and analyzing problems in the existing recognition system during model iteration. Attached Figure Description
[0025] Figure 1 A system block diagram according to an embodiment of the present invention is shown; Detailed Implementation
[0026] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0027] Please see Figure 1 The present invention provides a technical solution:
[0028] A multi-dimensional evaluation method for document recognition performance includes an entity-level scoring module, a document-level scoring module, and a scoring module. An entity refers to a field with specific meaning extracted from the document. The entity-level scoring module can be divided into validation logic for general entities and validation logic for specific entities, involving the following dimensions:
[0029] (1) Keyword verification of entity content. Some entity content often involves certain high-frequency words, so a keyword dictionary is maintained for different entities. Hitting high-frequency keywords will add points to the score.
[0030] (2) Compliance verification of entity content mainly targets numerical entities, such as date and number types. Verification will be performed based on the length and range of the numerical value. If the value falls within a reasonable range, points will be added to the score; otherwise, the dimension will be scored as 0.
[0031] (3) Entity fill rate verification: Fill rate = area of the rectangle formed by the coordinates of individual entity text / area of the rectangle formed by the outermost coordinates of the entire entity block. The fill rate varies for different entities. By statistically analyzing the entities in the corpus, a reasonable range of fill rates can be obtained. This dimension can quickly verify entities that are incorrectly identified or relatively scattered.
[0032] (4) Validation of the cell location of the entity: The same entity tends to be located in the same cell or adjacent cells. By statistically analyzing the attributes of the cells where different entities are located, documents containing cells, such as Excel, can be validated.
[0033] (5) Entity line number verification: Affected by entity attributes and document type layout, the length of entity content has a certain regularity. This dimension can quickly filter out related entities with multiple recognitions or uncommon content lengths.
[0034] (6) Heat map verification of entity distribution: There are certain regularities in the version production of documents in different industries. Due to the influence of page layout, the distribution of entities in the document also has certain regularities.
[0035] (7) Other types of validation are customized for field types, and customized validation logic has been developed for some entities based on the industry background of the entity.
[0036] The document-level scoring module primarily evaluates documents based on their overall layout and key content, aiming to identify documents with unusual layouts and content structures. The evaluation mainly involves the following dimensions:
[0037] (1) Verification of the number of entities identified in the whole document. There is a regularity in the number of entities involved in the same type of document. This dimension can quickly verify the entity missed recall situation.
[0038] (2) Key field validation: From the perspective of the entire document, some high-frequency words are validated;
[0039] (3) Entity position relationship verification: Different entity types have certain vertical or horizontal position relationships in the layout. By statistically analyzing the relative position relationships of entities in the corpus, some high-frequency entity relationships with strong position relationships are verified.
[0040] (4) Keyword distribution verification: Similar to entity distribution, the distribution of high-frequency keywords in the entire document also has a certain regularity. By extracting this regularity, it is added to the scoring system as an evaluation dimension.
[0041] (5) Verify the number of nodes in the parsed text. A node is the smallest unit of text that is parsed after the document is parsed. In common document types, the number of nodes should also fluctuate within a reasonable range.
[0042] (6) Verification of the distribution information of the text nodes parsed from the document throughout the entire page. Similar to the distribution of entities and keywords, the distribution of nodes throughout the entire document also has certain regularities.
[0043] (7) Field-level scoring verification: There is often a certain proportion of uncommon documents in documents with poor entity recognition performance, so field-level scoring is also added as an evaluation dimension to the document scoring.
[0044] The scoring module mainly summarizes and weights the scores of each dimension in the above scoring module, and finally outputs an entity-level score and a document-level score. At the same time, based on the error analysis of the document recognition system, iteratively optimizes the weights of each dimension to obtain a more reasonable score.
[0045] Taking a freight document recognition system as an example, this system mainly parses and identifies entities in freight document documents, such as the consignee, consignor, notify party, number of pieces, gross weight, volume, and product name from the shipping order. The results of the freight document recognition system are then incorporated into an evaluation system. The specific implementation steps are as follows:
[0046] (1) Entity scoring is verified in different dimensions. Each identified entity will enter the field-level scoring module. According to different entity types, the entity content is verified in sequence for keyword verification, compliance of entity content (such as numerical content, length), entity fill rate verification, cell position of entity verification, row number of entity verification, heat map of entity distribution, and other types of customized verification for field types, so as to obtain the score of each verification dimension.
[0047] (2) Based on the importance of each dimension of the entity rating, the scores of each verification dimension are weighted and summed to obtain the entity evaluation score.
[0048] (3) After field-level scoring, the document-level scoring module will be entered. After document parsing, the relevant information and recognition results will be checked in sequence for entity count, document key field, entity position relationship, keyword distribution, node count, and node distribution to obtain scores for each verification dimension.
[0049] (4) Based on the importance of each dimension of the document evaluation, the scores of each verification dimension and the entity evaluation score are weighted and summed to obtain the document evaluation score.
[0050] The above description of the embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for evaluating the recognition effect of multidimensional verification documents, characterized in that, It includes an entity-level scoring module, a document-level scoring module, and a rating module. The entity-level scoring module is divided into validation logic for general entities and validation logic for specific entities, involving the following dimensions: (1) Keyword verification of entity content: Maintain a keyword dictionary for different entities, and add points to the score if high-frequency keywords are hit; (2) Compliance verification of entity content. For numerical entities, such as date and number, verification will be performed based on the length and range of the value. If the value falls within a reasonable range, points will be added to the score; otherwise, the score for that dimension will be 0. (3) Entity fill rate verification. Fill rate = area of rectangle formed by the coordinates of individual entity text / area of rectangle formed by the outermost coordinates of the entire entity block. The fill rate varies for different entities. By statistically analyzing entities in the corpus, a reasonable range of fill rates can be obtained. This dimension can quickly verify entities that are incorrectly identified or relatively scattered. (4) Validation of the cell location of the entity. The same entity tends to be located in the same cell or adjacent cells. By statistically analyzing the attributes of the cells where different entities are located, the Excel document containing the cells can be validated. (5) Entity line number verification: Affected by entity attributes and document type layout, the length of entity content has a certain regularity. This dimension can quickly filter out related entities with multiple recognition or uncommon content lengths. (6) Heat map verification of entity distribution: There are certain regularities in the version production of documents in different industries. Due to the influence of page layout, the distribution of entities in the document also has certain regularities. (7) Other types of field-specific validation, and customized validation logic has been developed for some entities based on their industry background; The document-level scoring module evaluates documents based on their overall layout and key content, aiming to identify documents with unusual layouts and content structures. The evaluation involves the following dimensions: (1) Verification of the number of entities identified in the whole document. There is a regularity in the number of entities involved in the same type of document. This dimension can quickly verify the entity missed recall situation. (2) Key field validation: From the perspective of the entire document, some high-frequency words are validated; (3) Entity position relationship verification: Different entity types have certain vertical or horizontal position relationships in the layout. By statistically analyzing the relative position relationships of entities in the corpus, some high-frequency entity relationships with strong position relationships are verified. (4) Keyword distribution verification: The distribution of high-frequency keywords in the entire document has a certain regularity. By extracting this regularity, it is added to the scoring system as an evaluation dimension. (5) Verification of the number of nodes in the parsed text of the document. A node is the smallest unit of text that is parsed after the document is parsed. In common document types, the number of nodes should also fluctuate within a reasonable range. (6) Verify the distribution information of the text nodes parsed from the document throughout the entire page. The distribution of nodes throughout the document has a certain regularity. (7) Field-level scoring verification: There is a certain proportion of uncommon documents among the documents with poor entity recognition performance, so field-level scoring is added as an evaluation dimension to the document scoring. The scoring module mainly summarizes and weights the scores of each dimension in the above scoring module, and finally outputs an entity-level score and a document-level score. At the same time, based on the error analysis of the document recognition system, iteratively optimizes the weights of each dimension to obtain a more reasonable score.
Citation Information
Patent Citations
Business document examination system
CN112633852A
Data verification method and device, electronic equipment and storage medium
CN112926296A
