Abstract
This study investigated temporal changes in sleep quality among Chinese boarding high school students across four phases (2019:pre-pandemic baseline, 2020:outbreak containment, 2021:dynamic mitigation, and 2024:post-pandemic adaptation), aiming to identify optimal PSQI cutoffs and key predictors using machine learning. A total of 4,592 Grade 11 students from Hebei Province were surveyed using a four-wave repeated cross-sectional design. Sleep quality was assessed using the Pittsburgh Sleep Quality Index (PSQI). Generalized additive models and XGBoost were used to evaluate trends and predictors. SHAP analysis quantified feature contributions. PSQI scores peaked in 2019 (M = 5.64) and improved significantly in 2020 (Δ = − 0.31, P = 0.012), with continued improvement through 2024. Machine learning identified PSQI = 5 as the optimal threshold (AUC = 0.755; accuracy = 0.699). BMI–age interaction was the most influential predictor, followed by height, age, and sex. Findings support updates to adolescent sleep guidelines and demonstrate the utility of machine learning for risk stratification in future public health contexts.
Similar content being viewed by others
Acknowledgements
The author sincerely thanks the leadership, faculty members, and students of the participating school for their invaluable support during this research.
Funding
This research received no specific grant from funding agencies in the public, commercial, or not-for-profit sectors.
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Ethics approval and consent to participate
This study was approved by the Ethics Committee of Harbin Fifth Hospital (Approval No. HFH-2019-005). All procedures followed the Declaration of Helsinki. Written informed consent was obtained from all individual participants included in the study. For participants under 18 years old, written assent and parental/guardian consent were obtained.
Consent for publication
All participants consented to the publication of anonymized research data. Identifying information has been removed from the manuscript.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Zhang, Y., Han, K., Zhang, Y. et al. Temporal dynamics and associated factors of sleep quality in Chinese boarding high school students: a repeated cross-sectional study across four waves (2019–2024). Sci Rep (2026). https://doi.org/10.1038/s41598-026-52807-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-026-52807-x


