Methods, systems, and apparatus are described for posture detection.
Orientations of a body are detected with respect to first and second
axes. A movement of the body with respect to a third axis is also
detected. Three-dimensional orientations of the body are determined based
on the orientations and the movement. The detected posture may be used
for applications such as controlling medical devices and detecting
patient disorders.