Skip to main content
PLOS One logoLink to PLOS One
. 2026 Mar 9;21(3):e0344479. doi: 10.1371/journal.pone.0344479

Habitual coffee consumption poorly correlates with sleep quality and daytime sleepiness: A cross-sectional study

Simon Söderholm 1,2,*, Martin Ulander 3,4, Vanessa William Toma 3, Sara Kaufmann 5, Xiangyu Qiao 3, Daniel Berglind 6,7,8, Susanna Calling 9,10, Bledar Daka 11, Ludger Grote 12,13, Mats Martinell 14, Frida Bergman 15, Pontus Henriksson 16, Carl-Johan Östgren 5,17, Wen Zhong 3,18, Claudio Cantù 1,2,*, Fredrik Iredahl 1,5,*
Editor: Julio Alejandro Henriques Castro da Costa19
PMCID: PMC12970861  PMID: 41801928

Abstract

Coffee is the most common drink in the world, second only to water. This makes caffeine, the ingredient of coffee known for its wakefulness-promoting effects, one of the most used psychoactive substances. The psychoactive property of caffeine is well-characterized, and entails its interaction with the adenosine receptors, involved in sleep regulation. While studies have shown a deleterious immediate effect of caffeine on sleep, less is known about the effects of chronic caffeine exposure. In the present cross-sectional study, we investigated this relationship across a large cohort of 30,154 individuals participating in the Swedish Cardiopulmonary Bioimage Study (SCAPIS), which allowed us to compare habitual coffee intake with sleep habits, subjective estimate of daytime sleepiness, and underlying genetic variants. According to our analyses, different degrees of coffee consumption, confirmed by statistical association with previously reported genetic variants, showed very low association with estimated patterns of sleep habits or perceived daytime sleepiness. These results indicate that coffee may be less impactful on sleep habits than previously thought, or that other mechanisms, such as the adaptive capabilities of the adenosine system in adult coffee users, may dampen its psychoactive potency.

Introduction

Throughout history, people of all cultures have consumed foods with psychoactive properties. Among these, coffee is currently the most common beverage in the world, second only to water [1].

Given the wakefulness-promoting effects of coffee, the association between its consumption and sleep patterns is widely studied [2]. A molecular mechanism for this effect has been found: caffeine, the principal psychoactive substance in coffee, is a central nervous system (CNS) stimulant which, together with theobromine and theophylline, belongs to a class of substances known as methylxanthines. Methylxanthines act as antagonists of the adenosine receptor [3]. Adenosine, together with its receptors (A1, A2A, A2B and A3), are known to be involved in sleep homeostasis [4]. Caffeine has been proved to promote wakefulness primarily by blocking A2A [5].

In addition, genome-wide association studies (GWAS) have identified genetic predispositions that contribute to how individuals may be affected by caffeine. The most significantly associated variants are found to affect the Aryl-Hydrocarbon Receptor (AHR) and the Cytochrome P450 Family 1 Subfamily A Member 1 and 2 (CYP1A1 and CYP1A2) genetic loci [68]. Consistently, the P450 system has a key role in the metabolism of coffee, with CYP1A2 constituting the primary metabolizer of caffeine [911]. AHR is involved in the positive transcriptional regulation of CYP1A1 and CYP1A2 [12,13]. [14]

While studies have shown that caffeine intake can impair subsequent sleep [14], less is known about the long-term effect of regular caffeine consumption.

Sweden is, together with its Scandinavian neighboring countries, one of the highest per capita coffee consumers [15]. This offers ideal large cohorts for the study of existing associations between coffee consumption and genetics or other lifestyle parameters. In the present cross-sectional study, we take advantage of the data deriving from a large cohort comprising 30,154 individuals aged between 50–64 participating in the Swedish Cardiopulmonary Bioimage Study (SCAPIS) [16] to investigate the association between habitual coffee consumption and sleep habits and daytime sleepiness.

Results

Coffee consumption in Swedish middle-aged individuals

A total of 25,381 participants were considered (Fig 1A, Table 1), of which 12,990 females (51%) and 12,391 males (49%). Data missingness was assessed with Little’s MCAR test, which indicated that data were missing not completely at random (p < 0.001). However, as the proportion of missing data values only constitute about 3.4% across the entire dataset, and additional analyses including missingness patterns and overimputation tests showed limited benefit of imputation (S1 Fig), we excluded participants with any missing data. The reported coffee consumption across the studied population has a distinct distribution (Fig 1C), where a majority of individuals have reported to drink coffee 1 or more times on a daily basis (n = 22,257, 87.7%), while fewer individuals have reported to only sporadically drink coffee monthly or weekly (n = 1344, 5.3%) or not drinking coffee at all (n = 1780, 7%).

Fig 1. Study overview.

Fig 1

(A) Schematic overview of the study, including data selection/filtration and main analysis steps. (B) Directed Acyclic Graph (DAG) that displays assumptions about the relationship between coffee consumption, sleep quality/ESS, and a selection of other variables. Potential confounders (i.e., factors that may influence both coffee consumption and sleep quality and therefore could bias the analysis) are indicated by a node with gray background color. (C) Overview of coffee consumption in the studied population. Bar plot showing the number of individuals (y-axis) for each level of coffee consumption (x-axis).

Table 1. Patterns of habitual coffee consumption by baseline characteristics.

Coffee consumption
Characteristic Overall N = 25,3811 NONE N = 1,7801 LOW N = 1,3441 MODERATE N = 14,1241 HIGH N = 8,1331 p-value2
Age 57.5 (4.3) 56.6 (4.2) 57.5 (4.3) 57.8 (4.4) 57.1 (4.3) <0.001
Sex <0.001
 Female 12,990 (51%) 1,093 (61%) 633 (47%) 8,129 (58%) 3,135 (39%)
 Male 12,391 (49%) 687 (39%) 711 (53%) 5,995 (42%) 4,998 (61%)
BMI 26.9 (4.4) 26.9 (4.8) 27.5 (4.9) 26.7 (4.4) 27.1 (4.1) <0.001
Smoking Status <0.001
 Never 13,072 (52%) 1,205 (68%) 826 (61%) 7,335 (52%) 3,706 (46%)
 Ex-smoker 9,315 (37%) 452 (25%) 410 (31%) 5,369 (38%) 3,084 (38%)
 Current 2,994 (12%) 123 (6.9%) 108 (8.0%) 1,420 (10%) 1,343 (17%)
Tea consumption <0.001
 NONE 6,139 (24%) 338 (19%) 123 (9.2%) 3,162 (22%) 2,516 (31%)
 LOW 10,397 (41%) 303 (17%) 392 (29%) 5,783 (41%) 3,919 (48%)
 MODERATE 8,005 (32%) 781 (44%) 635 (47%) 4,985 (35%) 1,604 (20%)
 HIGH 840 (3.3%) 358 (20%) 194 (14%) 194 (1.4%) 94 (1.2%)
Stress <0.001
 Never 1,235 (4.9%) 107 (6.0%) 81 (6.0%) 639 (4.5%) 408 (5.0%)
 Once 8,962 (35%) 582 (33%) 480 (36%) 5,044 (36%) 2,856 (35%)
 Once the past five years 9,881 (39%) 656 (37%) 520 (39%) 5,486 (39%) 3,219 (40%)
 Constant the past year 2,631 (10%) 207 (12%) 113 (8.4%) 1,435 (10%) 876 (11%)
 Constant the past five years 2,672 (11%) 228 (13%) 150 (11%) 1,520 (11%) 774 (9.5%)
Physical activity <0.001
 Sedentary 2,902 (11%) 269 (15%) 237 (18%) 1,472 (10%) 924 (11%)
 Moderate exercise 11,811 (47%) 811 (46%) 628 (47%) 6,725 (48%) 3,647 (45%)
 Moderate but regular exercise 7,628 (30%) 491 (28%) 348 (26%) 4,337 (31%) 2,452 (30%)
 Regular exercise and training 3,040 (12%) 209 (12%) 131 (9.7%) 1,590 (11%) 1,110 (14%)
Sleep medication 357 (1.4%) 31 (1.7%) 26 (1.9%) 212 (1.5%) 88 (1.1%) 0.011

1 Mean (SD); n (%)

2 Kruskal-Wallis rank sum test; Pearson’s Chi-squared test

From our directed acyclic graph (DAG) analysis (Fig 1B) we identified age, sex, body mass index (BMI), tea consumption, stress, physical activity, smoking status, and sleep medication use as relevant confounding factors. For daytime sleepiness, hours of nighttime sleep were defined as an additional confounding factor. Additional details on all variables used in the study, including coffee consumption, sleep/sleepiness, and confounding factors, are presented in S1 Table. Significant statistical association were found between each of the confounding factors and coffee consumption (Kruskal-Wallis rank sum test or chi2 test p < 0.005) (Table 1). In line with current studies [17], we found an observable discrepancy in coffee consumption between the two sexes (Fig 2A), with men showing a higher average coffee consumption compared to women. In comparison, age displayed a smaller influence on coffee consumption, although with statistically significant differences. In accordance with previous studies [18], there were significant differences in coffee consumption based on BMI, where individuals classified as underweight tend to drink less coffee compared to overweight individuals or those classified as obese (Fig 2A). Unlike coffee, tea shows a lower frequency of consumption among the participants, where about 35% report drinking tea 1 times a day or more. As previously reported [19,20], smoking status seems to influence coffee consumption, where individuals who smoke tend to drink on average more coffee than ex-smokers, and the difference is even more pronounced between current smokers and never-smokers.

Fig 2. Coffee consumption in the studied population and association with known genetic markers.

Fig 2

(A) Stacked bar plots representing the distribution of coffee consumption (y-axis) for each level (x-axis) of age, sex, BMI, tea consumption, stress, physical activity, and smoking status, respectively. BMI has been divided into categories according to guidelines from the World Health Organization (WHO). (B) Simplified schematic description of key steps used in the genome-wide association studies (GWAS) analysis. (C-D) Region plots showing zoomed-in view at chromosome 7 (C), and chromosome 15 (D). Blue points represent individual SNPs. A p-value threshold of 5e-08 was used for determining significance (red-colored horizontal dashed line). Top significantly associated SNPs have been annotated in the plots.

Habitual coffee consumption is associated with known genetic marks

To assess whether the questionnaire responses provided constitute reliable descriptors of coffee consumption, we investigated the presence of known genetic markers previously associated with coffee consumption, by performing a genome-wide association study (GWAS) (Fig 2B). We identified 66 SNPs significantly associated with coffee consumption (p < 5e-8) (S2A Fig, S2 Table). 26 SNPs were located on chromosome 7p21 near the Aryl Hydrocarbon Receptor gene (AHR) with the top associated SNP rs4410790-T (Fig 2C), and 7 SNPs were located on chromosome 15q24 near the Cytochrome P450 Family 1 Subfamily A Member 1 and 2 genes (CYP1A1/CYP1A2) with the top SNP rs2472297-T (Fig 2D). An additional 33 SNPs were located on chromosome 22q11.23 near the Calcineurin Binding Protein 1 gene (CABIN1) and the Sushi Domain Containing 2 gene (SUSD2) with the top SNP rs6004089-C (S2B Fig). The SNPs on chromosomes 7 and 22 presented negative β-coefficient (also known as effect size estimate) indicating that the SNPs considered were negatively correlated with higher value of coffee consumption; the SNPs on chromosome 15, instead, had positive β-coefficient (S2 Fig C). The fact that these GWAS resulted in known genetic variants previously found to be associated with coffee consumption constitutes a powerful orthogonal confirmation of the robust reliability of our questionnaire-based data.

Coffee intake shows low association with subjective estimates of sleep or daytime sleepiness

We examined the association between the distribution of coffee consumption described and validated above with i) sleep pattern/quality and ii) subjective estimate of daytime sleepiness. To measure sleep pattern/quality we evaluated subjective factors, reported by our cohort of participants, that are known objective indicators of sleep quality. These are: hours of sleep, quality of sleep, difficulty of falling asleep, waking up at night, waking up too early, reflux after going to bed, and loud snoring (S3 Table). In addition to considering each of these sleep factors separately, we devised a sleep score that combines them (see method section). The overall distribution of sleep scores was skewed towards lower values (mean = 8.6, SD = 4.47), indicating that most participants had a good sleep quality in general (Fig 3A, left panel). Likewise, and supporting the use of this metric, the distribution of the commonly used Epworth Sleepiness Scale (ESS) scores was also skewed towards lower values (mean = 6.3, SD = 4.14), indicating that most participants in the cohort experienced low overall daytime sleepiness (Fig 3A, right panel). Only 16% (4070/25381) of participants had an ESS score above 10 (the typical threshold for excessive sleepiness).

Fig 3. Influence of habitual coffee consumption on sleep and day-time sleepiness.

Fig 3

(A) Histogram showing the distribution of calculated sleep scores (left panel) and ESS scores (right panel) across participants. Vertical dashed line represents the mean value. (B) Association of habitual coffee intake assessed by regression analysis. For each of the seven sleep factors, an ordinal logistic regression model was fitted, while for each of the sleep score and ESS score, a Quasi-Poisson regression model was fitted. All models were adjusted for basic demographics (age and sex), BMI, and lifestyle factors (habitual tea intake, stress, physical activity, and smoking), as identified by the DAG analysis. Dots show cumulative odds ratio (ordinal logistic regression) or rate ratio (Quasi-Poisson regression). Black lines on each side of the dots represent 95% confidence interval. Vertical dashed line shows Odds Ratio = 1. Significant results (p < 0.05) are highlighted as yellow dots. (C) Heatmaps showing differences in predicted outcomes. For categorical sleep factors (sleep duration, sleep quality, difficulty falling asleep, frequency waking up, frequency waking up too early, reflux, and snoring) partial proportional models were used to calculate predicted category probabilities. For sleep score and ESS score, quasi-Poisson models were used to calculate predicted counts. Results are presented as the difference in predicted probabilities/counts comparing coffee consumption level (high vs none, moderate vs none, and low vs none, respectively).

We found a quantitatively small, although statistically significant due to the large sample size, correlation between coffee consumption and sleep score (Kendall’s tau = −0.045, p < 0.001) or ESS score (Kendall’s tau = 0.011, p = 0.016). To assess whether this low correlation is due to an underlying relationship rather than bias in the data, we performed regression analysis (see details in method section), using each of the sleep factors, sleep score and ESS score as outcomes, respectively, and coffee consumption as main predictor, with adjustment for confounders identified by the DAG analysis. Statistical tests indicated possible violation of the proportional odds assumption, but this only translated to small differences in predicted category probabilities (min: 0.0002, 1st quantile: 0.0086, median: 0.0187, mean: 0.0233, 3rd quantile: 0.0359, max: 0.0766) (S3 Fig). While sensitivity analyses did imply some loss of information due to our aggregation of coffee consumption groups (S4 Table), visual inspection of predicted probabilities suggests non-linear patterns to be mild and still capturable by the current coffee consumption grouping (S4 Fig).

Counterintuitively, all sleep factors but sleep time and frequency of snoring indicated better sleep with higher coffee consumption (Fig 3B). Specifically, low coffee consumption was associated with worse sleep quality (Odds Ratio = 1.16, p = 0.023), higher frequency of difficulty falling asleep (Odds Ratio = 1.17, p = 0.018) and higher frequency of waking up during the night (Odds Ratio = 1.17, p = 0.014), compared to non-drinkers. This relationship was reversed with increased coffee consumption, where high consumption was associated with better sleep quality (Odds Ratio = 0.83, p < 0.001) and less difficulty falling asleep (Odds Ratio = 0.86, p = 0.005), and slightly (non-significant) lower frequency of waking up during the night (Odds Ratio = 0.92, p = 0.12). Likewise, high coffee consumption was associated with lower frequency of waking up to early (Odds Ratio = 0.78, p < 0.001) and lower frequency of reflux after going to bed (Odds Ratio = 0.82, p = 0.003). All levels of coffee consumption were associated with higher frequency of loud snoring (Odds Ratios: 1.15–1.25, p: 0.037 – < 0.001), with a slight positive trend with increased coffee consumption. Lastly, there was a slight association between higher coffee consumption and lower overall sleep score, while all levels of coffee consumption were associated with slightly lower ESS score with no apparent trend across the consumption levels.

However, while the association between coffee consumption and sleep factors were statistically significant, it translated to very small changes in actual probability distribution. Across the seven sleep variables we studied, absolute differences in predicted category probabilities between coffee consumption groups were small overall (median 1.9%, IQR 0.9–3.6%, maximum 7.7%). For Sleep score and ESS the differences in predicted counts between coffee consumption groups were also very small (minimum −0.84, median −0.2, IQR −0.33-(−0.05), maximum 0.46). (Fig 3C, S5 Table). This limited impact of coffee consumption on sleep factors is further highlighted when examining the importance of each included variable in the regression model (S5 Fig), where factors such as BMI and stress exhibit stronger explanatory power. Lastly, interaction analysis indicated improved model fit for interaction between coffee consumption and age in relation to ESS score (p = 0.033), interaction between coffee consumption and sex in relation to frequency of waking up (p = 0.045), and interaction between coffee consumption and BMI in relation to difficulty falling asleep (p = 0.002) (S6A Fig). However, and in line with the variable importance results, only BMI exhibited clear changes in predicted probability, where low coffee consumption was associated with increased probability of difficulty falling asleep with increased BMI (S6B-S6D Fig).

Discussion

Reported coffee consumption and genetic validation

Based on the collected data, a majority of study subject (87.7%) frequently drink coffee (>1 times/day), consistent with the overall high prevalence of coffee consumption in Sweden [15]. While these are self-reported data, which is commonly influenced by bias and uncertainties [21], GWAS supports the reliability of our data, as evident by the identified known variants at the AHR and CYP1A1/2 genes.

In addition to the well-established coffee-associated genetic markers at the genes AHR and CYP1A1/CYP1A2, significant association was also observed for 33 SNPs at chromosome 22, of which several were located within the genes CABIN1 and SUSD2. CABIN1 encodes a nucleus-located protein that binds specifically to activated calcineurin and inhibits calcineurin-mediated signal transduction [22]. While there is no previously known connection between genetic variants in the CABIN1 gene and coffee consumption, studies have shown that calcineurin and its regulation is required for normal sleep in Drosophila [23,24], and for sleep regulation in mammals [25]. Although this is an interesting finding, we choose not to elaborate on it here but propose further studies to determine whether genetic variation at CABIN1/SUSD1 has any relevant role in susceptibility to the effects of caffeine.

Another locus of importance is the Adenosine A2a receptor gene (ADORA2A), in which genetic variation has been associated with individual sensitivity to caffeine effects on sleep [26]. However, while a collection of SNPs exhibited a higher association around the ADORA2A gene in our dataset, none met the threshold for significance (p < 5e-8). This lack of statistically significant association may be explained by the relatively high age of the study population. Given the previously demonstrated adaptive capacity of the adenosine system at prolonged caffeine exposure, it is possible that coffee consumers within the studied group are less susceptible to the effect of caffeine, thus masking the potential importance of genetic variation at the ADORA2A locus.

What is the effect of coffee consumption on sleep/sleepiness?

Contrary to the general perception of the wakefulness-inducing effects of caffeinated beverages, such as coffee, our results suggest that the correlation between habitual coffee consumption level and perceived sleep or daytime sleepiness is negligible. While our regression analyses indicate some statistically significant relationships between coffee consumption and sleep/sleepiness, these correspond to very low predicted effect sizes, with likely limited physiological impact. Our analysis did, however, reveal BMI as a potential contributing factor on the effect of coffee consumption on reported frequency of difficulty falling asleep at night. This is supported by a recent study in adult women which reports prolonged and more adverse caffeine effects in obese subjects compared to non-obese [27]. Our results thus support the need to consider individual body composition in caffeine dose recommendations.

The unexpected lack of strong overall relationship between coffee consumption and perceived sleep quality or daytime sleepiness could be due to a recently noted adaptive feature of the adenosine system [4]. While acute caffeine administration, especially in the evening close to bedtime, has shown effects on sleep efficiency and latency, study evidence suggests that these effects normalize during prolonged daily caffeine intake [28,29]. This has also been observed on subjective daytime sleepiness, as self-reported by patients. Furthermore, in the mouse, results have shown that repeated caffeine exposure leads to an adaptive response in the brain characterized by increased levels of adenosine [30] and an increase in the number of adenosine receptors [3134]. Thus, as our data set constitutes information on individuals within the age range of 50–64, this may explain the absence of a stronger effect of coffee consumption on perceived sleep. Those who drink coffee have probably done so for many years, as we assume it is unlikely that a stable habit of coffee consumption is initiated later in life. The adenosine system of these individuals could therefore already have experienced an adaptation to chronic caffeine exposure. Of note, recent studies have demonstrated reduced levels of adenosine receptor A1 and overexpression of A2 in the brain of aging rats [35] and aging humans [36], raising the question of the role of age in the response to caffeine.

Study limitations

While the participants estimated the frequency of coffee consumption according to pre-defined categories, no data was collected on the number of cups, the type of coffee beans, caffeine concentration, or whether the participants consume decaffeinated coffee. It is also possible that participants may consume caffeine from sources other than coffee or tea, such as energy drinks or certain soft drinks. Data on the consumption of such drinks was not included in this study. However, although we cannot rule out some effects of these neglected caffeine sources, it is likely that coffee and tea are the main sources, as their consumption tends to have a more consistent and habitual pattern. In addition, the timing of coffee consumption has not been considered in the analysis. While caffeine has been shown to reach near-complete absorption within 45 minutes and with a mean elimination half-life of about 5 hours [37,38], we cannot rule out the possibility that participants consume coffee close to bedtime, within the average half-life of caffeine where an effect on sleep could be plausible. Medical comorbidities, yet another potential confounder that could influence the associations, have not been accounted for as this information has not been readily available for analysis. Furthermore, as this study was conducted at northern latitudes, it is possible that seasonal differences could affect estimated coffee consumption or subjective estimates of sleep or sleepiness. In summary, while possible confounders have been accounted for in our analysis, we cannot exclude that there may be additional confounders. Sleep and sleepiness are complex behavioral traits that are influenced by a large variety of factors [39], and it is therefore likely that coffee consumption and sleep co-vary as a function of several confounding variables.

Lastly, it is important to note that the cross-sectional design of this study, while providing descriptive associations, does not fully permit causal inference. Thus, further studies are needed to gain a definitive picture of the long-term effects of caffeine intake on sleep and sleepiness.

Conclusions

The present study indicates that habitual coffee consumption, in a middle-aged Swedish cohort, show no, or at least only a weak, association with estimates of sleep quality and perceived daytime sleepiness. This lack of a clear association could be due to the older age of the study participants, in whom prolonged exposure to caffeine probably has led to a normalization of the adenosine system. A possible explanation could lie in the adaptability of the adenosine system. However, we believe that further studies, with larger populations or comparative analyses between older and younger cohorts, are needed to fully ascertain the long-term effects of coffee on sleep and sleepiness, and the role of adenosine adaptation and/or ageing in the response to caffeine exposure.

Methods

The following is a summary of the main methods used in the study. Additional methods details can be found in supplementary materials.

Ethics approval and consent to participate

Ethical approval was obtained from the Swedish Ethical Review Board (reference number 2023-01559-01). The SCAPIS study was conducted in accordance with the Declaration of Helsinki, and the study has been approved as a multicenter trial by the Ethics committee at Umeå University (Dnr. 2010–228-31M). All participants provided written informed consent.

Data selection

From the main SCAPIS dataset (accession gained at 16/08/2023), samples which had genotyping results were selected, corresponding to a total of 29,335 individuals (14,997 females and 14,338 males). This subset was used for genetic analyses (see further details below and in supplementary materials).

For information on coffee consumption, participants answered a food frequency questionnaire [40]. Possible answers were “Not applicable” (which corresponds to no coffee consumption), “1-3 times/month”, “1-2 times/week”, “3-4 times/week”, “5-6 times/week”, “1 time/day”, “2 times/day”, “3 times/day”, “4 times/day”, and “5 times/day or more”. Based on these answers, the participants were further divided into four groups: None, Low (1time/month – 6time/week), Moderate (1–3 times/day), and High (4–5 times/day or more) coffee consumption. This grouping was chosen to ensure sufficient observations per category and stable model estimation.

Information on different aspects of sleep has been reported from a self-administered questionnaire on sleep habits, adapted from the Basic Nordic Sleep Questionnaire [41]. A total of seven sleep-related factors were selected for analysis, including hours of sleep, sleep quality, difficulty falling asleep, frequency of waking up several times, frequency of waking up too early, reflux after going to bed, and frequency of loud snoring. The participants were rating these, except for hours of sleep, on a 5-point scale (0–4) from good/low frequency to bad/high frequency.

Since each of the sleep factors constitutes different aspects of sleep, we also considered them together, by calculating an overall sleep quality score, defined as the sum of the individual sleep factors. Since hours of sleep were reported on a different scale, we recoded it as follows: 7 or more hours of sleep was given a score of 0, 6 hours of sleep was given a score of 1, 5 hours of sleep was given a score of 2, and 4 hours or less was given a score of 3. The resulting sleep score ranges from 0 to 27, with higher values corresponding to wors overall sleep. A similar sleep health score has been used in a previous study, although in the context of cardiovascular disease [42,43].

In addition to nighttime sleep, participants were also asked to rate, on a 4-point scale (0–3), how likely they are to doze off or fall asleep during the day while engaged in 8 different activities. This method of assessing daytime sleepiness (DS) is known as the Epworth Sleepiness Scale (ESS), developed by Dr. Johns in 1990 [44]. A total ESS score is obtained from the sum of rated scores from the 8 activities, ranging from 0 to 24. General interpretation of the ESS scores has been suggested by the inventor of the method, in which a score of 0–5 indicates lower normal DS, 6–10 indicates higher normal DS, 11–12 indicates mild excessive DS, 13–15 indicates moderate excessive DS, and 16–24 indicates severe excessive DS.

Missing data and imputation

Patterns in missing data were assessed by Little’s MCAR test using the R package naniar (version 1.1.0) [45]. Missingness was also further investigated by analyzing how missing data correlated between variables (Pearson correlation). To investigate the reliability of missing data imputation, multiple imputation by multiple correspondence analysis (MCA) were performed using the R package missMDA (version 1.19) [46]. The robustness of the imputation was assessed through an overimputation procedure, in which observed data points were randomly masked (corresponding to 10% of data) and imputed (100 iterations). The overimputed data were then compared to the true observed values to evaluate the accuracy of imputation. To contextualize this performance, we also compared it to the expected accuracy under random guessing based on marginal category frequencies (“naive baseline”) and expressed this as a ratio.

Directed acyclic graph (DAG) analysis

Both coffee consumption and sleep/sleepiness are complex human behavioral traits and may be influenced by several other confounding factors. Therefore, a directed acyclic graph (DAG) analysis was conducted to identify such relevant confounding factors. Nighttime sleep and daytime sleepiness, while distinct aspects of a person’s life, are heavily interconnected. Therefore, we defined a single DAG for the relationship between coffee consumption and sleep/ESS.

Data filtering

Participants with missing data in at least one of the sleep/ESS variables were removed, as well as those with missing data on coffee consumption or any of the confounders identified by the DAG analysis, leaving a total of 25,381 participants that were included in subsequent analyses. Imputation of missing data was not considered suitable in this case.

Main statistical analysis

Statistical analyses were conducted using R (version 4.4.2). Comparison of demographic and lifestyle characteristics between coffee consumption groups was performed with Kruskal-Wallis rank sum test for continuous variables, and Pearson’s Chi-square test for categorical variables. Correlation analyses were assessed by calculating the Kendall rank correlation. A p-value < 0.05 was used as threshold for significance.

The relationship between coffee consumption and sleep/ESS was assessed by regression modelling. For each of the sleep variables, treated as ordinal categorical outcome variables, a cumulative link model was fitted using the R package ordinal [47] (version 2023.12.4.1), with coffee consumption as main predictor, and with adjustment for confounding factors as identified by the DAG analysis (additional details in supplementary materials). Results were presented as odds ratios and corresponding p-values. Sleep score and ESS score were modeled using quasi-Poisson generalized linear models, with coffee consumption as main predictor and with adjustment for confounding factors as identified by the DAG analysis. Results were presented as rate ratios and corresponding p-values. When modeling ESS score, sleep time was added as an additional confounder in the model. Variable importance for each model was summarized using analysis of variance (ANOVA) and Type II Wald Chi-square statistics. Predicted individual outcome probabilities were calculated and visualized using the R package ggeffects [48] (version 2.2.1), using partial proportional odds models, and presented as signed absolute risk differences. Potential effect modifications were investigated for by iteratively introducing an interaction term between coffee consumption and each of sex, age and BMI. We then assessed whether the inclusion of these interaction terms improved model fit compared to the original models, by using likelihood ratio tests for ordinal models and F-tests for the quasi-Poisson models. For any significant improvement of model fit, model-based estimates were calculated (adjusted predicted probabilities for ordinal models and adjusted predicted counts for the quasi-Poisson models).

Diagnostics and sensitivity analyses

To ensure that the aggregation of coffee consumption groups do not obscure non-linear dose-dependent patterns in data, a sensitivity analysis was conducted in which, for each outcome, four different models were fitted: Model 1 (M1) with coffee consumption as a four-category variable, Model 2 (M2) with coffee consumption as the original questionnaire categories, Model 3 (M3) with coffee consumption modeled as a continuous variable using numeric approximate midpoints for each outcome category under the assumption of a linear association, and Model 4 (M4) with coffee consumption modeled continuously using restricted cubic splines to allow for non-linear associations. Numeric midpoints were assigned to the frequency categories to approximate average consumption levels (e.g., weekly and daily frequencies converted to times/day). This approach enabled formal testing of dose–response trends while accounting for unequal category spacing. Nested models were compared using likelihood ratio tests for ordinal outcomes and F-tests for count outcomes. Specifically, M1 was compared with M2 to evaluate potential information loss due to category aggregation, and M3 was compared with M4 to assess evidence of non-linearity. Model fit was further evaluated using Akaike Information Criterion (AIC) and Bayesian Information Criterion (BIC) for likelihood-based models. For quasi-Poisson models, a quasi-AIC (QAIC) was calculated. Pseudo R² measures and model deviance were also extracted to facilitate comparison across models. Predicted outcome values across the range of coffee consumption were visualized using marginal effect plots derived from the fitted models. These plots were used to support interpretation of linear versus non-linear associations.

For cumulative link models fitted for ordinal categorical variables, the proportional odds assumption (PO) was assessed by nominal test and scale test. To quantify any possible PO violation, we fitted partial proportional odds models, using the same formulas and covariates as the main analysis, and computed threshold-specific odds ratios and cumulative logit, as well as predicted category probabilities.

Genome-wide association studies (GWAS)

GWAS was performed on filtered genotype data (info score > 0.3, mean allele frequency (MAF) > 1%) to identify SNPs associated with coffee consumption. A p-value < 5e-08 was used as threshold for significance. Sex, age, genotyping batch and the first ten principal components were included as covariates. Analysis was performed using PLINK 2.0 [49] and visualization of GWAS results were made using the R package topr 2.0.0 [50].

Supporting information

S1 Fig. Data missingness analysis.

(A) Heatmap showing missingness patterns for each variable (x-axis) across coffee consumption levels (y-axis) before aggregation of coffee consumption into fewer groups. Values in each cell corresponds to percentage of missing values. (B) Heatmap showing Pearson correlation of missing values between all variables. The color map corresponds to the Pearson correlation coefficient. (C) Schematic overview of the procedure to assess the efficiency and accuracy of the data imputation, using an overimputation procedure. (D) Horizontal bar plot showing the mean accuracy of overimputed values. A value of 1 corresponds to perfect accuracy. (E) Horizontal bar plot showing the ratio between overimputation accuracy and random guessing. Values close to 1 indicate that that the imputation is not better than random guessing.

(TIF)

pone.0344479.s001.tif (1.2MB, tif)
S2 Fig. Additional GWAS results overview and associations at chromosome 22.

(A) Manhattan plot showing the p-values of the entire GWAS on a genomic scale, for coffee consumption. Blue points represent individual SNPs tested in the analysis. A p-value threshold of 5e-08 was used for determining significance (red-colored horizontal dashed line). (B) Region plot showing zoomed-in view at chromosome 22. Blue points represent individual SNPs. A p-value threshold of 5e-08 was used for determining significance (red-colored horizontal dashed line). Top significantly associated SNPs at each of the identified loci have been annotated in the plots. (C) Horizontal lollipop plot showing effect sizes (beta value) for each significant SNP.

(TIF)

pone.0344479.s002.tif (486.1KB, tif)
S3 Fig. Proportional odds assumption diagnostics checks.

(A) Nominal test and scale test assessing the proportional odds assumption (PO). The heatmap shows the statistical significance obtained by these two tests for each of the modeled sleep traits (y-axis) and each predictor/covariate included in the models (x-axis). Color map corresponds to p-value. * = p < 0.05, ** = p < 0.001, *** = p < 0.0001. (B) Predicted cumulative logits for each coffee group plotted across the thresholds of each sleep variable. A roughly constant vertical separation between coffee groups across thresholds indicates that the PO holds in logit-space. In the present analysis, some changes in separation are observed, pointing to a possible violation of PO. (C) Threshold-specific odds ratios (ORs) obtained by fitting a partial proportional odds model. A large spread in ORs would indicate statistical non-proportionality. I the present analysis, ORs follow similar patterns. (D) Predicted category probabilities (y-axis) across coffee consumption groups (x-axis). Categories of each sleep variable are color-coded (see figure legend). Predicted-probability differences are small across categories, indicating that the PO violation is not practically important.

(TIF)

pone.0344479.s003.tif (1.4MB, tif)
S4 Fig. Sensitivity analysis investigating non-linear patterns in data.

Plots showing predicted category probabilities or predicted counts. Four different models designs were tested: with coffee consumption divided by the original 10 questionnaire categories (leftmost column), with coffee consumption divided by four aggregated categories (second column from the left), with coffee consumption as a continuous variable based on numeric approximate midpoints for each outcome category (second column from the right), and with coffee consumption modeled continuously using restricted cubic splines (rightmost column). For categorical sleep outcomes, cumulative link models were fitted (leftmost and second to left columns, first seven rows). For count-like sleep score and ESS, quasi-Poisson generalized linear models were fitted (rightmost and second to right columns, last two rows).

(TIF)

pone.0344479.s004.tif (641.1KB, tif)
S5 Fig. Variable importance in regression models.

Variable importance of each factor (y-axis) for each fitted regression model (x-axis), assessed by analysis of variance (ANOVA). * = p < 0.05, ** = p < 0.001, *** = p < 0.0001. Color code represents the Type II Wald Chi-square statistics, where higher value (darker color) corresponds to a stronger contribution of the variable to the model.

(TIF)

pone.0344479.s005.tif (407.2KB, tif)
S6 Fig. Interactions analyses.

Investigation of potential effect modification by sex, age and BMI. (A) Assessment of improved model fit when introducing an interaction term between coffee consumption and age, sex and BMI, respectively (x-axis). This was performed for each of the outcomes studied (y-axis). For ordinal models, a likelihood ratio test was used. For quasi-Poisson models, an F-test was used. Significant results (p < 0.05) are highlighted in blue. (B) Adjusted predicted category probabilities (y-axis) showing the effect of coffee consumption level on difficulty to fall asleep, stratified by BMI (x-axis). (C) Adjusted predicted counts (y-axis) showing the effect of coffee consumption level on ESS score, stratified by age (x-axis). (D) Adjusted predicted category probabilities (y-axis) showing the effect of coffee consumption level (x-axis) on frequency waking up during night, stratified by sex.

(TIF)

pone.0344479.s006.tif (433.6KB, tif)
S1 Table. Details on each SCAPIS variable selected for the present study.

Details on each SCAPIS variable selected for the present study, including method of data collection, questionnaire question wording and possible answers, and how the variable was used in the present study.

(DOCX)

pone.0344479.s007.docx (49.9KB, docx)
S2 Table. Significant associated SNPs obtained by GWAS on coffee consumption.

Columns from left to right: name of the SNP, the chromosome on which the SNP is located, the single nucleotide position of the SNP, the allele that was tested in the analysis, the alternative allele, mean allele frequency of the tested allele, the effect size estimate (beta) of the SNP, the standard error (se) of the effect size estimate, and the statistical significance (p-value) for the association.

(DOCX)

pone.0344479.s008.docx (54.7KB, docx)
S3 Table. Patterns of habitual coffee consumption by sleep factors and ESS.

(DOCX)

pone.0344479.s009.docx (48.5KB, docx)
S4 Table. Sensitivity analysis results for assessing non-linearity.

Four models were fitted: Model 1 (M1) with coffee consumption as a four-category variable, Model 2 (M2) with coffee consumption as the original questionnaire categories, Model 3 (M3) with coffee consumption modeled as a continuous variable using numeric approximate midpoints for each outcome category under the assumption of a linear association, and Model 4 (M4) with coffee consumption modeled continuously using restricted cubic splines to allow for non-linear associations. M1 and M2 were compared to test whether collapsing the original coffee consumption categories into 4 groups causes meaningful information loss. M3 and M4 were compared to assess whether a model that allows non-linearity fits better to the data. Additional model metrics were also calculated, including Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), and Nagelkerke pseudo R-squared (R2). For quasi-Poisson models, Quasi-Akaike Information Criterion (QAIC) and deviance are given.

(DOCX)

pone.0344479.s010.docx (43.5KB, docx)
S5 Table. Adjusted predicted probabilities.

Adjusted predicted probabilities for sleep categories based on coffee consumption level and signed absolute differences between coffee consumption groups. For sleep score and ESS score, values are given as predicted counts.

(DOCX)

pone.0344479.s011.docx (47.6KB, docx)
S1 File. Additional methods details.

(PDF)

pone.0344479.s012.pdf (104.4KB, pdf)

Data Availability

For access to pseudonymized SCAPIS phenotype data and genotype data, an ethical approval from the Swedish Ethical Review Board (Etikprövningsmyndigheten) is required, as well as an approval from the SCAPIS Data access board (https://www.scapis.org/data-access). SCAPIS data is available to be applied for by researchers based in Sweden or international researchers in collaboration with a researcher based in Sweden. Furthermore, regarding international data sharing, SCAPIS data is subject to confidentiality under Chapter 24, Section 8 of the Swedish Public Access to Information and Secrecy Act (OSL), and Section 7 of the Public Access to Information and Secrecy Ordinance. The analysis code used in this study is available at GitHub (https://github.com/SimonSoderholm/CoffeeSleep-Analysis) and archived on Zenodo (DOI: 10.5281/zenodo.18400906).

Funding Statement

C.C is a fellow and F.I is an associated clinical fellow of Wallenberg Center for Molecular Medicine (WCMM) and receives financial support from the Knut and Alice Wallenberg Foundation. C.C is also supported by funding from the Swedish Research Council, Vetenskapsrådet (2021-03075 and 2023-01898) and Cancerfonden (CAN 2018/542 and 21 1572 Pj). This work was also financed by Dr P Håkanssons Foundation, and the SciLifeLab & Wallenberg Data Driven Life Science Program (KAW 2020.0239).

References

  • 1.Worldmetrics.org. Most popular drinks in the world statistics: market data report 2024. Accessed 2024 August 23. https://worldmetrics.org/most-popular-drinks-in-the-world/
  • 2.Gardiner C, Weakley J, Burke LM, Roach GD, Sargent C, Maniar N, et al. The effect of caffeine on subsequent sleep: a systematic review and meta-analysis. Sleep Med Rev. 2023;69:101764. doi: 10.1016/j.smrv.2023.101764 [DOI] [PubMed] [Google Scholar]
  • 3.Biaggioni I, Paul S, Puckett A, Arzubiaga C. Caffeine and theophylline as adenosine receptor antagonists in humans. J Pharmacol Exp Ther. 1991;258(2):588–93. doi: 10.1016/s0022-3565(25)20409-8 [DOI] [PubMed] [Google Scholar]
  • 4.Reichert CF, Deboer T, Landolt H-P. Adenosine, caffeine, and sleep-wake regulation: state of the science and perspectives. J Sleep Res. 2022;31(4):e13597. doi: 10.1111/jsr.13597 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Huang Z-L, Qu W-M, Eguchi N, Chen J-F, Schwarzschild MA, Fredholm BB, et al. Adenosine A2A, but not A1, receptors mediate the arousal effect of caffeine. Nat Neurosci. 2005;8(7):858–9. doi: 10.1038/nn1491 [DOI] [PubMed] [Google Scholar]
  • 6.Cornelis MC, Monda KL, Yu K, Paynter N, Azzato EM, Bennett SN, et al. Genome-wide meta-analysis identifies regions on 7p21 (AHR) and 15q24 (CYP1A2) as determinants of habitual caffeine consumption. PLoS Genet. 2011;7(4):e1002033. doi: 10.1371/journal.pgen.1002033 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 7.Sulem P, Gudbjartsson DF, Geller F, Prokopenko I, Feenstra B, Aben KKH, et al. Sequence variants at CYP1A1-CYP1A2 and AHR associate with coffee consumption. Hum Mol Genet. 2011;20(10):2071–7. doi: 10.1093/hmg/ddr086 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Amin N, Byrne E, Johnson J, Chenevix-Trench G, Walter S, Nolte IM, et al. Genome-wide association analysis of coffee drinking suggests association with CYP1A1/CYP1A2 and NRCAM. Mol Psychiatry. 2012;17(11):1116–29. doi: 10.1038/mp.2011.101 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Gu L, Gonzalez FJ, Kalow W, Tang BK. Biotransformation of caffeine, paraxanthine, theobromine and theophylline by cDNA-expressed human CYP1A2 and CYP2E1. Pharmacogenetics. 1992;2(2):73–7. doi: 10.1097/00008571-199204000-00004 [DOI] [PubMed] [Google Scholar]
  • 10.Perera V, Gross AS, McLachlan AJ. Measurement of CYP1A2 activity: a focus on caffeine as a probe. Curr Drug Metab. 2012;13(5):667–78. doi: 10.2174/1389200211209050667 [DOI] [PubMed] [Google Scholar]
  • 11.Kot M, Daniel WA. The relative contribution of human cytochrome P450 isoforms to the four caffeine oxidation pathways: an in vitro comparative study with cDNA-expressed P450s including CYP2C isoforms. Biochem Pharmacol. 2008;76(4):543–51. doi: 10.1016/j.bcp.2008.05.025 [DOI] [PubMed] [Google Scholar]
  • 12.Nukaya M, Bradfield CA. Conserved genomic structure of the Cyp1a1 and Cyp1a2 loci and their dioxin responsive elements cluster. Biochem Pharmacol. 2009;77(4):654–9. doi: 10.1016/j.bcp.2008.10.026 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Nukaya M, Moran S, Bradfield CA. The role of the dioxin-responsive element cluster between the Cyp1a1 and Cyp1a2 loci in aryl hydrocarbon receptor biology. Proc Natl Acad Sci U S A. 2009;106(12):4923–8. doi: 10.1073/pnas.0809613106 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Sateia MJ, Buysse DJ, Krystal AD, Neubauer DN, Heald JL. Clinical practice guideline for the pharmacologic treatment of chronic insomnia in adults: an american academy of sleep medicine clinical practice guideline. J Clin Sleep Med. 2017;13(2):307–49. doi: 10.5664/jcsm.6470 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Chart: the countries most addicted to coffee. Statista. Accessed 2024 September 17. https://www.statista.com/chart/8602/top-coffee-drinking-nations/
  • 16.Bergström G, Berglund G, Blomberg A, Brandberg J, Engström G, Engvall J, et al. The Swedish CArdioPulmonary BioImage Study: objectives and design. J Intern Med. 2015;278(6):645–59. doi: 10.1111/joim.12384 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17.Demura S, Aoki H, Mizusawa T, Soukura K, Noda M, Sato T. Gender differences in coffee consumption and its effects in young people. Food Nutr Sci. 2013;04(07):748–57. doi: 10.4236/fns.2013.47096 [DOI] [Google Scholar]
  • 18.Lee A, Lim W, Kim S, Khil H, Cheon E, An S, et al. Coffee intake and obesity: a meta-analysis. Nutrients. 2019;11(6):1274. doi: 10.3390/nu11061274 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Swanson JA, Lee JW, Hopp JW. Caffeine and nicotine: a review of their joint use and possible interactive effects in tobacco withdrawal. Addict Behav. 1994;19(3):229–56. doi: 10.1016/0306-4603(94)90027-2 [DOI] [PubMed] [Google Scholar]
  • 20.Bjørngaard JH, Nordestgaard AT, Taylor AE, Treur JL, Gabrielsen ME, Munafò MR, et al. Heavier smoking increases coffee consumption: findings from a Mendelian randomization analysis. Int J Epidemiol. 2017;46(6):1958–67. doi: 10.1093/ije/dyx147 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Althubaiti A. Information bias in health research: definition, pitfalls, and adjustment methods. J Multidiscip Healthc. 2016;9:211–7. doi: 10.2147/JMDH.S104807 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Sun L, Youn HD, Loh C, Stolow M, He W, Liu JO. Cabin 1, a negative regulator for calcineurin signaling in T lymphocytes. Immunity. 1998;8(6):703–11. doi: 10.1016/s1074-7613(00)80575-0 [DOI] [PubMed] [Google Scholar]
  • 23.Nakai Y, Horiuchi J, Tsuda M, Takeo S, Akahori S, Matsuo T, et al. Calcineurin and its regulator sra/DSCR1 are essential for sleep in Drosophila. J Neurosci. 2011;31(36):12759–66. doi: 10.1523/JNEUROSCI.1337-11.2011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Tomita J, Mitsuyoshi M, Ueno T, Aso Y, Tanimoto H, Nakai Y, et al. Pan-neuronal knockdown of calcineurin reduces sleep in the fruit fly, Drosophila melanogaster. J Neurosci. 2011;31(37):13137–46. doi: 10.1523/JNEUROSCI.5860-10.2011 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Yu J, Wang TV, Gao R, Li C, Liu H, Yang L, et al. Biochemical and chemical biological approaches to mammalian sleep: roles of calcineurin in site-specific dephosphorylation and sleep regulation. openRxiv. 2023. 10.1101/2023.06.19.545643 [DOI]
  • 26.Rétey JV, Adam M, Khatami R, Luhmann UFO, Jung HH, Berger W, et al. A genetic variation in the adenosine A2A receptor gene (ADORA2A) contributes to individual sensitivity to caffeine effects on sleep. Clin Pharmacol Ther. 2007;81(5):692–8. doi: 10.1038/sj.clpt.6100102 [DOI] [PubMed] [Google Scholar]
  • 27.Domaszewski P, Konieczny M, Pakosz P, Matuska J, Skorupska E, Santafé MM. Obesity as an influencing factor for the occurrence of caffeine-induced effects in women. Nutr Metab Cardiovasc Dis. 2025;35(4):103836. doi: 10.1016/j.numecd.2024.103836 [DOI] [PubMed] [Google Scholar]
  • 28.Bonnet MH, Arand DL. Caffeine use as a model of acute and chronic insomnia. Sleep. 1992;15(6):526–36. [PubMed] [Google Scholar]
  • 29.Weibel J, Lin Y-S, Landolt H-P, Kistler J, Rehm S, Rentsch KM, et al. The impact of daily caffeine intake on nighttime sleep in young adult men. Sci Rep. 2021;11(1):4668. doi: 10.1038/s41598-021-84088-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Conlay LA, Conant JA, deBros F, Wurtman R. Caffeine alters plasma adenosine levels. Nature. 1997;389(6647):136. doi: 10.1038/38160 [DOI] [PubMed] [Google Scholar]
  • 31.Johansson B, Georgiev V, Lindström K, Fredholm BB. A1 and A2A adenosine receptors and A1 mRNA in mouse brain: effect of long-term caffeine treatment. Brain Res. 1997;762(1–2):153–64. doi: 10.1016/s0006-8993(97)00378-8 [DOI] [PubMed] [Google Scholar]
  • 32.Fredholm BB. Adenosine actions and adenosine receptors after 1 week treatment with caffeine. Acta Physiol Scand. 1982;115(2):283–6. doi: 10.1111/j.1748-1716.1982.tb07078.x [DOI] [PubMed] [Google Scholar]
  • 33.Shi D, Nikodijević O, Jacobson KA, Daly JW. Chronic caffeine alters the density of adenosine, adrenergic, cholinergic, GABA, and serotonin receptors and calcium channels in mouse brain. Cell Mol Neurobiol. 1993;13(3):247–61. doi: 10.1007/BF00733753 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Boulenger JP, Patel J, Post RM, Parma AM, Marangos PJ. Chronic caffeine consumption increases the number of brain adenosine receptors. Life Sci. 1983;32(10):1135–42. doi: 10.1016/0024-3205(83)90119-4 [DOI] [PubMed] [Google Scholar]
  • 35.Santos CL, Bobermin LD, Quincozes-Santos A. Aging changes the expression of adenosine receptors, insulin-like growth factor 1 (IGF1), and hypoxia-inducible factor 1α (HIF1α) in hypothalamic astrocyte cultures. Aging Brain. 2023;5:100104. doi: 10.1016/j.nbas.2023.100104 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Temido-Ferreira M, Ferreira DG, Batalha VL, Marques-Morgado I, Coelho JE, Pereira P, et al. Age-related shift in LTD is dependent on neuronal adenosine A2A receptors interplay with mGluR5 and NMDA receptors. Mol Psychiatry. 2020;25(8):1876–900. doi: 10.1038/s41380-018-0110-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 37.Antonio J, Newmire DE, Stout JR, Antonio B, Gibbons M, Lowery LM, et al. Common questions and misconceptions about caffeine supplementation: what does the scientific evidence really show?. J Int Soc Sports Nutr. 2024;21(1):2323919. doi: 10.1080/15502783.2024.2323919 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Zhang Y, Yang W, Xue Y, Hou D, Chen S, Xu Z, et al. Timing matters: time of day impacts the ergogenic effects of caffeine-a narrative review. Nutrients. 2024;16(10):1421. doi: 10.3390/nu16101421 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Theorell-Haglöw J, Ulander M, Brandberg J, Claesson M, Franklin KA, Hedner J, et al. What are the important risk factors for excessive daytime sleepiness in a population-based cohort?. J Sleep Res. 2025;34(4):e14449. doi: 10.1111/jsr.14449 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Christensen SE, Möller E, Bonn SE, Ploner A, Wright A, Sjölander A, et al. Two new meal- and web-based interactive food frequency questionnaires: validation of energy and macronutrient intake. J Med Internet Res. 2013;15(6):e109. doi: 10.2196/jmir.2458 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Partinen M, Gislason T. Basic Nordic Sleep Questionnaire (BNSQ): a quantitated measure of subjective sleep complaints. J Sleep Res. 1995;4(S1):150–5. doi: 10.1111/j.1365-2869.1995.tb00205.x [DOI] [PubMed] [Google Scholar]
  • 42.Fan M, Sun D, Zhou T, Heianza Y, Lv J, Li L, et al. Sleep patterns, genetic susceptibility, and incident cardiovascular disease: a prospective study of 385 292 UK biobank participants. Eur Heart J. 2020;41(11):1182–9. doi: 10.1093/eurheartj/ehz849 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Yao Y, Jia Y, Wen Y, Cheng B, Cheng S, Liu L, et al. Genome-wide association study and genetic correlation scan provide insights into its genetic architecture of sleep health score in the UK biobank cohort. Nat Sci Sleep. 2022;14:1–12. doi: 10.2147/NSS.S326818 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 44.Johns MW. A new method for measuring daytime sleepiness: the Epworth sleepiness scale. Sleep. 1991;14(6):540–5. doi: 10.1093/sleep/14.6.540 [DOI] [PubMed] [Google Scholar]
  • 45.Tierney N, Cook D. Expanding tidy data principles to facilitate missing data exploration, visualization and assessment of imputations. J Stat Soft. 2023;105(7). doi: 10.18637/jss.v105.i07 [DOI] [Google Scholar]
  • 46.Josse J, Husson F. missMDA: a package for handling missing values in multivariate data analysis. J Stat Soft. 2016;70(1). doi: 10.18637/jss.v070.i01 [DOI] [Google Scholar]
  • 47.Christensen RHB. Ordinal regression models for ordinal data. 2023. https://cran.r-project.org/package=ordinal
  • 48.Lüdecke D. ggeffects: tidy data frames of marginal effects from regression models. Soft Rev Rep Arch. 2018;3(26):772. doi: 10.21105/joss.00772 [DOI] [Google Scholar]
  • 49.Chang CC, Chow CC, Tellier LC, Vattikuti S, Purcell SM, Lee JJ. Second-generation PLINK: rising to the challenge of larger and richer datasets. Gigascience. 2015;4:7. doi: 10.1186/s13742-015-0047-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Juliusdottir T. topr: an R package for viewing and annotating genetic association results. BMC Bioinformatics. 2023;24(1):268. doi: 10.1186/s12859-023-05301-4 [DOI] [PMC free article] [PubMed] [Google Scholar]

Decision Letter 0

Julio Alejandro Henriques da Costa

3 Oct 2025

Dear Dr. Söderholm,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Nov 17 2025 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org . When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols . Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols .

We look forward to receiving your revised manuscript.

Kind regards,

Julio Alejandro Henriques Castro da Costa

Academic Editor

PLOS ONE

Journal requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Thank you for stating the following financial disclosure:

[C.C is a fellow and F.I is an associated clinical fellow of Wallenberg Center for Molecular Medicine (WCMM) and receives financial support from the Knut and Alice Wallenberg Foundation. C.C is also supported by funding from the Swedish Research Council, Vetenskapsrådet (2021-03075 and 2023-01898) and Cancerfonden (CAN 2018/542 and 21 1572 Pj). This work was also financed by Dr P Håkanssons Foundation, and the SciLifeLab & Wallenberg Data Driven Life Science Program (KAW 2020.0239).].

Please state what role the funders took in the study.  If the funders had no role, please state: "The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript."

If this statement is not correct you must amend it as needed.

Please include this amended Role of Funder statement in your cover letter; we will change the online submission form on your behalf.

3. We note that you have indicated that there are restrictions to data sharing for this study. For studies involving human research participant data or other sensitive data, we encourage authors to share de-identified or anonymized data. However, when data cannot be publicly shared for ethical reasons, we allow authors to make their data sets available upon request. For information on unacceptable data access restrictions, please see http://journals.plos.org/plosone/s/data-availability#loc-unacceptable-data-access-restrictions.

Before we proceed with your manuscript, please address the following prompts:

a) If there are ethical or legal restrictions on sharing a de-identified data set, please explain them in detail (e.g., data contain potentially identifying or sensitive patient information, data are owned by a third-party organization, etc.) and who has imposed them (e.g., a Research Ethics Committee or Institutional Review Board, etc.). Please also provide contact information for a data access committee, ethics committee, or other institutional body to which data requests may be sent.

b) If there are no restrictions, please upload the minimal anonymized data set necessary to replicate your study findings to a stable, public repository and provide us with the relevant URLs, DOIs, or accession numbers. Please see http://www.bmj.com/content/340/bmj.c181.long for guidelines on how to de-identify and prepare clinical data for publication. For a list of recommended repositories, please see https://journals.plos.org/plosone/s/recommended-repositories. You also have the option of uploading the data as Supporting Information files, but we would recommend depositing data directly to a data repository if possible.

Please update your Data Availability statement in the submission form accordingly.

4. Your ethics statement should only appear in the Methods section of your manuscript. If your ethics statement is written in any section besides the Methods, please move it to the Methods section and delete it from any other section. Please ensure that your ethics statement is included in your manuscript, as the ethics statement entered into the online submission form will not be published alongside your manuscript.

5. If the reviewer comments include a recommendation to cite specific previously published works, please review and evaluate these publications to determine whether they are relevant and should be cited. There is no requirement to cite these works unless the editor has indicated otherwise.

Additional Editor Comments (if provided):

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

Reviewer #1: Partly

Reviewer #2: Yes

**********

2. Has the statistical analysis been performed appropriately and rigorously? -->?>

Reviewer #1: No

Reviewer #2: I Don't Know

**********

3. Have the authors made all data underlying the findings in their manuscript fully available??>

The PLOS Data policy

Reviewer #1: No

Reviewer #2: No

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English??>

Reviewer #1: Yes

Reviewer #2: Yes

**********

Reviewer #1: Dear Editor and authors,

Thank you for the opportunity to review this manuscript. The authors investigate the association between habitual coffee consumption and sleep quality/daytime sleepiness in a large Swedish cohort (SCAPIS, n≈25,000), complemented by genetic validation of self-reported coffee intake. The topic is timely and relevant, given the widespread consumption of caffeine and its disputed long-term effects on sleep. The sample size and the genetic analysis are strengths. However, several methodological and reporting issues limit the interpretability and impact of the study. Below I provide my detailed comments.

Mayor concerns:

1. Study design and causal inference

The cross-sectional design is suitable for descriptive associations but inherently limited for causal inference. The discussion should more explicitly acknowledge that the analyses cannot establish long-term effects of coffee on sleep or sleepiness.

2. Handling of missing data

The authors excluded all participants with any missing data (complete-case analysis). This approach may introduce selection bias if data are not missing completely at random. A description of the missingness patterns and, ideally, multiple imputation or sensitivity analyses are required.

3. Exposure measurement (coffee consumption)

Coffee intake was captured through a food frequency questionnaire and grouped into four categories. This grouping collapses possible non-linear associations (e.g., U-shaped curves) and may obscure dose–response effects.

The “high” group is labeled as 4–5 cups/day, but it seems to include “≥5/day” as well; please clarify.

No information is available on decaffeinated coffee, timing of consumption (morning vs. evening), or other caffeine sources (energy drinks, sodas). These are important determinants of caffeine’s effect on sleep and should at least be discussed.

4. Sleep variables: description and use

Seven items were collected (hours of sleep, sleep quality, sleep latency, nocturnal awakenings, early awakening, reflux, loud snoring). Most were rated on 0–4 Likert scales, but “hours of sleep” was recorded on a different scale.

The authors constructed a composite “sleep score” summing six items and *excluded hours of sleep*. They justify this on grounds of different scaling and considering duration as preference rather than quality. While defensible, sleep duration is a central dimension of sleep health and strongly linked to sleepiness. Excluding it weakens the construct validity of the score.

For robustness, I strongly recommend sensitivity analyses that incorporate hours of sleep (after standardization), or alternatively provide two scores: “sleep quality” (without duration) and “sleep health” (with duration).

Furthermore, the methods should describe how hours of sleep were categorized or treated in models. This is insufficiently specified.

5. Statistical modeling

Use of cumulative link models for ordinal sleep variables and quasi-Poisson regression for ESS and the composite score is appropriate. However, the manuscript does not report diagnostic checks, particularly the proportional odds assumption in ordinal models. This is a major omission.

ESS is bounded (0–24) and often skewed. Modeling it as quasi-Poisson is unusual; linear robust regression or negative binomial could be tested in sensitivity analyses. Categorizing ESS (≤10, 11–12, ≥13) might also aid interpretability.

Multiple comparisons: with several sleep factors and models tested, there is a risk of type I error inflation. The authors should clarify whether they applied any correction or provide justification for not doing so.

6. Clinical relevance versus statistical significance

With n>25,000, even trivial associations reached p<0.05 (e.g., Kendall’s tau = –0.045). The manuscript must emphasize that effect sizes are extremely small and not clinically meaningful. Reporting standardized effect sizes and absolute risk differences would improve clarity.

7. Confounding and covariates

The DAG approach to select confounders is commendable. However, important potential confounders were omitted, notably medical comorbidities and use of sleep medications. These could substantially bias associations and should be at least acknowledged more fully.

Interaction analyses (e.g., by sex, age, BMI) would be informative.

8. Genetic analysis

The GWAS replicated known loci (AHR, CYP1A1/2), which validates self-reported coffee intake. The stratification by rs762551 (fast vs. slow metabolizers) is interesting but effect sizes were marginal.

The earlier Mendelian randomization approach has been removed, which is reasonable given prior concerns, but this reduces causal inference. The discussion should acknowledge this explicitly.

9. Data transparency and reproducibility

Data access requires approvals from SCAPIS, which is understandable, but limits reproducibility. The authors should at least ensure that full analysis code and derived data tables are made openly available.

minor concerns:

1. Tables are dense and difficult to interpret; simplifying presentation or providing supplementary stratified tables would help.

2. The discussion repeats background literature without sufficient integration into the present findings. More emphasis on implications for clinical practice and public health is encouraged.

3. Figures could be streamlined; currently some are overly complex for the message conveyed.

4. The manuscript would benefit from clearer differentiation between “sleep quality” and “sleep health,” to avoid confusion for readers.

The manuscript addresses a relevant question with a strong dataset, but the methodology and interpretation require substantial improvement before being suitable for publication in a high-impact journal.

Reviewer #2: Given the significant limitations in the study (and the limitations in interpretation of the title terms "sleep quality and daytime sleepiness"), the title might be amended to include novel findings in the caffeine-associated GWAS that might stimulate further research.

Major limitation to use of term "sleepiness" in this paper. Sleepiness is the tendency to fall asleep and is measured as mean sleep latency. The correlation between the Epworth Sleepiness Scale and mean sleep latency is relatively poor with r=0.37 (Chervin et al. 1997). Use of this scale as a quantitative measure of sleepiness is problematic. Better to use the term, "subjective estimate of sleepiness."

The sleep quality score has not been validated against objective measurement of sleep quality, as implied. Reference 41, for validation of the "sleep quality score," derived from the Basic Nordic Sleep Questionnaire, simply refers to reference 40 for validation and can be omitted. It should be noted that in reference 40, the validation of the "sleep quality score" is for cardiovascular disease and it has not been validated with polysomnography as a measure of quality of sleep.

Accuracy of a subject's perceptions of sleep onset and duration can vary widely with actual measurement. As the authors note, caffeine has an effect on cognitive function and therefore, not surprisingly, caffeine consumption distorts one's perception of sleep and sleepiness (e.g., Schlichtiger et al., 2025). Effects of caffeine seem to further confound the already loose relationships among caffeine consumption, subjective estimates of sleepiness and sleep quality (questionnaires), and objective measurements of sleepiness and sleep quality (polysomnography).

The manuscript should be revised to reflect these limitations. I.e., "Coffee intake shows low association with [subjective estimates] of sleep or daytime sleepiness"

Similarlly - Line 166 "Likewise and confirming the validity of this metric...," should be softened to "supporting the validity...." or "supporting the use...."

At this northern latitude, did time of year significantly affect estimated coffee consumption or subjective estimates of sleepiness or sleep quality?

Line 189 - Was BMI a better correlate for loud snoring than coffee consumption? Is seasonal sleep and sleepiness and caffeine consumption another uncontrolled variable in interpretation?

Terms need to be sufficiently defined to eliminate the apparent discrepancy in conclusion of line 183 and line 191. 183 - "This relationship was reversed with increased coffee consumption, where high consumption was associated with better sleep quality..." and line 191 - "there was a slight association between higher coffee consumption and lower overall sleep score." (What is the difference between the terms "sleep quality" and "sleep score." The methods only define a "sleep quality score.") As written, these lines seem to be contradictory.

Line 201 - "Stress" correlates well with subjective estimates of sleep quality and sleepiness; perhaps the methods section could include more discussion of how this variable was determined.

Prior studies suggest slow metabolizers suffer more hyperglycemia, hypertension and MI. Further, the "Sleep quality score" has correlated with cardiovascular events.... I do not appreciate correlation among slow and fast metabolizers and usual sleep complaints associated with cardiovascular risk.

OVERALL, recommend de-emphasize negative results (for sleep and sleepiness) and emphasize novel (GWAS) findings.

**********

what does this mean? ). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy

Reviewer #1: Yes: Carlos Ernesto Bolanos Almeid

Reviewer #2: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/ . PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org . Please note that Supporting Information files do not need this step.

PLoS One. 2026 Mar 9;21(3):e0344479. doi: 10.1371/journal.pone.0344479.r003

Author response to Decision Letter 1


30 Jan 2026

We thank the editor and reviewers for their careful assessment of our work and for the opportunity to revise and improve our manuscript. Please find attached to the re-submission a separate file with our detailed response to all the editor's and reviewer's comments.

Attachment

Submitted filename: 20260130_Response_to_Reviewers_PONE.docx

Decision Letter 1

Julio Alejandro Henriques da Costa

23 Feb 2026

Habitual coffee consumption poorly correlates with sleep quality and daytime sleepiness: a cross-sectional study

PONE-D-25-44514R1

Dear Dr. Söderholm,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice will be generated when your article is formally accepted. Please note, if your institution has a publishing partnership with PLOS and your article meets the relevant criteria, all or part of your publication costs will be covered. Please make sure your user information is up-to-date by logging into Editorial Manager at Editorial Manager®  and clicking the ‘Update My Information' link at the top of the page. For questions related to billing, please contact billing support .

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Julio Alejandro Henriques Castro da Costa

Academic Editor

PLOS One

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

Reviewer #1: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions??>

Reviewer #1: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously? -->?>

Reviewer #1: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available??>

The PLOS Data policy

Reviewer #1: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English??>

Reviewer #1: Yes

**********

Reviewer #1: Thank you very much for the opportunity to evaluate and review the changes and adjustments made to the article; they seem correct and complete to me.

**********

what does this mean? ). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy

Reviewer #1: Yes: Carlos Ernesto Bolanos-Almeida MD MsC

**********

Acceptance letter

Julio Alejandro Henriques da Costa

PONE-D-25-44514R1

PLOS One

Dear Dr. Söderholm,

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS One. Congratulations! Your manuscript is now being handed over to our production team.

At this stage, our production department will prepare your paper for publication. This includes ensuring the following:

* All references, tables, and figures are properly cited

* All relevant supporting information is included in the manuscript submission,

* There are no issues that prevent the paper from being properly typeset

You will receive further instructions from the production team, including instructions on how to review your proof when it is ready. Please keep in mind that we are working through a large volume of accepted articles, so please give us a few days to review your paper and let you know the next and final steps.

Lastly, if your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

You will receive an invoice from PLOS for your publication fee after your manuscript has reached the completed accept phase. If you receive an email requesting payment before acceptance or for any other service, this may be a phishing scheme. Learn how to identify phishing emails and protect your accounts at https://explore.plos.org/phishing.

If we can help with anything else, please email us at customercare@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Dr. Julio Alejandro Henriques Castro da Costa

Academic Editor

PLOS One

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Fig. Data missingness analysis.

    (A) Heatmap showing missingness patterns for each variable (x-axis) across coffee consumption levels (y-axis) before aggregation of coffee consumption into fewer groups. Values in each cell corresponds to percentage of missing values. (B) Heatmap showing Pearson correlation of missing values between all variables. The color map corresponds to the Pearson correlation coefficient. (C) Schematic overview of the procedure to assess the efficiency and accuracy of the data imputation, using an overimputation procedure. (D) Horizontal bar plot showing the mean accuracy of overimputed values. A value of 1 corresponds to perfect accuracy. (E) Horizontal bar plot showing the ratio between overimputation accuracy and random guessing. Values close to 1 indicate that that the imputation is not better than random guessing.

    (TIF)

    pone.0344479.s001.tif (1.2MB, tif)
    S2 Fig. Additional GWAS results overview and associations at chromosome 22.

    (A) Manhattan plot showing the p-values of the entire GWAS on a genomic scale, for coffee consumption. Blue points represent individual SNPs tested in the analysis. A p-value threshold of 5e-08 was used for determining significance (red-colored horizontal dashed line). (B) Region plot showing zoomed-in view at chromosome 22. Blue points represent individual SNPs. A p-value threshold of 5e-08 was used for determining significance (red-colored horizontal dashed line). Top significantly associated SNPs at each of the identified loci have been annotated in the plots. (C) Horizontal lollipop plot showing effect sizes (beta value) for each significant SNP.

    (TIF)

    pone.0344479.s002.tif (486.1KB, tif)
    S3 Fig. Proportional odds assumption diagnostics checks.

    (A) Nominal test and scale test assessing the proportional odds assumption (PO). The heatmap shows the statistical significance obtained by these two tests for each of the modeled sleep traits (y-axis) and each predictor/covariate included in the models (x-axis). Color map corresponds to p-value. * = p < 0.05, ** = p < 0.001, *** = p < 0.0001. (B) Predicted cumulative logits for each coffee group plotted across the thresholds of each sleep variable. A roughly constant vertical separation between coffee groups across thresholds indicates that the PO holds in logit-space. In the present analysis, some changes in separation are observed, pointing to a possible violation of PO. (C) Threshold-specific odds ratios (ORs) obtained by fitting a partial proportional odds model. A large spread in ORs would indicate statistical non-proportionality. I the present analysis, ORs follow similar patterns. (D) Predicted category probabilities (y-axis) across coffee consumption groups (x-axis). Categories of each sleep variable are color-coded (see figure legend). Predicted-probability differences are small across categories, indicating that the PO violation is not practically important.

    (TIF)

    pone.0344479.s003.tif (1.4MB, tif)
    S4 Fig. Sensitivity analysis investigating non-linear patterns in data.

    Plots showing predicted category probabilities or predicted counts. Four different models designs were tested: with coffee consumption divided by the original 10 questionnaire categories (leftmost column), with coffee consumption divided by four aggregated categories (second column from the left), with coffee consumption as a continuous variable based on numeric approximate midpoints for each outcome category (second column from the right), and with coffee consumption modeled continuously using restricted cubic splines (rightmost column). For categorical sleep outcomes, cumulative link models were fitted (leftmost and second to left columns, first seven rows). For count-like sleep score and ESS, quasi-Poisson generalized linear models were fitted (rightmost and second to right columns, last two rows).

    (TIF)

    pone.0344479.s004.tif (641.1KB, tif)
    S5 Fig. Variable importance in regression models.

    Variable importance of each factor (y-axis) for each fitted regression model (x-axis), assessed by analysis of variance (ANOVA). * = p < 0.05, ** = p < 0.001, *** = p < 0.0001. Color code represents the Type II Wald Chi-square statistics, where higher value (darker color) corresponds to a stronger contribution of the variable to the model.

    (TIF)

    pone.0344479.s005.tif (407.2KB, tif)
    S6 Fig. Interactions analyses.

    Investigation of potential effect modification by sex, age and BMI. (A) Assessment of improved model fit when introducing an interaction term between coffee consumption and age, sex and BMI, respectively (x-axis). This was performed for each of the outcomes studied (y-axis). For ordinal models, a likelihood ratio test was used. For quasi-Poisson models, an F-test was used. Significant results (p < 0.05) are highlighted in blue. (B) Adjusted predicted category probabilities (y-axis) showing the effect of coffee consumption level on difficulty to fall asleep, stratified by BMI (x-axis). (C) Adjusted predicted counts (y-axis) showing the effect of coffee consumption level on ESS score, stratified by age (x-axis). (D) Adjusted predicted category probabilities (y-axis) showing the effect of coffee consumption level (x-axis) on frequency waking up during night, stratified by sex.

    (TIF)

    pone.0344479.s006.tif (433.6KB, tif)
    S1 Table. Details on each SCAPIS variable selected for the present study.

    Details on each SCAPIS variable selected for the present study, including method of data collection, questionnaire question wording and possible answers, and how the variable was used in the present study.

    (DOCX)

    pone.0344479.s007.docx (49.9KB, docx)
    S2 Table. Significant associated SNPs obtained by GWAS on coffee consumption.

    Columns from left to right: name of the SNP, the chromosome on which the SNP is located, the single nucleotide position of the SNP, the allele that was tested in the analysis, the alternative allele, mean allele frequency of the tested allele, the effect size estimate (beta) of the SNP, the standard error (se) of the effect size estimate, and the statistical significance (p-value) for the association.

    (DOCX)

    pone.0344479.s008.docx (54.7KB, docx)
    S3 Table. Patterns of habitual coffee consumption by sleep factors and ESS.

    (DOCX)

    pone.0344479.s009.docx (48.5KB, docx)
    S4 Table. Sensitivity analysis results for assessing non-linearity.

    Four models were fitted: Model 1 (M1) with coffee consumption as a four-category variable, Model 2 (M2) with coffee consumption as the original questionnaire categories, Model 3 (M3) with coffee consumption modeled as a continuous variable using numeric approximate midpoints for each outcome category under the assumption of a linear association, and Model 4 (M4) with coffee consumption modeled continuously using restricted cubic splines to allow for non-linear associations. M1 and M2 were compared to test whether collapsing the original coffee consumption categories into 4 groups causes meaningful information loss. M3 and M4 were compared to assess whether a model that allows non-linearity fits better to the data. Additional model metrics were also calculated, including Akaike Information Criterion (AIC), Bayesian Information Criterion (BIC), and Nagelkerke pseudo R-squared (R2). For quasi-Poisson models, Quasi-Akaike Information Criterion (QAIC) and deviance are given.

    (DOCX)

    pone.0344479.s010.docx (43.5KB, docx)
    S5 Table. Adjusted predicted probabilities.

    Adjusted predicted probabilities for sleep categories based on coffee consumption level and signed absolute differences between coffee consumption groups. For sleep score and ESS score, values are given as predicted counts.

    (DOCX)

    pone.0344479.s011.docx (47.6KB, docx)
    S1 File. Additional methods details.

    (PDF)

    pone.0344479.s012.pdf (104.4KB, pdf)
    Attachment

    Submitted filename: 20250814_Response_to_Comments_PONE.docx

    pone.0344479.s013.docx (20.4KB, docx)
    Attachment

    Submitted filename: 20260130_Response_to_Reviewers_PONE.docx

    Data Availability Statement

    For access to pseudonymized SCAPIS phenotype data and genotype data, an ethical approval from the Swedish Ethical Review Board (Etikprövningsmyndigheten) is required, as well as an approval from the SCAPIS Data access board (https://www.scapis.org/data-access). SCAPIS data is available to be applied for by researchers based in Sweden or international researchers in collaboration with a researcher based in Sweden. Furthermore, regarding international data sharing, SCAPIS data is subject to confidentiality under Chapter 24, Section 8 of the Swedish Public Access to Information and Secrecy Act (OSL), and Section 7 of the Public Access to Information and Secrecy Ordinance. The analysis code used in this study is available at GitHub (https://github.com/SimonSoderholm/CoffeeSleep-Analysis) and archived on Zenodo (DOI: 10.5281/zenodo.18400906).


    Articles from PLOS One are provided here courtesy of PLOS

    RESOURCES