Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ML_algorithm.py
Preprocessing.m
README.md
remove_column.ps1
samples (1).csv
samples (10).csv
samples (100).csv
samples (11).csv
samples (12).csv
samples (13).csv
samples (14).csv
samples (15).csv
samples (16).csv
samples (17).csv
samples (18).csv
samples (19).csv
samples (2).csv
samples (20).csv
samples (21).csv
samples (22).csv
samples (23).csv
samples (24).csv
samples (25).csv
samples (26).csv
samples (27).csv
samples (28).csv
samples (29).csv
samples (3).csv
samples (30).csv
samples (31).csv
samples (32).csv
samples (33).csv
samples (34).csv
samples (35).csv
samples (36).csv
samples (37).csv
samples (38).csv
samples (39).csv
samples (4).csv
samples (40).csv
samples (41).csv
samples (42).csv
samples (43).csv
samples (44).csv
samples (45).csv
samples (46).csv
samples (47).csv
samples (48).csv
samples (49).csv
samples (5).csv
samples (50).csv
samples (51).csv
samples (52).csv
samples (53).csv
samples (54).csv
samples (55).csv
samples (56).csv
samples (57).csv
samples (58).csv
samples (59).csv
samples (6).csv
samples (60).csv
samples (61).csv
samples (62).csv
samples (63).csv
samples (64).csv
samples (65).csv
samples (66).csv
samples (67).csv
samples (68).csv
samples (69).csv
samples (7).csv
samples (70).csv
samples (71).csv
samples (72).csv
samples (73).csv
samples (74).csv
samples (75).csv
samples (76).csv
samples (77).csv
samples (78).csv
samples (79).csv
samples (8).csv
samples (80).csv
samples (81).csv
samples (82).csv
samples (83).csv
samples (84).csv
samples (85).csv
samples (86).csv
samples (87).csv
samples (88).csv
samples (89).csv
samples (9).csv
samples (90).csv
samples (91).csv
samples (92).csv
samples (93).csv
samples (94).csv
samples (95).csv
samples (96).csv
samples (97).csv
samples (98).csv
samples (99).csv

README.md

Sleep_Disorder_Detection

1.Clean your dataset using the scripts 2.Input your EEG cleaned data into Preprocessing.m 3.Define annotations in output.csv 4.Use the output file in MLalgorithm.py

This gives an abstract of how to detect sleep disorder (insomnia here) using ML.

In the first part we took the dataset of normal persons recording and insomnia persons recording from the Physionet website.

Then the project is divided into 4 main steps. That is signal preprocessing, feature extraction, training the data and testing the data.

In signal preprocessing the EEG signal is filtered from all the noises and the signal is classified by frequency analysis.

Using methods like discrete Fourier transformation we changed the time domain into frequency domain and then obtained the alpha beta theta, delta waves.

We took the cutoff frequency as 0.5 and 30 as all these waves range in that.

The next step was feature extraction. We extracted features like mean, minimum, maximum, standard deviation and variance. These are taken for all the waves so in total we have 20 features and the obtained features were uploaded to a CSV file.

The further process is training the data set we selected the features and using logistic regression we divide the dataset into normal person and insomnia person in a ratio of 70:30.

Then the dataset was trained and the training accuracy came to 100% while the testing accuracy came between 60% to 80

Dataset taken from physionet.org

You can’t perform that action at this time.