Comparison of Machine Learning Models in Epileptic Seizure Detection
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE credits
Student thesisAlternative title
Jämförelse av Maskininlärningsmodeller för Detektering av Epilepsianfall (Swedish)
Abstract [en]
Epilepsy is one of the most common neurological diseases, where the individual suffers from involuntary seizures. In this project, we used previous research within the field to develop machine learning models that can detect epileptic seizures from EEG recordings. Two models were developed: Support-Vector Machine (SVM) and Random Forest (RF), and the goal was to compare the performance of these models. We utilized the dataset from Siena University (2020), which contained EEG recordings of seizure patients. From these recordings we could train the two models by extracting key information about seizure and non-seizure activity taking place in the recordings. After we trained the models, they were tested with novel data that the model hadn’t been trained on. Through these tests we could calculate certain performance metrics, specifically precision, recall, F1-score, and accuracy. The metrics were used to compare the models in terms of performance. In addition, we also explored what types of parameters to use in order to optimize the detection of seizures. The results are that RF outperformed SVM before hyperparameter optimization (HPO) was conducted. After HPO, SVM and RF both achieved a mean accuracy of approximately 89%. For future research, higher quality datasets can be used to achieve better models.
Abstract [sv]
Epilepsi är en vanlig neurologisk sjukdom, där man drabbas av ofrivilliga anfall. I detta projekt använde vi tidigare forskning för att utveckla maskininlärningsmodeller som kan upptäcka när epileptiska anfall sker utifrån EEG- inspelningar. Vi utvecklade två modeller: Support-Vector Machine (SVM) och Random Forest (RF). Målet med projektet var att jämföra modellernas prestanda i upptäckandet av anfall. Vi använde ett dataset från Siena University (2020), som innehöll EEG-inspelningar av patienter med epileptiska anfall. Modellerna tränades med datasetet genom att extrahera nyckelinformation om vad som var signifikant för en inspelningsperiod med respektive utan anfall. Efter träningen testades modellerna på data de tidigare inte sett. Prestandamått som precision, recall, F1-score och accuracy användes för att utvärdera modellernas prestation samt jämföra dem. Utöver detta undersökte vi vilka parametrar vi borde använda för att optimera modellerna. Resultaten visar att RF presterade bättre än SVM utan hyperparameteroptimering (HPO). Med HPO uppnådde däremot båda modellerna en genomsnittlig noggrannhet på 89%. I framtida forskning kan ett större dataset av högre kvalité användas, för att uppnå högre prestanda hos modellerna.
Place, publisher, year, edition, pages
2025. , p. 34
Series
TRITA-EECS-EX ; 2025:275
National Category
Computer and Information Sciences
Identifiers
URN: urn:nbn:se:kth:diva-367555OAI: oai:DiVA.org:kth-367555DiVA, id: diva2:1985440
Supervisors
Examiners
2025-08-052025-07-242025-08-05Bibliographically approved