It is thought to be the result of abnormal brain activity temporarily affecting nerve signals, chemicals and blood vessels in the brain.