3.8 KB

Evoked Potential Time Series

Motor evoked potentials for multiple sclerosis: A multiyear follow-up dataset.


Multiple sclerosis (MS) is a chronic disease affecting millions of people worldwide. The signal conduction through the central nervous system of MS patients deteriorates. Evoked potential measurements allow clinicians to monitor the degree of deterioration and are used for decision support. We share a dataset that contains motor evoked potential (MEP) measurements, in which the brain is stimulated and the resulting signal is measured in the hands and feet. This results in time series of 100 milliseconds long. Typically, both hands and feet are measured in one hospital visit. The dataset consists of 5586 visits of 963 patients, performed in day-to-day clinical care over a period of 6 years. The dataset consists of approximately 100,000 MEP. Clinical metadata such as the expanded disability status scale, sex, and age is also available. This dataset can be used to explore the role of evoked potentials in MS research and patient care. It may also be used as a real-world benchmark for machine learning techniques for time series analysis and predictive modelling.


Downloading the dataset

There are a few ways to download the dataset (data/ Since it is a fairly small filesize (~300MB), it can just be downloaded through the web interface. Or from the commandline:


Alternatively, you may clone the repository to your local machine, which will also include the dataset:

git clone

For more ways of accessing the data, please refer to GIN's FAQ.


The dataset itself is stored in data/ The general structures is as follows:

  • patient.csv: Contains the records for the various patients.
  • visit.csv: Contains the records for the various visits.
  • test.csv: Contains the records for the various tests.
  • measurement.csv: Contains the records for the various measurements.
  • edss.csv: Contains the records for the various edss measurements.

Besides these files the dataset also contains textfiles for each of the actual time series. The filenames of these files contain a unique identifier which can be used to link back to the column "timeseries" in the measurement.csv file. Some code to automate this linking (in Python) is included in code/

More details about specifics fields can be found in the dataset descriptor.

Getting started

It is highly recommended to have a look at the included code/jupyter notebook to familiarize oneself with the dataset. It includes a sample use case and goes over how to work with the dataset.

To run the jupyter notebook a few Python packages are required:

  • Pandas
  • Numpy
  • Matplotlib
  • Scipy
  • Scikit-learn
  • Tqdm
  • Jupyter

For example in anaconda this could be achieved using:

conda create --name mep python=3 pandas numpy matplotlib scipy scikit-learn tqdm jupyter

which creates an environment called "mep" that contains the required packages.


Creative Commons License
This work, including the provided code, is licensed under a Creative Commons Attribution 4.0 International Public License.

See LICENSE file for the full license.