{"data":{"_id":"6ac93487c2d31e627c370af9","acknowledgements":"From the library publication (Miller KJ (2019) A library of human electrocorticographic data and analyses. Nat Hum Behav 3:1225-1235, doi:10.1038/s41562-019-0678-3, Acknowledgements): the author thanks J. Ojemann, M. den Nijs, R. Rao and G. Schalk for mentorship during the development of the library; D. Hermes, R. Eisinger and B. Wandell for discussions about open data and critical readings of the manuscript; and the patients at Harborview Hospital in Seattle for their participation. Task data subsets were first described in the publications listed in ReferencesAndLinks (per the task READMEs).","associated_paper_doi":null,"authors":["Kai J. Miller"],"bad_channels_info":null,"bids_version":"1.9.0","canonical_name":null,"computed_title":"IEEG004: A library of human electrocorticographic data and analyses (Kai J. Miller) - calibrated task subset","contact_info":null,"contributing_labs":null,"data_processed":false,"dataset_doi":"10.82901/nemar.nm000352","dataset_id":"nm000352","datatypes":["ieeg"],"demographics":{"age_max":49,"age_mean":30.666666666666668,"age_min":18,"ages":[18,31,21,49,23,24,24,42,26,18,41,35,45,38,39,32,19,27],"handedness_distribution":{"l":1,"r":17},"sex_distribution":{"f":9,"m":9},"species":null,"subjects_count":24},"ethics_approvals":["All patients participated in a purely voluntary manner, after providing informed written consent, under experimental protocols approved by the Institutional Review Board of the University of Washington (#12193). All patient data was anonymized according to IRB protocol, in accordance with HIPAA mandate. (Ethics statement that the task READMEs of Stanford Digital Repository https://purl.stanford.edu/zk881ps0522 require verbatim in any publication using the data; wording as in the motor_basic, fingerflex, gestures, speech_basic and speech_lists READMEs.)"],"experimental_modalities":null,"external_links":{"github_url":null,"osf_url":null,"paper_url":null,"source_url":"https://nemar.org/dataexplorer/detail/nm000352"},"funding":["National Science Foundation BCS-0642848 (data collection)","National Institutes of Health RO1NS065186 (data collection)","Van Wagenen Foundation (financial support of the author)"],"generated_by":[{"Description":"MATLAB task files from the SDR zk881ps0522 archives written as BrainVision with MNE-BIDS; data scaled once by the source-documented factor 1 amplifier unit = 0.0298 microvolts; stim vector kept as STIMCODE channel; no filtering, resampling or re-referencing.","Name":"laneC_convert.py (ieeg-nemar-20261005 harness)"}],"how_to_acknowledge":"All patients participated voluntarily after informed written consent, under University of Washington IRB protocol #12193. Data were anonymized per IRB/HIPAA. Cite: Miller KJ, \"A library of human electrocorticographic data and analyses\", and the Stanford Digital Repository https://purl.stanford.edu/zk881ps0522","ingestion_fingerprint":"f87c14d6de3b69c67ccce4d897138e3c7f7d801cacaac284fa9d7c66560ff025","license":"CC-BY-SA-4.0","n_contributing_labs":null,"n_records":111,"name":"IEEG004: A library of human electrocorticographic data and analyses (Kai J. Miller) - calibrated task subset","nchans_counts":[{"count":35,"val":65},{"count":18,"val":49},{"count":15,"val":47},{"count":7,"val":64},{"count":5,"val":81},{"count":5,"val":48},{"count":5,"val":85},{"count":4,"val":62},{"count":3,"val":87},{"count":2,"val":46},{"count":2,"val":63},{"count":2,"val":59},{"count":1,"val":26},{"count":1,"val":44},{"count":1,"val":40},{"count":1,"val":50},{"count":1,"val":42},{"count":1,"val":61},{"count":1,"val":60},{"count":1,"val":39}],"readme":"[![DOI](https://img.shields.io/badge/DOI-10.82901%2Fnemar.nm000352-blue)](https://doi.org/10.82901/nemar.nm000352)\nIEEG004 calibrated-task subset (fingerflex, gestures, imagerybasic, motorbasic, speechbasic, speechlists)\n## Overview\nSubset of \"A library of human electrocorticographic data and analyses\" (Kai J. Miller; Stanford Digital Repository\nhttps://purl.stanford.edu/zk881ps0522, CC BY-SA 4.0). The library holds \"204 individual datasets from 34 patients made with\nthe same amplifiers (at the same sampling rate and filter settings)\" for 16 behavioural experiments, with electrode positions\nregistered to brain anatomy and MATLAB analysis code (SDR record abstract; Miller KJ (2019), Nat Hum Behav 3:1225-1235, doi:10.1038/s41562-019-0678-3). This NEMAR dataset contains the six task\narchives whose READMEs document a physical-unit calibration: fingerflex, gestures, imagery_basic, motor_basic, speech_basic\nand speech_lists (111 recordings, 24 participants).\n## Cohort\n- 24 patients (source two-letter codes, which \"are not the patient's initials\" per the task READMEs), recorded at Harborview\n  Hospital in Seattle (library publication acknowledgements; joystick/mouse task READMEs). Age, sex, handedness, grid location\n  and seizure focus, where the source patient table gives them, are in `participants.tsv` / `participants.json`.\n- Clinical population: patients with subdural electrode grids placed for extended clinical monitoring and localization of seizure\n  foci for medically refractory epilepsy (Miller et al. 2012 PLoS Comput Biol, Methods, for the fingerflex patients; BCI\n  Competition IV dataset 4 description).\n- Implant: subdural ECoG electrodes (all signal channels typed ECOG). For the fingerflex patients the source publication\n  states: \"The platinum electrode arrays (Ad-Tech, Racine, WI) were configured as combinations of 'grid' (4x8 8x8) and strip\n  arrays, numbering between 32 and 81 in total. The electrode pads had 4 mm diameter (2.3 mm exposed), 1 cm inter-electrode\n  distance\" (Miller et al. 2012, doi:10.1371/journal.pcbi.1002655, Methods). `ElectrodeManufacturer` is set only for the\n  fingerflex recordings, the only task whose patients that publication covers.\n- Amplifier: Synamps2 (Neuroscan, El Paso, TX), per the BCI Competition IV dataset 4 description (\"Signals from the electrode\n  grid were amplified and digitized using Synamps2 amplifiers (Neuroscan, El Paso, TX)\") and Miller et al. 2012 (\"recorded\n  with Synamps2 (Neuroscan, El Paso, TX) biosignal amplifiers at 1 kHz\"); the library states that all datasets were made with\n  the same amplifiers. Signals were acquired with the general-purpose BCI2000 software (same sources). The *_ieeg.json\n  `Manufacturer` previously read \"Brain Products\", which was a default of the BrainVision writer, not the recording system;\n  it now reads Neuroscan / Synamps2.\n- Sampling rate 1000 Hz; built-in amplifier band pass 0.15-200 Hz, 1-pole, so there is no sharp corner at 200 Hz; the\n  amplitude roll-off function is in `ns_1k_1_300_filt.mat` in the source (all six task READMEs; recorded in\n  `HardwareFilters`). Miller et al. 2012 reports the Seattle instrumental band pass as 0.3-200 Hz; the task READMEs, which\n  describe these files, are followed here.\n- Reference: motor_basic and imagery_basic READMEs: \"Data were recorded with respect to a scalp reference.\"\n  (`iEEGReference` set for those two tasks only); the BCI Competition IV description also states acquisition \"with respect to a\n  scalp reference and ground\". The other task READMEs do not state the reference (`iEEGReference` n/a).\n## Tasks\n| task | recordings | participants | source paradigm (task README) |\n|---|---|---|---|\n| fingerflex | 9 | bp cc ht jc jp mv wc wm zt | cued flexion of individual fingers, 2 s movement / 2 s rest, 30 cues per finger (Miller et al. 2012 PLoS Comput Biol) |\n| gestures (acq base, fingerflex, thumbfore, pinch, freeform, rhlh, motth, glovefingersgrasp) | 22 | bp ca cc de wm | baseline fixation and cued hand/finger gestures (unpublished per README) |\n| imagerybasic (acq motth = movement, imth = kinesthetic imagery) | 14 | bp fp hh jc jm rh rr | hand/tongue movement and imagery, 2-3 s cue blocks (Miller et al. 2010 PNAS) |\n| motorbasic (acq motth) | 19 | 19 patients | hand/tongue movement, 2-3 s cue blocks (Miller et al. 2007 J Neurosci) |\n| speechbasic (acq verbs / nouns) | 11 | bp hl in jc wc ww zt | verb generation / noun reading, 1.6 s cue + 1.6 s blank (Miller et al. 2011 J Neurosurg Pediatr) |\n| speechlists (acq nouns/verbs x list 1-2 x run 1-3) | 36 | jc wc ww | two 40-noun lists, read 3x then verb generation 3x |\nEach *_ieeg.json carries the task description (`TaskDescription`), and `Instructions` where the README states them.\n## Files\n- `*_ieeg.vhdr/.vmrk/.eeg`: BrainVision recordings; ECoG channels `ecogNNN` plus, where the source file has a stim vector, a\n  `STIMCODE` channel (type MISC) with that vector verbatim.\n- `*_channels.tsv`: channel list; `low_cutoff` 0.15 / `high_cutoff` 200.0 Hz on the ECoG channels = the built-in 1-pole\n  amplifier band pass stated in every task README (no sharp corner at 200 Hz; roll-off in `ns_1k_1_300_filt.mat`).\n- `*_events.tsv` / `*_events.json`: one event per constant segment of the source stim vector; `trial_type` = `stimcode-<N>`,\n  with the meaning of each code in `trial_type.Levels` of the events.json, taken from the task README and, for gestures, from the\n  `stimtext` cue-text variable of the source file. Codes the README does not define are labelled as such (fingerflex -1/-2,\n  motor_basic 13 (gf) and 15 (zt), gestures baseline code 1). For speechlists, codes 1-40 map to the 40 nouns of LIST 1 or LIST 2\n  as printed in the speech_lists README. `value` is a writer-assigned integer ID, not the source code.\n- speechbasic recordings have no events file and no STIMCODE channel: their source files carry the cue timing in a variable\n  named `cues` (not `stim`), which the conversion did not export.\n- `sub-<s>_electrodes.tsv` / `sub-<s>_coordsystem.json`: source electrode positions (see Conversion notes).\n- `participants.tsv`: per-patient information from the source patient table.\n## Preprocessing applied by the source\n- Channel rejection: motor_basic README: \"I have attempted to remove the contaminated channels\"; the imagery_basic README\n  contains the same sentence and also \"I have not rejected bad /epileptic channels from these data\"; gestures README: \"I have\n  not rejected bad channels from these data.\"\n- motor_basic README: \"electrode montages may be different from same task in same patient elsewhere in this library (when electrodes were\n  artifactual for a different task within the same experiment, those electrodes would be deleted across to the board)\".\n- Audio of patient speech is not included in speech_basic and speech_lists (removed by the source for anonymity).\n- No other processing is stated; the data are the hardware-filtered 1 kHz recordings scaled to volts (Conversion notes).\n## Known caveats\n- See \"Conversion notes\" below (kept verbatim): synthetic channel names, numeric stim codes, coordinate units assumed (mm).\n- `PowerLineFrequency` is n/a: the reviewed source documents do not state it.\n- Some README code tables do not match the files: gestures `rh_lh` files use codes 5/6/7 (stimtext right/left/both) where\n  the README lists 1/2/3; the gestures baseline README says `stim` is all zeros, but the files contain code 1 segments.\nEthics statement (verbatim, required by source license):\nAll patients participated in a purely voluntary manner, after providing informed written consent,\nunder experimental protocols approved by the Institutional Review Board of the University of\nWashington (#12193). All patient data was anonymized according to IRB protocol, in accordance with\nHIPAA mandate. It was made available through the library described in \"A Library of Human\nElectrocorticographic Data and Analyses\" by Kai Miller, freely available at\nhttps://searchworks.stanford.edu/view/zk881ps0522 .\n## Funding\nLibrary publication (Miller KJ (2019), Nat Hum Behav 3:1225-1235, doi:10.1038/s41562-019-0678-3): \"I am financially supported by the Van Wagenen Foundation. Data collection was supported by NSF\ngrant no. BCS-0642848 and NIH grant no. RO1NS065186.\"\nConversion notes: data were scaled from stored amplifier units to volts using the source-documented\nfactor 1 amplifier unit = 0.0298 microvolts (2.98e-8 V/unit), applied once. Channel names ecogNNN are\nSYNTHETIC source-order indices, not acquisition electrode labels (none were supplied). The STIMCODE\nchannel preserves the source stim vector verbatim; events.tsv trial_type values are the raw numeric\nstim codes (stimcode-<N>); see each archive's original README (preserved in\nresearch/ieeg004-conversion/<task>-readme.txt on the lab copy) for the source-defined code meanings.\nElectrode coordinates, where present, are Talairach via the LOC package; coordinate units are an\nassumption (mm), not confirmed by source documentation (see coordsystem.json).\nThe BCI Competition IV dataset 4 archive and the mouse/joystick/visual_search/fixation tasks without a\ndocumented physical-unit calibration are intentionally excluded from this subset.\n## How to load\n```python\nimport mne, pandas as pd\nraw = mne.io.read_raw_brainvision(\"sub-bp/ieeg/sub-bp_task-fingerflex_ieeg.vhdr\", preload=False)\nevents = pd.read_csv(\"sub-bp/ieeg/sub-bp_task-fingerflex_events.tsv\", sep=\"\\t\")\n# or with MNE-BIDS:\nfrom mne_bids import BIDSPath, read_raw_bids\nraw = read_raw_bids(BIDSPath(root=\".\", subject=\"bp\", task=\"fingerflex\", datatype=\"ieeg\"))\n```\n## Citations\n- Miller KJ (2019). A library of human electrocorticographic data and analyses. Nature Human Behaviour 3:1225-1235.\n  doi:10.1038/s41562-019-0678-3\n- Miller, Kai Joshua (2016). A library of human electrocorticographic data and analyses. Stanford Digital Repository.\n  https://purl.stanford.edu/zk881ps0522\n- Task papers named in the READMEs: Miller et al. 2007 J Neurosci 27:2424-2432 (doi:10.1523/JNEUROSCI.3886-06.2007; motor_basic);\n  Miller et al. 2010 PNAS (doi:10.1073/pnas.0913697107; imagery_basic); Miller et al. 2012 PLoS Comput Biol 8:e1002655\n  (doi:10.1371/journal.pcbi.1002655; fingerflex); Miller et al. 2011 J Neurosurg Pediatr 7:482 (doi:10.3171/2011.2.PEDS1156;\n  speech_basic).\n- Miller KJ, Schalk G (2008). Prediction of finger flexion: 4th Brain-Computer Interface Data Competition (dataset 4\n  description). https://www.bbci.de/competition/iv/desc_4.pdf\n## Source and provenance\nStanford Digital Repository druid zk881ps0522 (deposited 2019-02-05; CC BY-SA 4.0), task archives fingerflex.zip,\ngestures.zip, imagery_basic.zip, motor_basic.zip, speech_basic.zip, speech_lists.zip and the patient table\nkjm_ECoGLibrary_PatientTaskTable.pdf.","recording_modality":["ieeg"],"references_and_links":["https://doi.org/10.1038/s41562-019-0678-3","https://purl.stanford.edu/zk881ps0522","https://doi.org/10.1523/JNEUROSCI.3886-06.2007","https://doi.org/10.1073/pnas.0913697107","https://doi.org/10.1371/journal.pcbi.1002655","https://doi.org/10.3171/2011.2.PEDS1156","https://www.bbci.de/competition/iv/desc_4.pdf","https://searchworks.stanford.edu/view/zk881ps0522"],"senior_author":"Kai J. Miller","sessions":[],"sfreq_counts":[{"count":111,"val":1000.0}],"size_bytes":15067020784,"source":"nemar","source_datasets":[{"URL":"https://purl.stanford.edu/zk881ps0522","Version":"SDR deposit 2019-02-05"}],"stats_computed_at":"2026-10-09T18:38:05.207245+00:00","storage":{"backend":"nemar","base":"s3://nemar/nm000352","dep_keys":["README.md","participants.json","participants.tsv"],"raw_key":"dataset_description.json"},"study_design":null,"study_domain":null,"tagger_meta":{"config_hash":"39931253008fe2df","model":"gpt-6-sol","source":"eegdash-llm-tagger","tagged_at":"2026-10-10T13:18:15Z","taxonomy":"v2"},"tags":{"confidence":{"modality":0.8,"pathology":0.9,"type":0.9},"modality":["Visual"],"pathology":["Epilepsy"],"reasoning":{"decision_summary":"Pathology top two: Epilepsy versus Healthy. Epilepsy wins because the cohort is explicitly \"24 patients,\" undergoing \"localization of seizure foci,\" with \"medically refractory epilepsy\"; the epilepsy few-shot aligns (confidence 0.9). Modality top two: Visual versus No stimulus. Visual wins because \"noun reading,\" \"baseline fixation,\" \"stimtext cue-text variable,\" and \"cued hand/finger gestures\" indicate presented visual material, whereas only some movement or imagery could otherwise be unstimulated; the visually cued motor few-shot aligns (confidence 0.8). Type top two: Motor versus Language; both are selected because distinct task archives explicitly study \"cued flexion of individual fingers\" and \"hand/tongue movement and imagery,\" as well as \"verb generation / noun reading\" and noun-list reading and generation. Clinical was considered but loses because seizure diagnosis is the recruitment reason, not the stated task focus (confidence 0.9). No metadata fact was overridden by a few-shot pattern.","evidence_alignment_check":"Pathology: Metadata SAYS \"medically refractory epilepsy\" and \"localization of seizure foci\" in patients. The epilepsy HFO few-shot SUGGESTS Epilepsy for an epilepsy-recruited cohort. ALIGN; this explicit recruitment fact controls the label. Modality: Metadata SAYS \"noun reading,\" \"baseline fixation,\" and \"stimtext cue-text variable.\" The visually cued motor few-shot SUGGESTS Visual. ALIGN, although the channel of every motor cue is not individually specified. Type: Metadata SAYS \"hand/tongue movement and imagery\" and \"verb generation / noun reading.\" The motor few-shot SUGGESTS Motor for movement and imagery; the stated speech tasks additionally support Language. ALIGN on Motor; the metadata establishes Language independently. The clinical HFO example does not make Clinical appropriate merely because these participants have epilepsy.","few_shot_analysis":"The EEG Motor Movement/Imagery example maps visually cued movement and imagery to Visual and Motor. The epilepsy HFO example maps patients recruited for seizure monitoring to Epilepsy, but its Clinical type reflects HFO detection as the research focus. The auditory music-and-speech example also shows that speech-related stimuli alone do not determine Type; the task's purpose matters.","metadata_analysis":"The cohort is explicitly described as \"patients with subdural electrode grids placed for extended clinical monitoring and localization of seizure foci for medically refractory epilepsy.\" The task table describes \"cued flexion of individual fingers,\" \"hand/tongue movement and imagery, 2-3 s cue blocks,\" and \"verb generation / noun reading, 1.6 s cue + 1.6 s blank.\" Gestures include \"baseline fixation and cued hand/finger gestures,\" and their cue text is documented as a \"stimtext cue-text variable.\" These support epilepsy recruitment, visually presented cues, and both motor and language research tasks.","paper_abstract_analysis":"No useful paper information: no paper abstract was supplied."},"type":["Motor","Language"]},"tasks":["fingerflex","gestures","imagerybasic","motorbasic","speechbasic","speechlists"],"timestamps":{"dataset_created_at":null,"dataset_modified_at":"2026-10-08 05:44:23","digested_at":"2026-10-08T08:47:11.903300+00:00"},"total_duration_s":29768.489,"total_files":111},"database":"eegdash","success":true}