Information processing device, output device, information processing method and information processing program
The information processing device improves recognition accuracy in document forms by using a learned model to identify and update document items based on user corrections, enhancing classification and item information through machine learning.
Patent Information
- Application Number
- JP2023067556
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-18
- Publication Date
- 2024-10-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Conventional character recognition technologies fail to sufficiently improve recognition accuracy when description items and item names are modified in document forms.
An information processing device that includes an identification processing unit to identify document items using a learned model, a generation processing unit to generate correction item information, and a learning processing unit to update the model with associated learning data based on user modifications.
Enhances recognition accuracy for document input items by updating the model with user corrections, reflecting improved classification and item information through machine learning.
Smart Images

Figure 2024153992000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to techniques for performing processes such as character recognition on input data of documents. [Background technology]
[0002] Conventionally, there are known techniques for extracting character strings from images of documents such as documents and forms. For example, there is known a technique for holding a trained model that has been machine-learned using pairs of description items and item names on a form as training data, determining and displaying which of predetermined item names each description item included in a form file corresponds to based on the trained model, and updating the trained model based on the corrected information when the pair of description items and item names is corrected (see, for example, Patent Document 1). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2022-32831 A Summary of the Invention [Problem to be solved by the invention]
[0004] However, in conventional technology, when a correction is made to a pair of a description and an item name, the trained model is updated using the corrected pair. Therefore, even if an updated trained model is used, it is not possible to sufficiently improve the recognition accuracy for recognizing the type of document file.
[0005] An object of the present disclosure is to provide an information processing device, an output device, an information processing method, and an information processing program that are capable of improving the recognition accuracy of recognizing input items of a document from input data of the document. [Means for solving the problem]
[0006] An information processing device according to one aspect of the present disclosure includes an identification processing unit, a generation processing unit, and a learning processing unit. The identification processing unit identifies a predetermined item of the document from input data of the document using a trained model. When a user operation to correct the predetermined item identified by the identification processing unit is accepted, the generation processing unit generates learning data in which correction item information of the corrected predetermined item is associated with input information of a related item related to the predetermined item among a plurality of items included in the document. The learning processing unit updates the trained model using the learning data generated by the generation processing unit.
[0007] An output device according to another aspect of the present disclosure uses the trained model generated by the information processing device to perform a process for extracting item information of specific items of a document and input information of related items related to the specific items from input data of the document, and outputs the extracted item information and input information.
[0008] An information processing method according to another aspect of the present disclosure is a method in which one or more processors execute the following steps: identify specific items of a document from input data of the document using a trained model; when a user operation to modify the identified specific items is received, generate learning data that associates modification item information of the modified specific items with input information of related items related to the specific items among multiple items included in the document; and update the trained model using the generated learning data.
[0009] An information processing program according to another aspect of the present disclosure is a program for causing one or more processors to execute the following steps: identifying specific items of a document from input data of the document using a trained model; when a user operation to modify the identified specific items is received, generating learning data that associates modification item information of the modified specific items with input information of related items related to the specified items among multiple items included in the document; and updating the trained model using the generated learning data. Effect of the Invention
[0010] According to the present disclosure, it is possible to provide an information processing device, an output device, an information processing method, and an information processing program capable of improving the recognition accuracy for recognizing input items of a document from input data of the document. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a functional block diagram showing a configuration of an information processing device according to an embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram illustrating an example of a document (quote) according to an embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram illustrating an example of a file information database according to an embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram illustrating an example of an unregistered file list page according to an embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram illustrating an example of a details page according to an embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram illustrating an example of a details page according to an embodiment of the present disclosure. [Figure 7] FIG. 7 is a diagram illustrating an example of a registered file list page according to an embodiment of the present disclosure. [Figure 8] FIG. 8 is a diagram illustrating an example of a details page according to an embodiment of the present disclosure. [Figure 9] FIG. 9 is a diagram illustrating an example of a details page according to an embodiment of the present disclosure. [Figure 10] FIG. 10 is a flowchart showing an example of a procedure of information processing (file information registration processing) executed in the information processing device according to the embodiment of the present disclosure. [Figure 11] FIG. 11 is a flowchart illustrating an example of a procedure of information processing (learning data generation processing) executed in an information processing device according to an embodiment of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. Note that the following embodiments are examples of the present disclosure and are not intended to limit the technical scope of the present disclosure.
[0013] [Information processing device 1] Fig. 1 is a block diagram showing a configuration of an information processing device 1 according to an embodiment of the present disclosure. The information processing device 1 recognizes input items from input data using a trained model (hereinafter referred to as a trained model for classification) that recognizes input items of a document such as a form (see Fig. 2) from the input data, and executes a process of generating learning data (teacher data) to be used for re-learning using the recognition result. In addition, the information processing device 1 performs machine learning (re-learning) using the learning data to update the trained model for classification.
[0014] 1, the information processing device 1 includes a control unit 11, a storage unit 12, an operation display unit 13, and a communication unit 14. The information processing device 1 may be one or more cloud servers, or one or more physical servers. The information processing device 1 may be configured, for example, by a personal computer, a NAS (Network Attached Storage), or the like.
[0015] The communication unit 14 is a communication interface for connecting the information processing device 1 to a network N1 in a wired or wireless manner and for executing data communication in accordance with a predetermined communication protocol with an external device such as a user terminal 2 via the network N1. The network N1 is formed of, for example, the Internet, a LAN, or the like.
[0016] The operation display unit 13 is a user interface that includes a display unit, such as a liquid crystal display or an organic EL display, that displays various information, and an operation unit, such as a mouse, a keyboard, or a touch panel, that accepts operations.
[0017] The storage unit 12 is a non-volatile storage unit such as an HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash memory that stores various information. The storage unit 12 stores a control program such as an information processing program (an example of an information processing program of the present disclosure) for causing the control unit 11 to execute information processing (see Figs. 10 and 11) described below. For example, the information processing program is non-temporarily recorded on a computer-readable recording medium such as a CD or a DVD, and is read by a reading device (not shown) such as a CD drive or a DVD drive provided in the information processing device 1 and stored in the storage unit 12. The information processing program may be distributed from a cloud server and stored in the storage unit 12.
[0018] The storage unit 12 also stores input data (files 121) such as documents (see FIG. 2) acquired from the user terminal 2, etc. The input data is, for example, image data obtained by scanning a document. The files 121 are sorted and stored in folders having a hierarchical structure in the storage unit 12 (see FIG. 4).
[0019] The storage unit 12 also includes a file information database 122. Information about the file 121 is registered in the file information database 122. FIG. 3 is an example of the file information database 122. A file name, a predicted category, a storage location, a registration category, input information, and the like are registered in the file information database 122 in association with each other. The file name is identification information such as the name and ID of the file 121. The predicted category is information predicted by the control unit 11 as a "category" that indicates the type of the file 121. Here, the "category" is, for example, one item that indicates the type of the file 121, and in the case of the document in FIG. 2, the category is a "quotation". As another example, if the document is an invoice, the category is a "invoice", if the document is a delivery note, the category is a "delivery note", and if the document is a purchase order, the category is a "purchase order".
[0020] The control unit 11 predicts the classification of a document using the trained model for vectorization 123 and the trained model for classification 124 stored in the storage unit 12 (details will be described later). The control unit 11 registers information on the predicted classification in the "predicted classification" of the file information database 122.
[0021] The storage location is information indicating the storage destination of the file 121. For example, when the control unit 11 acquires the file 121, it stores the file in an import folder (see FIG. 4). When the control unit 11 predicts the classification of the file 121 stored in the import folder, it moves the file 121 to an unregistered folder (see FIG. 4). When the control unit 11 generates learning data for the file 121 stored in the unregistered folder, it moves the file 121 to a predetermined registered folder (see FIG. 4). The control unit 11 registers a folder name indicating the storage location for each file 121 in the "storage location" of the file information database 122. The control unit 11 may register access information (such as a URL) that allows access to the file 121 via the network N1 in the "storage location".
[0022] The registered category is information on the "category" that has been determined for the file 121. For example, when the predicted category is correct, the control unit 11 registers information identical to the predicted category in the "registered category." When the user performs a predetermined confirmation operation on the predicted category, the control unit 11 determines that the predicted category is correct and registers information identical to the predicted category in the "registered category." Also, for example, when the user makes a correction to the predicted category, the control unit 11 registers information on the category corrected by the user in the "registered category." "File F3" shown in FIG. 3 shows an example in which the user has corrected the predicted category "quote" to "invoice."
[0023] The input information is information (text information) corresponding to each of a plurality of input items included in file 121. The input information includes information regarding required input items, information regarding input items (related items) according to the type of file 121, and the like. For example, required input items include the transaction date, business partner, transaction amount, and the like. Also, related items for an "estimate" include the expiration date, delivery date, and the like, related items for an "invoice" include the payment deadline, transfer destination, and the like, and related items for a "delivery note" include the name of the person in charge, and the like.
[0024] When the control unit 11 acquires input information based on a user's input operation for an input item, the control unit 11 registers the acquired input information in "input information" of the file information database 122. In addition, the control unit 11 extracts input information (text information) corresponding to the input item from the input data (file 121) using the trained model, and registers the extracted input information in "input information." The control unit 11 outputs the input information as a character recognition result, or registers it in a form database (not shown).
[0025] In addition to the above information, the file information database 122 may also include attribute information regarding the attributes of the file 121 (creation date and time, update date and time, registration date and time, size, application type, creator, etc.).
[0026] The storage unit 12 also stores a trained model for vectorization 123 and a trained model for classification 124. The trained model for vectorization 123 is a trained model used to acquire vector data representing fixed-length features for character strings, sentences, etc. A well-known trained model can be applied to the trained model for vectorization 123. The trained model for classification 124 is a trained model for category classification constructed by supervised learning using a "category" for vector data as correct answer data. In this embodiment, the control unit 11 has a configuration for re-learning and updating the trained model for classification 124.
[0027] The storage unit 12 may be configured as a data server such as a NAS, and may be connected to the information processing device 1 via a network N1.
[0028] FIG. 2 shows an estimate as an example of a document. As shown in FIG. 2, the estimate includes multiple character strings such as the document category ("estimate"), issue date, destination, contact information of the estimator, estimated amount, product name, quantity, standard price, discount amount, subtotal, consumption tax, and total amount. The estimate also includes a seal affixed by the creator of the estimate. The user scans the estimate on the user terminal 2 (external device) and uploads the image data to the information processing device 1. When the control unit 11 acquires image data (input data) of the estimate, it stores the image data in an import folder of the storage unit 12. As another embodiment, the control unit 11 may acquire a document file of the estimate created on the user terminal 2 and store the document file in the storage unit 12.
[0029] The control unit 11 has control devices such as a CPU, a ROM, and a RAM. The CPU is a processor that executes various arithmetic operations. The ROM stores in advance control programs such as a BIOS and an OS for causing the CPU to execute various processes. The RAM stores various information and is used as a temporary storage memory (work area) for the various processes executed by the CPU. The control unit 11 controls the information processing device 1 by causing the CPU to execute various control programs that are pre-stored in the ROM or the storage unit 12.
[0030] Specifically, as shown in Fig. 1, the control unit 11 includes various processing units such as a specific processing unit 111, a display processing unit 112, a reception processing unit 113, a registration processing unit 114, a generation processing unit 115, and a learning processing unit 116. The control unit 11 functions as the various processing units by executing various processes according to the information processing program. Some or all of the processing units included in the control unit 11 may be configured with electronic circuits. The information processing program may be a program for causing a plurality of processors to function as the various processing units.
[0031] The control unit 11 acquires input data. Specifically, the control unit 11 acquires input data (image data) of a document uploaded from the user terminal 2. When the control unit 11 acquires the input data, it stores a file 121 corresponding to the input data in an import folder of the storage unit 12. The control unit 11 also acquires attribute information (such as a file name) of the file 121, and registers the attribute information in the file information database 122 (see FIG. 3). The control unit 11 also registers the "import folder" as the storage location of the file 121 in the "storage location" of the file information database 122 (see FIG. 3).
[0032] Every time the control unit 11 acquires input data (file 121), it stores the file 121 in an import folder and registers attribute information of the file 121 in a file information database 122.
[0033] The identification processing unit 111 identifies the document classification (an example of the predetermined item of the present disclosure) for the input data of the document by using the trained model. Note that the predetermined item of the present disclosure is an item that represents the type of the document among multiple items included in the document. In this embodiment, the predetermined item is, for example, the document classification. The predetermined item of the present disclosure is not limited to an item that represents the type of the document, and may be another item.
[0034] Specifically, when the identification processing unit 111 acquires the file 121 stored in the import folder, it extracts text information from the file 121, vectorizes the text information using the trained model for vectorization 123, and predicts a classification for the vector data using the trained model for classification 124. The identification processing unit 111 registers information on the predicted classification in "predicted classification" in the file information database 122 (see FIG. 3). In addition, the control unit 11 registers the text information extracted from the file 121 in "input information" in the file information database 122 (see FIG. 3).
[0035] Furthermore, when the specific processing unit 111 predicts the classification of the file 121 stored in the import folder, it moves the file 121 to an unregistered folder and updates the "storage location" in the file information database 122 (see FIG. 3). The specific processing unit 111 sequentially executes processing to predict the classification of the files 121 stored in the import folder and moves them to the unregistered folder. Note that the specific processing unit 111 may also execute processing to predict the classification of the file 121 stored in the import folder and move it to the unregistered folder in response to a user instruction (an instruction to predict the classification).
[0036] As a result, when input data is input, the input data is sorted into an unregistered folder after a classification (predicted classification) is registered.
[0037] The display processing unit 112 displays various information on the operation display unit 13. For example, the display processing unit 112 displays a screen (file list page) that lists a plurality of files 121 stored in the storage unit 12. Fig. 4 shows an unregistered file list page P1 that lists a plurality of files 121 stored in an unregistered folder. The display processing unit 112 displays a plurality of files 121 in a selectable manner on the unregistered file list page P1.
[0038] The reception processing unit 113 receives various operations from the user. For example, when the user selects a file 121 to be registered on the unregistered file list page P1, the reception processing unit 113 receives the user's selection operation of the file 121. For example, when the user selects a file F3 on the unregistered file list page P1 shown in Fig. 4, the reception processing unit 113 receives the user's selection operation of the file F3, and the display processing unit 112 displays a details page P2 (see Fig. 5) including detailed information about the file F3.
[0039] The display processing unit 112 displays an image of the file F3 on the left side of the details page P2, and displays information on the input items related to the file F3 on the right side of the details page P2. For example, the display processing unit 112 displays, on the details page P2, attribute information such as the registration date and size of the file F3, a required input item K0 including the transaction date, the customer, and the transaction amount, an input item K1 for a category indicating the type of the file F3, and input items K2 and K3 for the expiration date and delivery date, which are items related to the category (related items).
[0040] Here, the display processing unit 112 displays one or more required input items K0 that have been set in advance, regardless of the type of the file 121. The contents of the required input items K0 are not limited to the example shown in Fig. 5, and can be set appropriately by the control unit 11.
[0041] Furthermore, the display processing unit 112 displays in the input item K1 information on the category registered in the "predicted category" of the file information database 122. In the example shown in Fig. 5, the display processing unit 112 displays in the input item K1 the "quote" (see Fig. 3) registered as the "predicted category" in association with the file F3.
[0042] Furthermore, the display processing unit 112 displays one or more input items (related items) related to the prediction category on the details page P2. In the example shown in Fig. 5, the display processing unit 112 displays the input item K2 of "Expiration Date" and the input item K3 of "Delivery Date", which are related items related to the category "Quotation".
[0043] The control unit 11 registers in advance in the storage unit 12 related items that are related to the category in association with the category. The control unit 11 may also set and update related items for a category in response to a user's operation. For example, "expiration date" and "delivery date" are set as related items for the category "quote", "payment deadline" and "transfer destination" are set as related items for the category "invoice", and "name of person in charge" is set as related item for the category "delivery note".
[0044] The display processing unit 112 switches the contents of the related items (input items K2, K3) in accordance with the category information displayed in the input item K1 of the category on the details page P2.
[0045] The reception processing unit 113 accepts input operations by the user on the details page P2. For example, the user inputs information about the input items into the required input items K0 on the details page P2 while checking the image of the file 121. For example, on the details page P2 shown in FIG. 5, the user inputs the transaction date, the business partner, and the transaction amount. Also, for example, on the details page P2, the user inputs information about related items related to the category. For example, on the details page P2 shown in FIG. 5, the user inputs the expiration date of the related item K2 of the category "quotation" and the delivery date of the related item K3 of the category "quotation" (see FIG. 6).
[0046] When the user finishes inputting information for each input item on the details page P2, the user presses the "Update" button (update operation). When the reception processing unit 113 receives the update operation from the user, the registration processing unit 114 executes a process of registering the input information.
[0047] Specifically, the registration processing unit 114 registers the input information of the required input item K0 and related items K2 and K3 entered by the user on the details page P2 (see FIG. 6) in the "input information" of the file information database 122 (see FIG. 3). The registration processing unit 114 also registers the classification information in the "registered classification" of the file information database 122 (see FIG. 3). In the example shown in FIG. 6, the "predicted classification" and the "registered classification" are "quotation", which matches each other.
[0048] Furthermore, when the reception processing unit 113 receives an update operation from the user, the registration processing unit 114 moves the file 121 to be registered from the unregistered folder to the registered folder. Here, the registration processing unit 114 moves the file F3 selected by the user from the unregistered folder to the registered folder. Here, the registered folder may be composed of multiple folders. For example, the control unit 11 may create multiple folders according to the business partner, the transaction date, etc. In this case, the registration processing unit 114 moves the target file to a folder among the multiple folders according to the type, attributes, and other input information (creator, destination, business partner, transaction date, etc.) of the file 121. Here, the registration processing unit 114 moves the file F3 to "folder A" (see FIG. 7). FIG. 7 shows a registered file list page P3 that lists multiple files 121 stored in the registered folder (folder A). Also, the registration processing unit 114 registers the destination folder name (or URL) in the "storage location" of the file information database 122 (see FIG. 3).
[0049] The generation processing unit 115 generates learning data (re-learning data) based on the input information input to each input item (K0, K1, K2, K3). For example, the generation processing unit 115 generates learning data in which the input data (image data), the classification information, the input information of the related items related to the classification, and the input information of the required input items are associated with each other. Specifically, the generation processing unit 115 preferentially extracts the periphery of the portion matching the text information (classification information) input to the input item K1 of the “classification” from the text information of the file 121, vectorizes the extracted text information using the trained model for vectorization 123, and generates learning data (re-learning data) for the trained model for classification 124 by associating the vectorized vector data with the input classification information. The generation processing unit 115 stores the generated learning data in the storage unit 12. Furthermore, for example, the generation processing unit 115 associates the vector data of the text information extracted from the file 121 with the category information, and stores them in the storage unit 12 as learning data (re-learning data) for the classification trained model 124.
[0050] Here, if the user determines that the classification information displayed in the classification input item K1 of the details page P2 is incorrect, i.e., if the predicted classification (see FIG. 3) identified by the identification processing unit 111 is incorrect, the user can perform an operation to correct the classification information. For example, as shown in FIG. 8, when the user presses the input item K1 of the details page P2, the display processing unit 112 displays a pull-down menu and displays previously registered candidates for classification information (an example of the item candidates of the present disclosure) in a selectable manner.
[0051] The reception processing unit 113 receives a correction operation for correcting the sorting information from the user. For example, when the user selects "invoice" from among the sorting information candidates on the details page P2 shown in Fig. 8, the reception processing unit 113 receives a correction operation for the sorting information.
[0052] Furthermore, when the reception processing unit 113 receives an operation to modify the category information from the user, the display processing unit 112 changes the related items. For example, when the user selects "invoice", the display processing unit 112 changes the input items K2 and K3 to "payment terms" and "payee", which are related items of "invoice", as shown in Fig. 9. In this way, when the category information displayed in the category input item K1 on the details page P2 is modified, the display processing unit 112 changes the contents of the related items (input items K2 and K3) to contents corresponding to the modified category information.
[0053] On the details page P2 shown in Fig. 9, the user inputs the payment terms in the related item K2 of the category "invoice" and the payee in the related item K3 of the category "invoice". After the user has completed the input operation for each input item on the details page P2, the user presses the "Update" button (update operation). When the reception processing unit 113 receives the user's update operation, the registration processing unit 114 executes a process of acquiring the input information based on the user's input operation for the related items and registering the input information.
[0054] Specifically, the registration processing unit 114 registers the input information of the required input item K0 and related items K2 and K3 entered by the user on the details page P2 in the "input information" of the file information database 122 (see FIG. 3). The registration processing unit 114 also registers the classification information in the "registered classification" of the file information database 122 (see FIG. 3). In the example shown in FIG. 9, "quotation" is registered in "predicted classification" and "invoice" is registered in "registered classification" (see FIG. 3).
[0055] When the classification information is corrected, the generation processing unit 115 generates learning data based on the input information input to each input item (K0, K1, K2, K3) after the correction. For example, the generation processing unit 115 generates learning data in which the input data (image data), the classification information after the correction, the input information of the related items related to the classification after the correction, and the input information of the required input items are associated with each other. Specifically, the generation processing unit 115 preferentially extracts from the text information of the file 121 the periphery of the portion that matches the text information (classification information) input to the input item K1 of the "classification" after the correction, vectorizes the extracted text information using the trained model for vectorization 123, and generates learning data (re-learning data) for the trained model for classification 124 by associating the vectorized vector data with the corrected classification information. The generation processing unit 115 stores the generated learning data in the storage unit 12. For example, the generation processing unit 115 associates the vector data of the text information extracted from the file 121 with the corrected category information and stores them in the memory unit 12 as learning data (re-learning data) for the classification trained model 124.
[0056] The learning processing unit 116 updates the trained model (trained model for classification 124) by using the training data generated by the generation processing unit 115. Specifically, the learning processing unit 116 updates the trained model for classification 124 by performing re-learning by using a plurality of training data in which vector data of text information extracted from the file 121 is associated with classification information (if corrected, the corrected classification information).
[0057] For example, when the number of data in the learning data becomes equal to or exceeds a predetermined number, or when a preset execution timing arrives, the learning processing unit 116 updates the classification trained model 124 by performing machine learning using the learning data.
[0058] Machine learning includes algorithms such as supervised learning using supervised data, unsupervised learning using unsupervised data, and reinforcement learning. Furthermore, to realize these methods, a method called "deep learning" is used, which learns to extract features themselves. In this embodiment, the control unit 11 has a learning model based on the various algorithms described above. In this embodiment, data to which classification information is added corresponds to supervised data, and data to which classification information is not added corresponds to unsupervised data. The control unit 11 can perform machine learning using the supervised data and unsupervised data as input data (learning data) to generate a learned model (classification learned model 124). In this embodiment, the control unit 11 performs machine learning (re-learning) using supervised data to which classification information is added as input data (re-learning data) to update the learned model (classification learned model 124). That is, the information processing device 1 functions as a learning device that generates and updates a learned model.
[0059] Furthermore, the trained model (trained model for classification 124) may be downloaded to an operation terminal (such as the user terminal 2) and used, or may be stored in a server (such as a cloud server or information processing device 1) and accessed from an operation terminal via the Internet or the like for use. When any input data is input to the operation terminal, the trained model outputs an optimal character recognition result (such as classification information). An apparatus (such as the operation terminal or the server) that uses the trained model is an example of an output device of the present disclosure.
[0060] [Information Processing] The following describes the procedure of information processing executed in the information processing device 1. The information processing includes a file information registration process for registering file information corresponding to input data in the file information database 122, and a learning data generation process for generating learning data.
[0061] The present disclosure can be understood as an information processing method (information processing method of the present disclosure) that executes one or more steps included in the information processing. Furthermore, one or more steps included in the information processing described here may be omitted as appropriate. Furthermore, the steps in the information processing may be executed in a different order as long as the same action and effect is achieved. Furthermore, although an example is described here in which the control unit 11 of the information processing device 1 executes each step in the information processing, in other embodiments, one or more processors may execute each step in the information processing in a distributed manner.
[0062] [1. File information registration process] FIG. 10 is a flowchart showing an example of a procedure of a file information registration process executed in the information processing device 1.
[0063] In step S1, the control unit 11 acquires input data (file 121) input from the user terminal 2 or the like. When the control unit 11 acquires the file 121, it stores the file in an import folder in the storage unit 12. The control unit 11 also acquires attribute information (such as a file name) of the file 121, and registers the attribute information and information on the storage location (the "import folder") in the file information database 122 (see FIG. 3).
[0064] Next, in step S2, the control unit 11 extracts text information from the acquired file 121.
[0065] Next, in step S3, the control unit 11 vectorizes the extracted text information using the trained model for vectorization 123 to obtain vector data.
[0066] Next, in step S4, the control unit 11 predicts the classification of the file 121. Specifically, the control unit 11 predicts the classification of the vector data by using the trained classification model 124. For example, the control unit 11 identifies one of a plurality of predetermined classifications based on the vector data.
[0067] Next, in step S5, control unit 11 registers the file information in file information database 122 (see FIG. 3). Specifically, control unit 11 registers the classification information of the predicted classification in "predicted classification" in file information database 122, and registers the extracted text information in "input information" in file information database 122. After registering the file information of file 121, control unit 11 moves file 121 from the import folder to the unregistered folder.
[0068] Every time the control unit 11 acquires input data (file 121), it registers the file information of the file 121 in the file information database 122, and stores the file 121 in an unregistered folder.
[0069] [2. Learning data generation process] FIG. 11 is a flowchart showing an example of a procedure of a learning data generation process executed in the information processing device 1.
[0070] In step S11, the control unit 11 displays an unregistered file list page P1 that lists a plurality of files 121 stored in an unregistered folder. For example, as shown in Fig. 4, the control unit 11 displays a plurality of files 121 in a selectable manner on the unregistered file list page P1.
[0071] Next, in step S12, the control unit 11 accepts a selection operation of the file 121 from the user. Furthermore, when the control unit 11 accepts the selection operation of the file 121 from the user, it displays a details page P2 including detailed information of the selected file 121. For example, when the user selects the file F3 on the unregistered file list page P1 shown in Fig. 4, the control unit 11 accepts the selection operation of the file F3 by the user and displays a details page P2 including detailed information of the file F3 shown in Fig. 5.
[0072] Next, in step S13, control unit 11 determines whether or not a predicted classification corresponding to file 121 is registered in file information database 122 (see FIG. 3). If control unit 11 determines that the predicted classification is registered in file information database 122 (S13: Yes), control unit 11 shifts the process to step S14. On the other hand, if control unit 11 determines that the predicted classification is not registered in file information database 122 (S13: No), control unit 11 shifts the process to step S31.
[0073] In step S31, the control unit 11 displays the initial setting (default) classification information in the input item K1 of the details page P2. In this way, when the control unit 11 can predict the classification from the file 121, the control unit 11 displays the predicted classification information in the input item K1, and when the control unit 11 cannot predict the classification from the file 121, the control unit 11 displays the preset classification information (e.g., "Other", "(blank)", etc.) in the input item K1. After step S31, the control unit 11 shifts the process to step S14. As another embodiment, when the control unit 11 cannot predict the classification from the file 121, the control unit 11 may register the preset classification information in the predicted classification. In this case, the process of step S31 may be omitted.
[0074] In step S14, the control unit 11 displays related items of the category. For example, as shown in Fig. 5, when the category (predicted category or initial setting category) is "quotation", the control unit 11 displays "quotation" in the input item K1 of the category, and displays "expiration date" and "delivery date", which are related items previously set for "quotation", in the input items K2 and K3, respectively. Note that, when the control unit 11 cannot predict the category from the file 121, it displays "other" or "(blank)" in the input item K1 of the category, and provisionally displays "item 1" and "item 2" as related items in the input items K2 and K3, respectively.
[0075] Next, in step S15, the control unit 11 determines whether or not a correction operation has been received from the user for the "category" (category information) displayed in the input item K1. If the control unit 11 receives a correction operation from the user to correct the category information (S15: Yes), the control unit 11 shifts the process to step S16. On the other hand, if the control unit 11 does not receive a correction operation from the user to correct the category information (S15: No), the control unit 11 shifts the process to step S17.
[0076] For example, as shown in FIG. 8, when a user presses input item K1 on details page P2, the control unit 11 displays pre-registered classification information candidates in a selectable manner in a pull-down menu and accepts an operation (modification operation) to select one of the classification information candidates.
[0077] In step S16, the control unit 11 corrects the category information. For example, the control unit 11 corrects the category information displayed in the input item K1 on the details page P2 shown in Fig. 8 to the category information of the candidate selected by the user. In the example shown in Fig. 8, the control unit 11 corrects "quotation" to "invoice." After step S16, the control unit 11 returns the process to step S14.
[0078] Returning to step S14, the control unit 11 displays related items related to the corrected category. For example, as shown in FIG. 9, the control unit 11 changes the input items K2 and K3 to "payment terms" and "payee", which are related items of "invoice". In this way, when the category information displayed in the category input item K1 on the details page P2 is corrected, the control unit 11 changes the contents of the related items (input items K2 and K3) to contents corresponding to the corrected category information. Thereafter, if the control unit 11 does not accept a correction operation from the user to correct the category information (S15: No), it transitions the process to step S17.
[0079] In step S17, the control unit 11 acquires input information for the required input item K0 displayed on the details page P2. For example, as shown in Fig. 6, when the user inputs information into the required input item K0 on the details page P2, the control unit 11 acquires the input information entered into the required input item K0. The control unit 11 may also acquire information corresponding to the required input item K0 from among the text information extracted from the file 121 as the input information.
[0080] Next, in step S18, the control unit 11 acquires input information of related items displayed on the details page P2. For example, as shown in Fig. 6, when the user inputs information into the input items K2 and K3 of the details page P2, the control unit 11 acquires the input information entered into the input items K2 and K3. The control unit 11 may also acquire information corresponding to the input items K2 and K3 from the text information extracted from the file 121 as the input information.
[0081] Next, in step S19, the control unit 11 determines whether or not an update operation has been received from the user. For example, when the user finishes inputting information into each input field on the details page P2 and presses the "Update" button (update operation), the control unit 11 receives the update operation from the user. When the control unit 11 receives the update operation from the user (S19: Yes), it shifts the process to step S20. The control unit 11 waits until it receives the update operation from the user (S19: No).
[0082] Next, in step S20, the control unit 11 moves the file 121 to be registered from the unregistered folder to the registered folder. For example, the control unit 11 moves the file F3 selected by the user (see step S12) from the unregistered folder to folder A of the registered folders (see FIG. 7). The control unit 11 registers the destination folder name (or URL) in the "storage location" of the file information database 122 (see FIG. 3).
[0083] Furthermore, the control unit 11 registers the input information entered by the user on the details page P2 in the "input information" of the file information database 122 (see FIG. 3). Specifically, the control unit 11 registers the input information of the required input item K0 and related items K2 and K3 entered by the user on the details page P2 in the "input information" of the file information database 122 (see FIG. 3).
[0084] Furthermore, the control unit 11 registers the classification information in the "registered classification" of the file information database 122 (see FIG. 3). If the user modifies the classification information (see step S16), the control unit 11 registers the modified classification information in the "registered classification" of the file information database 122.
[0085] Next, in step S21, the control unit 11 generates learning data (relearning data) based on the input information entered in each input item. For example, the control unit 11 generates learning data (relearning data) for the trained classification model 124 by associating vector data of the text information extracted from the file 121 with the division information. Furthermore, when the user corrects the division information (see step S16), the control unit 11 generates learning data (relearning data) for the trained classification model 124 by associating vector data of the text information extracted from the file 121 with the corrected division information.
[0086] For example, the control unit 11 preferentially extracts from the text information of the file 121 the area surrounding the portion that matches the text information (category information) entered in the "category" input item K1, vectorizes the extracted text information using the trained model for vectorization 123, and associates the vectorized vector data with the entered category information to generate training data (re-training data) for the trained model for classification 124.
[0087] The control unit 11 stores the generated learning data in the storage unit 12 and ends the learning data generation process. Every time the control unit 11 receives a selection operation of a file 121 from the user on the unregistered file list page P1, it executes each of the above-mentioned processes to generate and accumulate learning data.
[0088] Here, when the number of data items in the accumulated learning data becomes equal to or greater than a predetermined number, the control unit 11 updates the classification trained model 124 by performing machine learning using the learning data. As another embodiment, the control unit 11 may update the classification trained model 124 by performing machine learning using the learning data when a preset execution timing arrives. In this way, the control unit 11 repeatedly updates the classification trained model 124 each time a predetermined condition is satisfied.
[0089] When the updated trained model for classification 124 is installed in an output device (such as an operation terminal or a cloud server), the output device executes a process of extracting item information of the document category and input information of related items related to the category from input data of a document using the trained model for classification 124, and outputs the extracted item information and input information. The output device may also register the extracted item information and input information in a database (such as a form database).
[0090] As described above, the information processing device 1 of this embodiment uses a trained model to identify a specific item of a document (e.g., a "category" indicating the type of document) from input data of the document, and when a user operation to modify the identified specific item is received, generates learning data that associates modification item information of the modified specific item with input information of related items related to the specific item among multiple items included in the document, and updates the trained model using the generated learning data.
[0091] According to the above configuration, it is possible to perform re-learning using learning data that associates document classifications with related items related to the classifications and update the trained model, thereby improving the recognition accuracy of the trained model.
[0092] For example, in business document management, if a user modifies the automatic assignment of classification information (predicted classification) by a trained model for classification among pre-prepared classifications (invoice, estimate, delivery note, purchase order, receipt, contract, etc.) during the registration process, the corrected classification information and input information for individual items related to the classification are stored as training data for the corresponding input data (file), and the accumulated training data is used to re-train the existing trained model, so that the user's corrections are reflected in the automatic assignment of classification information, making it possible to automatically assign classification information that is more suitable for the user's environment.
[0093] [Disclosure Note] The following will provide an overview of the disclosure extracted from the above-described embodiment. Note that the configurations and processing functions described in the following supplementary notes can be selected and combined as desired.
[0094] <Appendix 1> A specific processing unit that identifies a predetermined item of a document from input data of the document using a trained model; a generation processing unit that, when a user operation to modify the specified item identified by the identification processing unit is accepted, generates learning data that associates modification item information of the modified specified item with input information of a related item that is related to the specified item among a plurality of items included in the document; A learning processing unit that updates the trained model using the learning data generated by the generation processing unit; An information processing device comprising:
[0095] <Appendix 2> The predetermined item is an item representing a type of the document among a plurality of items included in the document. 2. An information processing device according to claim 1.
[0096] <Appendix 3> When correcting the predetermined item identified by the identification processing unit, a plurality of pre-registered item candidates are displayed in a selectable manner, and the user's operation of selecting any one of the item candidates is accepted. 3. The information processing device according to claim 1 or 2.
[0097] <Appendix 4> when the user operation of selecting the candidate item is accepted, the related item is changed to a related item related to the candidate item selected by the user; 4. The information processing device according to claim 3.
[0098] <Appendix 5> acquiring the input information based on an input operation by a user for the related item; 5. The information processing device according to any one of claims 1 to 4.
[0099] <Appendix 6> the generation processing unit generates the learning data by associating vector data, which is obtained by vectorizing the text data of the input information, with the correction item information. 6. An information processing device according to any one of claims 1 to 5. <Appendix 7> The generation processing unit preferentially extracts from the text information of the input data a portion around a portion that matches the text information inputted in the predetermined field, vectorizes the extracted text information using a predetermined trained model, and generates the learning data by associating the vectorized vector data with the text information inputted in the predetermined field. 2. An information processing device according to claim 1.
[0100] <Appendix 8> when the input data is acquired, a file corresponding to the input data is stored in a first folder, and when the input information is acquired, the file is moved from the first folder to a second folder. An information processing device according to any one of appendix 1 to 7.
[0101] <Appendix 9> The learning processing unit updates the trained model by performing machine learning using the learning data when the number of data in the learning data becomes equal to or greater than a predetermined number or when a preset execution timing arrives. An information processing device according to any one of appendixes 1 to 8.
[0102] <Appendix 10> An output device that uses the trained model generated by an information processing device described in any one of Appendices 1 to 9 to execute a process for extracting item information of a specified item of the document and input information of related items related to the specified items from input data of the document, and outputs the extracted item information and input information. [Explanation of symbols]
[0103] 1: Information processing equipment 2: User device 11: Control section 12: Storage section 13: Operation display section 14: Communications Department 111: Specific processing unit 112: Display processing unit 113: Reception processing unit 114: Registration processing unit 115: Generation processing unit 116: Learning processing unit 121 :File 122: File information database 123: Pre-trained model for vectorization 124: Classification trained model P1: Unregistered file list page P2:Details page P3: Registration file list page
Claims
1. A specific processing unit that identifies a predetermined item of a document from input data of the document using a trained model; a generation processing unit that, when a user operation to modify the specified item identified by the identification processing unit is accepted, generates learning data that associates modification item information of the modified specified item with input information of a related item that is related to the specified item among a plurality of items included in the document; A learning processing unit that updates the trained model using the learning data generated by the generation processing unit; An information processing device comprising:
2. The predetermined item is an item representing a type of the document among a plurality of items included in the document. The information processing device according to claim 1 .
3. When correcting the predetermined item identified by the identification processing unit, a plurality of pre-registered item candidates are displayed in a selectable manner, and the user's operation of selecting any one of the item candidates is accepted. The information processing device according to claim 1 .
4. when the user operation of selecting the candidate item is accepted, the related item is changed to a related item related to the candidate item selected by the user; The information processing device according to claim 3 .
5. acquiring the input information based on an input operation by a user for the related item; The information processing device according to claim 1 .
6. the generation processing unit generates the learning data by associating vector data, which is obtained by vectorizing the text data of the input information, with the correction item information. The information processing device according to claim 1 .
7. The generation processing unit preferentially extracts from the text information of the input data a portion around a portion that matches the text information inputted in the predetermined field, vectorizes the extracted text information using a predetermined trained model, and generates the learning data by associating the vectorized vector data with the text information inputted in the predetermined field. The information processing device according to claim 1 .
8. when the input data is acquired, a file corresponding to the input data is stored in a first folder, and when the input information is acquired, the file is moved from the first folder to a second folder. The information processing device according to claim 1 .
9. The learning processing unit updates the trained model by performing machine learning using the learning data when the number of data in the learning data becomes equal to or greater than a predetermined number or when a preset execution timing arrives. The information processing device according to claim 1 .
10. An output device that uses the trained model generated by an information processing device according to any one of claims 1 to 9 to execute a process for extracting item information of a specified item of the document and input information of related items related to the specified items from the input data of the document, and outputs the extracted item information and the input information.
11. Identifying a predetermined item of a document from input data of the document using a trained model; generating learning data in which, when a user operation for correcting the specified item is received, correction item information of the corrected specified item and input information of a related item related to the specified item among a plurality of items included in the document are associated with each other; Updating the trained model using the generated training data; and An information processing method executed by one or more processors.
12. Identifying a predetermined item of a document from input data of the document using a trained model; generating learning data in which, when a user operation for correcting the specified item is received, correction item information of the corrected specified item and input information of a related item related to the specified item among a plurality of items included in the document are associated with each other; Updating the trained model using the generated training data; and An information processing program for causing one or more processors to execute the above.
Citation Information
Patent Citations
Information processing device and program
JP2022032831A
