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 to 74 · score 0.60 · cross validation, split, folds, AUC, SVM, kernel · 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
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.1038/s41467-024-46508-0 [code]
- Distributed neural representations of conditioned threat in the human brain.Journal: Nature communicationsIn common: Nilearn, statsmodels, NiBabel, 6 other tools, 10 references, author Mohammed R. Milad
- [2] doi:10.1371/journal.pbio.3002797 [code]
- Longitudinal single-subject neuroimaging study reveals effects of daily environmental, physiological, and lifestyle factors on functional brain connectivity.Journal: PLoS biologyIn common: Nilearn, statsmodels, NiBabel, 6 other tools, cognitive, 11 references
- [3] doi:10.1002/hbm.26488 [code]
- Functional brain connectivity predicts sleep duration in youth and adults.Journal: Human brain mappingIn common: Nilearn, seaborn, pandas, 3 other tools, 13 references
- [4] doi:10.1002/hbm.70164 [code]
- Stimulus Selection Influences Prediction of Individual Phenotypes in Naturalistic Conditions.Journal: Human brain mappingIn common: Nilearn, statsmodels, NiBabel, 6 other tools, cognitive, 9 references
- [5] doi:10.1038/s41467-023-43737-7 [code]
- Opposing brain signatures of sleep in task-based and resting-state conditions.Journal: Nature communicationsIn common: statsmodels, NiBabel, seaborn, 5 other tools, ukbiobank.ac.uk/enable-your-research/apply-for-access, cognitive, 6 references
- [6] doi:10.1371/journal.pbio.3003399 [code]
- Identification of five sleep-biopsychosocial profiles with specific neural signatures linking sleep variability with health, cognition, and lifestyle factors.Journal: PLoS biologyIn common: Nilearn, NiBabel, scikit-learn, 3 other tools, cognitive, 9 references
- [7] doi:10.1002/hbm.26535 [code]
- How do tasks impact the reliability of fMRI functional connectivity?Journal: Human brain mappingIn common: Nilearn, statsmodels, NiBabel, 5 other tools, 9 references
- [8] 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, statsmodels, NiBabel, 5 other tools, 7 references
- [9] doi:10.1093/pnasnexus/pgaf175 [code]
- Improving predictability, reliability, and generalizability of brain-wide associations for cognitive abilities via multimodal stacking.Journal: PNAS nexusIn common: Nilearn, NiBabel, seaborn, 5 other tools, 9 references
- [10] 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, statsmodels, NiBabel, 6 other tools, cognitive, 7 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:1f8d8508c3c0c362…
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-75661-x)
<!-- oscr-badge:end -->reStructuredText
.. oscr-badge:start
.. image:: https://openscicode.org/badge/doi/10.1038/s41467-026-75661-x.svg
:target: https://openscicode.org/badge/doi/10.1038/s41467-026-75661-x
:alt: OSCR
.. oscr-badge:endHTML
<!-- oscr-badge:start -->
<a href="https://openscicode.org/badge/doi/10.1038/s41467-026-75661-x"><img src="https://openscicode.org/badge/doi/10.1038/s41467-026-75661-x.svg" alt="OSCR"></a>
<!-- oscr-badge:end -->On GitHub, open the README, choose Edit (the pencil), paste the snippet under the title, then "Commit changes".
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)
Versions of its code: the releases of its code tied to a version of this paper (the preprint, the accepted manuscript, the version of record…), each with the tracing map versioned with it.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
