Insomnia is the inability to fall asleep or periods of wakefulness during the night. It afflicts up to 10 percent of the population.