Computations and technological innovations for epilepsy diagnosis and control