This disclosure describes techniques for generation of sleep quality information based on posture state data. The techniques may include obtaining posture state data sensed by a medical device for a patient, generating sleep quality information based on lying posture state changes indicated by the posture state data, and presenting the sleep quality information to a user via a user interface.