A sudden increase in electrical activity in the brain is a defining feature of one of the severe neurological diseases known as epilepsy. This abnormality appears as a seizure, and identifying seizures is an important field of research. An essential technique for examining the features of neurological issues brain activities, and epileptic seizures is electroencephalography (EEG). In EEG data, analyzing epileptic irregularities visually requires a lot of time from neurologists. For accurate detection of epileptic seizures, numerous scientific techniques have been used with EEG data, and most of these techniques have produced promising results. For EEG signal classification with a high classification accuracy rate, the present research proposes an enhanced machine learning-based epileptic seizure detection model. The present research provides a hybrid Improved Adaptive Neuro-Fuzzy Inference System (IANFIS)-Light Gradient Boosting Machine (LightGBM) technique for automatically detecting and diagnosing epilepsy from EEG data. The experimental findings were supported by EEG records made available by the German University of Bonn and scalp EEG data acquired at Children’s Hospital Boston. The suggested IANFIS-LightGBM, according to the results, offers the most significant classification accuracy ratings in both situations.