Dementia accounts for higher death rate among people with epilepsy