Learning device, estimation device, learning model data generation method, estimation method, and program
By masking athlete and background areas in video frames, the system generates learning model data that focuses on athlete movements, enhancing scoring accuracy and generalizing to various backgrounds, addressing the limitations of existing technologies.
Patent Information
- Application Number
- JP2023522073
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-05-19
- Publication Date
- 2024-10-24
- Estimated Expiration
- 2041-05-19
AI Technical Summary
Existing scoring technologies in sports competitions, such as those using AQA, struggle with accuracy when video data includes unknown backgrounds and are sensitive to joint information, leading to decreased performance.
Generate learning model data by masking athlete and background areas in video frames, allowing the system to focus on athlete movements without explicit joint information, using DNNs to improve scoring accuracy.
Enhances scoring accuracy by generalizing to athlete movements, irrespective of background complexity, thus improving the reliability of competition scoring systems.
Smart Images

Figure 0007572654000001 
Figure 0007572654000002 
Figure 0007572654000003
Abstract
Description
[Technical field]
[0001] The present invention relates to, for example, a learning device that learns know-how regarding methods for scoring an athlete's competition, a learning model data generation method and a program corresponding to the learning device, as well as an estimation device that estimates a competition score based on the learning results, and the estimation method and program corresponding to the estimation device. [Background technology]
[0002] In sports competitions, such as high diving, figure skating, and gymnastics, official judges give scores to athletes and determine the ranking of each event based on the scores. In such competitions, quantitative scoring standards exist.
[0003] In recent years, research has been conducted into techniques used in the field of computer vision for activity quality assessment, such as automatically estimating scores in such competitions, and one such technique is known as Action Quality Assessment (AQA).
[0004] For example, the technology described in Non-Patent Document 1 proposes a method in which video data recording a series of movements performed by an athlete is used as input data, and features are extracted from the video data using deep learning to estimate the score.
[0005] 8 is a block diagram showing a schematic configuration of a learning device 100 and an estimation device 200 in the technology described in Non-Patent Document 1. The learning unit 101 of the learning device 100 stores, as learning data, video data recording a series of movements performed by an athlete and a true score t score The learning unit 101 includes a deep neural network (DNN), and applies coefficients such as weights and biases stored in a learning model data storage unit 102, that is, learning model data, to the DNN.
[0006] The learning unit 101 obtains an estimated score y score and the true score t corresponding to the video data score Using the loss L SR The learning unit 101 calculates the calculated loss L SR The learning unit 101 calculates new coefficients to be applied to the DNN by the backpropagation method so as to reduce the coefficients. The learning unit 101 updates the coefficients by writing the calculated new coefficients to the learning model data storage unit 102.
[0007] By repeating the process of updating these coefficients, the coefficients gradually converge, and the finally converged coefficients are stored in the learning model data storage unit 102 as learned learning model data. SR To calculate L SR = L1 distance (y score ,t score )+L2 distance(y score ,t score ) loss function is used.
[0008] The estimation device 200 includes an estimation unit 201 having a DNN with the same configuration as the learning unit 101, and a learning model data storage unit 202 that stores in advance the learned learning model data stored in the learning model data storage unit 102 of the learning device 100. The learned learning model data stored in the learning model data storage unit 202 is applied to the DNN of the estimation unit 201. The estimation unit 201 provides the DNN with video data that records a series of movements performed by an arbitrary athlete as input data, and outputs an estimated score y score is obtained. [Prior art documents] [Non-patent literature]
[0009] [Non-Patent Document 1] Paritosh Parmar and Brendan Tran Morris, “Learning To Score Olympic Events”, In CVPR Workshop. 2017 Summary of the Invention [Problem to be solved by the invention]
[0010] The following experiment was conducted on the technology described in Non-Patent Document 1. Video data (hereinafter referred to as "original video data") recording a series of movements performed by an athlete shown in Fig. 9(a) and video data (hereinafter referred to as "athlete mask video data") in which the areas in which the athlete is displayed in each of a number of image frames included in the original video data shown in Fig. 9(b) are surrounded by rectangular areas 301, 302, and 303 and the rectangular areas are filled with the average color of the image frames are prepared. Note that the ranges of areas 301, 302, and 303 are shown with dotted line frames, but these dotted line frames are shown to clarify the range of the rectangular shapes and do not exist in the actual athlete mask video data.
[0011] As shown in FIG. 9(a), the estimation score y score The accuracy of the estimation score y score The accuracy of was 0.8563. From this experiment result, it can be seen that when athlete masked video data is provided to the estimation unit 201, the score is estimated with high accuracy even though the athlete's movements are not visible, and the accuracy of the score estimation is hardly reduced compared to the case of raw video data in which the athlete's movements are visible.
[0012] In the technology described in Non-Patent Document 1, only video data is provided as learning data without explicitly providing features related to the athlete's movements, such as joint coordinates. Therefore, based on the above experimental results, it is speculated that the technology described in Non-Patent Document 1 extracts features in the video that are unrelated to the athlete's movements, such as background features of the venue, and the learning model does not generalize to the athlete's movements. Since background features such as the venue are extracted, it is also speculated that the accuracy of the technology described in Non-Patent Document 1 may deteriorate when using video data that includes an unknown background.
[0013] Although there are methods that explicitly provide joint information such as human joint coordinates, it is difficult to estimate the movements of joints due to their complex nature, and inaccurate joint information can actually have a negative effect on accuracy. For this reason, there are circumstances in which methods that explicitly provide joint information are preferred.
[0014] In consideration of the above circumstances, the present invention aims to provide a technology that makes it possible to generate learning model data that generalizes to an athlete's movements from video data that records the athlete's movements, without explicitly providing joint information, thereby improving the accuracy of scoring in competitions. [Means for solving the problem]
[0015] One aspect of the present invention is a learning device that takes as input original video data in which a background and an athlete's movements are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which areas other than the area surrounding the athlete are masked in each of a plurality of image frames included in the original video data, and has a learning unit that generates learning model data in a learning model in which, when the original video data is input, it outputs a true-value competition score that is an evaluation value of the athlete's competition, when the athlete mask video data is input, it outputs an arbitrarily determined true-value background score, and when the background mask video data is input, it outputs an arbitrarily determined true-value athlete score.
[0016] One aspect of the present invention is an estimation device comprising an input unit that takes in video data of an object to be evaluated in which an athlete's movements are recorded, original video data in which a background and the athlete's movements are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which areas other than the area surrounding the athlete are masked in each of a plurality of image frames included in the original video data, a trained learning model that outputs a true-value competition score that is an evaluation value for the athlete's competition when the original video data is input, outputs an arbitrarily determined true-value background score when the athlete mask video data is input, and outputs an arbitrarily determined true-value athlete score when the background mask video data is input, and an estimation unit that estimates an estimated competition score for the video data of the object to be evaluated based on the video data taken in by the input unit.
[0017] One aspect of the present invention is a learning model data generation method that takes as input original video data in which a background and an athlete's movements are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames contained in the original video data, and background mask video data in which areas other than the area surrounding the athlete are masked in each of a plurality of image frames contained in the original video data, and generates learning model data in a learning model in which, when the original video data is input, a true-value competition score, which is an evaluation value of the athlete's competition, is output, when the athlete mask video data is input, an arbitrarily determined true-value background score is output, and when the background mask video data is input, an arbitrarily determined true-value athlete score is output.
[0018] One aspect of the present invention is an estimation method which takes in video data of an object to be evaluated in which an athlete's movements are recorded, and takes as input original video data in which a background and the athlete's movements are recorded, athlete mask video data in which an area surrounding the athlete in each of a plurality of image frames included in the original video data is masked, and background mask video data in which areas other than the area surrounding the athlete are masked in each of a plurality of image frames included in the original video data, and estimates an estimated competition score for the video data of the object to be evaluated based on the taken-in video data of the object to be evaluated and a trained learning model which outputs, when the original video data is input, a true competition score which is an evaluation value for the athlete's competition, when the athlete mask video data is input, an arbitrarily determined true background score, and when the background mask video data is input, an arbitrarily determined true athlete score.
[0019] One aspect of the present invention is a program for causing a computer to execute the learning device or the estimation device described above. Effect of the Invention
[0020] According to the present invention, it is possible to generate learning model data that generalizes to an athlete's movements from video data that records the athlete's movements, without explicitly providing joint information, thereby improving the accuracy of scoring in competitions. [Brief description of the drawings]
[0021] [Figure 1] 1 is a block diagram showing a configuration of a learning device according to an embodiment of the present invention; [Diagram 2] 3A and 3B are diagrams showing an example of an image frame included in original video data used in the present embodiment. [Diagram 3] 13A and 13B are diagrams showing an example of an image frame included in the athlete mask video data used in this embodiment. [Figure 4] 11A and 11B are diagrams showing an example of an image frame included in background mask video data used in the present embodiment. [Diagram 5] FIG. 2 is a diagram showing a processing flow by the learning device of the present embodiment. [Figure 6] 1 is a block diagram showing a configuration of an estimation device according to an embodiment of the present invention. [Figure 7] FIG. 2 is a diagram showing a flow of processing by the estimation device of the present embodiment. [Figure 8] FIG. 1 is a block diagram showing configurations of a learning device and an estimation device in the technology described in Non-Patent Document 1. [Figure 9] FIG. 1 is a diagram showing an outline of an experiment conducted on the technology described in Non-Patent Document 1 and the results thereof. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0022] (Learning device configuration) Hereinafter, an embodiment of the present invention will be described with reference to the drawings. Fig. 1 is a block diagram showing the configuration of a learning device 1 according to an embodiment of the present invention. The learning device 1 includes an input unit 11, a learning unit 12, and a learning model data storage unit 15.
[0023] The input unit 11 takes in original video data in which a series of actions performed by an athlete that are the subject of scoring evaluation are recorded together with the background. For example, if the athlete is a high diving swimmer, the original video data will record the actions of the athlete standing on a diving board, jumping, twisting and rotating, and so on, until the athlete completes entering the pool, together with the background. The image frames shown in Figures 2(a), (b), and (c) are examples of image frames arbitrarily selected in chronological order from multiple image frames included in some original video data.
[0024] The input unit 11 imports a true competition score, which is an evaluation value for the athlete's action recorded in the original video data. The true competition score is, for example, a score that is a result of grading performed by a judge on the athlete's action recorded in the original video data based on a quantitative grading standard adopted in the sport when the original video data is recorded. The input unit 11 associates the imported original video data with the true competition score corresponding to the original video data to create a training data set for the original video data.
[0025] The input unit 11 takes in athlete mask video data corresponding to the original video data. Here, the athlete mask video data is video data in which a rectangular area surrounding an athlete's area is masked in each of a plurality of image frames included in the original video data. The image frames shown in Figs. 3(a), (b), and (c) are image frames of the athlete mask video data corresponding to each of the image frames of the original video data shown in Figs. 2(a), (b), and (c), respectively. Note that in Figs. 3(a), (b), and (c), the ranges of the rectangular areas 41, 42, and 43 are shown by dotted frames, but these dotted frames are shown to clarify the ranges of the rectangular areas 41, 42, and 43, and do not exist in the actual athlete mask video data. In Figs. 3(a), (b), and (c), the state in which the rectangular areas 41, 42, and 43 are masked is shown by hatching, but in reality, each of the rectangular areas 41, 42, and 43 is masked by, for example, filling with the average color of the image frame including each of the rectangular areas 41, 42, and 43.
[0026] The input unit 11 takes in a true background score corresponding to the athlete mask video data. The true background score is an evaluation value for the athlete mask video data. The athlete mask video data is video data in which the athlete is completely invisible. Therefore, taking into consideration that the judge cannot give a score, a score for when no evaluation is given in the competition, for example, the lowest score in the competition, is determined as the true background score. For example, if the score for when no evaluation is given in the competition is "0", the value "0" is determined in advance as the true background score. The input unit 11 associates the taken-in athlete mask video data with the true background score corresponding to the athlete mask video data to create a training data set for the athlete mask video data.
[0027] The input unit 11 takes in background mask video data corresponding to the original video data. Here, the background mask video data is video data in which the areas other than the rectangular areas surrounding the areas of the athletes are masked in each of the multiple image frames included in the original video data. The image frames shown in Figs. 4(a), (b), and (c) are image frames of background mask video data corresponding to the image frames of the original video data shown in Figs. 2(a), (b), and (c), respectively. Note that in Figs. 4(a), (b), and (c), the ranges of the rectangular areas 41, 42, and 43 are shown by dotted frames, but these dotted frames are shown to clarify the ranges of the rectangular areas 41, 42, and 43, and do not exist in the actual background mask video data. In Figs. 4(a), (b), and (c), the state in which the areas other than the rectangular areas 41, 42, and 43 are masked is shown by hatching, but in reality, the areas other than the rectangular areas 41, 42, and 43 are masked by, for example, filling in the average color of the image frames including each of the rectangular areas 41, 42, and 43.
[0028] The input unit 11 takes in a true athlete score corresponding to the background mask video data. The true athlete score is an evaluation value for the background mask video data. The background mask video data is video data in which the athlete is visible. Therefore, for example, the true athlete score of the original video data corresponding to the background mask video data is determined in advance as the true athlete score corresponding to the background mask video data. The input unit 11 associates the taken-in background mask video data with the true athlete score taken in corresponding to the background mask video data to create a training data set for the background mask video data.
[0029] When the input unit 11 imports a training data set of multiple original image data, it imports a training data set of athlete mask image data and a training data set of background mask image data corresponding to each of the training data sets of the multiple original image data.
[0030] The ranges of the rectangular regions 41, 42, and 43 shown in Figures 3(a), (b), and (c) and Figures 4(a), (b), and (c) may be automatically detected from each of the image frames included in the video data, for example, using the technology shown in the reference document below, or the ranges of the rectangular regions 41, 42, and 43 may be manually determined while visually checking all of the image frames included in the video data.
[0031] [Reference: Kaiming He, Georgia Gkioxari, Piotr Dollar and Ross Girshick, “Mask R-CNN”, In ICCV, 2017]
[0032] When the technology shown in the above reference is adopted, for example, the input unit 11 may take in original video data, detect the range of a rectangular area from the taken in original video data, and generate athlete mask video data and background mask video data from the original video data based on the range of the detected rectangular area. In this case, it is determined that the true background score is to be, for example, the above-mentioned "0", and that the true athlete score is to be, for example. In this case, the input unit 11 can generate a training data set of the original video data, a training data set of the athlete mask video data, and a training data set of the background mask video data by taking in only the original video data and the true video score.
[0033] The true competition score, true background score, and true athlete score are not limited to the evaluation values described above, and may be determined arbitrarily. For example, the true competition score may be a score obtained by scoring the athlete's competition recorded in the original video data according to a standard other than the quantitative scoring standard adopted in the competition. A value other than the true competition score may be adopted as the true athlete score. The true background score and true athlete score may be changed during processing.
[0034] The learning unit 12 includes a learning processing unit 13 and a function approximator 14. For example, a DNN is applied as the function approximator 14. The DNN may have any network structure. The function approximator 14 is given coefficients stored in the learning model data storage unit 15 by the learning processing unit 13. Here, the coefficients are weights and biases applied to each of a plurality of neurons included in the DNN when the function approximator 14 is a DNN.
[0035] The learning processing unit 13 performs a learning process of updating the coefficients by providing the function approximator 14 with original video data included in the training data set of original video data, so that the estimated athletic score obtained as the output value of the function approximator 14 approaches the true athletic score corresponding to the original video data provided to the function approximator 14. The learning processing unit 13 performs a learning process of updating the coefficients by providing the function approximator 14 with athlete mask video data included in the training data set of athlete mask video data, so that the estimated background score obtained as the output value of the function approximator 14 approaches the true background score corresponding to the athlete mask video data provided to the function approximator 14. The learning processing unit 13 performs a learning process of updating the coefficients by providing the function approximator 14 with background mask video data included in the training data set of background mask video data, so that the estimated athlete score obtained as the output value of the function approximator 14 approaches the true athlete score corresponding to the background mask video data provided to the function approximator 14.
[0036] The learning model data storage unit 15 stores the coefficients to be applied to the function approximator 14, i.e., the learning model data. In the initial state, the learning model data storage unit 15 stores the initial values of the coefficients in advance. The coefficients stored in the learning model data storage unit 15 are rewritten with new coefficients by the learning processing unit 13 every time the learning processing unit 13 calculates new coefficients by the learning processing.
[0037] That is, the learning unit 12 receives the original video data, the athlete mask video data, and the background mask video data as inputs, and generates learning model data in a learning model that outputs a true athletic score when the original video data is input, outputs a true background score when the athlete mask video data is input, and outputs a true athlete score when the background mask video data is input, through the learning process performed by the learning processing unit 13. Here, the learning model refers to the coefficients stored in the learning model data storage unit 15, i.e., the function approximator 14 to which the learning model data is applied.
[0038] (Processing by learning device) Next, while referring to FIG. 5, the processing by the learning device 1 will be described. FIG. 5 is a flowchart showing the flow of processing by the learning device 1. A learning rule is predefined in the learning processing unit 13 included in the learning device 1. Hereinafter, the processing for each predefined learning rule will be described.
[0039] (Learning Rule (Part 1)) For example, assume that the following learning rule is predefined in the learning processing unit 13. That is, the number of each of the training data datasets of the original video data, the athlete mask video data, and the background mask video data is, for example, N, the mini-batch size is M, and as the processing for one epoch, a learning rule is predefined to use all of the training data datasets of the original video data, the athlete mask video data, and the background mask video data. In the learning rule, it is predefined that the processing is performed in the order of the training data dataset of the original video data, the training data dataset of the athlete mask video data, and the training data dataset of the background mask video data. Here, N and M are integers of 1 or more, and M < N can be any value. Hereinafter, as an example, the case where N is "300" and M is "10" will be described.
[0040] The input unit 11 of the learning device 1 captures 300 pieces of original video data and the true value competition scores corresponding to each of the 300 pieces of original video data, and associates the captured 300 pieces of original video data with the true value competition scores corresponding to each of the captured original video data to generate a training data dataset of 300 pieces of original video data.
[0041] The input unit 11 captures 300 pieces of athlete mask video data corresponding to each of the 300 pieces of original video data and the true value background scores corresponding to each of the athlete mask video data, and associates the captured 300 pieces of athlete mask video data with the true value background scores corresponding to each of the captured athlete mask video data to generate a training data dataset of 300 pieces of athlete mask video data.
[0042] The input unit 11 takes in 300 background mask image data corresponding to each of the 300 original image data and a true-value athlete score corresponding to each of the background mask image data, and generates a training data set of 300 background mask image data by associating the taken-in 300 background mask image data with the true-value athlete score corresponding to each of the taken-in background mask image data.
[0043] The input unit 11 outputs a training data set of 300 pieces each of the original video data, a training data set of the athlete mask video data, and a training data set of the background mask video data to the learning processing unit 13. The learning processing unit 13 takes in the training data set of 300 pieces each of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data output by the input unit 11. The learning processing unit 13 writes and stores the taken-in training data set of 300 pieces each of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data in an internal storage area.
[0044] The learning processing unit 13 provides an area in an internal storage area for storing the number of epochs, i.e., the value of the number of epochs, and initializes the number of epochs to "0." The learning processing unit 13 provides an area in an internal storage area for storing parameters of mini-batch learning, i.e., the number of processing times indicating the number of times each of the original video data, the athlete mask video data, and the background mask video data has been provided to the function approximator 14, and initializes the number of processing times for each of the original video data, the athlete mask video data, and the background mask video data to "0" (step Sa1).
[0045] The learning processing unit 13 selects a training data set to be selected according to the number of times each of the original video data, the athlete mask video data, and the background mask video data stored in the internal storage area has been processed and a learning rule that is determined in advance (step Sa2). Here, the number of times each of the original video data, the athlete mask video data, and the background mask video data has been processed is "0", and all of the 300 pieces of original video data, the athlete mask video data, and the background mask video data have not been used for processing. As described above, the learning rule predefines that the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data are processed in this order. Therefore, the learning processing unit 13 first selects the training data set of the original video data (step Sa2, original video data).
[0046] The learning processing unit 13 reads out the coefficients stored in the learning model data storage unit 15, and applies the read out coefficients to the function approximator 14 (step Sa3-1). The learning processing unit 13 reads out the training data set of the original video data, the number of which corresponds to the mini-batch size M defined in the learning rule, from the internal storage area, sequentially from the top, for the training data set of the original video data selected in the processing of step Sa2.
[0047] Here, since the mini-batch size M is "10", the learning processing unit 13 reads out a training data set of 10 pieces of original video data from an internal storage area. The learning processing unit 13 selects one piece of original video data from the training data set of the 10 pieces of original video data that has been read out, and provides it to the function approximator 14. The learning processing unit 13 imports an estimated competition score output by the function approximator 14 in response to the input of the original video data. The learning processing unit 13 writes and stores the imported estimated competition score in an internal storage area in association with a true competition score corresponding to the original video data provided to the function approximator 14. Every time the learning processing unit 13 provides original video data to the function approximator 14, it adds 1 to the number of times the original video data has been processed that is stored in the internal storage area (step Sa4-1).
[0048] The learning processing unit 13 repeatedly performs the processing of step Sa4-1 for each of the 10 original video data included in the training dataset of the 10 original video data (loop L1s to L1e), and generates combinations of 10 estimated competition scores and true competition scores in an internal memory area.
[0049] The learning processing unit 13 calculates a loss based on a predetermined loss function based on a combination of the 10 estimated competition scores and the true competition scores stored in an internal storage area. The learning processing unit 13 calculates new coefficients to be applied to the function approximator 14, for example, by backpropagation based on the calculated loss. The learning processing unit 13 rewrites the coefficients stored in the learning model data storage unit 15 to the calculated new coefficients to update them (step Sa5-1).
[0050] The learning processing unit 13 refers to the number of times each of the original video data, the athlete mask video data, and the background mask video data stored in the internal storage area is processed, and determines whether or not the processing for one epoch has been completed (step Sa6). As described above, the learning rule specifies that the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data are all used for the processing of one epoch. Therefore, the state in which the processing for one epoch has been completed is a state in which the number of times each of the original video data, the athlete mask video data, and the background mask video data has been processed is "300" or more. In this example, the number of times the original video data has been processed is "10," and the number of times each of the athlete mask video data and the background mask video data has been processed is "0." Therefore, the learning processing unit 13 determines that the processing for one epoch has not been completed (step Sa6, No), and proceeds to step Sa2.
[0051] If, in the re-performing process of step Sa2, the learning processing unit 13 determines that the number of times the original video data has been processed is not "300" or more, it again selects a training data set of the original video data in the process of step Sa2 (step Sa2, original video data) and performs the processes from step Sa3-1 onwards.
[0052] On the other hand, when the learning processing unit 13 performs the processing of step Sa2 again, if the number of times the original video data has been processed is "300" or more, it next selects a training data set of athlete mask video data according to the learning rules (step Sa2, athlete mask video data).
[0053] The learning processing unit 13 reads out the coefficients stored in the learning model data storage unit 15, and applies the read out coefficients to the function approximator 14 (step Sa3-2).
[0054] The learning processing unit 13 reads out the training data set of 10 athlete mask video data from the internal storage area in order from the top, with the training data set of the athlete mask video data selected in the processing of step Sa2 as the target. The learning processing unit 13 selects one athlete mask video data from the training data set of the 10 athlete mask video data read out and provides it to the function approximator 14. The learning processing unit 13 takes in the estimated background score output by the function approximator 14 in response to the athlete mask video data being provided. The learning processing unit 13 writes and stores the taken-in estimated background score in association with the true background score corresponding to the athlete mask video data provided to the function approximator 14 in the internal storage area. Every time the learning processing unit 13 provides the athlete mask video data to the function approximator 14, it adds 1 to the number of times the athlete mask video data has been processed, which is stored in the internal storage area (step Sa4-2).
[0055] The learning processing unit 13 repeatedly performs the processing of step Sa4-2 for each of the 10 athlete mask video data included in the training dataset of the 10 athlete mask video data (loop L2s to L2e), and generates 10 combinations of estimated background scores and true background scores in an internal memory area.
[0056] The learning processing unit 13 calculates a loss based on a predetermined loss function using a combination of the 10 estimated background scores and the true background scores stored in an internal storage area. The learning processing unit 13 calculates new coefficients to be applied to the function approximator 14, for example, by the backpropagation method, based on the calculated loss. The learning processing unit 13 rewrites the coefficients stored in the learning model data storage unit 15 to the calculated new coefficients to update them (step Sa5-2).
[0057] The learning processing unit 13 judges whether or not the processing for one epoch has been completed (step Sa6). If the number of times the athlete mask video data has been processed is not "300" or more, the learning processing unit 13 judges that the processing for one epoch has not been completed (step Sa6, No), and the process proceeds to step Sa2.
[0058] In the process of step Sa2 performed again, if the number of times the athlete mask video data has been processed is not "300" or more, the learning processing unit 13 again selects the training data set of the athlete mask video data (step Sa2, athlete mask video data). After that, the learning processing unit 13 performs the processes of step Sa3-2 and onwards.
[0059] On the other hand, when the learning processing unit 13 re-performs the processing of step Sa2, if the number of times the athlete mask image data has been processed is "300" or more, it next selects a training data set of background mask image data according to the learning rules (step Sa2, background mask image data).
[0060] The learning processing unit 13 reads out the coefficients stored in the learning model data storage unit 15. The learning processing unit 13 applies the read out coefficients to the function approximator 14 (step Sa3-3).
[0061] The learning processing unit 13 reads out 10 training data sets of background mask video data from the internal storage area in order from the top, with the training data set of the background mask video data selected in the processing of step Sa2 as the target. The learning processing unit 13 selects one piece of background mask video data from the training data set of the 10 background mask video data read out, and provides it to the function approximator 14. The learning processing unit 13 takes in the estimated athlete score output by the function approximator 14 by providing it with background mask video data. The learning processing unit 13 writes and stores the taken-in estimated athlete score and the true athlete score corresponding to the background mask video data provided to the function approximator 14 in association with each other in the internal storage area. Every time the learning processing unit 13 provides background mask video data to the function approximator 14, it adds 1 to the number of times the background mask video data has been processed, which is stored in the internal storage area (step Sa4-3).
[0062] The learning processing unit 13 repeatedly performs the processing of step Sa4-3 for each of the 10 background mask image data included in the training dataset of the 10 background mask image data (loop L3s to L3e), and generates combinations of 10 estimated athlete scores and true athlete scores in an internal memory area.
[0063] The learning processing unit 13 calculates a loss based on a predetermined loss function, based on a combination of the 10 estimated athlete scores and the true athlete scores stored in an internal storage area. The learning processing unit 13 calculates new coefficients to be applied to the function approximator 14, for example, by backpropagation based on the calculated loss. The learning processing unit 13 rewrites the coefficients stored in the learning model data storage unit 15 to the calculated new coefficients, and updates them (step Sa5-3).
[0064] The learning processing unit 13 determines whether or not the processing for one epoch has been completed (step Sa6). If the number of times the background mask image data has been processed is not "300" or more, the learning processing unit 13 determines that the processing for one epoch has not been completed (step Sa6, No). In this case, the learning processing unit 13 advances the process to step Sa2.
[0065] When the number of times the background mask image data has been processed is not "300" or more in the process of step Sa2 performed again, the learning processing unit 13 again selects a training data set of the background mask image data in the process of step Sa2 (step Sa2, background mask image data). After that, the learning processing unit 13 performs the processes of step Sa3-3 and thereafter.
[0066] On the other hand, in the process of step Sa6, the learning processing unit 13 determines that one epoch's worth of processing has been completed, that is, when the number of times each of the original video data, the athlete mask video data, and the background mask video data has been processed is "300" or more (step Sa6, Yes). The learning processing unit 13 adds 1 to the number of epochs stored in the internal storage area. The learning processing unit 13 initializes the mini-batch learning parameters stored in the internal storage area to "0" (step Sa7). That is, the learning processing unit 13 initializes the number of times each of the original video data, the athlete mask video data, and the background mask video data has been processed to "0".
[0067] The learning processing unit 13 determines whether the number of epochs stored in the internal storage area satisfies the termination condition (step Sa8). For example, if the number of epochs reaches a predetermined upper limit, the learning processing unit 13 determines that the termination condition is satisfied. On the other hand, for example, if the number of epochs does not reach the predetermined upper limit, the learning processing unit 13 determines that the termination condition is not satisfied.
[0068] When the learning processing unit 13 determines that the number of epochs satisfies the termination condition (step Sa8, Yes), it terminates the process. On the other hand, when the learning processing unit 13 determines that the number of epochs does not satisfy the termination condition (step Sa8, No), it advances the process to step Sa2. In the process of step Sa2, which is performed again after the process of step Sa8, the learning processing unit 13 again selects a training data set of original video data, a training data set of athlete mask video data, and a background mask video data set in this order according to the learning rules. Thereafter, the learning processing unit 13 performs the processes of steps Sa3-1 and onwards, steps Sa3-2 and onwards, and steps Sa3-3 and onwards for each of the selections.
[0069] As a result, when the learning processing unit 13 finishes the process, learned coefficients, i.e., learned learning model data, are generated in the learning model data storage unit 15. The learning process performed by the learning processing unit 13 refers to a process of updating the coefficients to be applied to the function approximator 14 by repeated processes shown in steps Sa2 to Sa8 in FIG.
[0070] In the processing of Figure 5 described above, when the learning processing unit 13 reads out the next 10 training data sets from the internal memory area in each of the processing of steps Sa4-1, Sa4-2, and Sa4-3 performed from the second time onwards, it reads out the 10 training data sets that follow the 10 training data sets selected in the previous processing of the same step.
[0071] In the processing of FIG. 5 described above, the loss function used by the learning processing unit 13 in the processing of steps Sa5-1, Sa5-2, and Sa5-3 may be, for example, a function for calculating the L1 distance, a function for calculating the L2 distance, or a function for calculating the sum of the L1 distance and the L2 distance.
[0072] (Learning rule (part 2)) As a learning rule, for example, the upper limit of the number of epochs is preset to "100", and until the number of epochs reaches "50", in order to stabilize the learning process, i.e., to make the convergence of the coefficients gentle, the learning processing unit 13 selects the training data set of the original video data and the training data set of the athlete mask video data in this order in the processing of step Sa2, and does not select the background mask video data. After the number of epochs reaches "50", for the next 50 epochs, the learning processing unit 13 may set a learning rule that, in the processing of step Sa2, the learning processing unit 13 selects the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data in this order. As a result, in the processing of FIG. 5 above, the processing of steps Sa3-3 to Sa5-3 is not performed until the number of epochs reaches "50", and after the number of epochs reaches "50", the processing of FIG. 5 above is performed for the next 50 epochs. In this way, a learning rule that changes the training data set selected in the processing of step Sa2 according to the number of epochs may be set.
[0073] Note that the number of epochs is "50" as an example, and another value may be set. The number of epochs for changing the combination of the selected training data sets may not be limited to one, but multiple numbers of epochs for changing the combination of the selected training data sets may be set, and the learning processing unit 13 may set a learning rule for changing the selected training data set each time the multiple number of epochs is reached. In this case, the combination of training data selected by the learning processing unit 13 in the process of step Sa2 is not limited to the above-mentioned example of the combination of training data, and may be any combination. The learning rule may be such that the training data set selected by the learning processing unit 13 in the process of step Sa2 is randomly changed each time the number of epochs increases.
[0074] (Learning rule (part 3)) For example, when the true background score is set to "0", even after a certain amount of learning processing has been performed, it has been found from simulation results that when athlete mask image data is provided to the function approximator 14, the estimated background score output by the function approximator 14 does not become completely "0", but outputs "1" or "2". This can be considered to be the case when the judge is giving a small amount of points to the background as well. When the true athlete score is set to the true competition score, it has been found that when background mask image data is provided to the function approximator 14, the function approximator 14 does not output a value that completely matches the true competition score, even after a certain amount of learning processing has been performed.
[0075] In this way, assuming that the background influences the judges' scoring, a learning rule may be established such that, when the number of epochs reaches a predetermined number less than a predetermined upper limit, the learning processing unit 13 replaces all true value background scores included in the training data set of athlete mask video data with estimated background scores output by the function approximator 14 when the athlete mask video data is provided at that time, and replaces all true value athlete scores included in the training data set of background mask video data with estimated athlete scores output by the function approximator 14 when the background mask video data is provided at that time.
[0076] When this learning rule is applied, the learning processing unit 13 performs the process of FIG. 5 until the number of epochs reaches the predetermined number, and when the number of epochs reaches the predetermined number, the process of step Sa2 and subsequent steps is performed for the remaining number of epochs based on the training data set of the original video data, the training data set of the athlete mask video data in which the true background score has been replaced according to the learning rule, and the training data set of the background mask video data in which the true athlete score has been replaced according to the learning rule. Note that the learning processing unit 13 may perform the process from the beginning after performing the replacement according to the learning rule. That is, the learning processing unit 13 may initialize the number of epochs to "0" and initialize the parameters of the mini-batch learning, and perform the process from step Sa2 onwards. Note that when the process is performed from the beginning, the coefficients stored in the learning model data storage unit 15 may be continuously used as they are, or the coefficients stored in the learning model data storage unit 15 may be initialized.
[0077] In the above, the true background score and the true athlete score are replaced when the number of epochs reaches a predetermined number, but the true background score and the true athlete score may be replaced at any predetermined timing during the learning process other than the timing when the number of epochs reaches a predetermined number. For example, the replacement may be performed at the timing when the learning processing unit 13 detects that the difference between the estimated background score output by the function approximator 14 and the immediately preceding estimated background score has been equal to or less than a certain value consecutively for a predetermined number of times, and that the difference between the estimated athlete score output by the function approximator 14 and the immediately preceding estimated athlete score has been equal to or less than a certain value consecutively for a predetermined number of times.
[0078] (Other learning rules) 5 shows a learning process by mini-batch learning in which the mini-batch size M is a value smaller than N, which is the number of training data sets for each of the original video data, the athlete mask video data, and the background mask video data. Alternatively, a learning process by batch learning with a mini-batch size M=N may be performed, or a learning process by online learning with a mini-batch size M=1 may be performed.
[0079] 5, when the learning processing unit 13 selects a number of data of mini-batch size M from each of the original video data, the athlete mask video data, and the background mask video data stored in the internal storage area in the repeated processing of steps Sa4-1, 4a-2, and 4a-3, the number of data is selected by the number of mini-batch size M in the order in which the data is stored in the internal storage area. In contrast, the learning processing unit 13 may randomly select a number of training data of mini-batch size M from the internal storage area, or may select a number of training data of mini-batch size M in the order in which the data is stored in the internal storage area until the number of epochs reaches a predetermined number less than a predetermined upper limit, and may randomly select a number of training data of mini-batch size M after the number of epochs reaches a predetermined number less than a predetermined upper limit.
[0080] In the processing of Figure 5 described above, in processing step Sa5-1, a loss is calculated based on a combination of the estimated competition score and the true competition score, in processing step Sa5-2, a loss is calculated based on a combination of the estimated background score and the true background score, and in processing step Sa5-3, a loss is calculated based on a combination of the estimated athlete score and the true athlete score, and new coefficients are calculated based on each loss.
[0081] 5, for example, after the processing of loop L1s to L1e is completed, the learning processing unit 13 advances the processing to step Sa6 without performing step Sa5-1. Thereafter, after the processing of loop L2s to L2e is completed, the learning processing unit 13 advances the processing to step Sa6 without performing step Sa5-2. Thereafter, after the processing of loop L3s to L3e is completed, the learning processing unit 13 may calculate losses in the processing of step Sa5-3 based on all combinations of estimated competition scores and true competition scores, all combinations of estimated background scores and true background scores, and all combinations of estimated athlete scores and true athlete scores that have been generated in the internal storage area, and calculate new coefficients based on the calculated losses.
[0082] For example, in the process of Fig. 5 described above, after the processing of loop L1s to L1e is completed, the learning processing unit 13 advances the process to step Sa6 without performing step Sa5-1. Then, after the processing of loop L2s to L2e is completed, the learning processing unit 13 may calculate losses in the process of step Sa5-2 based on all combinations of estimated competition scores and true competition scores generated in the internal storage area and on all combinations of estimated background scores and true background scores, and calculate new coefficients based on the calculated losses.
[0083] For example, in the processing of Fig. 5 described above, after the processing of loop L2s to L2e is completed, the learning processing unit 13 advances the processing to step Sa6 without performing step Sa5-2. Then, after the processing of loop L3s to L3e is completed, the learning processing unit 13 may calculate losses in the processing of step Sa5-3 based on all combinations of estimated background scores and true background scores generated in the internal storage area and on all combinations of estimated athlete scores and true athlete scores, and calculate new coefficients based on the calculated losses.
[0084] In the process of Fig. 5 described above, in the process of step Sa2, the learning processing unit 13 selects the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data in this order, but this order is not limited to this, and the order of selection may be changed arbitrarily. In this case, for example, when the learning processing unit 13 selects the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data in this order, for example, after the process of loop L1s to L1e is completed, the process proceeds to step Sa6 without performing step Sa5-1. After that, after the process of loop L3s to L3e is completed, the learning processing unit 13 may calculate losses in the process of step Sa5-3 based on combinations of all estimated competition scores and true competition scores generated in the internal storage area and combinations of all estimated athlete scores and true athlete scores, and calculate new coefficients based on the calculated losses.
[0085] In this way, the selection order of the training data set of the original video data, the training data set of the athlete mask video data, and the training data set of the background mask video data in the processing of step Sa2 may be determined arbitrarily. The learning processing unit 13 may arbitrarily select a combination of the estimated competition score and the true competition score, a combination of the estimated background score and the true background score, and a combination of the estimated athlete score and the true athlete score, calculate a loss, and calculate a new coefficient based on the calculated loss.
[0086] 5, for example, when the learning processing unit 13 selects a training data set of original video data, the learning processing unit 13 repeatedly selects a training data set of original video data in the processing of step Sa2 that is performed again until the number of times the original video data has been processed becomes equal to or greater than N. However, the learning processing unit 13 may select a training data set different from the training data set selected in the previous step Sa2.
[0087] Learning rules that are arbitrary combinations of each of the other learning rules described above, the learning rule (1), the learning rule (2), and the learning rule (3) may be determined in advance.
[0088] (Configuration of the estimation device) Fig. 6 is a block diagram showing a configuration of an estimation device 2 according to an embodiment of the present invention. The estimation device 2 includes an input unit 21, an estimation unit 22, and a learning model data storage unit 23. The learning model data storage unit 23 stores in advance the learned coefficients stored in the learning model data storage unit 15 when the learning device 1 finishes the process shown in Fig. 5, i.e., the learned learning model data. The input unit 21 takes in any video data, i.e., video data of an evaluation target (hereinafter referred to as evaluation target video data) in which a series of actions performed by any athlete are recorded together with the background.
[0089] The estimation unit 22 includes a function approximator having the same configuration as the function approximator 14 included in the learning processing unit 13. The estimation unit 22 calculates an estimated score corresponding to the video data, based on the evaluation target video data taken in by the input unit 21 and the function approximator to which the learned coefficients stored in the learning model data storage unit 23 are applied, i.e., the learned learning model.
[0090] (Estimation process by estimation device) 7 is a flowchart showing the flow of processing by the estimation device 2. The input unit 21 takes in the evaluation target video data and outputs the taken in evaluation target video data to the estimation unit 22 (step Sb1). The estimation unit 22 takes in the evaluation target video data output by the input unit 21. The estimation unit 22 reads out learned coefficients from the learning model data storage unit 23. The estimation unit 22 applies the read out learned coefficients to a function approximator provided inside (step Sb2).
[0091] The estimation unit 22 provides the captured evaluation target video data to a function approximator (step Sb3). The estimation unit 22 outputs an output value of the function approximator as an estimated score for the evaluation target video data (step Sb4).
[0092] The learning device 1 of the above embodiment receives original video data, athlete mask video data, and background mask video data as inputs, and generates learning model data in a learning model that outputs a true competition score when the original video data is input, outputs a true background score when the athlete mask video data is input, and outputs a true athlete score when the background mask video data is input. The learning device 1 performs a learning process using the original video data, athlete mask video data, and background mask video data, thereby encouraging extraction of features related to the athlete's movements in the video data. This enables the learning device 1 to generate learning model data generalized to the athlete's movements from video data recording the athlete's movements without explicitly providing joint information. In this way, the learning device 1 applies the learned learning model data generated by the learning device 1 to a function approximator to generate a learned learning model, which can improve the accuracy of scoring in competitions.
[0093] In the above embodiment, an example is shown in which the original video data includes one athlete, but the competition recorded in the original video data may also be a competition participated in by multiple athletes, and in this case the rectangular area will be an area that surrounds the multiple athletes.
[0094] In the above embodiment, the shape surrounding the player's area is rectangular, but this is not limited to a rectangular shape and may be a shape other than a rectangular shape.
[0095] In the above embodiment, the color for masking in the video data of the athlete mask video data and the background mask video data is the average color in the image frames to be masked. Alternatively, the average color of all image frames included in the original video data corresponding to each of the video data of the athlete mask video data and the background mask video data may be selected as the color for masking. A color arbitrarily determined for each video data may be used as the color for masking. Note that since it is preferable that the color for masking is not conspicuous, it is necessary to select an inconspicuous color according to the overall color tone of each image frame. In this respect, it is considered most effective to select the average color for each image frame that blends into the background and is inconspicuous as the color for masking.
[0096] The function approximator 14 provided in the learning unit 12 of the learning device 1 in the above embodiment and the function approximator provided internally in the estimation unit 22 of the estimation device 2 are, for example, DNNs, but a neural network other than DNN, a machine learning means, or any means for calculating coefficients of a function to be approximated in the function approximator may also be applied.
[0097] The learning device 1 and the estimation device 2 may be configured as an integrated device. In this configuration, the device in which the learning device 1 and the estimation device 2 are integrated has a learning mode and an estimation mode. The learning mode is a mode in which the learning device 1 performs a learning process to generate learning model data. That is, in the learning mode, the device in which the learning device 1 and the estimation device 2 are integrated executes the process shown in FIG. 5. The estimation mode is a mode in which an estimated score is output using a learned learning model, i.e., a function approximator to which learned learning model data is applied. That is, in the estimation mode, the device in which the learning device 1 and the estimation device 2 are integrated executes the process shown in FIG. 7.
[0098] The learning device 1 and the estimation device 2 in the above-described embodiment may be realized by a computer. In that case, a program for realizing this function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into a computer system and executed to realize the function. The term "computer system" as used herein includes hardware such as an OS and peripheral devices. The term "computer-readable recording medium" refers to a portable medium such as a flexible disk, an optical magnetic disk, a ROM, a CD-ROM, and a storage device such as a hard disk built into a computer system. The term "computer-readable recording medium" may also include a medium that dynamically holds a program for a short period of time, such as a communication line when a program is transmitted via a network such as the Internet or a communication line such as a telephone line, and a medium that holds a program for a certain period of time, such as a volatile memory inside a computer system that is a server or client in that case. The above-described program may be a program for realizing a part of the above-described function, or may be a program that can realize the above-described function in combination with a program already recorded in the computer system, or may be a program that is realized using a programmable logic device such as an FPGA (Field Programmable Gate Array).
[0099] Although an embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and designs that do not deviate from the gist of the present invention are also included. [Industrial Applicability]
[0100] It can be used for scoring in sports competitions. [Explanation of symbols]
[0101] 1 ... learning device, 11 ... input unit, 12 ... learning unit, 13 ... learning processing unit, 14 ... function approximator, 15 ... learning model data storage unit, 2 ... estimation device, 21 ... input unit, 22 ... estimation unit, 23 ... learning model data storage unit
Claims
1. a learning unit which receives as input original video data in which a background and the actions of an athlete are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which an area other than the area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and generates learning model data in a learning model in which, when the original video data is input, a true competition score which is an evaluation value for the athlete's competition is output, when the athlete mask video data is input, an arbitrarily determined true background score is output, and when the background mask video data is input, an arbitrarily determined true athlete score is output. A learning device comprising:
2. The learning unit is a function approximator, performing a learning process so that an estimated athletic score obtained as an output value of the function approximator when the original video data is provided to the function approximator approaches the true athletic score, performing a learning process so that an estimated background score obtained as an output value of the function approximator when the athlete mask video data is provided to the function approximator approaches the true background score, and performing a learning process so that an estimated athlete score obtained as an output value of the function approximator when the background mask video data is provided to the function approximator approaches the true athlete score, thereby updating coefficients applied to the function approximator and generating the learning model data; The learning device according to claim 1 .
3. The learning unit is At any timing during the learning process, an estimated background score obtained as an output value of the function approximator when the athlete mask image data is provided to the function approximator is set as a new true-value background score, and an estimated athlete score obtained as an output value of the function approximator when the background mask image data is provided to the function approximator is set as a new true-value athlete score. The learning device according to claim 2 .
4. The true competition score is a score of the scoring result for the competition recorded in the original video data, the true background score is a score when the competition is not evaluated, and the true athlete score is the true competition score. The learning device according to any one of claims 1 to 3.
5. an input unit for inputting video data of an athlete's movements to be evaluated; an estimation unit that estimates an estimated competition score for the video data of the evaluation target based on an input of original video data in which a background and the actions of an athlete are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which an area other than the area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and a trained learning model that outputs a true competition score that is an evaluation value for the athlete's competition when the original video data is input, outputs an arbitrarily determined true background score when the athlete mask video data is input, and outputs an arbitrarily determined true athlete score when the background mask video data is input; and An estimation device comprising:
6. a learning model data generating unit that receives as input original video data in which a background and an athlete's actions are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which an area other than the area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and generates learning model data in a learning model that outputs a true competition score, which is an evaluation value for the athlete's competition, when the original video data is input, outputs an arbitrarily determined true background score when the athlete mask video data is input, and outputs an arbitrarily determined true athlete score when the background mask video data is input; Method for generating learning model data.
7. Importing video data of the athlete's movements to be evaluated; a trained learning model that receives as input original video data in which a background and the actions of an athlete are recorded, athlete mask video data in which an area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and background mask video data in which an area other than the area surrounding the athlete is masked in each of a plurality of image frames included in the original video data, and that outputs a true competition score, which is an evaluation value for the athlete's competition, when the original video data is input, outputs an arbitrarily determined true background score when the athlete mask video data is input, and outputs an arbitrarily determined true athlete score when the background mask video data is input, and estimates an estimated competition score for the video data of the evaluation target based on the trained learning model and the captured video data of the evaluation target; Estimation method.
8. A program for causing a computer to execute the learning device according to any one of claims 1 to 3 or the estimation device according to claim 4.
Citation Information
Patent Citations
Time measurement device and time measurement method
JP2021047164A
Recognition processor, recognition processing program, recognition processing method, and visualization system
JP2021071953A
Video processing device, video processing method, and video processing program
WO2019225692A1
Motion recognition method and device
WO2020050111A1
Recognition method, recognition program, recognition device, learning method, learning program, and learning device
WO2020084667A1
Cited By
Image processing device
WO2026172682A1
