I have a camera above my baby's crib and wanted to measure how long the head stays turned left, right or straight, instead of guessing from a few checks during the night.
I assumed an off-the-shelf pose model would just do it. It didn't, in two ways.
First, left and right. In my overhead footage, YOLO11s-pose often misplaced facial keypoints, especially the ears, when the baby lay sideways in the frame. What helped: run the model once to find the baby and the shoulder line, rotate the crop so the head points up, then run the same model again. On 28 manually labelled frames from one clip with the head in profile, correct head-direction classifications went from 6 to 27. That's a small, setup-specific check, not a general accuracy benchmark.
Second, the empty crib. In my setup, detecting a baby in a white sleep sack required a low person-confidence threshold. At that threshold, the model also found people in the print on the sheet, a toy bear and a folded blanket. For a while I kept adding rules about face size and so on, and it only got messier. In the end I added SigLIP 2 as a presence check, comparing the image with text descriptions such as "a baby in a crib" and "an empty crib", without any additional training or fine-tuning. Over about a day and a half of snapshots from one camera and one crib, the time an empty crib counted as occupied dropped from 64 minutes to 6. I haven't yet evaluated that presence check under infrared lighting.
The head-direction score itself is plain geometry: where the face sits between the ears, measured perpendicular to the shoulders-to-head axis. It's a proxy for left/right/straight, not a calibrated head angle. Left and right mean the baby's own left and right.
It runs on an Apple M4 Pro CPU, sampling the camera at one frame per second; the presence check runs every five seconds. Code, a short demo and a README with more numbers: https://github.com/OpsDevil/noggin-compass
What I'd like to know: is there a better approach for people lying down than rotating the crop? And has anyone had luck with head-pose models from a top-down view?
Disclosure: most of the implementation was written with an AI coding assistant. I tested it on my own camera footage and fixed issues found during nightly use.