{"id":{"repo_id":"vilnius","oai_identifier":"oai:vu.lt:elaba:277690369"},"canonical_url":"https://search.ndltd.org/etd/vilnius/oai:vu.lt:elaba:277690369","repository":{"repo_id":"vilnius","name":"Vilnius University","base_url":"https://epublications.vu.lt/oai"},"display":{"title":"Research on eeg classification algorithms by sleep stage /","abstract":"This thesis presents both a research study for automated sleep stage classification from electroencephalography (EEG) data. We target the five AASM stages (W, N1, N2, N3, REM) and use the Sleep-EDFx database. The full pipeline employs MNE for EDF/EDF+ ingestion, flexible selection of either a single EEG channel (Fpz--Cz) or three channels (Fpz--Cz, Pz--Oz, horizontal EOG), resampling to 100\\,Hz, and segmentation into 30\\,s epochs. Labels are mapped to classes consistent with AASM (R&K 3/4 merged into N3, movement/unknown excluded). We investigate a compact CNN baseline, a deeper 1D ResNet, and a CNN+BiLSTM sequence model implemented in PyTorch. For per-epoch CNNs we apply a five-state Hidden Markov Model (HMM) to the per-epoch logits as temporal post-processing, and enable the same HMM smoothing in the model serving side to maintain parity with evaluation, for the sequence-aware CNN+BiLSTM, which already models temporal context, we serve raw predictions without HMM. Complete application is also delivered: a FastAPI microservice with a Redis/RQ job queue for scalable asynchronous inference and a Next.js frontend for user interaction. Users can upload EEG files, select a model (1-channel or 3-channel, per-epoch or sequence-aware), and obtain interactive output including hypnograms, stage composition, summary sleep metrics, and a composite sleep score. Experiments on subject-independent Sleep-EDFx splits show that HMM post-processing substantially improves metrics for per-epoch CNNs and that a 1D ResNet provides a stronger per-epoch baseline than a lightweight CNN. The best overall performance is achieved by a 3-channel CNN+BiLSTM model, with a 3-channel ResNet1D + HMM configuration offering a competitive and a simpler alternative. The whole system and metrics is reproducible, and ready for future model extensions and integration into clinical workflows.","abstract_html":"This thesis presents both a research study for automated sleep stage classification from electroencephalography (EEG) data. We target the five AASM stages (W, N1, N2, N3, REM) and use the Sleep-EDFx database. The full pipeline employs MNE for EDF/EDF+ ingestion, flexible selection of either a single EEG channel (Fpz--Cz) or three channels (Fpz--Cz, Pz--Oz, horizontal EOG), resampling to 100\\,Hz, and segmentation into 30\\,s epochs. Labels are mapped to classes consistent with AASM (R&amp;K 3/4 merged into N3, movement/unknown excluded). We investigate a compact CNN baseline, a deeper 1D ResNet, and a CNN+BiLSTM sequence model implemented in PyTorch. For per-epoch CNNs we apply a five-state Hidden Markov Model (HMM) to the per-epoch logits as temporal post-processing, and enable the same HMM smoothing in the model serving side to maintain parity with evaluation, for the sequence-aware CNN+BiLSTM, which already models temporal context, we serve raw predictions without HMM. Complete application is also delivered: a FastAPI microservice with a Redis/RQ job queue for scalable asynchronous inference and a Next.js frontend for user interaction. Users can upload EEG files, select a model (1-channel or 3-channel, per-epoch or sequence-aware), and obtain interactive output including hypnograms, stage composition, summary sleep metrics, and a composite sleep score. Experiments on subject-independent Sleep-EDFx splits show that HMM post-processing substantially improves metrics for per-epoch CNNs and that a 1D ResNet provides a stronger per-epoch baseline than a lightweight CNN. The best overall performance is achieved by a 3-channel CNN+BiLSTM model, with a 3-channel ResNet1D + HMM configuration offering a competitive and a simpler alternative. The whole system and metrics is reproducible, and ready for future model extensions and integration into clinical workflows.","abstract_has_math":false,"creators":["Straigis, Valentinas,"],"institution":"Institutional Repository of Vilnius University","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2026,"date_issued":"2026","date_published":"2026","updated_at":"2026-11-19T10:11:25Z","subjects":["Automatic sleep staging, Electroencephalography (EEG), Sleep-EDFx database, Deep learning, Convolutional neural networks (CNN), Residual networks (ResNet1D), CNN–BiLSTM sequence model, Hidden Markov Model (HMM) smoothing, sleep stage classification"],"languages":["eng"],"rights":["info:eu-repo/semantics/openAccess"],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://repository.vu.lt/VU:ELABAETD277690369&prefLang=en_US","outbound_label":"Repository record","outbound_source":"dc:identifier","record_url":"https://repository.vu.lt/VU:ELABAETD277690369&prefLang=en_US","record_label":"Repository record","record_kind":"record","record_source":"dc:identifier","download_url":null,"download_label":null,"download_source":null,"access_status":"open","embargo_until":null,"access_note":null},"source_record":{"url":"https://epublications.vu.lt/oai?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Avu.lt%3Aelaba%3A277690369","prefix":"oai_dc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:creator","label":"Author","values":["Straigis, Valentinas,"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026"]},{"key":"dc:publisher","label":"Institution","values":["Institutional Repository of Vilnius University"]},{"key":"dc:relation","label":"Dc Relation","values":["https://epublications.vu.lt/object/elaba:277690369/277690369.pdf"]},{"key":"dc:type","label":"Dc Type","values":["info:eu-repo/semantics/bachelorThesis"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Automatic sleep staging, Electroencephalography (EEG), Sleep-EDFx database, Deep learning, Convolutional neural networks (CNN), Residual networks (ResNet1D), CNN–BiLSTM sequence model, Hidden Markov Model (HMM) smoothing, sleep stage classification"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["info:eu-repo/semantics/openAccess"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["https://repository.vu.lt/VU:ELABAETD277690369&prefLang=en_US"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["This thesis presents both a research study for automated sleep stage classification from electroencephalography (EEG) data. We target the five AASM stages (W, N1, N2, N3, REM) and use the Sleep-EDFx database. The full pipeline employs MNE for EDF/EDF+ ingestion, flexible selection of either a single EEG channel (Fpz--Cz) or three channels (Fpz--Cz, Pz--Oz, horizontal EOG), resampling to 100\\,Hz, and segmentation into 30\\,s epochs. Labels are mapped to classes consistent with AASM (R&K 3/4 merged into N3, movement/unknown excluded). We investigate a compact CNN baseline, a deeper 1D ResNet, and a CNN+BiLSTM sequence model implemented in PyTorch. For per-epoch CNNs we apply a five-state Hidden Markov Model (HMM) to the per-epoch logits as temporal post-processing, and enable the same HMM smoothing in the model serving side to maintain parity with evaluation, for the sequence-aware CNN+BiLSTM, which already models temporal context, we serve raw predictions without HMM. Complete application is also delivered: a FastAPI microservice with a Redis/RQ job queue for scalable asynchronous inference and a Next.js frontend for user interaction. Users can upload EEG files, select a model (1-channel or 3-channel, per-epoch or sequence-aware), and obtain interactive output including hypnograms, stage composition, summary sleep metrics, and a composite sleep score. Experiments on subject-independent Sleep-EDFx splits show that HMM post-processing substantially improves metrics for per-epoch CNNs and that a 1D ResNet provides a stronger per-epoch baseline than a lightweight CNN. The best overall performance is achieved by a 3-channel CNN+BiLSTM model, with a 3-channel ResNet1D + HMM configuration offering a competitive and a simpler alternative. The whole system and metrics is reproducible, and ready for future model extensions and integration into clinical workflows."]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Research on eeg classification algorithms by sleep stage /","EEG klasifikavimo pagal miego stadiją algoritmų tyrimas."]}]}],"canonical_facts":{"dc:creator":["Straigis, Valentinas,"],"dc:date":["2026"],"dc:description":["This thesis presents both a research study for automated sleep stage classification from electroencephalography (EEG) data. We target the five AASM stages (W, N1, N2, N3, REM) and use the Sleep-EDFx database. The full pipeline employs MNE for EDF/EDF+ ingestion, flexible selection of either a single EEG channel (Fpz--Cz) or three channels (Fpz--Cz, Pz--Oz, horizontal EOG), resampling to 100\\,Hz, and segmentation into 30\\,s epochs. Labels are mapped to classes consistent with AASM (R&K 3/4 merged into N3, movement/unknown excluded). We investigate a compact CNN baseline, a deeper 1D ResNet, and a CNN+BiLSTM sequence model implemented in PyTorch. For per-epoch CNNs we apply a five-state Hidden Markov Model (HMM) to the per-epoch logits as temporal post-processing, and enable the same HMM smoothing in the model serving side to maintain parity with evaluation, for the sequence-aware CNN+BiLSTM, which already models temporal context, we serve raw predictions without HMM. Complete application is also delivered: a FastAPI microservice with a Redis/RQ job queue for scalable asynchronous inference and a Next.js frontend for user interaction. Users can upload EEG files, select a model (1-channel or 3-channel, per-epoch or sequence-aware), and obtain interactive output including hypnograms, stage composition, summary sleep metrics, and a composite sleep score. Experiments on subject-independent Sleep-EDFx splits show that HMM post-processing substantially improves metrics for per-epoch CNNs and that a 1D ResNet provides a stronger per-epoch baseline than a lightweight CNN. The best overall performance is achieved by a 3-channel CNN+BiLSTM model, with a 3-channel ResNet1D + HMM configuration offering a competitive and a simpler alternative. The whole system and metrics is reproducible, and ready for future model extensions and integration into clinical workflows."],"dc:format":["application/pdf"],"dc:identifier":["https://repository.vu.lt/VU:ELABAETD277690369&prefLang=en_US"],"dc:language":["eng"],"dc:publisher":["Institutional Repository of Vilnius University"],"dc:relation":["https://epublications.vu.lt/object/elaba:277690369/277690369.pdf"],"dc:rights":["info:eu-repo/semantics/openAccess"],"dc:subject":["Automatic sleep staging, Electroencephalography (EEG), Sleep-EDFx database, Deep learning, Convolutional neural networks (CNN), Residual networks (ResNet1D), CNN–BiLSTM sequence model, Hidden Markov Model (HMM) smoothing, sleep stage classification"],"dc:title":["Research on eeg classification algorithms by sleep stage /","EEG klasifikavimo pagal miego stadiją algoritmų tyrimas."],"dc:type":["info:eu-repo/semantics/bachelorThesis"]},"updated_at":"2026-11-19T10:11:25Z"}