{"data":{"_id":"6a8fec71615511b970fc17fc","acknowledgements":"We thank our collaborators who have helped in the collection of this data: Hospital of the University of Pennsylvania, Thomas Jefferson University Hospital, Dartmouth-Hitchcock Medical Center, Mayo Clinic, Emory University Hospital, University of Texas Southwestern Medical Center.","associated_paper_doi":null,"authors":["Haydn G. Herrema","Michael J. Kahana"],"bad_channels_info":null,"bids_version":"1.7.0","canonical_name":null,"computed_title":"Free Recall with Closed-Loop Stimulation at Encoding (Encoding Classifier)","contact_info":null,"contributing_labs":null,"data_processed":false,"dataset_doi":"10.82901/nemar.on005557","dataset_id":"on005557","datatypes":["ieeg"],"demographics":{"age_max":56,"age_mean":39.333333333333336,"age_min":20,"ages":[40,45,36,53,45,38,20,44,25,36,29,25,37,42,56,51,38,48],"handedness_distribution":{"l":2,"r":16},"sex_distribution":{"f":8,"m":10},"species":null,"subjects_count":16},"experimental_modalities":null,"external_links":{"github_url":null,"osf_url":null,"paper_url":null,"source_url":"https://nemar.org/dataexplorer/detail/on005557"},"funding":["DARPA RAM: N66001-14-2-4032"],"ingestion_fingerprint":"1059c1b8acf05e42096ecee6b84375f567c14d7da69ab887820b368d8ac19444","license":"CC0","n_contributing_labs":null,"name":"Free Recall with Closed-Loop Stimulation at Encoding (Encoding Classifier)","nchans_counts":[{"count":7,"val":110},{"count":6,"val":112},{"count":5,"val":76},{"count":4,"val":126},{"count":4,"val":109},{"count":4,"val":108},{"count":3,"val":127},{"count":2,"val":128},{"count":2,"val":62},{"count":2,"val":83},{"count":2,"val":97},{"count":2,"val":120},{"count":2,"val":64},{"count":2,"val":60},{"count":2,"val":70},{"count":2,"val":67},{"count":1,"val":121},{"count":1,"val":95},{"count":1,"val":99},{"count":1,"val":124},{"count":1,"val":136},{"count":1,"val":118},{"count":1,"val":125}],"readme":"[![DOI](https://img.shields.io/badge/DOI-10.82901%2Fnemar.on005557-blue)](https://doi.org/10.82901/nemar.on005557)\n### Free Recall with Closed-Loop Stimulation at Encoding (Encoding Classifier)\n#### Description\nThis dataset contains behavioral events and intracranial electrophysiology recordings from a delayed free recall task with closed-loop stimulation at encoding, using a classifier trained on encoding data.  The experiment consists of participants studying a list of words, presented visually one at a time, completing simple arithmetic problems that function as a distractor, and then freely recalling the words from the just-presented list in any order.  The data was collected at clinical sites across the country as part of a collaboration with the Computational Memory Lab at the University of Pennsylvania.  This dataset is a closed-loop stimulation version of the [FR1](https://openneuro.org/datasets/ds004789) and [FR2](https://openneuro.org/datasets/ds005489) datasets.\nThis study contains closed-loop electrical stimulation of the brain during encoding.  There is no stimulation during the distractor or retrieval phases.  Stimulation is delivered to a single electrode at a time, and the stimulation parameters are included in the bevavioral events tsv files, denoting the anode/cathode labels, amplitude, pulse frequency, pulse width, and pulse count.\n#### Classifier Details\nThe L2 logistic regression classifier is trained to predict whether an encoded item will be subsequently recalled based on the neural features during encoding, using data from a participant's [FR1](https://openneuro.org/datasets/ds004789) sessions.  The bipolar recordings during the 0-1366 ms interval after word presentation are filtered with a Butterworth band stop filter (58-62 Hz, 4th order) to remove 60 Hz line noise, and then a Morlet wavelet transformation (wavenumber = 5) is applied to the signal to estimate spectral power, using 8 log-spaced wavelets between 3-180 Hz (center frequencies 3.0, 5.4, 9.7, 17.4, 31.1, 55.9, 100.3, 180 Hz) and 1365 ms mirrored buffers.  The powers are log-transformed prior to removal of the buffer, and then z-transformed based on the within-session mean and standard deviation across all encoding events.  These z-transformed log power values represent the feature matrix, and the label vector is the recalled status of the encoded items.  The penalty parameter is chosen based on the value that leads to the highest average AUC for all prior participants with at least two [FR1](https://openneuro.org/datasets/ds004789) sessiona, and is inversely weighted according to the class (i.e., recalled v. not recalled) imbalance to ensure the best fit values of the penalty parameter are comparable across different class distributions (recall rates).  Class weights are computed as: (1/Na) / ((1/Na + 1/Nb) / 2) where Na and Nb are the number of events in each class.\nAfter at least 3 training sessions with a minimum of 15 lists, each participant's classifier is tested using leave-one-session-out (LOSO) cross validation, and the true AUC is compared to a 200-sample AUC distribution generated from classification of label-permuted data.  p < 0.05 (one-sided) is used as the significance threshold for continuing to the closed-loop task.\n#### Closed-Loop Procedure\nEach session contains 26 lists (the first being a practice list) and there is no stimulation on the first 4 lists.  The classifier ouput for each presented item on the first 4 lists is compared to the classifier output when tested on data from all previous sessions using a two-sample Kolmogorov-Smirnov test.  The null hypothesis that the current session and the training data come from the same distribution must not be rejected (p > 0.05) for the closed-loop task to continue.\nThe remaining 22 lists are equally divided into stimulation and no stimulation lists, with conditions balanced in each half of the session.  On stimulation lists, classifier output is evaluated during the 0-1366 ms interval following word presentation onset.  The input values are normalized using the mean and standard deviation across encoding events on all prior no stimulation lists in the session.  If the classifier output is below the median classifier output from the training sessions, stimulation occurs immediately following the 1366 ms decoding interval and lasts for 500 ms.  With a 750-1000 ms inter-stimulus interval, there is enough time for stimulation artifacts to subside before the next word onset (next classifier decoding).\n#### To Note\n* The iEEG recordings are labeled either \"monopolar\" or \"bipolar.\"  The monopolar recordings are referenced (typically a mastoid reference), but should always be re-referenced before analysis.  The bipolar recordings are referenced according to a paired scheme indicated by the accompanying bipolar channels tables.\n* Each subject has a unique montage of electrode locations.  MNI and Talairach coordinates are provided when available.\n* Recordings done with the Blackrock system are in units of 250 nV, while recordings done with the Medtronic system are estimated through testing to have units of 0.1 uV.  We have completed the scaling to provide values in V.\n#### Contact\nFor questions or inquiries, please contact sas-kahana-sysadmin@sas.upenn.edu.","recording_modality":["ieeg"],"senior_author":"Michael J. Kahana","sessions":["0","1","2","3","4"],"sfreq_counts":[{"count":58,"val":1000.0}],"size_bytes":37243093661,"source":"nemar","source_datasets":[{"DOI":"doi:10.18112/openneuro.ds005557.v1.0.0"}],"stats_computed_at":"2026-08-27T07:51:42.912043+00:00","storage":{"backend":"nemar","base":"s3://nemar/on005557","dep_keys":["CHANGES","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-06T13:13:11Z","taxonomy":"v2"},"tags":{"confidence":{"modality":0.8,"pathology":0.6,"type":0.9},"modality":["Visual"],"pathology":["Epilepsy"],"reasoning":{"decision_summary":"Pathology—Epilepsy versus Unknown: Clinical-site intracranial recordings and subject-specific electrode montages make Epilepsy plausible, but the absence of a stated diagnosis leaves substantial uncertainty; select Epilepsy at 0.6 on contextual evidence only. Modality—Visual versus Unknown: \"words, presented visually one at a time\" and the referenced \"word presentation onset\" favor Visual; select Visual at 0.8. Type—Memory versus Intervention: \"delayed free recall task,\" studying words, and freely recalling them support Memory; \"closed-loop stimulation at encoding,\" \"closed-loop electrical stimulation,\" and comparisons of \"stimulation and no stimulation lists\" independently support Intervention. Both are genuine aims, so select both at 0.9, supported by multiple explicit phrases and the memory-task few-shot match. No metadata fact was overridden by a few-shot pattern.","evidence_alignment_check":"Pathology: Metadata says \"intracranial electrophysiology recordings\" collected \"at clinical sites,\" but names no diagnosis. The epilepsy few-shot suggests a possible clinical context, not a transferable diagnosis; these are not in conflict, and Epilepsy remains an inference. Modality: Metadata says words are \"presented visually one at a time\"; few-shot convention assigns modality from presented stimuli rather than responses. They align. Type: Metadata says \"delayed free recall task\" and \"closed-loop electrical stimulation of the brain during encoding.\" The digit-span example suggests Memory for item encoding and recall; it aligns with Memory, while the explicit stimulation also supports Intervention.","few_shot_analysis":"The auditory digit-span example maps memorizing and recalling presented items to Memory, even though it also includes rest; this free-recall task follows the same convention. The pediatric epilepsy example shows how intracranial or clinical recording context can matter, but its explicitly diagnosed population cannot be transferred as a fact to this dataset. No example directly matches closed-loop brain stimulation.","metadata_analysis":"The readme describes a \"delayed free recall task with closed-loop stimulation at encoding\" in which participants study \"a list of words, presented visually one at a time\" and then \"freely recall[] the words.\" It also states, \"This study contains closed-loop electrical stimulation of the brain during encoding.\" Recordings are \"intracranial electrophysiology\" collected \"at clinical sites across the country.\" No participant diagnosis is stated.","paper_abstract_analysis":"No useful paper information."},"type":["Memory","Intervention"]},"tasks":["FR3"],"timestamps":{"dataset_created_at":null,"dataset_modified_at":"2026-06-27 10:38:13","digested_at":"2026-08-26T11:11:52.985640+00:00"},"total_duration_s":183861.272,"total_files":58},"database":"eegdash","success":true}