Automatic detection of the seizure onset zone based on ictal EEG