A neural signature of sleep deprivation in the human brain.
The 1 match
- [1] § Methods › Classification analysis › Neural signature construction using the discovery dataset ↔ step01_classification_discovery_data.ipynb, lines 40–74 · score 0.60 · cross validation, split, folds, AUC, SVM, kernel
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Jupyter notebook · 91 lines · 2.8 KB · no license · 1 match
- # %%
- import numpy as np
- import pandas as pd
- import os
- import base_functions as bf
- import pickle
- from sklearn import svm
- from sklearn.model_selection import RepeatedStratifiedKFold, GridSearchCV
- from sklearn import metrics
- from nilearn import connectome, plotting
- import matplotlib.pyplot as plt
- %matplotlib inline
- # %%
- # %%
- dtfile = './data/dataset1_connectivity.pkl'
- D = pickle.load(open(dtfile, 'rb'))
- all_session_subjects = D['all_session_subjects']
- all_session_conn_vec = D['all_session_conn_vec']
- all_session = D['all_session']
- info_DF = D['info_DF']
- # %%
- care_sess = 0 # focus on the first session, i.e., morning after sleep manipulation
- dep_labels = bf.get_subject_info(info_DF, all_session_subjects[care_sess], ['deprive_labels'])
- # dep_labels: 0->normal sleep; 1->partial sleep deprivation; 2->sleep deprivation
- idx = np.logical_or(dep_labels==0, dep_labels==2)
- X = all_session_conn_vec[care_sess][idx]
- X = np.arctanh(X) #Fisher r to z
- X[np.isnan(X)] = 0
- Y = dep_labels[idx]
- Y[Y==Y.min()] = 0
- Y[Y!=Y.min()] = 1
- subjects = all_session_subjects[care_sess]
- subjects = [subjects[i] for i,v in enumerate(idx) if v==True]
- # %%
- rep_num = 10 # repreat cross validation for multiple times
- all_scores = np.zeros(rep_num)
- all_predict_prob = np.zeros((X.shape[0],rep_num))
- all_test_index = []
- for irep in range(rep_num):
- print(irep)
- cvg = RepeatedStratifiedKFold(n_splits=10, n_repeats=1, random_state=irep)
- cv_prob_pred = np.zeros_like(Y)
- test_index = []
- # cross validation
- for tridx, tsidx in cvg.split(X, Y):
- trX, trY = X[tridx], Y[tridx]
- tsX, tsY = X[tsidx], Y[tsidx]
- parameters = {'C':np.linspace(0.00001,10000,20)}
- clf = GridSearchCV(svm.SVC(kernel='linear', probability=True), parameters, n_jobs=-1)
- clf.fit(trX, trY)
- prob_pred = clf.decision_function(tsX)
- cv_prob_pred[tsidx] = prob_pred
- test_index.append(tsidx)
- sc = metrics.roc_auc_score(Y, cv_prob_pred)
- all_predict_prob[irep] = cv_prob_pred
- all_test_index.append(test_index)
- all_scores[irep] = sc
- pickle.dump({'all_predict_prob':all_predict_prob,
- 'all_scores':all_scores,
- 'all_test_index':all_test_index,
- 'subjects':subjects,
- 'Y':Y,},
- open(f'./results/accuracy_10-10CV_D1Morning.pkl', 'wb'))
- # %%
- ## Train model for generalization
- parameters = {'C':np.linspace(0.00001,10000,20)}
- clf = GridSearchCV(svm.SVC(kernel='linear', probability=True), parameters, n_jobs=-1)
- clf.fit(X, Y)
- coef_vals = clf.best_estimator_.coef_
- patterns = bf.weight_transform(X, coef_vals)
- pickle.dump({'clf':clf.best_estimator_,
- 'patterns':patterns,
- 'coef_vals':coef_vals,
- 'subjects':subjects},
- open('./Discovery_data_trained_model.pkl', 'wb'))
step01_classification_discovery_data.ipynb at commit fa5ce9b, no license · at the source
Overview
- Faillace Department of Psychiatry and Behavioral Sciences, McGovern Medical School, University of Texas Health Science Center at Houston,Houston, TX USA
- Present Address: Shien-Ming Wu School of Intelligent Engineering, South China University of Technology,Guangzhou, China
- Department of Psychiatry, Mass General Brigham Hospital and Harvard Medical School,Charlestown, MA USA
- Athinoula A. Martinos Center for Biomedical Imaging, Massachusetts General Hospital,Charlestown, MA USA
- Department of Psychiatry, University of Pittsburgh,Pittsburgh, PA USA
- NOCTEM, LLC, Pittsburgh, PA USA
Abstract
Insufficient sleep disrupts cognitive and emotional functioning, yet the precise neural consequences of sleep loss and their persistence remain unclear. Here, we leverage machine learning and large neuroimaging datasets to identify a candidate neural signature that robustly distinguishes sleep-deprived from well-rested brains. We validate this signature across multiple independent datasets spanning both controlled experimental and real-world settings. The signature not only detects residual neural disturbances following a night of recovery sleep, but also demonstrates sensitivity to partial sleep deprivation. Additionally, it captures natural variations in sleep duration in the general population, independent of experimental manipulation. We further identify distributed connectivity patterns that contribute to the signature, highlighting networks vulnerable to sleep manipulations and those that are resistant or rapidly normalized after recovery sleep. The reliability and generalizability of this neural signature underscore its potential as a biomarker for understanding and monitoring the neural impacts of acute and chronic sleep loss.
Reproduced under the paper's license (CC BY), from the paper cited above.
Repositories
Its files are read in the Code ↔ Paper reader above, with 1 match between paragraphs and lines of code.
zhenfu-wen01/sleep_loss_signature
fa5ce9b0c149cadc9a7a698c9e7a9b5773995951, 24 June 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
9 files
- base_functions.py, Python, 66 lines
- conn_base_functions.py, Python, 20 lines
- plot_base_functions.py, Python, 55 lines
- step01_classification_di
scovery_data.ipynb , Jupyter, 91 lines, 1 match - step02_classification_ex
ternal_validation.ipynb , Jupyter, 178 lines - step03_estimate_feature_
patterns.ipynb , Jupyter, 87 lines - step04_plot_feature_patt
erns.ipynb , Jupyter, 358 lines - step05_plot_feature_patt
ern_difference.ipynb , Jupyter, 227 lines - README.md, Text, 18 lines
Zenodo 20822243
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
9 files
- base_functions.py, Python, 66 lines
- conn_base_functions.py, Python, 20 lines
- plot_base_functions.py, Python, 55 lines
- step01_classification_di
scovery_data.ipynb , Jupyter, 91 lines - step02_classification_ex
ternal_validation.ipynb , Jupyter, 178 lines - step03_estimate_feature_
patterns.ipynb , Jupyter, 87 lines - step04_plot_feature_patt
erns.ipynb , Jupyter, 358 lines - step05_plot_feature_patt
ern_difference.ipynb , Jupyter, 227 lines - README.md, Text, 18 lines
Code availability
Custom codes to generate the main results are available on GitHub at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 16 scripts, each with its path and the digest of its content;
- 1 match 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
Datasets cited
- osf:ayj72, at OSF; found in “Data availability”
- osf:ubhpx, at OSF; found in “Data availability”
- ukbiobank.ac.uk/
enable-your-research/ , at UK Biobank; found in “Data availability”apply-for-access
Data availability
The processed data of Dataset 1 are available at https://
Reproduced under the paper's license (CC BY), from the paper cited above.
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, 10 authors, 4 keywords, 13 MeSH terms, 1 funder, 86 references.
Cite
This paper
Wen, Z., Pace-Schott, E. F., Franzen, P. L., Cui, L., Zhang, K., Gao, S., Hong, L. E., Kochunov, P., Germain, A., & Milad, M. R. (2026). A neural signature of sleep deprivation in the human brain. Nature communications, 17(1), 8919. https://
BibTeX
@article{wen2026neural,
author = {Wen, Zhenfu and Pace-Schott, Edward F. and Franzen, Peter L. and Cui, Lihan and Zhang, Kai and Gao, Si and Hong, L. Elliot and Kochunov, Peter and Germain, Anne and Milad, Mohammed R.},
title = {{A neural signature of sleep deprivation in the human brain}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8919},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42637707},
pmcid = {PMC13503868}
}
RIS
TY - JOUR
AU - Wen, Zhenfu
AU - Pace-Schott, Edward F.
AU - Franzen, Peter L.
AU - Cui, Lihan
AU - Zhang, Kai
AU - Gao, Si
AU - Hong, L. Elliot
AU - Kochunov, Peter
AU - Germain, Anne
AU - Milad, Mohammed R.
TI - A neural signature of sleep deprivation in the human brain
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8919
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "A neural signature of sleep deprivation in the human brain",
"container-title": "Nature communications",
"author": [
{
"family": "Wen",
"given": "Zhenfu"
},
{
"family": "Pace-Schott",
"given": "Edward F."
},
{
"family": "Franzen",
"given": "Peter L."
},
{
"family": "Cui",
"given": "Lihan"
},
{
"family": "Zhang",
"given": "Kai"
},
{
"family": "Gao",
"given": "Si"
},
{
"family": "Hong",
"given": "L. Elliot"
},
{
"family": "Kochunov",
"given": "Peter"
},
{
"family": "Germain",
"given": "Anne"
},
{
"family": "Milad",
"given": "Mohammed R."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8919",
"DOI": "10.1038/
"PMID": "42637707",
"PMCID": "PMC13503868",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
22
]
]
}
}
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.1278 [code]
- Young and old adult brains experience opposite effects of acute sleep restriction on the functional connectivity network.Journal: Imaging neuroscience (Cambridge, Mass.)In common: Nilearn, NiBabel, statsmodels, 5 other tools, 7 references
- [2] doi:10.1038/s41514-026-00456-9 [code]
- Exploring the link between body physiology and cognition: the role of the brain and aging.Journal: npj agingIn common: Nilearn, NiBabel, statsmodels, 6 other tools, cognitive, 7 references
- [3] doi:10.7554/elife.108109 [code]
- Multimodal MRI marker of cognition explains the association between cognition and mental health in the UK Biobank.Journal: eLifeIn common: seaborn, scikit-learn, pandas, 3 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, cognitive, 7 references
- [4] doi:10.1038/s41562-026-02447-y [code]
- Feature selection leads to divergent neurobiological interpretations of brain-based machine learning biomarkers.Journal: Nature human behaviourIn common: 12 references
- [5] doi:10.1038/s41467-026-73668-y [code]
- Convergent and divergent brain-cognition development in early adolescence.Journal: Nature communicationsIn common: Nilearn, NiBabel, seaborn, 5 other tools, 7 references
- [6] doi:10.21203/rs.3.rs-9326213/v1 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: Research Square (preprint)In common: Nilearn, NiBabel, seaborn, 5 other tools, cognitive, 7 references
- [7] doi:10.64898/2026.03.09.710558 [code]
- Multi-task fMRI outperforms resting-state fMRI for revealing task-invariant organization of the human brainJournal: bioRxiv (preprint)In common: Nilearn, NiBabel, seaborn, 5 other tools, cognitive, 7 references
- [8] doi:10.1523/eneuro.0370-25.2026 [code]
- Pretraining for Large-Scale Functional Connectome Fingerprinting Supports Generalization and Transfer Learning in Functional Neuroimaging.Journal: eNeuroIn common: Nilearn, scikit-learn, pandas, 2 other tools, 9 references
- [9] doi:10.1038/s44220-026-00680-y [code]
- The neuroimaging correlates of depression established across six large-scale population datasets.Journal: Nature. Mental healthIn common: statsmodels, seaborn, scikit-learn, 4 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, 5 references
- [10] doi:10.1093/sleep/zsag030 [code]
- Divergent disruption of brain networks following total and chronic sleep loss: a longitudinal fMRI study.Journal: SleepIn common: statsmodels, seaborn, scikit-learn, 4 other tools, 5 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: 2 repositories of the authors' code, each at its verified commit and with its license, 16 scripts, and 1 match 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:2c397e2c0b252c5f…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
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: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
