The hypothalamus, a peanut-sized structure deep inside the brain, contains groups of nerve cells that act as control centers affecting sleep and arousal.