Cognitive behavioral therapy for insomnia, or CBT-I, is a short-term form of therapy that aims to change counterproductive behaviors and unhelpful thought patterns that contribute to chronic insomnia. In addition to in-person or online sessions, CBT-I patients also typically keep a sleep diary, adjust sleep hygiene practices, and work to challenge negative thoughts about sleep.