Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
The Art of Sleep EEG: Scoring and Data Analysis with Python
Rating: 4.9 out of 5(16 ratings)
311 students

The Art of Sleep EEG: Scoring and Data Analysis with Python

Sleep EEG and Python
Last updated 11/2026
English

What you'll learn

  • Understand different brain waves during sleep (slow waves, spindles, K-complexes) and what they mean
  • Learn how to visualize, and explore sleep EEG data using Python (MNE & YASA)
  • Perform sleep staging and understand how sleep scoring works (manual and automatic)
  • Detect sleep events such as slow oscillations and sleep spindles from real data

Course content

8 sections • 32 lectures • 6h 9m total length
  • A short history of sleep9:18

    Explore the historical evolution of sleep research from Aristotle and Hippocrates to modern EEG, REM sleep, and brainwave concepts, setting the stage for Python-based sleep EEG analysis.

  • The main stages of sleep14:23

    Explore non-REM and rapid eye movement sleep and how sleep stages 1, 2, and 3 form cycles; learn how a hypnogram visualizes sleep architecture.

  • The God of sleep3:26

    Explore Hypnos, the god of sleep, and his kinship with night and death in ancient myths. Learn to score sleep stages and build a hypnogram with Python.

  • Introduction to YASA tool6:04

    Explore IYASA, an open-source automatic sleep staging tool trained on hours of sleep EEG data to match expert scorers. Generate hypnograms and analyze sleep architecture, including spindles and REM periods.

  • Hypnogram and Sleep Architecture Analysis34:53

    Generate and analyze a hypnogram and sleep architecture with Python, MNE, and Yasa, performing automatic sleep staging, plotting, and computing key metrics like latency and total sleep time.

Requirements

  • No advanced programming experience needed

Description

Sleep EEG can feel overwhelming at first, we have long recordings, complex signals, and unfamiliar patterns. But once you learn how to read it, EEG becomes a powerful tool to understand the sleeping brain. This course is not just about coding. It is also about understanding what the brain waves mean during sleep. The code is kept simple and clear, so you can learn without feeling overwhelmed. In this course, you will learn how to go from raw EEG data to meaningful results using Python. You will start with the basics of sleep and EEG. You’ll learn how to recognize sleep stages and important features like slow waves, sleep spindles, and K-complexes. Then, you’ll work with real EEG data using MNE and YASA. Next, you will learn practical analysis skills. You will also learn how to automatically detect sleep events and extract useful features. By the end of this course, you will be able to:


Load and explore full-night EEG recordings

Perform sleep staging (manual and automatic)

Detect slow waves and spindles

Analyze data in time and frequency

Extract features for research


This course is designed for students, researchers, and professionals in neuroscience, psychology, biomedical engineering, and data science.

No advanced coding is needed. Everything is explained step by step. By the end, you won’t just see EEG signals,  you will understand and analyze them with confidence. Let's start our sleep exploration.

Who this course is for:

  • Anyone interested in sleep EEG and brain signal analysis