AI system can detect epileptic seizures early and warn the patient