Digitala Vetenskapliga Arkivet

Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Comparison of Machine Learning Models in Epileptic Seizure Detection
KTH, School of Electrical Engineering and Computer Science (EECS).
KTH, School of Electrical Engineering and Computer Science (EECS).
2025 (English)Independent thesis Basic level (degree of Bachelor), 10 credits / 15 HE creditsStudent 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
Available from: 2025-08-05 Created: 2025-07-24 Last updated: 2025-08-05Bibliographically approved

Open Access in DiVA

fulltext(1008 kB)229 downloads
File information
File name FULLTEXT01.pdfFile size 1008 kBChecksum SHA-512
54c647188fb68e46794e54eaedb25a7cf8ce3e2cb9dd319601c29c1334ab1b0c4623e7029a57e12c5a07a2dd9a08755061f9090682f940c63813f64bbe132cc6
Type fulltextMimetype application/pdf

By organisation
School of Electrical Engineering and Computer Science (EECS)
Computer and Information Sciences

Search outside of DiVA

GoogleGoogle Scholar
Total: 233 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 407 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf