Learning device, data augmentation system, estimation device, learning method and program
Patent Information
- Application Number
- JP2023037407
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-10
- Publication Date
- 2024-09-24
AI Technical Summary
【0011】 本開示によれば、分散学習環境化において、GAN(Generative Adversarial Network)の少数ショット学習を高速化できる学習装置等を提供することが可能になる。
Smart Images

Figure 2024128434000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a learning device and the like used in distributed learning. [Background technology]
[0002] There is an increasing need for technology that senses human movements using video, motion capture, and wearable sensors, and recognizes movements and actions based on the sensed movements. For example, a recognition model that learns movement data using techniques such as machine learning can be used to recognize human movements and actions. In order to perform recognition with more practical accuracy, it is necessary to train the recognition model using a large amount of movement data. For example, it is necessary to train the recognition model using training data that includes variations in the movements of various people, such as physique, age, and individual movement habits. Measuring movement data takes a lot of time and effort. Therefore, there is a demand for data augmentation technology that generates a large amount of pseudo data (pseudo movement data) of actually measured movement data.
[0003] One method for quickly training a model using GANs is distributed learning, which performs large-scale parallel processing using multiple GPUs or computing nodes. Distributed learning shortens the computation time by dividing the computational processing among multiple GPUs (Graphics Processing Units). When the number of GPUs is increased k-fold, the amount of data that can be processed at one time (batch size) becomes k-fold (k is a natural number). However, in reality, learning cannot be made faster just by increasing the batch size.
[0004] Non-Patent Document 1 discloses a technique for improving the efficiency of distributed learning. In the method of Non-Patent Document 1, a technique for adjusting a learning rate according to the scale of distributed learning is disclosed. In the method of Non-Patent Document 1, the learning rate is increased in proportion to the batch size. [Prior art documents] [Non-patent literature]
[0005] [Non-Patent Document 1] P. Goyal. et al., “Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour,” arXiv:1706.02677, 2018. Summary of the Invention [Problem to be solved by the invention]
[0006] According to the method of Non-Patent Document 1, if the batch size is sufficiently small compared to the dataset size, model training can be made efficient. In a large-scale distributed learning environment, the batch size exceeds the dataset size, so the prerequisites of the linear scaling law are not met. Therefore, the method of Non-Patent Document 1 could not be applied to a large-scale distributed learning environment. In other words, the method of Non-Patent Document 1 could not make the few-shot learning of GAN compatible with large-scale parallel processing.
[0007] An object of the present disclosure is to provide a learning device etc. that can speed up few-shot learning of a Generative Adversarial Network (GAN) in a large-scale distributed learning environment. [Means for solving the problem]
[0008] A learning device of one embodiment of the present disclosure includes a data acquisition unit that acquires a dataset including multiple teacher data and divides the multiple teacher data into multiple subsets; a generation unit having a generative model that outputs pseudo data; a discrimination unit having a discriminant model that determines whether input data is teacher data or pseudo data depending on the input of either teacher data or pseudo data; a management unit that sets a first hyperparameter used to update the discriminant model based on a preset hyperparameter, and sets a second hyperparameter used to update the generative model depending on the number of GPUs per server used for distributed processing; and a learning processing unit that updates the discriminant model using the first hyperparameter and updates the generative model using the second hyperparameter.
[0009] In one embodiment of the learning method of the present disclosure, a dataset including multiple teacher data is obtained, the multiple teacher data are divided into multiple subsets, pseudo data is generated using a generative model that outputs pseudo data, whether the input data is teacher data or pseudo data is determined using a discriminant model that determines whether the input data is teacher data or pseudo data depending on the input of either the teacher data or the pseudo data, a first hyperparameter used to update the discriminant model is set based on a preset hyperparameter, a second hyperparameter used to update the generative model is set based on the preset hyperparameter depending on the number of GPUs per server used for distributed processing, the discriminant model is updated using the first hyperparameter, and the generative model is updated using the second hyperparameter.
[0010] A program of one embodiment of the present disclosure causes a computer to execute the following processes: acquiring a dataset including multiple teacher data; dividing the multiple teacher data into multiple subsets; generating pseudo data using a generative model that outputs pseudo data; determining whether input data is teacher data or pseudo data using a discriminant model that determines whether the input data is teacher data or pseudo data in response to input of either teacher data or pseudo data; setting a first hyperparameter used to update the discriminant model based on a preset hyperparameter; setting a second hyperparameter used to update the generative model based on a preset hyperparameter in response to the number of GPUs per server used for distributed processing; updating the discriminant model using the first hyperparameter; and updating the generative model using the second hyperparameter. Effect of the Invention
[0011] According to the present disclosure, it is possible to provide a learning device or the like that can speed up few-shot learning of a GAN (Generative Adversarial Network) in a distributed learning environment. [Brief description of the drawings]
[0012] [Figure 1] 1 is a block diagram showing an example of a configuration of a learning device according to a first embodiment. [Diagram 2] 4 is a flowchart illustrating an example of a learning process performed by the learning device according to the first embodiment. [Diagram 3] 6 is a flowchart illustrating an example of a first update process performed by the learning device according to the first embodiment. [Figure 4] 10 is a flowchart for explaining an example of a second update process by the learning device according to the first embodiment. [Diagram 5] FIG. 11 is a block diagram showing an example of a configuration of a data expansion system according to a second embodiment. [Figure 6] FIG. 13 is a conceptual diagram for explaining a target motion related to time-series skeletal data that is an extension target by the data extension system according to the second embodiment. [Figure 7] FIG. 13 is a conceptual diagram for explaining skeleton data included in time-series skeleton data to be expanded by the data expansion system according to the second embodiment. [Figure 8] 13 is a flowchart illustrating an example of a data extension process by the data extension system according to the third embodiment. [Figure 9] 13 is a flowchart illustrating an example of an information separation process by the data expansion system according to the third embodiment. [Figure 10] 13 is a flowchart illustrating an example of an extension process by the data extension system according to the third embodiment. [Figure 11] FIG. 13 is a block diagram showing an example of a configuration of an estimation device according to a third embodiment. [Figure 12] FIG. 13 is a conceptual diagram showing a display example of motion data estimated by the estimation device according to the third embodiment. [Figure 13] FIG. 13 is a block diagram showing an example of the configuration of a learning device according to a fourth embodiment. [Figure 14] FIG. 2 is a block diagram showing an example of a hardware configuration for executing the processes of each embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, the embodiments for carrying out the present invention will be described with reference to the drawings. However, the embodiments described below are limited in a manner that is technically preferable for carrying out the present invention, but the scope of the invention is not limited to the following. In addition, in all the drawings used to explain the following embodiments, the same reference numerals are used for similar parts unless otherwise specified. In addition, in the following embodiments, repeated explanations of similar configurations and operations may be omitted.
[0014] (First embodiment) First, a learning device according to a first embodiment will be described with reference to the drawings. The learning device of this embodiment is used to train a model used for data augmentation. For example, the learning device of this embodiment trains a model (generative model, estimation model) that generates augmented data using actually measured motion data. The motion data is data that indicates changes in posture according to a person's motion. The motion data is extracted from multiple frames that make up a video. The method of this embodiment can be used to augment not only motion data but any data.
[0015] (composition) Fig. 1 is a block diagram showing an example of the configuration of a learning device 10 according to this embodiment. The learning device 10 includes a data acquisition unit 11, a generation unit 12, a discrimination unit 13, and a learning processing unit 17. In Fig. 1, lines showing connections between the components are omitted.
[0016] The data acquisition unit 11 (data acquisition means) acquires a data set 110 composed of a plurality of data (teaching data). There is no particular limitation on the plurality of data constituting the data set 110. For example, the data set 110 is composed of a plurality of actual data actually measured. For example, the data set 110 is motion data extracted from the motion of a subject actually measured. For example, the data set 110 is composed of a plurality of data obtained by actually measuring specific motions performed by a small number of subjects, such as about 10 subjects, using motion capture or the like. The plurality of data constituting the data set 110 needs to be actually measured. Therefore, it is difficult to prepare a large amount of the plurality of data constituting the data set 110.
[0017] The data acquisition unit 11 divides multiple data constituting the dataset 110 into mini-batches. A mini-batch is a subset consisting of multiple data included in the dataset 110. The number of data included in a mini-batch is called a batch size. For example, the batch size is set to the nth power of 2 (n is a natural number). The multiple data divided into mini-batches are used for discrimination by the discrimination model 130 of the discrimination unit 13. The division of the multiple data constituting the dataset 110 may be performed by the management unit 15 or the learning processing unit 17.
[0018] The generation unit 12 (generation means) includes a generation model 120. In this embodiment, the generation model 120 is a target of learning by the learning device 10. The generation model 120 is a model that generates pseudo data. For example, the generation model 120 outputs pseudo data corresponding to random value values. The generation unit 12 generates the pseudo data using the generation model 120. There are no particular limitations on the method of generating the pseudo data by the generation model 120. For example, the generation model 120 may generate the pseudo data using noise following a normal distribution.
[0019] The discrimination unit 13 (discrimination means) includes a discrimination model 130. In this embodiment, the discrimination model 130 is not the subject of learning by the learning device 10, but is secondarily trained. The discrimination model 130 is a model that discriminates whether input data is teacher data or pseudo data. The discrimination unit 13 acquires the pseudo data generated by the generation unit 12. The discrimination unit 13 uses the discrimination model 130 to discriminate whether the acquired data is teacher data or pseudo data. The discrimination unit 13 outputs the discrimination result by the discrimination model 130 to the management unit 15.
[0020] The discrimination unit 13 calculates a discrimination loss according to the discrimination result. The discrimination loss indicates the degree of error in the discrimination by the discrimination model 130. In other words, the discrimination loss indicates the degree to which the discrimination result between the teacher data and the pseudo data by the discrimination model 130 was incorrect. The discrimination loss indicates the proportion of teacher data discriminated as pseudo data and pseudo data discriminated as teacher data for all teacher data and pseudo data discriminated by the discrimination model 130. If all discriminations by the discrimination model 130 are correct, the discrimination loss is 0. On the other hand, if all discriminations by the discrimination model 130 are incorrect, the discrimination loss is 1.
[0021] In addition, the discrimination unit 13 calculates a generation loss according to the discrimination result. The generation loss indicates the degree to which the pseudo data generated by the generation model 120 is identified as teacher data by the discrimination model 130. In other words, the generation loss indicates the degree to which the pseudo data generated by the generation model 120 is discriminated as pseudo data by the discrimination model 130. The generation loss indicates the proportion of pseudo data discriminated as pseudo data with respect to all teacher data and pseudo data discriminated by the discrimination model 130. When the pseudo data generated by the generation model 120 is discriminated as all teacher data by the discrimination model 130, the generation loss is 0. On the other hand, when the pseudo data generated by the generation model 120 is discriminated as all pseudo data by the discrimination model 130, the generation loss is 1.
[0022] The management unit 15 (management means) sets different learning rates for the discriminant model 130 and the generative model 120. The learning rate is a hyperparameter that indicates how much a weight, which is one of adjustable parameters, is changed at one time in optimizing machine learning. Note that a bias or a scaling coefficient may be used as an adjustable parameter. In machine learning, the weight is changed iteratively. The larger the value of the learning rate, the larger the magnitude of the weight that is changed at one time, so the learning speed increases. On the other hand, the smaller the value of the learning rate, the smaller the magnitude of the weight parameter that is changed at one time, so the learning speed decreases. The management unit 15 sets the original learning rate (first learning rate) for the discriminant model 130 regardless of the number of GPUs for each server used for distributed processing. On the other hand, the management unit 15 sets a learning rate (second learning rate) for the generative model 120 according to the number of GPUs for each server used for distributed processing. That is, the management unit 15 sets the second hyperparameter (second learning rate) according to the number of GPUs for each server used for distributed processing.
[0023] The management unit 15 uses the first learning rate η1 to calculate parameters of the discrimination model 130 based on the discrimination loss. For example, the first learning rate η1 is expressed by the following Equation 1.
[0024]
number
[0025] The management unit 15 uses the second learning rate η2 to calculate the parameters of the generative model 120 based on the generative loss. For example, the second learning rate η2 is expressed by the following Equation 2.
[0026]
number
[0027] As described above, the management unit 15 calculates the first learning rate η1 of the discriminant model 130 and the second learning rate η2 of the generative model 120. The hyperparameter may be something other than the learning rate. For example, the hyperparameter may be a moment, a decay rate, or a batch size. For example, the hyperparameter may be the number of layers of a neural network, or the number of neurons in each layer that constitutes the neural network. That is, the management unit 15 calculates the hyperparameter (first hyperparameter) of the discriminant model 130 and the hyperparameter (second hyperparameter) of the generative model 120.
[0028] Different learning rates may be set for the discriminant model 130 and the generative model 120. For example, the management unit 15 calculates the first learning rate η1 and the second learning rate η2 using the following Equations 3 and 4.
[0029]
number
number
[0030] In the example of the above formula 3, the management unit 15 calculates a hyperparameter (learning rate η d ) to the first hyperparameter (first learning rate η1). On the other hand, in the example of the above formula 4, the management unit 15 sets the value of the hyperparameter (learning rate η g ) and the number of GPUs M, set the second hyperparameter (second learning rate η2).
[0031] For example, in generating motion data, the second learning rate η2 is set to about four times the first learning rate η1. For example, when a single GPU (M=1) is used, the batch size is 32, η d is 0.0002, η g is 0.0008. When the same training is performed on 8 GPUs (M = 8), the batch size is 256, and η d is 0.0002 and ηg is 0.0064.
[0032] For example, the management unit 15 may calculate the second learning rate η2 using the following formula 5.
[0033]
number
[0034] In the example of Equation 5 above, the management unit 15 determines the hyperparameter (learning rate η g ) and the value output from a monotonically increasing function in response to the input of the number of GPUs M, is set as the second hyperparameter (second learning rate η2).
[0035] More generally, the first learning rate η1 and the second learning rate η2 are expressed using the following Equations 6 and 7.
[0036]
number
number
[0037] The learning processing unit 17 (learning processing means) updates the generation model 120 and the discrimination model 130 using the hyperparameters calculated by the management unit 15. The learning processing unit 17 updates parameters such as the weight and bias of the discrimination model 130 using the first learning rate η1 calculated for the discrimination model 130. That is, the learning processing unit 17 updates the parameters of the discrimination model 130 using the first hyperparameter. Also, the learning processing unit 17 updates parameters such as the weight and bias of the generation model 120 using the second learning rate η2 calculated for the generation model 120. That is, the learning processing unit 17 updates the parameters of the generation model 120 using the second hyperparameter. The learning processing unit 17 trains the discrimination model 130 and the generation model 120 whose parameters have been updated. The generation model 120 trained by the learning processing unit 17 is used for data augmentation. For example, the learning processing unit 17 calculates a derivative of the loss according to the calculated loss value. The learning processing unit 17 multiplies the calculated gradient by a learning rate to update the generative model 120 and the discriminant model 130. The learning processing unit 17 trains the generative model 120 and the discriminant model 130 so that the loss approaches an optimal solution.
[0038] (operation) Next, an example of the operation of the learning device 10 will be described with reference to the drawings. In the following, the learning process by the learning device 10 and the update process included in the learning process will be described separately. The update process will be described separately into a first update process for updating parameters of the discriminant model 130 and a second parameter update procedure for updating parameters of the generative model 120.
[0039] [Learning process] Fig. 2 is a flowchart for explaining an example of a learning process by the learning device 10. In the explanation following the flowchart in Fig. 2, the learning device 10 will be described as the subject of the operation.
[0040] 2, first, the learning device 10 acquires a dataset 110 (step S11). A plurality of data constituting the dataset 110 is teacher data actually measured on subjects. The dataset 110 may also include pseudo data generated separately.
[0041] Next, the learning device 10 divides a plurality of pieces of data constituting the acquired dataset 110 into mini-batches (step S12).
[0042] Next, the learning device 10 selects one mini-batch (step S13).
[0043] Next, the learning device 10 executes a first update process for the selected mini-batch (step S14). The first update process is a process for updating parameters of the discriminant model 130 based on a first learning rate. The first update process will be described later in detail (FIG. 3).
[0044] Next, the learning device 10 executes a second update process (step S15). The second update process is a process for updating the parameters of the generative model 120 based on a second learning rate. The second update process will be described later in detail (FIG. 4).
[0045] If the update of the generative model 120 and the discriminant model 130 is to be continued (Yes in step S16), the flow returns to step S14. The continuation of the update may be determined based on a predetermined criterion, or may be determined according to an input operation based on the decision of an administrator. For example, the update of the generative model 120 and the discriminant model 130 is repeated a preset number of epochs. For example, the number of epochs is set to 10,000 times. If the update of the generative model 120 and the discriminant model 130 is not to be continued (No in step S16), and there is a mini-batch to be processed (Yes in step S17), the flow returns to step S13. If there is no mini-batch to be processed (No in step S17), the processing according to the flowchart of FIG. 2 ends.
[0046] [First update process] Next, the first update process (step S14 in the flowchart in FIG. 2) will be described in detail with reference to the drawings. FIG. 3 is a flowchart for explaining the first update process. In the explanation following the flowchart in FIG. 3, the learning device 10 will be described as the subject of the operation.
[0047] In FIG. 3, first, the learning device 10 uses the discrimination model 130 to execute discrimination on the training data included in the mini-batch (step S141).
[0048] Next, the learning device 10 generates pseudo data using the generative model 120 (step S142). Steps S141 and S142 may be interchanged in order, or may be executed in parallel.
[0049] Next, the learning device 10 uses the discrimination model 130 to perform discrimination on the generated pseudo data (step S143).
[0050] Next, the learning device 10 calculates a discrimination loss according to the execution result of the discrimination model 130 (step S144).
[0051] Next, the learning device 10 updates the parameters of the discriminant model 130 based on the calculated discrimination loss and hyperparameters (step S145). For example, the learning device 10 updates the parameters of the discriminant model based on the discrimination loss and the first learning rate. After step S145, the flow proceeds to a second update process (step S15 in the flowchart of FIG. 2). Details of the second update process will be described later (FIG. 4).
[0052] [Second update process] Next, the second update process (step S15 in the flowchart in FIG. 2) will be described in detail with reference to the drawings. FIG. 4 is a flowchart for explaining the second update process. In the explanation following the flowchart in FIG. 4, the learning device 10 will be described as the subject of the operation.
[0053] In FIG. 4, first, the learning device 10 generates pseudo data using the generative model 120 (step S151).
[0054] Next, the learning device 10 uses the discrimination model 130 to perform discrimination on the generated pseudo data (step S152).
[0055] Next, the learning device 10 calculates a generation loss according to the execution result of the discriminant model 130 (step S153).
[0056] Next, the learning device 10 updates the parameters of the discriminant model based on the calculated generation loss and hyperparameters (step S145). For example, the learning device 10 updates the parameters of the generation model 120 based on the discrimination loss and the second learning rate. After step S154, the flow proceeds to step S16) of the flowchart in FIG. 2.
[0057] As described above, the learning device of the present embodiment includes a data acquisition unit, a generation unit, a discrimination unit, a management unit, and a learning processing unit. The data acquisition unit acquires a dataset including a plurality of teacher data. The data acquisition unit divides the plurality of teacher data into a plurality of subsets. The generation unit has a generative model. The generative model outputs pseudo data. The discrimination unit has a discrimination model. The discrimination model discriminates whether the input data is the teacher data or the pseudo data in response to the input of either the teacher data or the pseudo data. The discrimination unit calculates a discrimination loss indicating the degree of error in discrimination by the discrimination model. The discrimination unit calculates a generation loss indicating the degree to which the pseudo data generated by the generative model is identified as pseudo data by the discrimination model. The management unit sets a first hyperparameter used to update the discriminant model based on a preset hyperparameter. The management unit sets a second hyperparameter used to update the generative model in response to the number of GPUs for each server used for distributed processing. The learning processing unit updates the parameters of the discriminant model based on the discrimination loss and the first hyperparameter. The learning processing unit updates the parameters of the generative model based on the generation loss and the second hyperparameter.
[0058] The learning device of this embodiment updates the discriminant model and the generative model using different hyperparameters. The learning device of this embodiment sets a second hyperparameter according to the number of GPUs. The learning device of this embodiment does not change the first hyperparameter according to the number of GPUs. That is, the learning device of this embodiment adjusts the learning rate of the generative model without changing the learning rate of the discriminant model according to the scale of distributed learning. Therefore, according to this embodiment, even if the batch size exceeds the data set size, the generative model (estimation model) can be efficiently trained. That is, according to this embodiment, it is possible to speed up the few-shot learning of GAN in a large-scale distributed learning environment.
[0059] In a large-scale distributed learning environment, the linear scaling rule that increases the learning rate according to the size of the batch size, that is, the batch size is sufficiently smaller than the size of the entire data set, is not satisfied. Therefore, in a large-scale distributed learning environment, it is difficult to speed up training even if the method of Non-Patent Document 1 (P. Goyal. et al., “Accurate, Large Minibatch SGD: Training ImageNet in 1 Hour,” arXiv:1706.02677, 2018.) is used. In contrast, in the method of this embodiment, the second learning rate of the generative model is changed according to the size of the batch size without changing the first learning rate of the discriminant model. Therefore, according to this embodiment, it is possible to achieve both the scale merit of distributed learning and the speed-up of training.
[0060] The method of this embodiment can be applied to other machine learning methods, not limited to GAN. According to this embodiment, the model can be trained efficiently by adjusting the hyperparameters according to the scale of distributed learning. In particular, in this embodiment, the learning rate is changed in proportion to the number of GPUs, thereby making the model training more efficient.
[0061] In one aspect of the present embodiment, the management unit sets the value of a preset hyperparameter to the first hyperparameter. The management unit sets the product of the preset hyperparameter and the number of GPUs to the second hyperparameter. According to this aspect, by setting the product of the preset hyperparameter and the number of GPUs to the second hyperparameter, it is possible to speed up the few-shot learning of GAN even in a large-scale distributed learning environment.
[0062] In one aspect of the present embodiment, the management unit sets the value of a hyperparameter preset for the discriminant model to the first hyperparameter. The management unit sets the product of a hyperparameter preset for the generative model and the number of GPUs to the second hyperparameter. In this aspect, the product of a preset hyperparameter and a value output from a monotonically increasing function according to an input of the number of GPUs is set to the second hyperparameter. That is, according to this aspect, by adjusting the second hyperparameter by nonlinear scaling, it is possible to speed up the few-shot learning of GAN even in a large-scale distributed learning environment.
[0063] In one aspect of the present embodiment, the hyperparameter is a learning rate. The second learning rate corresponding to the second hyperparameter is greater than the first learning rate corresponding to the first hyperparameter. According to this aspect, the learning rate can be used to speed up the few-shot learning of GAN even in a large-scale distributed learning environment.
[0064] Second embodiment Next, a data augmentation system according to a second embodiment will be described with reference to the drawings. The data augmentation system of this embodiment augments actually measured target data using a model (generative model) learned by the learning device of the first embodiment. In this embodiment, an example is given in which time-series data (time-series skeletal data) of the target data measured according to the target motion of the subject is augmented. For example, the target motion includes specific motions such as stretching, jumping, walking, running, and stretching. There is no particular limitation on the type of target motion as long as it can be reconstructed using the source motion data described later. The data augmentation system of this embodiment augments actually measured target data according to the target motions performed by a small number of subjects, such as about 10 people.
[0065] (composition) 5 is a block diagram showing an example of the configuration of the data expansion system 20 according to this embodiment. The data expansion system 20 includes a skeleton data acquisition unit 21, a physique data separation unit 22, a timing data separation unit 23, a physique data expansion unit 25, a timing data expansion unit 26, a movement data expansion unit 27, an integration unit 28, and an output unit 29. The physique data separation unit 22 and the timing data separation unit 23 constitute an information separation device 220. The physique data expansion unit 25, the timing data expansion unit 26, the movement data expansion unit 27, and the integration unit 28 constitute an expansion device 250.
[0066] The skeletal data acquisition unit 21 (skeletal data acquisition means) acquires time-series skeletal data 200 to be expanded. The time-series skeletal data 200 includes time-series data of skeletal data extracted from video data actually measured on a subject (person) performing a target movement. The skeletal data includes three-dimensional positions of the subject's joints measured by motion capture or the like. The time-series skeletal data includes time-series data of skeletal data corresponding to the subject's movement. The time-series skeletal data 200 also includes physique data of the subject. The physique data is information on the physique of the subject. The physique data relates to attribute elements of the subject. For example, the physique data includes information on the length of the subject's parts such as the arms, legs, torso, and shoulder width.
[0067] FIG. 6 is a conceptual diagram for explaining a target motion related to the time-series skeleton data 200. FIG. 6 is a diagram showing the movement of a person performing the target motion. In FIG. 6, a frame F constituting a moving image is shown. n-1 , Frame F n , and frame F n+-1 (n is a natural number). n-1 , Frame F n , Frame F n+1are consecutive frames. In each frame, circles indicating the positions of representative parts of a person are connected by connecting lines. For example, joints such as shoulders, elbows, wrists, neck, chest, waist, thighs, knees, and ankles are selected as representative parts of a person. For example, extremities such as the head, fingertips, and toes are selected as representative parts of a person. Parts between joints and extremities may be selected as representative parts of a person. In the following, the positions of representative parts of a person are referred to as joints.
[0068] FIG. 7 is a conceptual diagram for explaining the skeleton data included in the time-series skeleton data 200. In this embodiment, the joint J m The three-dimensional joint angle (Euler angle θ m ) is used as target data. The time-series skeletal data 200 is a data set in which angles formed by two connection lines connected to each of a plurality of joints are compiled in a time series. There is no particular limitation on the format of data used as the time-series skeletal data 200 as long as it can be used to estimate the target motion.
[0069] The physique data separation unit 22 (physique data separation means) separates the physique data of the subject from the time-series skeleton data 200.
[0070] The timing data separation unit 23 (timing data separation means) acquires timing data from the remaining time-series skeletal data from which the physique data has been separated. The timing data includes information regarding the time of the motion performed by the subject. The timing data relates to the time element of the motion performed by the subject. For example, the timing data includes information regarding the walking cycle of the subject when walking, the timing when the subject jumps, etc.
[0071] The time-series skeletal data from which the timing data has been separated is set as movement data. The movement data relates to changes in posture during a movement performed by the subject. Each piece of skeletal data constituting the time-series skeletal data set as the movement data is also called posture data. The posture data is a spatial element of the movement performed by the subject. Three-dimensional joint angles (Euler angles) extracted from the skeletal data are set as the movement data. The movement data may be data indicating a movement other than three-dimensional joint angles (Euler angles).
[0072] The physique data expansion unit 25 (physique data expansion means) expands the physique data by changing the attribute elements of the subject. For example, the physique data expansion unit 25 expands the physique data by increasing the variation in the lengths of parts such as the arms, legs, torso, and shoulder width according to the attributes of the subject. The physique data expansion unit 25 outputs a data set of the expanded physique data (extended physique data set) to the integration unit 28.
[0073] For example, if the subject is a male, the physique data expansion unit 25 expands the physique data according to the average value and distribution of part lengths for men. For example, the physique data expansion unit 25 expands the physique data by changing the attributes of the subject and increasing the variation in part lengths. For example, if the subject is a male, the physique data expansion unit 25 expands the physique data according to the average value and distribution of part lengths for women. For example, if the subject is an adult, the physique data expansion unit 25 expands the physique data according to the average value and distribution of part lengths for children.
[0074] For example, the physique data expansion unit 25 may expand the physique data by changing the nationality of the subject and increasing the variation in the length of body parts. For example, if the nationality of the subject is Japanese, the physique data expansion unit 25 expands the physique data to match the average value and distribution of the lengths of body parts for people of American nationality.
[0075] The timing data extension unit 26 (timing data extension means) extends the timing data by changing the time element of the motion performed by the subject. For example, the timing data extension unit 26 extends the timing data by increasing the variation of the time element of the motion performed by the subject. The timing data extension unit 26 outputs a data set of the extended timing data (extended timing data set) to the integration unit 28.
[0076] For example, the timing data expansion unit 26 expands the timing data by varying the ratio of the swing phase and stance phase in the walking cycle detected from the walking of the subject. For example, the timing data expansion unit 26 expands the timing data by varying the intervals of walking events such as heel contact, heel lift, toe off, foot crossing, and tibia vertical detected from the walking of the subject. For example, the timing data expansion unit 26 expands the timing data according to the average value and variance of people with the same attributes as the subject. For example, the timing data expansion unit 26 expands the timing data according to the average value and variance of people with different attributes from the subject.
[0077] The motion data extension unit 27 (motion data extension means) extends the motion data. The motion data extension unit 27 extends the motion data by increasing the variation of the multiple posture data constituting the motion data. The motion data extension unit 27 outputs a data set of the extended motion data (extended motion data set) to the integration unit 28.
[0078] For example, the motion data expansion unit 27 expands the motion data using a model (generative model) learned by the learning device according to the first embodiment. In this case, the motion data expands the motion data related to three-dimensional joint angles (Euler angles). The motion data expansion unit 27 may expand the motion data using a model that is not a generative model.
[0079] The integration unit 28 (integration means) acquires an extended physique data set, an extended timing data set, and an extended movement data set. The integration unit 28 integrates data included in the acquired extended physique data set, the extended timing data set, and the extended movement data set to expand the time-series skeletal data. The integration unit 28 combines the extended physique data, the extended timing data, and the extended movement data to expand the skeletal data.
[0080] The output unit 29 (output means) outputs the extended time-series skeletal data 290. For example, the extended time-series skeletal data 290 is used for learning a model that predicts the subject's movement. There is no particular limitation on the use of the extended time-series skeletal data 290.
[0081] (operation) Next, an example of the operation of the data extension system 20 according to this embodiment will be described with reference to the drawings. The data extension process by the data extension system 20, and the information separation process and extension process included in the data extension process will be described below.
[0082] Fig. 8 is a flowchart for explaining an example of the operation (data extension process) of the data extension system 20. In the explanation following the flowchart of Fig. 8, the data extension system 20 will be described as the subject of the operation.
[0083] In FIG. 8, first, the data augmentation system 20 acquires time-series skeletal data measured on a subject who performed a target motion (step S21).
[0084] Next, the data augmentation system 20 executes an information separation process to separate the time-series skeletal data into physique data, timing data, and movement data (step S22).
[0085] Next, the data augmentation system 20 executes an augmentation process to augment each of the physique data, the timing data, and the movement data (step S23).
[0086] Next, the data augmentation system 20 outputs the augmented time-series skeletal data (step S24). The augmented time-series skeletal data is used for various purposes. For example, the augmented time-series skeletal data is used for learning a model that predicts the subject's movement.
[0087] [Information separation processing] Fig. 9 is a flowchart for explaining an example of the information separation process (step S22 in Fig. 8) included in the data extension process by the data extension system 20. In the explanation along with the flowchart in Fig. 9, the information separation device 220 included in the data extension system 20 will be described as the subject of operation.
[0088] 9, first, the information separating device 220 separates physique data from the acquired time-series skeleton data (step S221). The separated physique data is used for data expansion by the expanding device 250 included in the data expansion system 20.
[0089] Next, the information separating device 220 separates timing data from the time-series skeleton data from which the physique data has been separated (step S222). The separated timing data is used for data expansion by the expanding device 250 included in the data expansion system 20.
[0090] Next, the information separating device 220 sets the time-series skeleton data from which the timing data has been separated as the motion data (step S223). After step S223, the process proceeds to the extension process of step S23 in Fig. 8. The set motion data is used for data extension by the extension device 250 included in the data extension system 20.
[0091] [Data expansion processing] Fig. 10 is a flowchart for explaining an example of the extension process (step S23 in Fig. 8) included in the data extension process by the data extension system 20. In the explanation along with the flowchart in Fig. 10, the extension device 250 included in the data extension system 20 will be described as the subject of operation.
[0092] 10, first, the extension device 250 extends the physique data (step S231). The extended physique data constitutes an extended physique data set.
[0093] Next, the extension device 250 extends the timing data (step S232). The extended timing data constitutes an extended timing data set.
[0094] Next, the extension device 250 extends the action data (step S233). The extended action data constitutes an extended action data set.
[0095] Next, the extension device 250 integrates the data included in the extended physique data set, the extended timing data set, and the motion data, and extends the time-series skeletal data (step S234). After step S234, the process proceeds to step S24 in FIG.
[0096] As described above, the data augmentation system of this embodiment uses the generative model learned by the first learning device to augment the motion data (time-series skeletal data). The data augmentation system of this embodiment includes an information separation device and an expansion device. The information separation device acquires time-series skeletal data measured according to a motion of a person. The information separation device separates physique data, timing data, and motion data from the time-series skeletal data. The physique data is data related to attribute elements of a person. The timing data is data related to time elements of a motion performed by a person. The motion data is data related to changes in posture during a motion performed by a person. The expansion device expands each of the physique data, timing data, and motion data. The expansion device expands the time-series skeletal data by integrating the expanded physique data, timing data, and motion data. The expansion device expands the motion data by using the generative model. Data augmentation system. The expansion device outputs the expanded time-series skeletal data.
[0097] The data augmentation system of this embodiment individually expands the physique data, timing data, and motion data. The data augmentation system of this embodiment combines and integrates the individually expanded physique data, timing data, and motion data to expand the time-series skeletal data. The data augmentation system of this embodiment can provide time-series skeletal data with a rich variety in terms of the attributes of a person, the time elements of the motions performed by the person, and changes in posture during the motions performed by the person. Therefore, according to this embodiment, it is possible to expand time-series skeletal data that can be applied to learning various human motions using a small amount of motion data.
[0098] In one aspect of the present embodiment, the information separation device has a physique data separation unit and a timing data separation unit. The physique data separation unit separates physique data from the time-series skeletal data. The timing data separation unit separates timing data from the time-series skeletal data from which the physique data has been separated. The time-series skeletal data from which the physique data and the timing data have been separated is motion data. The expansion device has a physique data expansion unit, a timing data expansion unit, a motion data expansion unit, and an integration unit. The physique data expansion unit changes the attribute element to expand the physique data. The timing data expansion unit changes the time element to expand the timing data. The motion data expansion unit expands the motion data by generating pseudo motion data output from the estimation model in response to the input of the motion data. The integration unit integrates the expanded physique data, timing data, and motion data to expand the time-series skeletal data. In this aspect, the attribute element is changed to increase the variation of the physique data, and the time element is changed to increase the timing data. In addition, in this aspect, the pseudo motion data is generated using an estimation model trained with a small amount of motion data. According to this aspect, it is possible to expand time-series skeletal data that can be applied to learning the movements of various people using a small amount of movement data.
[0099] (Third embodiment) Next, an estimation device according to a third embodiment will be described with reference to the drawings. The estimation device according to this embodiment uses an estimation model trained using time-series skeletal data extended by the data extension system according to the second embodiment. The estimation device according to the embodiment generates motion data (estimated data) based on actually measured motion data using the estimation model. The estimation device according to this embodiment may be configured to use an estimation model trained using motion data extended by the data extension system according to the second embodiment. In this embodiment, an example is given in which time-series skeletal data (actual data) actually measured according to a target motion of a subject is used to estimate time-series skeletal data (estimated data) related to the motion of the subject.
[0100] (composition) 11 is a block diagram showing an example of a configuration of the estimation device 30. The estimation device 30 includes an acquisition unit 31, an estimation unit 33, and an output unit .
[0101] The acquiring unit 31 (acquiring means) acquires time-series skeletal data 310. The time-series skeletal data 310 is data to be extended. For example, the time-series skeletal data 310 is time-series skeletal data based on actual data measured regarding the motion of a subject. The skeletal data includes three-dimensional positions of the subject's joints measured by motion capture or the like.
[0102] The estimation unit 33 (estimation means) includes an estimation model 330. The estimation model 330 is a model trained using time-series skeletal data extended by the data extension system of the second embodiment. The estimation model 330 outputs time-series skeletal data 350 (extended data) in response to input of time-series skeletal data 310 (extension target data). The estimation unit 33 inputs the time-series skeletal data 310 to the estimation model 330, and estimates the subject's movement in response to the time-series skeletal data 350 output from the estimation model 330.
[0103] The output unit 35 (output means) outputs the time-series skeletal data 350 estimated using the estimation model 330. The output destination and use of the time-series skeletal data 350 are not particularly limited. For example, the time-series skeletal data 350 is displayed on a screen that can be visually recognized by the subject. For example, the time-series skeletal data 350 is output to a terminal device used by a trainer who manages the exercise state of the subject, a care manager who manages the health state of the subject, or the like.
[0104] FIG. 12 is an example in which time-series skeletal data 350 estimated by the estimation device 30 is displayed on a screen 300 of a terminal device. On the screen 300, the time-series skeletal data 350 is displayed following the time-series skeletal data 310 measured regarding the walking of the subject. In the example of FIG. 12, an image in which a part of the skeleton is fleshed out is displayed. For example, software may be used to flesh out the skeleton or to have clothes or footwear fitted. According to this embodiment, even if the subject does not actually continue walking, the future walking state of the subject can be estimated according to the walking state actually measured regarding the subject.
[0105] As described above, the estimation device of this embodiment estimates the movement of a person using an estimation model trained using time-series skeletal data extended by the data extension system of the second embodiment. The estimation device of this embodiment includes an acquisition unit, an estimation unit, and an output unit. The acquisition unit acquires actual data (time-series skeletal data) measured according to the movement of a person. The estimation unit estimates the movement of the person using estimated data (time-series skeletal data) output from the estimation model in response to input of the actual data. The output unit outputs the estimated estimated data (time-series skeletal data).
[0106] The estimation device of this embodiment uses an estimation model trained using time-series skeletal data expanded by the data expansion system of the second embodiment. The estimation model is a model trained to estimate the movements of various people using a small amount of time-series skeletal data. Therefore, the estimation device of this embodiment can simulate the movements of various people.
[0107] In this embodiment, an example is given in which time-series skeletal data (estimated data) of a subject is estimated using time-series skeletal data (actual data) actually measured according to a target motion of the subject. Information estimated by the estimation device of this embodiment is not limited to time-series skeletal data. One example is motion recognition that recognizes what motion the subject is performing. For example, by using time-series skeletal data expanded by the data expansion system of the third embodiment, an estimation model can be learned using a small amount of time-series skeletal data related to three motions of grabbing, carrying, and placing an object. The estimation device of this embodiment can recognize the motions of grabbing, carrying, and placing an object by using the estimation model. For example, the recognition result can be used for work visualization in logistics.
[0108] (Fourth embodiment) Next, a learning device according to a fourth embodiment will be described with reference to the drawings. The learning device of this embodiment has a simplified configuration of the learning device of the first embodiment.
[0109] 13 is a block diagram showing an example of the configuration of a learning device 40 according to this embodiment. The learning device 40 includes a data acquisition unit 41, a generation unit 42, a discrimination unit 43, a management unit 45, and a learning processing unit 47.
[0110] The data acquisition unit 41 acquires a data set 410 including a plurality of teacher data. The data acquisition unit 41 divides the plurality of teacher data into a plurality of subsets. The generation unit 42 has a generation model 420. The generation model 420 outputs pseudo data. The discrimination unit 43 has a discrimination model 430. The discrimination model 430 discriminates whether the input data is teacher data or pseudo data in response to the input of either teacher data or pseudo data. The management unit 45 sets a first hyperparameter used to update the discrimination model based on a preset hyperparameter. The management unit 45 sets a second hyperparameter used to update the generation model 420 in response to the number of GPUs for each server used for distributed processing. The learning processing unit 47 updates the discrimination model using the first hyperparameter, and updates the generation model 420 using the second hyperparameter.
[0111] The learning device of this embodiment updates the discriminant model and the generative model using different hyperparameters. The learning device of this embodiment sets a second hyperparameter according to the number of GPUs per server used for distributed processing. The learning device of this embodiment does not change the first hyperparameter according to the number of GPUs. That is, the learning device of this embodiment adjusts the learning rate of the generative model without changing the learning rate of the discriminant model according to the scale of distributed learning. Therefore, according to this embodiment, even if the batch size exceeds the data set size, the generative model (estimation model) can be efficiently trained. That is, according to this embodiment, it is possible to speed up few-shot learning of GAN in a large-scale distributed learning environment.
[0112] (Hardware) Next, a hardware configuration for executing control and processing according to each embodiment of the present disclosure will be described with reference to the drawings. Here, an information processing device 90 (computer) in FIG. 14 is given as an example of such a hardware configuration. The information processing device 90 in FIG. 14 is an example of a configuration for executing control and processing according to each embodiment, and does not limit the scope of the present disclosure.
[0113] As shown in Fig. 14, an information processing device 90 includes a processor 91, a main storage device 92, an auxiliary storage device 93, an input / output interface 95, and a communication interface 96. In Fig. 14, the interface is abbreviated as I / F (Interface). The processor 91, the main storage device 92, the auxiliary storage device 93, the input / output interface 95, and the communication interface 96 are connected to each other via a bus 98 so as to be able to communicate data with each other. In addition, the processor 91, the main storage device 92, the auxiliary storage device 93, and the input / output interface 95 are connected to a network such as the Internet or an intranet via the communication interface 96.
[0114] The processor 91 loads a program (instructions) stored in the auxiliary storage device 93 or the like into the main storage device 92. For example, the program is a software program for executing the control and processing of each embodiment. The processor 91 executes the program loaded into the main storage device 92. The processor 91 executes the program to execute the control and processing of each embodiment.
[0115] The main memory device 92 has an area in which a program is loaded. The processor 91 loads a program stored in the auxiliary memory device 93 or the like in the main memory device 92. The main memory device 92 is realized by a volatile memory such as a dynamic random access memory (DRAM). Furthermore, a non-volatile memory such as a magneto resistive random access memory (MRAM) may be configured / added to the main memory device 92.
[0116] The auxiliary storage device 93 stores various data such as programs. The auxiliary storage device 93 is realized by a local disk such as a hard disk or a flash memory. Note that it is also possible to configure the main storage device 92 to store various data and omit the auxiliary storage device 93.
[0117] The input / output interface 95 is an interface for connecting the information processing device 90 to peripheral devices based on standards and specifications. The communication interface 96 is an interface for connecting to an external system or device through a network such as the Internet or an intranet based on standards and specifications. The input / output interface 95 and the communication interface 96 may be a common interface for connecting to an external device.
[0118] Input devices such as a keyboard, a mouse, and a touch panel may be connected to the information processing device 90 as necessary. These input devices are used to input information and settings. When a touch panel is used as the input device, a screen having the function of the touch panel becomes the interface. The processor 91 and the input devices are connected via an input / output interface 95.
[0119] The information processing device 90 may be equipped with a display device for displaying information. When the display device is equipped, the information processing device 90 is equipped with a display control device (not shown) for controlling the display of the display device. The information processing device 90 and the display device are connected via an input / output interface 95.
[0120] The information processing device 90 may be provided with a drive device. The drive device mediates between the processor 91 and a recording medium (program recording medium) in reading data and programs stored in the recording medium and writing the processing results of the information processing device 90 to the recording medium. The information processing device 90 and the drive device are connected via an input / output interface 95.
[0121] The above is an example of a hardware configuration for enabling the control and processing according to each embodiment of the present disclosure. The hardware configuration in FIG. 14 is an example of a hardware configuration for executing the control and processing according to each embodiment, and does not limit the scope of the present disclosure. A program for causing a computer to execute the control and processing according to each embodiment is also included in the scope of the present disclosure.
[0122] A program recording medium on which the program according to each embodiment is recorded is also included in the scope of the present disclosure. The recording medium can be realized by an optical recording medium such as a CD (Compact Disc) or a DVD (Digital Versatile Disc). The recording medium may be realized by a semiconductor recording medium such as a USB (Universal Serial Bus) memory or an SD (Secure Digital) card. The recording medium may also be realized by a magnetic recording medium such as a flexible disk or other recording medium. When the program executed by the processor is recorded on a recording medium, the recording medium corresponds to a program recording medium.
[0123] The components of each embodiment may be combined in any manner. The components of each embodiment may be realized by software. The components of each embodiment may be realized by a circuit.
[0124] Although the present invention has been described above with reference to the embodiments, the present invention is not limited to the above-mentioned embodiments. Various modifications that can be understood by those skilled in the art can be made to the configuration and details of the present invention within the scope of the present invention. [Explanation of symbols]
[0125] 10 Learning Device 11 Data Acquisition Section 12 Generation part 13 Discrimination part 15 Management Department 17 Learning processing section 20 Data Expansion System 21 Skeleton data acquisition unit 22 Physical Data Separation Unit 23 Timing data separation section 25 Physical Data Extension 26 Timing Data Extension 27 Operational Data Extension 28 Integration Department 29 Output section 220 Information separation device 250 Expansion Unit
Claims
1. A data acquisition means for acquiring a data set including a plurality of training data and dividing the plurality of training data into a plurality of subsets; A generating means having a generative model that outputs pseudo data; a discrimination means having a discrimination model for discriminating whether the input data is the teacher data or the pseudo data in response to an input of the teacher data or the pseudo data; A management means for setting a first hyperparameter used to update the discriminant model based on a preset hyperparameter, and for setting a second hyperparameter used to update the generative model according to the number of GPUs (Graphics Processing Units) for each server used for distributed processing; A learning device comprising: a learning processing means for updating the discriminant model using the first hyperparameter and updating the generative model using the second hyperparameter.
2. The discrimination means is Calculate a discrimination loss indicating the degree of discrimination error by the discriminant model; Calculate a generation loss indicating the degree to which the pseudo data generated by the generative model is identified as the pseudo data by the discriminant model; The learning processing means updating parameters of the discriminant model based on the discriminant loss and the first hyperparameter; The learning device according to claim 1 , wherein the parameters of the generative model are updated based on the generative loss and the second hyperparameter.
3. The management means includes: Setting a preset value of the hyperparameter to the first hyperparameter; The learning device according to claim 2 , wherein the second hyperparameter is set to a product of the preset hyperparameter and the number of GPUs.
4. The management means includes: A value of the hyperparameter preset for the discriminant model is set as the first hyperparameter; The learning device according to claim 2 , wherein the second hyperparameter is set to a product of the hyperparameter preset for the generative model and the number of GPUs.
5. The management means includes: The learning device according to claim 2 , wherein the second hyperparameter is set to a product of the preset hyperparameter and a value output from a monotonically increasing function in response to an input of the number of GPUs.
6. The hyperparameter is a learning rate, The learning device according to claim 1 , wherein a second learning rate corresponding to the second hyperparameter is greater than a first learning rate corresponding to the first hyperparameter.
7. A data augmentation system for augmenting motion data using a generative model trained by the learning device according to any one of claims 1 to 6, comprising: an information separation device that acquires time-series skeletal data measured according to a person's movement, and separates, from the time-series skeletal data, physique data related to attribute elements of the person, timing data related to time elements of the movement performed by the person, and movement data related to changes in posture during the movement performed by the person; an expansion device that uses the generative model to expand each of the physique data, the timing data, and the movement data, expands the time-series skeletal data by integrating the expanded physique data, the timing data, and the movement data, and outputs the expanded time-series skeletal data.
8. An estimation device that estimates a human movement by using an estimation model trained using time-series skeletal data expanded by the data augmentation system according to claim 7, An acquisition means for acquiring actual data measured in response to the person's movements; an estimation means for estimating, as a movement of the person, estimated data output from the estimation model in response to an input of the actual data; and an output means for outputting the estimated data.
9. The computer Obtain a dataset containing multiple training data, Dividing the plurality of training data into a plurality of subsets; generating pseudo data using a generative model that outputs the pseudo data; in response to an input of either the teacher data or the pseudo data, determining whether the input data is the teacher data or the pseudo data using a discrimination model that determines whether the input data is the teacher data or the pseudo data; setting a first hyperparameter used to update the discriminant model based on a preset hyperparameter; setting a second hyperparameter used to update the generative model based on the hyperparameter set in advance according to the number of GPUs (Graphics Processing Units) per server used for distributed processing; updating the discriminant model using the first hyperparameter; A learning method for updating the generative model using the second hyperparameter.
10. A process of obtaining a dataset including a plurality of training data; A process of dividing the plurality of training data into a plurality of subsets; A process of generating pseudo data using a generative model that outputs the pseudo data; a process of determining whether the input data is the teacher data or the pseudo data by using a discrimination model that determines whether the input data is the teacher data or the pseudo data in response to an input of either the teacher data or the pseudo data; A process of setting a first hyperparameter used to update the discriminant model based on a preset hyperparameter; A process of setting a second hyperparameter used to update the generative model based on the hyperparameter set in advance according to the number of GPUs (Graphics Processing Units) per server used for distributed processing; A process of updating the discriminant model using the first hyperparameter; A process of updating the generative model using the second hyperparameter.
