Tinnitus can occur as a sleep disorder - -this is called the "exploding head syndrome". This most often occurs while falling asleep or waking up. It is a tremendously loud noise. Some theorize that this syndrome is due to a brief seizure in auditory cortex. It is not dangerous.(Green 2001; Palikh and Vaughn 2010). Logically, anticonvulsants might be useful for treatment.
In many cases, tinnitus is caused by hyperactivity (or too much activity) in the brain’s auditory cortex. “When there’s damage or a loss of input in the ear [such as hearing loss, head trauma, or a blood vessel problem], the brain tries to turn up certain channels in order to compensate,” Dr. Kilgard explains. When the brain doesn’t get that tuning quite right, the result is tinnitus.
Tinnitus usually comes in the form of a high-pitched tone in one or both ears, but can also sound like a clicking, roaring or whooshing sound. While tinnitus isn't fully understood, it is known to be a sign that something is wrong in the auditory system: the ear, the auditory nerve that connects the inner ear to the brain, or the parts of the brain that process sound. Something as simple as a piece of earwax blocking the ear canal can cause tinnitus, but it can also arise from a number of health conditions. For example, when sensory cells in the inner ear are damaged from loud noise, the resulting hearing loss changes some of the signals in the brain to cause tinnitus.
A common cause of tinnitus is inner ear hair cell damage. Tiny, delicate hairs in your inner ear move in relation to the pressure of sound waves. This triggers cells to release an electrical signal through a nerve from your ear (auditory nerve) to your brain. Your brain interprets these signals as sound. If the hairs inside your inner ear are bent or broken, they can "leak" random electrical impulses to your brain, causing tinnitus.