Learning program, learning method, and information processing device
By calculating similarity and incorporating grasp scores, the learning program stabilizes machine learning models, enhancing accuracy in grasping tasks by prioritizing successful patterns and reducing local solution risks.
Patent Information
- Application Number
- JP2020073729
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-04-16
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-04-16
AI Technical Summary
Machine learning models in sequential learning can become unstable and fall into local solutions due to the lack of accurate training data, particularly in tasks like grasping fragile objects, leading to reduced accuracy.
A learning program that calculates the similarity between image data pairs and uses a combination of image data to improve machine learning accuracy by incorporating a grasp score that reflects the degree of success or failure, thereby stabilizing the learning process.
The proposed method enhances the accuracy of machine learning by using grasp scores to prioritize successful grasping patterns, reducing the likelihood of local solutions and improving prediction stability.
Smart Images

Figure 0007556208000004 
Figure 0007556208000023 
Figure 0007556208000010
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning program, a learning method, and an information processing device. [Background technology]
[0002] With the development of robotic functions, it is expected that robots will be used to replace manual labor. However, to operate a robot and perform the same movements as a human worker, an expert is required. Therefore, in order to make the robot operate automatically, machine learning, including deep learning, is being used to have the robot learn the movement trajectory of the manual labor.
[0003] For example, machine learning is performed using a large amount of training data in which images are associated with teacher labels that indicate desired actions to generate a model, and when making predictions after learning is complete, the images are input into the model to predict the action.In addition, in object detection using machine learning, machine learning is performed using training data in which each image is associated with a desired output and an object position to generate a model, and when making predictions, the object position is also predicted.
[0004] On the other hand, it may be difficult to collect a large amount of training data (hereinafter, may be referred to as teaching data) to which teacher labels are attached in advance, and in recent years, sequential learning (hereinafter, may be referred to as teachingless learning) has been used in which a machine learning model predicts an operation and performs machine learning sequentially while receiving feedback on whether the prediction result was successful or not. Taking a picking robot as an example, a machine learning model is used to predict an object to be grasped from an image containing multiple objects, and then the picking operation is actually performed with an actual machine according to the prediction, and the success or failure of the grasping is evaluated according to the actual operation. In this way, training data (hereinafter, may be referred to as trial samples) in which images and the success or failure of grasping are associated are generated and accumulated, and when a predetermined number or more trial samples are accumulated, machine learning is performed using the accumulated trial samples. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] Lerrel Pinto, Abhinav Gupta, “Supersizing Self-supervision: Learning to Grasp from 50K Tries and 700 Robot Hour”, September 23, 2015, arXiv:1509.06825v1 Summary of the Invention [Problem to be solved by the invention]
[0006] However, in the above-mentioned sequential learning, the degree of success cannot be included in the training data, which is a trial sample, so the machine learning may not be stable and may fall into a local solution, which may reduce the accuracy of the machine learning.
[0007] For example, when a picking operation is performed on an actual machine, the only thing that can be determined is whether the picking was successful or not. Therefore, even if you want to learn that picking a fragile part, such as a precision instrument, is a failure pattern, if the picking is successful, it will be learned as a success pattern.
[0008] Although parameter design considering all grasping patterns is conceivable, this is not realistic since there are an infinite number of grasping patterns depending on the shape of the object.In addition, although it is conceivable to use a machine learning model that evaluates the degree of success, the cost of separately preparing training data for learning the machine learning model in advance is high, and this does not match the original purpose of sequential learning.
[0009] In one aspect, an object of the present invention is to provide a learning program, a learning method, and an information processing device that can improve the accuracy of machine learning. [Means for solving the problem]
[0010] In a first proposal, the learning program causes the computer to execute a process of calculating a similarity between image data for a combination of any two image data included in a plurality of image data that satisfies a first condition, where one of the combinations satisfies a second condition in addition to the first condition. The learning program causes the computer to execute a process of calculating a score that increases as the similarity increases based on the calculated similarity between the image data. The learning program causes the computer to execute a process of performing machine learning using learning data based on the other image data of the combination and the score. Effect of the Invention
[0011] On the one hand, the accuracy of machine learning can be improved. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a diagram illustrating an information processing apparatus according to a first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating the information processing device according to the first embodiment. [Diagram 3] FIG. 3 is a functional block diagram of the information processing device according to the first embodiment. [Figure 4] FIG. 4 is a diagram illustrating training data for evaluation. [Diagram 5] FIG. 5 is a diagram illustrating the ideal grip data. [Figure 6] FIG. 6 is a diagram for explaining data that does not correspond to the ideal grip data. [Figure 7] FIG. 7 is a diagram for explaining image data of a trial sample. [Figure 8] FIG. 8 is a diagram for explaining machine learning of the evaluation model. [Figure 9] FIG. 9 is a diagram for explaining details of machine learning of the evaluation model. [Figure 10] FIG. 10 is a diagram illustrating a series of steps in machine learning of a detection model. [Figure 11]FIG. 11 is a diagram illustrating a series of steps in machine learning of a detection model. [Figure 12] FIG. 12 is a diagram illustrating a series of steps in machine learning of a detection model. [Figure 13] FIG. 13 is a diagram illustrating a series of steps in machine learning of a detection model. [Figure 14] FIG. 14 is a diagram for explaining calculation of the grasping score. [Figure 15] FIG. 15 is a diagram for explaining generation of trial samples. [Figure 16] FIG. 16 is a diagram illustrating machine learning of a detection model. [Figure 17] FIG. 17 is a diagram for explaining parameter update of the detection model. [Figure 18] FIG. 18 is a flowchart showing the flow of the learning process of the evaluation model. [Figure 19] FIG. 19 is a flowchart showing the flow of the process of generating trial samples and the process of learning a detection model. [Figure 20] FIG. 20 is a flowchart showing the flow of a series of processes including pre-learning. [Figure 21] FIG. 21 is a diagram illustrating an example of a hardware configuration. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, the learning program, learning method, and information processing device disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments. In addition, each embodiment can be appropriately combined within a range that does not cause a contradiction. EXAMPLES
[0014] [Description of information processing device] The information processing device 10 according to the first embodiment is an example of a computer device that predicts the gripping position (grip target) of a picking robot (hereinafter, may be referred to as "actual machine"), and detects the gripping position from an image showing a plurality of objects that are the gripping targets. The information processing device 10 sequentially executes machine learning of the detection model while predicting the output of the detection model using machine learning and receiving feedback on whether the result is appropriate.
[0015] Specifically, the information processing device 10 inputs the image into a detection model to predict the gripping position, and then the picking robot actually performs the picking operation according to the prediction. The information processing device 10 then evaluates the success or failure of the gripping operation according to the actual operation, and generates a trial sample in which the image, the success or failure of the gripping operation, and the teacher label (successful gripping position) are associated with each other.
[0016] In this way, the information processing device 10 generates teaching data from the evaluation results of the actual operation using the actual device, and then executes machine learning of the detection model. At this time, when evaluating whether or not the grasping was successful, the information processing device 10 calculates not only whether it was successful or not, but also a grasping score that indicates the degree of success, thereby improving the accuracy of the machine learning of the detection model.
[0017] 1 and 2 are diagrams for explaining an information processing device 10 according to a first embodiment. As shown in Fig. 1, the information processing device 10 uses an image pair to perform machine learning of an evaluation model that evaluates the similarity of images. For example, the information processing device 10 selects two images from a group of multiple images and calculates the similarity between the images. Then, the information processing device 10 performs machine learning of the evaluation model using the two images as explanatory variables and a teacher label based on the similarity as an objective function.
[0018] Next, the information processing device 10 inputs the acquired image containing the object into the pre-learning detection model to acquire a predicted image that predicts the grasp target. After that, the information processing device 10 uses the actual device to grasp the grasp target identified in the predicted image, and generates an actual device result that is an image showing the actual grasp result. Then, the information processing device 10 inputs the ideal grasp image showing the ideal grasp result and the actual device result into the trained evaluation model, and calculates a grasp score that indicates the degree of success using the output from the evaluation model. After that, the information processing device 10 generates a trial sample in which the acquired image, the teacher label, and the grasp score are associated with each other.
[0019] After that, when a prescribed number or more of trial samples are generated, machine learning of the detection model is executed. Specifically, as shown in Fig. 2, the information processing device 10 inputs the acquired images of each trial sample as explanatory variables to the detection model, and executes machine learning of the detection model based on the error between the prediction result, which is the output result of the detection model, and the teacher label, while performing feedback adjustment according to the grasping score.
[0020] In this way, when the information processing device 10 completes machine learning of the detection model, it inputs a target image containing an object into the trained detection model, and performs grasp detection (grasp prediction) that detects the grasp position of the picking robot based on the output of the detection model.
[0021] [Function configuration] 3 is a functional block diagram showing a functional configuration of the information processing device 10 according to the first embodiment. As shown in FIG. 3, the information processing device 10 includes a communication unit 11, a storage unit 12, and a control unit 20.
[0022] The communication unit 11 is a processing unit that controls communication with other devices, and is realized by, for example, a communication interface. For example, the communication unit 11 transmits an operation instruction to a picking robot, which is an actual machine, and obtains an operation result from the picking robot. Note that the operation result may be image data or a command result capable of generating image data.
[0023] The storage unit 12 is a processing unit that stores various data and programs executed by the control unit 20, and is realized by, for example, a memory or a hard disk. For example, the storage unit 12 stores an evaluation training data DB13, an ideal gripping data DB14, a trial sample DB15, a learning result DB16, and a detection result DB17.
[0024] The evaluation training data DB 13 stores a plurality of training data used for machine learning of the evaluation model. Specifically, each training data stored in the evaluation training data DB 13 is composed of two sets of image data pairs. Here, the generation of training data when inputting to the evaluation model will be described. Note that the generation of training data can be executed, for example, by the control unit 20 or the evaluation model learning unit 21 described later, or can be executed in advance by another device, but here, an example in which the training data is executed by the evaluation model learning unit 21 will be described.
[0025] FIG. 4 is a diagram for explaining training data for evaluation. As shown in FIG. 4, the evaluation model learning unit 21 acquires a plurality of gripping state captured image data, which are raw image data without labels and without special pre-processing, and are images of gripping states captured in advance, to generate a dataset. Here, the dataset includes ideal grip data, which is an image of a target gripping state. Then, the evaluation model learning unit 21 generates a combination of two image data (x1, x2) by combining each image data in the dataset as a set of training data.
[0026] The ideal gripping data DB14 stores ideal gripping data, which is an image of a desired gripping state. Fig. 5 is a diagram for explaining the ideal gripping data, and Fig. 6 is a diagram for explaining data that does not correspond to the ideal gripping data. As shown in Fig. 5, an image in which the upper and lower gripping parts are gripping the electronic component or the like as the gripping target without misalignment is set as ideal gripping data. On the other hand, as shown in Fig. 6(a) and (b), an image in which the upper and lower gripping parts are gripping the electronic component or the like as the gripping target with misalignment is excluded from the ideal gripping data, even though the electronic component or the like is gripped.
[0027] The ideal gripping data is captured and stored in advance by an administrator or the like. Here, an example in which the state of Fig. 5 is used as the ideal gripping data has been described, but the ideal gripping data is not limited to this. For example, due to the nature of the electronic component to be gripped, the state of Fig. 6 (a) or (b) can be used as the ideal gripping data in order to avoid gripping a fragile part.
[0028] The trial sample DB 15 stores trial samples, which are an example of training data used for machine learning of the detection model. Specifically, the trial sample DB 15 stores trial samples in which image data, teacher labels, and gripping scores are associated with each other. The trial samples stored here are used for supervised learning of the detection model.
[0029] FIG. 7 is a diagram for explaining image data of a trial sample. As shown in FIG. 7, the image data of the trial sample is a work range image obtained by imaging the work range of the picking robot and including bounding boxes indicating the positions of multiple objects to be grasped. When inputting the image data of this trial sample to the detection model, the image data is cut out at random positions with the input size of the detection model so as to include each bounding box and input. At this time, the bounding boxes are also converted into the cut-out coordinates. Note that for each image data generated from one work range image, the correct answer label is obtained by the trial of the picking robot, and therefore only one is given in the image data.
[0030] Here, the bounding box indicates the object gripping position in the work area image, and is expressed as "x, y, h, w, θ, S, C n " information. x, y indicate the detection position, h, w indicate the size, θ indicates the rotation angle, S indicates the grasping score, and C n indicates the probability of belonging to class n. The grasping score of S is set by the trial sample generation unit 23, which will be described later. Note that the image data of the trial sample is input to the detection model after general data augmentation such as sliding, color conversion, and scale conversion is performed.
[0031] The learning result DB 16 stores the results of machine learning for each model. For example, the learning result DB 16 stores the machine learning results of the evaluation model and the machine learning results of the detection model. Here, each machine learning result includes each optimized parameter of a neural network, etc.
[0032] The detection result DB 17 stores the detection result using the trained detection model. For example, the detection result DB 17 stores an image of the detection target and a target to be grasped by the picking robot, which is an output result of the detection model, in association with each other.
[0033] The control unit 20 is a processing unit that controls the entire information processing device 10, and is realized by, for example, a processor. The control unit 20 has an evaluation model learning unit 21, a detection model learning unit 22, and a detection execution unit 25. Note that the evaluation model learning unit 21, the detection model learning unit 22, and the detection execution unit 25 can be realized as an electronic circuit such as a processor, or can be realized as a process executed by a processor.
[0034] The evaluation model learning unit 21 is a processing unit that generates training data to be stored in the evaluation training data DB13, and executes machine learning of the evaluation model using the training data stored in the evaluation training data DB13.
[0035] (Generating training data) First, the generation of training data will be described. For example, the evaluation model learning unit 21 inputs image data into a detection model to obtain a prediction of a gripping position. Then, the evaluation model learning unit 21 executes a picking operation using an actual machine for the predicted gripping position and obtains image data of the actual picking operation. The evaluation model learning unit 21 stores the image data of the actual picking operation collected in this manner in the evaluation training data DB 13 to generate training data for the evaluation model. Note that the training data can be created in advance by an administrator or the like and stored in the evaluation training data DB 13.
[0036] (Machine learning for evaluation model) Next, machine learning of the evaluation model will be described. For example, the evaluation model learning unit 21 generates an evaluation model by executing metric learning using training data stored in the evaluation training data DB 13, with two paired image data as explanatory variables and a teacher label based on an image difference, which is a difference between image data, as a target variable. Then, when the machine learning is completed, the evaluation model learning unit 21 stores the learning result or the learned evaluation model in the learning result DB 16. The timing to end the machine learning can be set arbitrarily, such as when machine learning is performed using a predetermined number of training data or when the restoration error becomes equal to or less than a threshold.
[0037] FIG. 8 is a diagram for explaining machine learning of the evaluation model, and FIG. 9 is a diagram for explaining details of machine learning of the evaluation model. As shown in FIG. 8, the evaluation model learning unit 21 reads two image data (x1, x2) from the evaluation training data DB 13 and calculates the similarity between the two image data. Next, if the similarity is equal to or greater than a threshold, the evaluation model learning unit 21 sets a teacher label y (for example, 1.0) indicating that the two image data (x1, x2) match, and if the similarity is less than the threshold, sets a teacher label y (for example, 0.0) indicating that the two image data (x1, x2) do not match. After that, the evaluation model learning unit 21 performs various data extensions on the two image data and inputs them to the evaluation model.
[0038] Next, as shown in FIG. 9, the evaluation model learning unit 21 executes distance learning of the evaluation model by supervised learning with two image data as explanatory variables and teacher labels as objective variables. In the first embodiment, SNs (Siamese Networks) are used for the evaluation model. SNs takes a set of image data as input and outputs a two-dimensional feature vector. In SNs, two image data are input to different networks, but the networks have the same configuration and share parameters such as weights. In SNs, two feature vectors output from the two image data are compared, and the distance between them is calculated using Euclidean distance or the like.
[0039] Using this feature, the evaluation model learning unit 21 inputs two pieces of image data to the SNs, obtains feature vectors corresponding to the respective pieces of image data, and calculates the distance between the feature vectors.Then, based on the error based on the distance (contrastive loss), the evaluation model learning unit 21 optimizes each parameter of the SNs using the Contrastive Loss function shown in formula (1) so that the distance between the same samples is close and the distance between different samples is far.
[0040]
number
[0041] In the above example, when a teacher label y (for example, 1.0) indicating that two pieces of image data are similar is set between the two pieces of image data, the evaluation model learning unit 21 determines that the two pieces of image data are the same sample and calculates "L + On the other hand, when a teacher label y (e.g., 0.0) indicating that the two pieces of image data are dissimilar is set between the two pieces of image data, the evaluation model learning unit 21 determines that the two pieces of image data are different samples and reduces the "L - The algorithm learns to increase "dissimilar loss".
[0042]
number
number
[0043] In this manner, the evaluation model learning unit 21 executes metric learning using the training data stored in the evaluation training data DB 13 to generate an evaluation model.
[0044] Returning to Fig. 3, the detection model learning unit 22 is a processing unit that has a trial sample generation unit 23 and a model learning unit 24, and executes generation of the detection model. The trial sample generation unit 23 uses a trained evaluation model to generate training data (trial samples) to be used for machine learning of the detection model, and stores the data in the trial sample DB 15. The model learning unit 24 is a processing unit that executes machine learning of the detection model, using the trial samples.
[0045] (Machine learning detection model) First, a series of flows of machine learning of a detection model will be described. FIG. 10 to FIG. 13 are diagrams for explaining a series of flows of machine learning of a detection model. As shown in FIG. 10, the trial sample generation unit 23 cuts out a work range captured image including at least one grasp target into image data of a certain size by a method similar to the method described in FIG. 7, and inputs the cut image data to the detection model. Then, the trial sample generation unit 23 selects the kth most likely prediction probability as an estimation result from among the outputs of the detection model corresponding to the input of each image data. Note that k can be set arbitrarily. Here, it is assumed that B1 is estimated to be a grasp target.
[0046] Next, as shown in Fig. 11, the trial sample generation unit 23 operates the picking robot, which is the actual machine, to grip B1 estimated as the gripping position, and acquires image data of the operation result (hereinafter, may be referred to as "actual machine gripping result"). Then, as shown in Fig. 12, the trial sample generation unit 23 inputs the actual machine gripping result to the trained evaluation model. Here, the trained evaluation model evaluates the operation of the actual machine.
[0047] 13, the trial sample generation unit 23 calculates a grasping score indicating the difference from the ideal grasping state by using the output of the trained evaluation model according to the input of the actual device grasping result. Here, the grasping score calculated is "1.0" when the similarity is the highest, and "0.1" when the similarity is the lowest.
[0048] Then, the model learning unit 24 generates a trial sample by associating the work area captured image with the gripping score, and executes machine learning of the detection model using the trial sample. At this time, it is possible to set a teacher label indicating the correct answer to the bounding box that is actually gripped among the bounding boxes in the work area captured image, and to set a teacher label indicating that the bounding box is not the correct answer to the other bounding boxes.
[0049] (Calculation of grip score) Next, the calculation of the grip score will be described. The trial sample generation unit 23 acquires the learning result of the evaluation model from the learning result DB 16 and constructs a trained evaluation model. Then, the trial sample generation unit 23 uses the trained evaluation model to calculate the distance between the optimal grip position and the image data of the operation result, and sets the distance as the grip score.
[0050] Fig. 14 is a diagram for explaining the calculation of the grasping score. As shown in Fig. 14, the trial sample generation unit 23 inputs the ideal grasping data stored in the ideal grasping data DB 14 and image data of the operation result obtained by the operation of the actual machine (actual machine grasping result) into the trained evaluation model. Then, the trial sample generation unit 23 acquires a feature vector corresponding to the ideal grasping data and a feature vector corresponding to the actual machine grasping result as the output of the trained evaluation model, and calculates the Euclidean distance S between these feature vectors. d The neural network applied to the evaluation model is designed to output feature vectors in the range of [-1.0, 1.0].
[0051] Then, the trial sample generating unit 23 generates a trial sample by setting a gripping score according to the Euclidean distance for the work range captured image used in generating the image data of the operation result, or for each bounding box in the work range captured image to which a correct teacher label or an incorrect teacher label is set. In this way, the trial sample generating unit 23 generates a trial sample and stores it in the trial sample DB 15.
[0052] Fig. 15 is a diagram for explaining the generation of trial samples. As shown in Fig. 15, the trial sample generation unit 23 assigns a relatively low grip score to an action result far from the correct answer (ideal grip data) to reduce the influence of feedback during machine learning of the detection model. On the other hand, the trial sample generation unit 23 assigns a relatively high grip score to an action result close to the correct answer (ideal grip data) to increase the influence of feedback during machine learning of the detection model.
[0053] For example, the trial sample generation unit 23 can assign a grasping score to the operation result by dividing the grasping score into 10 stages ranging from "1.0" to "-1.0" and associating each stage with a range of Euclidean distance. The feature vector of the ideal grasping data can be the average value of a plurality of ideal grasping data. Since the distance between two points is [0.0, root 2], the reciprocal of the distance plus a constant is taken so that the smaller the distance, the larger the grasping score becomes. In this way, by increasing the grasping score of a trial sample close to the target sample (ideal grasping), the feedback during training of a trial sample closer to success can be increased.
[0054] (Learning the detection model) The model learning unit 24 is a processing unit that executes machine learning of the detection model using each trial sample stored in the trial sample DB 15 after a certain number of trial samples are generated. Fig. 16 is a diagram for explaining machine learning of the detection model. As shown in Fig. 16, the model learning unit 24 cuts out the work range captured image of the trial sample to a predetermined size, inputs each data to the detection model, and selects the data with the highest k prediction probabilities as an estimation result (predicted gripping position).
[0055] Then, the model learning unit 24 performs machine learning of the detection model so that the estimation result matches data including a bounding box to which a correct teacher label is set within the work range captured image.
[0056] At this time, the model learning unit 24 performs machine learning of the detection model by increasing the feedback as the grip score set for the trial sample input to the detection model increases, and decreasing the feedback as the grip score decreases.
[0057] Here, the detection model used is the Single Shot MultiBox Detector (SSD). Before learning begins, the synaptic weights, which are the parameters of the SSD's learning target, are initialized to random values. SSD is a type of multi-layered neural network (NN) with the following characteristics. SSD applies a convolutional NN, which is a NN specialized for learning image data, and uses image data as input and outputs multiple detection candidates (bounding boxes and the reliability (class probability) of the detection target) in the input image data. The reliability is a value that indicates which of the pre-set classes the detection target belongs to when classifying it. If there are N classes to be classified, the number of classification classes in SSD, including the background class, will be N+1. At the time of detection after learning, each detection target is judged to be the class that showed the highest reliability value. SSD learns to match the pre-set default bounding box with the correct bounding box, enabling highly accurate detection that is not dependent on the aspect ratio of the input image data.
[0058] The model learning unit 24 updates each parameter of the SSD by machine learning according to the grasping score to generate a detection model. FIG. 17 is a diagram for explaining parameter updating of the detection model. As shown in FIG. 17, the model learning unit 24 performs error correction based on the grasping score during machine learning of the SSD. The grasping score (S b ) is normalized so that it is larger for trial samples closer to the optimal gripping position, so the positive example error (Loss pos,b ) to achieve error correction according to the grasping score.
[0059] In this way, the model learning unit 24 updates the parameters of the detection model so as to minimize the loss function. When the model learning unit 24 completes the learning, it stores the learning result or the learned detection model in the learning result DB 16. The positive example error is an error related to the grip position class, and the negative example error (Loss neg,b ) is the error with respect to the background class.
[0060] Returning to Fig. 3, the detection execution unit 25 is a processing unit that detects the object to be grasped by the picking robot using a trained detection model. For example, the detection execution unit 25 acquires the learning result of the detection model from the learning result DB 16 and constructs the trained detection model. Next, the detection execution unit 25 inputs the image data of the object to be judged into the detection model by the same method as in Fig. 7 and acquires the output result of the detection model. Then, the detection execution unit 25 acquires the output result with the highest prediction probability from among the output results as the prediction result.
[0061] Furthermore, the detection execution unit 25 detects a gripping position specified by the prediction result, and displays it on a display or the like, or stores it in the detection result DB 17. The detection execution unit 25 can also store the prediction result in the detection result DB 17.
[0062] [Evaluation model learning process] Fig. 18 is a flowchart showing the flow of the learning process of the evaluation model. As shown in Fig. 18, when the start of processing is instructed, the evaluation model learning unit 21 executes initial settings of learning parameters, thresholds, etc. (S101), reads training data for evaluation (image pairs) stored in the evaluation training data DB 13 (S102), initializes the similarity between images, and generates teacher labels by comparing with the threshold (S103).
[0063] Next, the evaluation model learning unit 21 inputs training data for evaluation (image pairs) to the evaluation model (S104), and calculates the distance between vectors corresponding to each image output in response to the input (S105).Then, the evaluation model learning unit 21 executes distance learning based on the distance between the vectors and the teacher label, and updates the learning parameters of the SNs applied to the evaluation model (S106).
[0064] Thereafter, if the evaluation model learning unit 21 continues the machine learning (S107: No), it repeats S102 and subsequent steps for the next training data. On the other hand, if the evaluation model learning unit 21 ends the machine learning (S107: Yes), it outputs the learned evaluation model to the storage unit 12 or the like (S108).
[0065] [Detection model training process] 19 is a flowchart showing the flow of the trial sample generation process and the detection model learning process. As shown in FIG. 19, when the start of the process is instructed (S201: Yes), the detection model learning unit 22 reads the work range captured image and inputs it to the detection model (S202).
[0066] Next, the detection model learning unit 22 obtains a predicted grasping position based on the output of the detection model (S203), performs grasping with the actual device at the predicted grasping position, and obtains an actual device grasping result, which is image data of the actual grasping result (S204).
[0067] Then, the detection model learning unit 22 inputs the ideal grip data acquired from the ideal grip data DB 14 and the actual grip result by the actual device to the trained evaluation model (S205). The detection model learning unit 22 calculates a grip score that increases as the similarity increases by using the distance between the vectors that are the output results of the trained evaluation model (S206).
[0068] Thereafter, the detection model learning unit 22 generates a trial sample in which the work range captured image read in S202 is associated with the grip score calculated in S206, and stores the trial sample in the trial sample DB 15 (S207). Here, the detection model learning unit 22 repeats S202 and subsequent steps for the next image until the trial samples reach a specified number (S208: No).
[0069] On the other hand, when the number of trial samples reaches the specified number (S208: Yes), the detection model learning unit 22 executes machine learning of the detection model.
[0070] Specifically, the detection model learning unit 22 reads one trial sample from the trial sample DB 15 and inputs it to the detection model (S209). Then, the detection model learning unit 22 acquires a predicted gripping position (S210), and executes machine learning of the detection model by feedback according to the gripping score so that the predicted gripping position matches data including a bounding box to which a teacher label of the correct answer is set (S211).
[0071] Then, if the detection model learning unit 22 continues learning (S212: No), it executes S209 and subsequent steps for the next image. On the other hand, if the detection model learning unit 22 ends learning (S212: Yes), it outputs the learned detection model to the storage unit 12 or the like (S213).
[0072] [effect] As described above, the information processing device 10 can use the distance between the feature vectors of each trial sample extracted by the evaluation model as a score of trial success or failure during sequential learning and reflect it in machine learning. Therefore, the information processing device 10 can execute machine learning that rounds the success degree so that the closer the trial sample is to the target trial result, the larger the value becomes.
[0073] Furthermore, in order to save the effort of labeling each sample acquired for each trial, the information processing device 10 can apply distance learning using the similarity between each trial sample as teacher data. Therefore, in training, the information processing device 10 can increase the training data set compared to normal supervised learning, since combinations of trial samples become input data. Furthermore, the information processing device 10 can train a model so that the distance between trial samples is closer if the samples have the same label, and farther if the samples have different labels.
[0074] In this way, the information processing device 10 can increase the grip score of a trial sample close to a target sample, thereby increasing the feedback during machine learning of a trial sample that is closer to success, and can perform learning preferentially. Therefore, the information processing device 10 can improve prediction accuracy.
[0075] In addition, since the information processing device 10 performs machine learning using training data to which a gripping score has been assigned, it is less likely to fall into a local solution. Conventionally, the influence of data acquired at the beginning of sequential learning is large, but in the method of the present embodiment 1, feedback is large even for data added later, so that the influence of the data acquisition order can be reduced. Therefore, the information processing device 10 can eliminate the instability of learning due to the order in which trial samples are added to the data set, and improve the stability of machine learning (training).
[0076] Moreover, the information processing device 10 can omit the design of detailed thresholds, etc., by comparing feature amounts extracted by a learning device from raw image data. Furthermore, the information processing device 10 can use a combination of data as training data, so it is possible to create more variations even with the same amount of original data, and it is possible to omit the preparation of a large-scale data set. EXAMPLES
[0077] Although the embodiments of the present invention have been described above, the present invention may be embodied in various different forms other than the above-described embodiments.
[0078] [Numbers, etc.] The types of data to be processed, the distance calculation method, the learning methods applied to each model, the model configurations such as neural networks, etc. used in the above embodiments are merely examples and can be changed as desired. In addition, the present invention can be used not only to predict the gripping position of a picking robot, but also to judge image data in various fields such as recognizing fraudsters, and voice data can be applied. In addition, the device that executes machine learning and the device that performs detection using the model after machine learning can be realized as separate devices.
[0079] [Trial sample] In addition, by using only the work area captured images when the gripping is successful as the trial sample, the prediction accuracy of the gripping position can be improved. In addition, by using only the work area captured images when the gripping is successful and when the gripping is unsuccessful as the trial sample, the number of training runs can be increased and the possibility of falling into a local solution can be suppressed.
[0080] [Pre-learning] The above evaluation model can improve the learning accuracy by performing pre-learning to improve the extraction accuracy of feature amounts (feature vectors). In addition, since the similarity between two image data (image pairs) is calculated by pre-learning, a threshold can be set when setting the teacher level during learning of the evaluation model shown in Fig. 8. For example, the average value of each distance calculated by the evaluation model for each image can be set as the threshold, or the average value of the distance between images determined by the administrator to be similar can be set as the threshold.
[0081] Fig. 20 is a flowchart showing a flow of a series of processes including pre-learning. As shown in Fig. 20, the information processing device 10 executes pre-learning of an evaluation model using training data for pre-learning (S301). Next, if the information processing device 10 continues the pre-learning (S302: No), it repeats S301 using the next training data.
[0082] On the other hand, when the pre-learning is completed (S302: Yes), the information processing device 10 stores the learning result and the threshold in the storage unit 12 (S303). Thereafter, similarly to the first embodiment, the information processing device 10 generates training data for evaluation (S304), executes the learning process of the evaluation model shown in Fig. 18 (S305), executes the learning process of the detection model shown in Fig. 19 (S306), and executes the detection process using the learned detection model (S307).
[0083] [system] The information including the processing procedures, control procedures, specific names, various data and parameters shown in the above documents and drawings can be changed arbitrarily unless otherwise specified. The evaluation model is an example of a first model, and the detection model is an example of a second model. Image data in which grasping is successful is an example of image data that satisfies the first condition, and image data in an ideal grasping state (ideal grasping data) is an example of image data that satisfies the second condition. The evaluation training data DB13 is an example of a data set. Furthermore, the image data is not limited to two-dimensional data, and three-dimensional data can also be used.
[0084] The predicted gripping position is an example of a predicted gripping target. The ideal gripping data is an example of a target trial result. The trial sample generating unit 22 is an example of a first calculation unit and a second calculation unit, and the model learning unit 23 is an example of an execution unit.
[0085] In addition, each component of each device shown in the figure is a functional concept, and does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each device is not limited to that shown in the figure. In other words, all or part of them can be functionally or physically distributed and integrated in any unit according to various loads, usage conditions, etc.
[0086] Furthermore, each processing function performed by each device may be realized, in whole or in part, by a CPU and a program analyzed and executed by the CPU, or may be realized as hardware using wired logic.
[0087] [Hardware] Next, a hardware configuration example of the information processing device 10 will be described. Fig. 21 is a diagram for explaining the hardware configuration example. As shown in Fig. 21, the information processing device 10 has a communication device 10a, a HDD (Hard Disk Drive) 10b, a memory 10c, and a processor 10d. Moreover, each unit shown in Fig. 21 is connected to each other by a bus or the like.
[0088] The communication device 10a is a network interface card or the like, and communicates with other servers. The HDD 10b stores programs and DBs that operate the functions shown in FIG.
[0089] The processor 10d reads out a program that executes the same processes as the respective processing units shown in FIG. 3 from the HDD 10b, etc., and loads it in the memory 10c, thereby operating a process that executes each function described in FIG. 3, etc. For example, this process executes a function similar to that of each processing unit possessed by the information processing device 10. Specifically, the processor 10d reads out a program having functions similar to those of the evaluation model learning unit 21, the detection model learning unit 22, the detection execution unit 25, etc., from the HDD 10b, etc. Then, the processor 10d executes a process that executes the same processes as those of the evaluation model learning unit 21, the detection model learning unit 22, the detection execution unit 25, etc.
[0090] In this way, the information processing device 10 operates as an information processing device that executes an information processing method by reading and executing a program. The information processing device 10 can also realize functions similar to those of the above-mentioned embodiment by reading the program from a recording medium using a medium reading device and executing the read program. Note that the program in this other embodiment is not limited to being executed by the information processing device 10. For example, the present invention can be similarly applied to a case where another computer or server executes a program, or a case where these execute a program in cooperation with each other. [Explanation of symbols]
[0091] 10. Information processing device 11 Communications Department 12 Storage section 13 Evaluation training data DB 14 Ideal grip data DB 15 Trial sample DB 16 Learning results DB 17 Detection result DB 20 Control section 21 Evaluation model learning section 22 Detection model training section 23 Trial sample generation section 24 Model Learning Section 25 Detection execution unit
Claims
1. On the computer, inputting third image data into a second model to be learned, and generating first image data that satisfies the first condition; calculating a similarity between image data for a combination of first image data that satisfies the first condition and second image data that satisfies the first condition and the second condition; Calculating a score based on the calculated similarity between the image data, the score increasing as the similarity increases; Executing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score. A learning program that causes a process to be executed.
2. further causing the computer to execute a process of executing machine learning of a first model using training data in which image data pairs are associated with labels based on the similarity of the image data pairs; 2. The learning program according to claim 1, wherein the calculating process calculates the similarity of the combination using a trained first model.
3. generating a data set using the first image data and the second image data generated by inputting the third image data into the second model, the second model generating image data that satisfies the first condition in response to input of image data; The calculation process includes generating the combinations using image data included in the data set, and calculating the similarity for the combinations; The calculation process calculates the score based on the similarity, The learning program according to claim 2, characterized in that the process to be executed performs machine learning of the second model using the learning data that associates the third image data input to the second model with the score.
4. The calculation process calculates a similarity between gripping image data, which is an image data satisfying the first condition and is in a state where the gripping operation of the picking robot is successful, and ideal gripping image data, which is an image data satisfying the second condition and is in an ideal state for the gripping operation of the picking robot; The learning program according to claim 1 , wherein the calculation process calculates the score based on a similarity between the gripped image data and the ideal gripped image data.
5. further causing the computer to execute a process of executing machine learning of a first model using two image data pairs as explanatory variables and a similarity between the two image data pairs as a target variable; The learning program according to claim 4 , wherein the calculating process calculates a similarity between the grip image data and the ideal grip image data using a trained first model.
6. Detecting a target to be grasped using the second model that outputs a target to be grasped in response to input of workpiece image data including a plurality of targets to be grasped; Acquire actual machine image data when the picking robot grasps the grasp target, The learning program according to claim 5, further comprising causing the computer to execute a process of generating a data set including the actual machine image data as image data that satisfies the first condition and the ideal grip image data as image data that satisfies the second condition.
7. The process of calculating includes generating a combination of the actual machine image data and the ideal gripping image data included in the data set, and calculating the similarity for the combination; The calculation process calculates the score based on the similarity, The learning program according to claim 6, characterized in that the process to be executed performs machine learning of the second model using the learning data that associates the work image data and the score inputted into the second model to obtain the actual machine image data.
8. The learning program according to claim 7, characterized in that the process executes the machine learning so that, during machine learning of the second model, the feedback for updating parameters of the second model is increased as the score increases.
9. The computer inputting third image data into a second model to be learned, and generating first image data that satisfies the first condition; calculating a similarity between image data for a combination of first image data that satisfies the first condition and second image data that satisfies the first condition and the second condition; Calculating a score based on the calculated similarity between the image data, the score increasing as the similarity increases; Executing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score. A learning method comprising: executing a process.
10. A method for generating first image data that satisfies a first condition by inputting third image data into a second model that is a learning target; calculating a similarity between image data for a combination of first image data that satisfies the first condition and second image data that satisfies the first condition and the second condition; Calculating a score based on the similarity between the image data, the score increasing as the similarity increases; performing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score; An information processing device comprising a control unit.
11. On the computer, inputting third image data into a second model to be learned, and generating first image data each including an object to be grasped by the picking robot and satisfying a first condition related to an operation of the picking robot to grasp the object; calculating a similarity between the first image data and a second image data that satisfies the first condition and the second condition; Calculating a score based on the calculated similarity between the image data, the score increasing as the similarity increases; performing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score; A learning program that causes a process to be executed.
12. The computer inputting third image data into a second model to be learned, and generating first image data each including an object to be grasped by the picking robot and satisfying a first condition related to an operation of the picking robot to grasp the object; calculating a similarity between the first image data and a second image data that satisfies the first condition and the second condition; Calculating a score based on the calculated similarity between the image data, the score increasing as the similarity increases; performing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score; A learning method comprising: executing a process.
13. Inputting third image data into a second model to be learned, and generating first image data each including an object to be grasped by a picking robot and satisfying a first condition regarding the operation of the picking robot to grasp the object; calculating a similarity between the first image data and a second image data that satisfies the first condition and the second condition; Calculating a score based on the calculated similarity between the image data, the score increasing as the similarity increases; performing machine learning of the second model using learning data based on the third image data used to obtain the first image data of the combination and the score; An information processing device comprising a control unit.
Citation Information
Patent Citations
Machine learning device, machine learning method, and machine learning program
JP2018202550A
Learning device, learning method, learning model, detection device, and holding system
JP2019164836A
Image identification device, image identification method, and image identification program
JP2020035097A
Information processing device, information processing method and information processing program
WO2020026643A1
