Learning device, processing device, learning method, posture detection model, program, and storage medium

By combining the learning model of real shots and depicted images, the second model is used to determine the input source, and the accuracy of the first model is reduced to improve posture detection. This solves the problem of low posture detection accuracy at the manufacturing site and achieves more efficient learning and detection effects. .

CN118696341APending Publication Date: 2024-09-24KK TOSHIBA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202280091814.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-02-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, there is a problem of reduced posture detection accuracy in environments such as manufacturing sites, especially due to limitations in viewing angle and resolution, resulting in false detection of operators and the environment, and model learning requires a large amount of data and takes a long time to prepare.

Method used

By learning a model that combines real-shot images and depicted images, the second model is used to determine the source of the input posture data, and the detection accuracy of the first model is reduced to deceive the second model, thereby improving the accuracy of posture detection.

Benefits of technology

It improves the accuracy of posture detection, especially in the complex environment of the manufacturing site, reduces the time for learning data preparation, and enhances the high-precision detection of human postures in real-shot images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118696341A
    Figure CN118696341A
Patent Text Reader

Abstract

A learning device of an embodiment learns a first model and a second model. When a real image in which a real person is captured or a rendering image rendered using a virtual human body model is input, the first model outputs posture data indicating the posture of the human body included in the real image or the rendering image. The second model determines whether the posture data is based on the live image or the rendering image when the posture data is input. The learning device learns the first model so that the accuracy of the determination based on the second model is reduced. The learning device improves the accuracy of learning the second model to a determination based on the second model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to a learning device, a processing device, a learning method, a posture detection model, a program, and a storage medium. Background Art

[0002] There is a technology for detecting the posture of a human body from an image, and this technology is required to improve the detection accuracy of the posture.

[0003] Prior art literature

[0004] Patent Literature

[0005] Patent Document 1: Japanese Patent Application Publication No. 2017-091249 Summary of the invention

[0006] Technical problem to be solved by the invention

[0007] The technical problem to be solved by the present invention is to provide a learning device, a processing device, a learning method, a posture detection model, a program and a storage medium that can improve the detection accuracy of posture.

[0008] Means for solving technical problems

[0009] The learning device of the embodiment learns a first model and a second model. When the first model is input with a real-life image of an actual person or a depicted image depicted using a virtual human body model, the first model outputs posture data representing the posture of a human body contained in the real-life image or the depicted image. When the second model is input with the posture data, it determines whether the posture data is based on the real-life image or the depicted image. The learning device causes the first model to learn so that the accuracy of the judgment based on the second model is reduced. The learning device causes the second model to learn so that the accuracy of the judgment based on the second model is improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Figure 1 It is a schematic diagram showing the configuration of the learning system according to the first embodiment.

[0011] Figure 2 This is a flowchart showing the learning method according to the first embodiment.

[0012] Figure 3 This is an example of drawing an image.

[0013] Figure 4 is an image illustrating annotations.

[0014] Figure 5 This is a schematic diagram illustrating the structure of the first model.

[0015] Figure 6This is a schematic diagram illustrating the structure of the second model.

[0016] Figure 7 It is a schematic diagram showing the learning method of the first model and the second model.

[0017] Figure 8 This is a schematic block diagram showing the configuration of a learning system according to a first modification example of the first embodiment.

[0018] Fig. 9 It is a schematic block diagram showing the configuration of an analysis system according to a second embodiment.

[0019] Fig.10 It is a diagram for explaining the processing of the analysis system according to the second embodiment.

[0020] Fig.11 It is a diagram for explaining the processing of the analysis system according to the second embodiment.

[0021] Fig.12 It is a diagram for explaining the processing of the analysis system according to the second embodiment.

[0022] Fig.13 It is a diagram for explaining the processing of the analysis system according to the second embodiment.

[0023] Fig.14 This is a flowchart showing the processing of the analysis system according to the second embodiment.

[0024] Fig.15 It is a block diagram showing the hardware structure of the system. DETAILED DESCRIPTION

[0025] Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[0026] In the present specification and each drawing, the same reference numerals are given to the same elements as those already described, and detailed description thereof will be appropriately omitted.

[0027] (First Embodiment)

[0028] Figure 1 It is a schematic diagram showing the configuration of the learning system according to the first embodiment.

[0029] The learning system 10 of the first embodiment is used for learning a model for detecting a posture of a person in an image. The learning system 10 includes a learning device 1 , an input device 2 , a display device 3 , and a storage device 4 .

[0030] The learning device 1 generates learning data used for learning a model. In addition, the learning device 1 learns a model. The learning device 1 is a general-purpose or dedicated computer. The function of the learning device 1 may be realized by a plurality of computers.

[0031] The input device 2 is used when the user inputs information to the learning device 1. The input device 2 includes, for example, at least one selected from a mouse, a keyboard, a microphone (sound input), and a touch panel.

[0032] The display device 3 displays information transmitted from the learning device 1 to the user. The display device 3 includes, for example, at least one selected from a monitor and a projector. A device having the functions of both the input device 2 and the display device 3, such as a touch panel, may be used.

[0033] The storage device 4 stores data and models related to the learning system 10. The storage device 4 includes, for example, at least one selected from a hard disk drive (HDD), a solid state drive (SSD), and a network attached hard disk (NAS).

[0034] The learning device 1 , the input device 2 , the display device 3 , and the storage device 4 are connected to each other via wireless communication, wired communication, a network (local area network or the Internet), or the like.

[0035] The learning system 10 will be described in more detail.

[0036] The learning device 1 learns two models, a first model and a second model. When a real-shot image or a depicted image is input, the first model detects the posture of a human body contained in the real-shot image or the depicted image. The real-shot image is an image obtained by photographing an actual person. The depicted image is an image depicted by a computer program using a virtual human body model. The depicted image is generated by the learning device 1.

[0037] The first model outputs posture data as a detection result. The posture data represents the posture of a person. The posture is represented by the positions of multiple parts of the human body. The posture can also be represented by the correlation between the parts. The posture can be represented by both the positions of multiple parts of the human body and the correlation between the parts. Hereinafter, the information represented by multiple parts and the correlation between the parts will be referred to as skeleton. Alternatively, the posture can be represented by the positions of multiple joints of the human body. Parts refer to parts of the body such as eyes, ears, nose, head, shoulders, upper arms, forearms, hands, chest, abdomen, thighs, calves, feet, etc. Joints refer to movable joints such as neck, elbows, wrists, waist, knees, ankles, etc. that connect at least part of the parts to each other.

[0038] The second model receives the posture data output from the first model and determines whether the posture data is obtained from the real-shot image or the rendered image.

[0039] Figure 2 This is a flowchart showing the learning method according to the first embodiment.

[0040] like Figure 2As shown, the learning method of the first embodiment includes preparation of learning data (step S1), preparation of a first model (step S2), preparation of a second model (step S3), and learning of the first model and the second model (step S4).

[0041] <Preparation of learning data>

[0042] In the preparation of the real shot image, a person existing in the real space is photographed with a camera or the like to obtain an image. The image may capture the entire person or only a part of the person. In addition, multiple people may be captured in the image. The image is preferably clear enough to at least roughly recognize the outline of the person. The prepared real shot image is stored in the storage device 4.

[0043] In the preparation of learning data, preparation and annotation of a depicted image are performed. In the preparation of a depicted image, modeling, skeleton creation, texture mapping, and rendering are performed. For example, a user performs these processes using the learning device 1.

[0044] In modeling, a three-dimensional human body model is created that mimics the human body. The human body model can be created using the open source 3DCG software Make Human. In Make Human, you can easily create a 3D model of the human body by specifying age, gender, muscle mass, weight, etc.

[0045] In addition to the human body model, an environmental model that simulates the human body's surroundings can also be created. The environmental model is generated by, for example, imitating objects (equipment, spare parts, manufactured objects, etc.), floors, walls, etc. The environmental model can be created by photographing actual objects, floors, walls, etc., and using the dynamic image to create it with Blender. Blender is an open source 3DCG software that has functions such as 3D model creation, rendering, and dynamic images. Through Blender, the human body model is configured on the created environmental model.

[0046] In skeleton making, bones are added to the human body model created by modeling. In Make Human, a human skeleton called Armature is prepared. By using it, it is easy to add skeleton data to the human body model. By adding skeleton data to the human body model, the skeleton is moved, thereby making the human body model move.

[0047] The motion data representing the actual human body motion (movement) can also be used in the human body model's motion. The motion data is obtained by a motion capture device. The motion capture device can use PERCEPTION NEURON2 of Noitom. By using the motion data, the human body model can reproduce the actual human body motion.

[0048] In texture mapping, textures are provided to the human body model and the environment model. For example, clothes are given to the human body model. Prepare images of clothes to be given to the human body model, and adjust the images to fit the size of the human body model. Paste the adjusted images onto the human body model. For the environment model, paste images of actual objects, floors, walls, etc.

[0049] In rendering, a human body model and an environment model to which texture is applied are used to generate a depicted image. The generated depicted image is stored in the storage device 4. For example, the human body model is moved on the environment model. For example, while the human body model is moved, the human body model and the environment model viewed from multiple viewpoints are rendered at predetermined intervals. Thus, multiple depicted images are generated.

[0050] Figure 3 (a) and Figure 3 (b) is an example of depicting an image.

[0051] exist Figure 3 In the depicted image shown in (a) of FIG. 1 , the human body model 91 is photographed facing backward. Figure 3 In the depicted image shown in (b), a human model 91 is photographed from above. In addition, a shelf 92a, a wall 92b, and a floor 92c are photographed as an environmental model. Texture mapping is used to give texture to the human model and the environmental model. Texture mapping is used to give the human model 91 a uniform used in actual work. Parts, tools, and jigs used in work are given on the shelf 92a. Fine shapes, color changes, tiny dirt, etc. are given to the wall 92b.

[0052] exist Figure 3 In the depicted image shown in (a), the feet of the human model 91 are not visible at the end of the image. Figure 3 In the depicted image shown in (b), the chest, abdomen, lower body, etc. of the human body model 91 are not captured. Figure 3 (a) and Figure 3 As shown in b), the depicted image is when at least a portion of the human body model 91 is observed from multiple directions.

[0053] In the annotation, data related to posture is given to the real-shot image and the depicted image. The form of the annotation is based on the COCO Keypoint Detection Task, for example. In the annotation, data representing the posture is given to the human body contained in the image. For example, annotations are used to represent multiple parts of the human body, the coordinates of each part, the connection relationship between the parts, etc. In addition, each part is given any information of "existing in the image", "existing outside the image", or "existing in the image but blocked by something". For the annotation of the depicted image, the Armature added when the human body model is created can be used.

[0054] Figure 4 (a) and Figure 4 (b) is an image illustrating an annotation.

[0055] Figure 4 (a) shows a depicted image including a human body model 91. Figure 4 In the example (a), the environment model is not included. The annotated image can also be Figure 3 (a) and Figure 3 As shown in (b) of , it includes an environmental model. Figure 4 As shown in (b), Figure 4 The human body model 91 included in the depicted image of (a) annotates various parts of the body. Figure 4 In the example of (b), a head 91a, a left shoulder 91b, a left upper arm 91c, a left forearm 91d, a left hand 91e, a right shoulder 91f, a right upper arm 91g, a right forearm 91h, and a right hand 91i of the human body model 91 are shown.

[0056] Through the above-described processing, learning data including real-shot images, annotations for the real-shot images, depicted images, and annotations for the depicted images are prepared.

[0057] <Preparation of the first model>

[0058] The first model is prepared by learning the model of the initial state using the prepared learning data. Alternatively, a model that has been learned using real-shot images may be prepared, and the model may be learned using depicted images to prepare the first model. In this case, in step S1, the preparation of real-shot images and annotation of the real-shot images may be omitted. For example, as the model that has been learned using real-shot images, Open Pose, which is a pose detection model, may be used.

[0059] Figure 5 This is a schematic diagram illustrating the structure of the first model.

[0060] The first model includes multiple neural networks. Specifically, Figure 5 As shown, the first model 100 includes a Convolutional Neural Network (CNN) 101 , a first block (branch 1 ) 110 , and a second block (branch 2 ) 120 .

[0061] First, the image IM input to the first model 100 is input to the CNN 101. The image IM is a real-shot image or a depicted image. The CNN 101 outputs a feature map F. The feature map F is input to the first block 110 and the second block 120, respectively.

[0062] The first block 110 outputs a Part Confidence Map (PCM) indicating the existence probability of a human body part for each pixel. The second block 120 outputs Part Affinity Fields (PAF), which is a vector indicating the association between parts. The first block 110 and the second block 120 include, for example, CNN. A plurality of levels including the first block 110 and the second block 120 are provided from level 1 to level t (t≥2).

[0063] The specific structures of CNN101, first block 110 and second block 120 only need to be able to output feature map F, PCM and PAF respectively. The structures of CNN101, first block 110 and second block 120 can adopt known structures.

[0064] The first block 110 outputs S as PCM. The output of the first block 110 of the first stage is set to S 1 ρ 1 Let S be the inference output from the first block 110 of stage 1. 1 It is expressed by the following formula 1.

[0065] [Formula 1]

[0066] S 1 =ρ 1 (F)

[0067] The output of the second block 120 is L as the PAF. The output of the second block 120 of the first stage is set to L 1 . 1 Let L be the inference output from the second block 120 of stage 1. 1 It is expressed by the following formula 2.

[0068] [Formula 2]

[0069] L 1 =φ 1 (F)

[0070] After stage 2, detection is performed using the output of the previous stage and the feature map F. PCM and PAF after stage 2 are expressed by the following formulas 3 and 4.

[0071] [Formula 3]

[0072] S t =ρ 1 (F,S t-1 , L t-1 )

[0073] [Formula 4]

[0074] L t =φ1 (F,S t-1 , L t-1 )

[0075] The first model 100 is learned so that, for each of the PCM and PAF, the mean square error between the correct value and the detected value is minimized. j , set the correct value to S* j , then the loss function in level t is expressed by the following formula 5.

[0076] [Formula 5]

[0077]

[0078] P is a set of pixels p in the image. W(p) represents a binary mask. If there is no annotation in pixel p, W(p) = 0. Otherwise, W(p) = 1. By using this mask, it is possible to prevent the loss function from increasing when a correct detection is made due to the lack of annotation.

[0079] For PAF, if the detection value of PAF in the connection c between the parts is set to L C , set the correct value to L* C , then the loss function in level t is expressed by the following formula 6.

[0080] [Formula 6]

[0081]

[0082] According to Formulas 5 and 6, the overall loss function is represented by the following Formula 7. In Formula 7, T represents the total number of stages. For example, T=6.

[0083] [Formula 7]

[0084]

[0085] In order to calculate the loss function, the correct values ​​of PCM and PAF are defined. The definition of the correct value of PCM is explained. PCM represents the probability that a human body part exists in a two-dimensional plane. When a specific part is captured in an image, PCM takes an extreme value. A PCM is generated for each part. When multiple human bodies are captured in an image, the parts of each human body are recorded in the same map.

[0086] First, create the correct value of the PCM for each body in the image. j、k ∈R 2Let σ be the coordinates of the part j of the k-th person included in the image. The correct value of the PCM of the k-th body part j in the pixel p in the image is expressed by the following formula 8. σ is a constant defined to adjust the variance of the extreme value.

[0087] [Formula 8]

[0088]

[0089] The correct value of PCM is defined as the correct value of PCM of each human body obtained by Formula 8 summarized by the maximum value function. Therefore, the correct value of PCM is defined by the following Formula 9. The maximum value is used instead of the average value in Formula 9 in order to clearly maintain the extreme value when extreme values ​​exist in pixels near each other.

[0090] [Formula 9]

[0091]

[0092] The definition of the correct value of PAF is explained. PAF represents the correlation between parts. Pixels located between specific parts have a unit vector v. Other pixels have a zero vector. PAF is defined as a set of these vectors. If the connection between parts from part j1 to part j2 of the kth person is c, the correct value of PAF of the connection c of the kth person in the pixel p in the image is expressed by the following formula 10.

[0093] [Formula 10]

[0094]

[0095] [The unit vector v is the j1、k To x j2、k The vector is defined by the following formula 11.

[0096] [Formula 11]

[0097]

[0098] Using the threshold σ1, p is defined to be located in the connection c of the kth person using the following formula 12. v with a vertical sign is a unit vector perpendicular to v.

[0099] [Formula 12]

[0100]

[0101] The correct value of PAF is defined as the value obtained by taking the average of the correct values ​​of PAF for each person obtained by formula 10. Therefore, the correct value of PAF is expressed by the following formula 13. c (p) is the number of non-zero vectors in pixel p.

[0102] [Formula 13]

[0103]

[0104] For the model that has been learned using the real-shot image, learning is performed using the depicted image. In learning, the depicted image and annotation prepared in step S1 are used. For example, the steepest descent method is used. The steepest descent method is one of the optimization algorithms that searches for the minimum value of a function from the slope of the function. By learning using the depicted image, a first model is prepared.

[0105] <Preparation of the second model>

[0106] Figure 6 This is a schematic diagram illustrating the structure of the second model.

[0107] like Figure 6 As shown, the second model 200 includes a convolution layer 210, a maximum pooling layer 220, a dropout layer 230, a flattening layer 240, and a fully connected layer 250. The numbers recorded in the convolution layer 210 indicate the number of channels. The numbers recorded in the fully connected layer 250 indicate the dimension of the output. The PCM and PAF, which are the outputs of the first model, are input to the second model 200. When data representing a posture is input from the first model 100, the second model 200 outputs a determination result of whether the data is based on a real-shot image or a depicted image.

[0108] For example, the PCM output from the first model 100 has 19 channels. The PAF output from the first model 100 has 38 channels. When the PCM and PAF are input to the second model 200, normalization is performed so that the input data has a value in the range of 0 to 1. In normalization, the value of each pixel of the PCM and PAF is divided by the maximum value that can be taken. The maximum value of the PCM and the maximum value of the PAF are obtained by preparing a plurality of real-shot images and depicted images separately from the data set used for learning and based on the PCM and PAF output from the first model 100.

[0109] The normalized PCM and PAF are input to the second model 200. The second model 200 has a multi-layer neural network including a convolution layer 210. PCM and PAF are respectively input to two convolution layers 210. The output information of the convolution layer 210 passes through an activation function. As an activation function, a ramp function (normalized linear function) is used. The output of the ramp function is input to a flattening layer 240 and processed to be input to a fully connected layer 250.

[0110] In order to suppress over-learning, a dropout layer 230 is provided before the flattening layer 240. The output information of the flattening layer 240 is input to the fully connected layer 250 and output as 256-dimensional information. The output information passes through the ramp function as an activation function and is connected to 512-dimensional information. The connected information is once again input to the fully connected layer 250 with the ramp function as the activation function. The output 64-dimensional information is input to the fully connected layer 250. Finally, the output information of the fully connected layer 250 passes through the S-shaped function as an activation function, and outputs the probability that the input to the first model 100 is a real-shot image. When the output probability is greater than 0.5, the learning device 1 determines that the input to the first model 100 is a real-shot image. When the output probability is less than 0.5, the learning device 1 determines that the input to the first model 100 is a depicted image.

[0111] In the learning of any model, binary cross entropy is used as the loss function. When the probability that the input of a certain image n to the first model 100 is a real shot image is set to P realn When , the loss function Fd of the second model 200 is defined by the following formula 14. N represents all images in the data set. n is the correct label given to the input image n. If n is a real-life image, then t n = 1. If n is a depicted image, then t n =0.

[0112] [Formula 14]

[0113]

[0114] Learning is performed in such a way that the loss function defined in Formula 14 is minimized. The optimization method uses Adam, for example. In the steepest descent method, the same learning rate is used for all parameters. In contrast, in Adam, by considering the mean square and average of the gradient, it is possible to perform an appropriate weight update on each parameter. As a result of the learning, a second model 200 is prepared.

[0115] <Learning the first and second models>

[0116] The first model 100 is learned using the prepared second model 200. In addition, the second model 200 is learned using the prepared first model 100. The learning of the first model 100 and the learning of the second model 200 are performed alternately.

[0117] Figure 7 It is a schematic diagram showing the learning method of the first model and the second model.

[0118] An image IM is input to the first model 100. The image IM is a real-shot image or a depicted image. The first model 100 outputs a PCM and a PAF. Each of the PCM and the PAF is input to the second model 200. When input to the second model 200, the PAM and the PAF are normalized as described above.

[0119] The learning of the first model 100 is described. The first model 100 is learned so that the accuracy of the judgment based on the second model 200 is reduced. In other words, the first model 100 is learned so as to deceive the second model 200. For example, the first model 100 is learned so that when a depicted image is input, the second model 200 outputs posture data that is judged to be a real-shot image.

[0120] During the learning of the first model 100, the updating of the weight of the second model 200 is stopped so that the learning of the second model 200 is not performed. For example, only the depicted image is used as the input to the first model 100. This is to prevent the first model 100 from being learned in a way that deceives the second model 200 by reducing the detection accuracy of the real-shot image that can be detected. In order to make the first model 100 learn to deceive the second model 200, when the PCM and PAF are input to the second model 200, the correct label is reversed.

[0121] The first model 100 is learned in such a manner as to minimize the loss functions of the first model 100 and the second model 200. It is possible to prevent the first model 100 from being learned in such a manner that the second model 200 cannot be detected in any manner regardless of the input by using the loss function of the second model 200 and the loss function of the first model 100 at the same time. Based on Formulas 7 and 14, the loss function fg of the learning stage of the first model 100 is expressed by the following Formula 15. λ is a parameter for adjusting the tradeoff between the loss function of the first model 100 and the loss function of the second model 200. For example, 0.5 is set as λ.

[0122] [Formula 15]

[0123] f g =λf+f d

[0124] The learning of the second model 200 is described. The second model 200 is learned so that the accuracy of the determination is improved. That is, as a result of the learning, the first model 100 outputs posture data that deceives the second model 200. The second model 200 is learned so that it can correctly determine whether the posture data is based on a real-shot image or a depicted image.

[0125] During the learning of the second model 200, the updating of the weights of the first model 100 is stopped so that the learning of the first model 100 is not performed. For example, both the real-shot image and the depicted image are input to the first model 100. The second model 200 is learned so that the loss function defined by Formula 14 is minimized. As in the creation of the second model 200, Adam can be used as the optimization method.

[0126] The learning of the first model 100 and the learning of the second model 200 are performed alternately. The learning device 1 stores the learned first model 100 and second model 200 in the storage device 4 .

[0127] The effects of the first embodiment will be described.

[0128] In recent years, methods for detecting human postures based on RGB images captured by cameras and depth images captured by depth cameras have been studied. In addition, posture detection has been attempted as a measure to improve productivity. However, in manufacturing sites, the accuracy of posture detection may be significantly reduced depending on the posture of the operator and the working environment.

[0129] Images captured at the manufacturing site are mostly subject to restrictions on viewing angles, resolutions, and the like. For example, at the manufacturing site, when the camera is configured in a manner that does not become an obstacle to the work, the camera is preferably set above the operator. In addition, at the manufacturing site, there are equipment, products, etc., and there are many cases where a part of the operator cannot be captured. In previous methods such as Open Pose, posture detection is greatly reduced for images of the human body captured from above, images that only capture a part of the operator, etc. In addition, at the manufacturing site, there are equipment, products, fixtures, etc. These may also be mistakenly detected as human bodies.

[0130] For images of the worker captured from above or images in which part of the worker is not captured, it is preferable to fully learn the model in order to improve the accuracy of posture detection. However, learning the model requires a large amount of learning data. If the worker is actually photographed from above to prepare the images, it will take a lot of time to perform annotation on each image.

[0131] In order to shorten the time required to prepare learning data, it is effective to use a virtual human model. By using a virtual human model, it is possible to easily generate (draw) images of the operator taken from any direction. In addition, by using the skeleton data corresponding to the human model, it is possible to easily complete the annotation of the drawn image.

[0132] On the other hand, depicted images have less noise than real-life images. Noise refers to fluctuations in pixel values, defects, etc. For example, a depicted image that only renders a human body model contains no noise at all and is too clear compared to a real-life image. Texture mapping can be used to give a depicted image a sense of texture, but even in this case, the depicted image is clearer than the real-life image. Therefore, if a real-life image is input into a model learned using a depicted image, there is a problem of low accuracy in detecting the posture of the real-life image.

[0133] Regarding this technical problem, in the first embodiment, the first model 100 for detecting posture is learned using the second model 200. When posture data is input, the second model 200 determines whether the posture data is based on a real-shot image or a depicted image. The first model 100 is learned so that the accuracy of the determination based on the second model 200 is reduced. The second model 200 is learned so that the accuracy of the determination is improved.

[0134] For example, the first model 100 is learned so that when a real-shot image is input, the second model 200 determines it as posture data based on the depicted image. In addition, the first model 100 is learned so that when a depicted image is input, the second model 200 determines it as posture data based on the real-shot image. As a result, when a real-shot image is input, the first model 100 can detect posture data with high accuracy, similar to the depicted image used in learning. In addition, the accuracy of the determination of the second model 200 is improved through learning. By alternately performing the learning of the first model 100 and the learning of the second model 200, the first model 100 can detect the posture data of the human body contained in the real-shot image with higher accuracy.

[0135] In the learning of the second model 200, it is preferred to use PCM, which is data representing the positions of multiple parts of the human body, and PAF, which is data representing the correlation between the parts. PCM and PAF have a high correlation with the posture of the person in the image. In the case where the learning of the first model 100 is insufficient, the first model 100 cannot appropriately output PCM and PAF based on the depicted image. As a result, when the PCM and PAF output from the first model 100 are based on the depicted image, the second model 200 can easily make a judgment. In order to reduce the accuracy of the judgment based on the second model 200, the first model 100 is learned to be able to output more appropriate PCM and PAF not only based on the real-shot image but also based on the depicted image. As a result, PCM and PAF suitable for posture detection can be output more appropriately. As a result, the accuracy of posture detection based on the first model 100 can be improved.

[0136] At least a portion of the depicted image used in learning the first model 100 is preferably an image of the human body model taken from above. As described above, in the manufacturing site, in order not to become an obstacle to the work, the camera can be arranged according to the operator. By using the depicted image of the human body model taken from above for learning the first model 100, the posture can be detected with higher accuracy for the image of the operator taken at the actual manufacturing site. In addition, "above" refers not only to the position directly above the human body model, but also to a position higher than the human body model.

[0137] (First Modification)

[0138] Figure 8 This is a schematic block diagram showing the configuration of a learning system according to a first modification example of the first embodiment.

[0139] like Figure 8 As shown, the learning system 11 of the first variant further includes a computing device 5 and a detector 6. The detector 6 is installed on a person in the real space to detect the person's movements. The computing device 5 calculates the position of each part of the human body at each time based on the detected movement, and stores the calculation result in the storage device 4.

[0140] For example, the detector 6 includes at least one of an acceleration sensor and an angular velocity sensor. The detector 6 detects the acceleration or angular velocity of each part of the human body. The calculation device 5 calculates the position of each part based on the detection result of the acceleration or angular velocity.

[0141] The number of detectors 6 is appropriately selected according to the number of parts to be distinguished. Figure 4 When marking the head, shoulders, upper arms, forearms, and hands of a person photographed from above, as shown in FIG. 1 , 10 detectors 6 are used. The 10 detectors are respectively installed at the stable parts of the parts of the person in the real space. For example, detectors are installed at the back of the hand, the middle part of the forearm, the middle part of the upper arm, the shoulder, the back of the neck, and the periphery of the head, where the shape changes relatively little, to obtain the position data of these parts.

[0142] The learning device 1 refers to the position data of each part stored in the storage device 4, and makes the human body model take the same posture as the person in the real space. The learning device 1 generates a depicted image using the human body model with the posture set. For example, the person equipped with the detector 6 takes the same posture as the actual operation. As a result, the posture of the human body model captured in the depicted image is close to the posture during the actual operation.

[0143] According to this method, it is not necessary for a person to specify the positions of the various parts of the human body model. In addition, it is possible to avoid the posture of the human body model being completely different from the posture of the person during the actual operation. By making the posture of the human body model close to the posture during the actual operation, the detection accuracy of the posture of the first model can be improved.

[0144] (Second Embodiment)

[0145] Fig. 9 It is a schematic block diagram showing the configuration of an analysis system according to a second embodiment.

[0146] Figure 10 to Figure 13 It is a diagram for explaining the processing of the analysis system according to the second embodiment.

[0147] The analysis system 20 of the second embodiment analyzes the motion of a person using the first model, which is the posture detection model learned by the learning system of the first embodiment. Fig. 9 As shown, the analysis system 20 further includes a processing device 7 and a camera device 8 .

[0148] The camera device 8 captures a person (first person) working in the actual space and generates an image. Hereinafter, the person working captured by the camera device 8 is also referred to as an operator. The camera device 8 can obtain a static image or a dynamic image. When a dynamic image is obtained, the camera device 8 cuts out a static image from the dynamic image. The camera device 8 stores the image captured by the operator in the storage device 4.

[0149] The operator repeatedly performs a predetermined first operation. The camera device 8 repeatedly photographs the operator from the beginning to the end of one first operation. The camera device 8 stores a plurality of images obtained by repeated photographing in the storage device 4. For example, the camera device 8 photographs the operator who repeatedly performs a plurality of first operations. Thus, a plurality of images obtained by photographing a plurality of first operations are stored in the storage device 4.

[0150] The processing device 7 accesses the storage device 4 and inputs the image (real image) of the operator into the first model. The first model outputs the posture data of the operator in the image. For example, the posture data includes the positions of multiple parts and the correlation between the parts. The processing device 7 inputs the multiple images of the operator in the first operation into the first model in sequence. In this way, the posture data of the operator at each moment is obtained.

[0151] As an example, the processing device 7 inputs an image to the first model and obtains Fig.10The posture data shown. The posture data includes the positions of the head center of gravity 97a, the left shoulder center of gravity 97b, the left elbow 97c, the left wrist 97d, the left hand center of gravity 97e, the right shoulder center of gravity 97f, the right elbow 97g, the right wrist 97h, the right hand center of gravity 97i and the spine 97j. In addition, the posture data includes the data of the bones connecting them.

[0152] The processing device 7 uses a plurality of posture data to generate time series data representing the movement of the part with the passage of time. For example, the processing device 7 extracts the position of the center of gravity of the head from each posture data. The processing device 7 arranges the position of the center of gravity of the head according to the time when the image that is the basis of the posture data is obtained. For example, data is generated that associates the time and the position as one record, and a plurality of data are sorted in the order of time, thereby obtaining time series data representing the movement of the head with the passage of time. The processing device 7 generates time series data for at least one part.

[0153] The processing device 7 estimates the cycle of the first operation based on the generated time series data. Alternatively, the processing device 7 estimates the range of the motion based on one first operation in the time series data.

[0154] The processing device 7 stores the information obtained by the processing in the storage device 4. The processing device 7 may also output the above to the outside. For example, the output information includes the calculated period. The information may include a value obtained by calculation using the period. In addition to the period, the information may also include time series data, the time of each image used in the calculation of the period, etc. The information may include a part of the time series data representing the action of a first operation.

[0155] The processing device 7 may also output information to the display device 3. Alternatively, the processing device 7 may also output a file containing information in a specified format such as CSV. The processing device 7 may also use FTP (File Transfer Protocol) or the like to send data to an external server. Alternatively, the processing device 7 may also perform database communication and insert data into an external database server using ODBC (Open Database Connectivity) or the like.

[0156] exist Fig.11 (a) Fig.11 (b) Fig.12 (b) and Fig.12 In (c), the horizontal axis represents time, and the vertical axis represents the position (depth) in the vertical direction.

[0157] exist Fig.11 (c) Fig.11 (d) Fig.12 (d) and Fig.13In (a), the horizontal axis represents time and the vertical axis represents distance. In these figures, the larger the distance value, the closer the distance between the two objects is and the stronger the correlation is.

[0158] Fig.12 (a) and Fig.13 In (b), the horizontal axis represents time, and the vertical axis represents a scalar value.

[0159] Fig.11 (a) is an example of time series data generated by the processing device 7. For example, Fig.11 (a) is time series data indicating the time length T of the operator's left hand movement. First, the processing device 7 Fig.11 Extract part of the data with a time length of X from the time series data shown in (a).

[0160] The time length X is preset by, for example, an operator or a manager of the analysis system 20. As the time length X, a value corresponding to the approximate cycle of the first operation is set. The time length T may be preset or may be determined based on the time length X. For example, the processing device 7 inputs a plurality of images captured during the time length T into the first model to obtain posture data. The processing device 7 generates time series data of the time length T using these posture data.

[0161] The processing device 7 is different from the partial data, and from the time series data of the time length T, at a predetermined time interval from time t0 to t n Extract data of time length X. Specifically, if Fig.11 As shown by the arrow in (b), the processing device 7 extracts the time series data from time t0 to t n In the entire range, for example, data of time length X is extracted every 1 frame. Fig.11 In (b), only the time width of a portion of the extracted data is indicated by an arrow. Fig.11 The information extracted in step (b) is referred to as first comparison data.

[0162] The processing device 7 calculates in sequence Fig.11 The partial data extracted in step (a) and in Fig.11 The processing device 7 calculates the distance between each first comparison data extracted in the step (b) shown in FIG. 1 . The processing device 7 calculates the DTW (Dynamic Time Warping) distance between the partial data and the first comparison data, for example. By using the DTW distance, the strength of the correlation can be obtained regardless of the length of time for the repeated action. As a result, information on the distance of the time series data relative to the partial data at each moment is obtained. Fig.11 (c) of shows this point. Fig.11The information including the distance at each time shown in (c) is referred to as the first correlation data.

[0163] Next, the processing device 7 sets a temporary similar point in the time series data in order to estimate the cycle of the working time of the operator M. Specifically, the processing device 7 sets a temporary similar point in the time series data. Fig.11 In the first correlation data shown in (c), a plurality of candidate points α1 to α2 are randomly set within the range of the deviation time N, with the time after the time μ elapses from the time t0 as the reference. m .exist Fig.11 In the example shown in (c), three candidate points are randomly set. The time μ and the deviation time N are set in advance by, for example, an operator or a manager.

[0164] The processing device 7 creates a random set of candidate points α1 to α m Then, find the normal distribution and Fig.11 The processing device 7 sets the candidate point with the highest cross-correlation coefficient as the temporary similar point. Fig.11 The candidate point α2 shown in (c) is set as a temporary similar point.

[0165] Based on the temporary similar point (candidate point α2), the processing device 7 again takes the time after the elapse of time μ as a reference, and randomly sets a plurality of candidate points α1 to α2 within the range of the deviation time N. m By repeating this step until time t n ,like Fig.11 As shown in (d), at time t0~t n Set multiple temporary similar points β1~β k .

[0166] The processing device 7 generates Fig.12 As shown in (a), it includes the temporary similar points β1 to β k Multiple normally distributed data with peaks. Later, we will include Fig.12 The information of the plurality of normal distributions shown in (a) is called the second comparison data. The processing device 7 calculates Fig.11 (c) and Fig.11 The first related data shown in (d) and Fig.12 The mutual correlation coefficient (first mutual correlation coefficient) between the second comparison data shown in A.

[0167] Processing device 7 such as Fig.12 (b)~ Fig.12 (d) Fig.13 (a) and Fig.13 As shown in (b), the other data are compared with Fig.11 (a)~ Fig.12 The same steps as (a). Fig.12 (b)~ Fig.13 (b) shows only the information after time t1.

[0168] For example, the processing device 7 is as follows Fig.12 As shown in (b), the partial data of the time length X between time t1 and time t2 is extracted. Then, the processing device 7 Fig.12 As shown in (c), a plurality of first comparison data of time length X are extracted. The processing device 7 calculates the distance between the partial data and each first comparison data, thereby Fig.12 As shown in (d), the first related data is generated.

[0169] Processing device 7 such as Fig.12 As shown in (d), a plurality of candidate points α1 to α m , extract the temporary similar point β. By repeating this operation, as Fig.13 As shown in (a), a plurality of temporary similarity points β1 to β k Then, the processing device 7 is as follows Fig.13 As shown in (b), the temporary similarity points β1 to β k The second comparison data is calculated Fig.12 (d) and Fig.13 The first correlation data shown in (a) is Fig.13 The mutual correlation coefficient between the second comparison data shown in (b).

[0170] The processing device 7 repeats the above steps after time t2 to calculate the mutual correlation coefficient for each partial data. Then, the processing device 7 extracts the temporary similarity points β1 to β2 that obtain the highest mutual correlation coefficient. k As the true similar point. The processing device 7 obtains the cycle of the first operation of the operator by calculating the time interval between the true similar points. The processing device 7 can, for example, calculate the average time between adjacent true similar points on the time axis and use the average time as the cycle of the first operation. Alternatively, the processing device 7 extracts the time series data between the true similar points as the time series data representing the action of a first operation.

[0171] Here, an example of analyzing the cycle of the first operation of the operator by the analysis system 20 of the second embodiment is described. The use of the analysis system 20 of the second embodiment is not limited to this example. For example, for a person who repeatedly performs a prescribed action, it can be widely used to analyze the cycle thereof, extract time series data representing a single action, etc.

[0172] Fig.14 This is a flowchart showing the processing of the analysis system according to the second embodiment.

[0173] The camera device 8 captures the person and generates an image (step S11). The processing device 7 inputs the image into the first model (step S12) and obtains posture data (step S13). The processing device 7 uses the posture data to generate time series data related to the parts (step S14). The processing device 7 calculates the action cycle of the person based on the time series data (step S15). The processing device 7 outputs information based on the calculated cycle to the outside (step S16).

[0174] According to the analysis system 20, the cycle of a repeatedly executed prescribed action can be automatically analyzed. For example, at a manufacturing site, the cycle of the first operation of an operator can be automatically analyzed. Therefore, there is no need for the operator's own record or report, the operation observation or cycle measurement by a technician for business improvement, etc. The cycle of the operation can be easily analyzed. In addition, since the analysis result does not depend on the analyst's experience, knowledge, judgment, etc., the cycle can be obtained with higher accuracy.

[0175] In addition, the analysis system 20 uses the first model learned by the learning system of the first embodiment when performing analysis. Based on the first model, the posture of the photographed person can be detected with high accuracy. By using the posture data output from the first model, the accuracy of the analysis can be improved. For example, the accuracy of the period estimation can be improved.

[0176] Fig.15 It is a block diagram showing the hardware structure of the system.

[0177] For example, the learning device 1 is a computer, and includes a ROM (Read Only Memory) 1a, a RAM (Read Access Memory) 1b, a CPU (Central Processing Unit) 1c, and a HDD (Hard Disk Drive) 1d.

[0178] The ROM 1a stores a program for controlling the operation of the computer. The ROM 1a stores a program necessary for the computer to realize the above-mentioned processing.

[0179] RAM1b functions as a storage area where the program stored in ROM1a is expanded. CPU1c includes a processing circuit. CPU1c reads the control program stored in ROM1a and controls the operation of the computer according to the control program. In addition, CPU1c expands various data obtained by the operation of the computer in RAM1b. HDD1d stores information required for reading and information obtained during reading. HDD1d can be used as Figure 1 The storage device 4 shown functions.

[0180] The learning device 1 may include an eMMC (embedded Multi Media Card), an SSD (Solid State Drive), an SSHD (Solid State Hybrid Drive), or the like instead of the HDD 1 d.

[0181] In addition, the same method can also be applied to the computing device 5 in the learning system 11 and the processing device 7 in the analysis system 20. Fig.15 Alternatively, in the learning system 11 , one computer may function as the learning device 1 and the computing device 5 . In the analysis system 20 , one computer may function as the learning device 1 and the processing device 7 .

[0182] By using the learning device, learning system, learning method, and learned first model described above, it is possible to detect the posture of a human body in an image with higher accuracy. In addition, by using a program for operating a computer as a learning device, the same effect can be obtained.

[0183] In addition, by using the processing device, analysis system, and analysis method described above, time series data can be analyzed with higher accuracy. For example, the action cycle of a person can be obtained with higher accuracy. The same effect can be obtained by using a program for causing a computer to act as a processing device.

[0184] The processing of the above-mentioned various data can be recorded as a program that can be executed by a computer and is stored on a disk (floppy disk, hard disk, etc.), an optical disk (CD-ROM, CD-R, CD-RW, DVD-ROM, DVD±R, DVD±RW, etc.), a semiconductor memory or other recording media.

[0185] For example, the information recorded in the recording medium can be read by a computer (or embedded system). In the recording medium, the recording format (storage format) is arbitrary. For example, the computer reads out a program from the recording medium and causes the CPU to execute instructions recorded in the program according to the program. In the computer, the acquisition (or reading) of the program can be performed through a network.

[0186] Several embodiments of the present invention are illustrated above, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These new embodiments can be implemented in various other ways, and various omissions, substitutions, changes, etc. can be made without departing from the scope of the main purpose of the invention. These embodiments and their modifications are included in the scope or main purpose of the invention, and are included in the invention described in the claims and the scope of their equivalents. In addition, the above-mentioned embodiments can be implemented in combination with each other.

Claims

1. A learning device that causes a first model and a second model to learn, wherein the first model, when input with a real-life image of an actual person or a depicted image depicted using a virtual human body model, outputs posture data representing the posture of a human body contained in the real-life image or the depicted image, and the second model, when input with the posture data, determines whether the posture data is based on the real-life image or the depicted image, characterized in that: The learning device causes the first model to learn so that the accuracy of the determination based on the second model decreases, The learning device learns the second model so that the accuracy of determination based on the second model is improved.

2. The learning device according to claim 1, characterized in that During the learning of the first model, the updating of the second model is stopped. During the learning of the second model, the updating of the first model is stopped.

3. The learning device according to claim 1 or 2, characterized in that: The learning of the first model and the learning of the second model are performed alternately.

4. The learning device according to claim 1, characterized in that Using a plurality of the depicted images to cause the first model to learn; At least a part of the plurality of drawn images is an image obtained by drawing a part of the human body model from above.

5. The learning device according to any one of claims 1 to 4, characterized in that The posture data includes data indicating positions of a plurality of parts of the human body and data indicating relationships between the parts. 6 . A processing device that inputs a plurality of work images of a person at work into the first model learned by the learning device according to claim 1 , and acquires time series data indicating changes in posture with respect to time.

7. A learning method, wherein a first model and a second model are caused to learn, wherein the first model, when inputted with a real-life image of an actual person or a depicted image depicted using a virtual human body model, outputs posture data representing the posture of a human body contained in the real-life image or the depicted image, and the second model, when inputted with the posture data, determines whether the posture data is based on the real-life image or the depicted image, The learning method is characterized in that The first model is learned so that the accuracy of the judgment based on the second model decreases, The second model is learned so that the accuracy of determination based on the second model is improved.

8. A posture detection model, comprising the first model learned by the learning method according to claim 7.

9. A program for causing a computer to learn a first model and a second model, wherein the first model, when inputted with a real-life image of an actual person or a depicted image depicted using a virtual human body model, outputs posture data representing the posture of a human body contained in the real-life image or the depicted image, and the second model, when inputted with the posture data, determines whether the posture data is based on the real-life image or the depicted image, The program causes the first model to learn so that the accuracy of the determination based on the second model decreases, The program causes the second model to be learned so that accuracy of determination based on the second model is improved.

10. A storage medium storing the program according to claim 9.