Epilepsy diagnosis and management