1. A method, comprising: creating posture state definitions, each including a defined vector describing a corresponding posture state; receiving from a sensor signals indicative of a detected vector describing a detected posture state of the patient; and identifying one of the posture state definitions to potentially update based on the detected vector; determining whether the detected vector meets a requirement associated with the identified posture state definition; and if the detected vector meets the requirement, updating the defined vector of the identified posture state definition based on a weighting function applied to the detected vector and the defined vector, wherein one or more of the creating, identifying, determining and updating steps is performed by a processor.