WESAD Dataset


Overview

Item Details
Links Dataset, Publication
Signals PPG, ECG, respiration, accelerometry, others
No. Subjs 15
Protocol Recordings during a laboratory-based protocol designed to induce different emotions, consisting of: baseline, amusement, stress and meditation

Importing the data into MATLAB

I took the following steps to import the WESAD dataset to MATLAB:

  1. Download the data from here (as stated here).
  2. Download the convert_subject_pickle_files_to_mat.py python script.
  3. Copy the subject's .pkl file to the same folder as this python script.
  4. Run the python script to convert the .pkl file into a MATLAB file. (I used Spyder - a Python program - through Anaconda-Navigator.)
  5. Copy this MATLAB file back to the same folder as the .pkl file was obtained from.
  6. Download the collate_wesad_dataset.m MATLAB script.
  7. Modify the MATLAB script by inserting the up.paths.root_folder and up.paths.save_folder into the setup_up function.
  8. Run the MATLAB script to collate all the individual MATLAB files into a single MATLAB data file, ready for analysis.