Load Wearable Sensing Data#
This will be a guide on loading Wearable Sensing data using MNE-Python.
Experiment
The data were collected using a DSI-24 at a sampling rate of 300Hz. There were two conditions in which the user was asked to close and open their eyes.
Example Data#
To follow along with this tutorial, you can download a sample data file from this dropbox.
Import using MNE#
import mne
# Define the file path of the EDF file on you computer
edf_file_path = 'Sample_DSI_24_Eyes_Closed.edf'
# Load data with mne
wearable_sensing_data = mne.io.read_raw_edf(edf_file_path, preload = True)
mne.io.read_raw_edf()
is designed by the MNE-Python library to read data from EDF files. When this EDF file is read, we capture the data and create a raw object that holds not only the actual EEG data, but all the relevant metadata. This includes:
Channel Names
Channel Types
Sampling Frequency
Event Markers
And lots more!
Preload option
The preload=True
option loads the data into memory, allowing for faster access and manipulation. By default, MNE does not preload the data, which means it will read the data from disk each time you access it.
Resources#
For more in-depth documentation and API reference, please refer to: (mne.io.read_raw_edf)