{"data":{"_id":"6acdfdc8c2d31e627c372e90","acknowledgements":"Data, source code and results published by the authors at the Repositori Digital de la UPF (doi:10.34810/data502). BIDS conversion for NEMAR by Bruno Aristimunha's iEEG-NEMAR campaign.","associated_paper_doi":null,"authors":["Ralph G. Andrzejak","Kaspar Schindler","Christian Rummel"],"bad_channels_info":null,"bids_version":"1.10.0","canonical_name":null,"computed_title":"Bern-Barcelona EEG database: focal and nonfocal intracranial EEG signal pairs (Andrzejak, Schindler & Rummel 2012)","contact_info":null,"contributing_labs":null,"data_processed":false,"dataset_doi":"10.82901/nemar.nm000359","dataset_id":"nm000359","datatypes":["ieeg"],"demographics":{"age_max":null,"age_mean":null,"age_min":null,"ages":[],"handedness_distribution":null,"sex_distribution":null,"species":null,"subjects_count":1},"ethics_approvals":["Retrospective EEG data analysis approved by the ethics committee of the Kanton of Bern; all patients gave written informed consent that their data from long-term EEG might be used for research purposes (Andrzejak et al. 2012, Sec. II A)."],"experimental_modalities":null,"external_links":{"github_url":null,"osf_url":null,"paper_url":null,"source_url":"https://nemar.org/dataexplorer/detail/nm000359"},"funding":["Spanish Ministry of Education and Science, grant FIS-2010-18204 (R.G.A.)"],"generated_by":[{"Description":"ASCII text -> BrainVision conversion without filtering, resampling, re-referencing or rescaling; every sample verified identical to the source text.","Name":"laneG_convert.py / laneG_finalize.py (iEEG-NEMAR campaign, lane G)"}],"how_to_acknowledge":"Cite Andrzejak RG, Schindler K, Rummel C (2012) Nonrandomness, nonlinear dependence, and nonstationarity of electroencephalographic recordings from epilepsy patients. Phys. Rev. E 86, 046206, doi:10.1103/PhysRevE.86.046206, and the dataset doi:10.34810/data502.","ingestion_fingerprint":"3a78b8576ea4b377430c4ec2c4dd216bcb01bf9cf94a18d73e46e7a740de1dda","license":"CC-BY-4.0","n_contributing_labs":null,"n_records":7500,"name":"Bern-Barcelona EEG database: focal and nonfocal intracranial EEG signal pairs (Andrzejak, Schindler & Rummel 2012)","nchans_counts":[{"count":7500,"val":2}],"readme":"[![DOI](https://img.shields.io/badge/DOI-10.82901%2Fnemar.nm000359-blue)](https://doi.org/10.82901/nemar.nm000359)\n# Bern-Barcelona EEG database (iEEG-BIDS)\nFocal and non-focal intracranial EEG signal pairs from five patients with pharmacoresistant temporal lobe\nepilepsy, published with:\n> Andrzejak RG, Schindler K, Rummel C (2012). Nonrandomness, nonlinear dependence, and nonstationarity of\n> electroencephalographic recordings from epilepsy patients. *Phys. Rev. E* 86, 046206.\n> doi:[10.1103/PhysRevE.86.046206](https://doi.org/10.1103/PhysRevE.86.046206)\nSource dataset: Andrzejak RG, Schindler KA, Rummel C. *Nonrandomness, nonlinear dependence, and nonstationarity\nof electroencephalographic recordings from epilepsy patients [dataset]*. Repositori Digital de la UPF, 2012.\ndoi:[10.34810/data502](https://doi.org/10.34810/data502), hdl:[10230/42829](http://hdl.handle.net/10230/42829).\nThe authors ask users to refer to the resources as the \"Bern-Barcelona EEG database\" and to cite the paper.\nThis BIDS dataset is a lossless re-packaging of that source. Every sample is identical to the published text\nfiles; nothing was filtered, resampled, re-referenced or rescaled during conversion.\n## Content\n| | |\n|---|---|\n| Signal pairs | 7500 (3750 focal + 3750 non-focal) |\n| Channels per run | 2 (`x`, `y`: neighbouring channels of the same class) |\n| Samples per channel | 10240 |\n| Sampling rate | 512 Hz |\n| Duration per run | 20 s |\n| Patients | 5 (pooled, not identifiable per run; see below) |\n| Value range | -2223.068115 to 3469.565918 (source units, see \"Units\") |\n## Recordings (from the paper, Sec. II)\n- Five patients with longstanding pharmacoresistant temporal lobe epilepsy, candidates for epilepsy surgery,\n  underwent long-term intracranial EEG recordings at the Department of Neurology of the University of Bern\n  (Inselspital) because non-invasive studies had not localized the seizure onset zone.\n- Intracranial strip and depth electrodes, all manufactured by AD-TECH (Racine, WI, USA). An extracranial\n  reference electrode was placed between 10-20 positions Fz and Pz.\n- Signals were sampled at 512 or 1024 Hz depending on whether they were recorded with more or less than 64\n  channels.\n- All five patients had good surgical outcome (three seizure-free; two with auras only; ILAE class 1 and 2).\n- Ethics: \"Retrospective EEG data analysis has been approved by the ethics committee of the Kanton of Bern. In\n  addition, all patients gave written informed consent that their data from long-term EEG might be used for\n  research purposes.\"\n## Preprocessing applied by the source (before publication)\nFrom the paper, Sec. II B, and the source code comments (`ASR_Setparameters.m`):\n1. Digital band-pass filter 0.5-150 Hz, fourth-order Butterworth, applied forward and backward (zero phase).\n2. Signals recorded at 1024 Hz were down-sampled to 512 Hz. Which pairs were down-sampled is not recorded.\n3. Re-referencing against the median of all channels free of permanent artifacts (visual inspection).\n`ASR_Setparameters.m`: \"The data as provided on the page is sampled at 512 HZ and band-pass filtered between\n0.5Hz and 150Hz.\" The additional 40 Hz low-pass and 46.5-53.5 Hz band-stop filters used in the paper's analysis\nare part of the analysis code. They were not applied to the published data, and they were not applied here.\n## Selection of the signal pairs (paper, Sec. II C)\n- \"Focal EEG channels\": all channels that detected the first ictal EEG signal changes, as judged by visual\n  inspection by at least two board-certified electroencephalographers. All other channels are \"non-focal\".\n- The recordings were divided into 20-s windows (10240 samples). Seizure recordings and the three hours after\n  the last seizure were excluded.\n- For each focal pair the authors randomly selected a patient, one of that patient's focal channels (signal\n  `x`), one neighbouring focal channel (signal `y`) and one time window. Sampling was uniform and without\n  replacement. Non-focal pairs were drawn the same way from non-focal channels.\n- Pairs with prominent measurement artifacts were discarded after visual inspection. Moderate 50 Hz line noise\n  was not an exclusion criterion. No clinical criteria (presence or absence of epileptiform activity) were\n  applied.\n- \"the focal EEG signal pairs were stored in the order in which they were drawn. Their origin (patient,\n  channel, window) was not stored.\"\n## BIDS layout and source-to-BIDS mapping\nThe source holds no patient, channel or time information for any pair, so per-patient subjects cannot be\nbuilt. All runs sit under one pseudo-subject, `sub-pooled`. This is **not one person**: it pools anonymous\nsegments from five patients. Do not treat runs as independent subjects. Pairs from the same patient cannot\nbe grouped either, so cross-validation by patient is not possible with this dataset.\n| Source | BIDS |\n|---|---|\n| `Data_F_Ind_<a>_<b>.zip` / `Data_F_Ind<NNNN>.txt` (focal pair NNNN) | `sub-pooled/ieeg/sub-pooled_task-interictal_acq-focal_run-<NNNN>_ieeg.{vhdr,vmrk,eeg}` |\n| `Data_N_Ind_<a>_<b>.zip` / `Data_N_Ind<NNNN>.txt` (non-focal pair NNNN) | `sub-pooled/ieeg/sub-pooled_task-interictal_acq-nonfocal_run-<NNNN>_ieeg.{vhdr,vmrk,eeg}` |\n| column 1 / column 2 of each text file | channels `x` / `y` |\n| `Results_F_All.txt`, `Results_N_All.txt` (published test outcomes) | columns of `sub-pooled/sub-pooled_scans.tsv` (described in `sub-pooled_scans.json`) |\n| `Data_F_50.zip`, `Data_N_50.zip` (preview subsets) | not converted: their 100 members are byte-identical (SHA-256) to pairs 1-50 of the full archives |\n| `ASR_Sources_2013_06_11.zip` (MATLAB analysis code) | kept in `sourcedata/` only |\n| all of the above + repository metadata | byte-identical copies in `sourcedata/upf-repositori-10230-42829/` |\nThe run number equals the source pair index (`run-0007` = `Data_F_Ind0007.txt` for `acq-focal`).\n`sub-pooled_scans.tsv` lists for every run the source archive, source file, the SHA-256 of the\nuncompressed source file and the published test outcomes. Sidecars are shared by inheritance:\n`sub-pooled_task-interictal_ieeg.json`, `sub-pooled_task-interictal_channels.tsv`, and one\n`..._acq-<focal|nonfocal>_events.tsv` per class with a single event spanning the run (`trial_type` =\n`focal` or `nonfocal`).\n`task-interictal` is a label for the brain state (seizure-free interval of clinical monitoring). There\nwas no task. `acq-focal` / `acq-nonfocal` encode the signal class defined by the source.\n## Data format and exactness\nThe source stores values as text with six decimals. Every value was converted to IEEE float32 (BrainVision\n`IEEE_FLOAT_32`, multiplexed, resolution 1). For all 7500 files and all 153,600,000 values, formatting the\nstored float32 value with `%.6f` reproduces the source text token exactly. The conversion is therefore\nlossless with respect to the published text. A separate round-trip check re-read every BrainVision file and\ncompared it with the source text (see the campaign ledger).\n## Units\nNeither the paper nor the download page states the physical unit or scale of the stored values. The paper's\nexample figure shows values of roughly +/-100 to +/-200 with no unit label. Channel `units` are therefore\n`n/a` in `channels.tsv` and in the BrainVision header. Values are exactly the source numbers. Magnitudes are\nconsistent with microvolts, but this is not documented by the source.\nChannel `type` is `OTHER` because the source does not record whether a signal comes from a strip (ECoG) or a\ndepth (SEEG) contact. Electrode positions are not available, so there is no `electrodes.tsv`.\n## Privacy\nThe published files contain only numeric samples (no headers, names, dates or identifiers). The source\nrandomized pairs across patients and did not store patient, channel or time of origin. Converted headers\ncontain no dates or identifiers. Repository metadata (`item.json`, `bundles.json`) contains only\nbibliographic information.\n## License and terms of use\n- Repository record (dc.rights): \"Licensed under a Creative Commons License (CC-BY) 4.0\"\n  (https://creativecommons.org/licenses/by/4.0/). This dataset is released under **CC-BY-4.0**.\n- The UPF NTSA download page for the same material (https://www.upf.edu/web/ntsa/downloads, captured\n  2026-10-06; text in `sourcedata/upf-repositori-10230-42829/_repository_metadata/`) adds a \"Legal Agreement\":\n  \"The source codes, data and results on these sites are free of charge for research and education purposes\n  only. Any commercial or military use is prohibited. All resources are provided without any expressed or\n  implied warranty. In no event the authors of the article or any of their host institutions are liable for any\n  damages arising from the use of the software, data or results.\"\n  This statement is not part of the repository record's rights field for this item. It is reproduced here so\n  users can respect the authors' stated intent.\n## Funding\nR.G.A. acknowledges grant FIS-2010-18204 of the Spanish Ministry of Education and Science.\n## How to load\nExample with MNE-Python / MNE-BIDS (after `nemar dataset get` or `datalad get` of the files you need):\n```python\nimport mne\nfrom mne_bids import BIDSPath, read_raw_bids\nbp = BIDSPath(root=\"<dataset root>\", subject=\"pooled\", task=\"interictal\",\n              acquisition=\"focal\", run=\"0007\", datatype=\"ieeg\", suffix=\"ieeg\", extension=\".vhdr\")\nraw = read_raw_bids(bp)          # 2 channels (x, y), 10240 samples at 512 Hz\ndata = raw.get_data()            # values exactly as in the source text; physical unit not stated by the source\n```\nThe published test outcomes per pair are in\n`sub-pooled/sub-pooled_scans.tsv` (e.g. `pandas.read_csv(..., sep=\"\\t\")`).\n## How to cite\nCite the paper (doi:10.1103/PhysRevE.86.046206) and the dataset (doi:10.34810/data502). Also cite this BIDS\nrelease by its NEMAR identifier.\n## References\n- Andrzejak RG, Schindler K, Rummel C (2012). Phys. Rev. E 86, 046206. doi:10.1103/PhysRevE.86.046206\n- Andrzejak RG, Schindler KA, Rummel C (2012). Dataset, Repositori Digital de la UPF. doi:10.34810/data502\n- Andrzejak RG et al. (2001). Phys. Rev. E 64, 061907. doi:10.1103/PhysRevE.64.061907 (methods referenced by\n  the analysis code)\n## Conversion provenance\nConverted 2026-10-06 on SDSC Voyager (Kubernetes jobs) by the iEEG-NEMAR campaign (lane G) with\n`laneG_convert.py` and `laneG_finalize.py`. Source files were downloaded through the repository's DSpace REST\nAPI, and every bitstream's MD5 matched the repository checksum. See `sourcedata/provenance.json`. Paper\ndetails were taken from the published version deposited at hdl:10230/43557 (repository full-text extraction)\nand from the UPF NTSA download page.","recording_modality":["ieeg"],"references_and_links":["https://doi.org/10.1103/PhysRevE.86.046206","https://doi.org/10.34810/data502","http://hdl.handle.net/10230/42829","https://www.upf.edu/web/ntsa/downloads"],"senior_author":"Christian Rummel","sessions":[],"sfreq_counts":[{"count":7500,"val":512.0}],"size_bytes":1476983181,"source":"nemar","source_datasets":[{"DOI":"doi:10.34810/data502","URL":"http://hdl.handle.net/10230/42829","Version":"2019-11-12 deposit (dc.date.available)"}],"stats_computed_at":"2026-10-13T09:45:51.744334+00:00","storage":{"backend":"nemar","base":"s3://nemar/nm000359","dep_keys":["CHANGES","LICENSE","README.md","participants.json","participants.tsv","task-interictal_events.json"],"raw_key":"dataset_description.json"},"study_design":null,"study_domain":null,"tasks":["interictal"],"timestamps":{"dataset_created_at":null,"dataset_modified_at":"2026-10-08 05:47:49","digested_at":"2026-10-13T09:25:42.902044+00:00"},"total_duration_s":150000.0,"total_files":7500},"database":"eegdash","success":true}