Skeleton recognition device, learning method, and learning program
The skeleton recognition device and method improve processing efficiency by calculating bone length and angle differences in a single step, addressing joint accuracy issues and reducing complexity.
Patent Information
- Application Number
- JP2022565004
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-30
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2040-11-30
AI Technical Summary
Conventional 3D skeletal recognition methods require two stages of processing, which increases processing time and complicates the hardware and processing complexity, especially when dealing with occlusions that affect joint accuracy.
A skeleton recognition device and method that calculates bone length and angle differences directly from input data using a loss function, allowing for one-step processing to improve joint accuracy without requiring additional stages.
The method achieves accurate skeletal recognition results in a single processing step, reducing processing time and hardware complexity while effectively addressing joint errors due to occlusions.
Smart Images

Figure 0007571796000009 
Figure 0007571796000010 
Figure 0007571796000011
Abstract
Description
[Technical field]
[0001] The present invention relates to a skeleton recognition device and the like. [Background technology]
[0002] Regarding skeletal recognition to detect human movements in three dimensions, 3D sensing technology has been established that extracts 3D skeletal coordinates from multiple 3D laser sensors with an accuracy of ±1cm, and is expected to be applied to various sports. The method using 3D laser sensors is referred to as the "laser method."
[0003] In the above laser method, the laser is emitted approximately 2 million times per second, and the depth data of each irradiation point, including the target person, is calculated based on the laser's travel time (Time of Flight: ToF). The laser method can obtain highly accurate depth data, but has the disadvantage that the hardware is complex and expensive due to the complex configuration and processing of laser scanning and ToF measurement.
[0004] In contrast to the laser method, the image method, which acquires RGB data for each pixel using a CMOS (Complementary Metal Oxide Semiconductor) imager, makes it possible to perform 3D skeletal recognition using an inexpensive RGB camera.
[0005] For example, there is a conventional technique 1 that performs skeletal recognition using an image method. Fig. 11 is a diagram for explaining the conventional technique 1. In the conventional technique 1, 2D features 2 that represent each joint feature are obtained by applying 2D backbone processing 1a to each input image 1. The conventional technique 1 obtains aggregated volumes 3 by projecting each 2D features 2 onto a 3D cube according to the camera parameters.
[0006] Prior Art 1 inputs aggregated volumes 3 into V2V (neural network, P3) 4 to obtain processed volumes 5 that represent the likelihood of each joint. The processed volumes 5 correspond to a heatmap that represents the 3D likelihood of each joint. Prior Art 1 obtains 3D skeletal information 7 by executing soft-argmax 6 on the processed volumes 5.
[0007] An example of V2V4 learning used in Prior Art 1 will be described. V2V4 is mainly composed of 3D kernels, and the weights and biases of the kernels are learned by error backpropagation. The weights and biases of the kernels are collectively referred to as "parameters" as appropriate. In Prior Art 1, the average value L of the joint position errors is calculated from the 3D skeleton information output from soft-argmax6 and the ground truth value. p is calculated as the loss value, and the parameters are trained (adjusted) so that this loss value is minimized.
[0008] Here, in the conventional technique 1, when the error of some joints becomes large due to the occurrence of occlusion, it becomes difficult to appropriately adjust the V2V4 parameters. For example, even if the error of some joints is large, if the error of other joints is small, the error of some joints does not greatly affect the output of the loss function due to averaging. In other words, the V2V4 parameters are not adjusted so that the error of some joints is improved.
[0009] Fig. 12 is a diagram showing an example of a skeleton with large errors in some joints. In Fig. 12, 3D skeleton information 10a is 3D skeleton information corresponding to the correct answer value. 3D skeleton information 10b corresponds to the skeleton recognition result output from soft-argmax6. In the example shown in Fig. 12, the error in the left ankle joint is large, but the errors in the other joints are small, so on average there is no significant effect on the loss value, and therefore it is not possible to expect a learning effect that would improve the left ankle position.
[0010] To address the above problem, there is conventional technology 2. In conventional technology 2, in the first stage, the joint positions are estimated based on a distance image, and in the second stage, the estimated joint positions are evaluated for consistency based on a human body model, and the estimated joint positions are corrected to obtain the best combination of joint positions. Conventional technology 2 improves the estimation accuracy of joint positions by performing processing in two stages as described above. [Prior art documents] [Patent documents]
[0011] [Patent Document 1] JP2015-167008A [Patent Document 2] JP 2004-13474 A [Non-patent literature]
[0012] [Non-Patent Document 1] K. Iskakov, et al., “Learnable Triangulation of Human Pose”, ICCV 2019, oral [Non-Patent Document 2] G. Moon, et al., “V2V-PoseNet: Voxel-to-Voxel Prediction Network for Accurate 3D Hand and Human Pose Estimation from a Single Depth Map”, CVPR 2018 Summary of the Invention [Problem to be solved by the invention]
[0013] Although the above-mentioned conventional technique 2 improves the estimation accuracy of the joint positions, it has a problem in that two stages of processing are performed before the corrected joint positions are output, and processing time is required for skeletal recognition.
[0014] In one aspect, the present invention aims to provide a skeleton recognition device, a learning method, and a learning program that can produce skeleton recognition results without requiring a lot of processing time. [Means for solving the problem]
[0015] In the first proposal, the skeleton recognition device has a recognition processing unit and a loss function calculation unit. The recognition processing unit inputs training data to a learning model and calculates an output by forward propagation. The loss function calculation unit calculates a loss function value based on the difference in bone length based on skeleton information, which is the correct value of the training data, and the output result of the recognition processing unit, and the difference in angle between bones based on the skeleton information and the output result of the recognition processing unit. Effect of the Invention
[0016] Skeleton recognition results can be achieved without spending a lot of processing time. [Brief description of the drawings]
[0017] [Figure 1] FIG. 1 is a diagram illustrating an example of a system according to the present embodiment. [Diagram 2] FIG. 2 is a functional block diagram showing the configuration of the skeleton recognition device according to this embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a data structure of the teacher data. [Figure 4] FIG. 4 is a diagram illustrating an example of a data structure of a human body model. [Diagram 5] FIG. 5 is a diagram for explaining the process of the learning phase. [Figure 6] FIG. 6 is a flowchart showing the processing steps of the pre-processing phase of the skeleton recognition apparatus. [Figure 7] FIG. 7 is a flowchart showing a processing procedure of the learning phase of the skeleton recognition device. [Figure 8] FIG. 8 is a flowchart showing a processing procedure of the inference phase of the skeleton recognition device. [Figure 9] FIG. 9 is a diagram for explaining the effect of this embodiment. [Figure 10] FIG. 10 is a diagram showing an example of a hardware configuration of a computer that realizes the same functions as the skeleton recognition device of the embodiment. [Figure 11] FIG. 11 is a diagram for explaining the prior art 1. In FIG. [Figure 12] FIG. 12 is a diagram showing an example of a skeleton in which errors in some joints are large. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, embodiments of the skeleton recognition device, learning method, and learning program disclosed in the present application will be described in detail with reference to the accompanying drawings. Note that the present invention is not limited to these embodiments. EXAMPLES
[0019] Fig. 1 is a diagram showing an example of a system according to the present embodiment. As shown in Fig. 1, the system includes cameras 20a, 20b, and 20c, and a skeleton recognition device 100. The cameras 20a to 20c and the skeleton recognition device 100 are connected to each other wirelessly or by wire.
[0020] 1 shows cameras 20a to 20c as an example, but may include other cameras. In the following description, cameras 20a to 20c will be collectively referred to as camera 20.
[0021] The camera 20 is a device that captures an image of the person 15. The camera 20 transmits data of the captured image to the skeleton recognition device 100. In the following description, the data of the image of the person 15 is referred to as image data. As described later, the image data is used in the inference phase of the skeleton recognition device 100.
[0022] The skeleton recognition device 100 executes the processes of "preprocessing phase" and "learning phase" using teacher data to learn a learning model for performing skeleton recognition. In addition, in the "inference phase", the skeleton recognition device 100 outputs the skeleton recognition result of the person 15 based on the image data input from the camera 20 and the learned learning model.
[0023] Next, an example of the configuration of the skeleton recognition device according to this embodiment will be described. Fig. 2 is a functional block diagram showing the configuration of the skeleton recognition device according to this embodiment. As shown in Fig. 2, this skeleton recognition device 100 has a communication unit 110, an input unit 120, a display unit 130, a storage unit 140, and a control unit 150.
[0024] The communication unit 110 is connected to an external device or the like via a wired or wireless connection, and transmits and receives information between the camera 20 and the external device or the like. For example, the communication unit 110 is realized by a NIC (Network Interface Card) or the like. The control unit 150 acquires image data from the camera 20 via the communication unit 110. The communication unit 110 may be connected to a network (not shown).
[0025] The input unit 120 is an input device that inputs various pieces of information to the skeleton recognition device 100. The input unit 120 corresponds to a keyboard, a mouse, a touch panel, or the like.
[0026] The display unit 130 is a display device that displays information output from the control unit 150. The display unit 130 corresponds to a liquid crystal display, an organic EL (Electro Luminescence) display, a touch panel, or the like.
[0027] The storage unit 140 has teacher data 141, a human body model 142, a learning model 143, and an image data table 144. The storage unit 140 is realized by, for example, a semiconductor memory element such as a random access memory (RAM) or a flash memory, or a storage device such as a hard disk or an optical disk.
[0028] The teacher data 141 is data used for learning the learning model 143. FIG. 3 is a diagram showing an example of the data structure of the teacher data. As shown in FIG. 3, the teacher data 141 has a plurality of pairs of input data and correct answer values. The input data is data generated from a plurality of image data prepared in advance, and corresponds to, for example, "aggregated volumes" or the like. The correct answer value is the correct answer value of the skeleton recognition result corresponding to the input data, and includes, for example, information such as the three-dimensional coordinates of each joint, the length of the bones connecting the joints, and the angles between the bones.
[0029] The human body model 142 is a predefined human body model, in which a plurality of joints are defined, and each joint is connected by a bone. Fig. 4 is a diagram showing an example of a data structure of the human body model. As shown in Fig. 4, the human body model 142 has joints A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, and A21. In addition, 20 bones are defined in the human body model 142 to connect each joint.
[0030] The learning model 143 corresponds to a neural network (NN) such as V2V. For example, the learning model 143 is configured with a 3D kernel, and parameters (weight, bias, etc.) are set in the kernel. The parameters are adjusted by a learning phase process described later.
[0031] The image data table 144 is a table for registering image data output from the camera 20 in the "inference phase." For example, the image data table 144 holds identification information of the camera 20 and image data captured by the camera 20 in association with each other.
[0032] Returning to the description of Fig. 2, the control unit 150 has a recognition processing unit 151, a loss function calculation unit 152, a learning unit 153, and an image data processing unit 154. The control unit 150 is realized by, for example, a central processing unit (CPU) or a micro processing unit (MPU). The control unit 150 may also be executed by an integrated circuit such as, for example, an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).
[0033] The control unit 150 executes (1) a pre-processing phase process, (2) a learning phase process, and (3) an inference phase process in that order. For the sake of convenience, the "learning phase process" will be described first, followed by the "pre-processing phase process", and finally the "inference phase process".
[0034] The "learning phase processing" executed by the control unit 150 will be described. Fig. 5 is a diagram for explaining the learning phase processing. When the control unit 150 executes the preprocessing phase, the recognition processing unit 151, the loss function calculation unit 152, and the learning unit 153 execute the following processing.
[0035] The process of the recognition processing unit 151 in the learning phase will be described. The recognition processing unit 151 inputs input data included in the teacher data 141 to the learning model 143, and outputs (skeleton recognition result p=(p 1 ,p 2 ,···,p Np ) is calculated. 1 ,p 2 ,···,p Np " indicates each joint, and three-dimensional coordinates are set. In the example shown in FIG. 5, a certain joint in the skeleton recognition result p is n As shown in the figure.
[0036] More specifically, the recognition processing unit 151 inputs the input data into the learning model 143 to calculate a heatmap indicating the 3D likelihood of each joint, and executes soft-argmax to find the center of gravity of the heatmap to calculate the skeleton recognition result p.
[0037] The recognition processing unit 151 outputs the skeleton recognition result to the loss function calculation unit 152. The recognition processing unit 151 repeatedly executes the above process for each input data included in the teacher data 141 to calculate a skeleton recognition result corresponding to each input data, and outputs the skeleton recognition result to the loss function calculation unit 152.
[0038] The following describes the processing performed by the loss function calculation unit 152 in the learning phase. The loss function calculation unit 152 executes a process of calculating errors in bone lengths as loss values, a process of calculating errors in angles between bones as loss values, and a process of integrating the loss values.
[0039] The "process of calculating the error in the bone length as a loss value" executed by the loss function calculation unit 152 will be described. The loss function calculation unit 152 associates each joint of the skeleton recognition result p with each joint of the human body model 142 to calculate the bone vector b=(b 1 ,b 2 ,···,b Np In the example shown in FIG. 5, a bone vector b is calculated as follows: n As shown in the figure.
[0040] The loss function calculation unit 152 calculates the bone length l=(l 1 ,l 2 ,···,l Np In the example shown in FIG. 5, the length of a certain bone is l. n As shown in the figure.
[0041] The loss function calculation unit 152 calculates a loss value of the bone length from the difference between the bone length l and the correct value of the teacher data 141 (the correct value of the bone length) based on the formula (1). l In formula (1), Nl is the number of bones (e.g., N l = 20). pred i is the bone length estimated from the bone vector b, and is the length of the i-th bone. gt i is the bone length of the correct value, which is the length of the i-th bone.
[0042]
number
[0043] The "process of calculating the error in the angle between bones as a loss value" executed by the loss function calculation unit 152 will be described. The loss function calculation unit 152 calculates the angle between bones r=(r 1 ,r 2 ,···,r Np In the example shown in FIG. 5, the angle between bones is l. n As shown in the figure.
[0044] The loss function calculation unit 152 calculates a loss value of the angle between the bones based on the difference between the angle r between the bones and the correct value of the teacher data 141 (the correct value of the angle between the bones) according to the formula (2). r In formula (2), N r indicates the number of angles between bones. pred i is the angle between bones estimated from the bone vector b, and is the angle between the i-th bones. gt i is the correct angle between the bones, which is the angle between the i-th bones.
[0045]
number
[0046] The "process of integrating loss values" executed by the loss function calculation unit 152 will be described. The loss function calculation unit 152 calculates a joint coordinate loss value based on the skeleton recognition result p and the correct answer value (three-dimensional coordinates of each joint) of the teacher data 141. The loss function calculation unit 152 calculates a joint coordinate loss value based on the "L p " The formula is omitted, but L p is the average error of the 3D coordinates of each joint.
[0047] The loss function calculation unit 152 integrates the loss values based on the formula (3). The integrated loss value is denoted as “L”. The loss function calculation unit 152 outputs the loss value L to the learning unit 153. l , w r L l ,L r are weights that are calculated in advance in the “pre-processing phase” to prevent overfitting.
[0048]
number
[0049] The loss function calculation unit 152 repeatedly executes the above process every time it receives a skeleton recognition result p from the recognition processing unit 151.
[0050] Incidentally, the loss function calculation unit 152 may use a technique such as Kinematic Chain Space when calculating the length of bones and the angle between bones. For example, the Kinematic Chain Space is described in "B. Wandt, et al., "A kinematic chain space for monocular motion capture", (ECCV Workshops, 2018)". In the following description, Kinematic Chain Space is abbreviated as "KCS". In KCS, a matrix B that combines bone vectors b is calculated. Matrix B is shown in Equation (4).
[0051]
number
[0052] The loss function calculation unit 152 calculates the transposed matrix B T A feature Ψ indicating the product of B and A is calculated. The feature Ψ is expressed by equation (5). The diagonal components of the feature Ψ correspond to the lengths of the bones, and the off-diagonal components correspond to the angles between the bones.
[0053]
number
[0054] The loss function calculation unit 152 calculates the average value L of the difference between the feature Ψ and the correct answer (GT) of the training data 141. KCS is calculated by equation (6). In equation (6), Ψ pred ij indicates the element in the i-th row and j-th column of equation (6). gt ij is Ψ pred ij is the element of the correct answer corresponding to . b corresponds to the number of elements of matrix B.
[0055]
number
[0056] In the above description, the case where the length of the bone and the angle between the bones are calculated using a technique such as Kinematic Chain Space has been described, but the present invention is not limited to this. The loss function calculation unit 152 may calculate the length of the bone using Euclidean distance. The loss function calculation unit 152 may calculate the angle between the bones using cos similarity.
[0057] The process of the learning unit 153 in the learning phase will be described. The learning unit 153 repeatedly executes a process of learning (adjusting) the parameters of the learning model 143 by backpropagation of errors so as to minimize the loss value L. When the loss value L converges, the learning unit 153 ends the adjustment of the parameters of the learning model 143.
[0058] In the learning phase, we use the “L l " and "L" regarding the error in the angle between bones. r " is used to calculate the loss value L, so when some joints are significantly misaligned, their contribution to the loss value L increases. This makes it possible to execute learning to improve errors when the errors of some joints are large.
[0059] Next, the "pre-processing phase" executed by the control unit 150 will be described. In the pre-processing phase, the w l , w r In the learning phase, when integrating the loss values using equation (3), L l ,L r In order to prevent overfitting, the joint coordinate loss value "L p " and the bone length loss value "L l From the relative value of "w l Calculate the joint coordinate loss value "L p " and the bone length loss value "L r From the relative value of "w r " is calculated.
[0060] When the control unit 150 executes the pre-processing phase, the recognition processing unit 151, the loss function calculation unit 152, and the learning unit 153 execute the following processes.
[0061] The processing of the recognition processing unit 151 in the preprocessing phase will be described. The processing of the recognition processing unit 151 in the preprocessing phase is the same as the processing of the recognition processing unit 151 in the learning phase. That is, the recognition processing unit 151 inputs input data included in the teacher data 141 to the learning model 143, and outputs (skeleton recognition result p=(p 1 ,p 2 ,···,p Np The recognition processing unit 151 outputs the skeleton recognition result p to the loss function calculation unit 152.
[0062] The processing of the loss function calculation unit 152 in the pre-processing phase will be described. The loss function calculation unit 152 calculates the loss value of the bone length “L l ", Loss value of the angle between bones "L r ", joint coordinate loss value "L p " are calculated respectively.
[0063] Here, the loss function calculation unit 152 calculates the joint coordinate loss value “L p " to the learning unit 153. Every time the loss function calculation unit 152 obtains a skeleton recognition result p from the recognition processing unit 151, the loss function calculation unit 152 repeatedly executes the above process.
[0064] The loss function calculation unit 152 receives the joint coordinate loss value “L p When the information that convergence has been received, the joint coordinate loss value "L p At the time when "L l ", "L r ", "L p Calculate the order of "L l " order "o Ll " "L r " order "o Lr " "L p " order "o Lp "
[0065] For example, the loss function calculation unit 152 calculates L p =4.0×10 -3 If so, "o Lp =10 -3 The loss function calculation unit 152 calculates "o Ll ", "o Lp " is calculated in the same manner.
[0066] The loss function calculation unit 152 calculates the weight w based on the formula (7). l Based on equation (8), the weight w r The weight w l , w ris used in the learning phase. The loss function calculation unit 152 calculates the weight w l , w r By determining p Order of L l , L r Since L l ,L r While preventing overfitting, L l ,L r can have a positive impact on learning.
[0067]
number
number
[0068] The processing performed by the learning unit 153 in the pre-processing phase will now be described. p The learning unit 153 repeatedly performs a process of learning (adjusting) the parameters of the learning model 143 by backpropagation of errors so as to minimize the loss value L p When convergence occurs, the adjustment of the parameters of the learning model 143 is terminated.
[0069] The learning unit 153 calculates the loss value L p When convergence occurs, the loss value L p The loss function calculation unit 152 outputs a signal indicating that the convergence has occurred, and the learning is terminated.
[0070] Next, a description will be given of the "inference phase" executed by the control unit 150. When the control unit 150 executes the preprocessing phase, the recognition processing unit 151 and the image data processing unit 154 execute the following processes.
[0071] The processing of the recognition processing unit 151 in the inference phase will be described. The recognition processing unit 151 acquires input data from the image data processing unit 154. The recognition processing unit 151 inputs the acquired input data to the trained learning model 143, and calculates an output (skeleton recognition result of the person 15) by forward propagation. The recognition processing unit 151 may output the skeleton recognition result to the display unit 130 for display, or may output the skeleton recognition result to an external device that executes various processes using the skeleton recognition result.
[0072] The recognition processing unit 151 repeatedly executes the above process every time it acquires input data from the image data processing unit 154 .
[0073] The processing of the image data processing unit 154 in the inference phase will be described. The image data processing unit 154 acquires image data from the camera 20, and stores the acquired image data in the image data table 144. The image data processing unit 154 identifies 2D features representing each joint feature by performing 2D backbone processing on the image data. The image data processing unit 154 calculates aggregated volumes by projecting each 2D feature onto a 3D cube according to the camera parameters, and outputs the calculated aggregated volumes to the recognition processing unit 151 as input data.
[0074] The above-mentioned process in which the image data processing unit 154 calculates the input data based on each image data is one example, and other techniques may be used to integrate multiple image data and calculate the input data. The image data processing unit 154 acquires image data from the camera 20 at regular intervals and repeatedly executes the above process.
[0075] Next, an example of a processing procedure of the skeleton recognition device 100 according to this embodiment will be described. Fig. 6 is a flowchart showing a processing procedure of the pre-processing phase of the skeleton recognition device. As shown in Fig. 6, the recognition processing unit 151 of the skeleton recognition device 100 inputs input data of the teacher data 141 to the learning model 143 (step S101). The recognition processing unit 151 calculates a skeleton recognition result by forward propagation of the learning model 143 (step S102).
[0076] The loss function calculation unit 152 of the skeleton recognition device 100 calculates errors in the joint coordinates as loss values (step S103). The loss function calculation unit 152 calculates errors in the lengths of the bones and errors in the angles between the bones as non-loss values (step S104).
[0077] The learning unit 153 of the skeleton recognition device 100 adjusts the parameters of the learning model 143 by error backpropagation so as to minimize the loss value (step S105).
[0078] The loss function calculation unit 152 calculates the weight w based on the loss value and the non-loss value. l , w r (Step S106). The loss function calculation unit 152 calculates the weight w l , w r is output (step S107).
[0079] Fig. 7 is a flowchart showing a processing procedure of the learning phase of the skeleton recognition device. As shown in Fig. 7, the recognition processing unit 151 of the skeleton recognition device 100 inputs the input data of the teacher data 141 to the learning model 143 (step S201). The recognition processing unit 151 calculates a skeleton recognition result by forward propagation of the learning model 143 (step S202).
[0080] The loss function calculation unit 152 of the skeleton recognition device 100 calculates the error of the joint coordinates, the error of the bone length, and the error of the angle between the bones as loss values (step S203). l , w r The loss values are integrated using (step S204).
[0081] The learning unit 153 of the skeleton recognition device 100 adjusts the parameters of the learning model 143 by error backpropagation so as to minimize the loss value (step S205). The learning unit 153 outputs the learned learning model 143 (step S206).
[0082] 8 is a flowchart showing a processing procedure of the inference phase of the skeleton recognition device 100. As shown in FIG 8, the image data processing unit 154 of the skeleton recognition device 100 acquires image data from the camera 20 (step S301).
[0083] The image data processing unit 154 generates input data from a plurality of image data (step S302). The recognition processing unit 151 of the skeleton recognition device 100 inputs the input data to the trained learning model 143 (step S303).
[0084] The recognition processing unit 151 calculates a skeleton recognition result by forward propagation of the learning model 143 (step S304). The recognition processing unit 151 outputs the skeleton recognition result (step S305).
[0085] Next, the effect of the skeleton recognition device 100 according to the present embodiment will be described. The skeleton recognition device 100 inputs the input data of the teacher data to the learning model 143 to calculate the skeleton recognition result, and calculates the error of the bone length and the error of the angle between the bones by comparing the bone recognition result with the correct answer value of the teacher data, and calculates the loss value of the loss function. By adjusting the parameters of the learning model 143 so as to minimize the loss value of the loss function, it is possible to increase the contribution to the loss value when some joints are significantly misaligned, and when the error of some joints is large, it is possible to perform learning to improve such errors. In addition, by performing such learning, it is possible to calculate the skeleton recognition result of the person 15 by a one-stage process of inputting input data to the learned learning model 143, and the processing speed can be improved compared to the conventional technique 2 in which the processing is performed in two stages.
[0086] More specifically, the skeleton recognition device 100 calculates the error in the joint coordinates, the error in the joint coordinates, and the error in the joint coordinates by comparing with the correct values of the training data, and calculates the Loss value of the loss function, thereby enabling the parameters of the learning model 143 to be learned with high accuracy.
[0087] The skeleton recognition device 100 calculates the weight w based on the formula (7). l Calculate the weight w based on equation (8). r The weight w l , w r is used in the learning phase. l , w r By determining p The order of magnitude of the error in the joint coordinates L l , joint coordinate error L r Since L l ,L r While preventing overfitting, L l ,L r can have a positive impact on learning.
[0088] Fig. 9 is a diagram for explaining the effect of this embodiment. In Fig. 9, a skeleton recognition result 30a is a skeleton recognition result by conventional technique 1, in which the angle of the left knee is abnormal. A skeleton recognition result 30b is a skeleton recognition result by the skeleton recognition device 100 according to this embodiment, in which the angle of the left knee is normalized.
[0089] Next, an example of a hardware configuration of a computer that realizes the same functions as the skeleton recognition device 100 shown in the above embodiment will be described. Fig. 10 is a diagram showing an example of a hardware configuration of a computer that realizes the same functions as the skeleton recognition device of the embodiment.
[0090] 10, the computer 200 has a CPU 201 that executes various arithmetic processes, an input device 202 that accepts data input from a user, and a display 203. The computer 200 also has a reading device 204 that reads programs and the like from a storage medium, and a communication device 205 that transmits and receives data to and from the camera 20 and other external devices via a wired or wireless network. The computer 200 also has a RAM 206 that temporarily stores various information, and a hard disk device 207. The devices 201 to 207 are connected to a bus 208.
[0091] The hard disk device 207 stores a recognition processing program 207a, a loss function calculation program 207b, a learning program 207c, and a learning data processing program 207d. The CPU 201 reads out each of the programs 207a to 207d and loads them in the RAM 206.
[0092] The recognition processing program 207a functions as a recognition processing process 206a. The loss function calculation program 207b functions as a loss function calculation process 206b. The learning program 207c functions as a learning process 206c. The image data processing program 207d functions as an image data processing process 206d.
[0093] The processing of the recognition processing process 206a corresponds to the processing of the recognition processing unit 151. The processing of the loss function calculation process 206b corresponds to the processing of the loss function calculation unit 152. The processing of the learning process 206c corresponds to the processing of the learning unit 153. The processing of the image data processing process 206d corresponds to the processing of the image data processing unit 154.
[0094] It is not necessary that each of the programs 207a to 207d is stored in the hard disk device 207 from the beginning. For example, each program may be stored in a "portable physical medium" such as a flexible disk (FD), CD-ROM, DVD, magneto-optical disk, or IC card that is inserted into the computer 200. Then, the computer 200 may read and execute each of the programs 207a to 207d. [Explanation of symbols]
[0095] 100 Skeleton Recognition Device 110 Communications Department 120 Input section 130 Display section 140 Storage section 141 Teacher Data 142 Human Body Model 143 Learning Model 144 Image Data Table 150 Control section 151 Recognition processing section 152 Loss function calculation part 153 Learning Department 154 Image data processing section
Claims
1. a recognition processing unit that inputs training data into a learning model and calculates an output by forward propagation; a loss function calculation unit that calculates a first difference in bone length based on skeletal information that is a correct value of the training data and an output result of the recognition processing unit, a second difference in an angle between bones based on the skeletal information and the output result of the recognition processing unit, and a third difference in a joint position based on the skeletal information and the output result of the recognition processing unit; a learning unit that learns the learning model such that the third difference among the first difference, the second difference, and the third difference calculated by the loss function calculation unit converges, The loss function calculation unit sets a first weight to be multiplied by the first difference and a second weight to be multiplied by the second difference based on a converged value of the third difference. A skeleton recognition device comprising:
2. 2. The skeleton recognition device according to claim 1, wherein the loss function calculation unit calculates a value of the loss function by integrating a value obtained by multiplying the first difference by the first weight, a value obtained by multiplying the second difference by the second weight, and a value of the third difference.
3. 1. A computer implemented method of learning, comprising: Input the training data into the learning model and calculate the output results by forward propagation. calculating a first difference in bone length based on skeletal information, which is a correct value of the training data, and the output result, a second difference in angle between bones based on the skeletal information and the output result, and a third difference in joint position based on the skeletal information and the output result; training the learning model so that the third difference among the first difference, the second difference, and the third difference that have been calculated converges; A first weight to be multiplied by the first difference and a second weight to be multiplied by the second difference are set based on the converged value of the third difference. A learning method comprising: executing a process.
4. On the computer, Input the training data into the learning model and calculate the output results by forward propagation. calculating a first difference in bone length based on skeletal information, which is a correct value of the training data, and the output result, a second difference in angle between bones based on the skeletal information and the output result, and a third difference in joint position based on the skeletal information and the output result; training the learning model so that the third difference among the first difference, the second difference, and the third difference that have been calculated converges; A first weight to be multiplied by the first difference and a second weight to be multiplied by the second difference are set based on the converged value of the third difference. A learning program that causes a process to be executed.
Citation Information
Patent Citations
Body model creation method, body model creation program, storage medium storing it, storage medium storing body model data
JP2004013474A
Pose estimation device, pose estimation method and program
JP2015167008A
Parameter optimization device, parameter optimization method and program
JP2019079487A
Information processing device, information processing program, and information processing method
JP2019191974A
Cited By
Information processing device, information processing method, and program
JP7807693B1
