Flowchart

Figure 1: Block diagram of the first half of our project. Note that EEG Eye State Analysis and Automatic Detection of Sleep Stages were our steps towards our ultimate goal, diagnosing insomnia with alpha brain waves.

Figure 2: Block diagram of the second half of our project. We preprocessed the raw EEG data with FFT and Hamming window, and analyzed alpha brain activity during both wake before sleep-onset periods and wake after sleep-onset periods. Then we ran a statistical test to see how relevant our analysis is.