A Skeleton Drawn Over a Picture
Human pose estimation is the task of locating a person’s joints in an image or video: shoulders, elbows, wrists, hips, knees, ankles, and usually a few points on the face. The output is a small set of coordinates that can be connected into a stick figure. In 2D the coordinates are pixel positions. In 3D they are positions in space, usually measured relative to the hips.
People do this without thinking. For a computer it is hard. Limbs hide behind the torso or behind other people. Clothing changes the visible outline of the body. A raised arm and a lowered arm can look almost identical from the side. When several people stand close together, the model has to decide not only where the elbows are but which elbow belongs to which person.
The output is tiny. A video of someone exercising becomes a few dozen numbers per frame, and a physiotherapy app, a sign language system or a sports analytics tool can work on those numbers without caring about the lighting or what the person is wearing.
Kinect and the Depth Camera
The first time pose estimation reached millions of homes was the Kinect sensor for the Xbox 360, released in 2010. The method behind it was published by Jamie Shotton and colleagues at Microsoft Research at CVPR 2011, where it won the best paper award. It did not use deep learning. It used a depth camera and a randomized decision forest.
The trick was to turn pose estimation into per-pixel classification. Each pixel in the depth image was assigned to one of 31 body parts using simple features that compared the depth at nearby offsets. Joint positions were then estimated by finding the densest clusters of pixels for each part. To train the forest, the team rendered a very large set of synthetic depth images of bodies with different shapes and poses, built from motion capture data. The system ran at around 200 frames per second on the console’s hardware, which left most of the machine free for the game itself.
The limitation was the sensor. Depth made separating the person from the background almost free, but it only worked indoors, at short range, with that hardware.
Heatmaps Instead of Coordinates
The first well-known deep learning approach was DeepPose, by Alexander Toshev and Christian Szegedy at Google (CVPR 2014). It treated the problem as regression: a convolutional network looked at the image and directly output the x and y coordinates of each joint, followed by a cascade of networks that refined each estimate on a zoomed crop.
Direct regression turned out to be hard to train well. The same year, Jonathan Tompson and colleagues (NeurIPS 2014) had the network predict a heatmap for each joint instead: an image-sized map where the value at each pixel is the likelihood that the joint is there. Training targets became small Gaussian blobs centered on the annotated joints. This kept the spatial structure of the image all the way to the output, and it let the network express uncertainty, for example two bright spots when it could not tell a left wrist from a right one.
Heatmaps became the standard for years. Convolutional Pose Machines (Wei et al., CVPR 2016) refined them over several stages, each stage seeing the previous stage’s beliefs. The Stacked Hourglass network (Newell, Yang and Deng, ECCV 2016) repeatedly downsampled and upsampled the features so that the model could combine the global layout of the body with precise local detail.
Top-Down and Bottom-Up
Images with many people forced a choice between two pipelines. The top-down approach runs a person detector first, crops each person, and estimates a single pose inside every box. It is accurate, since each crop is normalized in scale, but its cost grows with the number of people, and it fails when the detector misses someone or merges two people into one box.
The bottom-up approach finds every joint in the image first and then groups them into people. The best-known example is OpenPose, from Zhe Cao, Tomas Simon, Shih-En Wei and Yaser Sheikh at Carnegie Mellon (CVPR 2017). Besides joint heatmaps, their network predicted Part Affinity Fields: 2D vector fields that point along each limb, from shoulder to elbow, from elbow to wrist. To decide whether a given elbow and wrist belong to the same arm, the algorithm integrates the field along the line between them. If the vectors line up with that line, the pair is probably a real limb. The OpenPose documentation notes that the runtime for body keypoints does not depend on how many people are in the image, which made it popular for crowded scenes.
Keeping the Resolution High
On benchmarks, top-down methods kept winning. A surprisingly plain design called Simple Baselines (Xiao, Wu and Wei, ECCV 2018) took a ResNet and added a few deconvolution layers to produce heatmaps, and it matched or beat far more complicated architectures. HRNet (Sun, Xiao, Liu and Wang, CVPR 2019) changed the backbone itself: instead of shrinking the image and then recovering resolution, it kept a high-resolution branch alive through the whole network and exchanged information with lower-resolution branches in parallel.
Transformers arrived later. ViTPose (Xu, Zhang, Zhang and Tao, NeurIPS 2022) used a plain Vision Transformer as the encoder with a light decoder on top. Its largest version, with a ViTAE-G backbone, reached 80.9 AP on the COCO test-dev set as a single model. The paper compares this with the previous best entry, UDP++, which reached 80.8 AP by ensembling 17 models.
On the other end of the scale, models such as Google’s BlazePose (Bazarevsky et al., 2020) were designed to run in real time on phones, predicting 33 keypoints including points on the hands and feet for fitness and yoga applications.
Scoring a Pose
Measuring success is less obvious than it seems, because a few pixels of error on a hip is not the same as a few pixels on an eye. The MPII Human Pose dataset (Andriluka, Pishchulin, Gehler and Schiele, CVPR 2014) contains about 25,000 images taken from YouTube videos, with over 40,000 annotated people across 410 activities and 16 joints per person. It is usually scored with PCKh@0.5: a joint counts as correct if it lands within half the length of the person’s head segment from the true position.
COCO uses 17 keypoints and a metric called Object Keypoint Similarity (OKS). OKS plays the role that intersection over union plays in object detection. It turns the distance for each keypoint into a score between 0 and 1, scaled by the size of the person and by a per-keypoint constant that reflects how consistently human annotators label that joint. Eyes get a tight tolerance and hips a looser one, because people disagree more about where a hip is. Average precision is then computed over a range of OKS thresholds. Each keypoint also carries a visibility flag, so a joint hidden behind another person can still be labeled with a guessed position.
Lifting a Pose Into 3D
Recovering depth from a single photo is ambiguous in principle: many 3D poses project to the same 2D image. The standard training data comes from motion capture studios. Human3.6M (Ionescu, Papava, Olaru and Sminchisescu, TPAMI 2014) recorded 3.6 million 3D poses from professional actors performing everyday scenarios, synchronized with ordinary video cameras.
A useful result came from Julieta Martinez and colleagues at ICCV 2017. Instead of predicting 3D joints from pixels, they fed only the 2D joint coordinates into a small fully connected network and asked it to output the 3D positions. Given ground-truth 2D joints, this simple lifting network reached an average error of roughly 4.5 centimeters per joint on Human3.6M. With 2D joints from a real detector the error rose substantially. Their conclusion was that a large part of the remaining error in 3D pose estimation came from the 2D detection step, not from reasoning about depth.
The caveat is that Human3.6M was recorded in one studio with a handful of actors. Models that look excellent on it can struggle outdoors, with unusual camera angles, or with body shapes the actors did not cover.
Case: Two Hundred Frames of a Mouse
One of the most productive uses of pose estimation has nothing to do with humans. Neuroscientists who study behavior used to track animals by attaching reflective markers or by labeling video frame by frame. In 2018, Alexander Mathis, Mackenzie Mathis and colleagues published DeepLabCut in Nature Neuroscience. It took a network pre-trained on human pose and ImageNet data and fine-tuned it on body parts the researcher chose: the paw of a mouse, the tip of a fly’s leg, the whiskers of a rat.
The key finding was the amount of labeling required. With roughly 200 labeled frames, the tracking accuracy on new frames was comparable to that of a human annotator. The network already knew what limbs and joints look like in general, and only needed to learn the specific animal.
Closing Thought
Every pose estimation system starts by deciding what a body is. COCO says it is 17 points. MPII says 16. BlazePose says 33. Those lists were chosen by people for practical reasons, and the model can only report the joints it was given. A hand is a single wrist point in COCO, so a system built on it cannot tell a fist from an open palm. A body that does not match the template, such as a person with an amputation or someone seated in a wheelchair, still gets a full skeleton drawn over it, with the missing parts guessed. The coordinates look precise either way. Before trusting the output of a pose model, it is worth asking which skeleton it was taught and whether the people in front of the camera fit inside it.
By: Max Johnson B.
Deja una respuesta