Recognition system, recognition method, program, learning method, trained model, distillation model, and learning dataset generation method
The recognition system enhances object recognition accuracy by using a trained model to generate higher resolution and difference images from low-resolution inputs, effectively addressing the limitations of existing systems in handling resolution differences.
Patent Information
- Application Number
- JP2020186047
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-06
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-11-06
AI Technical Summary
Existing object recognition systems face challenges in improving accuracy, particularly when dealing with low-resolution images, as they often fail to effectively utilize the information lost due to resolution differences.
A recognition system that utilizes a trained model comprising a first model part to generate a higher resolution image and a difference image from a low-resolution input, and a second model part to extract feature amounts from these images, enhancing the accuracy of object recognition.
The system significantly improves the accuracy of object recognition by leveraging the difference image to recover lost details, achieving a higher correct answer rate compared to existing methods.
Smart Images

Figure 0007547945000005 
Figure 0007547945000004 
Figure 0007547945000001
Abstract
Description
[Technical field]
[0001] The present disclosure generally relates to a recognition system, a recognition method, a program (computer program), a training method, a trained model, a distilled model, and a training dataset generation method. The present disclosure particularly relates to a recognition system, a recognition method, a program (computer program), a training method, a trained model, a distilled model, and a training dataset generation method for an object appearing in an image. [Background technology]
[0002] Non-Patent Document 1 discloses a face recognition technology using deep learning. Non-Patent Document 1 discloses that in order to reduce the effect of low resolution images used for face recognition, a generative network (super-resolution network) is used to generate high-resolution images from low-resolution images, and face recognition is performed based on the high-resolution images obtained by the super-resolution network. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Bayram Bayramli and 3 others, “FH-GAN: Face Hallucination and Recognition using Generative Adversarial”, [online], May 16, 2019, [Retrieved September 3, 2020], Cornell University, Internet<URL:https: / / arxiv.org / abs / 1905.06537> Summary of the Invention [Problem to be solved by the invention]
[0004] The present disclosure provides a recognition system, a recognition method, a program, a learning method, a trained model, a distilled model, and a learning dataset generation method that can improve the accuracy of object recognition. [Means for solving the problem]
[0005] A recognition system according to an embodiment of the present disclosure includes a storage device that stores a trained model, and an arithmetic circuit that can access the storage device. The trained model includes a first model unit and a second model unit. The first model unit is a model trained to output a second resolution image and a difference image in response to an input of a first resolution image. The first resolution image is an image in which an object is captured at a first resolution. The second resolution image corresponds to an image obtained by converting the first resolution image to a second resolution higher than the first resolution. The difference image is an image corresponding to the difference between the first resolution image and the second resolution image. The second model unit is a model trained to output a feature amount of an object in response to an input of the second resolution image and the difference image. The arithmetic circuit executes an acquisition process for acquiring the first resolution image as an object image, and an inference process for providing the target image acquired in the acquisition process to the trained model and causing the trained model to calculate a feature amount of an object captured in the target image.
[0006] A recognition method according to an embodiment of the present disclosure is a recognition method executed by an arithmetic circuit that can access a storage device that stores a trained model. The trained model includes a first model unit and a second model unit. The first model unit is a model trained to output a second resolution image and a difference image in response to an input of a first resolution image. The first resolution image is an image in which an object is captured at a first resolution. The second resolution image corresponds to an image obtained by converting the first resolution image to a second resolution higher than the first resolution. The difference image is an image corresponding to the difference between the first resolution image and the second resolution image. The second model unit is trained to output a feature amount of the object in response to an input of the second resolution image and the difference image. The recognition method includes an acquisition process for acquiring the first resolution image as a target image, and an inference process for providing the target image received in the acquisition process to the trained model and causing the trained model to calculate a feature amount of the object captured in the target image.
[0007] A program according to one aspect of the present disclosure is a program for causing an arithmetic circuit to execute a recognition method.
[0008] A learning method according to an aspect of the present disclosure includes a preparation step of preparing a model, and a learning step of executing machine learning using the model prepared in the preparation step. The model includes a first model unit, a second model unit, and a third model unit. The first model unit is a model for outputting a second resolution image and a difference image in response to an input of a first resolution image. The first resolution image is an image in which an object is captured at a first resolution. The second resolution image corresponds to an image obtained by converting the first resolution image to a second resolution higher than the first resolution. The difference image is an image corresponding to the difference between the first resolution image and the second resolution image. The second model unit is a model for outputting a feature amount of an object in response to an input of the second resolution image and the difference image from the first model unit. The third model unit is a model for outputting a result of object recognition in response to an input of the feature amount of the object from the second model unit. The learning step includes inputting a first resolution image and having the model learn the relationship between the first resolution image and the features of the objects depicted in the first resolution image through machine learning using a learning dataset in which the result of recognizing the objects depicted in the first resolution image is taken as the correct answer.
[0009] A trained model according to an embodiment of the present disclosure includes a first model unit and a second model unit. The first model unit is a model trained to output a second resolution image and a difference image in response to an input of a first resolution image. The first resolution image is an image in which an object is captured at a first resolution. The second resolution image corresponds to an image obtained by converting the first resolution image to a second resolution higher than the first resolution. The difference image is an image corresponding to the difference between the first resolution image and the second resolution image. The second model unit is a model trained to output a feature amount of an object in response to an input of the second resolution image and the difference image.
[0010] A distilled model of one aspect of the present disclosure is generated by distillation of a trained model.
[0011] A recognition system according to an embodiment of the present disclosure includes a storage device that stores a distilled model, and an arithmetic circuit that can access the storage device. The arithmetic circuit executes an acquisition process and an inference process. The acquisition process is a process of acquiring a first resolution image as a target image. The inference process is a process of providing the target image acquired in the acquisition process to the distilled model, and causing the distilled model to calculate feature amounts of an object appearing in the target image.
[0012] A learning dataset generation method according to one embodiment of the present disclosure includes a first step, a second step, a third step, and a fourth step. The first step is a step of acquiring a reference image in which an object is captured. The second step is a step of converting the reference image into a low-resolution image having a lower resolution than the reference image. The third step is a step of generating a difference image corresponding to the difference between the reference image and the low-resolution image. The fourth step is a step of generating a learning dataset in which the low-resolution image is input and the reference image and the difference image are used as correct answers. Effect of the Invention
[0013] According to an aspect of the present disclosure, it is possible to improve the accuracy of object recognition. [Brief description of the drawings]
[0014] [Figure 1] Block diagram of a recognition system according to an embodiment. [Diagram 2] An illustration of the recognition method using a trained model implemented in the recognition system. [Diagram 3] Flowchart of the recognition method [Figure 4] Flowchart of a training method for generating a trained model for use in a recognition system. [Diagram 5] Learning method diagram [Figure 6] Block diagram of a learning system for implementing the learning method DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0015] (1) Form of Implementation (1-1) Overview 1 shows a recognition system 10 according to an embodiment. The recognition system 10 is a system for recognizing an object 100. In particular, the recognition system 10 is used to acquire image data of the object 100 from an imaging system 200, provide a result of recognition of the object 100 in the image to a control system 300, and cause the control system 300 to execute an operation according to the recognition result.
[0016] The target object 100 is a visible object that is to be recognized by the recognition system 10. In this embodiment, the target object 100 is assumed to be a human. The target object 100 is not limited to a human, but may be a living thing other than a human, such as an animal. The target object 100 is not limited to a living thing, but may be an inanimate object. Examples of inanimate objects include moving objects including vehicles such as motorcycles, automobiles, ships, and aircraft, and drones. The target object 100 is not limited to the entire object, but may be a part of the object.
[0017] The imaging system 200 is a system for generating data of an image in which the object 100 appears. In this embodiment, "in which the object 100 appears" means that at least a part of the object 100 appears, not the whole of the object 100. For example, if the object 100 is a person, an image in which the person's face appears can be said to be an image in which the object 100 appears. The imaging system 200 is communicatively connected to the recognition system 10, and is capable of providing data of an image in which the object 100 appears to the recognition system 10. The imaging system 200 includes one or more cameras (digital cameras).
[0018] The control system 300 is a system having a function of executing an operation according to the result of the recognition of the object 100. In one example, the control system 300 can be used to control the door of a facility such as a factory, a store, or a building (the entire building, or within a floor). The control system 300 can unlock the door if the result of the recognition of the object 100 indicates that the object 100 is a person who is permitted to pass through the door. In another example, the control system 300 can be used to control the operation (behavior) of a robot. The control system 300 can determine the operation of the robot according to the result of the recognition of the object 100. The control system 300 is communicatively connected to the recognition system 10 and can receive the result of the recognition of the object 100 from the recognition system 10. The control system 300 includes a computer system including one or more memories, one or more processors, and the like.
[0019] As shown in FIG. 1, the recognition system 10 includes a storage device 12 that stores a trained model M10, and an arithmetic circuit 13 that can access the storage device 12. As shown in FIG. 2, the trained model M10 includes a first model unit M11 and a second model unit M12. The first model unit M11 is a model trained to output a second resolution image P20 and a difference image P30 corresponding to an image obtained by converting the first resolution image P10 to a second resolution higher than the first resolution, in response to an input of a first resolution image P10 in which the object 100 is captured at a first resolution. The difference image P30 is an image corresponding to the difference between the first resolution image P10 and the second resolution image P20. The second model unit M12 is a model trained to output a feature amount F11 of the object 100 in response to an input of the second resolution image P20 and the difference image P30 from the first model unit M11. As shown in Figure 3, the calculation circuit 13 executes an acquisition process S11 in which a first resolution image P10 is acquired as a target image, and an inference process S12 in which the target image acquired in the acquisition process S11 is provided to a trained model M10 and an inference process S12 in which the trained model M10 calculates a feature value F11 of an object 100 appearing in the target image.
[0020] In this way, the recognition system 10 uses the difference image P30 together with the second resolution image P20, which has a higher resolution than the first resolution image P10, to extract the feature amount F11 of the object 100 from the first resolution image P10 in which the object 100 is captured. Since the second resolution image P20 has a higher resolution than the first resolution image P10, it can be said that the second resolution image P20 is an image of the same object 100 as the first resolution image P10, but captured closer than the first resolution image P10. It is clear from experience that an image of the object 100 captured closer can be expected to improve the accuracy of recognition of the object 100. In consideration of this point, it is considered that the information lost due to the increase in the distance from the object 100 has a large effect on the accuracy of recognition of the object 100. For example, when the first resolution image P10 and the second resolution image P20 are images of a person's face, the information lost due to the increase in the distance from the object 100 includes detailed information on the eyes, nose, mouth, etc. of the face. On the other hand, information such as the contour of the face is considered to be retained between the first resolution image P10 and the second resolution image P20. Since the difference image P30 is an image corresponding to the difference between the first resolution image P10 and the second resolution image P20, it can be said to represent information lost from the second resolution image P20 due to an increase in the distance from the object 100. The trained model M10 used by the recognition system 10 uses the difference image P30 together with the second high resolution image P20 to extract the feature amount F11 of the object 100 from the first resolution image P10 in which the object 100 appears. Therefore, the recognition system 10 can improve the accuracy of recognition of the object 100.
[0021] (1-2) Details (1-2-1) Recognition system The following is a detailed description of the recognition system 10. As shown in Fig. 1, the recognition system 10 includes an interface 11, a storage device 12, and an arithmetic circuit 13. In this embodiment, the recognition system 10 is realized by one server.
[0022] The interface 11 is used for inputting information to the recognition system 10 and outputting information from the recognition system 10. The interface 11 includes an input / output device 111 and a communication device 112. The input / output device 111 has a function as an input device for inputting information from a user and an output device for outputting information to a user. The input / output device 111 includes one or more human-machine interfaces. Examples of the human-machine interfaces include input devices such as a keyboard, a pointing device (mouse, trackball, etc.), and a touchpad, output devices such as a display and a speaker, and input / output devices such as a touch panel. The communication device 112 is communicatively connected to an external device or system. In this embodiment, the communication device 112 is used for communication with the imaging system 200 and the control system 300 through a communication network. The communication device 112 includes one or more communication interfaces. The communication device 112 is connectable to a communication network and has a function of communicating through the communication network. The communication device 112 complies with a predetermined communication protocol. The predetermined communication protocol may be selected from a variety of well-known wired and wireless communication standards.
[0023] The storage device 12 is used to store information used by the arithmetic circuit 13 and information generated by the arithmetic circuit 13. The storage device 12 includes one or more storages (non-transitory storage media). The storage may be, for example, any of a hard disk drive, an optical drive, and a solid-state drive (SSD). The storage may also be any of an internal type, an external type, and a NAS (network-attached storage) type.
[0024] The information stored in the storage device 12 includes a trained model M10 and a database D10. Fig. 1 shows a state in which the storage device 12 stores all of the trained model M10 and the database D10. The trained model M10 and the database D10 do not need to be stored in the storage device 12 at all times, and only need to be stored in the storage device 12 when needed by the arithmetic circuit 13.
[0025] The trained model M10 is used by the recognition system 10 to recognize the object 100. As shown in Fig. 2, the trained model M10 is trained to output a feature quantity F11 of the object 100 appearing in the first resolution image P10 in response to an input of the first resolution image P10. The trained model M10 includes a first model portion M11 and a second model portion M12.
[0026] The first model unit M11 is a model (trained model) trained to output the second resolution image P20 and the difference image P30 in response to the input of the first resolution image P10. The first resolution image P10 is an image in which the object 100 is captured at the first resolution. In this embodiment, the object 100 is a person. The first resolution image P10 is assumed to be an image in which not the entire object 100 but a part of the characteristic portion is captured. The characteristic portion is a portion that can contribute to the recognition of the object 100, and in this embodiment, the face of the object 100 is assumed. The second resolution image P20 corresponds to an image obtained by converting the first resolution image P10 into a second resolution higher than the first resolution. This means that the second resolution image P20 is identical or substantially identical in content to an image obtained by converting the first resolution image P10 into a second resolution higher than the first resolution, regardless of the method of acquiring the second resolution image P20. In yet another expression, the second resolution image P20 is an image in which the object 100 is captured in the same composition as the first resolution image P10, but the resolution is higher than that of the first resolution image P10. That is, the second resolution image P20 is an image in which the object 100 is captured in the same composition as the first resolution image P10, but in a second resolution higher than the first resolution. In other words, the first resolution image P10 corresponds to an image obtained by converting the second resolution image P20 into a first resolution lower than the second resolution. This means that the first resolution image P10 is identical or substantially identical in content to an image obtained by converting the second resolution image P20 into a first resolution lower than the second resolution, regardless of the method of acquiring the first resolution image P10. In yet another expression, the first resolution image P10 is an image in which the object 100 is captured in the same composition as the second resolution image P20, but the resolution is lower than that of the second resolution image P20. That is, the first resolution image P10 is an image in which the object 100 has the same composition as the second resolution image P20, but is captured at a first resolution lower than the second resolution. In the relationship between the first resolution image P10 and the second resolution image P20, the first resolution image P10 is a low resolution image of the object 100, and the second resolution image P20 is a high resolution image of the object 100. For example, the first resolution is 22×26 pixels, and the second resolution is 112×96 pixels.The difference image P30 is an image corresponding to the difference between the first resolution image P10 and the second resolution image P20. The first resolution image P10 and the second resolution image P20 are images in which the object 100 has the same composition but is captured at different resolutions. Therefore, the difference image P30 can be said to be an image showing the difference in the appearance of the object 100 caused by the difference in resolution between the first resolution image P10 and the second resolution image P20. The difference in resolution can be considered as the difference in distance to the object 100. Therefore, the difference image P30 can be said to represent information lost in the first resolution image P10 from the second resolution image P20 due to the increase in the distance to the object 100. The first model unit M11, which will be described in detail later, is obtained from a trained model generated by executing machine learning (supervised learning) using a learning data set in which the first resolution image P10 is input and the second resolution image P20 and the difference image P30 are used as correct answers, using a model having a neural network structure. In this embodiment, the first model unit M11 outputs the second resolution image P20 having a higher resolution than the first resolution image P10, and therefore can be said to be a super-resolution network.
[0027] The second model unit M12 is a model (trained model) trained to output a feature amount F11 of the object 100 in response to the input of the second resolution image P20 and the difference image P30. The feature amount F11 of the object 100 is information used in the arithmetic circuit 13 to recognize (identify) the object 100. The feature amount F11 is expressed, for example, as an n-dimensional vector (n is an arbitrary integer). The second model unit M12 is obtained from a trained model generated by executing machine learning (supervised learning) using a learning data set in which the second resolution image P20 and the difference image P30 are input and the result of the recognition of the object 100 is regarded as the correct answer, using a model having a neural network structure, as described in detail later. In this embodiment, since the first resolution image P10 and the second resolution image P200 are images in which the face of the object 100 is captured, the second model unit M12 can also be said to be a face recognition network.
[0028] In the trained model M10, the output of the first model unit M11 is connected to the input of the second model unit M12. Thus, in response to the input of the first resolution image P10, the second resolution image P20 and the difference image P30 output from the first model unit M11 are input to the second model unit M12, and the feature quantity F11 is output from the second model unit M12.
[0029] The trained model M10 described above is generated by a learning system 20 described later. A method for generating the trained model M10 (learning method) will be described in detail in "(1-2-2) Learning Method" described later.
[0030] The database D10 is a database related to the object 100 to be recognized (identified) in the recognition system 10. The database includes, for each object 100 to be recognized in the recognition system 10, a correspondence relationship between the identification information of the object 100 and a feature F12 for matching. The identification information includes an identification number assigned to the object 100. The feature F12 for matching is used for matching with the feature F11 obtained by the trained model M10. In this embodiment, the object 100 is a person, and in the database D10, for example, in the case of person A, the identification information is the identification information of person A, and the feature F12 corresponds to the feature F11 obtained by the trained model M10 from an image in which person A appears. The feature F12 is, for example, a vector of the same dimension as the feature F11.
[0031] The arithmetic circuit 13 is a circuit that controls the operation of the recognition system 10. The arithmetic circuit 13 is connected to the interface 11 and can access the storage device 12 (i.e., can access the trained model M10 and the database D10). The arithmetic circuit 13 can be realized, for example, by a computer system including one or more processors (microprocessors) and one or more memories. The one or more processors execute a program (stored in one or more memories or the storage device 12) to realize the function of the arithmetic circuit 13. The program is pre-recorded in the storage device 12 here, but may be provided via a telecommunication line such as the Internet, or recorded on a non-transitory recording medium such as a memory card.
[0032] The arithmetic circuit 13 is configured to execute an acquisition process S11, an inference process S12, and an output process S13 (see FIG. 3).
[0033] The acquisition process S11 is a process for acquiring the first resolution image P10 as a target image. In this embodiment, the acquisition process S11 indirectly acquires the first resolution image P10 as a target image. The recognition system 10 is connected to the imaging system 200 through the interface 11. The acquisition process S11 extracts the first resolution image P10 from the image acquired from the imaging system 200 through the interface 11 and acquires it as a target image. Specifically, the acquisition process S11 extracts an area in which the target object 100 appears as a target image (first resolution image P10) from the image from the imaging system 200. In this embodiment, since the first resolution image P10 is an image of the face of the target object 100, the acquisition process S11 extracts an image of the face of the target object 100 from the image from the imaging system 200. The acquisition process S11 can also directly acquire the first resolution image P10 as a target image. For example, if a first resolution image P10 is provided to the recognition system 10 from the imaging system 200 via the interface 11, the acquisition process S11 can acquire the provided first resolution image P10 as it is as a target image.
[0034] The inference process S12 is a process of providing the target image acquired in the acquisition process S11 to the trained model M10 and causing the trained model M10 to calculate the feature amount F11 of the target object 100 appearing in the target image. In particular, in this embodiment, the inference process S12 includes recognizing the target object 100 based on the feature amount F11 of the target object 100 appearing in the target image. More specifically, the inference process S12 compares the feature amount F11 of the target object 100 appearing in the target image with the feature amount F12 of the database D10 of the storage device 12 to obtain a degree of agreement (similarity) between the feature amount F11 and the feature amount F12, and recognizes the target object 100 appearing in the target image based on the similarity. In this embodiment, since the feature amount F11 and the feature amount F12 are n-dimensional vectors, the degree of agreement between the feature amount F11 and the feature amount F12 can be evaluated by cosine similarity or Euclidean distance, etc. As an example, the inference process S12 recognizes the object 100 associated with the feature F12 that has the highest degree of matching with the feature F11 among the multiple feature F12 and whose degree of matching is greater than or equal to a threshold value as the object 100 appearing in the target image.
[0035] The output process S13 is a process for outputting the result of the inference process S12. In this embodiment, the result of the inference process S12 includes a recognition result R21 of the object 100 appearing in the target image. The recognition system 10 is connected to the control system 300 through a communication device of the interface 11. The output process S13 outputs the result of the inference process S12 to the control system 300 through the interface 11. Furthermore, the output process S13 can output the result of the inference process S12 to the user through the input / output device of the interface 11. For example, the output process S13 can present a screen for outputting the result of the inference process S12 by the input / output device of the interface 11.
[0036] As described above, the recognition system 10 includes the storage device 12 that stores the trained model M10, and the arithmetic circuit 13 that can access the storage device 12. The trained model M10 includes a first model unit M11 and a second model unit M12. The first model unit M11 is a model trained to output a second resolution image P20 and a difference image P30 corresponding to an image obtained by converting the first resolution image P10 to a second resolution higher than the first resolution, in response to an input of a first resolution image P10 in which the object 100 is captured at a first resolution. The difference image P30 is an image corresponding to the difference between the first resolution image P10 and the second resolution image P20. The second model unit M12 is a model trained to output a feature amount F11 of the object 100 in response to an input of the second resolution image P20 and the difference image P30 from the first model unit M11. 3, the arithmetic circuit 13 executes an acquisition process S11 for acquiring a first resolution image P10 as a target image, and an inference process S12 for providing the target image acquired in the acquisition process S11 to a trained model M10 and causing the trained model M10 to calculate a feature quantity F11 of an object 100 appearing in the target image. According to this recognition system 10, the accuracy of recognition of the object 100 can be improved.
[0037] In other words, the recognition system 10 executes the following method (recognition method). The recognition method is executed by the arithmetic circuit 13 that can access the storage device 12, and includes an acquisition process S11 and an inference process S12. According to this recognition method, like the recognition system 10, the accuracy of recognition of the target object 100 can be improved.
[0038] The recognition system 10 is realized by utilizing an arithmetic circuit 13. That is, the method (recognition method) executed by the recognition system 10 can be realized by the arithmetic circuit 13 executing a program. This program is a computer program for causing the arithmetic circuit 13 to execute the above-mentioned recognition method. According to such a program, like the recognition system 10, it is possible to improve the accuracy of recognition of the target object 100.
[0039] The trained model M10 used in the recognition system 10 includes a first model unit M11 and a second model unit M12. The first model unit M11 is a model trained to output a second resolution image P20 and a difference image P30 corresponding to an image obtained by converting the first resolution image P10 to a second resolution higher than the first resolution, in response to an input of a first resolution image P10 in which the object 100 is captured at a first resolution. The difference image P30 is an image corresponding to the difference between the first resolution image P10 and the second resolution image P20. The second model unit M12 is a model trained to output a feature amount F11 of the object 100 in response to an input of the second resolution image P20 and the difference image P30 from the first model unit M11. According to this trained model M10, the accuracy of recognition of the object 100 can be improved.
[0040] (1-2-2) Learning Methods Next, we will explain a learning method for generating the trained model M10 used in the recognition system 10. As shown in Fig. 4, the learning method includes a preparation process S21 and a learning process S22.
[0041] The preparation process S21 is a process for preparing a model M20 as shown in Fig. 5. The model M20 is used to generate the trained model M10. The model M20 includes a first model unit M21, a second model unit M22, a third model unit M23, and a fourth model unit M24.
[0042] The first model unit M21 is a model for outputting, in response to an input of a first resolution image P10 in which the object 100 is captured at a first resolution, a second resolution image P20 corresponding to an image obtained by converting the first resolution image P10 to a second resolution higher than the first resolution, and a difference image P30 corresponding to the difference between the first resolution image P10 and the second resolution image P20. The first model unit M21 has a neural network structure, and in this embodiment, a convolutional neural network (CNN) structure. The convolutional neural network has an appropriate number of convolutional layers, pooling layers, activation functions, fully connected layers, and the like between an input layer and an output layer. In particular, the first model unit M21 has a structure for generating a super-resolution network such as the first model unit M11 of the trained model M10. For example, the structure of the first model part M21 is as follows: Reference (Christian Ledig, et al., “Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network”, [online], September 15, 2016, [Retrieved September 7, 2020], Cornell University, Internet<URL:https: / / arxiv.org / abs / 1609.04802> It is possible to use the structure of the generative network presented in FIG. 4 of
[0043] The second model unit M22 is a model for outputting the feature amount F11 of the object 100 in response to the input of the second-resolution image P20 and the difference image P30 from the first model unit M21. The second model unit M22 has a neural network structure, specifically, a structure of a convolutional neural network (CNN) in the present embodiment. In particular, the second model unit M22 has a structure for generating a face recognition network such as the second model unit M12 of the learned model M10. For example, as the structure of the second model unit M22, it is possible to use the structure of the face recognition network exemplified in Non-Patent Document 1. In the present embodiment, the second-resolution image P20 is input to the input layer of the second model unit M22, but the difference image P30 is not input to the input layer of the second model unit M22. The difference image P30 is converted into parameters through a convolutional layer or the like different from the input layer of the second model unit M22 and is used in the second model unit M22. Examples of the parameters include parameters (γ, β used in batch normalization) for performing conversion with a specific scale and shift on the normalized data of the image input to the input layer. For example, in the reference (Taesung Park, et al., “Semantic Image Synthesis with Spatially-Adaptive Normalization”, [online], March 18, 2019, [searched on September 7, 2020], Cornell University, Internet <URL:https: / / arxiv.org / abs / 1903.07291), it is disclosed that a tensor obtained by convolving a segmentation mask with a convolutional layer is used as the parameters γ, β of batch normalization.
[0044] The third model unit M23 is a model for outputting the recognition result (recognition result) R21 of the object 100 in response to the input of the feature amount F11 of the object 100 from the second model unit M22. The third model unit M23 is a discriminator, and for example, algorithms such as the k-nearest neighbor method (KNN) and the support vector machine (SVM) can be used.
[0045] The fourth model unit M24 is a model for outputting a result (determination result) R22 of a determination as to whether or not the second resolution image P20 is an image generated by the first model unit M21 in response to an input of the second resolution image P20. The fourth model unit M24 has a neural network structure, in this embodiment, a convolutional neural network (CNN) structure. The fourth model unit M24 has a structure for generating a classification network. The fourth model unit M24 is used to configure a generative adversarial network (GAN) together with the first model unit M21. As the structure of the fourth model unit M24, the structure of the classification network presented in FIG. 4 of the above reference can be used.
[0046] As shown in FIG. 4, the preparation process S21 includes a generation step S210 and a pre-learning step S211.
[0047] The generating step S210 is a step of generating a training dataset (first training dataset) D21. The first training dataset D21 is a training dataset in which a first resolution image P10 is input and a second resolution image P20 and a difference image P30 are correct answers. That is, the generating step S210 is a training dataset generating method for generating the training dataset D21.
[0048] As shown in FIG. 4, the generating step S210 includes a first step S210a, a second step S210b, a third step S210c, and a fourth step S210d.
[0049] The first step S210a is a step of acquiring a reference image in which the object 100 is captured. The reference image is an image in which the object 100 is captured at a second resolution. In other words, the first step S210a can be said to be a step of acquiring a second resolution image P20. However, the reference image is not an image obtained by converting the first resolution image P10 to a second resolution higher than the first resolution, but an image obtained by capturing the object 100 at the second resolution, or an image obtained by capturing the object 100 at a third resolution higher than the second resolution and converting the third resolution to the second resolution. In the following, as necessary, the second resolution image P20 obtained by the first model part M11 of the trained model M10 is represented by the symbol P21. The second resolution image P20 acquired in the first step 210a is represented by the symbol P22. The second resolution image P20 obtained by the first model part M21 of the model M20 is represented by the symbol P23.
[0050] The second step S210b is a step of converting the reference image (second resolution image P22) into a low resolution image with a resolution lower than the reference image. In this embodiment, the reference image is converted into a low resolution image with a first resolution lower than the second resolution. In other words, the second step S210b is a step of converting the second resolution image P22 acquired in the first step S210a into an image with a first resolution to generate the first resolution image P10. Here, the low resolution image is not an image obtained by imaging the object 100 at the first resolution, or an image obtained by imaging the object 100 at a fourth resolution lower than the first resolution and converting the fourth resolution into the first resolution, but an image obtained by converting the second resolution image P22 into the first resolution lower than the second resolution. In the following, in order to distinguish between the first resolution image P10, which is a low resolution image generated from the second resolution image P22, and the first resolution image P10, such as an image obtained by capturing an image of the object 100 at the first resolution, the latter will be represented by the symbol P11 and the former by the symbol P12, as necessary. In the second step 210b, a first resolution image (low resolution image) P12, which has a smaller image size than the second resolution image (reference image) P22 acquired in the first step 210a, is generated. The conversion from the second resolution image P22 to the first resolution image P12 can be realized by a known method such as average value interpolation.
[0051] The third step S210c is a step of generating a difference image P30 corresponding to the difference between the reference image (second resolution image P22) and the low resolution image (first resolution image P12). The third step S210c can be said to be a step of generating a difference image P30 from the second resolution image P22 acquired in the first step 210a and the first resolution image P12 generated in the second step S210b. The third step S210c enlarges the first resolution image P12 generated in the second step 210b to the same image size as the second resolution image P22 acquired in the first step S210a. The third step S210c generates a difference image P30 based on the difference in pixel values between the enlarged first resolution image P12 and the second resolution image P22 acquired in the first step S210a. This makes it possible to easily obtain the difference between the pixel values of the first resolution image P11 and the second resolution image P22. The enlargement of the first resolution image P12 can be realized by a known method such as bicubic interpolation. The range of each pixel value of the difference image P30 is narrower than the range of each pixel value of the first resolution image P11 and the second resolution image P22. For example, when the range of each pixel value of the first resolution image P11 and the second resolution image P22 is 0 to 255, the range of each pixel value of the difference image P30 may be set to 0 to 15. That is, in the third step S210c, the image which is the difference between the enlarged first resolution image P12 and the second resolution image P22 acquired in the first step S210a is reduced in gradation to generate the difference image P30. As a result, the difference between the first resolution image P12 and the second resolution image P22 is clearly reflected in the difference image P30. In the following, the difference image P30 obtained by the first model part M11 of the trained model M10 is represented by the symbol P31 as necessary. The difference image P30 generated in the third step 210c is denoted by reference character P32. The difference image P30 obtained in the first model part M21 of the model M20 is denoted by reference character P33.
[0052] The fourth step S210d is a step of generating a (first) learning data set D21. The first learning data set D21 is a learning data set in which a low-resolution image (first resolution image P12) is input, and the reference image (second resolution image P22) and the difference image P32 are correct answers. In other words, the fourth step S210d can also be said to be a step of generating a learning data set in which the first resolution image P12 generated in the second step S210b is input, and the second resolution image P22 acquired in the first step S210a and the difference image P32 generated in the third step S210c are correct answers.
[0053] In the pre-learning step S211, the first model unit M21 learns the relationship between the first resolution image P10 (P12), the second resolution image P20 (P22), and the difference image P30 (P32) using the learning data set D21 generated in the generation step S210. As a result, the first model unit M21 learns to output the second resolution image P23 and the difference image P33 in response to the input of the first resolution image P10 (P12). The pre-learning step S211 may include pre-learning of the second model unit M22 and the third model unit M23 as necessary. The second model unit M22 and the third model unit M23 may learn the relationship between the second resolution image P20 and the difference image P30 and the recognition result R21 using a learning data set in which the second resolution image P20 and the difference image P30 are input and the recognition result R21 is the correct answer. When a model that has been trained in advance is used as the second model unit M22 and the third model unit M23, pre-learning of the second model unit M22 and the third model unit M23 in the pre-learning step S211 is not necessary. The pre-learning step S211 may include pre-learning of the fourth model unit M24 as necessary. For example, the fourth model unit M24 may be trained to some extent using the second resolution image P22 acquired in the first step 210a and the second resolution image P23 generated by the first model unit M21. When a model that has been trained in advance is used as the fourth model unit M24, pre-learning of the fourth model unit M24 in the pre-learning step S211 is not necessary.
[0054] The learning step S21 includes having the model M20 learn the relationship between the first resolution image P12 and the feature amount F21 of the object 100 appearing in the first resolution image P12 by machine learning using a (second) learning data set D22. The second learning data set D22 is a learning data set in which the first resolution image P12 is input and the result of recognition of the object 100 appearing in the first resolution image P12 (recognition result R21) is taken as the correct answer. The learning step S21 may include executing additional learning of at least one of the first model unit M21 and the fourth model unit M24 based on the result of judgment (judgment result) R22 output from the fourth model unit M24.
[0055] From the model M20 that has been machine-learned in this manner, trained parameters of the first model unit M21 and the second model M22 can be obtained. Using the trained parameters of the first model unit M21 and the second model M22 and the inference programs of the first model unit M21 and the second model M22, it is possible to implement the trained model M10 shown in FIG.
[0056] The learning method described above can be executed, for example, by a learning system 20 shown in Fig. 6. Learning system 20 includes an interface 21, a storage device 22, and an arithmetic circuit 23. In this embodiment, learning system 20 is realized by one server.
[0057] The interface 21 is used to input information to the learning system 20 and output information from the learning system 20. The interface 21 includes an input / output device 211 and a communication device 212. The input / output device 211 functions as an input device for inputting information from a user and as an output device for outputting information to a user. The input / output device 211 includes one or more human-machine interfaces. Examples of human-machine interfaces include input devices such as a keyboard, a pointing device (mouse, trackball, etc.), and a touchpad, output devices such as a display and a speaker, and input / output devices such as a touch panel. The communication device 212 is communicatively connected to an external device or system. The communication device 212 includes one or more communication interfaces. The communication device 212 is connectable to a communication network and has a function of communicating through the communication network. The communication device 112 complies with a predetermined communication protocol. The predetermined communication protocol may be selected from various well-known wired and wireless communication standards.
[0058] The storage device 22 is used to store information used by the arithmetic circuit 23 and information generated by the arithmetic circuit 23. The storage device 22 includes one or more storages (non-transitory storage media). The storage may be, for example, any of a hard disk drive, an optical drive, and a solid-state drive (SSD). The storage may be any of an internal type, an external type, and a NAS (network-attached storage) type.
[0059] The information stored in the storage device 22 includes a model M20 and learning data D20. The learning data D20 includes a first learning data set D21 and a second learning data set D22. Fig. 6 shows a state in which the storage device 22 stores all of the model M20 and the learning data D20. The model M20 and the learning data D20 do not need to be stored in the storage device 22 at all times, and only need to be stored in the storage device 22 when needed by the arithmetic circuit 23.
[0060] The arithmetic circuit 23 is a circuit that controls the operation of the learning system 20. The arithmetic circuit 23 is connected to the interface 21 and can access the storage device 22 (i.e., can access the model M20 and the learning data D20). The arithmetic circuit 23 can be realized, for example, by a computer system including one or more processors (microprocessors) and one or more memories. The one or more processors execute a program (stored in one or more memories or the storage device 22) to realize the function of the arithmetic circuit 23. The program is pre-recorded in the storage device 22 here, but may be provided via a telecommunications line such as the Internet, or recorded on a non-transitory recording medium such as a memory card.
[0061] The arithmetic circuit 23 is configured to execute the learning method (including a preparation step S21 and a learning step S22).
[0062] As described above, the learning system 20 includes the arithmetic circuit 23. The arithmetic circuit 23 executes a learning method including a preparation process S21 for preparing a model M20 and a learning step S22 for executing machine learning using the model M20 prepared in the preparation step S21. The model M20 includes a first model unit M21, a second model unit M22, and a third model unit M23. The first model unit M21 is a model for outputting, in response to an input of a first resolution image P20 in which the object 100 is captured at a first resolution, a second resolution image P20 corresponding to an image obtained by converting the first resolution image P20 to a second resolution higher than the first resolution, and a difference image P30 corresponding to the difference between the first resolution image P10 and the second resolution image P20. The second model unit M21 is a model for outputting a feature amount F21 of the object 100 in response to an input of the second resolution image P20 and the difference image P30 from the first model unit M22. The third model unit M23 is a model for outputting a recognition result R21 of the object 100 in response to an input of a feature amount F21 of the object 100 from the second model unit M22. The learning step S22 includes having the model M20 learn the relationship between the first resolution image P10 and the feature amount F21 of the object 100 depicted in the first resolution image P10 by machine learning using a learning data set D21 in which the first resolution image P10 is input and the recognition result R21 of the object 100 depicted in the first resolution image P10 is taken as a correct answer. According to this learning system 20, the accuracy of recognition of the object 100 can be improved.
[0063] In other words, it can be said that the learning system 20 executes the following method (learning method). The learning method is executed by the arithmetic circuit 23, and includes a preparation step S21 and a learning step S22. According to such a learning method, like the learning system 20, it is possible to improve the accuracy of recognition of the object 100.
[0064] Learning system 20 is realized by utilizing arithmetic circuit 23. That is, the method (learning method) executed by learning system 20 can be realized by arithmetic circuit 23 executing a program. This program is a computer program for causing arithmetic circuit 23 to execute the above-mentioned learning method. According to such a program, like learning system 20, it is possible to improve the accuracy of recognition of object 100.
[0065] (1-3) Performance evaluation A test was conducted to evaluate the face recognition performance of the trained model M10. In the test, in order to relatively evaluate the face recognition performance of the trained model M10, the face recognition performance of the trained model in which the difference image P30 was omitted in the trained model M10 shown in FIG. 2 was also evaluated. This trained model in which the difference image P30 was omitted is assumed to be the trained model of Non-Patent Document 1. For the data for evaluating the face recognition performance, the LFW dataset (http: / / vis-www.cs.umass.edu / lfw / ), which is one of the public benchmarks for face recognition, was used, and 3000 pairs of images of the same person but different types and images of different people were prepared, for a total of 6000 pairs, to evaluate the accuracy rate. In the trained model of Non-Patent Document 1, the accuracy rate was 98.64%, while the accuracy rate was 98.82% according to the trained model M10. This indicates that the error rate can be improved by about 10% according to the trained model M10.
[0066] (2) Variations The embodiments of the present disclosure are not limited to the above-mentioned embodiments. The above-mentioned embodiments can be modified in various ways depending on the design, etc., as long as the object of the present disclosure can be achieved. Below, modified examples of the above-mentioned embodiments are listed. The modified examples described below can be applied in appropriate combination.
[0067] In one modified example, in the recognition system 10, the arithmetic circuit 13 may generate a reuse model by performing additional learning on the trained model M10, and execute the inference process S12 using the reuse model. In other words, the arithmetic circuit 13 may execute a learning process by performing additional learning (re-learning) on the trained model M10.
[0068] In one modified example, in the recognition system 10, the storage device 12 may store a distilled model instead of the trained model M10. The distilled model is a model generated by distilling the trained model M10. In this case, the recognition system 10 includes the storage device 12 that stores the distilled model, and the arithmetic circuit 13 that can access the storage device 12. The arithmetic circuit 13 executes an acquisition process S11 and an inference process S12. The acquisition process S11 is a process of acquiring a first resolution image P10 as a target image. The inference process S12 is a process of providing the target image acquired in the acquisition process S11 to the distilled model, and causing the distilled model to calculate the feature amount F11 of the target object 100 appearing in the target image. Even in this case, the accuracy of recognition of the target object 100 can be improved.
[0069] In one modification, in the recognition system 10, the acquisition process S11 may present a screen for inputting the first resolution image P10 by, for example, an input / output device of the interface 11, and the user may input the first resolution image P10 according to instructions on the screen. The input of the first resolution image P10 may include not only inputting the first resolution image P10 from an external device or system to the recognition system 10, but also specifying data to be used as the first resolution image P10 from data stored in the recognition system 10. The inference process S12 does not necessarily need to obtain the recognition result R11, and the feature amount F11 may be the result of the inference process. The output process S13 may present a screen for outputting the result of the inference process by, for example, an input / output device of the interface 11.
[0070] In one modified example, in the learning method, the second resolution image P23 and the difference image P33 from the first model part M21 of the model M20 may be input to (the input layer of) the second model part M22 as two-channel images. In this case, the second resolution image P21 and the difference image P31 from the first model part M11 of the trained model M10 are also input to (the input layer of) the second model part M12 as two-channel images.
[0071] In one modified example, the difference image P30 may be an image in which each pixel value is the difference between the pixel values of the first resolution image P10 and the second resolution image P20.
[0072] In one modified example, the preparation step S21 is not essential because the learning dataset D21 may be prepared in advance. Instead of end-to-end learning of the model M20 in the learning step S22, individual learning of the first model unit M21 to the fourth model unit M24 of the model M20 may be performed. The model M20 may not include the fourth model unit M24. In other words, learning using GAN is not essential.
[0073] In one variant, it is not essential that the recognition system 10 and the learning system 20 are implemented on different computer systems, but rather the recognition system 10 and the learning system 20 may be implemented on a single computer system.
[0074] In one variant, the interface 11 of the recognition system 10 and the interface 21 of the learning system 20, respectively, do not need to comprise both an input / output device and a communication device.
[0075] In one modified example, each of the recognition system 10 and the learning system 20 may be realized by a computer system such as a plurality of servers. In other words, it is not essential that the plurality of functions (components) of each of the recognition system 10 and the learning system 20 are integrated in one housing, and each of the components of the recognition system 10 and the learning system 20 may be distributed across a plurality of housings. Furthermore, at least a portion of the functions of each of the recognition system 10 and the learning system 20, for example, a portion of the functions of the arithmetic circuits 13 and 23, may be realized by the cloud (cloud computing) or the like.
[0076] (3) Description As is apparent from the above-described embodiment and modified examples, the present disclosure includes the following aspects. In the following, reference symbols are given in parentheses only to clarify the correspondence with the embodiment.
[0077] The first aspect is a recognition system (10) including a storage device (12) that stores a trained model (M10) and an arithmetic circuit (13) that can access the storage device (12). The trained model (M10) includes a first model unit (M11) and a second model unit (M12). The first model unit (M10) is a model trained to output a second resolution image (P20) and a difference image (P30) in response to an input of a first resolution image (P10). The first resolution image (P10) is an image in which an object (100) is captured at a first resolution. The second resolution image (P20) corresponds to an image obtained by converting the first resolution image (P10) to a second resolution higher than the first resolution. The difference image (P30) is an image corresponding to the difference between the first resolution image (P10) and the second resolution image (P20). The second model unit (M12) is a model trained to output a feature quantity (F11) of the object in response to an input of the second resolution image (P20) and the difference image (P30). The arithmetic circuit (13) executes an acquisition process (S11) and an inference process (S12). The acquisition process (S11) acquires the first resolution image (P10) as a target image. The inference process (S12) provides the target image acquired in the acquisition process (S11) to the trained model (M10) and causes the trained model (M10) to calculate a feature quantity (F11) of the object (100) appearing in the target image. According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0078] The second aspect is a recognition system (10) based on the first aspect. In the second aspect, the inference process (S12) includes recognizing the object based on a feature amount (F11) of the object appearing in the target image. According to this aspect, the accuracy of recognizing the object (100) can be improved.
[0079] A third aspect is a recognition system (10) based on the first or second aspect. In the third aspect, the arithmetic circuit (13) executes an output process (S13) that outputs a result of the inference process (S12). According to this aspect, the result of the inference process (S12) can be presented.
[0080] The fourth aspect is a recognition method executed by an arithmetic circuit (13) that can access a storage device (12) that stores a trained model (M10). The trained model (M10) includes a first model unit (M11) and a second model unit (M12). The first model unit (M10) is a model trained to output a second resolution image (P20) and a difference image (P30) in response to an input of a first resolution image (P10). The first resolution image (P10) is an image in which an object (100) is captured at a first resolution. The second resolution image (P20) corresponds to an image obtained by converting the first resolution image (P10) to a second resolution higher than the first resolution. The difference image (P30) is an image corresponding to the difference between the first resolution image (P10) and the second resolution image (P20). The second model unit (M12) is a model trained to output a feature quantity (F11) of the object in response to an input of the second resolution image (P20) and the difference image (P30). The recognition method includes an acquisition process (S11) and an inference process (S12). The acquisition process (S11) acquires the first resolution image (P10) as a target image. The inference process (S12) provides the target image acquired in the acquisition process (S11) to the trained model (M10) and causes the trained model (M10) to calculate a feature quantity (F11) of the object (100) appearing in the target image. According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0081] A fifth aspect is a program for causing the arithmetic circuit (13) to execute the recognition method based on the fourth aspect. According to this aspect, it is possible to improve the accuracy of recognition of the object (100).
[0082] The sixth aspect is a learning method, including a preparation step (S21) of preparing a model (M20), and a learning step (S22) of executing machine learning using the model (M20) prepared in the preparation step (S21). The model (M20) includes a first model section (M21), a second model section (M22), and a third model section (M23). The first model section (M21) is a model for outputting a second resolution image (P20) and a difference image (P30) in response to an input of a first resolution image (P10). The first resolution image (P10) is an image in which an object (100) is captured at a first resolution. The second resolution image (P20) corresponds to an image obtained by converting the first resolution image (P10) into a second resolution higher than the first resolution. The difference image (P30) is an image corresponding to the difference between the first resolution image (P10) and the second resolution image (P20). The second model unit (M22) is a model for outputting a feature amount (F21) of the object in response to an input of the second resolution image (P20) and the difference image (P30) from the first model unit (M21). The third model unit (M23) is a model for outputting a recognition result (R21) of the object (100) in response to an input of the feature amount (F21) of the object (100) from the second model unit (M22). The learning step (S22) includes inputting the first resolution image (P10) and having the model (M20) learn the relationship between the first resolution image (P10) and a feature amount (F21) of the object (100) captured in the first resolution image (P10) by machine learning using a learning dataset (D22) in which a recognition result (R21) of the object (100) captured in the first resolution image (P10) is set as a correct answer. According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0083] The seventh aspect is a learning method based on the sixth aspect. In the seventh aspect, the preparation step (S21) includes a generation step (S210) and a pre-learning step (S211). The generation step (S210) is a step of generating a learning data set (D21) in which the first resolution image (P10) is input and the second resolution image (P20) and the difference image (P30) are used as correct answers. The pre-learning step (S211) is a step of making the first model unit (M21) learn the relationship between the first resolution image (P10), the second resolution image (P20), and the difference image (P30) using the learning data set (D21) generated in the generation step (S210). According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0084] The eighth aspect is a recognition system (10) based on the seventh aspect. In the eighth aspect, the generating step (S210) includes a first step (S210a), a second step (S210b), a third step (S210c), and a fourth step (S210d). The first step (S210a) is a step of acquiring the second resolution image (P20). The second step (S210b) is a step of converting the second resolution image (P20) acquired in the first step (S210a) into an image of the first resolution to generate the first resolution image (P10). The third step (S210c) is a step of generating the difference image (P30) from the second resolution image (P20) acquired in the first step (S210a) and the first resolution image (P10) generated in the second step (S210b). The fourth step (S210d) is a step of generating a learning data set (D21) by inputting the first resolution image (P10) generated in the second step (S210b) and taking the second resolution image (P20) prepared in the first step (210a) and the difference image (P30) generated in the third step (S210c) as correct answers. According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0085] The ninth aspect is a learning method based on the eighth aspect. In the ninth aspect, the third step (S210c) enlarges the first resolution image (P10) generated in the second step (S210b) to the same image size as the second resolution image (P20) acquired in the first step (S210a). The third step (S210c) generates the difference image (P30) based on the difference in pixel values between the enlarged first resolution image (P10) and the second resolution image (P20) acquired in the first step (S210a). According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0086] The tenth aspect is a learning method based on the ninth aspect. In the tenth aspect, the range of each pixel value of the difference image (P30) is narrower than the range of each pixel value of the first resolution image (P10) after enlargement and the second resolution image (P20) acquired in the first step (S210a). According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0087] An eleventh aspect is a learning method based on any one of the sixth to tenth aspects. In the eleventh aspect, the model (M20) includes a fourth model unit (M24) for outputting a result (R22) of a judgment as to whether or not the second resolution image (P20) is an image generated by the first model unit (M21) in response to an input of the second resolution image (P20). The learning step (S22) includes executing additional learning of at least one of the first model unit (M21) and the fourth model unit (M24) based on the result (R22) of the judgment output from the fourth model unit (M24). According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0088] The twelfth aspect is a trained model (M10) including a first model section (M11) and a second model section (M12). The first model section (M10) is a model trained to output a second resolution image (P20) and a difference image (P30) in response to an input of a first resolution image (P10). The first resolution image (P10) is an image in which an object (100) is captured at a first resolution. The second resolution image (P20) corresponds to an image obtained by converting the first resolution image (P10) to a second resolution higher than the first resolution. The difference image (P30) is an image corresponding to the difference between the first resolution image (P10) and the second resolution image (P20). The second model section (M12) is a model trained to output a feature quantity (F11) of the object in response to an input of the second resolution image (P20) and the difference image (P30). According to this embodiment, the accuracy of recognizing the object (100) can be improved.
[0089] The thirteenth aspect is a distilled model generated by distilling the trained model (M10) based on the twelfth aspect. According to this aspect, it is possible to improve the accuracy of recognizing the object (100).
[0090] A fourteenth aspect is a recognition system (10) including a storage device (12) that stores a distilled model based on the thirteenth aspect, and an arithmetic circuit (13) that can access the storage device (12). The arithmetic circuit (13) executes an acquisition process (S11) and an inference process (S12). The acquisition process (S11) is a process of acquiring the first resolution image (P10) as a target image. The inference process (S12) is a process of providing the target image acquired in the acquisition process (S11) to the distilled model, and causing the distilled model to calculate a feature quantity (F11) of an object (100) appearing in the target image. According to this aspect, the accuracy of recognition of the object (100) can be improved.
[0091] The fifteenth aspect is a learning dataset generation method, including a first step (S210a), a second step (S210b), a third step (S210c), and a fourth step (S210d). The first step (S210a) is a step of acquiring a reference image (P22) in which an object (100) is captured. The second step (S210b) is a step of converting the reference image (P22) into a low-resolution image (P12) having a resolution lower than that of the reference image (P22). The third step (S210c) is a step of generating a difference image (P30) corresponding to the difference between the reference image (P22) and the low-resolution image (P12). The fourth step (S210d) is a step of generating a learning data set (D11) by inputting the low-resolution image (P12) and using the reference image (P22) and the difference image (P30) as correct answers. According to this aspect, it is possible to improve the accuracy of recognition of the object (100).
[0092] The second or third aspect can also be modified appropriately and applied to the fourth and fourteenth aspects.
[0093] (4) Terminology In this disclosure, machine learning terms are defined as follows:
[0094] A "trained model" refers to an "inference program" that incorporates "trained parameters."
[0095] "Trained parameters" refer to parameters (coefficients) obtained as a result of learning using a training dataset. Trained parameters are generated by inputting the training dataset into a training program and mechanically adjusting them for a certain purpose. Although trained parameters are adjusted according to the purpose of learning, they are simply parameters (information such as numerical values) on their own, and only function as trained models when incorporated into an inference program. For example, in the case of deep learning, the main trained parameters are parameters used to weight the links between each node.
[0096] An "inference program" is a program that enables a certain result to be output for an input by applying built-in trained parameters. For example, it is a program that specifies a series of calculation procedures for applying trained parameters acquired as a result of training to an image given as input, and outputting a result (authentication or judgment) for that image.
[0097] A "learning dataset", also known as a training dataset, refers to secondary processed data that is generated to facilitate analysis by the target learning method by applying conversion and processing to raw data, such as preprocessing such as removing missing values and outliers, adding separate data such as label information (correct answer data), or combining these. A learning dataset may also include data that has been "padded" by applying a certain conversion to the raw data.
[0098] "Raw data" refers to data that is primarily acquired by users, vendors, other businesses, research institutions, etc., and that has been converted and processed so that it can be loaded into a database.
[0099] "Learning program" refers to a program that executes an algorithm to find certain rules from a learning dataset and generate a model that expresses those rules. Specifically, this refers to a program that specifies the procedure to be executed by a computer to realize learning using the learning method to be adopted.
[0100] "Additional learning" means applying a different learning dataset to an existing trained model and conducting further learning to generate new trained parameters.
[0101] A "reused model" refers to an inference program that incorporates newly generated learned parameters through additional learning.
[0102] "Distillation" means using the input and output results of an existing trained model as a training dataset for a new trained model to generate new trained parameters.
[0103] "Distilled model" refers to an inference program that incorporates newly generated learned parameters through distillation. [Industrial Applicability]
[0104] The present disclosure is applicable to a recognition system, a recognition method, a program (computer program), a learning method, a trained model, a distilled model, and a training dataset generation method. Specifically, the present disclosure is applicable to a recognition system, a recognition method, a program (computer program), a learning method, a trained model, a distilled model, and a training dataset generation method for objects appearing in an image. [Explanation of symbols]
[0105] 10 Recognition System 12 Storage device 13 Arithmetic circuit M10 pre-trained model M11 1st Model Section M12 2nd Model Part M20 Models M21 1st Model Section M22 2nd Model Section M23 3rd Model Section M24 4th Model Section D21 Training Dataset D22 Training Dataset P10 1st resolution image P20 2nd resolution image P30 Difference Image F11, F12 features R11, R21 Recognition results (Recognition results) R22 Judgment result (Judgment result) S11 Acquisition process S12 Inference processing S13 Output Processing S21 Preparation Steps S210 Generation step S210a 1st step S210b 2nd step S210c 3rd step S210d 4th step S211 Pre-learning steps S22 Learning Steps 100 Objects
Claims
1. A storage device that stores the trained model; an arithmetic circuit that can access the storage device; Equipped with The trained model is a first model unit that is trained to output, in response to a first resolution image in which an object is captured at a first resolution, a second resolution image corresponding to an image obtained by converting the first resolution image into a second resolution higher than the first resolution, and a difference image corresponding to a difference between the first resolution image and the second resolution image; a second model unit that is trained to output a feature amount of the object in response to an input of the second resolution image and the difference image; Including, The arithmetic circuit includes: an acquisition process for acquiring the first resolution image as a target image; An inference process in which the target image acquired in the acquisition process is provided to the trained model, and a feature amount of an object appearing in the target image is calculated by the trained model; Execute Recognition system.
2. The inference process includes recognizing the object based on a feature amount of the object shown in the target image. The recognition system of claim 1 .
3. The arithmetic circuit executes an output process to output a result of the inference process.
3. A recognition system according to claim 1 or 2.
4. A recognition method executed by a computing circuit that can access a storage device that stores a trained model, The trained model is a first model unit that is trained to output, in response to a first resolution image in which an object is captured at a first resolution, a second resolution image corresponding to an image obtained by converting the first resolution image into a second resolution higher than the first resolution, and a difference image corresponding to a difference between the first resolution image and the second resolution image; a second model unit that is trained to output a feature amount of the object in response to an input of the second resolution image and the difference image; Including, The recognition method includes: an acquisition process for acquiring the first resolution image as a target image; An inference process in which the target image acquired in the acquisition process is provided to the trained model, and a feature amount of an object appearing in the target image is calculated by the trained model; Including, Recognition method.
5. A method for causing the arithmetic circuit to execute the recognition method according to claim 4, program.
6. A preparation step to prepare the model; A learning step of performing machine learning using the model prepared in the preparation step; Including, The model includes a first model portion, a second model portion, and a third model portion; the first model unit is a model for outputting, in response to an input of a first resolution image in which an object is captured at a first resolution, a second resolution image corresponding to an image obtained by converting the first resolution image into a second resolution higher than the first resolution, and a difference image corresponding to a difference between the first resolution image and the second resolution image, the second model unit is a model for outputting a feature amount of the object in response to an input of the second resolution image and the difference image from the first model unit, the third model unit is a model for outputting a result of recognition of the object in response to an input of a feature amount of the object from the second model unit, the learning step includes inputting the first resolution image, and having the model learn a relationship between the first resolution image and a feature amount of the object appearing in the first resolution image by machine learning using a learning dataset in which a result of recognizing the object appearing in the first resolution image is a correct answer; How to learn.
7. The preparation step includes: a generation step of generating a learning dataset in which the first resolution image is input and the second resolution image and the difference image are used as correct answers; a pre-learning step of causing the first model unit to learn the relationship between the first resolution image, the second resolution image, and the difference image by using the learning data set generated in the generating step; Including, The learning method according to claim 6.
8. The generating step includes: a first step of acquiring the second resolution image; a second step of converting the second resolution image acquired in the first step into an image with a first resolution to generate the first resolution image; a third step of generating the difference image from the second resolution image acquired in the first step and the first resolution image generated in the second step; a fourth step of generating a learning data set in which the first resolution image generated in the second step is input and the second resolution image prepared in the first step and the difference image generated in the third step are used as correct answers; Including, The learning method according to claim 7.
9. the third step enlarges the first resolution image generated in the second step to an image size equal to that of the second resolution image acquired in the first step, and generates the difference image based on a difference in pixel values between the enlarged first resolution image and the second resolution image acquired in the first step. The learning method according to claim 8.
10. a range of pixel values of the difference image is narrower than a range of pixel values of the first resolution image after enlargement and the second resolution image acquired in the first step; The learning method according to claim 9.
11. the model includes a fourth model unit for outputting a result of a determination as to whether or not the second resolution image is an image generated by the first model unit in response to an input of the second resolution image; The learning step includes executing additional learning of at least one of the first model unit and the fourth model unit based on the result of the determination output from the fourth model unit. The learning method according to any one of claims 6 to 10.
12. a first model unit that is trained to output, in response to an input of a first resolution image in which an object is captured at a first resolution, a second resolution image corresponding to an image obtained by converting the first resolution image into a second resolution higher than the first resolution, and a difference image corresponding to a difference between the first resolution image and the second resolution image, and causes a computer to function to output the second resolution image and the difference image in response to an input of the first resolution image; a second model unit that is trained to output a feature amount of the object in response to an input of the second resolution image and the difference image, and causes a computer to function to output the feature amount in response to an input of the second resolution image and the difference image; Including, Trained model.
13. A first step of acquiring a reference image including an object; a second step of converting the reference image into a low-resolution image having a lower resolution than the reference image; a third step of generating a difference image corresponding to a difference between the reference image and the low-resolution image; A fourth step of generating a learning dataset by inputting the low-resolution image and using the reference image and the difference image as correct answers; Including, How to generate training datasets.
