Character recognition system, learning device, learning method, and program
The character recognition system addresses limitations in semi-supervised learning by expanding data based on character characteristics, enhancing accuracy and reducing manual labeling through data expansion and pseudo labeling techniques.
Patent Information
- Application Number
- JP2023070194
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2024-10-31
AI Technical Summary
Existing character recognition technologies using semi-supervised learning methods like VAT are limited in data expansion, as they only expand data in directions toward or away from class boundaries, failing to account for character-specific characteristics, necessitating large training datasets and manual labeling efforts.
A character recognition system that performs data expansion based on character characteristics, using methods such as distortion, noise addition, and resolution reduction to generate expanded data, and applies semi-supervised learning with pseudo labels to increase training data efficiency.
The system enhances character recognition accuracy by leveraging expanded data tailored to character traits, reducing the need for manual labeling and increasing the amount of usable training data, thus improving model performance.
Smart Images

Figure 2024155459000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a character recognition system, a learning device, a learning method, and a program. [Background technology]
[0002] There is a technology for performing optical character recognition (OCR) using deep learning technology. For example, Non-Patent Document 1 discloses a technology for performing character recognition using semi-supervised learning. Semi-supervised learning is a method for training a learning model using data to which a label is assigned (hereinafter, labeled data) and data to which no label is assigned (hereinafter, unlabeled data). By using semi-supervised learning, unlabeled data can be used for learning without the effort of labeling. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Akio Furuhata, Ryohei Tanaka, Kunio Nagata, "AI-based learning method that realizes highly accurate character recognition," Toshiba Review Vol. 74 No. 5 (September 2019) Summary of the Invention [Problem to be solved by the invention]
[0004] However, the technology of Non-Patent Document 1 uses Virtual Adversarial Training (VAT) as a semi-supervised learning method. Data augmentation in VAT is limited to only directions that smooth the output distribution and directions that are antagonistic to it. In other words, VAT uses augmented data that is deformed (augmented) by adding perturbation to the data, but the direction in which the data is augmented is limited to directions approaching and moving away from the boundary line in class classification according to the output distribution. For this reason, data augmentation according to the characteristics of characters is not performed.
[0005] Here, in order to generate a model that can perform character recognition with high accuracy, it is necessary to train the model with a huge amount of training data. By generating augmented data by converting the existing training data according to the characteristics of the characters to be recognized, the amount of training data used for character recognition training can be increased.
[0006] The present invention has been made in consideration of the above-mentioned circumstances, and aims to provide a character recognition system, a learning device, a learning method, and a program that can perform semi-supervised learning using data expanded according to the characteristics of the characters to be recognized. [Means for solving the problem]
[0007] The character recognition system of the present invention includes a data acquisition unit that acquires training data indicating characters to be used for training; a data extension unit that, when the training data is unlabeled data, generates extended data by processing the training data in accordance with the characteristics of the characters to be recognized; a learning control unit that trains a learning model using the training data and the extended data; a trained model storage unit that stores a trained model, which is the training model that has been trained; and a character recognition unit that performs character recognition using the trained model.
[0008] The learning device of the present invention includes a data acquisition unit that acquires learning data indicating characters to be learned, a data extension unit that, when the learning data is unlabeled data, generates extended data by processing the learning data in accordance with the characteristics of the characters to be recognized, and a learning control unit that trains a learning model using the learning data and the extended data.
[0009] The learning method of the present invention is a learning method performed by a computer, in which a data acquisition unit acquires learning data indicating characters to be learned, and if the learning data is unlabeled data, a data extension unit generates extended data by processing the learning data in accordance with the characteristics of the characters to be recognized, and a learning control unit trains a learning model using the learning data and the extended data.
[0010] The program of the present invention causes a computer to obtain learning data indicating characters to be used for learning, and if the learning data is unlabeled data, generates extended data by processing the learning data according to the characteristics of characters to be recognized, and trains a learning model using the learning data and the extended data. Effect of the Invention
[0011] According to the present invention, semi-supervised learning can be performed using data expanded according to the features of the characters to be recognized. [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram showing an example of the configuration of a character recognition system 1 according to an embodiment. [Diagram 2] 4 is a flowchart showing the flow of processing performed by a character recognition system 1 in an embodiment. [Diagram 3] 4 is a flowchart showing the flow of processing performed by a learning unit 10 in the embodiment. [Figure 4] 4 is a flowchart showing the flow of processing performed by a learning unit 10 in the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] (About Character Recognition System 1) Character recognition system 1 is a system that recognizes characters using deep learning technology. Character recognition system 1 is realized by a computer such as a cloud, a server device, or a PC (personal computer). Character recognition system 1 may be realized by one computer or multiple computers.
[0015] The character recognition system 1 performs in-line character recognition. In-line character recognition here means using an image showing a continuous character string (single-line image) to recognize each character shown in a single-line image. In-line character recognition has the advantage that fewer images need to be prepared for the same number of characters, making it easier to prepare data, compared to recognizing characters using an image showing one character (single-character image).
[0016] Furthermore, in the character recognition system 1, the number of learning data is increased by performing data expansion. The data expansion here means converting existing learning data according to the characteristics of the characters to be recognized. In order to generate a model that performs character recognition with high accuracy by learning using deep learning, it is necessary to train a huge amount of learning data. However, there are many difficulties in collecting a large amount of learning data. For example, when collecting character strings showing addresses and names, personal information is handled, so it is expected that it will be difficult to collect data showing addresses and names from a security standpoint. For this reason, in the character recognition system 1, the number of data to be trained in the learning model is increased by performing data expansion, and a model that performs character recognition with high accuracy is generated. Furthermore, by performing data expansion, it is possible to reproduce distortion of handwritten characters and paper noise as written on actual documents. This makes it possible to approach actual data, and therefore a model that performs character recognition with high accuracy can be generated.
[0017] Moreover, the character recognition system 1 performs learning by applying semi-supervised learning. Semi-supervised learning is a method of training a learning model using data to which labels are assigned (hereinafter, labeled data) and data to which labels are not assigned (hereinafter, unlabeled data). By using semi-supervised learning, unlabeled data can be used for learning without the effort of labeling. The label here is a classification result that is assigned to classify the learning data by type (class), and in character recognition, it is information that indicates what character an image represents. In general supervised machine learning, it is assumed that labels are assigned to all learning data. Then, learning is performed by changing the internal parameters of the learning model so that the error (loss) between the correct label assigned to the learning data and the output value (predicted label) output from the learning model in the machine learning process is reduced. However, in reality, labels are rarely assigned to collected learning data, and it is necessary to assign labels manually. For this reason, if there is a large amount of learning data, it takes effort such as man-hours, cost, and time to manually assign labels. In particular, when collecting learning data from historical documents, etc., it is expected that the characters and fonts in the learning data are unique. In such cases, in order to assign correct labels, the knowledge of an expert may be required, which may require additional work. For this reason, character recognition system 1 performs semi-supervised learning to reduce the work required to assign labels to learning data.
[0018] 1 is a block diagram showing an example of the configuration of a character recognition system 1 according to an embodiment. The character recognition system 1 includes, for example, a learning unit 10, a character recognition unit 12, a line image database 14, and a trained model storage unit 16.
[0019] (About learning section 10) The learning unit 10 trains a learning model. The learning unit 10 uses, for example, a convolutional recurrent neural network (CRNN) as the learning model. In the CRNN, learning is performed using an error backpropagation method, in which learning data is input to the learning model, and internal parameters of the learning model are changed so that an error (loss) between the learning data and an output value (predicted label) output from the learning data is reduced.
[0020] As shown in FIG. 1, the learning unit 10 includes, for example, a data acquisition unit 100, a data extension unit 102, a loss calculation unit 104, and a learning control unit 106.
[0021] The data acquiring unit 100 acquires learning data. The learning data is data showing characters for learning, for example, image information of a single line image. The data acquiring unit 100 reads and acquires the learning data to be used for learning, for example, by referring to the line image database 14. The line image database 14 stores image information of a single line image. The data acquiring unit 100 outputs the acquired learning data to the data expanding unit 102.
[0022] When the training data is unlabeled data, the data extension unit 102 processes the training data to generate extended data. When generating extended data, the data extension unit 102 processes the training data according to the characteristics of the characters to be recognized. In addition, the variation in the training data may be increased by performing data extension on labeled data.
[0023] Here, a specific method for generating extended data by the data extension unit 102 will be described. As data extension according to the characteristics of characters to be recognized, for example, the following method is available. Extension method (1) Data extension method that adds distortion to make it look like handwritten characters Augmentation method (2) Data augmentation method that adds background noise Extension method (3) Data extension method that reduces resolution
[0024] The extension method (1) will be described. The data extension unit 102 applies distortion to the image using any process that applies distortion to the image, such as elastic distortion, 1D uniform distortion (uniform distortion in a specific direction), etc. This makes it possible to generate extended data that looks like characters handwritten by different writers by stretching or shrinking the image in a specific direction. The data extension unit 102 arbitrarily sets, for example, the parameters of the distortion to be applied to the image of the learning data, such as the strength of the distortion and the area to be distorted, and generates extended data according to the set parameters. This makes it possible to generate a large number of mutually different extended data from one learning data.
[0025] The extension method (2) will be described. The data extension unit 102 adds a background to the image of the learning data by using any image processing. The background here may be any, but it is desirable that it is a background that is assumed to be added to a one-line image when performing character recognition, for example. For example, the background is a substantially uniform gray background. This makes it possible to reproduce the shadow that is mixed in when a character string printed on a paper medium is captured by a scanner, and the texture of the paper medium. Alternatively, the background is a photograph of a product such as vegetables, fruits, or drinking water. This makes it possible to reproduce an image showing a character string written on a flyer or the like. In addition, the background may be one in which a crease-like line is added as noise in a specific direction in the image. This makes it possible to reproduce a state in which the paper medium is folded and a part of the character written on the paper medium is missing along the crease. In addition, the background may be one in which the brightness of a specific area in the image is reduced. This makes it possible to reproduce a state in which a stain has occurred on the paper medium due to aging or the like.
[0026] The extension method (3) will now be described. The data extension unit 102 reduces the resolution by, for example, reducing the image size of the image. For example, if the image size before extension is 300×600 pixels, the data extension unit 102 reduces the image size to 1 / 4 and temporarily creates an image with an image size of 150×300 pixels. Then, the image with an image size of 150×300 pixels is enlarged again to an image with an image size of 300×600 pixels, thereby generating extended data with a reduced resolution. This makes it possible to reproduce images of characters captured by a low-resolution scanner or characters that are blurred and difficult to read.
[0027] The loss calculation unit 104 calculates the loss. The learning control unit 106 calculates the loss used in the backpropagation algorithm in the CRNN.
[0028] Here, a specific method for calculating the loss by the loss calculation unit 104 will be described. For example, the loss can be calculated by the following method. Calculation method (1) A calculation method in which the output difference between the training data and the augmented data is used as the loss Calculation method (2) A calculation method in which the difference between the output of the augmented data and the pseudo label is used as the loss Calculation method (3): A calculation method that dynamically changes the parameters of calculation method (2).
[0029] The calculation method (1) will be described. The loss calculation unit 104 inputs learning data to a learning model, thereby obtaining a predicted value (first output) output from the learning model. The loss calculation unit 104 also inputs extended data to the learning model, thereby obtaining a predicted value (second output) output from the learning model. The loss calculation unit 104 calculates a loss (first loss) indicating the magnitude of the difference between the respective predicted values (first output and second output).
[0030] The calculation method (2) will be described. When the calculation method (2) is used, the data extension unit 102 generates first and second extension data by processing the learning data to different degrees. For example, the first extension data is extension data that processes the learning data to a low degree, for example, an image with a small degree of distortion and a small distorted area in the extension method (1). On the other hand, the second extension data is extension data that processes the learning data to a high degree, for example, an image with a large degree of distortion and a large distorted area in the extension method (1).
[0031] The loss calculation unit 104 inputs the first extended data into a learning model, and calculates a pseudo label based on a predicted value (third output) output from the learning model. Here, the predicted value (third output) output from the learning model is a classification result indicating into which type (class) a character that is a target of character recognition is classified, and is, for example, information indicating the probability of being classified into each class. In this case, for example, the loss calculation unit 104 determines whether or not there is a class showing a probability equal to or higher than a threshold in the predicted value (third output). If there is a class showing a probability equal to or higher than the threshold, the loss calculation unit 104 sets the class showing the highest probability among the predicted values (third output) as the pseudo label.
[0032] The loss calculation unit 104 inputs the second extended data to the learning model to obtain a predicted value (fourth output) output from the learning model. The loss calculation unit 104 calculates a loss (second loss) indicating the magnitude of the difference between the predicted value (fourth output) and the pseudo label.
[0033] Calculation method (3) will be described. When calculation method (3) is used, similarly to calculation method (2), the data extension unit 102 generates first extended data and second extended data by processing the learning data to different degrees. The loss calculation unit 104 inputs the first extended data into a learning model, and calculates the difficulty of class classification based on a predicted value (third output) output from the learning model. For example, when the difference in probability between classes is large and there is a high possibility of classification into a specific class, the loss calculation unit 104 calculates the difficulty to be small. On the other hand, when the difference in probability between classes is small and there is a possibility of classification into any class, the loss calculation unit 104 calculates the difficulty to be large.
[0034] The loss calculation unit 104 sets a threshold value according to the degree of difficulty. When the degree of difficulty is low, that is, when classification is easy, the loss calculation unit 104 sets a large threshold value. On the other hand, when the degree of difficulty is high, that is, when classification is difficult, the loss calculation unit 104 sets a small threshold value. The loss calculation unit 104 determines whether or not the predicted value (third output) includes a class showing a probability equal to or higher than the threshold value set according to the degree of difficulty. When a class showing a probability equal to or higher than the threshold value exists, the loss calculation unit 104 sets the class showing the highest probability among the predicted values (third output) as the pseudo label.
[0035] When the training data is labeled data, the loss calculation unit 104 inputs the training data to a training model to obtain a predicted value (first output) output from the training model. The loss calculation unit 104 obtains a label (correct label) associated with the training data. The loss calculation unit 104 calculates a loss (third loss) indicating the magnitude of the difference between the predicted value (first output) and the label (correct label).
[0036] The learning control unit 106 changes the internal parameters of the learning model so that the loss calculated by the loss calculation unit 104 is reduced. In this way, the learning control unit 106 trains the learning model. The learning control unit 106 repeats learning while changing the internal parameters of the learning model, and terminates the learning when a learning termination condition is satisfied, for example, a condition that the accuracy of the predicted value by the learning model is equal to or higher than a threshold. The learning control unit 106 regards the learning model for which learning has been completed as a trained model, and stores information for constructing the trained model, for example, information indicating the internal parameters of the CRNN, in the trained model storage unit 16.
[0037] (About the character recognition unit 12) The character recognition unit 12 performs character recognition using the trained model. The character recognition unit 12 refers to the trained model storage unit 16 to acquire information for constructing the trained model. The character recognition unit 12 constructs the trained model using the acquired information. The character recognition unit 12 also refers to the line image database 14 to acquire image information of a line image that is the target of prediction (character recognition). The character recognition unit 12 inputs the acquired image information into the trained model and acquires a predicted value output from the trained model. The character recognition unit 12 regards the predicted value output from the trained model as the result of character recognition.
[0038] (About Line Image Database 14) The line image database 14 stores image information of a line image. The line images stored in the line image database 14 may include a line image for learning (learning data) and a line image to be subjected to character recognition. The line image for learning (learning data) includes labeled data and unlabeled data.
[0039] (Regarding the trained model storage unit 16) The trained model storage unit 16 stores information for constructing a trained model, for example, information indicating internal parameters of the CRNN.
[0040] The storage unit (line image database 14 and learned model storage unit 16) included in character recognition system 1 is configured with a storage medium such as a hard disk drive (HDD), a flash memory, an electrically erasable programmable read only memory (EEPROM), a random access read / write memory (RAM), a read only memory (ROM), or a combination of these. The storage unit included in character recognition system 1 stores programs for executing various processes in character recognition system 1, and temporary data used when performing various processes.
[0041] In addition, the functional units (learning unit 10 and character recognition unit 12) of the character recognition system 1 are realized by executing a program on a CPU (Central Processing Unit) and / or a GPU (Graphics Processing Unit) that the character recognition system 1 has as hardware.
[0042] Here, the flow of processing performed by the character recognition system 1 will be described with reference to FIG. 2. FIG. 2 is a flowchart showing the flow of processing performed by the character recognition system 1. First, the character recognition system 1 generates a trained model by the learning unit 10 (step S1). The character recognition system 1 stores the generated trained model in the trained model storage unit 16 (step S2). The character recognition system 1 performs character recognition by the character recognition unit 12 using the trained model stored in the trained model storage unit 16 (step S3). The character recognition system 1 outputs the recognition result of the character recognition (step S4).
[0043] Here, the flow of the process performed by the learning unit 10 will be described with reference to Fig. 3 and Fig. 4. Fig. 3 and Fig. 4 are flowcharts showing the flow of the process performed by the learning unit 10. Fig. 3 and Fig. 4 show step S1 in Fig. 2, that is, the flow of the process of generating a trained model.
[0044] FIG. 3 shows a process flow for generating a trained model using loss calculation by the calculation method (1). First, the learning unit 10 acquires training data by the data acquisition unit 100 (step S100). The learning unit 10 determines whether the acquired training data is unlabeled data (step S101). If the training data is unlabeled data, the learning unit 10 generates extended data by the data extension unit 102 (step S102). The data extension unit 102 performs data extension of the training data by using an extension method according to the characteristics of the characters to be recognized, for example, any one of the extension methods (1) to (3), to generate the extended data. On the other hand, if the training data is labeled data, the learning unit 10 proceeds to step S103. Here, the labeled data may be subjected to data extension to increase the variation in the training data.
[0045] The learning unit 10 calculates the loss by the loss calculation unit 104 (step S103). When the learning data is unlabeled data, the loss calculation unit 104 calculates the loss (first loss) using the loss calculation by the calculation method (1). On the other hand, when the learning data is labeled data, the loss calculation unit 104 calculates the loss (third loss) indicating the magnitude of the difference between the predicted value of the learning data (first output) and the label (correct label) associated with the learning data.
[0046] The learning unit 10 changes the internal parameters of the learning model by the learning control unit 106 so that the loss (first loss or third loss) becomes smaller (step S104). The learning unit 10 determines whether or not to end the learning (step S105). The learning unit 10 determines to end the learning when, for example, a predetermined learning end condition is satisfied. When the learning is to be ended, the learning unit 10 ends the process of generating the trained model. On the other hand, when the learning is not to be ended, the learning unit 10 returns to step S100 and repeatedly trains the learning model.
[0047] FIG. 4 shows a process flow for generating a trained model using loss calculation by calculation method (2) or calculation method (3). First, the learning unit 10 acquires training data by the data acquisition unit 100 (step S110). The learning unit 10 determines whether the acquired training data is unlabeled data or not (step S111). If the training data is unlabeled data, the learning unit 10 generates two types of extended data according to the characteristics of characters to be recognized by the data extension unit 102, and calculates a pseudo label from one extended data to correspond to the other extended data (step S112). On the other hand, if the training data is labeled data, the learning unit 10 proceeds to step S113. Here, in order to increase the variation in the training data, data extension may also be performed on the labeled data.
[0048] The learning unit 10 calculates the loss by the loss calculation unit 104 (step S113). When the learning data is unlabeled data, the loss calculation unit 104 calculates a loss (second loss) indicating the magnitude of the difference between the predicted value (fourth output) output from the learning model and the pseudo label. On the other hand, when the learning data is labeled data, the loss calculation unit 104 calculates a loss (third loss) indicating the magnitude of the difference between the predicted value (first output) of the learning data and the label (correct label) associated with the learning data.
[0049] The learning unit 10 changes the internal parameters of the learning model by the learning control unit 106 so that the loss (the second loss or the third loss) becomes smaller (step S114). The learning unit 10 determines whether or not to end the learning (step S115). The learning unit 10 determines to end the learning when, for example, a predetermined learning end condition is satisfied. When the learning is to be ended, the learning unit 10 ends the process of generating the trained model. On the other hand, when the learning is not to be ended, the learning unit 10 returns to step S110 and repeatedly trains the learning model.
[0050] As described above, the character recognition system 1 of the embodiment includes the data acquisition unit 100, the data extension unit 102, the learning control unit 106, the trained model storage unit 16, and the character recognition unit 12. The data acquisition unit 100 acquires learning data in which characters for learning are indicated. When the learning data is unlabeled data, the data extension unit 102 generates extended data by processing the learning data according to the characteristics of the characters to be recognized. The learning control unit 106 trains a learning model using the learning data and the extended data. The trained model storage unit 16 stores a trained model, which is a trained learning model. The character recognition unit 12 performs character recognition using the trained model. As a result, in the character recognition system 1 of the embodiment, the learning data can be processed according to the characteristics of the characters to be recognized, regardless of the direction of approaching or leaving the boundary of the class classification of unlabeled data, which is limited in semi-supervised learning using VAT, and further, semi-supervised learning can be performed using the processed data (extended data). Therefore, semi-supervised learning can be performed using data that has been expanded (processed) according to the characteristics of the characters to be recognized.
[0051] Moreover, the character recognition system 1 of the embodiment further includes a loss calculation unit 104. The loss calculation unit 104 calculates a first loss indicating the magnitude of the difference between a first output output from the learning model by inputting the learning data to the learning model and a second output output from the learning model by inputting the extended data to the learning model. The learning control unit 106 trains the learning model by changing the internal parameters of the learning model so that the first loss is small. As a result, in the character recognition system 1 of the embodiment, the learning model can be trained so that the learning data and the extended data have the same prediction result. Since the extended data is data obtained by processing the learning data according to the characteristics of the characters to be recognized, it is desirable that the learning data and the extended data have the same prediction result. Therefore, it is possible to generate a trained model with high prediction accuracy by training the learning model so that the learning data and the extended data have the same prediction result. Therefore, a trained model with high prediction accuracy can be generated by semi-supervised learning using data extended (processed) according to the characteristics of the characters to be recognized.
[0052] Furthermore, in the character recognition system 1 of the embodiment, when the training data is labeled data, the loss calculation unit 104 inputs the training data into the training model, and calculates a second loss indicating the magnitude of the difference between a first output output from the training model and a label associated with the training data. The learning control unit 106 changes the internal parameters of the training model so that the sum of the first loss and the third loss becomes small. As a result, in the character recognition system 1 of the embodiment, the training model can be trained so that the prediction result of the training data and the label associated with the training data are the same prediction result. Therefore, it is possible to generate a trained model with high prediction accuracy.
[0053] In the character recognition system 1 of the embodiment, the data extension unit 102 generates first and second extended data by processing the learning data to different degrees. The loss calculation unit 104 inputs the first extended data to the learning model, and calculates a pseudo label based on a third output output from the learning model. The loss calculation unit 104 calculates a second loss indicating the magnitude of the difference between a fourth output output from the learning model by inputting the second extended data to the learning model, and the pseudo label. The learning control unit 106 trains the learning model by changing the internal parameters of the learning model so that the second loss is small. As a result, in the character recognition system 1 of the embodiment, the learning model can be trained so that the pseudo label generated from the first extended data matches the prediction result for the second extended data. The pseudo label is generated using the first extended data generated by processing the second extended data and the original learning data. For this reason, it is desirable to train the second extended data so that the pseudo label matches the pseudo label. Therefore, by training the learning model so that the second extended data and the pseudo label match, it is possible to generate a trained model with high prediction accuracy. Therefore, a trained model with high prediction accuracy can be generated by semi-supervised learning using data extended (processed) according to the characteristics of the characters to be recognized.
[0054] Furthermore, in character recognition system 1 of the embodiment, loss calculation unit 104 calculates the difficulty of class classification based on the third output. Loss calculation unit 104 sets a threshold for each class according to the calculated difficulty, and calculates a pseudo label using the set threshold. As a result, in character recognition system 1 of the embodiment, even unlabeled data whose class classification is unclear, that is, data whose class classification is difficult, can be used for learning. This makes it possible to prevent the amount of data used for learning from being reduced.
[0055] Furthermore, in the character recognition system 1 of the embodiment, the data extension unit 102 generates characters represented in the training data by processing the characters represented in the training data to look like handwriting, as the characters represented in the extended data. In this way, the character recognition system 1 of the embodiment can generate a large number of handwritten-style characters from the training data, and can train a training model using the generated training data. Therefore, it is possible to generate a trained model that can perform character recognition of handwritten-style characters with high accuracy.
[0056] In the character recognition system 1 of the embodiment, the data acquisition unit 100 acquires characters shown in a one-line image (an image showing a continuous character string) as learning data. This makes it easier to collect learning data in the first embodiment than in the case of using character recognition using a one-character image (single character recognition).
[0057] In the above embodiment, a case where a one-line image is used to recognize each character shown in the one-line image is described as an example. However, the present invention is not limited to this. The character recognition system 1 may be configured to perform character recognition using a one-character image (single character recognition), and even when performing single character recognition, it is possible to predict a label in semi-supervised learning using data expanded according to the characteristics of the character to be recognized.
[0058] The character recognition system 1 and the learning unit 10 in the above-described embodiment may be realized in whole or in part by a computer. In that case, a program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above-described program may be a program for realizing a part of the above-described function, or may be a program that can realize the above-described function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA.
[0059] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Explanation of symbols]
[0060] 1. Character recognition system 10…Learning Department 102…Data extension section 104...Loss calculation section 106...Learning control unit 12...Character recognition section 14...Line Image Database 16…Trained model memory section
Claims
1. A data acquisition unit that acquires learning data in which learning characters are indicated; a data extension unit that generates extended data by processing the learning data in accordance with characteristics of characters to be recognized when the learning data is unlabeled data; A learning control unit that learns a learning model using the learning data and the extended data; A trained model storage unit that stores a trained model, which is the trained model; A character recognition unit that performs character recognition using the trained model; A character recognition system comprising:
2. a loss calculation unit that calculates a first loss indicating a magnitude of a difference between a first output output from the learning model by inputting the learning data into the learning model and a second output output from the learning model by inputting the extended data into the learning model, the learning control unit causes the learning model to learn by changing an internal parameter of the learning model so as to reduce the first loss; The character recognition system of claim 1 .
3. The data extension unit generates first extended data and second extended data by processing the learning data to different degrees; a loss calculation unit that calculates a pseudo label based on a third output output from the learning model by inputting the first extended data into the learning model, and calculates a second loss indicating a magnitude of a difference between a fourth output output from the learning model by inputting the second extended data into the learning model and the pseudo label; the learning control unit causes the learning model to learn by changing an internal parameter of the learning model so as to reduce the second loss; The character recognition system of claim 1 .
4. the loss calculation unit calculates a difficulty of classifying the classes based on the third output, sets a threshold for each class according to the calculated difficulty, and calculates the pseudo label using the set threshold.
4. The character recognition system of claim 3.
5. The data extension unit generates a character represented in the learning data in a handwritten style as the character represented in the extended data. The character recognition system of claim 1 .
6. The data acquisition unit acquires characters shown in a one-line image showing a continuous character string as the learning data. The character recognition system of claim 1 .
7. A data acquisition unit that acquires learning data in which learning characters are indicated; a data extension unit that generates extended data by processing the learning data in accordance with characteristics of characters to be recognized when the learning data is unlabeled data; A learning control unit that learns a learning model using the learning data and the extended data; A learning device comprising:
8. A learning method performed by a computer, comprising: The data acquisition unit acquires learning data in which learning characters are indicated, a data extension unit, when the training data is unlabeled data, generating extended data by processing the training data in accordance with features of characters to be recognized; a learning control unit that uses the learning data and the extended data to train a learning model; How to learn.
9. On the computer, Acquire learning data showing learning characters, When the training data is unlabeled data, generating extended data by processing the training data according to characteristics of characters to be recognized; A learning model is trained using the training data and the extended data. program.
