CSV and Muse Headband Recordings

Topic | 4 min read

A CSV of EEG samples, including Muse headband recordings saved by Mind Monitor, converted to an EDF+ recording on this device.

What the import does

Use Import and choose a CSV (also .tsv or .txt), or open one in EEG TraceLab from another app. The CSV is read on this device and written as a new EDF+ file, or BDF+ (24-bit) when 16 bits would round its values; that file is then de-identified, named and stored like any EDF. The CSV itself is not kept, and nothing leaves the device.

Values keep their unit and are stored to within half a digital step: the sheet shows the format and the step before you convert. The recording's details say it was converted from a CSV.

A data record holds a whole number of samples, so the last samples of a stretch that do not fill one (an eighth of a second at 256 Hz) are left out; the sheet says how many.

Muse headband recordings (Mind Monitor)

Files in the layout Mind Monitor writes (TimeStamp, RAW_TP9, RAW_AF7, RAW_AF8, RAW_TP10 and band powers) are recognised. The four EEG channels are imported in µV at the headband's rate, 256 Hz (220 Hz for the 2014 Muse). The AUX input can be included when it has a value in every row; it is often not connected. Muse EEG sits around 800 µV, the headband's mid-scale, so the Viewer opens these recordings with the 0.5 Hz display high-pass on to show the waves; turn it off in Filter. Analyses and exports always use the recorded samples.

Mind Monitor stamps each row when it arrives over Bluetooth, so rows come in bursts and sometimes late. The samples follow the headband's own clock, and the timestamps only show where data is missing. A dropout becomes a gap (EDF+D) shown as “No data” and never joined up, like any EDF+D gap; rows the headband did not deliver (“NaN”) are part of the gaps. Pauses that are caught up are not gaps.

Missing data shorter than about 30 ms cannot be told apart from Bluetooth delay. The sheet shows the arrival jitter, the longest pause that was caught up, and how far the sample clock and the timestamps have drifted apart by the end.

Markers (Marker 1 to 5) and connection events become annotations, without the headband's name; the headband's blink and jaw-clench detections too, unless you switch them off; times with the headband off are annotated. Marker times follow the timestamps on the headband's clock and can be off by the Bluetooth delay, usually some tens of milliseconds.

A file with only band powers (Delta, Theta, Alpha, Beta, Gamma), or with one row per interval because the recording interval was not Constant, has no raw EEG and is declined with a message. A file re-saved by a spreadsheet app with times like 26:15.5 still opens, but its timestamps only show gaps longer than about 0.2 s.

Any other CSV

Choose the channel columns, enter the sample rate and choose the unit (µV, mV or V). Columns named like EEG channels are switched on first; columns that look like a time or a sample number start switched off. The rate is suggested from a comment line (“Sample Rate = 250 Hz”) or a time column when the file has one; check it, as every time depends on it.

Each row is one sample, in file order. An empty or non-numeric cell in a chosen column stops the import with its row number; nothing is skipped, reordered or filled in.

Comma, semicolon, tab or vertical-bar separated text is read, with a decimal comma when the separator is not a comma, comment lines at the top (% or #) and an optional header row. Save files from a spreadsheet as CSV (UTF-8).

Online EEG Reviewer

The Online EEG Reviewer on eegtracelab.com converts these CSV files in the browser, by the same rules and to the same EDF+ or BDF+ file, then opens it like any EDF. Nothing is uploaded.

CSV and Muse Headband Recordings

Topic | 4 min read

A CSV of EEG samples, including Muse headband recordings saved by Mind Monitor, converted to an EDF+ recording on this device.

What the import does

Tap + at the top of Home, choose Import Recordings… and pick a CSV (also .tsv or .txt), or open one in EEG TraceLab from another app. The CSV is read on this device and written as a new EDF+ file, or BDF+ (24-bit) when 16 bits would round its values; that file is then de-identified, named and stored like any EDF. The CSV itself is not kept, and nothing leaves the device.

Values keep their unit and are stored to within half a digital step: the sheet shows the format and the step before you convert. The naming panel's Source row says it was converted from a CSV.

A data record holds a whole number of samples, so the last samples of a stretch that do not fill one (an eighth of a second at 256 Hz) are left out; the sheet says how many.

Muse headband recordings (Mind Monitor)

Files in the layout Mind Monitor writes (TimeStamp, RAW_TP9, RAW_AF7, RAW_AF8, RAW_TP10 and band powers) are recognised. The four EEG channels are imported in µV at the headband's rate, 256 Hz (220 Hz for the 2014 Muse). The AUX input can be included when it has a value in every row; it is often not connected. Muse EEG sits around 800 µV, the headband's mid-scale, so the Viewer opens these recordings with the 0.5 Hz display high-pass on to show the waves; turn it off in Filter. Analyses and exports always use the recorded samples.

Mind Monitor stamps each row when it arrives over Bluetooth, so rows come in bursts and sometimes late. The samples follow the headband's own clock, and the timestamps only show where data is missing. A dropout becomes a gap (EDF+D) shown as “No data” and never joined up, like any EDF+D gap; rows the headband did not deliver (“NaN”) are part of the gaps. Pauses that are caught up are not gaps.

Missing data shorter than about 30 ms cannot be told apart from Bluetooth delay. The sheet shows the arrival jitter, the longest pause that was caught up, and how far the sample clock and the timestamps have drifted apart by the end.

Markers (Marker 1 to 5) and connection events become annotations, without the headband's name; the headband's blink and jaw-clench detections too, unless you switch them off; times with the headband off are annotated. Marker times follow the timestamps on the headband's clock and can be off by the Bluetooth delay, usually some tens of milliseconds.

A file with only band powers (Delta, Theta, Alpha, Beta, Gamma), or with one row per interval because the recording interval was not Constant, has no raw EEG and is declined with a message. A file re-saved by a spreadsheet app with times like 26:15.5 still opens, but its timestamps only show gaps longer than about 0.2 s.

Any other CSV

Choose the channel columns, enter the sample rate and choose the unit (µV, mV or V). Columns named like EEG channels are switched on first; columns that look like a time or a sample number start switched off. The rate is suggested from a comment line (“Sample Rate = 250 Hz”) or a time column when the file has one; check it, as every time depends on it.

Each row is one sample, in file order. An empty or non-numeric cell in a chosen column stops the import with its row number; nothing is skipped, reordered or filled in.

Comma, semicolon, tab or vertical-bar separated text is read, with a decimal comma when the separator is not a comma, comment lines at the top (% or #) and an optional header row. Save files from a spreadsheet as CSV (UTF-8).

Online EEG Reviewer

The Online EEG Reviewer on eegtracelab.com converts these CSV files in the browser, by the same rules and to the same EDF+ or BDF+ file, then opens it like any EDF. Nothing is uploaded.