Seizures recur in half of patients who undergo epilepsy surgery. Presurgical workup mainly focuses on seizures, but only partially helps predicting outcomes, even after invasive electroencephalography. We conceived a generalizable model to detect epileptogenic networks through connectivity changes and identified the crucial role of the transition from pre-seizure to seizure, achieving the highest outcome prediction (93%) to date in a chronological cohort of 21 patients with 3-year follow-up or more.