If EEG and MRI do not clearly identify the epileptic focus, magnetoencephalography with EEG (called magnetic source imaging) may localize the lesion, avoiding the need for invasive intraoperative mapping procedures.