Shorter sleep, going to sleep later and frequent waking during the night all were significantly associated with a 14-year-old's risk of self-harm in a study.