Bone detection device and its use method, training method and training device
By using learnable components in the skeleton detection device, motion features are learned from image sequences and the bones of moving objects are detected, which solves the problem of dependence on prior knowledge in the existing technology and achieves a wide range of skeleton detection of different moving objects. Applicability and automation.
Patent Information
- Application Number
- CN202111192693.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2041-10-13
AI Technical Summary
Existing bone detection methods rely on prior knowledge, are not versatile, and cannot effectively detect the bones of moving objects with different joint structures.
A bone detection device including a learnable component is used to learn movement characteristics through the movement information of moving objects in image sequences, detect bones, and avoid relying on prior knowledge of the joint structure of the moving object to be detected. It is suitable for various types of joint structures. moving objects.
It achieves greater versatility in detecting bones of various types of moving objects, avoids the problem of obtaining annotated image data due to lack of prior knowledge, and can automatically detect the bones of moving objects.
Smart Images

Figure CN113936038B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of posture recognition, and in particular to a bone detection device and a use method, a training method and a training device thereof. Background Art
[0002] Estimating the posture of a moving object from an image sequence (such as a video image) has been a long-standing problem in the field of computer graphics and vision. For a moving object with a skeletal structure, the posture estimation of the moving object can be achieved by segmenting the skeletal structure of the moving object.
[0003] Existing bone detection methods usually need to extract static image features of the joint structure connecting the bones from the image. This method needs to rely on prior knowledge and is not very general. Summary of the invention
[0004] In view of this, the present disclosure provides a bone detection device and a method of use, a training method and a training device thereof, so as to avoid dependence on prior knowledge and be more versatile.
[0005] In a first aspect, a bone detection device is provided, the device comprising: a motion descriptor extraction module, used to receive an image sequence and obtain motion information of a moving object in the image sequence, the moving object having a joint structure and a bone, the joint structure being used to connect the bone; a motion feature extraction module, used to receive the motion information of the moving object and obtain the motion feature of the moving object from the motion information of the moving object; a bone detection module, used to receive the motion feature of the moving object and determine pixel points belonging to the bone of the moving object in the image sequence from the motion feature of the moving object
[0006] In a second aspect, a training method for a bone detection device is provided, wherein the bone detection device includes a motion descriptor extraction module, a motion feature extraction module and a bone detection module, and the method includes: inputting an image sequence into the motion descriptor extraction module to obtain motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a bone, and the joint structure is used to connect the bone; inputting the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; inputting the motion feature of the moving object into the bone detection module to determine the pixel points in the image sequence belonging to the bone of the moving object; and updating the motion feature extraction module and the bone detection module according to the labeling results of the pixel points in the image sequence belonging to the bone of the moving object and the pixel points in the image sequence.
[0007] In a third aspect, a bone detection method based on a bone detection device is provided, wherein the bone detection device includes a motion descriptor extraction module, a motion feature extraction module and a bone detection module, and the method includes: inputting an image sequence into the motion descriptor extraction module to obtain motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a bone, and the joint structure is used to connect the bone; inputting the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; inputting the motion feature of the moving object into the bone detection module to determine the pixel points in the image sequence belonging to the bone of the moving object.
[0008] In a fourth aspect, a training device for a bone detection device is provided, wherein the bone detection device includes a motion descriptor extraction module, a motion feature extraction module and a bone detection module, and the training device includes: an acquisition module, used to input an image sequence into the motion descriptor extraction module to obtain motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a bone, and the joint structure is used to connect the bone; a first input module, used to input the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; a second input module, used to input the motion feature of the moving object into the bone detection module to determine the pixel points in the image sequence belonging to the bone of the moving object; and an update module, used to update the motion feature extraction module and the bone detection module according to the labeling results of the pixel points in the image sequence belonging to the bone of the moving object and the pixel points in the image sequence.
[0009] In a fifth aspect, a bone detection device is provided, comprising a memory and a processor, wherein the memory stores executable code, and the processor is configured to execute the executable code to implement the method as described in the second aspect or the third aspect.
[0010] According to a sixth aspect, a computer-readable storage medium is provided, on which an executable code is stored. When the executable code is executed, the method described in the second aspect or the third aspect can be implemented.
[0011] In a seventh aspect, a computer program product is provided, comprising an executable code, which, when executed, can implement the method described in the second aspect or the third aspect.
[0012] The skeleton detection device in the disclosed embodiment includes a learnable component, which can learn the motion characteristics of the moving object from the motion information of the moving object in the image sequence, and detect the skeleton through the motion characteristics. Since the bones are connected by joint structures, the motion patterns of the bones of the moving object are similar, and thus the motion characteristics that characterize the motion patterns are also similar. Therefore, the skeleton detection device in the disclosed embodiment can be applicable to the detection of skeletons of various types of moving objects with joint structures, and is more versatile. In addition, the use of the skeleton detection device of the present application can also avoid the problem of being unable to obtain the labeled image data of the moving object due to the lack of prior knowledge of the joint structure of the moving object to be detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 2 is a diagram showing an example of a structure of a moving object in an embodiment of the present disclosure.
[0014] Figure 2 Schematic diagram of the structure of the bone detection device provided in the embodiment of the present disclosure.
[0015] Figure 3 It is a flowchart of a training method for a bone detection device provided in an embodiment of the present disclosure.
[0016] Figure 4 It is a flowchart of a training method for a bone detection device provided in another embodiment of the present disclosure.
[0017] Figure 5 It is a flowchart of a bone detection method provided in one embodiment of the present disclosure.
[0018] Figure 6 It is a schematic diagram of a bone detection method provided by another embodiment of the present disclosure.
[0019] Figure 7 It is a diagram showing the effect of performing bone detection using the bone detection method of an embodiment of the present disclosure.
[0020] Figure 8 It is a schematic diagram of the structure of the training device of the bone detection device provided in the embodiment of the present disclosure.
[0021] Fig. 9 It is a schematic diagram of the structure of the bone detection device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0023] To facilitate understanding, some concepts involved in the embodiments of the present disclosure are briefly introduced first.
[0024] A moving object refers to an object having a skeleton and joint structure, including an animal (eg, a person, a dog, a bird, or an insect), an animated object (eg, a dragon or a snowman with a torso), or a simulated animal (eg, a robot).
[0025] A moving object may have multiple bones and multiple joint structures. A joint structure corresponds to a joint with a certain degree of freedom on a moving object and may be represented by a joint point. A bone is a limb that can reflect the posture of a moving object, specifically, a limb located between two joint structures. Taking the human body as an example, bones may include thighs, calves, arms, etc. Adjacent bones may be connected by joint structures. In the field of images, bones may be represented by multiple points on a limb, or when the distribution and connection of the joint structure of a moving object are known, bones may also be represented by a line connecting two adjacent joint structures with a known connection relationship.
[0026] Combine the following Figure 1 Give examples to illustrate the relationship between bones and joint structures. Figure 1 As shown, the moving object is a human body. The multiple joint structures of the human body may include the joint structure of the head (joint point 1), the joint structure of the neck (joint point 2), the joint structure of the shoulder (joint points 3 and 4), the joint structure of the elbow (joint points 5 and 6), the joint structure of the wrist (joint points 7 and 8), the joint structure of the waist (joint point 9), the joint structure of the thigh (joint points 10 and 11), the joint structure of the knee (12 and 13) and the joint structure of the ankle (joint points 14 and 15), a total of 15 joint structures. Figure 1 It can be seen that the bone 30 is a limb between two adjacent joint structures. Each bone can be twisted and / or swung around the joint structure connected thereto. For example, the bone 31 of the thigh is a limb located between the joint point 10 and the joint point 12. The bone 31 of the thigh can be twisted and swung around the joint 10, and the bone 31 can also swung around the joint 12.
[0027] Understandably, Figure 1 It is only used to illustrate the relationship between the joint structure and the skeleton. The embodiments of the present disclosure do not make any specific limitations on the division of the joint structure of the moving object. The joint structure can be divided according to actual detection needs. For example, the finger joint structure can be added or the thigh joint structure can be removed.
[0028] Computer vision technology is a technology that attempts to obtain information from images or multi-dimensional data to achieve machine learning. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, optical character recognition, video processing, video semantic understanding, video content / behavior recognition, virtual reality, augmented reality, simultaneous positioning and map construction, etc.
[0029] Neural networks are a way to implement machine learning. Neural networks may include input layers, intermediate layers, and output layers. When a neural network needs to perform a task (for example, detection or classification), the input layer receives the data to be learned, the intermediate layer extracts features related to the current task from the data, and the output layer outputs the results of the task based on the features extracted by the intermediate layer. The specific structure and number of layers of the neural network can be adjusted according to actual needs.
[0030] Pose estimation of moving objects is a very important research field, and this estimation can directly serve multiple higher-level tasks, such as markerless motion tracking, action recognition and prediction, film and animation, virtual reality, robotic manipulation, and human-computer interaction.
[0031] With the rapid development of computer vision technology and neural networks, it has become a development trend to automatically identify the posture of moving objects from image sequences (such as video images) through computers. For moving objects with skeletons, the posture estimation of the moving object can be achieved as long as the skeleton of the moving object is identified.
[0032] In the prior art, skeleton detection of a moving object (e.g., a human body) is usually performed by training a neural network with labeled image data (the image data is image data containing the moving object), so that the neural network can learn the static image features of the joint structure from the labeled data, thereby detecting the joint structure from the image data. Then, the joint structure is modeled and analyzed based on the known distribution and connection of the joint structure of the moving object, so as to use the joint structure to obtain the skeleton of the moving object in the image data (i.e., posture estimation). The most typical representative of this method is OpenPose, which has achieved great success in human posture estimation.
[0033] However, existing methods need to rely on relevant prior knowledge of the joint structure of the moving object, and need to mark or analyze the image data containing the moving object based on the prior knowledge. If there is a lack of prior knowledge of the joint structure of the moving object, the labeled image data cannot be obtained. In addition, the existing methods only have a better effect on the skeleton detection of the moving object with the same joint structure as the training sample. When the joint structure of the moving object in the detection sample and the training sample is different, the detection effect is not good. The same joint structure can be understood as the same number of joint structures, the distribution of joint structures, and the connection method.
[0034] In summary, the existing methods for detecting the skeleton of moving objects need to rely on prior knowledge and are not very general.
[0035] The inventors of the present disclosure have discovered that the motion patterns of the bones of different moving objects are similar. The motion pattern of the bones may include the flexion and extension changes of the bones or the regular changes of the angle between two bones. For example, whether it is a dog or a human body, when waving, the bones of the hand move first, then drive the bones of the forearm to move, and finally drive the bones of the upper arm to move. The motion pattern of the bones may also include many contents, for example, the movement speed of the pixels on the bones of the same moving object is consistent, the movement range of the bones is limited, and so on. Therefore, the motion pattern of the bones learned from one moving object can be applied to another moving object and the bones of the moving object can be detected.
[0036] In view of this, the embodiment of the present disclosure proposes a method for performing skeleton detection of a moving object using a skeleton detection device including a learnable component. The method first uses the motion information of the moving object in the image sequence to train the learnable component in the skeleton detection device so that the skeleton detection device can learn the motion pattern of the skeleton of the moving object. Compared with the above-mentioned related technologies, it can avoid the reliance on prior knowledge of the joint structure of the moving object to be detected and is more versatile.
[0037] Combine the following Figure 2 The structure of the bone detection device in the embodiment of the present disclosure is described in detail.
[0038] like Figure 2 As shown, the skeleton detection device 20 includes a motion descriptor extraction module 21, a motion feature extraction module 22 and a skeleton detection module 23. The motion feature extraction module 22 and the skeleton detection module 23 are the above-mentioned learnable components, and the specific learning methods of these modules will be referred to later. Figure 3 Provide explanation.
[0039] The motion descriptor extraction module 21 is used to receive an image sequence and obtain motion information of a moving object from the image sequence.
[0040] An image sequence may refer to a video image or multiple frames of images that are continuous in time. An image sequence may include one moving object or multiple moving objects.
[0041] The motion information of a moving object may refer to the position change information of the moving object in the image. The moving object may be represented by a plurality of pixels in the image. Therefore, the motion information of the moving object may be represented by the position change information of the plurality of pixels. The position change information may be either displacement change information in the time domain or phase change information in the frequency domain.
[0042] The disclosed embodiment does not specifically limit the manner in which the motion descriptor extraction module 21 obtains the motion information of the moving object from the image sequence. For example, the motion descriptor extraction module 21 may directly obtain the motion information of the moving object from the images in the image sequence by using the optical flow method, or the motion descriptor extraction module 21 may directly obtain the motion information of the moving object from the images in the image sequence by using the frequency domain transformation method. For another example, the images in the image sequence may be first decomposed into sub-images having multiple resolutions, and then the motion information of the moving object at each resolution may be obtained from the multiple sub-images by using the optical flow method or the frequency domain transformation method.
[0043] As an implementation manner, the motion descriptor extraction module 21 may determine the motion information of the moving object in each frame according to the phase difference in the frequency domain between the pixels in each frame in the image sequence and the pixels in the previous frame of each frame.
[0044] like Figure 2 As shown, the motion descriptor extraction module 21 includes a complex steerable pyramid (CSP) model, which can decompose each image in the image sequence into multiple layers of sub-images. Each layer in the multi-layer sub-image can represent a spatial frequency band, and each layer of sub-images in the same frame image can have different scales, directions and resolutions. Therefore, each layer of sub-image contains the features of the image at the corresponding scale, and multiple pixels of the moving object in the image have corresponding feature expressions in multiple sub-images. Multiple features of each pixel of the moving object can be obtained through sub-images of different scales.
[0045] If the pixel point in the image at time t in the image sequence is recorded as V(x, y, t), after the decomposition and calculation of the complex controllable pyramid mentioned above, the frequency domain value of the pixel point in the image at time t at each scale r and direction θ can be expressed as A(r, θ, x, y, t)e iφ(r,θ,x,y,t). A(r,θ,x,y,t) represents the amplitude of the pixel in the image at time t, which can indicate the strength of the motion; φ(r,θ,x,y,t) represents the phase of the pixel in the image at time t. Phase information is used to indicate the position and is usually related to the texture change. If the moment corresponding to the image of the current frame is recorded as time t, and the moment corresponding to the previous frame of the current frame is recorded as time t-1, then the motion information u(r,θ,x,y,t) of the moving object in the current frame can be expressed as:
[0046] u(r,θ,x,y,t)=φ(r,θ,x,y,t)-φ(r,θ,x,y,t-1).
[0047] As another implementation, the motion descriptor extraction module 21 can use the amplitude of the pixels of each frame in the frequency domain to weight the phase difference between the pixels in each frame and the pixels of the previous frame in the frequency domain to obtain the motion information of the moving object in each frame.
[0048] Or Figure 2 Taking the motion descriptor extraction module 21 in the example, the motion information u(r,θ,x,y,t) of the moving object in the current frame can also be expressed as:
[0049] u(r,θ,x,y,t)=A(r,θ,x,y,t)(φ(r,θ,x,y,t)-φ(r,θ,x,y,t-1)).
[0050] By using the amplitude of the current frame as the weight of the phase difference, the strength of the motion can be better reflected to focus on the part with large changes. This can reduce the impact of noise and other irrelevant information to a certain extent.
[0051] From the foregoing, it can be seen that the motion information of a moving object can be represented by phase changes of pixels in multiple scale spaces. Therefore, the data corresponding to the motion information of the moving object includes multi-dimensional feature data of each pixel in the multiple pixels.
[0052] Continue to see Figure 2 The motion feature extraction module 22 is used to receive the motion information of the moving object, that is, the multi-dimensional feature data mentioned above, and the motion feature extraction module 22 can extract features from the motion information of the moving object to obtain the motion features of the moving object.
[0053] The motion feature is a feature used to characterize the motion pattern of the bones of the moving object. The motion pattern of the bones can refer to the morphological pattern of the bones of the moving object under different motion conditions and / or the speed pattern and / or direction pattern or the pattern of the range of motion of the bones when moving. For moving objects with different joint structures, the motion patterns of their bones are similar. For example, the motion patterns of the bones can be either extension or bending, and the angle between two adjacent bones will become larger or smaller. Therefore, if the pixel points on the moving object are the pixel points on two adjacent bones of extension and bending, the feature reflecting the change of the angle between its multiple pixels can be extracted from its motion information as a motion feature. Alternatively, the motion pattern of the bones can be a bone swinging around the connection point of the bone connected to it, and the angular displacement of the swinging bones relative to the connection point is consistent. Therefore, if the pixel points on the moving object are the pixel points on the swinging bones, the feature reflecting the same angular displacement can be extracted from its motion information as a motion feature. Alternatively, the motion speed of the pixel points on the same bone is the same, while the motion speed of the pixel points on different bones will be different. Therefore, the feature that can reflect the motion speed of the pixel points can be extracted from the motion information as a motion feature. Alternatively, when some bones are twisted, their twisting angle has a certain range. Therefore, features that can reflect the twisting range of pixels can be extracted from the motion information as motion features. In other words, motion features are multiple features obtained after feature extraction of motion information, such as speed features, moving range features, angle features or direction features, etc. These multiple features can be represented by feature maps.
[0054] There are many ways for the motion feature extraction module 22 to obtain motion features, which are not specifically limited in the present embodiment, as long as the structure of the motion feature extraction module can adapt to the data size of the motion information. Figure 2 As shown, the motion descriptor extraction module 21 uses a complex controllable pyramid to decompose the image in the image sequence into sub-images of multiple scales and directions. Corresponding to each sub-image, the data size of the motion information outputted is different. Therefore, Figure 2 The motion feature extraction module 22 in the embodiment can be composed of multiple sub-neural network layers of different sizes. For example, the sub-neural network layer can be a convolutional neural network layer, a deep neural network layer, or a recurrent neural network layer.
[0055] As an implementation method, the data corresponding to the motion information of the moving object can be processed by dimensionality reduction to shield useless feature data. Alternatively, the motion information of the moving object can be fused to obtain effective features for subsequent bone detection module.
[0056] As another implementation, the motion feature extraction module 22 may include an input layer, a convolution layer, and a pooling layer. The input layer is used to receive the motion information described above and pass the motion information to the convolution layer and the pooling layer. The convolution layer and the pooling layer can be set to multiple layers as needed. The convolution layer and the pooling layer can perform feature extraction on the motion information to obtain motion features that are highly correlated with the skeleton of the moving object.
[0057] Continue to see Figure 2 , the motion features output by the last layer of the motion feature extraction module 22 can be received by the skeleton detection module 23, and the skeleton detection module 23 can determine the pixel points belonging to the skeleton of the moving object in the image sequence from the motion features of the moving object. The disclosed embodiment does not specifically limit the structure of the skeleton detection module 23. For example, the skeleton detection module 23 can be used as the output layer of the feature extraction module 22, or the skeleton detection module 23 can also be another neural network layer. Specifically, the skeleton detection module 23 can be a module including a convolution layer, a pooling layer and an output layer. The skeleton detection module 23 further extracts features from the above-mentioned motion features to determine the detection results of the pixel points in the image sequence. The detection result is used to indicate whether the pixel points in the image sequence belong to the skeleton.
[0058] The disclosed embodiments do not specifically limit the specific form of the detection result. As an implementation method, the detection result can be an association between feature points established according to a feature map, through which a vector of each pixel can be generated. Whether the pixel in the image belongs to the skeleton is determined based on whether the vector of the output pixel is consistent with the vector of the pixel of the marked skeleton. The vector can also be called a directional feature field, which is used to characterize the direction of the skeleton and can be composed of two directional maps X and Y.
[0059] Combine the following Figure 1 The concept of vector is explained with examples. Figure 1As shown, the orientation (i.e., extension direction) of each skeleton 30 is different. For example, the orientation of skeleton 31 is the direction from joint structure 10 to joint structure 12, which can be recorded as direction 1. The orientation of skeleton 32 is the direction from joint structure 12 to joint structure 14, which can be recorded as direction 2. In order to characterize this characteristic of the skeleton, multiple pixel points A belonging to skeleton 31 can be marked as a unit vector whose vector is the above-mentioned direction 1, and multiple pixel points B belonging to skeleton 32 can be marked as a unit vector whose vector is the above-mentioned direction 2, and the vector of the pixel points not on the skeleton can be recorded as 0. Since the skeleton detection device is trained by the training data of the moving object with known joint structure, the marking data of the pixel points on the marked skeleton includes the vector of the pixel points. The skeleton detection module can also obtain the vector of the pixel points of the moving object by extracting the above-mentioned motion features. Therefore, the embodiment of the present disclosure can determine whether its pixel points belong to the skeleton by detecting the vector of the pixel points of the moving object. For the concept of the vector of pixel points on the bones mentioned in the present disclosure, please refer to the paper Cao et al, Realtime Multi-Person 2d Pose Estimation Using Part Affinity Fields, Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 7291-7299, 2017.
[0060] The skeleton detection device in the embodiment of the present disclosure can learn the motion characteristics of the moving object from the motion information of the moving object in the image sequence through the learnable component it contains, and detect the pixel points on the skeleton belonging to the moving object through the motion characteristics, thereby realizing the detection of the skeleton. Since the motion characteristics of the moving object with joint structure and skeleton are similar, the skeleton of all moving objects with joint structure can be detected through the skeleton detection device.
[0061] As mentioned above, the skeleton in the image can be detected by the skeleton detection module 23. However, in some applications where different skeletons need to be distinguished, each skeleton needs to be distinguished. For example, when there are multiple moving objects, the skeletons of the multiple moving objects need to be distinguished in some tracking tasks; or for the same moving object, its multiple skeletons also need to be marked respectively to realize posture tracking, therefore, how to further distinguish each skeleton of the moving object becomes a problem to be solved.
[0062] In order to solve the above problems, in some embodiments, Figure 2As shown, the skeleton detection device 20 may further include a clustering module 24. The clustering module 24 is the above-mentioned learnable component, and the learning method of the module will be described later. Figure 4 Provide explanation.
[0063] The clustering module 24 is used to receive the motion features of the moving object and extract spatiotemporal features from the motion features of the moving object so as to cluster the spatiotemporal features and determine the pixel points belonging to different skeletons of the moving object in the image sequence.
[0064] The clustering module 24 may also be called a skeleton consistency module. The clustering module 24 may include a temporal feature extraction part, a spatiotemporal feature fusion part, and a clustering part.
[0065] The above motion features are first input into the temporal feature extraction part, which can integrate the relevant information of the time series into the motion features of the pixel points of the moving object in the current frame to obtain the temporal features. The temporal feature extraction part can be through a deep learning network. For example, it can be a gated recurrent unit (GRU) network or a long short-term memory (LSTM) network. The temporal features can be abstract features automatically extracted by a deep learning network, such as detecting the pixel points of a bone when twisting at time tn, and detecting the pixel points of the bone when swinging at time tk. The pixel points of the bone have a mutually dependent relationship between different behaviors. The features representing the relationship can be automatically extracted through the above deep learning network, so that the previous detection results have a positive impact on the detection of the pixel points of the current frame.
[0066] The spatiotemporal feature fusion part is used to combine the positional features of the pixels of the moving object with the temporal features to obtain the spatiotemporal features of the pixels of the moving object. The positional features can be the coordinates of the pixels of the moving object in the image. The spatiotemporal features can be understood as the temporal features that include the positional features. By extracting the spatiotemporal features, the feature information of the pixels of the moving object can have motion information, temporal information and position information, thereby enriching the feature information of the pixels of the moving object and facilitating subsequent detection.
[0067] The present disclosure does not specifically limit the method for obtaining the spatiotemporal features. For example, the above-mentioned time series features can be directly multiplied by the coordinates of the pixel points to obtain the spatiotemporal features. Figure 2 As shown, the above time series features can be convolved first to reduce the data dimension of the time series features, and then the time series features after the convolution process are multiplied by the coordinates of the pixel points. This setting can reduce the subsequent calculation amount.
[0068] The clustering part is used to cluster the spatiotemporal features of the moving object to determine the pixel points belonging to different bones of the moving object in the image sequence. That is to say, by clustering the spatiotemporal features of the moving object, the pixel points on each bone of the moving object can be clustered into a cluster, and multiple bones can correspond to multiple clusters. The clustering part can also assign a unique ID to each cluster to allow tracking of each individual bone.
[0069] The present disclosure does not specifically limit the clustering method of the clustering part. For example, the clustering part can be a clustering neural network layer. The network layer can use Figure 2 The mean shift algorithm shown in the figure clusters the spatiotemporal features of the pixels of the moving object. As can be seen from the foregoing, the spatiotemporal features of the pixels of the moving object in the image are feature vectors containing a variety of feature information. The mean shift algorithm can calculate the Euclidean distance between the feature vectors of every two pixels, and determine whether to cluster the pixels into one category based on a preset Euclidean distance threshold.
[0070] The bone detection device of the disclosed embodiment is provided with a clustering module, which can extract spatiotemporal features from the motion features of the moving object, and thus cluster the pixel points belonging to the same bone of the same moving object on a frame of image into one category according to the spatiotemporal features, thereby completing the spatial segmentation of different bones of the moving object and realizing the distinction of each bone of the moving object.
[0071] Combine the following Figure 3 The training method of the bone detection device of the embodiment of the present disclosure is described in detail. It should be noted that the structure of the bone detection device has been described in detail above. Please refer to the previous text for related features, which will not be repeated here.
[0072] In step S310, the image sequence is input into a motion descriptor extraction module to obtain motion information of a moving object in the image sequence. The moving object has a joint structure and a skeleton, and the joint structure is used to connect the skeleton.
[0073] The present disclosure does not make any specific limitation on the data of the moving object in the image sequence in the training phase, as long as the data of the moving object is data labeled according to the known joint structure information. The labeled data of the moving object can be, for example, the labeling of the joint points or the labeling of the pixel points of the skeleton. In some implementations, the labeled data of the moving object in the image sequence is labeled data of the human body, and the labeled data includes the pixel points of the skeleton, the vectors of the bone pixel points labeled according to the connection relationship of the known joint structure, the position of the bone pixel points, etc. Since the prior knowledge of the human joint structure is rich enough, there is already a lot of labeled human body data. Using these human body data to train the skeleton detection device can avoid the behavior of manual labeling when training the skeleton detection device, and can improve the training efficiency of the skeleton detection device.
[0074] Optionally, in some embodiments, the motion descriptor extraction module can directly obtain the motion information of the moving object from the images in the image sequence. In other embodiments, if there is too much irrelevant information in the images in the image sequence, the motion descriptor extraction module can also pre-process the images in the image sequence (for example, grayscale or image denoising) to remove some irrelevant information, and then obtain the motion information of the moving object from the pre-processed images. Or in other embodiments, the images in the image sequence can be decomposed into sub-images with multiple resolutions, and then the motion information at each resolution can be obtained from the multiple sub-images.
[0075] In step S320, the motion information of the moving object is input into a motion feature extraction module to obtain the motion features of the moving object.
[0076] As mentioned above, the embodiment of the present application does not impose any specific limitation on the structure of the motion feature extraction module, as long as the structure of the motion feature extraction module can be adapted to the data size of the motion information.
[0077] In step S330, the motion features of the moving object are input into a skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence.
[0078] In step S340, the motion feature extraction module and the skeleton detection module are updated according to the pixel points belonging to the skeleton of the moving object in the image sequence and the labeling results of the pixel points in the image sequence.
[0079] As can be known from the foregoing, the output value of the skeleton detection module can be the vector of the skeleton pixel points, and in the training stage, the pixel points on the skeleton have the vector marked in advance. According to the loss value of the vector of the pixel points on the skeleton output and the pre-calibrated vector, the weight between the neural network layer of the motion feature extraction module and the skeleton detection module can be updated by back propagation, for example, it can be the parameter of the hidden layer of the motion feature extraction module, and / or the parameter of the hidden layer of the skeleton detection module. The parameters of the hidden layer of the motion feature extraction module and the skeleton detection module updated by back propagation can be repeated until the neural network composed of the motion feature extraction module and the skeleton detection module converges.
[0080] The disclosed embodiment uses the motion information of the moving object in the image sequence to train the learnable component of the skeleton detection device, so that the skeleton detection device learns the motion characteristics of the moving object through the abstract motion information, and detects the skeleton through the motion characteristics. Since the motion patterns of moving objects with joint structures are similar, their motion characteristics are also represented in a similar way. Therefore, the skeleton detection device trained by the method of the disclosed embodiment can be applied to the detection of skeletons of various types of moving objects with joint structures, and is more versatile. In addition, the use of this method can also avoid the problem of being unable to obtain the labeled image data of the moving object due to the lack of prior knowledge of the joint structure of the moving object to be detected.
[0081] In other embodiments, Figure 4 As shown, the training method of the skeleton detection device proposed in the embodiment of the present disclosure may also include the following steps:
[0082] In step S350, the motion features of the moving object are input into a clustering module to extract spatiotemporal features from the motion features of the moving object, and the spatiotemporal features are clustered to determine pixel points belonging to different bones of the moving object in the image sequence.
[0083] In step S360, the motion feature extraction module and the clustering module are updated according to the clustering result of the clustering.
[0084] As can be seen from the foregoing, the clustering module will calculate the Euclidean distance between the feature vectors of every two pixels during clustering, and determine whether the two pixels can be clustered into one category based on the preset Euclidean distance threshold. For example, pixels whose preset Euclidean distance is within 0.01 can be clustered into one category. If the Euclidean distance of the feature vectors of two pixels exceeds this value, they will not be clustered into one category. In the training phase, the loss value of the calculated Euclidean distance of the feature vectors of the two pixels and the preset Euclidean distance can be output, and the weights between the neural network layers of the motion feature extraction module and the clustering module can be updated through back propagation. For example, it can be the parameters of the hidden layer of the motion feature extraction module, and / or the parameters of the hidden layer of the temporal feature extraction part in the clustering module. Updating the parameters of the hidden layers of the motion feature extraction module and the clustering module through back propagation can be repeated until the learnable component composed of the motion feature extraction module and the clustering module converges.
[0085] The embodiment of the present disclosure also proposes a method for detecting bones based on a bone detection device, wherein the bone detection device includes a motion descriptor extraction module, a motion feature extraction module, and a bone detection module. Figure 5 The bone detection method is described in detail. Since the detection method is implemented based on the bone detection device trained by the training method described above, please refer to the previous text for the relevant features that have been described in detail above, and will not be repeated here.
[0086] In step 510, the image sequence is input into a motion descriptor extraction module to obtain motion information of a moving object in the image sequence. The moving object has a joint structure and a skeleton, and the joint structure is used to connect the skeleton.
[0087] In step 520, the motion information of the moving object is input into a motion feature extraction module to obtain the motion feature of the moving object.
[0088] In step 530, the motion features of the moving object are input into a skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence.
[0089] The disclosed embodiments do not specifically limit the type of moving object in the bone detection method, as long as the moving object has a similar movement pattern to that of the human body. It should be noted that moving objects with joint structures all have similar movement patterns.
[0090] As a way to achieve this, Figure 6 As shown, in the training phase of the skeleton detection device, human body data with annotations in the image sequence can be used for training, while in the use phase, the skeleton structure of the moving object can be different from the skeleton structure of the human body. For example, the moving object in the use phase can be a dog, a robot, or an animated person.
[0091] The disclosed embodiment uses a bone detection device to detect bones from the motion information of a moving object, rather than detecting bones through static image features of joint structures in the prior art. Such a bone detection method is applicable to the detection of bones of various types of moving objects with joint structures and is more versatile. Figure 7 As shown, Figure 7 (a) in the figure is the effect diagram of bone detection for men. Figure 7 (b) is the effect diagram of the bone detection of women. Figure 7 (c) in the figure is the effect diagram of skeleton detection for an animated character (a snowman with a torso). Figure 7 (d) in the figure is the effect diagram of bird skeleton detection. Figure 7 It can be seen from the effect diagram that the embodiment of the present disclosure has a very good effect on the skeleton detection of various moving objects and is highly versatile.
[0092] In addition, the method of the embodiment of the present disclosure can avoid establishing different models for moving objects with different joint structures as in the prior art, and also avoid the problem of being unable to obtain labeled image data of moving objects with unknown joint structures during training due to lack of prior knowledge.
[0093] Optionally, the motion features of the moving object are input into a clustering module to extract spatiotemporal features from the motion features of the moving object, and the spatiotemporal features are clustered to determine pixel points belonging to different bones of the moving object in the image sequence.
[0094] Optionally, the motion descriptor extraction module obtains the motion information of the moving object in each frame according to the phase difference in the frequency domain between the pixel points in each frame in the image sequence and the pixel points in the previous frame of each frame.
[0095] Optionally, the motion descriptor extraction module weights the phase difference between the pixels in each frame and the pixels of the previous frame in the frequency domain using the amplitude of the pixels in each frame in the frequency domain to obtain the motion information of the moving object in each frame.
[0096] Optionally, the motion descriptor extraction module comprises a complex controllable pyramid model.
[0097] Optionally, the motion feature extraction module and the skeleton detection module include multiple neural network layers.
[0098] Optionally, the clustering module includes a gated recurrent network, a convolutional layer, and a clustering layer.
[0099] Combination of the above Figures 1 to 7 , describes in detail the bone detection device and method embodiments of the present disclosure. Figures 8 to 9, describes in detail an embodiment of the training device of the bone detection device disclosed in the present invention. It should be understood that the description of the method embodiment corresponds to the description of the device embodiment, so the part not described in detail can refer to the previous method embodiment.
[0100] Figure 8 800 is a schematic structural diagram of a training device for a skeleton detection device provided by an embodiment of the present disclosure. The skeleton detection device includes a motion descriptor extraction module, a motion feature extraction module and a skeleton detection module. The device 800 may include: an acquisition module 810, a first input module 820, a second input module 830 and an update module 840. These modules are described in detail below.
[0101] The acquisition module 810 is used to input the image sequence into the motion descriptor extraction module to obtain motion information of the moving objects in the image sequence.
[0102] The first input module 820 is used to input the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object.
[0103] The second input module 830 is used to input the motion features of the moving object to the skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence.
[0104] The updating module 840 is used to update the motion feature extraction module and the skeleton detection module according to the pixel points belonging to the skeleton of the moving object in the image sequence and the labeling results of the pixel points in the image sequence.
[0105] Optionally, the bone detection device also includes a clustering module, and the device 800 also includes a third input module 850, which is used to input the motion characteristics of the moving object into the clustering module to extract spatiotemporal characteristics from the motion characteristics of the moving object, and cluster the spatiotemporal characteristics to determine the pixel points belonging to different bones of the moving object in the image sequence; the update module 841 is also used to update the motion feature extraction module and the clustering module according to the clustering results of the clustering.
[0106] Optionally, the motion descriptor extraction module obtains the motion information of the moving object in each frame according to the phase difference in the frequency domain between the pixel points in each frame in the image sequence and the pixel points in the previous frame of each frame.
[0107] Optionally, the motion descriptor extraction module weights the phase difference between the pixels in each frame and the pixels of the previous frame in the frequency domain using the amplitude of the pixels in each frame in the frequency domain to obtain the motion information of the moving object in each frame.
[0108] Optionally, the motion descriptor extraction module comprises a complex controllable pyramid model.
[0109] Optionally, the motion feature extraction module and the skeleton detection module include multiple neural network layers.
[0110] Optionally, the clustering module includes a gated recurrent network, a convolutional layer, and a clustering layer.
[0111] Fig. 9 is a structural diagram of a bone detection device provided by another embodiment of the present disclosure. The device 900 may be, for example, a computing device with computing functions. For example, the device 900 may be a mobile terminal or a server. The device 900 may include a memory 910 and a processor 920. The memory 910 may be used to store executable code. The processor 920 may be used to execute the executable code stored in the memory 910 to implement the steps in the various methods described above. In some embodiments, the device 900 may also include a network interface 930, and data exchange between the processor 920 and an external device may be implemented through the network interface 930.
[0112] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any other combination. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, digital video discs (DVD)), or semiconductor media (eg, solid state disks (SSD)).
[0113] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments of the present disclosure can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present disclosure.
[0114] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0115] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0116] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0117] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A bone detection device, comprising: A motion descriptor extraction module, used for receiving an image sequence and acquiring motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a skeleton, and the joint structure is used for connecting the skeleton; A motion feature extraction module, used for receiving motion information of the moving object and obtaining motion features of the moving object from the motion information of the moving object; A skeleton detection module, used for receiving the motion characteristics of the moving object and determining the pixel points belonging to the skeleton of the moving object in the image sequence from the motion characteristics of the moving object; Wherein, the device further comprises: The clustering module is used to receive the motion features of the moving object, extract spatiotemporal features from the motion features of the moving object, and cluster the spatiotemporal features to determine pixel points belonging to different bones of the moving object in the image sequence.
2. According to the bone detection device according to claim 1, the motion descriptor extraction module obtains the motion information of the moving object in each frame according to the phase difference in the frequency domain between the pixel points in each frame in the image sequence and the pixel points in the previous frame of each frame.
3. The skeleton detection device according to claim 2, wherein the motion descriptor extraction module obtains the motion information of the moving object in each frame according to the phase difference in the frequency domain between the pixel points in each frame in the image sequence and the pixel points in the previous frame of each frame, comprising: The motion descriptor extraction module weights the phase difference between the pixels in each frame and the pixels in the previous frame in the frequency domain by using the amplitude of the pixels in each frame in the frequency domain to obtain the motion information of the moving object in each frame. 4 . The skeleton detection device according to claim 1 , wherein the motion descriptor extraction module comprises a complex controllable pyramid model.
5. According to the skeleton detection device according to claim 1, the motion feature extraction module and the skeleton detection module include multiple neural network layers. 6 . The skeleton detection device according to claim 1 , wherein the clustering module comprises a gated recurrent network, a convolutional layer and a clustering layer.
7. A training method for a skeleton detection device, the skeleton detection device comprising a motion descriptor extraction module, a motion feature extraction module and a skeleton detection module, the method comprising: Inputting an image sequence into the motion descriptor extraction module to obtain motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a skeleton, and the joint structure is used to connect the skeleton; Inputting the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; Inputting the motion features of the moving object into the skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence; updating the motion feature extraction module and the skeleton detection module according to the pixel points belonging to the skeleton of the moving object in the image sequence and the annotation results of the pixel points in the image sequence; Wherein, the skeleton detection device further includes a clustering module, and the method further includes: inputting the motion features of the moving object into the clustering module to extract spatiotemporal features from the motion features of the moving object, and clustering the spatiotemporal features to determine the pixel points belonging to different skeletons of the moving object in the image sequence; According to the clustering result of the clustering, the motion feature extraction module and the clustering module are updated.
8. According to the training method of claim 7, the data of the moving object in the image sequence is labeled human body data.
9. A skeleton detection method based on a skeleton detection device, wherein the skeleton detection device comprises a motion descriptor extraction module, a motion feature extraction module and a skeleton detection module, and the method comprises: Inputting an image sequence into the motion descriptor extraction module to obtain motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a skeleton, and the joint structure is used to connect the skeleton; Inputting the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; Inputting the motion features of the moving object into the skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence; Wherein, the bone detection device also includes a clustering module, and the method also includes: inputting the motion characteristics of the moving object into the clustering module to extract spatiotemporal characteristics from the motion characteristics of the moving object, and clustering the spatiotemporal characteristics to determine the pixel points belonging to different bones of the moving object in the image sequence.
10. The detection method according to claim 9, wherein the skeleton and joint structure of the moving object are different from those of the human body.
11. A training device for a skeleton detection device, the skeleton detection device comprising a motion descriptor extraction module, a motion feature extraction module and a skeleton detection module, the training device comprising: An acquisition module, used for inputting an image sequence into the motion descriptor extraction module to acquire motion information of a moving object in the image sequence, wherein the moving object has a joint structure and a skeleton, and the joint structure is used to connect the skeleton; A first input module, used for inputting the motion information of the moving object into the motion feature extraction module to obtain the motion feature of the moving object; A second input module, used for inputting the motion features of the moving object into the skeleton detection module to determine the pixel points belonging to the skeleton of the moving object in the image sequence; An updating module, used for updating the motion feature extraction module and the skeleton detection module according to the pixel points belonging to the skeleton of the moving object in the image sequence and the annotation results of the pixel points in the image sequence; The skeleton detection device further includes a clustering module, and the device further includes a third input module, which is used to input the motion features of the moving object into the clustering module, so as to extract spatiotemporal features from the motion features of the moving object, and cluster the spatiotemporal features to determine the pixel points belonging to different bones of the moving object in the image sequence; The updating module is further used to update the motion feature extraction module and the clustering module according to the clustering result of the clustering.
12. A bone detection device, comprising a memory and a processor, wherein the memory stores executable codes, and the processor is configured to execute the executable codes to implement the method according to any one of claims 7 to 10.
Citation Information
Patent Citations
Pedestrian detection method and apparatus based on moving associated prior information in videos
CN105046206A
Human body action recognition method in monitoring based on deep learning and posture estimation
CN110222665A
Human body action real-time identification method based on infrared image
CN110363140A
Video target detection network system for enhancing target by utilizing optical flow
CN110853074A
Human body interaction system adopting RGBD visual sensing
CN111667005A
