Skip to content

mathworks/manual-sleep-spindle-scorer

Repository files navigation

Manual Sleep Spindle Scorer

View Manual Sleep Spindle Scorer on File Exchange Open in MATLAB Online

This application allows users to import EEG signals in EDF format and view both the raw and filtered signals alongside a spectral analysis. Users can easily identify and highlight sleep spindles by drawing rectangles over the filtered signal. Each selected spindle region is instantly highlighted, and the start and end times are automatically recorded in a comprehensive table. For convenience, all recorded spindle data can be exported as a CSV file, facilitating further analysis and reporting. This tool is perfect for researchers and clinicians seeking precise, user-driven spindle scoring.​

View Manual Sleep Spindle Scorer on File Exchange

Setup

  1. Run Manual_Sleep_Spindle_Scorer.mlappinstall to install the app
  2. Select the Manual Sleep Spindle Scorer App Icon under the Apps tab wihin MATLAB

or

  1. Make sure downloaded files are within your path
  2. Run Manual_Sleep_Spindle_Scorer.mlapp

MathWorks Products (https://www.mathworks.com)

Requires MATLAB® release R2024b or newer

Getting Started

Workflow

  1. Open the App: Launch the app after installation.
  2. Import EEG File: Click the folder icon under "EEG File" or navigate to File > Load EEG to import an EDF file.
  3. Select Channel: Use the channel dropdown next to the folder icon to choose the desired channel.
  4. Identify Spindles:
    • Click "Select Spindle" and draw a rectangle over the region of interest in the filtered signal axes.
    • Once positioned correctly, click "Set Spindle" to highlight the region and populate the table.
  5. Repeat: Continue selecting and setting spindles as needed.
  6. Export Results: Ensure the Scorer's Name is filled in, then go to File > Export Results to save a CSV file.
  7. Save/Load Project (Optional):
    • Use File > Save Project to save the current workspace as a .mat file, including loaded files and highlighted spindles.
    • Use File > Load Project to reload a saved .mat file.

EEG Specifications

European Data Format (EDF)

License

The license is available in the License.txt file in this GitHub repository.

Community Support

MATLAB Central

Copyright 2025 The MathWorks, Inc.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published