Abstract
Whereas the nature of the post-COVID condition following mild acute COVID-19 is increasingly well described in the literature, knowledge of its risk factors, and whether it can be predicted, remains limited. This study, conducted in Norway, uses individual-level register data from 214,667 SARS-CoV-2 infected individuals covering a range of demographic, socioeconomic factors, as well as cause-specific healthcare utilization in the years prior to infection to assess the risk of post-COVID complaints ≥3 months after testing positive. We find that the risk of post-COVID was higher among individuals who prior to infection had been diagnosed with psychological (OR = 2.12, 95% CI 1.84–2.44), respiratory (OR = 2.03, 95% CI 1.78–2.32), or general and unspecified health problems (OR = 1.78, 95% CI 1.52–2.09). To assess the predictability of post-COVID after mild initial disease, we use machine learning methods and find that pre-infection characteristics, combined with information on the SARS-CoV-2 virus type and vaccine status, to a considerable extent (AUC = 0.79, 95% CI 0.75–0.81) could predict the occurrence of post-COVID complaints in our sample.
Similar content being viewed by others
Introduction
An increased number of medical complaints following a mild SARS-CoV2 infection, frequently referred to as post-COVID or long COVID, has been reported in several studies1,2,3,4,5. The reported prevalence of post-COVID health complaints varies considerably, depending on its definition in terms of duration, the sample used (e.g., hospitalized or non-hospitalized), and method of measurement (e.g., self-report or register data), in the range of low single digits to well above 50 percent6,7. According to the WHO’s Delphi consensus, a post-COVID condition occurs if covid-like complaints are present 3 months after infection, lasts for at least 2 months, and cannot be explained by any other diagnosis8. Although the types of complaints vary, the most common phenotypes include shortness of breath, loss of taste or smell, brain fog and fatigue9,10,11,12.
While a large literature examines the prevalence of post-acute complaints13,14,15, less is known about the incidence of doctor-diagnosed post-COVID condition and how well it can be predicted for individuals based on the presence of individual risk factors or risk factors in combination12,16,17. For example, regarding demographic characteristics, a higher persistence of symptoms was found among women and a lower persistence among younger individuals4,6,12,18,19,20. The evidence regarding the role of socioeconomic characteristics, however, is mixed4,6. For example, in a retrospective matched cohort study of 486,149 individuals in the UK, there was an increased risk of 21% (aHR 1.21, 95% CI 1.10–1.34) among ethnic minorities, and a 11% higher risk among those most socioeconomically deprived (aHR 1.11, 95% CI 1.07–1.16)4. However, a study combining 10 UK longitudinal studies and electronic health records from primary care, find evidence suggesting a higher prevalence of post-COVID complaints among white and highly educated6. Other studies find no socioeconomic gradient in post-COVID health complaints21. Emerging evidence also suggests that pre-existing poor health increases the risk, with higher risks among individuals with asthma, obesity, and psychological problems4,6,18,19,20. To what extent such pre-existing health, socioeconomic, and sociodemographic characteristics when studied in combination can predict doctor-diagnosed post-COVID condition in accordance with the WHO definition is unclear.
Obtaining estimates of the incidence of the post-COVID condition, as well as being able to accurately predict the probability of doctor-diagnosed post-COVID condition, may also be important to prevent long-term illness, sick leave, and disability. For example, knowing upfront that an individual with COVID-19 is at heightened risk of post-COVID condition may aid clinicians to take early action to limit long-term consequences, e.g., through early referral to rehabilitation. Thus, we had the following two aims: (1) To assess the incidence and risk of doctor-diagnosed post-COVID condition for up to six months after positive test by characteristics of pre-existing poor health, socioeconomic and sociodemographic factors, and (2) to develop prediction models of doctor-diagnosed post-COVID condition using machine learning which combines detailed individual-level demographic, socioeconomic and health care utilization data.
Results
Descriptive statistics
Of 238,001 eligible participants, we included 214,667 individuals. Thus, 23,334 individuals were excluded due to missing on education or income, being hospitalized, or infected twice within 180 days (Supplementary Fig. 1). The mean (SD) age was 44.6 (9.8) years and 50% were women. In total, 0.42% (N = 908) were classified as having a post-COVID condition (main outcome). Among these participants, 206 (21%) were classified as experiencing post-COVID respiratory complaints, while 584 (60%) were classified as experiencing post-COVID fatigue (cf. Supplementary Table 1). Of the 206 individuals with post-COVID respiratory complaints, 191 (93%) were new onsets compared to the period between 2017 and 2019 (Supplementary Table 1). Similarly, out of the 584 individuals with fatigue, 444 (76%) had new onsets of fatigue complaints. Hence, for most participants these complaints were more likely to be due to the infection and not already preexisting conditions.
Table 1 presents descriptive statistics for the variables used in the main analysis, both for the whole sample and for each outcome group. Supplementary Fig. 2 shows that the majority of the included individuals had their pre-infection healthcare utilization measured approximately two years ago, and a smaller part had it measured zero to one year ago. Descriptive characteristics by pandemic period (based on virus dominance) showed that the pre-pandemic healthcare utilization was balanced across groups, i.e., not dependent on the time interval passing between the date of SARS-CoV-2 infection and registration of previous complaints/healthcare use (Supplementary Table 2).
Demographic, socioeconomic, and COVID-related risk factors
The strongest bivariate associations were found for female (OR = 2.17, 95% CI 1.89–2.50) and infection by with the Wuhan virus type (OR = 4.00, 95% CI 3.48–4.6) (Fig. 1). When adjusting for prior health care utilization (the multivariate models), the OR was reduced to 1.93 (95% CI 1.67–2.23) for women. When adjusting for prior health care utilization and differences in vaccination across the virus types, the OR for the Wuhan-virus was reduced to 2.27 (95% CI 1.90–2.71). Vaccination was strongly (negatively) associated with the post-COVID condition in the bivariate model (OR = 0.33, 95% CI 0.29–0.38), however, the association was not present in the multivariate model, which included virus types (aOR = 1.01, 95% CI 0.80–1.28).
Prior healthcare utilization risk factors
The strongest bivariate associations were found for Psychological (OR = 2.12, 95% CI 1.84–2.44), Respiratory (OR = 2.03, 95% CI 1.78–2.32) and General and unspecified (OR = 1.78, 95% CI 1.52–2.09) health problems. These findings imply that individuals who prior to the pandemic had a psychological diagnosis were approximately twice as likely to be classified with the post-COVID condition, compared to infected individuals without such prior diagnoses. When adjusting for demographic and socioeconomic factors, the strongest associations were found for Respiratory (aOR = 1.93, 95% CI 1.69–2.12), Psychological (aOR=1.81, 95% CI 1.57–2.09), and Digestive (aOR = 1.69, 95% CI 1.44–1.98) health problems. Approximately similar estimates were found in analyses of our secondary outcome measures (post-COVID respiratory complaints and post-COVID fatigue; Supplementary Figs. 3, 4). In additional robustness analysis (Supplementary Fig. 5), we recoded individuals with post-COVID anxiety and depression as non-post-COVID cases, the OR for Psychological health problems was then 1.78 (95% CI 1.53–2.08).
In the supplementary material we show that our main results were robust across different sample selections: including hospitalized individuals (Supplementary Fig. 6), including individuals with reinfection within 180 days (Supplementary Fig. 7), including individuals either hospitalized and/or reinfected within 180 days (Supplementary Fig. 8) and including individuals who were infected after the initial pandemic phase (Supplementary Fig. 9). While our main analysis excluded individuals who were hospitalized due to COVID-19, it should be noted that hospitalization due to COVID-19 was the strongest overall predictor of the post-COVID condition, with an OR = 7.36 (95% CI 6.07–8.91) in the bivariate model, but reduced to aOR = 3.98 (95% CI 3.26–4.85) when controlling for pre-pandemic health care utilization.
Prediction models
The LASSO and random forest both had an area under the curve (AUC) of ~0.78 (95% CI 0.740–0.806 for Random Forest; 0.745–0.810 95% CI for LASSO) (Fig. 2a). This is above moderate prediction performance, reflecting that our data to a considerable extent can predict post-COVID cases. Both models perform at the same level, reflecting that little could be gained by allowing for more non-linearities (complexity) within our set of covariates. In other words, a transparent and sparse LASSO model is sufficient with these explanatory variables.
In terms of model importance (Fig. 2b, c), the models to a large extent agreed on the most important factors for predicting future post-COVID condition. These included virus type, sex, pre-pandemic psychological and respiratory health problems, with 6 out of 10 strongest predictors being the same for both models. The models diverged somewhat with regards to the importance of vaccines. This difference likely reflects that the sparsity of the LASSO leads to the exclusion of vaccines due to its strong correlation with virus type. The Wuhan-virus was the reference category, hence the low risk for the other virus types reflects the substantially higher risk for the Wuhan-type. The sign of each predictor is also indicated in the Figure, where “POS” indicate higher likelihood of the post-COVID condition, and “NEG” a lower likelihood.
Note that the scaling of the importance scores is not directly comparable, as the LASSO scores are based on standardized coefficients, while the random forest scores are based on how prediction accuracy changes when permutating an explanatory variable.
When extending to more complex models, where we split each ICPC chapter into symptom (00–29) and diagnoses codes (30–79) and counted the number of visits instead of binary markers, the score dropped to 0.77 and 0.75 for the LASSO and random forest respectively. For the simpler models, only trained a small set of strong predictors (virus type, vaccine status, sex, and prior psychological (P), respiratory (R) and unspecified (A) health problems), the AUC was 0.759 (95% CI 0.73–0.79)
Discussion
In this observational study of ~214,000 individuals with confirmed COVID-19, we found that pre-pandemic health care utilization related to psychological, respiratory, and general/unspecified health problems were the strongest predictors for having a doctor-diagnosed post-COVID condition between 90 and 180 days after the initial infection. We also found that women, and individuals infected by the original (first) virus variant, had a higher risk of post-COVID complaints. There was no strong or clear social gradient in the prevalence of the post-covid. Last, we found that when accounting for virus type, vaccination was not significantly associated with the post-COVID condition.
Comparison to previous studies
This study found a 0.42% incidence of post-COVID complaints among those infected with SARS-CoV-2 between July 1st 2020 and January 24th 2022. This is low compared to several previous survey-based studies, which sometimes report an incidence above 10%. However, it aligns well with a recent study from the UK utilizing electronic health records from primary care which found a prevalence of 0.4%6. Such large differences in incidence likely reflects that post-COVID cases identified using health care utilization data could be considered as more severe than those measured in surveys. In summary, the incidence of post-COVID complaints varies considerably depending on measurement methods7.
The higher incidence among women and middle-aged (i.e., declining at higher ages) found in our study has also been observed in several other studies6,12,22. We found indications of a U-shaped association between income and the post-COVID condition, i.e., that individuals with middle income (40th to 80th percentile) has higher odds for having the post-COVID condition than other individuals. Moreover, individuals with low university education had a higher odds of the post-COVID condition when compared to individuals with other education levels. These findings of socioeconomic gradient are partly contradictory to findings reported in other studies6,21. It should be noted, however, that the absolute differences in resources between the top and bottom of socioeconomic distributions differ significantly between countries, making cross-country comparisons difficult to interpret.
To our knowledge, the increased risk of post-COVID complaints following infection by the original virus variant, compared to the other virus types has not been shown before; while the lack of protective effect of vaccines (Fig. 1, panel b) is in line with previous studies suggesting no, or only partial protection23,24,25.
Regarding pre-pandemic healthcare utilization, the increased risk among individuals with respiratory health problems or adverse prior mental health is comparable to what was found in recent studies6,12,21. The repeated finding of a positive association between post-COVID complaints and poor mental health in our and previous studies raises important and difficult questions related to underlying mechanisms. We suggest these associations as topics for future studies20. The increased risk among individuals with general and unspecified health problems has, to our knowledge, not been shown in primary healthcare data. This heightened risk could reflect individual differences in help-seeking when experiencing health problems after a COVID-19 disease.
The prediction performance from the machine learning models reflects that pre-infection data is informative about the likelihood of post-COVID. For comparison, a recent study based on data collection through an app (The COVID Symptom Study), showed an AUC = 0.7612. However, contrary to our study, this study used the post-infection measures—number of symptoms reported within the first week—as predictors, and duration beyond 28 days as a post-COVID case. It also worth noting that in our case two models with very different degrees of complexity had similar AUCs, suggesting that a simple (linear model) and sparse (few explanatory variables) model would perform almost equally well.
Interpretation and relevance
We found that a limited set of predictors provided substantial information regarding the risk of post-COVID complaints. To illustrate, while the average risk in our sample was 0.42%, the risk among those with the strongest risk factors was 10-fold (~4%; original virus, female, prior history (2017–2019) of respiratory, psychological and general health problems). These findings imply that a simple checklist of yes/no questions may function as a prognostic tool for predicting post-COVID health complaints. As such, we believe our study has important implications for care providers, for example in general practitioner settings and/or in specialist care settings. When our findings are validated in other samples and populations, a checklist of yes/no question as described above can be implemented into clinical practice to provide information about a patient’s prognosis following COVID-19. Such knowledge may be important for timely treatment decisions and/or for prevention of long-term sickleave (at least when the same doctor is following the same patient over time and when the same doctor is responsible for prescribing sick leave). The checklist may further provide important knowledge for rehabilitation personnel. For example, when a patient has undergone COVID-19 and receives physiotherapy in the recovery period, the interventions could be better targeted to the individual based on the knowledge that the individual is at no risk or at enlarged risk of the post-covid condition. Last, when validated out of sample, we believe our checklist may also be used in the selection of individuals to future trials or observational studies. However, it should be noted that not everyone with a positive test will visit primary care with complaints, and treatment options are currently limited. We have previously reported that the prevalence of common medical complaints and health care visits following COVID-19 is elevated particularly 1–3 months after positive test26,27. A small proportion of the individuals visiting primary care during 1–3 months post COVID will still need care at 4–6 months, however it is unclear what care would be helpful for this group of individuals. As such, the proposed checklist may be useful among individuals testing positive who are symptomatic, i.e., individuals visiting their doctor with complaints in the acute and/or sub-acute COVID-19 phase, when more treatment options are available. We believe this potential clinical usefulness of our findings as well as timely treatment options should be further investigated in future studies.
Strengths and weaknesses
The main strength of the study is that it covers close to all infected individuals in Norway during the study period, as well as complete registrations of their health care utilization in the years prior to the pandemic. Hence, the study to a very limited degree suffers from sample selection or recall bias. Moreover, healthcare utilization and socioeconomic characteristics were measured prior to the pandemic, hence there is no risk of reverse causation.
The study has several limitations. Our main limitation is that the outcome measure was constructed based on health care utilization. There could be considerable heterogeneities across the population with regards to the propensity to seek help. Hence, the prevalence measured along any given dimension—e.g., age, sex or socioeconomic background—could entail considerable bias, to the extent that these dimensions correlate with health-seeking behavior. For example, the higher prevalence found among women and middle-aged could potentially be explained by a higher inclination to seek professional help for health problems in these groups.
Another potential limitation of our study is the risk of misclassification related to whether general practitioners accurately reported positive COVID-19 tests to the official register. Although general practitioners were required by law to report all cases of COVID-19 to the official register, there could exist cases where infections were not reported, potentially resulting in false post-COVID classification (i.e., the post-covid condition as reported in our study could be due to a second episode of COVID-19). However, we consider this risk limited, as measures were put in place to remind general practitioners of the immense importance of continuously reporting cases during a national health crisis. Further, reinfection was rare: ~2% of those infected in between July 2020 and Aug 2022 were infected twice within 180 days (Supplementary Fig. 1).
Lastly, the post-COVID condition was a new phenomenon in the early phases of the pandemic and general practitioners may not have known how to interpret, or code, the symptoms reported by their patients. Although it was possible to register an R992 code together with a persistent complaint, the primary care physicians might not have done so. The operationalization chosen in this study is in line with the official guide given to general practitioners in April 2021 and in accordance with the WHO definition of the post-COVID condition. We found similar results in our sensitivity analysis where inclusion was started in January 2021, with corresponding potential post-COVID cases from April 2021 (Supplementary Fig. 9). Still, there may be individual variations in coding practices, which might have influenced results.
Moreover, patient groups prefer self-diagnosis as a definition, and we believe our findings need to be replicated and/or nuanced in future studies using patient-reported outcome measures. Along this line, there may be important post-covid complaints not studied here. For example, loss of taste and smell are commonly reported among patients1,28 but could not be studied here because of low numbers.
In conclusion, we found that individuals with mild initial COVID-19 and a prior history of psychological, respiratory, or unspecified/general health problems, had a higher risk of developing post-COVID complaints. There was also an increased risk among women and those infected by the Wuhan-virus. When validated in other samples and settings, these findings may be used by clinicians and care providers to inform about the prognosis after COVID-19 regarding the development of the post-covid condition.
Methods
Study design and participants
Using a prospective cohort study design following individuals for up to 180 days after the first positive test, we utilized data from the Norwegian Emergency Preparedness Register, Beredt C19 (BC19). BC19 is a national database containing linked register data aiming to provide rapid knowledge to authorities in handling the pandemic. Sources included in the current study were the Norwegian Population Register (demographic characteristics), the Norwegian Tax Authorities and National Education Database (socioeconomic variables), the Norwegian Surveillance System of Communicable Diseases (results from all Polymerase Chain Reaction (PCR) testing), the Norwegian Immunization Registry (data on all vaccination against COVID-19), the Norway Control and Payment of Health Reimbursement Registry (primary health care visits before and during the pandemic) and the Norwegian Patient Registry (specialist health care visits before and during the pandemic). These data sources were linked using a deidentified version of the personal identification number received upon birth or immigration.
Our study population included all Norwegian residents aged between 30 and 70 years old (i.e., working age individuals) on Jan 1st 2020, and who had their first positive SARS-CoV-2 PCR test, as registered in the Norwegian Surveillance System of Communicable Diseases, between July 1st 2020 and January 23rd 2022. By including individuals from their date of first positive test, we could ensure that the included individuals had no pre-existing post-covid complaints resulting from previous COVID-19 illness.
We excluded individuals with one or more positive tests in the period 31 to 180 days after the first positive test. In this way, we could exclude new onset symptoms that were due to a new SARS-CoV-2 infection and not related to the first SARS-CoV-2 infection (i.e., all positive test occurring the first 30 days after the first positive test were regarded to result from the same infection period29). We also excluded individuals that were hospitalized due to COVID-19 as these experienced considerably more bodily stress from the infection. We required complete follow-up data, i.e., all individuals were followed for 180 days after testing positive.
Outcome: post-COVID condition
The main outcome of interest was having the post-COVID condition (yes/no) as recorded by a general practitioner (GP) in primary or emergency care by the International Classification of Primary Care code (ICPC-2). From May 4th 2020, primary care physicians were instructed to use the code R992 diagnosis for patients with COVID-19 disease. Persistent complaints after COVID-19 were coded by an R992 code together with at least one code for a persistent symptom, for example fatigue or pain30. For example, if a patient reported to be struggling with fatigue after the infection, it was coded with R992 together with A04 (weakness/tiredness). Correspondingly, if the complaint was shortness of breath, it was coded with R992 and R02. This coding for persistent complaints was possible for primary care physicians to use at any time during the pandemic. However, an official recommendation to do so was provided by national health authorities from April 1st 2021. The recommendation stated that persistent COVID-19 complaints should be coded by primary care physicians based on patient history of persistent complaints and an earlier, confirmed COVID-19. In our study, we assessed physician-reported post-COVID condition for one or more of several long-term symptoms after a SARS-CoV2 infection as described in Table 231, if they occurred in the time range 90-180 days after the first positive test. As such, our definition is in accordance with the World Health Organization’s definition of post-covid conditions (covid-like complaints present 3 months after infection)8. The assumption of our main outcome “post-COVID condition“ was that the risk of the diverse symptoms together makes up the risk of the post-COVID condition, which we assume shares common predictors. However, the predictors may differ by symptoms, and to examine the sensitivity of our results we also assessed two secondary outcome measures, based on findings in previous register-based research27,32 and the number of observations for each outcome in our sample: (1) Respiratory complaints (including cough and shortness of breath) and (2) fatigue (Table 2). As a robustness check, because individuals with anxiety and/or depression might be more prone than others to seek medical care due to health concerns also for physical health issues33, we also examined how the results were affected when recoding individuals with anxiety and depression post-COVID symptoms as non-post-COVID cases.
Medical recording to the National registries is mandated by law in Norway, reducing potential bias due to missing data in our study. Norwegian health register data have been demonstrated to have high validity and reliability in a small comparative study of medical journal notes and medical records34, i.e., they are well suited for studying patterns of health care use and complaints leading to health care use. Still, we made use of a diagnostic coding practice that was introduced during the pandemic and therefore was relatively new to primary care physicians. Indeed, the use of the codes as described above was limited in the beginning of the pandemic (when both the post-COVID condition was new, and also coding practices were new), before slowly rising and reaching its top in March 2022 (Supplementary Fig. 10).
Predictors
We included predictors based on demographic and socioeconomic characteristics, previous healthcare use, virus variant, and vaccination against COVID-19 (Table 3), all as identified by the registries described above. For “health care utilization prior to infection” (Table 3), we relied on the pre-pandemic period 2017-19 because of periodically restricted access to care during the COVID-19 pandemic and hence corresponding differences in the data generating process during the different phases of the pandemic. Virus variant was identified based on which virus type was dominant among infected individuals: the Wuhan virus (March 1st 2020– February 16th 2021), the Alpha virus (February 17th 2021–June 30th 2021), the Delta virus (July 1st 2021–December 23rd 2021), and the Omicron virus (December 24th 2021–January 23rd 2022).
Statistical analyses
The statistical analysis consisted of two parts. In the first part we explored the incidence and risk factors for doctor-diagnosed post-COVID condition. In the second part we built prediction models using machine learning algorithms.
We estimated the incidence of post-COVID condition for each stratum of the included covariates (Table 3). We then estimated Odds Ratios (OR) for the post-COVID condition in bivariate and multivariate logistic regression models. While the bivariate models only contained the outcome and exposure of interest (each factor separately), the multivariate models used two different sets of explanatory variables, depending on which factor was under study: (i) When analyzing healthcare utilization, we controlled for all the demographic and socioeconomic factors and vaccination status. (ii) When studying the risk related to demographic and sociodemographic characteristics, and vaccine status, we ran separate models for each characteristic while adjusting for the healthcare utilization prior to infection (2017–2019). To illustrate, the adjusted model for a specific age group shows the risk adjusted for health care utilization history. Note that since virus type and vaccination status at the time of infection were strongly correlated, the multivariate models analyzing virus types included both vaccination status and sociodemographic factors as controls. We repeated our analyses for the secondary outcome measures (post-COVID respiratory complaints and post-COVID fatigue) and when recoding individuals with anxiety and depression post-COVID symptoms as non-post-COVID cases. We also repeated the main analyses in several sensitivity analyses related to the study sample: (1) An analysis of risk factors when including hospitalized individuals, (2) an analysis of individuals with reinfection within 180 days, (3) an analysis of individuals either hospitalized and/or reinfected within 180 days, (4) an analysis of individuals who were infected after December 2020 (as opposed to the first period when the virus and its short- and long-term consequences were unknown). For a more standardized interpretation of predictor-specific incidence and odds ratios, we used “everyone else” as the reference group in all analyses. Thus, all predictors were added to the model as a binary 0/1 variable, where 1 represented having the characteristic of interest (for example Age group (50,60]) taking value 1), and 0 represented everyone else, not having the characteristic of interest (in the example, all other age groups, i.e., age groups [30,40], [40,50], [60,70] taking value 0). Likewise, for predictor Female, coded as 1, everyone else, who were typically categorized as Male, were coded as 0. As such, the odds ratio for females will be the inverse of the odds ratio for males and vice versa.
The aim of the machine learning models was to predict post-COVID cases. We built prediction models with two different machine learning algorithms, one transparent (Least Absolute Shrinkage and Selection Operator, or LASSO) and one more flexible and opaque (Random Forest). To limit overfitting, both models were tuned with cross-validation.
The Least Absolute Shrinkage and Selection Operator (LASSO) is one of several penalized regression methods available for prediction35. Due to its sparsity and performance, the LASSO has become widely used when aiming for an interpretable, yet well performing out of sample, predictive model. What separates the LASSO from other penalized regression models is the functional form of the penalty term: The LASSO uses the absolute sum of coefficients (L1 penalty), while other methods use the sum of squared coefficients (L2 – ridge regression), or a combination of both (elastic net regression). The result is that the LASSO tends to suggest sparse models, keeping only a small set of strong predictors.
The random forest averages the predictions from multiple Classification and Regression trees (CARTs)36. Hence, it is an “ensemble learner”. The random forest has gained popularity due to its high level of performance, robustness to various data challenges (missing observations, rescaling of predictors etc.) and limited set of tunable hyperparameters. What is particular with the random forest is that each CART is fit using only a random subset of the available predictors. This random selection of predictors has been shown to boost the predictive performance by limiting inefficient dependency across individual CARTs.
Both the LASSO and random forest models were estimated on the full set of covariates, i.e., both sociodemographic data, health care utilization data, vaccine status and virus type. The outcome was a binary indicator of the post-COVID condition. The models were tuned using 10-fold cross validation with the same folds across model types, and performance was assessed on the same hold-out sample (20%). Using bootstrapping, we also estimated the confidence intervals of their performance (area under the curve).
We extended our machine learning models in two directions. First, to explore the potential for improving the AUC score by adding complexity, we also estimated models where we split each ICPC chapter into symptom (00–29) and diagnoses codes (30–79). Moreover, instead of a binary marker for primary healthcare we counted the number of visits for each symptom and diagnosis. Second, to explore the potential for simplifying the model in order to make it more clinically relevant, we estimated models which only a small set of strong predictors.
All prediction analysis was done within the Tidymodels machine learning framework. The confidence intervals for the area under the curve were estimated with the pROC-package, using the Delong-method37. All analyses were run in R (v.4.0.2), using the packages tidyverse (v.1.3.2), broom (v.1.0.2), tidymodels (v.0.1.4), ranger (v.0.13.1), and glmnet (v.4.1–3). The data from the different registers were linked in R using the RODBC-package (v.1.3-19).
Inclusion and ethics
The Ethics Committee of South-East Norway confirmed on June 4, 2020 that external ethical board review was not required (#153204). The data sources (The emergency preparedness register for COVID-19) were established and handled in accordance with the Health Preparedness Act §2-4 (11), enabling a quick and responsive way for the Norwegian government to access knowledge of how to handle the pandemic. Hence, the data and analysis were regarded by the ethical committee to respond to research aims not falling under the Law of Health Research §§ 2 and 4a. Informed consent from participants was not required, since the study was based on routinely collected administrative register data. Data from the different registers were linked by the certified researchers and using an encrypted personal ID-variable. Unencrypted ID-numbers were not available to the researchers. All methods were carried out in accordance with relevant guidelines and regulations. To protect participant privacy and security of personal data, all data were handled under strict confidentiality and access control as described in the Norwegian Institute of Public Health’s internal documentation.
Reporting summary
Further information on research design is available in the Nature Portfolio Reporting Summary linked to this article.
Data availability
The study was based on the Emergency Preparedness Register for COVID-19 (Beredt C19), a strictly regulated register available to selected authorized researchers in Norwegian Institute of Public Health. The individual-level data that support the findings is thus not publicly available due to privacy laws. However, the data are accessible to authorized researchers after ethical approval and application to “helsedata.no/en” administered by the Norwegian Directorate of eHealth. The response time for data applications, following the necessary ethical approvals, varies by the demand and capacity at each register. It can range from months to two years, depending on the circumstances.
Code availability
Code used for producing the results presented in this study is available at https://github.com/remebjornatle/post_covid or https://zenodo.org/badge/latestdoi/66104199538.
References
Caspersen, I. H., Magnus, P. & Trogstad, L. Excess risk and clusters of symptoms after COVID-19 in a large Norwegian cohort. Eur. J. Epidemiol. 37, 539–548 (2022).
Lund, L. et al. Post-acute effects of SARS-CoV-2 infection in individuals not requiring hospital admission: a Danish population-based cohort study. Lancet Infect. Dis. 21 1373–1382 (2021).
Magnusson, K. et al. Healthcare use in 700 000 children and adolescents for six months after covid-19: before and after register based cohort study. Br. Med. J. https://doi.org/10.1136/bmj-2021-066809 (2022).
Subramanian, A. et al. Symptoms and risk factors for long COVID in non-hospitalized adults. Nat. Med. https://doi.org/10.1038/s41591-022-01909-w (2022).
Sørensen, A. I. V. et al. A nationwide questionnaire study of post-acute symptoms and health problems after SARS-CoV-2 infection in Denmark. Nat. Commun. 13, 4213 (2022).
Thompson, E. et al. Long COVID burden and risk factors in 10 UK longitudinal studies and electronic health records. Nat. Commun. 13, 3528 (2022).
Ledford, H. How common is long COVID? Why studies give different answers. Nature https://doi.org/10.1038/d41586-022-01702-2 (2022).
Soriano, J. B., Murthy, S., Marshall, J. C., Relan, P. & Diaz, J. V. A clinical case definition of post-COVID-19 condition by a Delphi consensus. Lancet Infect. Dis. 22, e102–e107 (2022).
Aiyegbusi, L. et al. Symptoms, complications and management of long COVID: a review. J. R. Soc. Med. 114, 014107682110328 (2021).
Lopez Leon, S. et al. More than 50 long-term effects of COVID-19: a systematic review and meta-analysis. Sci. Rep. https://doi.org/10.1038/s41598-021-95565-8 (2021).
Michelen, M. et al. Characterising long COVID: a living systematic review. BMJ Glob. Health 6, e005427 (2021).
Sudre, C. et al. Attributes and predictors of long COVID. Nat. Med. 27, 626–631 (2021).
Fernández-de-Las-Peñas, C. et al. Prevalence of Post-COVID-19 symptoms in hospitalized and non-hospitalized COVID-19 survivors: a systematic review and meta-analysis. Eur. J. Intern. Med. https://doi.org/10.1016/j.ejim.2021.06.009 (2021).
Taquet, M. et al. Incidence, co-occurrence, and evolution of long-COVID features: A 6-month retrospective cohort study of 273,618 survivors of COVID-19. PLoS Med. 18, e1003773 (2021).
Taquet, M., Geddes, J., Husain, M., Luciano, S. & Harrison, P. 6-month neurological and psychiatric outcomes in 236 379 survivors of COVID-19: a retrospective cohort study using electronic health records. Lancet Psychiatry https://doi.org/10.1016/S2215-0366(21)00084-5 (2021).
Cervia, C. et al. Immunoglobulin signature predicts risk of post-acute COVID-19 syndrome. Nat. Commun. https://doi.org/10.1038/s41467-021-27797-1 (2022).
Slomski, A. Belief in having had COVID-19 linked with long COVID symptoms. JAMA 327, 26 (2022).
Blackett, J., Wainberg, M., Elkind, M. & Freedberg, D. Potential long COVID-19 gastrointestinal symptoms 6 months after coronavirus infection are associated with mental health symptoms. Gastroenterology https://doi.org/10.1053/j.gastro.2021.10.040 (2021).
Garjani, A., Middleton, R., Nicholas, R. & Evangelou, N. Recovery from COVID-19 in Multiple Sclerosis: A Prospective and Longitudinal Cohort Study of the United Kingdom Multiple Sclerosis Register. Neurol. - Neuroimmunol. Neuroinflammation 9, e1118 (2022).
Wang, S. et al. Associations of depression, anxiety, worry, perceived stress, and loneliness prior to infection with risk of post-COVID-19 conditions. JAMA psychiatry https://doi.org/10.1001/jamapsychiatry.2022.2640 (2022).
Westerlind, E., Palstam, A., Sunnerhagen, K. & Persson, H. C. Patterns and predictors of sick leave after Covid-19 and long Covid in a national Swedish cohort. BMC Public Health https://doi.org/10.1186/s12889-021-11013-2 (2021).
Augustin, M. et al. Post-COVID syndrome in non-hospitalised patients with COVID-19: a longitudinal prospective cohort study. Lancet Regional Health - Eur. 6, 100122 (2021).
Al-Aly, Z., Bowe, B. & Xie, Y. Long COVID after breakthrough SARS-CoV-2 infection. Nat. Med. https://doi.org/10.1038/s41591-022-01840-0 (2022).
Ayoubkhani, D. et al. Trajectory of long covid symptoms after covid-19 vaccination: community based cohort study. BMJ 377, e069676 (2022).
Brunvoll, S. et al. Post-acute symptoms 3-15 months after COVID-19 among unvaccinated and vaccinated individuals with a breakthrough infection. Int. J. Infect. Dis. https://doi.org/10.1016/j.ijid.2022.11.009 (2022).
Skyrud, K., Telle, K. & Magnusson, K. Impacts of mild and severe COVID-19 on sick leave. Int. J. Epidemiol. https://doi.org/10.1093/ije/dyab182 (2021).
Magnusson, K., Turkiewicz, A., Flottorp, S. A. & Englund, M. Prevalence of long COVID complaints in persons with and without COVID-19. Sci. Rep. 13, 6074 (2023).
Tong, J., Wong, A., Zhu, D., Fastenberg, J. & Tham, T. The prevalence of olfactory and gustatory dysfunction in COVID-19 patients: a systematic review and meta-analysis. Otolaryngol. Head Neck Surgery https://doi.org/10.1177/0194599820926473 (2020).
Massetti, G. et al. Summary of Guidance for Minimizing the Impact of COVID-19 on Individual Persons, Communities, and Health Care Systems — United States, August 2022. Morb. Mortal. Weekly Rep. https://doi.org/10.15585/mmwr.mm7133e1 (2022).
Directorate of E-health. Code guidance for COVID-19 https://www.ehelse.no/kodeverk-og-terminologi/ICPC-2/kodeveiledning-ved-covid-19 (2021).
Flatby, A. V. H., Jan Peter William, Brurberg, Kjetil Gundro, Gravningen, Kirsten Midttun. COVID-19: Post COVID-19 condition – a rapid review. (Norwegian Institute of Public Health, 2021).
Magnusson, K. et al. Post-covid medical complaints following infection with SARS-CoV-2 Omicron vs Delta variants. Nat. Commun. 13, 7363 (2022).
Katon, W., Lin, E. H. B. & Kroenke, K. The association of depression and anxiety with medical symptom burden in patients with chronic medical illness. Gen. Hospital Psychiatry 29, 147–155 (2007).
Sporaland, G., Mouland, G., Bratland, B., Rygh, E. & Reiso, H. Allmennlegers bruk av ICPC-diagnoser og samsvar med journalnotatene. Tidsskrift for Den norske legeforening https://doi.org/10.4045/tidsskr.18.0440 (2019).
James, G., Witten, D., Hastie, T. & Tibshirani, R. An Introduction to Statistical Learning, with Applications in R https://doi.org/10.1007/978-1-0716-1418-1 (2021).
Breiman, L. Random forests. Mach. Learn. 45, 5–32 (2001).
DeLong, E., DeLong, D. & Clarke-Pearson, D. Comparing the areas under two or more correlated receiver operating characteristic curves: a nonparametric approach. Biometrics 44, 837–845 (1988).
Reme, B.-A., Gjesvik, J. & Magnusson, K. Predictors of the post-COVID condition following mild SARS-CoV-2 infection https://zenodo.org/badge/latestdoi/661041995 (2023).
Acknowledgements
This study was supported by the Norwegian Institute of Public Health (internal funding, no grant number available). We thank the Norwegian Directorate of Health, particularly Olav Isak Sjøflot and his Department of Health Registries for their cooperation in establishing the emergency preparedness register, and Gutorm Høgåsen and Anja Elsrud Schou Lindman for their invaluable work on the register. The interpretation and reporting of the data are the sole responsibility of the authors, and no endorsement by the register is intended or should be inferred.
Author information
Authors and Affiliations
Contributions
B.-A.R. and J.G. performed the statistical analyses and drafted the manuscript. B.-A.R., J.G. and K.M. contributed to the research design. All authors (B.-A.R., J.G. and K.M) critically reviewed the manuscript for important intellectual content. All authors (B.-A.R., J.G. and K.M.) gave final approval for the version to be submitted.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Communications thanks Huihui Yu and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Reme, BA., Gjesvik, J. & Magnusson, K. Predictors of the post-COVID condition following mild SARS-CoV-2 infection. Nat Commun 14, 5839 (2023). https://doi.org/10.1038/s41467-023-41541-x
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41467-023-41541-x
Comments
By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.