Method and apparatus for form identification and registration employing predefined text grouping
A machine learning system identifies and registers forms by recognizing generic groups and regions, addressing the challenges of semi-structured form representations through positional and semantic relationships, enhancing form recognition and registration efficiency.
Patent Information
- Application Number
- JP2024038059
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-30
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-03-12
AI Technical Summary
The challenge in document and form analysis lies in handling semi-structured form representations with mixed topological and semantic features, which complicates the understanding of relationships due to rotation, translation, and scaling, leading to difficulties in accurate form recognition and registration.
A machine learning system is trained to identify multiple generic groups or regions on a form, utilizing positional and semantic relationships to recognize corresponding areas across different forms, even with variations in scaling and rotation, by employing synthetically generated training data and adjusting node weights to improve accuracy.
The system provides efficient and scalable form identification and registration, capable of handling misregistration, translation, and readability issues, ensuring robust and consistent form recognition across diverse datasets.
Smart Images

Figure 2024144209000001_ABST
Abstract
Description
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application is related to U.S. Patent Application No. 17 / 958,262, entitled "METHOD AND APPARATUS FOR FORM IDENTIFICATION AND REGISTRATION," filed on September 30, 2022, the entire contents of which are incorporated by reference in their entirety. [Technical field]
[0002] Aspects of the present invention relate to image processing, and more particularly to forms processing. [Background technology]
[0003] In the field of document and form analytics, matching and registering forms, including content location, is important but can be difficult, due to challenges including: 1) relatively unstructured (and semi-structured) forms, 2) scan extraction errors (whether optical character recognition (OCR), image character recognition (ICR), or a combination of these (OICR)), 3) tables that may appear in different parts of the form and / or have variable sizes, and 4) scaling to large datasets and variants while remaining robust. Summary of the Invention [Problem to be solved by the invention]
[0004] Semi-structured form representations mix topological features (such as bounding boxes and semantic information) that make it difficult to understand possible associations between topological features when scanning or photographing the results of rotating, translating, and / or scaling the form.
[0005] It is desirable to provide an efficient, scalable and generalizable approach to problems such as those described above. [Means for solving the problem]
[0006] In view of the above, aspects of the present invention train a machine learning system to identify multiple generic groups or regions on a form, and use the positional and semantic relationships between these groups or regions to identify corresponding such groups or regions on the same or different forms. [Brief description of the drawings]
[0007] Various aspects according to embodiments of the present invention will now be described in detail with reference to the following drawings. [Figure 1] Figure 1 shows a mockup of a form with several fields. [Diagram 2] Figure 2 shows a mockup of a different form with multiple fields. [Diagram 3] Figure 3 is a mockup of yet another form with multiple fields. [Figure 4] Figure 4 shows a form with several fields. [Diagram 5] Figure 5 shows another form with several fields. [Figure 6] Figure 6 shows yet another form with multiple fields. [Figure 7A] FIG. 7A is a high-level flow chart of steps according to one embodiment. [Figure 7B] FIG. 7B is a high-level flow chart of steps according to one embodiment. [Figure 8] FIG. 8 is a high-level block diagram of a system for implementing aspects of the present invention according to one embodiment. [Figure 9] FIG. 9 is a high-level block diagram of a deep learning module according to one embodiment. [Figure 10] FIG. 10 is a high-level block diagram of a node weighting module according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] In some embodiments, multiple general purpose text groups or regions within the form are identified. In the non-limiting embodiment described below, six such regions are described.
[0009] An aspect of the invention provides a computer-implemented method of training a machine learning system to identify forms, comprising: receiving a form as an input image; identifying one or more fields in the input image; for each identified field, identifying one or more sub-regions of the identified field; classifying the one or more fields in response to the identification of the one or more fields; determining a relative position of the one or more fields in the input image; and classifying the form in response to the determination of the relative position.
[0010] In one embodiment, the steps in the previous paragraph may be repeated until no more input images are to be received. In one embodiment, the input images may be scanned images or synthetically generated forms. In one embodiment, in response to an incorrect classification of a form, the machine learning system may be updated. In one embodiment, updating the machine learning system may include updating weights within the machine learning system. In one embodiment, the incorrect classification may be corrected.
[0011] In one embodiment, the computer-implemented method may include identifying boundaries of one or more sub-regions, classifying the one or more sub-regions according to their location in the field, and repeating the identification and classification until all sub-regions within the field have been identified.
[0012] In one embodiment, the computer-implemented method further comprises identifying one or more fields in response to the identification of the one or more sub-regions, and may include positions of the one or more sub-regions relative to one another in the identified field.
[0013] In one embodiment, the categorization of the one or more fields includes identifying a format of the one or more fields. In one embodiment, for each of the one or more fields, the identification of the format of the one or more fields may include identifying a format of one or more sub-domains. In one embodiment, the computer-implemented method may further include distinguishing some of the one or more fields from other of the one or more fields by identifying different formats and / or locations.
[0014] Another aspect of the invention provides a computer-implemented method of using a machine learning system to identify forms, the method comprising: receiving a form as an input image, identifying one or more fields in the input image, and for each identified field, identifying one or more sub-regions of the identified field, classifying the one or more fields in response to the identification of the one or more fields, identifying a relative position of the one or more fields in the input image, and classifying the form in response to the identification of the relative positions.
[0015] Yet another aspect of the invention provides a machine learning system for identifying forms, the machine learning system comprising at least one processor and a non-transitory memory programmed to cause the machine learning system to carry out a method according to the method summarized above.
[0016] Aspects of the invention described in accordance with several embodiments may be better understood with reference to the following examples.
[0017] FIG. 1 shows a mockup of a form 100 with three regions 110, 120, 130 grouping different types of data on a form. Such a mockup may be used to train a machine learning system according to one embodiment. In one embodiment, the regions 110 may contain information common to a particular type of form. For an invoice, such information may include the title of the form, the names and addresses of companies (e.g., bill-to company and bill-from company). This content information may be referred to as semantic information. Furthermore, these regions 110 often occur in roughly the same locations across many different types of forms. This location information may be referred to as topological information. Thus, when a machine learning system analyzes different types of forms, the machine learning system may be trained to recognize such regions when analyzing different types of forms. For example, the relative locations of the regions 110 with respect to each other (topological information) may provide information about the content of those regions (semantic information). In one embodiment, the machine learning system may be trained to recognize patterns in the locations of the regions. The system classifies these patterns so that in the future the system recognizes a particular form, i.e., a type of form. In one embodiment, pattern classification may allow the form to be placed into a particular category, for example, a bill, allowing the system to recognize the bill in the future.
[0018] Another way to look at it is that regions 110, 120, 130 contain a number of characters in various known positions. The positions of the characters within these regions may be meaningful for identifying what a field is (e.g., an address field), recreating the form, matching the form with other forms, performing form registration, etc. In this case, it may be necessary to translate, scale, and / or rotate the input form to properly align the fields with the corresponding form fields.
[0019] In one embodiment, region 114 within region 110 may simply be a portion of the entire region 110 and undifferentiated from other data within the region. That is, the data in region 114 may simply be part of the overall semantic information of region 110. In one embodiment, region 114 may be differentiated from other data within the region as a table, e.g., a one-dimensional horizontal table, a two-dimensional vertical table, etc. In one embodiment, the topological information will be the same, but the type of semantic information will be different. In one embodiment, a machine learning system may be trained to recognize both undifferentiated and differentiated situations in light of the topological information common to both situations.
[0020] In one embodiment, region 120 may often contain various types of tabular information. For example, for an invoice, there may be a table of items purchased, including quantity and unit price. There may be a table of subtotals, taxes, totals, and other tables as will be appreciated by those skilled in the art. A vertical table has a header (including what may be considered keywords) and appropriate rows of data below each word in the header. A horizontal table may have a header on the left and data corresponding to that header on the right. There may be a horizontal table with multiple rows, but the headers run vertically down the form, rather than across the form. In one embodiment, detected vertical and horizontal tables may be adjacent to each other and grouped into region 120.
[0021] In Figure 1, the headers 122 are in a vertical table, such as a large table toward the center of the form 100, with the headers "Item," "Number," "Quantity," "Unit Price," and "Price," followed by rows of data 126. Headers can also be in a single-row table, such as the header in the lower left corner of the form 100 that has the words "Payment Information." Data 128 appears in the rows below the table header to the lower left.
[0022] Headers 122 may also be found in horizontal tables, such as the date table, located at the top center of the form 100. These horizontal tables have the header 122 on the left and the data on the right. The date table has the header "Date" on the left and the date information on the right. There may also be a horizontal table, such as a spreadsheet, below the vertical table toward the bottom right of the form 100. The spreadsheet has a single header line that reads "Subtotal," "Tax," and "Total." In one embodiment, there may be a row for shipping charges. The data for each of these header words is to the right of the associated header word. In one embodiment, the date table may be a vertical table instead of a horizontal table.
[0023] A machine learning system may be trained to recognize a landscape or portrait table in the expected topological location on the form 100. It should be noted that the recognition of the table itself does not require recognition of the actual content, i.e., accurate deciphering of the header text and associated data. Rather, it is sufficient to recognize text (portrait or horizontal) as headers and numbers (horizontal or vertical) as data. In one embodiment, a machine learning system may be trained to recognize a table as portrait or landscape depending on the location of the header within the table. Furthermore, when identifying an invoice table showing items being ordered or purchased, the machine learning system may recognize that such a table typically belongs to the center portion of a page of a form. If the table spans multiple pages, there may be information such as the header 110 at the top of each page. The machine learning system can be trained to recognize that, and also recognize that an itemized invoice table may be split into multiple pages. In such a case, the topological location of the header and the topological location of the itemized invoice table may be beneficial to the machine learning system in terms of recognizing invoice tables on other types of forms. Tables within tables, such as a horizontal "Totals" table below a vertical "Itemized Invoices" table, can also provide instructions to a machine learning system.
[0024] Also, in one embodiment, in Figure 1, there is an area 120 on the lower left side of the form 100. The header 122 may include keywords such as "Banking Information" as in Figure 1. Data 128, which may be below or next to the header 122, may constitute information corresponding to the header 122.
[0025] Note that regions such as 124 do not necessarily have regions 122 associated with them. In one embodiment, regions such as 126 may as well. In some aspects, detection of tabular data, whether landscape or portrait, may be possible even in the absence of keywords.
[0026] In one embodiment, a combination of sub-regions can be used to detect a vertical or horizontal table region. In one aspect, a horizontal table can be located on the left side, such as region 122 (keyword or keywords), and on the right side, such as region 124 (data corresponding to the keywords). A vertical table can have a first row, such as region 122 (again, keyword or keywords), and subsequent rows, such as region 126 (data corresponding to each keyword).
[0027] There may be additional types of semantic information, such as data string 134 in region 130 in the lower right portion of form 100 of FIG. 1. Forms may contain textual information that may vary widely but is not necessarily tabular or recognized as keywords in any way. In a particular form type, the textual information may be standard, such as standard terms and conditions or standard disclaimers. Also, the textual information may vary within the same form type, such as comments or special notes fields. In one embodiment, region 130 may include a data header 132 that precedes data string 134. In one embodiment, data header 132 may not be present. A machine learning system may be trained to recognize region 130 as a text region, for example, based on the location of the region (location information) and its textual content (semantic information). Again, the exact content of the textual information in region 130 need not be determined; rather, it is the general nature of the information that may provide instructions to the machine learning system.
[0028] From the above, one skilled in the art will appreciate that in an embodiment of the invention, explicit decoding of keywords is not necessary to train a machine learning system to recognize forms. Rather, it is sufficient to recognize the types of fields that are in necessary proximity to each other and / or in specific positions within the form, without recognizing the specific data (e.g., in the case of a blurry input image, the data may not be distinguished, but the format can be identified). In such cases, text detection errors and / or recognition errors may occur. Such errors need not be fatal to the ability of the machine learning system to correctly identify the location of the regions or semantic information. Also, in an embodiment, mock-ups of forms may be employed as training data, as described above. In an embodiment, such forms may include simulations that are blurry or have difficult to read data.
[0029] As one skilled in the art will appreciate from the following discussion, training a machine learning system may involve altering the weightings of various nodes at different layers of the system.
[0030] In Fig. 2, which is a mockup of different types of invoices, the form title and company information are included in the region 110 at the top left of the form. As is the case in Fig. 1, such mockups can be used to train a machine learning system according to one embodiment. Region 110 at the top right of the form contains the company logo. The machine learning system can be trained to recognize the logo in the form by its location (geometric information) and general content (semantic information) without having to decipher the specific logo.
[0031] Figure 2 shows area 120 prominently positioned within the form, taking up relatively more space. There are two rows of vertical table headers 122 above the rows of vertical table data 126, and four rows of horizontal table headers 122 to the left of the rows of horizontal table data 124. Compared to the similar horizontal table in Figure 1 (with subtotal, tax, and total), the horizontal table at the bottom of area 120 in Figure 2 stretches across the width of the area.
[0032] In FIG. 3, a mockup of yet another type of invoice, region 120 near the top of the form that contains date and purchaser information is formatted differently than the date information in FIG. 1. As in the case of FIG. 1, such a mockup may be used to train a machine learning system in accordance with one embodiment. Regions 110 in FIG. 3 are somewhat scattered throughout the form, unlike FIGS. 1 and 2, where regions 110 are similarly arranged. Region 130 in FIG. 3 is near the center of the form, rather than at the bottom. Regions 120 are above and below region 130. The top region 120 contains only a vertical table with header 122 and data 126, while the bottom region 120 contains two horizontal tables with headers 122 and data 124.
[0033] As previously mentioned, the mockups in Figures 1-3 illustrate what may be synthetically generated training data for a machine learning system in accordance with an embodiment. By mixing topological locations of different types of semantic data, a machine learning system can be trained to recognize a wide variety of forms. Synthetically generated training data is advantageous because it is relatively easy to generate and does not suffer from the effects of scanning, scaling, and rotation that scanned forms do. Also, as previously mentioned, simulations that are blurry or difficult to read data can be inserted as training data into synthetically generated forms.
[0034] Figures 4-6 are examples of forms with regions 110, 120, and 130. Regions 120 vary in number in different locations. Also, regions 130 vary in number in different locations. It can be seen that the data in the various tables is unclear. In terms of training a machine learning system, clarity and readability of the data is not as important as identifying location and semantic information about the data in the various regions. Having these regions in different quantities and / or in different locations in the form aids in training the machine learning system. A trained machine learning system can read a form like Figure 4-6. Even the presence of stamp 140 in Figure 4-6 need not impede either the training or operation of the machine learning system. In each of these figures, stamp 140 is located in an area like region 130. The remaining location and semantic information in region 130 is sufficient for training and operational purposes.
[0035] FIG. 7A is a high-level flow chart outlining the training operations according to one embodiment. At 700, the system receives an input image. Depending on the embodiment, the image may be a scanned image such as one of FIGS. 4-6 and / or a synthetic image such as one of FIGS. 1-3. At 705, the input image is analyzed to identify fields within the image. In one embodiment, this field identification process may be iterative, as described with respect to FIG. 7B, but this is not required. At 710, sub-regions within the identified fields may themselves be identified. At 715, the fields are identified and categorized into regions, such as regions 110, 120, 130. In one embodiment, fields may be identified and / or categorized by identifying sub-regions within the fields. In one embodiment, sub-regions are identified first, and adjacent or bordering sub-regions are combined to form the identified fields. In such an embodiment, 705 and 710 may be reversed. In some embodiments, there may be more types of regions. Different relationships between sub-regions may define the sub-regions as fields in some forms or documents. At 720, the positions of the fields relative to one another are determined.
[0036] At 725, the input image is identified as a particular form in response to identifying the field locations. At 730, a check is made to see if the identification of the form is correct. If so, at 740, a check is made to see if there are additional input images for training. If so, the process returns to 700. If not, the process ends.
[0037] If the field identification is incorrect, then at 735 the machine learning system is updated to address the inaccuracy in the field identification, such as by updating the weights of the nodes in the neural network, and then proceeds to 740 to check whether there are additional input images for training. If so, the process returns to 700. If not, the process ends.
[0038] In one embodiment, training the machine learning system may include defining new domains and new fields, and extending the concepts herein to different types of documents that can be identified by the defined fields.
[0039] 7B is a high-level flow chart outlining a form identification operation according to one embodiment. At 750, an input image is received. The image is identified and then form registered, scaled, and translated as necessary. At 755, fields are identified in the input image. At 760, a check is made to see if all fields in the input image have been identified. If not, flow continues to 765 and returns to 755 to identify the next field.
[0040] If all fields have been identified, then at 770 the fields are categorized into regions, e.g., regions 110, 120, 130. In some embodiments, there may be further types of regions. In one embodiment, sub-regions may be identified and fields may be categorized from there. Alternatively, fields may be categorized and sub-regions of those fields identified. At this point, the flow may proceed similarly to 705-715 of FIG. 7A. At 775, the positions of the identified fields relative to one another are identified. At 780, a form may be identified. In one embodiment, there may be further processing to categorize the form.
[0041] If the identification is correct at 785, then it is determined whether registration of the form needs to occur at 790. In one embodiment, depending on the quality of the image or scan, it may be necessary or appropriate to rotate, translate, and / or scale the input form. At 795, it is determined whether there is another input image to be processed. If so, flow returns to 750. If not, the process ends.
[0042] If the identification is incorrect, then at 790 the form is isolated for future processing. Such future processing may take a variety of forms. By way of non-limiting example, the form may be used in future training. Additionally or alternatively, the form may be manually processed. In one embodiment, depending on the quality of the image or scan, rotation, translation, and / or scaling of the input form may be necessary or appropriate. At 795 it is determined whether there is a next input image to be processed. If so, flow returns to 750. If not, the process ends.
[0043] 7A and 7B show a general high-level flow for field identification and form characterization according to one embodiment. One approach to this identification and characterization can be seen in establishing a hierarchical structure in the form from top to bottom, left to right. In such a process, extracted regions may be ranked in a tree-like data structure. Such ranking can facilitate searching and / or associating content within or between similar documents.
[0044] Aspects of the present invention can facilitate floating and free form registration. Embodiments provide a robust system that can compensate or otherwise accommodate scaling, misregistration, translation, and / or lack of readability of text and / or data within a region. Embodiments also provide a system that is easily scalable to larger businesses and allows for consistent improvement.
[0045] 8, to train the deep learning system 900, the computing system 850 can scan the document 810 using the scanner 820 and receive the scanned form via the computer 830. Additionally or alternatively, the computing system 850 may employ synthetically generated training forms, as will be appreciated by those skilled in the art. The computing system 850 can identify fields within the scanned or synthetically generated training form via the field identification section 860.
[0046] In one embodiment, the storage device 875 can store scanned images or synthetically generated training forms that are processed by the deep learning system 900. The storage device 875 can also store the processed output of the deep learning system 900, which can include the training set and / or the identified fields.
[0047] Computing system 850 may be at a single location, with network 855 enabling communication between various elements of computing system 850. Additionally or alternatively, one or more portions of computing system 850 may be remote from other portions, in which case network 855 may represent a cloud system for communication. In one embodiment, network 655 may be a cloud-based system, even if the various elements are collocated.
[0048] Additionally or alternatively, the processing system 890, which may include one or more of a processor, a storage system, and a memory system, may implement a regression algorithm or other suitable processing to resolve the location of the field. In one embodiment, the processing system 890 is in communication with the deep learning system 900 to assist, for example, in weighting the nodes in the system 900.
[0049] FIG. 9 is a somewhat detailed block diagram of a deep learning system 900. In general, the deep learning system 900 will have a processor, storage, and memory structure that one of ordinary skill in the art will recognize. In one embodiment, the processor structure of the deep learning system 900 may include a graphics processing unit (GPU) as well as an instance where a neural network runs better and / or faster and / or more efficiently on one or more GPUs than on one or more CPUs, instead of a central processing unit (CPU). A neural network, such as a convolutional neural network (CNN) or a deep convolutional neural network (DCNN), will have multiple nodes arranged in layers 920-1 to 920-N, as depicted. Layer 920-1 will be an input layer and layer 920-N will be an output layer. According to different embodiments, N may be 2 or more. If N is 3 or more, there will be at least one hidden layer (e.g., layer 920-2). If N is 2, there are no hidden layers.
[0050] The nodes of the neural network are initially weighted. The weights are adjusted as needed to accommodate various situations presented to the system by the training set, as will be understood by those skilled in the art. The node weighting module 910 may store the initial updated weights. As the system 900 identifies keywords, the output layer 920-N may provide field and / or form identification to a keyword database 950, which also stores the classification of the form and the associated field locations.
[0051] In some embodiments, the functions of any of the methods, processes, algorithms, or flowcharts described herein may be implemented by software and / or computer program code, or portions of code stored in a memory or other computer readable or tangible medium, and executed by a processor.
[0052] In some embodiments, the device includes or is associated with at least one software application, module, unit or entity, or program or part of a program (including additional or updated software routines) configured as four arithmetic operations, and may be executed by at least one arithmetic processor or control device. The program may be called a program product or computer program, including software routines, applets and macros, and may be stored in any data storage medium that the device can read and may include program instructions for performing specific tasks. The computer program product may include one or more computer executable components configured to execute some examples when the program is executed. The one or more computer executable components may be at least one software code or part of the code. The modifications and configurations required to implement the example implementation functions may be implemented as routines, additional or updated software routines. In one example, the software routines may be downloaded to the device.
[0053] As one non-limiting example, the software or computer program code or parts of code may be in source code form, object code form, or some intermediate form, stored on some carrier, distribution medium, or computer readable medium. These media are entities or devices that can transmit the program. Such carriers may include, for example, recording media, computer memory, read-only memory, optical-electrical and / or electrical carrier signals, telecommunication signals, and / or software distribution packages. Depending on the processing power required, the computer program may be executed in a single electronic digital computer or distributed among many computers. The computer readable medium or computer readable storage medium may be a non-transitory medium.
[0054] In other embodiments, the functions of the examples may be performed by hardware or circuitry included in the device, for example using an application specific integrated circuit (ASIC), a programmable gate array (PGA), a field programmable gate array (FPGA), or any other combination of hardware and software. In yet another example, the functions of the examples may be implemented as signals by intangible means, such as transmitted by electromagnetic signals downloaded from the Internet or other networks.
[0055] In one embodiment, a device such as a controller may be configured as a circuit, a computer such as a single chip computer element or a microprocessor, or as a chipset, which includes at least a memory to provide storage capacity for use in arithmetic operations and / or an arithmetic processor to perform the arithmetic operations.
[0056] FIG. 10 is a high-level view of a computer system that may be used to implement aspects of the node weighting module 910. In FIG. 10, one or more central processing units (CPUs) 1010 communicate with a CPU memory 1020, which may comprise RAM, and disk storage 1050. The one or more CPUs 1010 may be comprised of multiple cores, each with a particular capability and capacity. Depending on the embodiment, each CPU 1010 may have a respective associated CPU memory 1020. Alternatively, the CPUs 1010 may share some or all of the CPU memory 1020. In multiple embodiments, the CPU memory 1020 may include volatile and / or non-volatile memory, possibly non-transient storage. Depending on the embodiment, one or more of the CPUs 1010 communicate with each other via a bus (not shown), to which the CPU memory 1020 may also be connected.
[0057] The system also includes one or more graphics processing units (GPUs) 1030, each of which may be configured with multiple cores. In embodiments, one or more of the GPUs 1030 may have a larger, possibly substantially larger, number of cores than any of the CPUs 1010. In FIG. 10, one or more of the GPUs 1030 are shown in communication with a GPU memory 1040, which may be configured with RAM and / or VRAM and disk storage 1050. Depending on the embodiment, each GPU 1030 may have its own associated GPU memory 1040. Alternatively, the GPUs 1030 may share some or all of the GPU memory 1040. Depending on the embodiment, one or more of the GPUs 1030 may communicate with each other directly or via a bus (not shown) to which the GPU memory 1040 may also be connected. In embodiments, the GPU memory 1040 may include volatile and / or non-volatile memory, possibly non-transitory storage. Depending on the embodiment, one or more GPUs 1030 may communicate with one or more CPUs 1010 directly or via a bus (not shown). The more cores a GPU has, the easier it is to operate a machine learning system, as will be appreciated by those skilled in the art. In one embodiment, each GPU core may have less power or capacity than a CPU core.
[0058] In general, the CPU memory 1020, the GPU memory 1040, and the disk storage 1050 may all constitute computer-readable storage media. In some embodiments, the disk storage 1050 constitutes a non-transitory computer-readable storage medium. The disk storage 1050 may be comprised of one or more hard disk drives (HDDs) and / or one or more solid-state drives (SDDs). In some embodiments, the RAM and / or VRAM in the memory 1020 and / or memory 1040 may be temporary storage and thus constitute volatile computer-readable storage media. In some embodiments, one or more of the CPU 1010 and / or GPU 1030 may include on-board volatile and / or non-volatile computer-readable storage.
[0059] In one embodiment, asynchronous operation of the CPU and GPU means that while the GPU is at one point in training using a particular dataset, the CPU may be generating one or more future datasets that the GPU will use in training and / or testing.
[0060] Depending on the machine learning algorithm associated with the training model, the processing described above may be allocated to two or more CPUs and / or two or more GPUs, depending on the algorithms involved and the associated hardware requirements.
[0061] Those skilled in the art will appreciate that different types of neural networks may be employed as appropriate, and that various functions may be performed by different ones of the components 860, 865, 890 of FIG. 8 depending on the ability and resulting efficiencies of dividing operations among different processors / GPUs / CPUs throughout the system.
[0062] The above description has used forms, and invoices in particular, as a non-limiting example, but those skilled in the art will appreciate that the concepts described herein can be applied not only to invoices, but also to other forms or other documents that contain identifiable location relationships of fields, semantic information within fields, and possibly placement of text within fields within a document.
[0063] Although embodiments according to aspects of the present invention have been described above, the present invention should not be considered limited to these embodiments or aspects. Those skilled in the art will appreciate modifications of the present invention within the scope and spirit of the appended claims.
Claims
1. 1. A computer-implemented method for training a machine learning system to identify forms, comprising: a) receiving a form as an input image; b) identifying one or more fields of the input image; c) for each identified field, identifying one or more sub-regions of the identified field; d) classifying said one or more fields in response to an identification of said one or more fields; e) determining a relative position of the one or more fields of the input image; and f) classifying the form in response to said determining of said relative position.
2. The computer-implemented method of claim 1 , wherein the input image is a scanned image or an artificially generated form.
3. 10. The computer-implemented method of claim 1, further comprising: updating the machine learning system in response to the misclassification of the form by updating weights of nodes of the machine learning system.
4. The computer-implemented method of claim 3 , further comprising correcting the misclassification.
5. g) identifying boundaries of said one or more sub-regions; h) classifying said one or more sub-regions according to their position within said field; 2. The computer-implemented method of claim 1, further comprising: i) repeating the identifying and classifying until all sub-regions within the field have been identified.
6. 2. The computer-implemented method of claim 1, further comprising: j) identifying the one or more fields in response to the identification of the one or more sub-regions, the identifying including identifying positions of the one or more sub-regions relative to one another in the identified field.
7. 1. A computer-implemented method of using a machine learning system to identify forms, comprising: a) receiving a form as an input image; b) identifying one or more fields of the input image; c) for each identified field, identifying one or more sub-regions of the identified field; d) classifying said one or more fields in response to an identification of said one or more fields; e) determining a relative position of the one or more fields of the input image; and f) classifying the form in response to said determining of said relative position.
8. The computer-implemented method of claim 1 , further comprising repeating a) through f) until all forms are received.
9. 2. The computer-implemented method of claim 1, further comprising identifying a format of the one or more fields by identifying a format of the one or more sub-regions for each of the one or more fields.
10. 2. The computer-implemented method of claim 1, further comprising distinguishing some of the one or more fields from other of the one or more fields by specifying a different format and / or location.
11. 1. A machine learning system for identifying forms, comprising: At least one processor; When executed, a) receiving a form as an input image; b) identifying one or more fields of the input image; c) for each identified field, identifying one or more sub-regions of the identified field; d) classifying said one or more fields in response to an identification of said one or more fields; e) determining a relative position of the one or more fields of the input image; and f) classifying said forms in response to said determining said relative positions; and and a non-transitory memory containing instructions causing the machine learning system to perform a method including:
12. The computer-implemented method of claim 1 , further comprising repeating a) through f) until all forms are received.
13. 2. The computer-implemented method of claim 1, further comprising identifying a format of the one or more fields by identifying a format of the one or more sub-regions for each of the one or more fields.
14. 2. The computer-implemented method of claim 1, further comprising distinguishing some of the one or more fields from other of the one or more fields by specifying a different format and / or location.
15. 10. The computer-implemented method of claim 1, further comprising: updating the machine learning system in response to the misclassification of the form by updating weights of nodes of the machine learning system.
16. The computer-implemented method of claim 3 , further comprising correcting the misclassification.
17. g) identifying boundaries of said one or more sub-regions; h) classifying said one or more sub-regions according to their position within said field; 2. The computer-implemented method of claim 1, further comprising: i) repeating the identifying and classifying until all sub-regions within the field have been identified.
18. 2. The computer-implemented method of claim 1, further comprising: j) identifying the one or more fields in response to the identification of the one or more sub-regions, the identifying including identifying positions of the one or more sub-regions relative to one another in the identified field.
19. The system of claim 11 , the method further comprising: determining whether the form requires registration, scaling, or translation in response to the form classification.
20. 20. The system of claim 19, further comprising: in response to determining that the form requires registration, registering the form.
Citation Information
Patent Citations
Picture data input device
JP1994209398A
Form processor
JP2006127451A
Document sorting system, document sorting method and program
JP2021125040A
Business form input form creation device, business form input form creation method, and program
JP2021152924A
Information processing apparatus, information processing method, and program
JP2022162379A
