The aims of this study were to evaluate the efficacy of cognitive-behavioral therapy for insomnia ( CBT-I ) in patients with knee OA , to determine whether improvements in sleep predict reduced pain , and to determine whether alterations in pain modulation mediate improvements in clinical pain .