Epilepsy is a neurological disorder characterized by recurrent seizures. Seizures occur when there is abnormal electrical activity in the brain,…