Introduction

Postoperative Sleep Disturbances (PSD) refer to the abnormal changes in sleep duration and quality experienced by patients following surgical procedures. These disturbances can manifest as reduced sleep duration, decreased sleep quality, and alterations in sleep structure1,2,3,4. Patients may encounter difficulties falling asleep, frequent awakenings during the night, early morning awakenings, fragmented sleep, and disruptions in sleep cycles5,6,7. PSD is a common complication of surgery, with an incidence ranging from 15 to 72%8,9 The occurrence of PSD can adversely impact postoperative recovery and affect cognitive function, emotional well-being, memory, pain perception, cardiovascular outcomes, and metabolic processes.

PSD results from the interplay of multiple factors. Specific conditions following surgery-such as the type of surgical procedure, anesthesia duration, length of surgery, and discomfort caused by postoperative pain and complications-can all influence sleep quality10,11,12. A single-center prospective observational study found that orthopedic surgery, gastrointestinal surgery, ear-nose-throat surgery, and longer surgery duration are significant risk factors for the occurrence of PSD13. Randomized clinical trials investigating PSD in gynecological laparoscopic surgery have shown that preoperative anxiety and depression scores, anesthesia duration, and postoperative pain scores are associated with the incidence of PSD14,15. Researchers have utilized the Pittsburgh Sleep Quality Index (PSQI) to categorize elderly patients undergoing elective thoracic surgery into groups based on sleep disturbances (a score of ≥ 5 indicates sleep disturbance) and used logistic regression analyses to identify risk factors for PSD. The findings indicated that a history of insomnia, a body mass index (BMI) of ≥ 24 kg/m2, comorbid diabetes, open chest surgery, surgery duration of ≥ 120 min, and moderate to severe postoperative pain are risk factors for PSD in elderly thoracic surgery patients16,17,18.

Currently, investigations into the factors influencing PSD often rely on mean and standard deviation values to determine cutoff points, treating the patient population as homogeneous and overlooking the inherent heterogeneity among patients with PSD19,20. This can lead to a lack of personalized intervention strategies for those affected by PSD.

Latent Profile Analysis (LPA) is an individual-centered analytical method that explains and estimates the relationships between latent categorical variables and observed continuous variables21,22. This approach offers a novel perspective for exploring population characteristics and heterogeneity. Therefore, we utilized the statistical tools Mplus version 8.323 and IBM SPSS Statistics for Windows, Version 29.024 to conduct Latent Profile Analysis (LPA) on patients with postoperative sleep disturbances to identify different latent categories and analyze the influencing factors for each category. This will provide a foundation for developing personalized care plans and interventions in clinical practice. Through this method, we aim to effectively improve postoperative patients’ sleep quality and support their overall recovery. Additionally, we hope our findings will contribute to a deeper understanding of the complexity and diversity of postoperative sleep disturbances.

Material and methods

Research shows that the incidence of sleep disturbances within 2 days after surgery can reach over 90%25. On the first day after surgery, incomplete metabolism of anesthetic drugs or the use of analgesic pumps may affect our assessment of postoperative sleep quality. Therefore, we chose to conduct a questionnaire survey on the second day after surgery. This was a cross-sectional survey study. Data were collected from May 2023 to October 2023 at the Second Affiliated Hospital of Zunyi Medical University in Zunyi City, Guizhou Province, China. According to the sample size calculation formula: n = [u2α/2π(1-π)]/δ2, π = 0.05, and allowable error δ = 0.04, considering a 15% invalid questionnaire rate, a minimum sample size of 390 is required. The final effective sample size for this study is 400, which meets the sample size requirement.

Subjects

Inclusion criteria: Patients undergoing elective surgery; American Society of Anesthesiologists (ASA) classification: grade I toIII; Age: 18 to 80 years; Consciousness and clear in responses; No history of mental illness; Informed consent. Exclusion criteria: Preoperative Sleep Quality Index (PSQI) score > 7; Neurosurgery or day surgery; History of long-term use of psychotropic drugs; Presence of cognitive or communication disturbances. Exclusion criteria during the survey: Postoperative transfer to the Intensive Care Unit (ICU); Occurrence of severe cardiovascular or cerebrovascular events.

Measures

Collection of general information

The patients’ age, gender, body mass index (BMI), educational level, smoking history, alcohol history, ASA grade, past medical history, and baseline sleep were collected. Among them, we used the PSQI to assess the patient’s sleep situation one day before surgery. If the PSQI score is greater than 7, indicating the presence of sleep disturbances before surgery, they will not be included in our study.

Pittsburgh sleep quality index (PSQI)

PSQI consists of seven dimensions: sleep quality, sleep latency, sleep duration, sleep efficiency, sleep disturbances, use of sleep medication, and daytime dysfunction. Each dimension is scored on a 0–3 scale, with a total score ranging from 0 to 21. Higher scores indicate poorer sleep quality26. The Cronbach’s alpha coefficient for the scale is 0.842, and at a cutoff score of 7, the sensitivity and specificity of the scale are 98.3% and 90.2% respectively27. In this study, a PSQI score > 7 was used to indicate the presence of sleep disturbances.

Hospital anxiety and depression scale (HADS)

It is a reliable tool for assessing symptoms of anxiety and depression, consisting of separate anxiety and depression subscales. Each subscale consists of 7 items, with scores ranging from 0 to 3. The total score ranges from 0 to 21. A score of 8 or higher indicates the presence of anxiety or depression symptoms. The Cronbach’s alpha coefficients for the overall HADS scale, anxiety subscale, and depression subscale are 0.879, 0.806, and 0.806, respectively. The test–retest reliabilities are 0.945, 0.921, and 0.932 for the overall scale, anxiety subscale, and depression subscale, respectively28.

Numerical rating scale (NRS)

The NRS is recognized as the gold standard for pain assessment by the American Pain Society29. This scale is widely used in clinical settings, where patients self-evaluate their pain on a 10-point scale. A higher score indicates more severe pain. A score of 0 represents no pain, 1–3 represents mild pain, 4–6 represents moderate pain, and 7–10 represents severe pain30.

Data collection methods and quality control

Before starting the survey, we will conduct standardized training for the participants involved to ensure that data collectors use consistent scripts when administering the questionnaires. This approach aims to enhance the consistency and accuracy of the data collection process, minimize potential biases, and ensure that the collected data more accurately reflects the research objectives. After obtaining the consent of the survey subjects, explain the filling method and precautions of the questionnaire to them. Immediately check the completeness and validity of the questionnaire after completion. We distributed a total of 416 questionnaires in this study and received 400 responses, with an effective response rate of 96.2%. The disease-related data in our study will be collected by investigators through the electronic medical record system of the hospital where the research subjects are located.

Statistical analysis

Statistical analysis was performed using IBM SPSS Statistics for Windows, Version 29.0. Continuous variables in this study did not follow a normal distribution and were described using the median and interquartile range [M (P25, P75)]. Group comparisons were conducted using the Mann–Whitney U test. Categorical data were described using frequencies and proportions, and group comparisons were conducted using \({x}^{2}\) test or Fisher’s exact test. Multiple logistic regression analysis was employed to explore the influencing factors of postoperative sleep disturbances in elective surgery patients. A two-tailed significance level of α = 0.05 was used, and a P-value < 0.05 was considered statistically significant.

Build a latent profile classification model using Mplus version 8.3 software, with each dimension score of the Pittsburgh Sleep Quality Index (PSQI) as the manifest variable. Start with a one-class model and gradually increase the number of classes until the model fit indices reach optimal values. Model fit indices include:(1)Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), and adjusted Bayesian Information Criterion (aBIC). Smaller values indicate better model fit31. (2)Entropy index represents the accuracy of classification, ranging from 0 to 1. Closer to 1 indicates more accurate classification, with values above 0.8 suggesting a classification accuracy of 90% or greater32. (3) Likelihood ratio tests include Lo Mendell Rubin (LMR) test and Bootstrap Likelihood Ratio Test (BLRT). A significant P-value (P < 0.05) indicates that a model with k classes significantly outperforms a model with k-1 classes33.

Ethical considerations

Study subjects: We employed a random sampling method to select study subjects from multiple surgical departments, ensuring diversity and representativeness in our sample. This approach helps reduce selection bias and makes our findings more widely applicable.

Standardized survey tools: We utilized validated standardized questionnaires to assess postoperative sleep disturbances and related factors. The validity and reliability of these tools have been established in relevant literature, thereby minimizing the risk of measurement bias.

Training data collectors: All researchers involved in data collection underwent training to ensure they adhered to consistent interviewing and data entry procedures, thereby reducing the likelihood of human error and bias.

Ethical review: Before the study commenced, reviewed and approved by the Second Affiliated Hospital Ethics Committee of Zunyi Medical University. Ethics approval number KYLL-2023–020. Before participating in the study, all patients provided written informed consent, and all methods were carried out in accordance with relevant guidelines, regulations, and Good Clinical Practices.

Results

Sample characteristics

This study included a total of 400 elective surgery patients, consisting of 181 males (45.3%) and 219 females (54.8%). The median age was 50.0 (range: 39–59) years, with a median BMI of 23.6 (range: 20.7–26.7) kg/m2. Regarding educational background, 190 individuals (47.5%) had primary school/loer 118 individuals (29.5%) had high school/lower education, and 92 individuals (23.0%) had Bachelor/higher degree (Table 1).

Table 1 General information of the participants.

Analysis of profiles of sleep disturbances in postoperative patients and naming

Based on the PSQI with its 7 dimensions as manifest variables, four latent profile models were established starting from the initial model. As the number of models increased, Model 4 had the lowest AIC and BIC values, but the LMRT value was not significant, indicating that Model 3 was better than Model 4. Model 3 had a higher entropy value than Model 2, indicating that Model 3 had better classification. Therefore, Model 3 was selected as the best-fitting model, as shown in Table 2.

Table 2 Model fit indices for profile latent classes of postoperative patients with sleep disturbances.

Based on Model 3, there were significant differences in the scores of the three latent profiles in the “sleep disturbance” dimension. Considering the practical significance, they were named "Mild Sleep Disturbance Group," "Moderate Sleep Disturbance Group," and "Severe Sleep Disturbance Group," respectively. These groups included 140, 177, and 83 patients, accounting for 35.0%, 44.2%, and 20.8% of the total, as shown in Fig. 1.

Fig. 1
figure 1

Distribution of profile latent categories of sleep disturbances in postoperative patients.

Univariate analysis of profiles latent categories of postoperative patients with sleep disturbances

The results showed statistically significant differences (P < 0.05) in forms of anesthesia, BMI, duration of anesthesia, operation time, pain, anxiety, depression, and hospitalization days among different latent categories (Table 3).

Table 3 Univariate analysis of latent categories of postoperative patients with sleep disturbances (n = 400).

Multivariate analysis of profiles latent categories of postoperative patients with sleep disturbances

The profiles of sleep disturbances were used as the dependent variable (assigned as mild sleep disturbance = 1, moderate sleep disturbance = 2, severe sleep disturbance = 3), with the mild sleep disturbance group as the reference group. Variables that showed statistical significance in the univariate analysis were included as covariates in the multivariate logistic regression. The results indicated that BMI, duration of anesthesia , pain, and anxiety were significant factors influencing different categories of postoperative sleep disturbances (P < 0.05) (Table 4).

Table 4 Multivariable logistic regression analysis of profiles categories of postoperative sleep disturbances in elective surgery patients.

Discussion

Postoperative sleep disturbances in patients undergoing elective surgery exhibit heterogeneity among the population

Our study found that postoperative sleep disturbances in patients undergoing elective surgery can be categorized into three groups: mild sleep disturbance group (35.0%), moderate sleep disturbance group (44.2%), and severe sleep disturbance group (20.8%). This indicates a significant heterogeneity in sleep disturbances among postoperative elective surgery patients. The mild sleep disturbance group scored low across all dimensions, suggesting that their postoperative sleep quality is relatively acceptable; however, this does not mean that this population should be overlooked regarding their postoperative sleep status. Healthcare providers should also pay attention to the postoperative sleep conditions of these patients to prevent their condition from progressing to moderate or severe sleep disturbances.

The moderate sleep disturbance group represents the largest proportion, and compared to the other two groups, they reported higher scores for daytime functional impairment. This suggests that this population may experience physiological discomfort due to the surgical impact, leading to the onset of sleep disturbances. Healthcare professionals should provide additional support to these patients and implement appropriate care measures, such as scheduling medical procedures during the day to preserve the patients’ normal sleep patterns and minimize disruptions to their sleep. Furthermore, evening care should be tailored to each patient’s condition, assisting them in drinking warm milk or honey water, and helping them assume comfortable sleeping positions to promote better sleep.

The severe sleep disturbance group scored high across all dimensions and had a higher rate of hypnotic medication use compared to the other two groups. This indicates that special attention should be paid to medication safety in this population. The use of hypnotic medications may lead to side effects such as daytime excessive sleepiness, poor drug tolerance, motor dysfunction, cognitive impairment, dependence, and withdrawal symptoms, which can even exacerbate sleep disturbances34. Therefore, healthcare providers must have a thorough understanding of the indications and contraindications for these medications when prescribing them, reinforcing medication guidance for this group, and adhering to principles of safety, appropriate dosing, and short-term use.

A higher BMI is more likely to have negative effects on sleep quality

Obesity is a significant risk factor for sleep disturbances. Our study findings reveal that a higher BMI increases the likelihood of being categorized in the moderate or severe sleep disturbance groups, consistent with the research conducted by Meurling et al.35 The possible explanation could be that accumulated fat in the abdomen and chest of obese individuals reduces lung volume, lowers chest wall and lung compliance, and increases pulmonary static recoil pressure36,37. Abdominal obesity and reduced lung capacity decrease upper airway longitudinal traction, leading to airway collapse38,39. Additionally, increased neck fat can cause upper airway obstruction and collapse, factors that contribute to recurrent hypoxemia, hypercapnia, and sleep architecture disruption during the night, thereby inducing sleep disturbances40,41,42. Short sleep duration is associated with leptin resistance and ghrelin secretion; insufficient sleep increases ghrelin’s hunger signals while reducing leptin’s satiety signals, leading to increased appetite and high-calorie food intake. This indicates a synergistic metabolic effect between obesity and sleep disturbances, with sleep disruption exerting a feedback effect on obesity43,44.

The longer the duration of anesthesia, the more likely it is to be associated with severe sleep disturbance group

The results of this study show that compared with the light and moderate sleep groups, the longer the anesthesia time, the greater the probability that an individual belongs to the heavy sleep group. It may be because commonly used clinical anesthetic and sedative drugs mainly enhance gamma-aminobutyric acid receptors and glycine receptors or inhibit excitatory receptors (dopamine receptors, nicotine, 5-hydroxytryptamine, and ionotropic glutamate receptors, etc. ) functions to exert an anesthetic effect45,46. Longer anesthesia means the substance remains in the body longer. Chemicals can act on the sleep–wake cycle to cause loss of consciousness and have certain effects on sleep in a short period through mechanisms such as changing sleep structure, affecting circadian rhythm, and regulating the sleep–wake cycle47.

The more intense the pain is, the more likely it is to cause sleep disturbances

Pain and sleep are bidirectional; pain can disrupt sleep, and insufficient sleep can increase pain sensitivity9,48,49. The findings of this study reveal that higher pain scores were more likely to be associated with moderate to severe sleep disturbance groups, and more severe pain was correlated with more severe sleep disturbances, consistent with Bailey’s research50. Research has shown that more intense pain can stimulate the patient’s dopamine system, altering their pain sensitivity and potentially intensifying emotional reactions, causing discomfort and leading to sleep quality decline or sleep disturbances51. Sleep disturbances can impact pain through compromised immune function, increased inflammatory responses, and elevated levels of cytokines such as interleukin-6, C-reactive protein, and cortisol52,53,54. Hence, healthcare professionals should closely monitor postoperative patients’ pain status, promptly evaluate it, and intervene actively, as this is crucial for improving sleep quality and facilitating patients’ recovery.

The higher the anxiety score, the greater the impact on sleep

Research indicates that higher levels of anxiety are associated with poorer postoperative sleep quality55. The findings of this study suggest that individuals with higher anxiety levels have a greater likelihood of being categorized in the moderate or severe sleep disturbance groups, possibly due to the activation of the hypothalamic–pituitary–adrenal axis by anxiety, which enhances the reticuloendothelial system and excites the sympathetic nervous system, leading to increased secretion of stress hormones like cortisol and catecholamines. This can alter the release of neurotransmitters like glutamate and GABA, thereby changing sleep cycles and depth56,57. Anxiety may also disrupt melatonin secretion and function, disrupting the biological clock and the regulation of the sleep–wake cycle, leading to sleep disturbances and circadian rhythm disturbances58. Prolonged anxiety not only causes patient distress but also prolongs postoperative pain and increases the risk of postoperative delirium59,60.

Limitations and prospects of this study

This study has some limitations. Firstly, it only selected surgical patients from a tertiary hospital in Guizhou Province, limiting the scope of the research. Therefore, to enhance the generalizability of our findings, we plan to adopt a multicenter design in our future research and include a broader patient population with diverse backgrounds and health conditions. This approach will allow for a more comprehensive understanding of how surgery affects postoperative sleep across different patient groups, providing a stronger basis for clinical practice. Additionally, the subjective PSQI score used in this study may differ from the actual sleep conditions of patients. In future research, objective sleep monitoring devices could be used to evaluate postoperative sleep, providing more convincing results.

Conclusions

Our study investigated the impact of surgery on patients’ sleep status, revealing distinct classification characteristics in postoperative sleep, with different influencing factors for each potential category. While we found that some patients experienced sleep disturbances after surgery, we excluded individuals with a history of sleep disturbances during the study design to ensure sample consistency. This approach ensured that all enrolled patients exhibited normal sleep patterns prior to surgery, but it also limited our ability to make direct comparisons of sleep state changes before and after surgery. Consequently, this may have led to an underestimation of the surgical impact on postoperative sleep. We recommend that future studies incorporate longitudinal comparative data that includes both preoperative and postoperative assessments to more comprehensively investigate the effects of surgery on sleep.