Cyberphysical Systems for Epilepsy and Related Brain Disorders