Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study.
4 blocks of code here have a permanent identifier (oscr:b:…), listed with the matches below: citable for good, with a page of its own. Select a match and press Cite to copy it. What a block identifier is.
The 6 matches
- [1] § Methods › Outcome prediction model ↔ Python_script/train/LDA_model_run.py, lines 50 to 127 · score 0.75 · LDA model, predicted probability, oversampling, split, accuracy, training · block
oscr:b:YZDNBEQC7QC0P-B· Report a mismatch - [2] § Methods › Outcome prediction model ↔ Python_script/train/LDA_model_run.py, lines 50 to 127 · score 0.67 · predicted probabilities, ROC, curves, accuracy, AUC, training · block
oscr:b:YZDNBEQC7QC0P-B· Report a mismatch - [3] § Methods › Outcome prediction model ↔ Python_script/train/LDA_model_run.py, lines 1 to 48 · score 0.57 · GCS score, LDA, Hz, age, months, model · block
oscr:b:ZE6C4B0R0SG3Q-G· Report a mismatch - [4] § Methods › EEG recording and processing ↔ Matlab_script/singleSubPreprocessing.m, lines 51 to 54 · score 0.56 · bad channels, spherical, EEGLAB, preprocessing · block
oscr:b:777RH72163P3X-G· Report a mismatch - [5] § Results › Neural responses to names and acoustic control ↔ Matlab_script/Fig2_violin_plot.m, lines 1 to 56 · score 0.56 · FDR corrected, acoustic control, EEG response, IQR, coma, bootstrap · block
oscr:b:G225263RZBTVP-L· Report a mismatch - [6] § Results › Predicting patient outcomes using EEG name responses ↔ Python_script/train/LDA_model_run.py, lines 1 to 48 · score 0.56 · clinical model, GCS score, Glasgow, training, age, classification · block
oscr:b:ZE6C4B0R0SG3Q-G· Report a mismatch
Paper
Loaded from Europe PMC by your browser; OSCR does not store it: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 129 lines · 6.2 KB · no license · 4 matches
- import pandas as pd
- import numpy as np
- import os
- from sklearn.metrics import confusion_matrix, accuracy_score, roc_auc_score, roc_curve
- from sklearn.model_selection import GridSearchCV, LeaveOneOut
- from imblearn.pipeline import Pipeline
- from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA
- from sklearn.preprocessing import StandardScaler
- import itertools
- from datetime import datetime
- from sklearn.model_selection import train_test_split
- from imblearn.over_sampling import RandomOverSampler
- from tqdm import tqdm
- base_dir = os.path.dirname(os.path.abspath(__file__))
- print(base_dir)
- data_path = os.path.join(base_dir, '..', '..', 'data', 'data.csv')
- result_path = os.path.join(base_dir, '..', 'result')
- """
- Classification Targets
- GOSE_1M_C3: Glasgow Outcome Scale Extended (GOSE) score at 1-month follow-up, with a binary threshold set at 2/3 to categorize outcomes.
- """
- classification_cols = [
- 'GOSE_1M_C2', 'GOSE_3M_C2', 'GOSE_6M_C2',
- 'GOSE_1M_C3', 'GOSE_3M_C3', 'GOSE_6M_C3',
- 'GOSE_1M_C4', 'GOSE_3M_C4', 'GOSE_6M_C4']
- """
- Feature names: Each list of feature names corresponds to different input sets used for model training.
- Clinical Model: Age, Etiology, GCS_score
- EEG Name Model: P1N1_name_1.3Hz, P1N1_diff_1.3Hz, P1N1_name_2.7Hz, P1N1_diff_2.7Hz, P1N1_name_4Hz, P1N1_diff_4Hz
- Clinical + EEG Name Model: combine all the features mentioned above
- """
- feature_names = [
- # ['Age', 'Etiology', 'GCS_score'],
- # ['P1N1_name_1.3Hz', 'P1N1_diff_1.3Hz', 'P1N1_name_2.7Hz', 'P1N1_diff_2.7Hz', 'P1N1_name_4Hz', 'P1N1_diff_4Hz'],
- ['Age', 'Etiology', 'GCS_score', 'P1N1_name_1.3Hz', 'P1N1_diff_1.3Hz', 'P1N1_name_2.7Hz', 'P1N1_diff_2.7Hz', 'P1N1_name_4Hz', 'P1N1_diff_4Hz'],
- ]
- method = 'LDA'
- num_runs = 1000 # Repetition time
- rs = 40 # Reproducible
- combinations = list(itertools.product(classification_cols, feature_names))
- data = pd.read_csv(data_path).reset_index()
- # model training and test
- for classification_col, feature_name in combinations:
- print('Start:', datetime.now(), classification_col, feature_name)
- feature = data[feature_name]
- target = data[classification_col]
- indices = np.arange(len(feature))
- stratify_var = data['Etiology'].astype(str) + "_" + target.astype(str)
- feature_train, feature_test, target_train, target_test, index_train, index_test = train_test_split(feature, target, indices, test_size=0.4, stratify=stratify_var, random_state=40)
- cv = LeaveOneOut()
- # Define the classifier and its grid of searching parameters
- classifier_c = LDA
- param_grid = {
- 'classifier__solver': ['lsqr'],
- 'classifier__shrinkage': ['auto', 10e-4, 10e-3, 10e-2, 10e-1],
- }
- classifier = classifier_c()
- preprocessor = StandardScaler()
- pred_prob_train_all = []
- pred_prob_test_all = []
- for i_run in tqdm(range(num_runs)):
- # Create the pipeline with preprocessing, oversampling, and classifier
- pipeline = Pipeline([
- ('scaler', preprocessor),
- ('oversample', RandomOverSampler(sampling_strategy='auto', random_state=rs + i_run)),
- ('classifier', classifier)])
- # Perform Grid Search to find the best hyperparameters for the model
- grid_search = GridSearchCV(estimator=pipeline, param_grid=param_grid, scoring='accuracy', cv=cv, n_jobs=-1, verbose=0)
- grid_search.fit(feature_train, target_train)
- best_model = grid_search.best_estimator_
- i_pred_prob_train = best_model.predict_proba(feature_train)[:, 1]
- i_pred_prob_test = best_model.predict_proba(feature_test)[:, 1]
- pred_prob_train_all.append(i_pred_prob_train)
- pred_prob_test_all.append(i_pred_prob_test)
- pred_prob_train = np.mean(pred_prob_train_all, axis=0)
- pred_prob_test = np.mean(pred_prob_test_all, axis=0)
- fpr, tpr, thresholds = roc_curve(target_train, pred_prob_train)
- optimal_threshold_index = np.argmax(tpr - fpr)
- optimal_threshold = thresholds[optimal_threshold_index]
- pred_train = (pred_prob_train >= optimal_threshold).astype(int)
- pred_test = (pred_prob_test >= optimal_threshold).astype(int)
- # Calculate training performance
- roc_auc_train = roc_auc_score(target_train, pred_prob_train)
- accuracy_train = accuracy_score(target_train, pred_train)
- tn_train, fp_train, fn_train, tp_train = confusion_matrix(target_train, pred_train).ravel()
- sensitivity_train = (tp_train / (tp_train + fn_train))
- specificity_train = (tn_train / (tn_train + fp_train))
- # Calculate test performance
- roc_auc_test = roc_auc_score(target_test, pred_prob_test)
- accuracy_test = accuracy_score(target_test, pred_test)
- tn_test, fp_test, fn_test, tp_test = confusion_matrix(target_test, pred_test).ravel()
- sensitivity_test = (tp_test / (tp_test + fn_test))
- specificity_test = (tn_test / (tn_test + fp_test))
- print('Train: AUC', roc_auc_train, 'Accuracy', accuracy_train, 'sensitivity', sensitivity_train, 'specificity', specificity_train, 'thre', optimal_threshold)
- print('Test: AUC', roc_auc_test, 'Accuracy', accuracy_test, 'sensitivity', sensitivity_test, 'specificity', specificity_test, 'thre', optimal_threshold)
- run_name = '+'.join(feature_name)
- experiment = f'{method}_{run_name}_{classification_col}'
- result_save_path = os.path.join(result_path, experiment)
- os.makedirs(result_save_path, exist_ok=True)
- np.savez(
- os.path.join(result_save_path, 'result'), feature_name=feature_name,
- target_train=target_train, pred_train=pred_train, pred_prob_train=pred_prob_train, index_train=index_train,
- target_test=target_test, pred_test=pred_test, pred_prob_test=pred_prob_test, index_test=index_test,
- optimal_threshold=optimal_threshold,
- tn_train=tn_train, fp_train=fp_train, fn_train=fn_train, tp_train=tp_train, roc_auc_train=roc_auc_train, accuracy_train=accuracy_train, sensitivity_train=sensitivity_train, specificity_train=specificity_train,
- tn_test=tn_test, fp_test=fp_test, fn_test=fn_test, tp_test=tp_test, roc_auc_test=roc_auc_test, accuracy_test=accuracy_test, sensitivity_test=sensitivity_test, specificity_test=specificity_test,
- pred_prob_train_all=pred_prob_train_all, pred_prob_test_all=pred_prob_test_all
- )
LDA_model_run.py, no license · at the source
Overview
- Department of Neurology, the First Affiliated Hospital, Zhejiang University School of Medicine, Hangzhou, China
- Wellcome Centre for Integrative Neuroimaging, FMRIB, Nuffield Department of Clinical Neurosciences, University of Oxford, Oxford, UK
- Key Laboratory for Biomedical Engineering of Ministry of Education, College of Biomedical Engineering and Instrument Sciences, Zhejiang University, Hangzhou, China
- The D-Lab, Department of Precision Medicine, GROW – Research Institute of Oncology and Reproduction, Maastricht University, Maastricht, The Netherlands
- Centre for Rehabilitation Medicine, Rehabilitation and Sports Medicine Research Institute of Zhejiang Province, Department of Rehabilitation Medicine, Zhejiang Provincial People’s Hospital, Hangzhou Medical College, Hangzhou, China
- Department of Critical Care Medicine, the First Affiliated Hospital, Zhejiang University School of Medicine, Hangzhou, China
- Department of Neurology, the First People’s Hospital of Wenling, Wenling, China
- State Key Lab of Brain-Machine Intelligence, MOE Frontier Science Center for Brain Science and Brain–Machine Integration, Zhejiang University, Hangzhou, China
- Innovation Center for Smart Medical Technologies & Devices, Binjiang Institute of Zhejiang University, Hangzhou, China
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repository
Its files are read in the Code ↔ Paper reader above, with 6 matches between paragraphs and lines of code.
OSF nr9aq
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
14 files
- Matlab_script/
Fig2_spectrum.m , MATLAB, 129 lines - Matlab_script/
Fig2_violin_plot.m , MATLAB, 99 lines, 1 match - Matlab_script/
Fig3_correlation.m , MATLAB, 94 lines - Matlab_script/
function/ , MATLAB, 744 linesViolin.m - Matlab_script/
function/ , MATLAB, 100 linesbootstrap_for_vector.m - Matlab_script/
function/ , MATLAB, 2 linescompare_mean.m - Matlab_script/
function/ , MATLAB, 161 linesfdr_bh.m - Matlab_script/
function/ , MATLAB, 47 linesline_errorbar.m - Matlab_script/
function/ , MATLAB, 33 linesnanmean.m - Matlab_script/
function/ , MATLAB, 48 linesplot_correlation_v2.m - Matlab_script/
function/ , MATLAB, 260 linesswtest.m - Matlab_script/
function/ , MATLAB, 216 linesviolinplot.m - Matlab_script/
singleSubPreprocessing.m , MATLAB, 120 lines, 1 match - Python_script/
train/ , Python, 129 lines, 4 matchesLDA_model_run.py
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: OSF nr9aq
Read it in the paper: doi.org/10.1038/s41467-026-73878-4.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 1 repository of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 14 scripts, each with its path and the digest of its content;
- 6 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41467-026-73878-4.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 12 authors, 4 keywords, 15 MeSH terms, 1 funder, 60 references.
Cite
This paper
Wu, M., Di, Y., Kuang, S., Hu, J., Zhang, J., Wang, K., Zhang, J., Chen, C., Zhou, J., Li, T., Luo, B., & Ding, N. (2026). Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study. Nature communications, 17(1), 7161. https://
BibTeX
@article{wu2026neural,
author = {Wu, Min and Di, Yujia and Kuang, Sheng and Hu, Jun and Zhang, Jie and Wang, Kang and Zhang, Jingchen and Chen, Chunyou and Zhou, Jiajia and Li, Tong and Luo, Benyan and Ding, Nai},
title = {{Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study}},
journal = {Nature communications},
year = {2026},
month = jun,
volume = {17},
number = {1},
pages = {7161},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42236468},
pmcid = {PMC13396180}
}
RIS
TY - JOUR
AU - Wu, Min
AU - Di, Yujia
AU - Kuang, Sheng
AU - Hu, Jun
AU - Zhang, Jie
AU - Wang, Kang
AU - Zhang, Jingchen
AU - Chen, Chunyou
AU - Zhou, Jiajia
AU - Li, Tong
AU - Luo, Benyan
AU - Ding, Nai
TI - Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 7161
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Neural Response to Familiar Names Predicts Outcome of Comatose ICU Patients: A Prospective Observational Cohort Study",
"container-title": "Nature communications",
"author": [
{
"family": "Wu",
"given": "Min"
},
{
"family": "Di",
"given": "Yujia"
},
{
"family": "Kuang",
"given": "Sheng"
},
{
"family": "Hu",
"given": "Jun"
},
{
"family": "Zhang",
"given": "Jie"
},
{
"family": "Wang",
"given": "Kang"
},
{
"family": "Zhang",
"given": "Jingchen"
},
{
"family": "Chen",
"given": "Chunyou"
},
{
"family": "Zhou",
"given": "Jiajia"
},
{
"family": "Li",
"given": "Tong"
},
{
"family": "Luo",
"given": "Benyan"
},
{
"family": "Ding",
"given": "Nai"
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "7161",
"DOI": "10.1038/
"PMID": "42236468",
"PMCID": "PMC13396180",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
6,
4
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1162/imag.a.1229 [code]
- 40 Hz audiovisual stimulation improves sustained attention and related brain oscillations.Journal: Imaging neuroscience (Cambridge, Mass.)In common: ERPLAB, ICLabel, Violinplot-Matlab, 5 other tools, EEG
- [2] doi:10.1002/ana.78070 [code]
- Detecting Awareness in the Intensive Care Unit Using Functional Near-Infrared Spectroscopy.Journal: Annals of neurologyIn common: Statistics and Machine Learning Toolbox, clinical / translational, 6 references
- [3] doi:10.1186/s12967-026-08108-y [code]
- An explainable multimodal machine learning model for diagnosing disorders of consciousness: evidence from a large multicenter Chinese cohort.Journal: Journal of translational medicineIn common: ICLabel, pandas, NumPy, EEG, other condition, 1 reference, author Benyan Luo
- [4] doi:10.1523/eneuro.0287-24.2024 [code]
- Exploring Relevant Features for EEG-Based Investigation of Sound Perception in Naturalistic Soundscapes.Journal: eNeuroIn common: ICLabel, Violinplot-Matlab, fdr_bh (Benjamini-Hochberg FDR), 2 other tools, EEG, 1 reference
- [5] doi:10.1016/j.nicl.2025.103864
- Advanced neuroimaging techniques to decipher brain connectivity networks in patients with disorder of consciousness: a narrative review.Journal: NeuroImage. ClinicalIn common: other condition, 6 references
- [6] doi:10.1093/scan/nsad066
- Specificity in the processing of a subject's own name.Journal: Social cognitive and affective neuroscienceIn common: EEG, 6 references
- [7] doi:10.3390/brainsci14090860 [code]
- Classification of Known and Unknown Study Items in a Memory Task Using Single-Trial Event-Related Potentials and Convolutional Neural Networks.Journal: Brain sciencesIn common: ERPLAB, imbalanced-learn, EEGLAB, 3 other tools, EEG, clinical / translational, 1 reference
- [8] doi:10.1111/ejn.70250 [code]
- No Evidence That Resting-State Individual Alpha Frequency Represents a Mechanism Underlying Motion-Position Illusions.Journal: The European journal of neuroscienceIn common: ICLabel, EEGLAB, Statistics and Machine Learning Toolbox, 2 other tools, EEG, 3 references
- [9] doi:10.1038/s41598-026-47785-z [code]
- Modulations of the P3b effect as a function of bilingual language experience.Journal: Scientific reportsIn common: ERPLAB, ICLabel, EEGLAB, 1 other tool, EEG, 2 references
- [10] doi:10.1371/journal.pone.0307406 [code]
- Childhood family socioeconomic status is linked to adult brain electrophysiology.Journal: PloS oneIn common: ERPLAB, ICLabel, EEGLAB, 1 other tool, EEG, 2 references
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 1 repository of the authors' code, each at its verified commit and with its license, 14 scripts, and 6 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:da21c31fff4c1a18…
Add the badge to the code's README
If you are an author or a maintainer of this paper's code, you can add this badge. It says what OSCR knows of the paper (its code, its validated tracing map) and links the code to this page. Paste one of these snippets under the README's title. Keep the two marks around it, so that the badge can be replaced in place and is never added twice. OSCR changes nothing in your repository.
Markdown
<!-- oscr-badge:start -->
[](https://openscicode.org/badge/doi/10.1038/s41467-026-73878-4)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-73878-4.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-73878-4
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-73878-4"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-73878-4.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->If you choose to, you can have the badge kept up to date for you, with oscr badge --write from the command line or with the GitHub Action in your repository's workflows. Every other form and option (a card, AsciiDoc, LaTeX, shields.io) is on the badge page.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: code errors and mismatches between the code and the paper about this paper and its code, from readers and its authors, beside the paper and its tracing map.
Report a mismatch between the code and the paper · Report a code error (signed in)
Reproductions: reports from readers who ran the authors' code and did not get the paper's result, what they ran, with which environment, commit and data.
Report a reproduction failure (signed in)
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
