A sudden, excessive discharge of nervous-system electrical activity that usually causes a change in behavior.