Information processing apparatus, inference method, learning method, and program
Patent Information
- Application Number
- JP2021174764
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2021-10-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-10-26
AI Technical Summary
Pre-trained learning models face increased calculation costs and reduced estimation accuracy when high-resolution images are used due to unnecessary information, leading to inefficiencies in learning and estimation processes.
The use of narrow-field and wide-area images, where narrow-field images are partial images of a target image with reduced information, and a wide-area image encompasses a larger area, combined with a learning model to reduce information amount and improve estimation accuracy.
This approach reduces calculation costs and enhances prediction accuracy by leveraging a learning model trained on reduced information images, improving efficiency and performance.
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing apparatus, an inference method, a learning method, and a program.
Background Art
[0002] Using a pre-trained learning model, a predetermined result is inferred based on an arbitrary image.
[0003] In Patent Document 1, when inferring a predetermined result based on an entire image, a technique is proposed in which a global determination is made using the entire image, and then a detailed determination is made based on the global determination result and a partial image cut out from the entire image.
Prior Art Documents
Patent Documents
[0004]
Patent Document 1
Summary of the Invention
Problems to be Solved by the Invention
[0005] However, in Patent Document 1, when the entire image has a high resolution, the entire image may contain a lot of information unnecessary for learning and inference. Therefore, if the entire image is directly used for learning and inference, there is a risk of generating a large computational cost in the learning model and a risk of deterioration of inference accuracy.
[0006] Therefore, an object of the present invention is to reduce the computational cost in the learning model and improve the inference accuracy when learning or inferring using a learning model.
Means for Solving the Problems
[0007] One aspect of the present invention is Image acquisition means for acquiring multiple narrow-area images, each being a part of a target image and each containing different ranges of the target image; and wide-area images, which are images with reduced information content than the target image and containing a wider range of the target image than each of the multiple narrow-area images. Information acquisition means that acquires information correlated with the target image from a learning model into which the plurality of narrow-area images and the wide-area image are input, This is an information processing device characterized by having [a certain feature].
[0008] One aspect of the present invention is, Image acquisition means for acquiring multiple narrow-area images, each being a part of a target image and each containing different ranges of the target image, and wide-area images, which are images from which the information content of the target image has been reduced and which contain a wider range of the target image than each of the multiple narrow-area images, A learning means for training a learning model based on the aforementioned multiple narrow-area images, the aforementioned wide-area image, and information correlated with the aforementioned target image, This is an information processing device characterized by having [a certain feature].
[0009] One aspect of the present invention is, Multiple narrow-area images, each being a part of the target image and each containing different ranges of the target image, and an image with reduced information content compared to the target image. Image acquisition step: Obtain a wide-area image which is an image that includes a wider range of the target image than each of the plurality of narrow-area images, An information acquisition step in which information correlated with the target image is obtained from a learning model that has the aforementioned multiple narrow-area images and the aforementioned wide-area image as inputs, This is a prediction method characterized by having [a certain feature].
[0010] One aspect of the present invention is, A plurality of narrow - area images, each of which is a part of the target image and each of which includes a different range of the target image, and a wide - area image which is an image with the information amount of the target image reduced and which includes a wider range of the target image than each of the plurality of narrow - area images, and an image acquisition step of acquiring these; A learning step of training a learning model based on the plurality of narrow - area images, the wide - area image, and information correlated with the target image; A learning method characterized by comprising these.
Advantages of the Invention
[0011] According to the present invention, when learning or inference is performed using a learning model, the calculation cost in the learning model can be reduced and the inference accuracy can be improved.
Brief Description of the Drawings
[0012] [Figure 1] It is a configuration diagram of an information processing apparatus according to Embodiment 1. [Figure 2] It is an internal configuration diagram of an image processing unit according to Embodiment 1. [Figure 3] It is a diagram for explaining the generation of a divided image according to Embodiment 1. [Figure 4] It is a diagram for explaining the generation of a compressed image according to Embodiment 1. [Figure 5] It is an internal configuration diagram of an information acquisition unit according to Embodiment 1. [Figure 6] It is a diagram for explaining a learning phase according to Example 1. [Figure 7] It is a diagram for explaining a CNN according to Example 1. [Figure 8] It is a diagram for explaining an inference phase according to Example 1. [Figure 9] It is a diagram for explaining a learning phase according to Example 3. [Figure 10] It is a diagram for explaining a learning phase according to a comparative example. [Figure 11] It is a diagram for explaining an inference phase according to a comparative example.
Embodiment for Implementing the Invention
[0013] Hereinafter, embodiments for realizing the present invention will be described with reference to the drawings. The following embodiments do not limit the present invention, and not all combinations of the features described in the present embodiment are essential to the present invention. Furthermore, the following Examples 1 to 3 can be arbitrarily combined as long as there is no contradiction.
[0014] <Embodiment 1> FIG. 1 is a configuration diagram of an information processing apparatus 1 according to Embodiment 1. The information processing apparatus 1 learns a learning model in the learning phase and estimates information correlated (corresponding) to an input image (target image) in the inference phase. For this reason, the information processing apparatus 1 can be regarded as a learning apparatus in the learning phase and as an inference apparatus in the inference phase.
[0015] The information estimated by the information processing apparatus 1 from the input image may be arbitrary information. The information to be estimated is information regarding the future of the object shown in the image, information regarding the past of the object shown in the image, features (physical properties, attributes, etc.) of the object shown in the image, and the like. In the learning for estimation, a teacher image and highly accurate teacher information corresponding to the teacher image may be input in pairs to learn the correlation between the image and the information. Note that the input image may be a design image modeling an object, an RGB image capturing a subject, a distance image in which each pixel indicates the distance to the subject, or a temperature image in which each pixel indicates the temperature of the subject. It may also be a design image modeling an object, an RGB image capturing a subject, a distance image in which each pixel indicates the distance to the subject, or a temperature image in which each pixel indicates the temperature of the subject.
[0016] For example, the information processing device 1 may estimate the production cost (manufacturing cost) of a product (object to be manufactured) from an image that shows the shape of the product (object to be manufactured). The information processing device 1 may estimate the completion date and construction period from images showing the progress at a construction site or in product manufacturing. The information processing device 1 may estimate a person's age from a photograph of a person's face. The information processing device 1 may estimate information related to life, such as the incidence rate of a disease, survival rate, and lifespan, from images obtained from diagnostic imaging such as CT scans.
[0017] Furthermore, the information processing device 1 may estimate the calories and expiration date of food from images of food. The information processing device 1 may estimate the degree of deterioration of an object from images of an object such as a building or furniture. The degree of deterioration could be, for example, the remaining lifespan of the object, or a value where a new item is 0% and a broken item is 100%. The information processing device 1 may also estimate the price of an item from images of an item such as a car or a house, and in this case, the price could be the selling price (purchase price), the resale price, etc. The information processing device 1 may also estimate the catch from images of tidal currents. The information processing device 1 may also estimate weather information such as precipitation and the time when a typhoon will be closest from weather images. The information processing device 1 may also estimate the type and condition (length and weight) of an organism from images of an organism. The estimated state of the organism may be the present, past, or future state. The information processing device 1 may also estimate the ratio of materials in a product from scanned images of the product. The information processing device 1 may also estimate the date and month in which a photograph was taken from a photograph of a person or landscape.
[0018] The information processing device 1 may also estimate future prices from images of graphs (charts) showing past price fluctuations, and in this case, the prices may be those of movable property, immovable property, securities, or commodities (products, services). Furthermore, the information processing device 1 may also estimate the condition of living beings such as horses or people from images of those beings, and may estimate short-term or long-term prospects based on those conditions. For example, the short-term prospects of a racehorse could be the winning percentage or predicted time in the next race, while the long-term prospects of a racehorse could be the winning percentage or number of wins in the races of the following year.
[0019] The information processing device 1 may estimate the distance from the camera to a subject from an RGB image of the subject, such as a living organism or a building, captured by the camera. The information processing device 1 may also estimate the conditions of a space (such as the concentration of various liquids and gases in that space, or the humidity and temperature in that space) from an image of that space. The information processing device 1 may also estimate information about organisms inhabiting a specific location (such as the number of specific organisms like deer or bears, or the average age of trees) from an image of that specific location, such as a forest or a river.
[0020] The information processing device 1 includes an image acquisition unit 10, an image processing unit 11, an information acquisition unit 12, an output unit 13, and an adjustment unit 14.
[0021] The image acquisition unit 10 acquires an input image (target image) of an arbitrary subject. The input image may be a photograph taken with a digital camera or an image captured from a 3D-CAD model. For example, the input image may be an image of a three-dimensional (3D) object viewed from a single direction, or a multi-view image of a 3D object viewed from multiple viewpoints. The input image format can be various formats such as JPEG or PNG, but any format is acceptable. The image acquisition unit 10 acquires the input image from a specific file storage location. Store the input image in the designated location.
[0022] The image processing unit 11 performs image processing on the input image acquired by the image acquisition unit 10 and outputs the processed image to the information acquisition unit 12. The image processing unit 11 performs image processing such as acquiring multiple segmented images (narrow-area images) which are parts of the input image, and acquiring a single compressed image (wide-area image) which reduces the amount of information in the input image.
[0023] The information acquisition unit 12 acquires information (output data) output from the learning model when the image processed by the image processing unit 11 is input to the learning model. If the learning model has already been trained, the information acquisition unit 12 can acquire the inference result corresponding to (correlated with) the input image from the learning model as output data. Details of the learning model will be described later with reference to Figures 5 and 6.
[0024] The output unit 13 outputs the output data acquired by the information acquisition unit 12. Therefore, if the information acquisition unit 12 has acquired an inference result as output data, the output unit 13 outputs this inference result.
[0025] In the learning phase, the adjustment unit 14 adjusts (trains) the learning model based on the output data acquired by the information acquisition unit 12 and the correct data (correct information that the information acquisition unit 12 should acquire). The correct data is information that is pre-prepared and linked to the input image. The correct data does not need to be accurate information; it just needs to be information that is correlated with the input image and seems plausible. For example, the correct data indicating the height of a building linked to an input image of a building that is 10.5m tall may be a value indicating an accurate height of 10.5m, or it may be a value indicating an approximate height of 10m. Note that the adjustment unit 14 is a component that operates in the learning phase and does not operate in the inference phase. Therefore, in the learning phase, by going through the information acquisition unit 12, output unit 13, and adjustment unit 14, it becomes possible to train a learning model based on multiple segmented images, compressed images, and correct data. Accordingly, in the learning phase, the information acquisition unit 12, output unit 13, and adjustment unit 14 together can be called the learning unit.
[0026] (Regarding image processing) Referring to Figure 2, the internal configuration of the image processing unit 11 will be described in detail. The image processing unit 11 includes an input unit 21, an image splitting unit 22, a split image output unit 23, an information reduction unit 24, and a compressed image output unit 25.
[0027] The input unit 21 acquires the input image stored by the image acquisition unit 10 and loads it into memory. The input unit 21 may perform any processing on the input image as needed (resolution adjustment, cropping, or color tone adjustment). In this specification, resolution refers to the screen resolution (total number of pixels), which is the product of the number of pixels in the vertical direction and the number of pixels in the horizontal direction. Therefore, a decrease in the resolution of an image is equivalent to a decrease in the number of pixels of an image.
[0028] The image splitting unit 22 splits the input image that the input unit 21 has loaded into memory. For example, as shown in Figure 3, the image splitting unit 22 generates four split images 32 by dividing the input image 31 into four parts. The image splitting unit 22 generates the split images 32 so that the resolution of the split images 32 matches the resolution defined in the split image input unit 51 of the information acquisition unit 12. In this way, the information acquisition unit 12 can use multiple split images obtained by dividing the input image to capture detailed features of the input image.
[0029] Furthermore, if the image splitting unit 22 can detect characteristic areas in the input image 31, it may selectively cut out only those characteristic areas instead of splitting the input image 31. In this case, the image splitting unit 22 adjusts the resolution of each of the extracted images (narrow-area images) to match the resolution defined in the split image input unit 51. Furthermore, the extracted images may include areas within the input image 31 that are not common to each other (different areas). The extracted images may include areas that are common to each other (identical areas), or they may not include areas that are common to each other.
[0030] Furthermore, the input image expanded into memory by the input unit 21 can be used by the image splitting unit 22 and the information reduction unit 24 without interference from each other's processing. In other words, even if the image splitting unit 22 splits the input image and generates split images, the information reduction unit 24 can use the unsplit input image. And even if the information reduction unit 24 reduces the information content of the input image and generates a compressed image, the image splitting unit 22 can use the input image with unreduced information content.
[0031] The segmented image output unit 23 stores the multiple segmented images generated by the image segmentation unit 22 in a specific file storage location, thereby enabling the information acquisition unit 12 to use the multiple segmented images. Here, the information acquisition unit 12 may input images used in past training back into the training model to obtain output data from the training model in order to train the training model. For this reason, if the segmented image output unit 23 stores the multiple segmented images in a specific file storage location, it will not be necessary to generate the segmented images again each time the training model is trained. However, the segmented image output unit 23 may also generate the segmented images necessary for the current training each time the training model is trained and output those segmented images to the information acquisition unit 12.
[0032] The information reduction unit 24 generates a compressed image, which is an image obtained by reducing (compressing) the amount of information in the input image that the input unit 21 has expanded into memory. For example, as shown in Figure 4, the information reduction unit 24 generates a compressed image 41 by reducing the resolution of the input image 31 (shrinking the input image 31). Alternatively, as shown in Figure 4, the information reduction unit 24 may generate a compressed image 42 by reducing the amount of color information (color information) by converting the input image 31, which is an RGB color image, to grayscale or binarization. The information reduction unit 24 may also generate a compressed image by reducing the resolution of the input image and then further reducing the color information. Furthermore, the information reduction unit 24 may generate a compressed image by cropping (extracting) a part of the input image. In this case, the compressed image should contain a wider range of the input image than each of the multiple divided images. The compressed image should include a range of the input image that is not common to (does not overlap with) the multiple divided images (a range that does not overlap with other divided images in each of the multiple divided images). Furthermore, the compressed image may include all areas of the input image that are contained within multiple divided regions.
[0033] Thus, by using a compressed image with reduced information content from the input image, the information acquisition unit 12 can capture the global features of the input image. Furthermore, because the information content of the compressed image is less than that of the input image, the computational cost of the information acquisition unit 12 in the learning and inference phases can be reduced compared to using the input image as is. Therefore, the computational cost of the learning and inference phases of the information processing device 1 can be reduced.
[0034] The compressed image output unit 25 stores the compressed image, whose information volume has been reduced by the information reduction unit 24, in a specific file storage location. If the resolution defined in the compressed image input unit 53 of the information acquisition unit 12 does not match the resolution of the compressed image, the compressed image output unit 25 adjusts the resolution of the compressed image so that the two resolutions match before storing it in the specific file storage location.
[0035] Furthermore, the resolution (number of pixels) defined in the segmented image input unit 51 and the resolution defined in the compressed image input unit 53 may be the same or different. The resolution of the split image and the resolution of the compressed image may be the same or different. For example, if the resolution of the compressed image is smaller than the resolution of the split image, the cost of the convolutional processing on the compressed image, as described later, can be reduced. Note that the resolution defined in the split image input unit 51 and the resolution defined in the compressed image input unit 53 depend on the amount of information that can be input to the learning model, and can therefore be arbitrarily changed by modifying the design of the learning model (CNN).
[0036] Furthermore, if the image acquisition unit 10 can acquire multiple segmented images and compressed images instead of the input image, the information processing device 1 does not need to have an image processing unit 11. In this case, the image acquisition unit 10 outputs the multiple segmented images and compressed images to the information acquisition unit 12.
[0037] (Regarding the Information Acquisition Department) Referring to Figure 5, the internal configuration of the information acquisition unit 12 will be described in detail. The information acquisition unit 12 includes a learning model 50, a segmented image input unit 51, and a compressed image input unit 53. The learning model 50 includes a segmented image convolution unit 52, a compressed image convolution unit 54, a data concatenation unit 55, a fully connected layer 56, and an output unit 57.
[0038] The segmented image input unit 51 retrieves multiple segmented images from a specific file storage location and expands the multiple segmented images into memory. The multiple segmented images expanded by the segmented image input unit 51 are represented in a multidimensional array.
[0039] The segmented image convolution unit 52 performs convolution on the multidimensional array information of each segmented image and outputs the result of the convolution as array information. The convolution is performed for each segmented image. In the convolution process, the features of the input data are captured step by step by applying a unique filter to each of the multiple convolutional layers. When the weights of the filters in the convolutional layers are adjusted, the array information output from the segmented image convolution unit 52 changes. Therefore, the adjustment unit 14 can adjust the output data acquired by the information acquisition unit 12 from the learning model (i.e., the learning model 50) by adjusting the weights of the filters in the convolutional layers. Furthermore, by inserting activation functions, dropout layers, or pooling layers between the multiple convolutional layers, it may be possible to extract more detailed features or prevent overfitting.
[0040] Furthermore, during the learning phase, the segmented image convolution unit 52 may utilize a technique (transfer learning) that uses a model that has already been pre-trained using a large number of images. By using transfer learning in the segmented image convolution unit 52, the learning time can be shortened, and the prediction accuracy can be improved even when the amount of data used for learning (training data) is small. VGG16, Inception V3, ResNet-50, etc. can be used as the pre-trained model, and any of these models may be used.
[0041] The compressed image input unit 53 retrieves a compressed image from a specific file storage location and decompresses the compressed image in memory. The compressed image is represented as a multidimensional array.
[0042] The compressed image convolution unit 54 performs convolution on the multidimensional array information of the compressed image, similar to the segmented image convolution unit 52, and outputs the result of the convolution as array information. Furthermore, in the learning phase, transfer learning may also be used in the compressed image convolution unit 54.
[0043] The data concatenation unit 55 concatenates the array information output by the segmented image convolution unit 52 and the array information output by the compressed image convolution unit 54 to generate a single array information. A single array information is information that treats multiple values of the same data type as a single variable group (a single set of information). The segmented image convolution unit 52 performs convolution processing on each segmented image, therefore, segmented Sequence information is output for each image. Therefore, if the data concatenation unit 55 simply combines this sequence information, the influence of the global features that should be obtained from the compressed image will be diminished. For this reason, the data concatenation unit 55 may combine the sequence information of multiple divided images into one sequence information using a pooling layer or the like, and then concatenate the combined sequence information with the sequence information output by the compressed image convolution unit 54. This makes it possible to adjust the balance of data size between the sequence information corresponding to the divided images and the sequence information corresponding to the compressed image.
[0044] The fully connected layer 56 further aggregates the features indicated by the sequence information generated by the data concatenation unit 55. The fully connected layer 56 is a layer in which all neurons of the input layer and all neurons of the output layer are connected. In the fully connected layer 56, the overlapping of multiple layers makes it possible to extract more complex features from the input sequence information.
[0045] The output unit 57 aggregates the array information obtained from the fully connected layer 56 so that output data with a predetermined number of elements is output. The number of elements in the output data is, for example, 1 if you want to output (predict) one numerical value, and 1000 if you want to classify it into one of 1000 classes.
[0046] [Example 1] The following describes Example 1 as a specific example of Embodiment 1. In Example 1, we will describe an information processing device 1 that estimates the processing time of the mold pieces constituting a plastic injection molding die from an image (design image) of the mold (3D mold shape) modeled using 3D-CAD.
[0047] (Learning Phase) First, referring to Figure 6, we will explain the learning phase (learning method), which is the phase in which the learning model 50 of the information processing device 1 is trained. In Figure 6, we will take some of the components of the information processing device 1 described above and explain the flow of training the learning model 50.
[0048] Input image 601 is an image (target image) that captures the entire mold as viewed from the +Z direction in the absolute coordinate system of 3D-CAD. The resolution of input image 601 is assumed to be such that the shape of the mold can be confirmed in input image 601. Specifically, the resolution of input image 601 is assumed to be 448 x 448.
[0049] The image segmentation unit 22 and the information reduction unit 24 perform image processing on the input image 601 to generate images that can be used in the learning model 50.
[0050] The image splitting unit 22 splits the input image 601 to generate multiple split images 604. Assuming that the resolution of the image input to the learning model 50 is 224×224, the image splitting unit 22 splits the input image 601, which has a resolution of 448×448, into four split images 604, each with a resolution of 224×224.
[0051] The information reduction unit 24 generates a compressed image 609 by reducing the amount of information in the input image 601. Here, the information reduction unit 24 reduces the amount of information in the input image 601 by lowering the resolution of the input image 601 from 448 × 448 to 224 × 224.
[0052] In the information acquisition unit 12, four segmented images 604 and a compressed image 609 are input to the learning model 50. The learning model 50 includes a segmented image convolution unit 52, a compressed image convolution unit 54, a data concatenation unit 55, a fully connected layer 56, and an output unit 57.
[0053] The segmented image convolution unit 52 extracts features from each of the four segmented images 604. The image convolution section 52 has four convolutional neural networks (CNNs) 606. Figure 7 shows an example of a convolutional neural network 606. In the convolutional neural network 606, features are extracted from the image input to the convolutional neural network 606 by connecting multiple convolutional layers and multiple pooling layers in series.
[0054] Each of the convolutional neural networks 606 is input with one segmented image 604 generated by the image segmentation unit 22. At this time, the segmented image 604 is an image with a resolution of 224 × 224 and contains RGB color information. Therefore, the convolutional neural network 606 is input with the sequence information (224,224,3) as the segmented image 604. Then, the convolutional neural network 606 performs a convolution process and outputs a one-dimensional sequence information with 6400 elements.
[0055] The compressed image convolution unit 54 has a convolutional neural network (CNN) 610. The convolutional neural network 610 receives a compressed image 609, from which the information reduction unit 24 has reduced the amount of information. The compressed image 609 has a resolution of 224 × 224 and contains RGB color information. Therefore, the compressed image 609 is input to the convolutional neural network 610 as (224,224,3) array information. Then, the convolutional neural network 610 performs convolution processing, etc., similar to the convolutional neural network 606 (see Figure 7), and outputs a one-dimensional array information with 6400 elements.
[0056] In the convolutional neural networks 606 and 610, transfer learning using VGG16 may be employed. Since VGG16 utilizes a model trained on a large image set called ImageNet, it is possible to improve the inference accuracy in the inference phase even when the amount of training data is small.
[0057] The data linking section 55 includes a pooling layer 607, a fully connected layer 608, a fully connected layer 611, and a linking layer 612.
[0058] In the pooling layer 607, the outputs (array information) from the four convolutional neural networks 606 are combined into one. In the pooling layer 607, for example, max pooling (the process of obtaining the maximum value of each pooling region) is performed. As a result, one-dimensional array information with 6400 elements, emphasizing the features of the (6400,4) array information, is output. Note that instead of max pooling, average pooling (the process of obtaining the average value of each pooling region) or L2 pooling (the process of obtaining the root mean square of each pooling region) may also be performed. In this embodiment, the amount of information in the array information output from the pooling layer 607 is the same as the amount of information in the array information output from one convolutional neural network 606. However, the amount of information in the array information output from the pooling layer 607 should be less than the sum of the amount of information in the array information output from the four convolutional neural networks 606. In this case, for example, the amount of information in the array information output from the pooling layer 607 is greater than or equal to the amount of information in the array information output from one convolutional neural network 606. Furthermore, the amount of information in an array can be understood as the number of elements in the array.
[0059] Fully connected layers 608 and 611 further summarize the features of the input one-dimensional sequence information. The number of elements of the sequence information output by each of the fully connected layers 608 and 611 may be changed according to the importance of the features in the input image 601. When estimating processing time from an image of the mold according to Example 1, both the detailed features obtained from the four segmented images 604 and the global features obtained from the single compressed image 609 are important (similarly). This is considered to be the importance of the sequence information. Therefore, the number of elements in the sequence information output by the fully connected layer 608 and the fully connected layer 611 (the amount of information in the sequence information) is the same. Specifically, in the fully connected layer 608, the sequence information is consolidated so that the number of elements in the sequence information representing the features in the four segmented images 604 decreases from 6400 to 1024. Then, in the fully connected layer 611, the sequence information is consolidated so that the number of elements in the sequence information representing the features in one compressed image 609 decreases from 6400 to 1024.
[0060] The concatenation layer 612 concatenates the one-dimensional array information (first information) output by the fully connected layer 608 and the one-dimensional array information (second information) output by the fully connected layer 611 in series, and outputs the concatenated array information. In Example 1, since one-dimensional array information with 1024 elements is output from both the fully connected layers 608 and 611, the concatenation layer 612 outputs one-dimensional array information with 2048 elements.
[0061] The fully connected layer 56 further summarizes the features indicated by the sequence information output by the linked layer 612.
[0062] The output unit 57 changes the number of elements in the sequence information output from the fully connected layer 56 to match the information that the information processing device 1 infers during the inference phase. In Embodiment 1, since the information processing device 1 infers the processing time during the inference phase, the output unit 57 outputs sequence information with 1 element. As a result, the information acquisition unit 12 can acquire output data corresponding to the input image 601 from the learning model 50 which has been input with four segmented images 604 and one compressed image 609.
[0063] The adjustment unit 14 trains the learning model 50 based on the output data output from the learning model 50 (output unit 57) and the correct information (correct data; training data) that should be output from the learning model 50. Specifically, the adjustment unit 14 adjusts the weights of the filters of the convolutional neural networks 606,610 (convolutional layers) to minimize the value of the loss function, which represents the degree of error between the output data and the correct data for multiple input images. As the weights of the filters of the convolutional neural networks 606,610 are adjusted, the output data output from the learning model 50 changes, and the value of the loss function can be updated. In this way, the adjustment unit 14 can make the learning model 50 a trained model by adjusting the weights of the filters of the convolutional neural networks 606,610. The mean absolute percentage error, which will be described later with reference to Equation 1, can be used as the loss function. Alternatively, the sum of squared errors or cross-entropy errors may be used as the loss function.
[0064] In Example 1, the user prepares approximately 1000 sets of training data in advance, each set consisting of, for example, an input image representing a mold and actual information (ground truth data) of the processing time corresponding to that input image. The adjustment unit 14 then performs the training described above on a workstation equipped with a GPU. The user may also adjust the number of training epochs and batch size during the training process to enable highly accurate predictions in the prediction phase.
[0065] (Speculation Phase) Next, referring to Figure 8, we will explain the process of estimating processing time (estimation phase; estimation method) using the trained model 804, which was trained on the learning model 50 during the learning phase.
[0066] Input image 801 is an input image of the mold, captured from the +Z direction in the absolute coordinate system, using 3D shape data of the mold. The color information of input image 801 is stored in RGB format. The resolution of input image 801 is 448 x 448.
[0067] The image splitting unit 22 divides the input image 801 into four parts to generate four split images 802 with a resolution of 224 x 224. As a result, the information acquisition unit 12 can access the input image 801. Detailed features can be more easily obtained from the four segmented images 802.
[0068] The information reduction unit 24 reduces the resolution of the input image 801 to generate a compressed image 803. Specifically, the information reduction unit 24 generates a compressed image 803 by reducing the input image 801 so that its resolution is 224 × 224. This makes it easier for the information acquisition unit 12 to obtain global features from the compressed image 803 in the input image 801.
[0069] The information acquisition unit 12 has a trained model 804. The trained model 804 is a model that was trained on the training model 50 during the training phase. When four segmented images 802 and one compressed image 803 are input to the trained model 804, the information acquisition unit 12 outputs an estimated result (estimated value) of the mold processing time. The estimated result may be written to a log file or displayed on the screen of the display unit of the information processing device 1.
[0070] As an indicator to evaluate the accuracy of the prediction results (prediction performance of the information processing device 1), the mean absolute percentage error relative to the actual processing time (ground truth data) can be used. A lower mean absolute percentage error indicates higher prediction accuracy. Equation 1 shows the method for calculating the mean absolute percentage error M. In Equation 1, n is the number of input images, and t is the value (identifier) that identifies the input image. At is the measured value corresponding to identifier t, and Ft is the prediction result (predicted value) corresponding to identifier t. In Example 1, a mean absolute percentage error M of 32.4% was obtained.
number
[0071] [Example 2] As a specific example of Embodiment 1, Embodiment 2 describes an example in which, in the information processing device 1 according to Embodiment 1, a compressed image with reduced color information of the input image (target image) is used instead of a compressed image (wide-area image) with reduced resolution of the input image (target image). In the following, only the differences between Embodiment 2 and Embodiment 1 will be explained, and the same content as Embodiment 1 will be omitted from the explanation.
[0072] In Example 2, during the learning phase shown in Figure 6, the information reduction unit 24 generates a compressed image 609 by reducing color information from the input image 601. In Example 2, the input image 601 has a resolution of 448 x 448 and is formed in RGB format. Since the input image 601 is an image generated from mold 3D shape data, various colors are added to recognize tolerance information and various attributes. However, color is unnecessary information for obtaining the global shape features of the input image 601. Therefore, the information reduction unit 24 generates a compressed image 609 by reducing color information by converting the input image 601 to grayscale. This makes it possible to obtain features more efficiently from the compressed image 609.
[0073] Furthermore, unlike in Example 1, the convolutional neural network 610 (training model 50) is input with a compressed image 609 having a resolution of 448 × 448. Specifically, since the compressed image 609 has a resolution of 448 × 448 and is a grayscale image, the convolutional neural network 610 is input with the sequence information (448,448,1) as the compressed image 609.
[0074] Other processing in the learning phase of Example 2 is the same as the processing described in Example 1. This is the processing method. Furthermore, in the inference phase of Example 2, the only difference from Example 1 is that the information reduction unit 24 similarly generates a compressed image 803 by reducing the color information of the input image 801, and the compressed image 803 is input to the trained model 804.
[0075] In Example 2, we were able to obtain a mean absolute percentage error of 37.8%, which is an indicator used to evaluate the accuracy of the prediction results.
[0076] [Example 3] As a specific example of Embodiment 1, Embodiment 3 describes an example that differs from Embodiment 1, in which the information processing device 1 according to Embodiment 1 uses a compressed image (wide-area image) with reduced resolution of the input image. In the following, only the differences between Embodiment 3 and Embodiment 1 will be explained, and the same content as Embodiment 1 will be omitted from the explanation.
[0077] First, referring to Figure 9, we will explain the learning phase, which is the phase in which the learning model 900 of the information processing device 1 is trained. The only difference in Embodiment 3 from Embodiment 1 is that the data linking unit 901 of the learning model 900 is present instead of the data linking unit 55 of the learning model 50 in Embodiment 1. For this reason, we will explain only the data linking unit 901 in detail below, and omit explanations of other components.
[0078] Unlike the data concatenation unit 55 in Embodiment 1, the data concatenation unit 901 does not have a pooling layer 607 or fully connected layers 608 and 611. The sequence information output from the four convolutional neural networks 606 and 610 is all concatenated in the concatenation layer 612. As a result, the sequence information output by the concatenation layer 612 contains more features from the segmented image 604 than from the compressed image 609. Therefore, if detailed features of the input image 601 should be particularly important in the prediction, using Embodiment 3 will improve the prediction accuracy compared to Embodiment 1. In addition, since the pooling layer 607 and fully connected layers 608 and 611 can be excluded from the learning model, the computational cost using the learning model can be reduced.
[0079] On the other hand, in the estimation phase, the learning model 900, which was trained in the learning phase, receives the segmented image 802 and the compressed image 803 as input, similar to Example 1 (see Figure 8), thereby obtaining the processing time estimated from the learning model 900.
[0080] In Example 3, we were able to obtain a mean absolute percentage error of 34.6%, which is an indicator used to evaluate the accuracy of the prediction results.
[0081] (Comparative example) Using Figures 10 and 11, we will explain the evaluation of the accuracy of the prediction results when the amount of information in the input image is not reduced, as an example to compare with Examples 1 to 3. In Figures 10 and 11, the components numbered the same as those in Figures 6 and 8 are the same as those in Example 1, so a detailed explanation will be omitted.
[0082] Figure 10 illustrates the learning phase when the amount of information in the input image 601 is not reduced.
[0083] In this comparative example, the information reduction unit 24 is absent. Therefore, the convolutional neural network (CNN) 1001 in the learning model 50 receives the input image 601 as (448,448,3) array information without any reduction in the amount of information of the input image 601. The convolutional neural network 1001 then performs a convolution operation on the input image 601, and outputs a one-dimensional array information with 6400 elements.
[0084] Therefore, the convolutional neural network 1001 receives an input image 601 with more information than the compressed image 609 input to the convolutional neural network 610 in Examples 1 to 3. As a result, in this comparative example, the computational cost for performing convolution in the convolutional neural network increases compared to Examples 1 to 3.
[0085] On the other hand, in the inference phase, as shown in Figure 11, the information processing device 1 uses the trained model 1101, which was trained on the learning model 50 in the learning phase, to determine the inference result. In the inference phase, the trained model 1101 is input to the four divided images 802 obtained by dividing the input image 801, and the input image 801 in which the amount of information has not been reduced. For this reason, in the inference phase of this comparative example as well, the computational cost for performing convolution in the convolutional neural network increases compared to Examples 1 to 3.
[0086] In this comparative example, a mean absolute percentage error (ERA), an index used to evaluate the accuracy of the prediction results, was obtained at 40.6. In contrast, the ERA in Example 1 was 32.4%, and in Example 2 it was 37.8%. Furthermore, in Example 3 it was 34.6%. Therefore, it was confirmed that the accuracy of the prediction results improved by using an image with reduced information content in the input image.
[0087] Based on the above, according to Embodiment 1 (Examples 1-3), in an information processing device that performs learning or inference using a learning model, it is possible to reduce the computational cost of the learning model and improve the inference accuracy.
[0088] In the above embodiments and examples, we have described an example of machine learning using a convolutional neural network, but any machine learning method using a support vector machine (SVM), linear regression, etc. may be used. Furthermore, although learning and inference were performed by a single information processing device in the above example, the device that performs learning and the device that performs inference may be separate devices.
[0089] Furthermore, reducing the amount of information in an input image is not limited to lowering the resolution or reducing color information. For example, the amount of information can also be reduced by decreasing the number of bits in the pixel value of each pixel in the input image.
[0090] Furthermore, each functional unit in each of the above embodiments may or may not be individual hardware. The functions of two or more functional units may be implemented by common hardware. Each of the multiple functions of a single functional unit may be implemented by individual hardware. Two or more functions of a single functional unit may be implemented by common hardware. In addition, each functional unit may or may not be implemented by hardware such as ASIC, FPGA, or DSP. For example, the device may have a processor and a memory (storage medium) in which a control program is stored. The functions of at least some of the functional units of the device may be implemented by the processor reading and executing the control program from the memory.
[0091] (Other embodiments) The present invention can also be realized by supplying a program that implements one or more of the functions of the above embodiments to a system or device via a network or storage medium, and by having one or more processors in the computer of that system or device read and execute the program. It can also be realized by a circuit (e.g., an ASIC) that implements one or more functions. [Explanation of symbols]
[0092] 1: Information processing unit, 11: Image processing unit, 12: Information acquisition unit, 50: Learning Model
Claims
1. An image acquisition means for acquiring a plurality of narrow area images obtained by dividing a target image, and a wide area image which is an image with a reduced amount of information compared to the target image and which includes a wider range of the target image than each of the plurality of narrow area images; an information acquiring means for acquiring information correlated with the target image from a learning model to which the plurality of narrow area images and the wide area image are input; 13. An information processing device comprising:
2. An image acquisition means for acquiring a plurality of narrow area images obtained by dividing a target image, and a wide area image which is an image in which the amount of information of the target image is reduced and which includes a wider area of the target image than each of the plurality of narrow area images; A learning means for learning a learning model based on the plurality of narrow-area images, the wide-area image, and information correlated with the target image; 13. An information processing device comprising:
3. The method further includes an information acquisition means for acquiring information correlated with the target image from a learning model to which the plurality of narrow-area images and the wide-area image are input, The learning means uses information correlated with the target image acquired by the information acquisition means to train the learning model.
3. The information processing apparatus according to claim 2.
4. The wide-area image is an image obtained by reducing the number of pixels of the target image.
4. The information processing apparatus according to claim 1, wherein the information processing apparatus is a computer.
5. The wide-area image is an image obtained by reducing color information of the target image.
5. The information processing apparatus according to claim 1, wherein the information processing apparatus is a computer.
6. The wide-area image is an image obtained by reducing the number of bits of pixel values of the target image.
6. The information processing apparatus according to claim 1,
7. The wide-area image is a target image in which the plurality of narrow-area images are not common to each other. Contains range, 7. The information processing apparatus according to claim 1,
8. In the learning model, a process is executed based on information obtained by linking first information acquired from the plurality of narrow-angle images and second information acquired from the wide-angle image.
8. The information processing apparatus according to claim 1,
9. the first information is information that at least combines a plurality of pieces of information acquired by performing at least a convolution process on each of the plurality of narrow area images into one piece of information; The second information is information obtained by performing at least a convolution process on the wide-area image.
9. The information processing apparatus according to claim 8,
10. an amount of information of the first information is less than a total amount of information of the plurality of information before being combined into the one information; 10. The information processing apparatus according to claim 9,
11. an amount of information of the first information is equal to or greater than an amount of information of each of the plurality of pieces of information before being consolidated into the one piece of information; 11. The information processing apparatus according to claim 9,
12. The amount of information of the first information is the same as the amount of information of the second information.
12. The information processing apparatus according to claim 9, wherein the information processing apparatus is a computer.
13. the number of pixels of each of the plurality of narrow area images is different from the number of pixels of the wide area image; 13. The information processing apparatus according to claim 1,
14. the target image is a design image of a manufacturing target object, The information correlated with the target image is a processing time of the manufacturing object or a manufacturing cost of the manufacturing object.
14. The information processing apparatus according to claim 1,
15. The manufacturing object is a mold.
15. The information processing apparatus according to claim 14,
16. An image acquisition step of acquiring a plurality of narrow area images obtained by dividing a target image, and a wide area image which is an image having a reduced amount of information compared to the target image and which includes a wider range of the target image than each of the plurality of narrow area images; an information acquisition step of acquiring information correlated with the target image from a learning model to which the plurality of narrow area images and the wide area image are input; The method for predicting the above-mentioned feature is characterized by comprising the steps of:
17. An image acquisition step of acquiring a plurality of narrow area images obtained by dividing a target image, and a wide area image which is an image in which the amount of information of the target image is reduced and which includes a wider range of the target image than each of the plurality of narrow area images; a learning step of learning a learning model based on the plurality of narrow-area images, the wide-area image, and information correlated with the target image; A learning method comprising:
18. Each step of the estimation method according to claim 16 or the learning method according to claim 17 is carried out by computer. A program for a computer to execute.
