Inference calculation processing device and inference calculation processing method
Patent Information
- Application Number
- JP2022551996
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-09-25
- Filing Date
- 2021-09-21
- Publication Date
- 2024-10-02
- Estimated Expiration
- 2041-09-21
AI Technical Summary
【0009】 一態様によれば、ロボットが長く待機することなく短時間で推論計算処理を実行することができる。
Smart Images

Figure 0007560564000001 
Figure 0007560564000002 
Figure 0007560564000003
Abstract
Description
[Technical field]
[0001] The present invention relates to an inference calculation processing device and an inference calculation processing method. [Background technology]
[0002] In order to perform high-speed calculation processing for applications using deep learning, it is usually necessary to use a GPU (Graphics Processing Unit) device, but the update speed of GPU devices is fast, and it is difficult to incorporate them into products due to the long-term maintenance aspect. In addition, GPU devices are expensive devices and the introduction cost is high. Furthermore, as an application using deep learning to remove bulk workpieces used in factory production lines, it is desirable to be able to perform inference at high speed using a normal inexpensive CPU (Central Processing Unit) device in order to achieve the target cycle time of the production line at low cost. In this regard, a technique is known in which a distance image of randomly piled workpieces is generated and displayed, 3D point cloud data in the vicinity of a take-out position instructed in the displayed distance image is used as input data, machine learning is performed using an evaluation value according to the instruction or an evaluation value according to the success or failure of the take-out operation as a label, the 3D point cloud data is input and a trained model is generated that outputs an evaluation value of the 3D point cloud data, and 3D point cloud data of a distance image cut out to a predetermined area size is input to the generated trained model, and based on the evaluation value output, a take-out position corresponding to the cut-out distance image with a high evaluation value is selected, thereby taking out randomly piled workpieces. For example, see Patent Document 1. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2019-58960 A Summary of the Invention [Problem to be solved by the invention]
[0004] Incidentally, a distance image of a specified area is cut out from the distance image, but once the size of the learning input data used in machine learning is determined, the distance image cut out of the specified area (hereinafter also referred to as the "cut image") to be input into the trained model needs to be cut out from the distance image so that its size is the same as the learning input data. In addition, the 3D point cloud data of all the cutout images (take-out position candidates) are input to the trained model, and the evaluation values of each are output, and the take-out position corresponding to the cutout image with the high evaluation value is selected. In other words, since all the cutout images (take-out position candidates) are input to the trained model and inference calculation processing is performed, unnecessary inference calculation is performed for cutout images (take-out position candidates) that have low evaluation values and will not be selected / used even if inference calculation is performed.
[0005] In particular, for workpieces with complex shapes, high-resolution (i.e. large data size) distance images and 3D point cloud data are required. Furthermore, the data size of the distance images and 3D point cloud data acquired for large-sized workpieces also becomes large. For this reason, when performing inference calculation processing on data with a large data size, the method of calculating all cutout images (take-out position candidates) also includes the wasted calculation processing time for cutout images (take-out position candidates) that have a low evaluation value and are not selected / used even when inference calculation is performed. This lengthens the total inference time, and during that time, robots on factory production lines are put on standby, reducing production efficiency.
[0006] Therefore, it is desirable for the robot to execute inference calculation processing in a short time without having to wait for a long time. [Means for solving the problem]
[0007] One aspect of the inference calculation processing device of the present disclosure is an inference calculation processing device that inputs inference data into a learned model and executes inference calculation processing of the inference data, and includes an acquisition unit that acquires the inference data and the learned model, a pre-processing unit that divides the acquired inference data into multiple inference sub-data by batch processing, and an execution unit that optimizes the inference calculation processing order of the multiple inference sub-data and executes inference calculation processing of the inference data based on at least a portion of each of the multiple inference sub-data and the learned model in the optimized inference calculation processing order.
[0008] One aspect of the inference calculation processing method of the present disclosure is an inference calculation processing method realized by a computer, which inputs inference data into a trained model and performs inference calculation processing of the inference data, and includes an acquisition step of acquiring the inference data and the trained model, a pre-processing step of dividing the acquired inference data into multiple inference sub-data by batch processing, and an execution step of optimizing an inference calculation processing order of the multiple inference sub-data and performing inference calculation processing of the inference data based on at least a portion of each of the multiple inference sub-data and the trained model in the optimized inference calculation processing order. Effect of the Invention
[0009] According to one embodiment, the robot can perform inference calculation processing in a short time without waiting for a long time. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram illustrating an example of a configuration of a robot system according to a first embodiment. [Diagram 2] FIG. 2 is a functional block diagram showing an example of the functional configuration of a trained model execution device according to the first embodiment. [Diagram 3] 13 is a flowchart illustrating the inference calculation process of the trained model execution device. [Figure 4]FIG. 11 is a functional block diagram showing an example of the functional configuration of a trained model execution device according to a second embodiment. [Diagram 5] 13 is a flowchart illustrating the inference calculation process of the trained model execution device. [Figure 6] FIG. 13 is a diagram illustrating an example of the configuration of a robot system according to a third embodiment. [Figure 7] FIG. 13 is a functional block diagram showing an example of the functional configuration of a trained model execution device according to the third embodiment. [Figure 8] 13 is a flowchart illustrating the inference calculation process of the trained model execution device. [Figure 9] FIG. 13 is a functional block diagram showing an example of the functional configuration of a trained model execution device according to a modified example of the third embodiment in a case where training image data is also acquired. [Figure 10] A functional block diagram showing an example of the functional configuration of a trained model execution device when the inference data is voice data. [Figure 11] FIG. 11 is a functional block diagram showing an example of the functional configuration of a trained model execution device when the inference data is character data. [Figure 12] A functional block diagram showing an example of the functional configuration of a trained model execution device when the inference data is voice data. [Figure 13] FIG. 11 is a functional block diagram showing an example of the functional configuration of a trained model execution device when the inference data is character data. [Figure 14] FIG. 11 is a functional block diagram showing an example of the functional configuration of a trained model execution device when training image data is also acquired. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] The first to third embodiments will be described in detail with reference to the drawings. Here, each embodiment has in common a configuration in which the robot uses a trained model that identifies the pick-up position for multiple workpieces that are piled up in a random order and overlap each other, and performs inference calculation processing in a short time without having to wait for a long time. However, in the inference calculation process in the first embodiment, based on the size of the training image data that is the teacher data used in the machine learning to generate the trained model, the inference image data in which multiple workpieces in a randomly piled and overlapping state are captured is divided by batch processing, feature values are extracted from the image feature analysis of the multiple inference sub-image data generated by the division, an evaluation score is assigned to each of the multiple inference sub-image data based on the matching result between the feature values of each of the multiple inference sub-image data and the feature values from the image feature analysis of the training image data, and the inference calculation process order of the multiple inference sub-image data is optimized based on the priority order according to the assigned evaluation scores. In contrast, the second embodiment differs from the first embodiment in that feature points are extracted by image processing the inference image data, the inference image data is divided by batch processing according to the number of feature points, and an evaluation score is assigned to each of the multiple inference sub-image data based on the number of feature points. In addition, the third embodiment differs from the first and second embodiments in that the inference image data is divided by batch processing based on 3D point cloud data (or distance image data) of workpieces in a state where they are piled up loosely and overlapping, obtained by a 3D measuring device or the like, and an evaluation score is assigned to each of the multiple inference sub-image data based on the height of each of the multiple divided inference sub-image data from the bottom of the container (hereinafter also referred to as the "predetermined height"). In the following, the first embodiment will be described in detail first, and then the second and third embodiments will be described, focusing particularly on the differences from the first embodiment.
[0012] First Embodiment FIG. 1 is a diagram showing an example of the configuration of a robot system 1 according to the first embodiment. Here, a case is illustrated in which a trained model generated by machine learning based on image data is executed when a robot picks up workpieces stacked randomly in a container. Note that the present invention is not limited to a case in which a trained model generated by machine learning based on image data is executed when a robot picks up workpieces stacked randomly in a container. For example, the present invention can be applied not only to the operation of a robot but also to a case in which a trained model generated by machine learning based on image data is executed in a system that performs inference to execute an arbitrary task based on image data. In addition, for example, as described below, the present invention can be applied to a case where a trained model generated by machine learning based on voice data is executed in a system that performs inference to execute an arbitrary task based on voice data, or a case where a trained model generated by machine learning based on character data is executed in a system that performs inference to execute an arbitrary task based on character data. As shown in FIG. 1, the robot system 1 includes a trained model execution device 10 serving as an inference calculation processing device, a robot control device 20, a robot 30, an imaging device 40, a plurality of workpieces 50, and a container 60. The trained model execution device 10, the robot control device 20, the robot 30, and the imaging device 40 may be directly connected to each other via a connection interface (not shown). The trained model execution device 10, the robot control device 20, the robot 30, and the imaging device 40 may be connected to each other via a network (not shown) such as a LAN (Local Area Network) or the Internet. In this case, the trained model execution device 10, the robot control device 20, the robot 30, and the imaging device 40 are provided with a communication unit (not shown) for communicating with each other through such connection. For ease of explanation, FIG. 1 depicts the trained model execution device 10 and the robot control device 20 independently, and in this case, the trained model execution device 10 may be composed of, for example, a computer. The configuration is not limited to this, and for example, the trained model execution device 10 may be implemented inside the robot control device 20 and integrated with the robot control device 20.
[0013] The robot control device 20 is a device known to those skilled in the art for controlling the operation of the robot 30. For example, the robot control device 20 receives, from the trained model executing device 10, pick-up position information of a workpiece 50 selected by the trained model executing device 10 (described later) from among the piled up workpieces 50. The robot control device 20 generates a control signal for controlling the operation of the robot 30 so as to pick up the workpiece 50 located at the pick-up position received from the trained model executing device 10. Then, the robot control device 20 outputs the generated control signal to the robot 30. In addition, the robot control device 20 may include a trained model execution device 10, as described later.
[0014] The robot 30 is a robot that operates under the control of the robot control device 20. The robot 30 includes a base for rotating around a vertical axis, an arm that moves and rotates, and a removal hand 31 that is attached to the arm for holding the workpiece 50. In FIG. 1, an air suction type removal hand is attached to the removal hand 31 of the robot 30, but a gripping type removal hand or a magnetic hand that uses magnetic force to remove an iron workpiece may also be attached. In response to a control signal output by the robot control device 20, the robot 30 drives the arm and the removal hand 31 to move the removal hand 31 to the removal position selected by the trained model execution device 10, and holds the bulk workpieces 50 and removes them from the container 60. The destination of the removed workpiece 50 is not shown in the figure. The specific configuration of the robot 30 is well known to those skilled in the art, so a detailed description thereof will be omitted.
[0015] In addition, the learned model executing device 10 and the robot control device 20 are assumed to have corresponded the machine coordinate system for controlling the robot 30 and the camera coordinate system indicating the pick-up position of the workpiece 50 through a calibration performed in advance.
[0016] The imaging device 40 is a digital camera or the like, and captures two-dimensional image data of the workpieces 50 piled up in the container 60 projected onto a plane perpendicular to the optical axis of the imaging device 40. The image data captured by the imaging device 40 may be a visible light image such as an RGB color image, a grayscale image, or a depth image. The imaging device 40 may also be configured to include an infrared sensor to capture a thermal image, or may be configured to include an ultraviolet sensor to capture an ultraviolet image for inspection of scratches, spots, etc. on the surface of an object. The imaging device 40 may also be configured to include an X-ray camera sensor to capture an X-ray image, or may be configured to include an ultrasonic sensor to capture an ultrasonic image. As will be described later, the imaging device 40 may be a three-dimensional measuring device such as a stereo camera.
[0017] The workpieces 50 are placed randomly, including in a loose pile, in the container 60. The workpieces 50 may be any workpieces that can be held by the pick-up hand 31 attached to the arm of the robot 30, and the shape and other properties of the workpieces are not particularly limited.
[0018] <Trained model execution device 10> FIG. 2 is a functional block diagram showing an example of the functional configuration of the trained model execution device 10 according to the first embodiment. The trained model execution device 10 is a computer known to those skilled in the art, and has a control unit 11 as shown in FIG. 2. The control unit 11 also has an acquisition unit 110, a pre-processing unit 120, and an execution unit 130. The acquisition unit 110 also has a data storage unit 111. The pre-processing unit 120 also has a batch processing unit 121. The execution unit 130 also has a feature analysis unit 131, an evaluation score calculation unit 132, an optimization calculation unit 133, an inference calculation processing unit 134, and an inference result storage unit 135.
[0019] <Control unit 11> The control unit 11 has a CPU (Central Processing Unit), a ROM, a RAM (Random Access Memory), a CMOS (Complementary Metal-Oxide-Semiconductor) memory, etc., which are configured to be able to communicate with each other via a bus, and are well known to those skilled in the art. The CPU is a processor that controls the trained model execution device 10 as a whole. The CPU reads out the system program and application program stored in the ROM via the bus, and controls the trained model execution device 10 as a whole according to the system program and application program. As a result, as shown in FIG. 2, the control unit 11 is configured to realize the functions of the acquisition unit 110, the preprocessing unit 120, and the execution unit 130. The acquisition unit 110 is configured to realize the function of the data storage unit 111. The preprocessing unit 120 is configured to realize the function of the batch processing unit 121. The execution unit 130 is configured to realize the functions of the feature analysis unit 131, the evaluation score calculation unit 132, the optimization calculation unit 133, the inference calculation processing unit 134, and the inference result storage unit 135. Various data such as temporary calculation data and display data are stored in the RAM. The CMOS memory is backed up by a battery (not shown), and is configured as a non-volatile memory that retains its memory state even when the power of the trained model execution device 10 is turned off.
[0020] <Acquisition part 110> The acquisition unit 110, for example, acquires image data as data for inference from the imaging device 40, and acquires a trained model and training image data used when generating the trained model by machine learning from a database 70 on the cloud or an edge device. The acquisition unit 110 may further be configured to include a data storage unit 111 such as a HDD or a USB memory, and may be configured to store the acquired trained model in the data storage unit 111. For example, the acquisition unit 110 may acquire a trained model recorded in a recording medium such as a HDD or a USB memory from a database 70 on the cloud or an edge device via a network such as a LAN, and copy and store the acquired trained model in the data storage unit 111.
[0021] In addition, the acquisition unit 110 may acquire training image data recorded on a recording medium such as a HDD or a USB memory from a database 70 on the cloud or an edge device via a network such as a LAN, and copy and store the acquired training image data in the data storage unit 111. Furthermore, the acquisition unit 110 may, for example, acquire captured image data from the imaging device 40, and copy and store the acquired image data in the data storage unit 111 as image data for inference. Although the acquiring unit 110 acquires image data from the imaging device 40, it may acquire three-dimensional point cloud data, range image data, or the like, as described later.
[0022] <Preprocessing unit 120> The pre-processing unit 120 includes a batch processing unit 121, which may be configured to batch process data for inference based on the training image data acquired by the acquisition unit 110 and divide the data into a plurality of sub-image data for inference. Specifically, the batch processing unit 121 may perform batch processing on the image data for inference and divide it into a plurality of sub-image data for inference, based on, for example, the data size of the training image data used in machine learning.
[0023] <Executive Division 130> The execution unit 130 may be configured to optimize the order of inference calculation processing of the multiple inference sub-image data divided by the pre-processing unit 120 in batch processing, and perform inference calculation processing of the inference data based on each of the multiple inference sub-image data and the learned model in the optimized inference calculation processing order as much as necessary until a pre-specified search goal is achieved. For example, the execution unit 130 may be configured to perform image feature analysis on an image in the vicinity of a labeled teaching position on the training image data and each of the multiple sub-image data for inference divided by batch processing of the pre-processing unit 120, assign an evaluation score to each of the multiple sub-image data for inference based on the matching results of the extracted features, and optimize the order of inference calculation processing of the multiple sub-image data for inference based on a priority determined according to the magnitude of the evaluation score value of each of the multiple sub-image data for inference to which an evaluation score has been assigned. Specifically, since a label indicating a position where the work 50 can be taken out is attached to the training image data, the feature analysis unit 131 of the execution unit 130 performs image processing on a nearby image area including the take-out position indicated by the label in the training image data. For example, the feature analysis unit 131 extracts a specific feature amount (hereinafter also referred to as a "local feature amount") A by image processing. In addition, the feature analysis unit 131 also performs image processing on n pieces of sub-image data for inference IMG1, IMG2, ..., IMGn divided by the batch processing of the pre-processing unit 120, and extracts local feature amounts (n is an integer of 2 or more). For example, it is assumed that the feature analysis unit 131 extracts local feature amounts A11 and A12 from the sub-image data for inference IMG1, extracts local feature amounts A21, A22, and A23 from the sub-image data for inference IMG2, and extracts local feature amounts A31, A32, A33, and A34 from the sub-image data for inference IMG3. The feature analysis unit 131 performs a matching process between each of the extracted local features A11, A12, A21, A22, A23, A31, A32, A33, and A34 and the local feature A of the training image data, and outputs the analysis result data of the matching process to the evaluation score calculation unit 132 described later.
[0024] The evaluation score calculation unit 132 of the execution unit 130 receives the analysis result data output by the feature analysis unit 131, and for example, if the sub-image data for inference IMG2 includes a local feature with a high degree of matching (e.g., A22), the evaluation score calculation unit 132 assigns a high evaluation score (e.g., 70 points) to the sub-image data for inference IMG2. Also, if one sub-image data for inference IMG3 includes multiple local features with a high degree of matching (e.g., A32, A34), the evaluation score calculation unit 132 assigns a high evaluation score (e.g., 80 points) to the sub-image data for inference IMG3. The evaluation score calculation unit 132 outputs the evaluation score assigned in this manner to the optimization calculation unit 133 described later.
[0025] The optimization calculation unit 133 of the execution unit 130 assigns a high priority to the sub-image data for inference having a high evaluation score so that the sub-image data for inference is preferentially subjected to inference calculation processing, based on the evaluation score information output by the evaluation score calculation unit 132. The optimization calculation unit 133 optimizes the inference calculation processing order of the n sub-image data for inference divided by the batch processing of the preprocessing unit 120, and generates a processing order list of the optimized inference calculation processing order. The optimization calculation unit 133 outputs the generated processing order list to the inference calculation processing unit 134, which will be described later. The optimization calculation unit 133 may delete sub-image data for inference having a low evaluation score from the processing order list so as not to subject the sub-image data to inference calculation processing.
[0026] The inference calculation processing unit 134 of the execution unit 130 performs inference calculation processing as much as necessary from the n pieces of sub-image data for inference in descending order of the processing order list until a pre-specified search goal (for example, finding pick-up positions for 10 workpieces 50) is achieved, based on the information of the processing order list received from the optimization calculation unit 133, the n pieces of sub-image data for inference divided by the batch processing of the pre-processing unit 120, and the trained model acquired by the acquisition unit 110. The inference calculation processing unit 134 outputs inference result data of the inference calculation processing to the inference result storage unit 135 described later.
[0027] The inference result storage unit 135 of the execution unit 130 receives and stores the inference result data from the inference calculation processing unit 134.
[0028] In this way, since there is a high possibility that a better take-out position candidate having the same characteristics as the teaching position on the training image data exists in the sub-image data for inference having a high evaluation score, the trained model execution device 10 performs the inference calculation process preferentially from the sub-image data for inference having a high evaluation score. By doing so, the trained model execution device 10 can shorten the inference calculation process time by quickly achieving the search for the target take-out number of the pre-specified work 50 (hereinafter also referred to as the "predetermined number of candidates") and ending the inference calculation process early. In other words, since there is a low possibility that a better take-out position candidate having the same characteristics as the teaching position on the training image data exists in the sub-image data for inference having a low evaluation score, the trained model execution device 10 can eliminate unnecessary inference calculation processes and shorten the inference calculation process time by not performing the inference calculation process on the sub-image data for inference having a low evaluation score. In other words, the trained model execution device 10 can realize the high-speed inference calculation process by optimizing the inference calculation process order based on the priority order according to the evaluation score. It is preferable that the predetermined number of candidates is appropriately determined depending on the required accuracy and processing speed of the inference calculation process, but it may also be determined depending on the production requirements of the factory production line.
[0029] <Inference calculation process of the trained model execution device 10> Next, the operation of the inference calculation process of the trained model execution device 10 according to this embodiment will be described. FIG. 3 is a flowchart illustrating the inference calculation process of the trained model execution device 10.
[0030] In step S11, the acquisition unit 110 acquires a trained model and training image data from the database 70.
[0031] In step S12, the acquisition unit 110 acquires inference image data from the imaging device 40.
[0032] In step S13, the batch processing unit 121 of the pre-processing unit 120 divides the image data for inference acquired in step S12 into n pieces of sub-image data for inference by batch processing based on the training image data.
[0033] In step S14, the feature analysis unit 131 of the execution unit 130 performs image feature analysis on the training image data and the n pieces of sub-image data for inference, and extracts local features from the training image data and the n pieces of sub-image data for inference.
[0034] In step S15 , the feature analysis unit 131 performs a matching process between the local feature amount of the training image data and the local feature amount of each of the sub-image data for inference, and outputs the analysis result data of the matching process to the evaluation score calculation unit 132 .
[0035] In step S16, the evaluation score calculation unit 132 assigns an evaluation score to each of the n pieces of sub-image data for inference based on the analysis result data output in step S15, according to the degree of matching with the local feature amount of the training image data.
[0036] In step S17, the optimization calculation unit 133 optimizes the inference calculation processing order of the multiple sub-image data for inference, which undergoes inference calculation processing, based on the information of the evaluation scores assigned in step S16, and generates a processing order list.
[0037] In step S18, the inference calculation processing unit 134 performs inference calculation processing based on the information of the processing order list generated in step S17, the sub-image data for inference, and the trained model.
[0038] In step S19, the inference calculation processing unit 134 determines whether the number of retrieval position candidates searched for by the inference calculation processing in step S18 has reached a predetermined number of candidates. If the number of retrieval position candidates has reached the predetermined number of candidates, the inference calculation processing is terminated. On the other hand, if the number of retrieval position candidates is less than the predetermined number of candidates, the processing returns to step S18.
[0039] As described above, the trained model execution device 10 according to the first embodiment acquires inference data from the imaging device 40, and the trained model and training image data from the database 70. The trained model execution device 10 divides the inference image data into n pieces of inference sub-image data by batch processing based on the size of the training image data. The trained model execution device 10 extracts local features from the training image data and each of the n pieces of inference sub-image data, and performs a matching process between the extracted local features of the training image data and the local features of each of the inference sub-image data. The trained model execution device 10 assigns an evaluation score to each of the n pieces of inference sub-image data based on the analysis result data of the matching process according to the degree of matching with the local features of the training image data, and optimizes the inference calculation process order of the multiple inference sub-image data for which inference calculation processing is performed based on the evaluation score information. This enables the trained model execution device 10 to execute inference calculation processing in a short time without the robot 30 having to wait for a long time. In addition, the trained model execution device 10 can execute inference at high speed using a normal inexpensive CPU device, and can achieve the high production efficiency required for a production line at low cost. The first embodiment has been described above.
[0040] <Second embodiment> Next, the second embodiment will be described. As described above, in the inference calculation process, in the first embodiment, the image data for inference is divided by batch processing according to the size of the training image data, a feature amount is extracted from the image feature analysis for each of the multiple sub-image data for inference generated by dividing, an evaluation score is given to each of the multiple sub-image data for inference based on the matching result between the feature amount of each of the multiple sub-image data for inference and the feature amount of the training image data, and the inference calculation process order of the multiple sub-image data for inference is optimized based on the priority according to the value of the assigned evaluation score. In contrast, in the second embodiment, the image data for inference is subjected to image processing to extract, for example, specific feature points, the image data for inference is divided by batch processing according to the number of extracted feature points, and an evaluation score is given to each of the multiple sub-image data for inference based on the number of feature points included in each region, which is different from the first embodiment. This enables the learned model executing device 10a to execute the inference calculation process in a short time without making the robot 30 wait for a long time. The second embodiment will be described below.
[0041] The robot system 1 according to the second embodiment includes a trained model executing device 10a, a robot control device 20, a robot 30, an imaging device 40, a plurality of workpieces 50, and a container 60, similar to the first embodiment of FIG.
[0042] <Trained model execution device 10a> Fig. 4 is a functional block diagram showing an example of the functional configuration of a trained-model execution device 10a according to the second embodiment. Elements having the same functions as those of the trained-model execution device 10 in Fig. 2 are denoted by the same reference numerals, and detailed descriptions thereof will be omitted. The trained model execution device 10a has a control unit 11a, similar to the trained model execution device 10 according to the first embodiment. The control unit 11a also has an acquisition unit 110a, a preprocessing unit 120a, and an execution unit 130a. The acquisition unit 110a also has a data storage unit 111. The preprocessing unit 120a also has a batch processing unit 121a, and an image processing unit 122. The execution unit 130a also has an evaluation score calculation unit 132a, an optimization calculation unit 133, an inference calculation processing unit 134, and an inference result storage unit 135.
[0043] <Acquisition unit 110a> The acquisition unit 110a acquires, for example, image data as inference data from the imaging device 40, and acquires a trained model from a database 70 on the cloud or an edge device. The acquisition unit 110a stores the acquired trained model and image data in the data storage unit 111. The data storage unit 111 has the same functions as the data storage unit 111 according to the first embodiment.
[0044] <Preprocessing unit 120a> The pre-processing unit 120a may be configured, for example, to acquire image data as image data for inference from the data storage unit 111 of the acquisition unit 110a, perform image processing of the acquired image data for inference, and divide the image data for inference into multiple sub-image data for inference by batch processing based on the image processing results. Specifically, the image processing unit 122 of the preprocessing unit 120a may perform image processing on the inference image data, extract features such as edges, corners, and feature points, and output them as image processing result data. The following describes an example of the case where the image processing unit 122 extracts specific feature points from the entire region of the inference image data. As shown in FIG. 1, for example, when the inference image data is an image capturing the state of the workpieces 50 randomly piled up in a container 60, it can be predicted that there is a high possibility that the workpieces 50 are hardly present in a local image region with a small number of extracted feature points, and that a large plane (e.g., the bottom of the container 60) with uniform brightness and pixel value is captured. In this case, even if the trained model execution device 10a performs inference calculation processing on the image region, there is a high possibility that the workpieces 50 to be taken out will not be found, and time will be wasted on useless inference calculation processing. That is, the trained model execution device 10a can identify a local image region in which more feature points are concentrated, that is, a local image region in which many workpieces 50 are present, by analyzing the position distribution of the feature points extracted by the image processing unit 122. In addition, the image processing unit 122 extracts feature points by performing image processing on the image data for inference in the above example, but the present invention is not limited to this example. For example, the image processing unit 122 may increase efficiency by changing the features extracted by the image processing in accordance with the actual shape of the workpiece 50.
[0045] The batch processing unit 121a divides the inference image such that a local image region where feature points are concentrated on the inference image becomes one inference sub-image, and also divides the inference image such that a local image region with few or no feature points becomes one inference sub-image. By doing so, the local image regions where there is a high possibility of a large number of workpieces 50 being present become one inference sub-image each, and the local image regions where there are few or no workpieces 50 become one inference sub-image each, and the inference image data may be divided into a plurality of pieces to generate a plurality of inference sub-image data, which is then output to the execution unit 130a. Note that the batch processing unit 121a may determine whether feature points are concentrated or there are few feature points on the inference image data based on a preset threshold. For example, if the number of feature points exceeds the threshold D1, it may be determined that there are many, and if it is less than the threshold D2 (D2 < D1), it may be determined that there are few. Thereby, at the stage of batch processing of the inference image data, the local image regions that should be preferentially subjected to inference calculation processing and the local image regions where the target workpiece cannot be found even if inference calculation is performed and it would be wasted are distinguished, and the batch processing can be optimized so that the optimization of the inference calculation processing order described later can be efficiently and smoothly performed. That is, by distinguishing, at the stage of batch processing of the inference image data, the inference sub-image data with a high possibility of finding the workpiece 50 that should be preferentially subjected to inference calculation processing and the inference sub-image data where the target workpiece 50 cannot be found even if inference calculation is performed and it would be wasted, the execution unit 130a described later can efficiently and smoothly perform the optimization of the inference calculation processing order.
[0046] <Execution unit 130a> The execution unit 130a optimizes the inference calculation processing order of a plurality of inference sub-image data based on the image processing result data output by the image processing unit 122 of the preprocessing unit 120a, and until a preset search target is achieved, based on each of the plurality of inference sub-image data and the learned model as much as necessary in the optimized inference calculation processing order, it may be configured to execute the inference calculation processing of the inference data. Specifically, as described above, it is assumed that the batch processing unit 121a of the pre-processing unit 120a extracts feature points from an inference image obtained by photographing the workpieces 50 randomly loaded in the container 60 described above, divides the inference image data into a plurality of pieces, and generates and outputs a plurality of sub-image data for inference. In this way, the execution unit 130a may include an evaluation score calculation unit 132a, which may assign a high evaluation score to the sub-image data for inference having a large number of feature points and a low evaluation score to the sub-image data for inference having a small number of feature points. 2, the optimization calculation unit 133 of the execution unit 130a generates and outputs a processing order list in descending order of the evaluation scores given by the evaluation score calculation unit 132a. The inference calculation processing unit 134 of the execution unit 130a, similar to the inference calculation processing unit 134 of Figure 2, performs inference calculation processing based on information in the processing order list, multiple sub-image data for inference, and a learned model, and stores the inference result data in the inference result storage unit 135.
[0047] In this way, the trained model executing device 10a prioritizes inference calculation processing of sub-image data for inference that has a large number of extracted feature points and is likely to have a large number of works 50, and does not perform inference calculation processing on sub-image data for inference that has a small number of feature points and has few or no works 50, thereby shortening the inference calculation processing time required to find a predetermined number of candidates for work 50 to be extracted from the image data for inference. By doing so, the learned model executing device 10a can find a predetermined number of candidates for the work 50 to be extracted from the image data for inference, and can terminate the inference calculation process early to shorten the inference calculation processing time.
[0048] <Inference Calculation Processing of Trained Model Execution Device 10a> Next, the operation of the inference calculation process of the trained model execution device 10a according to this embodiment will be described. FIG. 5 is a flowchart illustrating the inference calculation process of the trained model execution device 10a. The processes from step S26 to step S28 are similar to those from step S17 to step S19 in the first embodiment of FIG. 3, and therefore will not be described.
[0049] In step S21, the acquisition unit 110a acquires a trained model from the database 70.
[0050] In step S22, the acquisition unit 110a acquires inference image data from the imaging device 40.
[0051] In step S23, the image processing unit 122 of the pre-processing unit 120a performs image processing on the image data for inference obtained in step S22, and extracts feature points from the entire area of the image data for inference.
[0052] In step S24, the batch processing unit 121a of the pre-processing unit 120a performs a process of dividing the image for inference so that a local image area in which feature points are concentrated on the image data for inference acquired in step S22 based on the feature points extracted in step S23 becomes a single sub-image for inference, and dividing the image data for inference so that a local image area with few or no feature points becomes a single sub-image for inference.
[0053] In step S25, the evaluation score calculation unit 132a assigns an evaluation score to each of the inference-use sub-image data divided in step S24 based on the number of feature points.
[0054] As described above, the trained model execution device 10a according to the second embodiment acquires image data for inference from the imaging device 40 and a trained model from the database 70. The trained model execution device 10a performs image processing on the acquired image data for inference, extracts feature points from the entire region of the image data for inference, and divides the image data for inference into sub-image data for inference in which feature points are concentrated and sub-image data for inference in which there are few or no feature points based on the extracted feature points. The trained model execution device 10a assigns an evaluation score to each sub-image data for inference generated by dividing the image data for inference based on the number of feature points in each sub-image region for inference, and optimizes the order of inference calculation processing of the multiple sub-image data for inference that are subjected to inference calculation processing based on the information of the assigned evaluation score. This enables the learned model executing device 10a to execute the inference calculation process in a short time without making the robot 30 wait for a long time. In addition, the trained model execution device 10a can execute inference at high speed using a normal inexpensive CPU device, and can achieve the high production efficiency required for a production line at low cost. The second embodiment has been described above.
[0055] <Third embodiment> Next, the third embodiment will be described. As described above, in the inference calculation process, in the first embodiment, the image data for inference is divided by batch processing according to the size of the training image data, a feature amount is extracted from the image feature analysis for each of the divided multiple sub-image data for inference, an evaluation score is given to each of the multiple sub-image data for inference based on the matching result between the feature amount of each of the multiple sub-image data for inference and the feature amount of the training image data, and the inference calculation process order of the multiple sub-image data for inference is optimized based on the priority order according to the value of the assigned evaluation score. In the second embodiment, feature points are extracted by image processing the image data for inference, the image data for inference is divided by batch processing according to the number of feature points, and an evaluation score is given to each of the multiple sub-image data for inference based on the number of feature points. In contrast, in the third embodiment, the image data for inference is divided by batch processing based on the three-dimensional point cloud data (or distance image data) in a state in which the workpieces are randomly piled up and overlapped, acquired by the three-dimensional measuring device 45, and an evaluation score is given to each of the multiple sub-image data for inference based on a predetermined height of each of the divided multiple sub-image data for inference, which is different from the first and second embodiments. As a result, the trained model execution device 10b according to the third embodiment can execute the inference calculation process in a short time without making the robot 30 wait for a long time. The third embodiment will be described below.
[0056] Fig. 6 is a diagram showing an example of the configuration of a robot system 1A according to a third embodiment. Elements having the same functions as those of the robot system 1 in Fig. 1 are given the same reference numerals, and detailed description thereof will be omitted. As shown in FIG. 6, the robot system 1A includes a trained model executing device 10b, a robot control device 20, a robot 30, a three-dimensional measuring device 45, a plurality of workpieces 50, and a container 60. The robot control device 20 and the robot 30 have the same functions as the robot control device 20 and the robot 30 according to the first embodiment.
[0057] The three-dimensional measuring device 45 may be configured to acquire three-dimensional information (hereinafter also referred to as a "distance image") in which pixel values are values converted from the distance between a plane perpendicular to the optical axis of the three-dimensional measuring device 45 and each point on the surface of the workpieces 50 stacked in bulk in the container 60. For example, as shown in FIG. 6, the pixel value of point A of the workpiece 50 on the distance image is converted from the distance (height from the three-dimensional measuring device 45) between the three-dimensional measuring device 45 and point A of the workpiece 50 in the Z-axis direction of the three-dimensional coordinate system (X, Y, Z) of the three-dimensional measuring device 45. That is, the Z-axis direction of the three-dimensional coordinate system is the optical axis direction of the three-dimensional measuring device 45. The three-dimensional measuring device 45 may be configured, for example, by a stereo camera, or one camera fixed to the tip or moving device of the robot 30, or a combination of one camera and a distance sensor such as a laser scanner or a sonic sensor, and may acquire three-dimensional point cloud data of multiple workpieces 50 loaded in the container 60. The three-dimensional point cloud data acquired in this manner can be displayed in a 3D view that can be seen from any viewpoint in three-dimensional space, and is discretized data that allows the overlapping state of multiple workpieces 50 loaded in the container 60 to be confirmed in three dimensions. The three-dimensional measuring device 45 may acquire a two-dimensional image such as a grayscale image or an RGB image together with the three-dimensional point cloud data or the range image. The robot system 1A may include an imaging device (not shown) such as a digital camera different from the three-dimensional measuring device 45, and the trained model executing device 10b may acquire the two-dimensional image from the imaging device (not shown) together with the three-dimensional point cloud data or the range image from the three-dimensional measuring device 45.
[0058] <Trained model execution device 10b> Fig. 7 is a functional block diagram showing an example of the functional configuration of a trained-model execution device 10b according to the third embodiment. Elements having the same functions as those of the trained-model execution device 10 in Fig. 1 are denoted by the same reference numerals, and detailed descriptions thereof will be omitted. The trained model execution device 10b has a control unit 11b. The control unit 11b also has an acquisition unit 110b, a preprocessing unit 120b, and an execution unit 130b. The acquisition unit 110b also has a data storage unit 111. The preprocessing unit 120b also has a batch processing unit 121b and a three-dimensional processing unit 123. The execution unit 130b also has an evaluation score calculation unit 132b, an optimization calculation unit 133, an inference calculation processing unit 134, and an inference result storage unit 135.
[0059] <Acquisition unit 110b> The acquisition unit 110b acquires, for example, three-dimensional point cloud data or a range image from the three-dimensional measuring device 45 together with image data as inference data. The acquisition unit 110b also acquires a trained model from a database 70 on the cloud or an edge device. The acquisition unit 110b stores the acquired trained model, three-dimensional point cloud data or range image, and image data in the data storage unit 111. The data storage unit 111 has the same functions as the data storage unit 111 according to the first embodiment.
[0060] <Preprocessing unit 120b> The preprocessing unit 120b may be configured to optimize batch processing of image data for inference based on three-dimensional point cloud data or range image data, and generate a plurality of sub-image data for inference. Specifically, the three-dimensional processing unit 123 of the pre-processing unit 120b compares the image data for inference acquired by two-dimensionally and three-dimensionally measuring a plurality of workpieces 50 randomly piled in the container 60 with the three-dimensional point cloud data (or distance image data). This allows the three-dimensional processing unit 123 to analyze the distribution of heights (also called "predetermined heights") from the bottom of the container 60 of three-dimensional positions in the real world corresponding to each pixel position on the image data for inference. The three-dimensional processing unit 123 outputs the analysis result of the distribution of the predetermined heights to the batch processing unit 121b as three-dimensional processing result data.
[0061] Here, the batch processing unit 121b may receive three-dimensional processing result data including distribution information of a predetermined height, and divide the image data for inference into multiple sub-image data for inference by reflecting the predetermined height differences corresponding to each pixel position on the image data for inference. In other words, at the stage of batch processing of image data for inference, by dividing the image data for inference into sub-image data for inference that has a large number of works 50 and should be given priority for inference calculation processing, and sub-image data for inference that has few or no works 50 even after inference calculation, the execution unit 130b described later can efficiently and smoothly optimize the order of inference calculation processing. It is preferable that the above-mentioned threshold value is appropriately determined depending on the required accuracy and processing speed of the inference calculation process, but it may also be determined depending on the production requirements of the factory production line.
[0062] <Executing section 130b> The execution unit 130b may be configured to optimize the order of inference calculation processing of multiple inference sub-image data based on three-dimensional point cloud data or distance image data, and to perform inference calculation processing of inference data based on each of the multiple inference sub-image data and the learned model as much as necessary in the optimized inference calculation processing order until a pre-specified search goal is achieved. For example, when multiple workpieces 50 are piled up in the container 60, the evaluation score calculation unit 132b of the execution unit 130b may give a high evaluation score to the sub-image data for inference whose predetermined height is equal to or higher than a threshold, and may perform inference calculation processing preferentially for the sub-image data for inference. On the other hand, the evaluation score calculation unit 132b may give a low evaluation score to the sub-image data for inference whose predetermined height is lower than a threshold, and may optimize the inference calculation processing by not performing inference calculation processing for the sub-image data for inference. This allows the trained model execution device 10b to find a target number of candidate target workpieces 50 designated in advance from a huge amount of image data within a short inference calculation processing time.
[0063] However, depending on the performance of the three-dimensional measuring device 45 and the lighting conditions, there may be areas where the three-dimensional measurement fails and no three-dimensional data can be obtained (data missing). Therefore, the evaluation score calculation unit 132b may lower the priority of the inference calculation process for sub-image data for inference that has larger and more data missing areas in the corresponding 3D data, among the multiple sub-image data for inference output by the batch processing unit 121b of the preprocessing unit 120b. By doing so, the trained model execution device 10b can eliminate unnecessary inference calculation processes and shorten the inference calculation process time.
[0064] The optimization calculation unit 133, the inference calculation processing unit 134, and the inference result storage unit 135 have functions equivalent to those of the optimization calculation unit 133, the inference calculation processing unit 134, and the inference result storage unit 135 according to the first embodiment.
[0065] <Inference Calculation Processing of Trained Model Execution Device 10b> Next, the operation of the inference calculation process of the trained model execution device 10b according to this embodiment will be described. FIG. 8 is a flowchart illustrating the inference calculation process of the trained model executing device 10b. The processes from step S36 to step S38 are similar to those from step S17 to step S19 in the first embodiment of FIG. 3, and therefore will not be described.
[0066] In step S31, the acquisition unit 110b acquires a trained model from the database 70.
[0067] In step S32, the acquisition unit 110b acquires from the three-dimensional measuring device 45 the image data for inference, and the three-dimensional point cloud data or the range image.
[0068] In step S33, the three-dimensional processing unit 123 analyzes the distribution of a predetermined height of the inference image data based on the three-dimensional point cloud data or the range image acquired in step S32, and outputs three-dimensional processing result data.
[0069] In step S34, the batch processing unit 121b divides the image data for inference into a plurality of sub-image data for inference based on the three-dimensional processing result data output in step S33.
[0070] In step S35, the evaluation score calculation unit 132b assigns an evaluation score to each of the inference use sub-image data based on the three-dimensional point cloud data or the distance image.
[0071] As described above, the trained model execution device 10b according to the third embodiment acquires the inference image data and the three-dimensional point cloud data or distance image from the three-dimensional measuring device 45, and the trained model from the database 70. The trained model execution device 10b analyzes the distribution of a predetermined height of the inference image data based on the three-dimensional point cloud data or distance image, and divides the inference image data into multiple inference sub-image data based on the analyzed three-dimensional processing result data. The trained model execution device 10b assigns an evaluation score to each inference sub-image data based on the three-dimensional point cloud data or distance image, and optimizes the inference calculation processing order of the multiple inference sub-image data for which inference calculation processing is performed based on the evaluation score information. This enables the learned model executing device 10b to execute the inference calculation process in a short time without making the robot 30 wait for a long time. In addition, the trained model execution device 10b can execute inference at high speed using a normal inexpensive CPU device, and can achieve the high production efficiency required for a production line at low cost. The third embodiment has been described above.
[0072] <Modification 1 of the third embodiment> The trained model executing device 10b according to the third embodiment has been described as acquiring and using inference image data and 3D point cloud data or distance images from the 3D measuring device 45 to pick up a plurality of randomly stacked workpieces 50, but is not limited thereto. There are also no limitations on the type, shape, size, color, number, loading state, etc. of the workpieces 50. For example, the present invention may be applied to a system that performs inference to enable the robot 30 to execute a task of removing a work 50 from a pile of multiple workpieces 50 that are not overlapping each other or from a load of box-shaped workpieces 50 (e.g., cardboard boxes stacked in layers).
[0073] <Modification 2 of the third embodiment> In the third embodiment, the trained model execution device 10b acquires only the trained model from the database 70. However, the trained model execution device 10b may also acquire training image data from the database 70. Fig. 9 is a functional block diagram showing an example of the functional configuration of a trained-model execution device 10b according to a modified example of the third embodiment in the case where training image data is also acquired. Note that elements having the same functions as those of the trained-model execution device 10b in Fig. 7 and the trained-model execution device 10a in Fig. 4 are given the same reference numerals and detailed description thereof will be omitted.
[0074] As shown in FIG. 9, the acquisition unit 110b acquires the trained model and the training image data from the database 70. Furthermore, the image processing unit 122 of the pre-processing unit 120a may be configured to perform image processing on the training image data and the image data for inference, as in the second embodiment, and the batch processing unit 121a may be configured to divide the image data for inference into multiple sub-image data for inference by batch processing based on the image processing results. In addition, the execution unit 130b, the evaluation score calculation unit 132b, the optimization calculation unit 133, the inference calculation processing unit 134, and the inference result storage unit 135 have functions equivalent to the evaluation score calculation unit 132b, the optimization calculation unit 133, the inference calculation processing unit 134, and the inference result storage unit 135 in the third embodiment.
[0075] As a result, the trained model execution device 10b can execute inference calculation processing in a short time without causing the robot 30 to wait for a long time even when acquiring training image data from the database 70. Furthermore, the trained model execution device 10b can execute inference at high speed using a normal inexpensive CPU device, and can achieve high production efficiency required for a production line at low cost.
[0076] The first, second, and third embodiments have been described above, but the trained model execution devices 10, 10a, and 10b are not limited to the above-described embodiments and include modifications, improvements, and the like within the scope that can achieve the objectives.
[0077] <Variation 1> In the above-described first, second, and third embodiments, the trained model execution devices 10, 10a, and 10b are exemplified as devices different from the robot control device 20, but the robot control device 20 may be configured to have some or all of the functions of the trained model execution devices 10, 10a, and 10b. Alternatively, a server may be provided with some or all of the acquisition unit 110, the preprocessing unit 120, and the execution unit 130 of the trained model execution device 10. A server may be provided with some or all of the acquisition unit 110a, the preprocessing unit 120a, and the execution unit 130a of the trained model execution device 10a. A server may be provided with some or all of the acquisition unit 110b, the preprocessing unit 120b, and the execution unit 130b of the trained model execution device 10b. Each function of the trained model execution devices 10, 10a, and 10b may be realized by using a virtual server function or the like on the cloud. Furthermore, the trained model execution devices 10, 10a, and 10b may be a distributed processing system in which the functions of the trained model execution devices 10, 10a, and 10b are appropriately distributed to multiple servers.
[0078] <Variation 2> Further, for example, the trained model execution device 10 according to the first embodiment described above is configured to execute a trained model generated by machine learning based on image data when the robot 30 takes out a plurality of workpieces 50 stacked in a container 60, and to divide the inference image data into a plurality of inference sub-image data by batch processing based on the size of the training image data used in the machine learning, and to perform a matching process between the training image data and each of the inference sub-image data based on the local feature amounts extracted from the training image data and each of the plurality of inference sub-image data. The trained model execution device 10 has been described as an example in which an evaluation score is assigned to each of the plurality of inference sub-image data according to the degree of matching, an inference calculation process order of the plurality of inference sub-image data is optimized based on the evaluation score, an inference calculation process of the plurality of inference sub-image data is performed based on the optimized inference calculation process order, and a candidate take-out position of the workpiece 50 to be taken out by the robot 30 is calculated, but is not limited to a case in which the trained model generated by machine learning based on image data is executed when the robot 30 takes out a plurality of workpieces 50 stacked in a container 60. The type, shape, size, color, number, loading state, etc. of the workpieces 50 are not limited. For example, the present invention may be applied to a system that performs inference to enable the robot 30 to execute a task of removing a work 50 from a pile of multiple workpieces 50 that are not overlapping each other or from a load of box-shaped workpieces 50 (e.g., cardboard boxes stacked in layers). For example, the trained model executing device 10 may be applied to a system that performs inference for executing an arbitrary task based on, for example, voice data during a conversation or meeting between multiple people, instead of a system in which a robot 30 picks up multiple workpieces 50 piled up in a container 60. In this case, image data may be replaced with voice data, and voice inference data (hereinafter also referred to as "inference voice data") may be divided into multiple inference sub-voice data by batch processing based on voice training data (hereinafter also referred to as "training voice data"), and matching processing may be performed between the training voice data and each of the inference sub-voice data based on feature amounts extracted from the training voice data and the multiple inference sub-voice data. The trained model execution device 10 may apply a method similar to that of the first embodiment, assign an evaluation score to each of the multiple inference sub-audio data according to the degree of matching, optimize the inference calculation processing order of the multiple inference sub-audio data based on the evaluation score, perform inference calculation processing of the multiple inference sub-audio data based on the optimized inference calculation processing order, and find the conversation content (e.g., content related to a specific target keyword such as "dog", "cat", "weather") that is the specified training audio data from the enormous amount of audio data within a short inference calculation processing time. In this way, in the case of a system that infers and recognizes the conversation content based on audio data during a conversation or meeting between multiple people, for example, the trained model execution device 10 can avoid unnecessary inference calculation processing for the inference sub-audio data that includes the specified audio data, for example, an area that does not include human audio data (if the audio data is cellularized, it becomes a group of multiple cells. Hereinafter, also referred to as a "cell group"), and can shorten the inference calculation processing time.
[0079] Alternatively, the trained model executing device 10 may be applied to a case where the robot 30 replaces a system in which the robot 30 picks up a plurality of workpieces 50 randomly piled up in a container 60, and executes a trained model generated by machine learning based on character data, for example, as a system that performs inference for executing an arbitrary task based on character data. Specifically, the image data may be replaced with character data, and a method similar to that of the first embodiment may be applied to divide character inference data (hereinafter also referred to as "character data for inference") into a plurality of sub-character data for inference by batch processing based on character training data (hereinafter also referred to as "training character data"), and a matching process may be performed between the training character data and each sub-character data for inference based on feature amounts extracted from each of the training character data and the plurality of sub-character data for inference. The trained model execution device 10 may assign an evaluation score to each of the plurality of inference sub-character data according to the degree of matching, optimize the inference calculation processing order of the plurality of inference sub-character data based on the evaluation score, and perform inference calculation processing of the plurality of inference sub-character data based on the optimized inference calculation processing order, thereby finding the specified training character data (e.g., content related to a specific target keyword such as "year", "month", "day" etc.) from the enormous amount of character data within a short inference calculation processing time. In this way, when identifying a specific failure (e.g., the number of failures of the reducer and the time and location of the failure) based on the failure history data (character data) of the robot 30, for example, the trained model execution device 10 can avoid unnecessary inference calculation processing for the inference sub-character data including an area (when the character data is cellularized, it becomes a plurality of cell groups. Hereinafter, also referred to as "cell groups") that does not include the specified character data (e.g., the target keyword "reducer"), and can shorten the inference calculation processing time. Below, we will explain more specifically the cases where the inference data is (a) voice data and (b) character data.
[0080] (a) When the data for inference is voice data Fig. 10 is a functional block diagram showing an example of the functional configuration of the trained model execution device 10 when the inference data is voice data. Elements having the same functions as those of the trained model execution device 10 in Fig. 2 are given the same reference numerals and detailed descriptions are omitted. In addition, in this case, the trained model inputs each sub-audio data for inference and outputs information indicating the percentage of the data that includes specified conversation content (e.g., specific target keywords such as "dog," "cat," "weather," etc.) that is attached as an instruction label to the training audio data.
[0081] The acquisition unit 110 may acquire voice data as inference data from, for example, a combination of a microphone and a computer, or a computer with a built-in microphone, a smartphone, a tablet terminal, a recording device 80 such as a video camera, or the like.
[0082] The batch processing unit 121 of the pre-processing unit 120 may divide the inference voice data by batch processing, with the training voice data set to a minimum size, as in the case of the inference image data of Figure 2, and generate and output multiple inference sub-voice data.
[0083] As in the case of the inference image data of Figure 2, the execution unit 130 may be configured to assign an evaluation score to each of the multiple inference sub-audio data divided by the batch processing of the pre-processing unit 120 based on the degree of matching with the training audio data, and to optimize the inference calculation processing order of the multiple inference sub-audio data based on a priority determined according to the magnitude of the values of the multiple evaluation scores assigned. Specifically, the feature analysis unit 131 performs feature analysis (for example, frequency feature analysis) of the training voice data, and extracts feature quantity (hereinafter also referred to as "frequency feature analysis result") B of the voice data of the prescribed conversation content (for example, specific target keywords such as "dog", "cat", "weather") attached as the teaching label. In addition, the feature analysis unit 131 also performs frequency feature analysis on m pieces of inference-use sub-voice data AUD1, AUD2, ... AUDm divided by the batch processing of the pre-processing unit 120, and extracts frequency feature analysis results (m is an integer of 2 or more). For example, it is assumed that the feature analysis unit 131 extracts frequency feature analysis results B11 and B12 from the inference-use sub-voice data AUD1, extracts frequency feature analysis results B21, B22, and B23 from the inference-use sub-voice data AUD2, and extracts frequency feature analysis results B31, B32, B33, and B34 from the inference-use sub-voice data AUD3. The feature analysis unit 131 performs a matching process between each of the extracted frequency feature analysis results B11, B12, B21, B22, B23, B31, B32, B33, and B34 and the frequency feature analysis result B of the training audio data, and outputs the analysis result data of the matching process to the evaluation score calculation unit 132.
[0084] The evaluation score calculation unit 132 receives the analysis result data output by the feature analysis unit 131, and when the sub audio data for inference AUD2 includes a frequency feature analysis result with a high degree of matching (e.g., B22), the evaluation score calculation unit 132 assigns a high evaluation score (e.g., 70 points, etc.) to the sub audio data for inference AUD2. In addition, when one sub audio data for inference AUD3 includes multiple frequency feature analysis results with a high degree of matching (e.g., B32, B34), the evaluation score calculation unit 132 assigns an even higher evaluation score (e.g., 80 points, etc.) to the sub audio data for inference AUD3. The evaluation score calculation unit 132 outputs the evaluation score thus assigned to the optimization calculation unit 133.
[0085] The optimization calculation unit 133 assigns a high priority to inference calculation processing so that inference calculation processing is performed preferentially starting from the inference-use sub audio data having a high evaluation score based on the evaluation score information output by the evaluation score calculation unit 132. The optimization calculation unit 133 optimizes the inference calculation processing order of the m pieces of inference-use sub audio data divided by the batch processing of the preprocessing unit 120, and generates a processing order list of the optimized inference calculation processing order. The optimization calculation unit 133 outputs the generated processing order list to the inference calculation processing unit 134. The optimization calculation unit 133 may delete the inference-use sub voice data having a low evaluation score from the processing order list so as not to perform the inference calculation process.
[0086] The inference calculation processing unit 134 performs inference calculation processing based on the information of the processing order list received from the optimization calculation unit 133, the m pieces of sub-audio data for inference divided by the batch processing of the preprocessing unit 120, and the trained model. The inference calculation processing unit 134 stores inference result data of the inference calculation processing in the inference result storage unit 135.
[0087] In this way, since the sub-audio data for inference having a high evaluation score is highly likely to contain a specific target keyword attached to the teaching label of the target, the trained model execution device 10 performs inference calculation processing preferentially from the sub-audio data for inference having a high evaluation score. By doing so, the trained model execution device 10 can find the predefined conversation content early, and can end the inference calculation processing early and shorten the inference calculation processing time. In other words, since the sub-audio data for inference having a low evaluation score is less likely to contain the target keyword, the trained model execution device 10 can eliminate wasted calculation processing time by not performing inference calculation processing on the sub-audio data for inference having a low evaluation score. In other words, the trained model execution device 10 can find the defined conversation content from a huge amount of voice data within a short inference calculation processing time.
[0088] (b) When the data for inference is character data Fig. 11 is a functional block diagram showing an example of the functional configuration of the trained model execution device 10 when the inference data is character data. Note that elements having the same functions as those of the trained model execution device 10 in Fig. 2 are given the same reference numerals and detailed descriptions are omitted. In addition, the trained model in this case inputs, for example, each sub-character data for inference, and outputs information indicating the percentage of the training character data that contains specified character data (for example, specific target keywords such as "year," "month," and "day," which indicate time) that are attached as instruction labels on the training character data.
[0089] The acquisition unit 110 may acquire character data as inference data from a scanning device 90 such as a scanner that acquires an image of character data recorded on paper, a camera, a printer with a scanning function, or a touch panel that allows handwritten input.
[0090] As in the case of the image data for inference in FIG. 2, the batch processing unit 121 of the preprocessing unit 120 may divide the character data for inference by batch processing, with the size of the training character data set at a minimum size, and generate and output multiple sub-character data for inference.
[0091] As in the case of the inference image data of FIG. 2, the execution unit 130 may be configured to assign an evaluation score to each of the multiple inference sub-character data divided by the batch processing of the pre-processing unit 120 based on the degree of matching with the training character data, and to optimize the inference calculation processing order of the multiple inference sub-character data based on a priority determined according to the magnitude of the values of the multiple assigned evaluation scores. Specifically, the feature analysis unit 131 performs feature analysis (e.g., feature analysis of the aspect ratio of the character, symmetry around the X-axis, symmetry around the Y-axis, etc.) of the training character data, for example, and extracts feature quantities (hereinafter also referred to as "feature analysis results") C of the specified character data attached as the instruction label (e.g., specific target keywords such as "year", "month", and "day" that indicate time). The feature analysis unit 131 also performs the same feature analysis on k pieces of inference sub-character data MOJI1, MOJI2, ...MOJIk divided by the batch processing of the preprocessing unit 120, and extracts feature analysis results (k is an integer of 2 or more). For example, it is assumed that the feature analysis unit 131 extracts feature analysis results C11 and C12 from the inference sub-character data MOJI1, extracts feature analysis results C21, C22, and C23 from the inference sub-character data MOJI2, and extracts feature analysis results C31, C32, C33, and C34 from the inference sub-character data MOJI3. The feature analysis unit 131 performs a matching process between each of the extracted feature analysis results C11, C12, C21, C22, C23, C31, C32, C33, and C34 and the feature analysis result C of the training character data, and outputs the analysis result data of the matching process to the evaluation score calculation unit 132.
[0092] The evaluation score calculation unit 132 receives the analysis result data output by the feature analysis unit 131, and, for example, if the sub-character data for inference MOJI2 includes a feature analysis result with a high degree of matching (for example, C22), the evaluation score calculation unit 132 assigns a high evaluation score (for example, 70 points) to the sub-character data for inference MOJI2. In addition, if one piece of sub-character data for inference MOJI3 includes multiple feature analysis results with a high degree of matching (for example, C32, C34), the evaluation score calculation unit 132 assigns an even higher evaluation score (for example, 80 points) to the sub-character data for inference MOJI3. The evaluation score calculation unit 132 outputs the evaluation score assigned in this manner to the optimization calculation unit 133.
[0093] The optimization calculation unit 133 assigns a high priority to inference calculation processing so that inference use sub-character data having a high evaluation score is given priority, based on the evaluation score information output by the evaluation score calculation unit 132. The optimization calculation unit 133 optimizes the inference calculation processing order of the k pieces of inference use sub-character data divided by the batch processing of the preprocessing unit 120, and generates a processing order list of the optimized inference calculation processing order. The optimization calculation unit 133 outputs the generated processing order list to the inference calculation processing unit 134. The optimization calculation unit 133 may delete inference use sub character data having a low evaluation score from the processing order list so as not to perform inference calculation processing.
[0094] The inference calculation processing unit 134 performs inference calculation processing based on the information of the processing order list received from the optimization calculation unit 133, the k pieces of inference sub-character data divided by the batch processing of the preprocessing unit 120, and the trained model. The inference calculation processing unit 134 stores inference result data of the inference calculation processing in the inference result storage unit 135.
[0095] As a result, since the inference sub-character data having a high evaluation score is highly likely to include a specific target keyword attached to the target teaching label, the trained model execution device 10 performs inference calculation processing preferentially on the inference sub-character data having a high evaluation score. By doing so, the trained model execution device 10 can quickly find character data such as "failure of the robot 30 that occurred on XX / XX / XXXX" based on the specified character data attached as the teaching label (for example, a specific target keyword such as "year", "month", and "day" that represent time), and can shorten the inference calculation processing time. In other words, since the inference sub-character data having a low evaluation score is unlikely to include the target keyword, the trained model execution device 10 can eliminate wasteful calculation processing time by not performing inference calculation processing on the inference sub-character data having a low evaluation score. In other words, the trained model execution device 10 can find the specified character data from the enormous character data within a short inference calculation processing time.
[0096] <Modification 3> Further, for example, the trained model execution device 10a according to the second embodiment described above is a case where the robot 30 executes a trained model generated by machine learning based on image data when the robot 30 takes out a plurality of workpieces 50 stacked randomly in the container 60, and acquires inference image data from the imaging device 40 and a trained model from the database 70, performs image processing on the acquired inference image data, and divides the inference image data into inference sub-image data in which feature points are concentrated and inference sub-image data in which feature points are few or not present based on feature points extracted from the inference image data. The trained model execution device 10a assigns an evaluation score to each inference sub-image data based on the number of feature points of each inference sub-image data, optimizes the inference calculation processing order of the plurality of inference sub-image data based on the evaluation score, performs inference calculation processing on the plurality of inference sub-image data based on the optimized inference calculation processing order, and calculates a candidate pick-up position for the workpieces 50 to be picked up by the robot 30. However, the present invention is not limited to a case where the trained model execution device 10a executes a trained model generated by machine learning based on image data when the robot 30 takes out a plurality of workpieces 50 stacked randomly in the container 60. There are no limitations on the type, shape, size, color, number, loading state, etc. of the workpieces 50. For example, the present invention may be applied to a system that performs inference to enable the robot 30 to execute a task of removing a work 50 from a pile of multiple workpieces 50 that are not overlapping each other or from a load of box-shaped workpieces 50 (e.g., cardboard boxes stacked in layers). Also, as in the second modification, the present invention may be applied to a system that performs inference for executing an arbitrary task based on voice data recorded during a conversation or meeting between multiple people. For example, the trained model execution device 10a may acquire data for inference of voice (hereinafter also referred to as "voice data for inference") from a recording device such as a microphone and a trained model from the database 70, perform feature analysis (for example, frequency analysis) on the acquired voice data for inference, and divide the voice data for inference into multiple sub-voice data for inference based on the frequency analysis results extracted from the voice data for inference, and assign an evaluation score to each sub-voice data for inference. The trained model execution device 10a may then optimize the order of inference calculation processing for the multiple sub-voice data for inference based on the evaluation score, perform inference calculation processing for the multiple sub-voice data for inference based on the optimized order of inference calculation processing, and find a specified conversation content (for example, human voice data such as "dog", "cat", and "weather") from a huge amount of voice data within a short inference calculation processing time. By doing so, when identifying a specified conversation content, for example, the learned model executing device 10a can avoid unnecessary inference calculation processing on the specified voice data, i.e., the inference sub-voice data that includes areas (cell groups) that do not include human voice, thereby shortening the inference calculation processing time.
[0097] Alternatively, the trained model executing device 10a may be applied to a case where the robot 30 is replaced with a system for picking up a plurality of workpieces 50 randomly piled up in a container 60, and is used as a system for performing inference for performing an arbitrary task based on character data, for example, to execute a trained model generated by machine learning based on character data. Specifically, the image data may be replaced with character data, and a method similar to that of the second embodiment may be applied to obtain character inference data (hereinafter also referred to as "inference character data") from a scanning device such as a scanner and a trained model from a database 70, perform feature analysis on the obtained inference character data, and divide the inference character data into a plurality of inference sub-character data based on the feature analysis result extracted from the inference character data, and assign an evaluation score to each of the inference sub-character data. Then, the trained model executing device 10a may optimize the inference calculation processing order of the plurality of inference sub-character data based on the evaluation score, perform inference calculation processing of the plurality of inference sub-character data based on the optimized inference calculation processing order, and find the specified character data (for example, "metropolis", "state", "prefecture", "prefecture", "city", "county", "village", etc.) from the enormous amount of character data within a short inference calculation processing time. In this way, for example, when identifying the destination of mail and sorting the mail according to the destination, the trained model executing device 10a can avoid unnecessary inference calculation processing by not performing inference calculation processing on inference sub-character data that includes an area (cell group) that does not include the specified character data "city" to "village," thereby reducing the inference calculation processing time. Below, we will explain more specifically the cases where the inference data is (a) voice data and (b) character data.
[0098] (a) When the data for inference is voice data Fig. 12 is a functional block diagram showing an example of the functional configuration of the trained-model execution device 10a when the inference data is voice data. Elements having the same functions as those of the trained-model execution device 10a in Fig. 4 are given the same reference numerals and detailed descriptions are omitted. In addition, in this case, the trained model inputs, for example, each sub-voice data for inference, and outputs information indicating the percentage of whether or not the data includes pre-defined conversation content (for example, human voice data such as "dog," "cat," and "weather").
[0099] The acquisition unit 110a may acquire voice data as inference data from, for example, a combination of a microphone and a computer, or a computer with a built-in microphone, a smartphone, a tablet terminal, a recording device 80 such as a video camera, or the like.
[0100] The pre-processing unit 120a may be configured to perform a feature analysis of the inference-use voice data, and divide the inference-use voice data into a plurality of inference-use sub-voice data in a batch process based on the feature analysis result data. Specifically, the feature analysis unit 122a of the preprocessing unit 120a corresponds to the feature analysis unit 131 of FIG. 10, and may perform feature analysis (for example, frequency feature analysis) on the inference voice data and output feature analysis result data. As feature analysis result data (frequency analysis result), a region of the inference voice data with too low amplitude does not contain a specific conversation content (for example, "dog") by the voice of the person to be identified, and can be regarded as data containing only ambient noise at the time of recording. In this case, even if an inference calculation process is performed on the voice data of the region to find the specific conversation content by the voice of the person to be identified, it will waste time for the inference calculation process. In addition, a region of the inference voice data with too high amplitude is, for example, a part of the voice data that exceeds the range that the recording device 80 can record, and is highly likely to be data that has not been successfully acquired and is missing. Even if an inference calculation process is performed on the voice data of such a region, there is a high possibility that it will not be possible to perform a successful inference (recognition). The batch processing unit 121a of the pre-processing unit 120a may divide the inference use voice data into a plurality of inference use sub-voice data that are not subjected to inference calculation processing by cutting out regions of the voice data as described above. Furthermore, if a certain waveform appears periodically in the results of frequency analysis of the inference voice data, it can be assumed that the same person is continuing to repeat the same words within a certain period of time, and the batch processing unit 121a may divide the inference voice data into multiple inference sub-voice data by batch processing, using the periodically appearing waveform as a dividing point.
[0101] The execution unit 130a may be configured to optimize the inference calculation processing order of a plurality of inference-use sub voice data based on the feature analysis result data output by the feature analysis unit 122a of the preprocessing unit 120a. For example, when the batch processing unit 121a generates multiple sub-audio data for inference based on the frequency analysis results, the evaluation score calculation unit 132a may assign a low evaluation score to multiple sub-audio data for inference whose amplitude is, for example, too low or too high, based on the frequency analysis results, and the optimization calculation unit 133 may lower the priority of those inference calculation processes so as not to perform the inference calculation processes. As a result, when searching for specific conversation content from inference voice data of a long conversation, it is possible to shorten the inference calculation processing time for the inference voice data and quickly find the specific conversation content by not performing unnecessary inference calculation processing on inference sub-voice data that includes environmental noise containing no human voice or on inference sub-voice data that is beyond the range that can be recorded by the recording device 80 and has not been successfully acquired. That is, when identifying a specified conversation content, for example, the trained model execution device 10a can avoid unnecessary inference calculation processing on inference sub-voice data that includes an area (cell group) that does not include specified voice data (i.e., human voice), and can shorten the inference calculation processing time.
[0102] (b) When the data for inference is character data Fig. 13 is a functional block diagram showing an example of the functional configuration of the trained-model execution device 10a when the inference data is character data. Note that elements having the same functions as those of the trained-model execution device 10a in Fig. 4 are given the same reference numerals and detailed descriptions are omitted. In addition, in this case, the trained model inputs sub-character data for inference, including, for example, the mail destination, and outputs information indicating the percentage of predefined character data (for example, specific target keywords such as "city" to "village" for identifying an address) that is included.
[0103] The acquisition unit 110a may acquire character data as inference data from a scanning device 90 such as a scanner, a camera, a printer with a scanning function, or a touch panel capable of handwritten input, which acquires an image of character data recorded on paper.
[0104] The preprocessing unit 120a may be configured to perform a feature analysis of the inference-use character data, and divide the inference-use character data into a plurality of inference-use sub-character data by batch processing based on the feature analysis result data. Specifically, the feature analysis unit 122a of the preprocessing unit 120a corresponds to the feature analysis unit 131 in FIG. 11, and may perform feature analysis on the inference character data and output the feature analysis result data. For example, a task of performing handwritten address character recognition and automatically classifying postal items according to the destination of the postal items will be described as an example. The acquisition unit 110a includes a data storage unit 111. For example, using a scanning device 90, the character data obtained by scanning the area where the destination of the postal item is written is registered as image data and further stored in a recording medium such as an HDD of a personal computer (not shown). For example, the feature analysis unit 122a divides the entire area of the series of handwritten character image data thus obtained into cells. The feature analysis unit 122a, for example, digitizes the presence or absence state of characters in each small cell, attaches a label of "1" to the cells with characters in the area, and attaches a label of "0" to the cells without characters in the area. In this way, the feature analysis unit 122a can recognize the area continuously labeled with "0" as the space between characters and delimit the characters by using the feature map of the labels extracted by attaching the "0" and "1" labels to the entire area of the character image data. Further, the feature analysis unit 122a can identify the area (cell group) where the characters of "prefecture", "city", "county", "district", "city", "township", and "village" exist from the series of handwritten character data by performing matching with the printed characters of "prefecture", "city", "county", "district", "city", "township", and "village". The feature analysis unit 122a outputs the feature map of the labels and the existence area information of the specific characters ("prefecture" to "village") thus obtained as the feature analysis result data.
[0105] The batch processing unit 121a of the preprocessing unit 120a receives the feature analysis result data (the feature map of the labels and the existence area information of the specific characters "prefecture" to "village") output by the feature analysis unit 122a, and uses the area (cell group) where the specific characters "prefecture" to "village" exist as a delimiter to divide the inference character data by batch processing and generate and output a plurality of inference sub-character data.
[0106] The execution unit 130a may be configured to optimize the inference calculation processing order of a plurality of inference sub-character data based on the feature analysis result data output by the feature analysis unit 122a of the preprocessing unit 120a. For example, when the batch processing unit 121a of the preprocessing unit 120a generates a plurality of inference sub-character data, even if inference calculation processing is performed on the inference sub-character data including areas (cell groups) where no characters exist or areas (cell groups) that do not include specific characters from “prefecture” to “village”, it will result in useless inference calculation processing that is not helpful for the goal of identifying the destination of the postal item. Therefore, the evaluation score calculation unit 132a may assign a low evaluation score to the inference sub-character data including areas (cell groups) where no characters exist or areas (cell groups) that do not include specific characters from “prefecture” to “village”, and lower the priority of those inference calculation processes so that they are not performed. Also, the evaluation score calculation unit 132a may assign a high evaluation score to the inference sub-character data including areas (cell groups) that include specific characters from “prefecture” to “village”, and preferentially perform the inference calculation processes with high evaluation scores, thereby enabling the destination of the postal item to be identified quickly and shortening the inference calculation processing time of the automatic classification task of the postal item.
[0107] <Modification Example 4> Also, for example, the learned model execution device 10a according to the second embodiment only acquires the learned model from the database 70, but may also acquire the training image data from the database 70. FIG. 14 is a functional block diagram showing a functional configuration example of the learned model execution device 10a when acquiring training image data as well. Note that elements having the same functions as those of the learned model execution device 10a in FIG. 4 are denoted by the same reference numerals, and detailed descriptions thereof are omitted.
[0108] As shown in FIG. 14, the acquisition unit 110a acquires the learned model and the training image data from the database 70. The pre-processing unit 120a may be configured to perform image processing on the training image data and the image data for inference, and to perform batch processing on the image data for inference based on the image processing results, thereby dividing the image data for inference into a plurality of sub-image data for inference. Specifically, the image processing unit 122 of the pre-processing unit 120a, as the feature analysis unit 131 of the execution unit 130 in Fig. 2, performs image processing on the neighboring image region including the extraction position indicated by the label attached to the training image data and the image data for inference, and extracts, for example, a specific local feature. The image processing unit 122 may match the local feature of the neighboring image of the labeled teaching position on the extracted training image data with each of the local feature of a plurality of locations on the image data for inference, calculate the degree of matching, and output the result as image processing result data.
[0109] The batch processing unit 121a of the preprocessing unit 120a divides the image data for inference so that a local image area on the image data for inference that has a high degree of matching with the image near the teaching position on the training image data becomes an independent piece of sub-image data for inference. Also, the batch processing unit 121a divides the image data for inference so that a local image area on the image data for inference that has a low degree of matching with the image near the teaching position on the training image data becomes an independent piece of sub-image data for inference. In other words, the batch processing unit 121a may divide and output the image data for inference so that a local image area where there is a high possibility that there are many workpieces 50 that can be extracted becomes a single piece of sub-image data for inference, and a local image area where there are few or no workpieces 50 that can be extracted becomes a single piece of sub-image data for inference. In other words, by distinguishing between sub-image data for inference that is likely to find the work 50 that should be given priority for inference calculation processing and sub-image data for inference that is likely not to find the target work 50 even if inference calculation is performed at the batch processing stage of image data for inference, the execution unit 130a can efficiently and smoothly optimize the order of inference calculation processing. Although the above describes a case where multiple workpieces 50 are picked up from random piles, the present invention is not limited to this. There is also no limitation on the type, shape, size, color, number, loading state, etc. of the workpieces 50. For example, the present invention may be applied to a system that performs inference to execute a task in which the robot 30 picks up the workpieces 50 from a flat pile state where multiple workpieces 50 are not overlapped or from a pile state of box-shaped workpieces 50 (for example, a pile of cardboard boxes). Although the data for inference is image data for inference, it may also be voice data for inference or text data for inference, and by replacing the image processing unit 122 with the feature analysis unit 131, it can be applied to the trained model execution device 10a shown in Figure 14.
[0110] Each function included in the trained-model execution device 10 in the first embodiment, the trained-model execution device 10a in the second embodiment, and the trained-model execution device 10b in the third embodiment can be realized by hardware, software, or a combination of these. Here, being realized by software means being realized by a computer reading and executing a program.
[0111] The program can be stored and provided to the computer using various types of non-transitory computer readable media. The non-transitory computer readable media includes various types of tangible storage media. Examples of the non-transitory computer readable media include magnetic recording media (e.g., flexible disks, magnetic tapes, hard disk drives), magneto-optical recording media (e.g., magneto-optical disks), CD-ROMs (Read Only Memory), CD-Rs, CD-R / Ws, and semiconductor memories (e.g., mask ROMs, PROMs (Programmable ROMs), EPROMs (Erasable PROMs), flash ROMs, and RAMs). The program may also be provided to the computer by various types of transitory computer readable media. Examples of the transitory computer readable media include electrical signals, optical signals, and electromagnetic waves. The transitory computer readable media can provide the program to the computer via wired communication paths such as electric wires and optical fibers, or wireless communication paths.
[0112] In addition, the steps of writing a program to be recorded on a recording medium include not only processes that are performed chronologically according to the order, but also processes that are not necessarily performed chronologically but are executed in parallel or individually.
[0113] In other words, the inference calculation processing device and the inference calculation processing method disclosed herein can take on a variety of different embodiments having the following configurations.
[0114] (1) The trained model execution device 10 as an inference calculation processing device of the present disclosure is an inference calculation processing device that inputs inference data to a trained model and executes inference calculation processing of the inference data, and includes an acquisition unit 110 that acquires inference data and the trained model, a pre-processing unit 120 that divides the inference data acquired by the acquisition unit 110 into multiple inference sub-data by batch processing, and an execution unit 130 that optimizes the inference calculation processing order of the multiple inference sub-data divided by the pre-processing unit 120 by batch processing, and executes inference calculation processing of the inference data based on each of the multiple inference sub-data and the trained model in the optimized inference calculation processing order. According to this trained model execution device 10, the robot 30 can execute inference calculation processing in a short time without having to wait for a long time.
[0115] (2) In the trained model execution device 10 described in (1), the acquisition unit 110 may acquire training data used when generating the trained model by machine learning. In this way, the trained model execution device 10 can divide the inference data based on the size of the training data.
[0116] (3) In the trained model execution device 10 described in (2), the preprocessing unit 120 may divide the data for inference into multiple sub-data for inference by batch processing based on the size of the training data. By doing so, the trained model execution device 10 can prevent a situation in which the size of the inference sub-image after division is too small to contain the necessary image features, resulting in a failure to perform successful inference in the subsequent inference calculation process using the trained model.
[0117] (4) In the trained model execution device 10 described in (2) or (3), the execution unit 130 may perform a matching process between the training data and each of the multiple inference sub-data, assign an evaluation score to each of the multiple inference sub-data according to the degree of matching, and optimize the order of inference calculation processing for the multiple inference sub-data based on the priority order based on the assigned evaluation scores. By doing so, for example, when removing multiple workpieces 50 piled up in a container 60, the trained model execution device 10 can eliminate wasteful inference calculation processing in which no candidate workpiece 50 to be removed is found even when performing inference calculation processing on inference sub-data with a low degree of matching, thereby shortening the inference calculation processing time. Also, by giving priority to inference calculation processing on inference sub-data with a high degree of matching, the trained model execution device 10 can quickly find the number of candidates for the pre-specified workpiece 50 and terminate the inference calculation processing early, thereby shortening the inference calculation processing time.
[0118] (5) In the trained model execution device 10 described in any one of (1) to (4), the acquisition unit 110 may acquire image data as data for inference. In this way, the trained model executing device 10 can find the workpiece 50 that the robot 30 can pick up.
[0119] (6) In the trained model execution device 10a described in (5), the preprocessing unit 120a may perform image processing to extract features of image data acquired as data for inference. In this way, the trained model execution device 10a can optimally divide the image data for inference into multiple sub-image data for inference without acquiring training data.
[0120] (7) In the trained model execution device 10a described in (6), the preprocessing unit 120a may divide the data for inference into multiple sub-data for inference by batch processing based on the results of image processing. In this way, the trained model execution device 10a can optimally divide the image data for inference into multiple sub-image data for inference without acquiring training data.
[0121] (8) In the trained model execution device 10a described in (6) or (7), the execution unit 130a may assign an evaluation score to each of the multiple inference sub-data based on the results of image processing, and optimize the order of inference calculation processing of the multiple inference sub-data based on the priority order based on the assigned evaluation scores. In this way, the trained model execution device 10a can eliminate wasteful inference calculation processing such as not finding candidates for the work 50 to be extracted even when performing inference calculation processing on inference sub-data that is unlikely to include the work 50 to be extracted, thereby shortening the inference calculation processing time. Also, by preferentially performing inference calculation processing on inference sub-data that is likely to include the work 50 to be extracted, the trained model execution device 10a can quickly find the number of candidates for the pre-specified work 50 and terminate the inference calculation processing early, thereby shortening the inference calculation processing time.
[0122] (9) In the trained model execution device 10 described in (1) to (4), voice data may be acquired as data for inference. In this way, the trained model execution device 10 can find the specified conversation content from a huge amount of voice data within a short inference calculation processing time.
[0123] (10) In the trained model execution device 10a described in (9), the preprocessing unit 120a may perform feature analysis to extract features of the voice data acquired as data for inference. In this way, the trained model executing device 10a can optimally divide the inference-use voice data into a plurality of inference-use sub-voice data without acquiring training data.
[0124] (11) In the trained model execution device 10a described in (10), the preprocessing unit 120a may divide the data for inference into multiple sub-data for inference by batch processing based on the results of the feature analysis. In this way, the trained model executing device 10a can optimally divide the inference-use voice data into a plurality of inference-use sub-voice data without acquiring training data.
[0125] (12) In the trained model execution device 10a described in (10) or (11), the execution unit 130a may assign an evaluation score to each of the multiple inference sub-data based on the results of the feature analysis, and optimize the order of inference calculation processing of the multiple inference sub-data based on the priority order based on the assigned evaluation scores. In this way, the trained model execution device 10a can eliminate unnecessary inference calculation processes in which the specified conversation content cannot be found even if the inference calculation process is performed, and can shorten the inference calculation process time. Also, the trained model execution device 10a can terminate the inference calculation process early and shorten the inference calculation process time by preferentially performing the inference calculation process of the inference sub-data that is likely to include the specified conversation content.
[0126] (13) In the trained model execution device 10 described in (1) to (4), character data may be acquired as data for inference. In this way, the trained model execution device 10 can find the specified character data from a huge amount of character data within a short inference calculation processing time.
[0127] (14) In the trained model execution device 10a described in (13), the preprocessing unit 120a may perform feature analysis to extract features of character data acquired as data for inference. In this way, the trained model execution device 10a can optimally divide the deduction character data into a plurality of deduction sub-character data without acquiring training data.
[0128] (15) In the trained model execution device 10a described in (14), the preprocessing unit 120a may divide the data for inference into multiple sub-data for inference by batch processing based on the results of the feature analysis. In this way, the trained model execution device 10a can optimally divide the deduction character data into a plurality of deduction sub-character data without acquiring training data.
[0129] (16) In the trained model execution device 10a described in (14) or (15), the execution unit 130a may assign an evaluation score to each of the multiple inference sub-data based on the results of the feature analysis, and optimize the order of inference calculation processing of the multiple inference sub-data based on the priority order based on the assigned evaluation scores. In this way, the trained model execution device 10a can eliminate unnecessary inference calculation processes in which the specified character data cannot be found even if the inference calculation process is performed, and can shorten the inference calculation process time. Also, the trained model execution device 10a can terminate the inference calculation process early and shorten the inference calculation process time by preferentially performing the inference calculation process of the inference sub-data that is likely to contain the specified character data.
[0130] (17) In the trained model executing device 10b described in (1) to (4), the acquisition unit 110b may acquire three-dimensional measurement data. In this way, the trained model execution device 10b can optimally divide the inference data into a plurality of inference sub-data without acquiring training data.
[0131] (18) In the trained model execution device 10b described in (17), the preprocessing unit 120b may divide the inference data into multiple inference sub-data by batch processing based on the three-dimensional measurement data. In this way, the trained model execution device 10b can optimally divide the inference data into a plurality of inference sub-data without acquiring training data.
[0132] (19) In the trained model execution device 10b described in (17) or (18), the execution unit 130b may assign an evaluation score to each of the multiple inference sub-data based on the three-dimensional measurement data, and optimize the order of inference calculation processing of the multiple inference sub-data based on the priority order of the assigned evaluation scores. In this way, the trained model execution device 10b can eliminate wasteful inference calculation processing such as not finding candidates for the work 50 to be extracted even when performing inference calculation processing on inference sub-data that is unlikely to include the work 50 to be extracted, thereby shortening the inference calculation processing time. Also, by preferentially performing inference calculation processing on inference sub-data that is likely to include the work 50 to be extracted, the trained model execution device 10b can quickly find the number of candidates for the pre-specified work 50 and terminate the inference calculation processing early, thereby shortening the inference calculation processing time.
[0133] (20) The inference calculation processing method disclosed herein is an inference calculation processing method realized by a computer, in which inference data is input to a trained model and inference calculation processing of the inference data is performed, and includes an acquisition step of acquiring inference data and the trained model, a pre-processing step of dividing the acquired inference data into multiple inference sub-data by batch processing, and an execution step of optimizing the inference calculation processing order of the multiple inference sub-data and performing inference calculation processing of the inference data based on each of the multiple inference sub-data and the trained model in the optimized inference calculation processing order. This inference calculation processing method can achieve the same effect as (1). [Explanation of symbols]
[0134] 1. 1A Robot System 10, 10a, 10b Trained model execution device as an inference calculation processing device 11, 11a, 11b Control section 110, 110a, 110b acquisition part 111 Data Storage Section 120, 120a, 120b Pre-processing section 121, 121a, 121b Batch processing unit 122 Image Processing Unit 122a, 131 Feature Analysis Section 123 3D Processing Section 130, 130a, 130b Executive Division 132, 132a, 132b Evaluation score calculation unit 133 Optimization Calculation Section 134 Inference calculation processing unit 135 Inference result storage section 20 Robot control device 30. Robot 40 Imaging device 45 3D measuring machine 50 Work 60 Container
Claims
1. An inference calculation processing device that inputs inference data into a trained model and executes inference calculation processing of the inference data, An acquisition unit that acquires the inference data and the trained model; a pre-processing unit that divides the acquired inference data into a plurality of inference sub-data by batch processing; An execution unit that executes an inference calculation process on the inference data based on at least a portion of the plurality of inference sub-data and the trained model, The acquisition unit acquires training data used to generate the trained model, The execution unit assigns evaluation scores to the plurality of inference sub-data in accordance with a degree of matching between the training data and the plurality of inference sub-data, and adjusts an inference calculation processing order of the plurality of inference sub-data based on a priority order according to the assigned evaluation scores. Inference computing device.
2. The inference computation processing device according to claim 1 , wherein the preprocessing unit performs the batch processing of the inference data based on the training data.
3. The inference calculation processing device according to claim 1 , wherein the acquisition unit acquires image data as the inference data.
4. The inference calculation processing device according to claim 3 , wherein the preprocessing unit performs image processing on the image data acquired as the inference data.
5. The inference calculation processing device according to claim 4 , wherein the preprocessing unit performs the batch processing of the inference data based on a result of the image processing.
6. The inference calculation processing device according to claim 4 or claim 5, wherein the execution unit assigns an evaluation score to each of the plurality of inference sub-data based on the result of the image processing, and optimizes the inference calculation processing order of the plurality of inference sub-data based on the priority order according to the assigned evaluation scores.
7. An inference calculation processing device that inputs inference data into a trained model and executes inference calculation processing of the inference data, An acquisition unit that acquires the inference data and the trained model; a pre-processing unit that divides the acquired inference data into a plurality of inference sub-data by batch processing; An execution unit that executes an inference calculation process on the inference data based on at least a portion of the plurality of inference sub-data and the trained model, the acquisition unit acquires voice data as the inference data, The preprocessing unit performs a feature analysis of the voice data acquired as the inference data, The execution unit assigns evaluation scores to the plurality of inference sub-data based on a result of the feature analysis, and adjusts an inference calculation processing order of the plurality of inference sub-data based on a priority order according to the assigned evaluation scores. Inference computing device.
8. The inference computation processing device according to claim 7 , wherein the preprocessing unit performs the batch processing of the inference data based on a result of the feature analysis.
9. The inference calculation processing device according to claim 1 , wherein the acquisition unit acquires character data as the inference data.
10. The inference calculation processing device according to claim 9 , wherein the preprocessing unit performs a feature analysis of the character data acquired as the inference data.
11. The inference computation processing device according to claim 10 , wherein the preprocessing unit performs the batch processing of the inference data based on a result of the feature analysis.
12. The inference calculation processing device according to claim 10 or 11, wherein the execution unit assigns evaluation scores to the plurality of inference sub-data based on the results of the feature analysis, and adjusts the order of inference calculation processing of the plurality of inference sub-data based on the priority order according to the assigned evaluation scores.
13. The inference calculation processing device according to claim 1 , wherein the acquisition unit acquires three-dimensional measurement data.
14. The inference calculation processing device according to claim 13 , wherein the preprocessing unit performs the batch processing of the inference data based on the three-dimensional measurement data.
15. 15. The inference calculation processing device according to claim 13, wherein the execution unit assigns evaluation scores to the plurality of inference sub-data based on the three-dimensional measurement data, and adjusts an order of inference calculation processing of the plurality of inference sub-data based on a priority order according to the assigned evaluation scores.
16. An inference calculation processing method implemented by a computer, which inputs inference data to a trained model and executes inference calculation processing of the inference data, An acquisition step of acquiring the inference data and the trained model; a pre-processing step of dividing the acquired inference data into a plurality of inference sub-data by batch processing; and an execution step of executing an inference calculation process of the inference data based on at least a portion of the plurality of inference sub-data and the trained model, The acquiring step acquires training data used to generate the trained model, The execution step assigns evaluation scores to the plurality of inference sub-data in accordance with a degree of matching between the training data and the plurality of inference sub-data, and adjusts an inference calculation processing order of the plurality of inference sub-data based on a priority order according to the assigned evaluation scores. Inference computation method.
Citation Information
Patent Citations
Image recognition system
JP2018136803A
Robot system and workpiece take-out method
JP2019058960A
Information processing device, information processing method and information processing program
WO2020026643A1
Cited By
Information processing method, image processing method, robot control method, product manufacturing method, information processing apparatus, image processing apparatus, robot system, and recording medium
US20230364798A1
