Acessibilidade / Reportar erro

Lifestyle predictors of depression and anxiety during COVID-19: a machine learning approach

Abstract

Introduction

Recent research has suggested an increase in the global prevalence of psychiatric symptoms during the COVID-19 pandemic. This study aimed to assess whether lifestyle behaviors can predict the presence of depression and anxiety in the Brazilian general population, using a model developed in Spain.

Methods

A web survey was conducted during April-May 2020, which included the Short Multidimensional Inventory Lifestyle Evaluation (SMILE) scale, assessing lifestyle behaviors during the COVID-19 pandemic. Depression and anxiety were examined using the PHQ-2 and the GAD-7, respectively. Elastic net, random forest, and gradient tree boosting were used to develop predictive models. Each technique used a subset of the Spanish sample to train the models, which were then tested internally (vs. the remainder of the Spanish sample) and externally (vs. the full Brazilian sample), evaluating their effectiveness.

Results

The study sample included 22,562 individuals (19,069 from Brazil, and 3,493 from Spain). The models developed performed similarly and were equally effective in predicting depression and anxiety in both tests, with internal test AUC-ROC values of 0.85 (depression) and 0.86 (anxiety), and external test AUC-ROC values of 0.85 (depression) and 0.84 (anxiety). Meaning of life was the strongest predictor of depression, while sleep quality was the strongest predictor of anxiety during the COVID-19 epidemic.

Conclusions

Specific lifestyle behaviors during the early COVID-19 epidemic successfully predicted the presence of depression and anxiety in a large Brazilian sample using machine learning models developed on a Spanish sample. Targeted interventions focused on promoting healthier lifestyles are encouraged.

Mental health; SARS-CoV-2; lifestyle; machine learning; pandemic

Introduction

The widespread global COVID-19 crisis continues to affect people in different ways, with many people becoming vulnerable to mental health challenges during the pandemic.11. Xiong J, Lipsitz O, Nasri F, Lui LM, Gill H, Phan L, et al. Impact of COVID-19 pandemic on mental health in the general population: a systematic review. J Affect Disord. 2020:277;55-64. Since the onset of this pandemic, fears arising from uncertainties about their well-being have led to major changes in people’s lifestyles around the world.22. Balanzá–Martínez V, Atienza–Carbonell B, Kapczinski F, De Boni RB. Lifestyle behaviours during the COVID-19–time to connect. Hoboken: Wiley Online Library; 2020. The sudden deviation from daily routines has resulted in increased prevalence of psychiatric symptoms relative to before the COVID-19 pandemic.11. Xiong J, Lipsitz O, Nasri F, Lui LM, Gill H, Phan L, et al. Impact of COVID-19 pandemic on mental health in the general population: a systematic review. J Affect Disord. 2020:277;55-64. In particular, online web-surveys have been used to assess symptoms of mental disorders and have found an increase of the prevalence of symptoms of common mental disorders such as depression and anxiety in the general population in many countries, such as China, Italy, and Denmark, among others.33. Huang Y, Zhao N. Generalized anxiety disorder, depressive symptoms and sleep quality during COVID-19 outbreak in China: a web-based cross-sectional survey. Psychiatry Res. 2020;288:112954.

4. Mazza C, Ricci E, Biondi S, Colasanti M, Ferracuti S, Napoli C, et al. A nationwide survey of psychological distress among Italian people during the COVID-19 pandemic: immediate psychological responses and associated factors. Int J Environ Res Public Health. 2020;17:3165.
-55. Sønderskov KM, Dinesen PT, Santini ZI, Østergaard SD. The depressive state of Denmark during the COVID-19 pandemic. Acta Neuropsychiatr. 2020;32:226–8.

Two of the most severely affected countries in the world were Spain and Brazil, where citizens experienced high levels of psychological distress in the early stages of the COVID-19 epidemic.66. Ozamiz-Etxebarria N, Dosil-Santamaria M, Picaza-Gorrochategui M, Idoiaga-Mondragon N. Stress, anxiety, and depression levels in the initial stage of the COVID-19 outbreak in a population sample in the northern Spain. Cad Saude Publica. 2020;36:e00054020.,77. Serafim A de P, Goncalves PD, Rocca CC, Lotufo Neto F. The impact of COVID-19 on Brazilian mental health through vicarious traumatization. Braz J Psychiatry. 2020;42:450. Using online assessment tools, research studies conducted during the initial stages of the pandemic in Spain indicated a high prevalence of depressive symptoms, ranging between 18.7%88. González-Sanguino C, Ausín B, Castellanos MÁ, Saiz J, López-Gómez A, Ugidos C, et al. Mental health consequences during the initial stage of the 2020 Coronavirus pandemic (COVID-19) in Spain. Brain Behav Immun. 2020;87:172-6. and 41%99. Rodríguez-Rey R, Garrido-Hernansaiz H, Collado S. Psychological impact and associated factors during the initial stage of the coronavirus (COVID-19) pandemic among the general population in Spain. Front Psychol. 2020;11:1540., as well as of anxiety symptoms, ranging between 21.6%88. González-Sanguino C, Ausín B, Castellanos MÁ, Saiz J, López-Gómez A, Ugidos C, et al. Mental health consequences during the initial stage of the 2020 Coronavirus pandemic (COVID-19) in Spain. Brain Behav Immun. 2020;87:172-6. and 25%99. Rodríguez-Rey R, Garrido-Hernansaiz H, Collado S. Psychological impact and associated factors during the initial stage of the coronavirus (COVID-19) pandemic among the general population in Spain. Front Psychol. 2020;11:1540. among the general population. Similarly, a study in Brazil conducted during the COVID-19 epidemic found anxiety and depression to be the most commonly prevalent psychiatric symptoms in the general population, with a staggering 81.9% of participants indicating symptoms of anxiety, and 68% presenting symptoms of depression.1010. Goularte JF, Serafim SD, Colombo R, Hogg B, Caldieraro MA, Rosa AR. COVID-19 and mental health in Brazil: psychiatric symptoms in the general population. J Psychiatr Res. 2021;132:32-7. Furthermore, another Brazilian study found a positive association between psychological symptoms (i.e. depression and anxiety) and social isolation variables (i.e. loneliness, days in isolation, level of concern about the COVID-19 situation in Brazil), suggesting the impact that these challenging routine changes may have had on the mental well-being of people.1111. Gonçalves AP, Zuanazzi AC, Salvador AP, Jaloto A, Pianowski G, Carvalho L de F. Preliminary findings on the associations between mental health indicators and social isolation during the COVID-19 pandemic. Arch Psychiatry Psychother. 2020;22:10-9.

The major lifestyle adjustments people have had to make during this pandemic might be considered as risk factors for the appearance of unstable psychological symptoms during the quarantine period.22. Balanzá–Martínez V, Atienza–Carbonell B, Kapczinski F, De Boni RB. Lifestyle behaviours during the COVID-19–time to connect. Hoboken: Wiley Online Library; 2020. Unhealthy behaviors, such as poor dietary habits, poor sleep quality, and lack of exercise, to name a few, have been found to contribute to the burden of mental health around the globe.1212. Firth J, Siddiqi N, Koyanagi A, Siskind D, Rosenbaum S, Galletly C, et al. The Lancet Psychiatry Commission: a blueprint for protecting physical health in people with mental illness. Lancet Psychiatry. 2019;6:675-712.,1313. Jacka FN, Berk M. Depression, diet and exercise. Med J Aust. 2013;199:S21-3. Given the unusual circumstances people across the world have been affected by, it is not uncommon for people to have developed unhealthy behaviors during the quarantine period that may trigger stress-related symptoms of depression and anxiety.22. Balanzá–Martínez V, Atienza–Carbonell B, Kapczinski F, De Boni RB. Lifestyle behaviours during the COVID-19–time to connect. Hoboken: Wiley Online Library; 2020.

A recent systematic review including studies from various countries suggests a global increase in prevalence of psychiatric symptoms during the COVID-19 pandemic,11. Xiong J, Lipsitz O, Nasri F, Lui LM, Gill H, Phan L, et al. Impact of COVID-19 pandemic on mental health in the general population: a systematic review. J Affect Disord. 2020:277;55-64. with changes in everyday routines potentially playing a major role in this regard. However, it is not clear which specific changes to lifestyle behaviors and daily routines have had the greatest impact in triggering symptoms of depression and anxiety in people in highly affected countries. Further examination of this question is important in order to plan effective strategies to target prevention of mental health issues. A significant component of the present study relies on using machine learning techniques to analyze the importance of different lifestyle variables for predicting depressive and anxiety symptoms. Machine learning has become an efficient and accurate instrumental technique for analyzing big data.1414. Alpaydin E. Introduction to machine learning. Cambridge: MIT Press; 2020. Thus, the aim of the present study was to analyze the predictive effect of different lifestyle behaviors as risk factors for depression and anxiety in the general Spanish and Brazilian populations during the COVID-19 pandemic.

Methods

Data were used from web surveys conducted from April 15 to May 15, 2020 (Spain) and from April 20 to May 20, 2020 (Brazil), as detailed elsewhere.1515. Balanzá-Martínez V, Kapczinski F, de Azevedo Cardoso T, Atienza-Carbonell B, Rosa AR, Mota JC, et al. The assessment of lifestyle changes during the COVID-19 pandemic using a multidimensional scale. Rev Psiquiatr Salud Ment. 2021;14:16-26.,1616. De Boni RB, Balanzá-Martínez V, Mota JC, Cardoso TDA, Ballester P, Atienza-Carbonell B, et al. Depression, anxiety, and lifestyle among essential workers: a web survey from Brazil and Spain during the covid-19 pandemic. J Med Internet Res. 2020;22:e22835. Briefly, individuals aged 18 years or older, living in Brazil or Spain, and having access to the Internet were recruited via social networks (Facebook, WhatsApp, and Twitter) using a snowball technique and sponsored social network advertisements. Individuals who agreed to participate after reading the information and terms of the study provided electronic informed consent. Subsequently, they answered a 101-question questionnaire covering demographics, COVID-19 experience, lifestyle, self-rated health, and previously diagnosed medical and psychiatric conditions, and including brief screenings for depression, anxiety, and risky drinking.

The study was approved by the Ethics Committee at the Hospital Universitari i Politècnic La Fe in Valencia, Spain, and by the Comissão Nacional de Ética em Pesquisa (CONEP, Brazil –3.968.686).

Predictors assessed

Sociodemographic predictors included age, sex, employment status, educational level, number of people living in the household, and country of residence (Brazil or Spain). Information related to COVID-19 included questions such as, “Did a health professional formally diagnose you with COVID-19?” and “Have you lost a loved one during the pandemic?”

The main predictors of interest were lifestyle behaviors during the COVID-19 quarantine period. These were assessed using the Short Multidimensional Inventory Lifestyle Evaluation (SMILE) scale, a 43-item, self-rated questionnaire comprising 7 lifestyle domains (Diet and Nutrition, Substance abuse, Physical activity, Stress management, Restorative sleep, Social support, and Environmental exposures) developed for multidimensional 30-day lifestyle assessment.1515. Balanzá-Martínez V, Kapczinski F, de Azevedo Cardoso T, Atienza-Carbonell B, Rosa AR, Mota JC, et al. The assessment of lifestyle changes during the COVID-19 pandemic using a multidimensional scale. Rev Psiquiatr Salud Ment. 2021;14:16-26. On the SMILE scale, response options are measured with a 4-point Likert scale (Always, Often, Seldom, Never) and the final score is obtained by summing the scores for all questions (noting that some questions are reverse-scored). The higher the score, the better (healthier) the lifestyle. In addition, self-rated health (SRH) was measured using the question “How would you rate your health in general?”, with response options of “Very good”, “Good”, “Regular”, “Bad”, and “Very bad”, scored from 1 to 5, respectively. For the purpose of the present study, all the items were independently included in the model.

Outcome

Our main outcome was presence of a positive screening result for depression or anxiety. Current depression and anxiety were assessed using Patient Health Questionnaire-2 (PHQ-2)1717. Kroenke K, Spitzer RL, Williams JB. The Patient Health Questionnaire-2: validity of a two-item depression screener. Med Care. 2003;41:1284-92. for depression, with a cut-off of ≥ 3, and the Generalized Anxiety Disorder 7-item (GAD-7)1818. Spitzer RL, Kroenke K, Williams JB, Löwe B. A brief measure for assessing generalized anxiety disorder: the GAD-7. Arch Intern Med. 2006;166:1092-7. scale for anxiety, with a cut-off of ≥ 10. Two dichotomous variables were created, where scores on the two scales that were equal to or above the cut-offs were defined as “Positive Depression” and “Positive Anxiety”.

Dealing with non-responses

First, all participants that had missing variables, which would prevent us from building the final model, were excluded from the analysis. Secondly, columns containing more than 5% of missing data were removed. Finally, the remaining variables were imputed as follows: (1) for every variable, the mode, in case of categorical, or the mean, in case of continuous data, was computed from the training set; (2) the internal test set was imputed with the previously computed modes and means; (3) the same was done for the external test set (Brazil).

Statistical analysis

The statistical analyses performed to compare groups in terms of sociodemographic and clinical characteristics were conducted using SPSS 21. Independent variables were described by outcome and compared using chi-square tests and Student’s t test for independent samples. All variables, with the exception of SMILE scores, were categorized and analyzed using chi-square tests between the respective outcome groups. For SMILE scores, the samples were compared using Student’s t test. All machine learning experiments were conducted using R software (version 4.04), and the caret library (version 6.0-86).1919. Kuhn M. Building predictive models in R using the caret package. J Stat Softw. 2008;28:1-26. The data were analyzed using 3 different machine learning algorithms: elastic net, random forest, and gradient tree boosting (extreme gradient boosting [XGBoost] library). Elastic net is a regularized linear model that penalizes high weights, and thus is focused on generalization of the model for unseen samples.2020. Zou H, Hastie T. Regularization and variable selection via the elastic net. J R Stat Soc Ser B Stat Methodol. 2005;67:301-20. Random forest is a machine learning algorithm that combines and averages the predictions of multiple decision trees with random subsets of features and instances, resulting in a single predictive model.2121. Biau G, Scornet E. A random forest guided tour. Test. 2016;25:197-227. XGBoost is a scalable technique that creates a predictive model by efficiently adding new models to correct the errors of existing models (also known as ‘gradient boosting’), until the best possible model is reached.2222. Chen T, Guestrin C. Xgboost: a scalable tree boosting system. In: Association for Computing Machinery Special Interest Group on Management of Data, ACM Special Interest Group on Knowledge Discovery in Data. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York; 2016. p. 785-94. The dataset was trained and tested with each of the three models separately to examine their performance in comparison to each other. For each model, the data from Brazil were separated from the dataset and were not used until testing time; referred to as the external test. Then, the Spain dataset was split into two (75% for a training sample and 25% for an internal test) using class-stratified sampling. The training sample was then used to train the model, according to the training procedures for each machine learning technique. For each model, a grid search with the caret default hyperparameters was used to identify the best model in a 10-fold cross-validation procedure. Downsampling of the majority class was used to fix class imbalance. Variables with more than 5% missing data were removed and the remaining variables were imputed by either the mode (for categorical variables) or the mean (for numeric variables). Generalization of the model was then assessed in the internal test sample, and used to generate all performance metrics (e.g., accuracy, sensitivity, and others) for the Spanish sample. Finally, the model was evaluated on every individual from the Brazilian sample without any retraining or fine tuning. Model predictions were also used to create risk quintiles. Participants were sorted by their corresponding predicted probabilities and separated into five groups (20% highest predictions allocated to group 1, 20-40% allocated to group 2, and so on), then, the percentage of participants with presence of the outcome was calculated. This approach provides a broad idea of how predicted probabilities translate into actual probabilities of the outcome in test data (i.e. model calibration).

Data availability

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Results

Sample size and sociodemographic characteristics

The final sample for this study comprised 22,562 individuals, with 19,069 subjects from Brazil and 3,493 subjects from Spain. The sociodemographic characteristics were analyzed separately for each country (Brazil or Spain) and further differentiated based on the current clinical symptoms of the individuals, as evaluated by the PHQ-2 and GAD-7 for depression and anxiety symptoms, respectively. The comparisons were performed within the specific subsets of the sample, leading to 4 main comparisons: depression vs. no depression in Brazil, depression vs. no depression in Spain, anxiety vs. no anxiety in Brazil, and anxiety vs. no anxiety in Spain. The sociodemographic differences are described in Table 1 (depression screening) and Table 2 (anxiety screening).

Table 1
Sociodemographic and clinical variables in the Brazilian and Spanish samples, by presence of depression
Table 2
Sociodemographic and clinical variables in the Brazilian and Spanish samples, by presence of anxiety

Model performance

Model performance was assessed using several metrics. Table 3 presents all the metrics for the elastic net, random forest, and XGBoost models, comparing the results when the Brazilian sample is used for testing and when the Spanish sample is used for testing. The 3 models performed very similarly for the internal and external tests. Differences can be perceived between the performance with the internal test set (Spain) and external test set (Brazil), although, overall, the results are reliable in both scenarios. For instance, the main differences between the two tests were in the positive and negative predictive values (PPV and NPV), where the external tests had higher PPV, but lower NPV than the internal tests for depression and anxiety. Despite these differences, the balanced accuracy, sensitivity, and specificity values were consistent for all models across the internal and external tests for depression and anxiety.

Table 3
Performance metrics presented based on the results of 3 different models. Results for Spain represent the internal test set results, while those for Brazil are the external set results

The elastic net model was used for subsequent analyses because of its effectiveness, interpretability, and simplicity. The elastic net AUC-ROC for depression was 0.85 for both the internal and external test (Figure 1A). Its AUC-ROC values for the anxiety model were 0.86 and 0.84 for the internal and external test, respectively (Figure 1B). In both cases, the curves for the internal and external sets are very similar, with performance for the Spain data being slightly better overall.

Figure 1
Results for depression and anxiety by training the model with the Spain sample and testing it on the Spain internal set and the Brazil external set: A) ROC curves for the internal (AUC-ROC = 0.85) and external (AUC-ROC = 0.85) tests for presence of depression; B) ROC curves for internal (AUC-ROC = 0.86) and external (AUC-ROC = 0.84) tests for presence of anxiety; C) Percentage of individuals with symptoms of depression by defined quintiles of predicted risk; D) Percentage of individuals with symptoms of anxiety by defined quintiles of predicted risk.

The calibration of the model was also analyzed, by evaluating the concentration of the outcome within the percentiles of predictions. In Figures 1C and 1D, significant differences were identified between the countries. In order to generate the image, participants were sorted by their predicted value into 5 defined quintiles of predictions. For each of these groups, the percentage of participants that had the outcome with respect to the total number of individuals with the outcome were assessed. More specifically, almost 60% of the participants with depression (first red bar) are within the 20% highest predictions (Figure 1C). In other words, a high prediction from the model is highly predictive of the outcome. However, a reduction was observed in the Brazilian sample. Notably, around 35% of the participants within the 20% highest predictions have depression. This may indicate signs of prediction bias coming from the Spanish sample. Almost the exact same pattern is observed for anxiety (Figure 1D).

In addition, the importance of each question on the SMILE scale was examined as an independent lifestyle variable for predicting the presence of depression and anxiety symptoms. Each question was separately evaluated for its projective capacity to suggest presence of depression and presence of anxiety symptoms in the Spanish sample. All questions considered were based on respondents’ daily routines and feelings within the last month. Analysis of the predictors of depression identified the question, “Do you feel that your life has a meaning?” as the most important predictor of the disorder, followed by the question, “How would you rate your health in general?” (from the SRH) and “Do you use sleeping pills?” (Figure 2A). With regards to the predictors of anxiety, the most important SMILE question to predict the presence of the disorder was, “Do you feel rested with the number of hours you sleep?”, followed by “Do you use sleeping pills?” and “Do you feel that you have a good work-life balance?” (Figure 2B).

Figure 2
Importance of different variables as predictors of depression and anxiety according to the Spain sample; A) Predictors of depression; B) Predictors of anxiety; * Indicated in the last 30 days.

Discussion

Findings from this study indicate that variables related to lifestyle, as assessed by the SMILE scale, successfully predicted common mental disorders such as depression and anxiety in a Brazilian sample using a machine learning model developed on a Spanish sample during the early stages of the COVID-19 epidemic. Additionally, the results highlight the importance of different lifestyle factors and general self-concerns as predictors of these disorders, with perception about meaning of life, self-rated health, and use of sleeping pills being the most important predictors of depression, and restful sleep, use of sleeping pills, and perception about work-life balance being the most important predictors of anxiety.

The COVID-19 epidemic started at different times in Spain and Brazil, where the population of Spain was affected by the first wave of the contagious virus prior to escalation of the outbreak in the Brazilian population. By assessing lifestyle behaviors in the early stages of the epidemic in Spain using a multidimensional lifestyle questionnaire (SMILE), we developed predictive models with three different machine learning methods using a subset of the Spanish sample. The models were then tested internally (with the remaining subset of the Spanish sample) and later tested externally with the full Brazilian sample. The consistency in performance metrics between the different methods, as well as the similarities between the internal and external tests suggest that the internally developed models were able to predict the presence of depression and anxiety during the COVID-19 pandemic in the external set, which is the main, novel finding from this research study.

To our knowledge, this is the first study to develop machine learning models in one country that are equally effective in predicting the presence of common mental health disorders in a different country. Implications from this study indicate that elastic net, random forest, and XGBoost are reliable techniques for transnational prediction of common mental disorders such as depression and anxiety. The cross-fertilization of independent analyses carried out in different contexts is a much-desired goal of contemporary epistemology, decision science, and computer science, among other fields of knowledge. Prior literature has found many similarities in lifestyle factors that correlate to presence of mental disorders such as depression and anxiety in underdeveloped, developing, and developed countries.2323. Cabello M, Miret M, Caballero FF, Chatterji S, Naidoo N, Kowal P, et al. The role of unhealthy lifestyles in the incidence and persistence of depression: a longitudinal general population study in four emerging countries. Global Health. 2017;13:18.,2424. Lotfaliany M, Hoare E, Jacka FN, Kowal P, Berk M, Mohebbi M. Variation in the prevalence of depression and patterns of association, sociodemographic and lifestyle factors in community-dwelling older adults in six low-and middle-income countries. J Affect Disord. 2019;251:218-26. Recent studies conducted during the COVID-19 outbreak have also indicated higher prevalence of depression and anxiety symptoms in the general population during this period.2525. Barzilay R, Moore TM, Greenberg DM, DiDomenico GE, Brown LA, White LK, et al. Resilience, COVID-19-related stress, anxiety and depression during the pandemic in a large population enriched for healthcare providers. Transl Psychiatry. 2020;10:291.,2626. Salari N, Hosseinian-Far A, Jalali R, Vaisi-Raygani A, Rasoulpoor S, Mohammadi M, et al. Prevalence of stress, anxiety, depression among the general population during the COVID-19 pandemic: a systematic review and meta-analysis. Global Health. 2020;16:57. Considering the severe consequences of the pandemic in highly affected countries such as Brazil and Spain, a recent study conducted in these regions found an association between unhealthy lifestyle changes and presence of depression and anxiety among essential workers during the COVID-19 pandemic.1616. De Boni RB, Balanzá-Martínez V, Mota JC, Cardoso TDA, Ballester P, Atienza-Carbonell B, et al. Depression, anxiety, and lifestyle among essential workers: a web survey from Brazil and Spain during the covid-19 pandemic. J Med Internet Res. 2020;22:e22835. With this in mind, taking into consideration the similarities across different countries in lifestyle adversities due to the COVID-19 crisis, it is possible that the models developed and used in this study may be able to reliably capture predictive factors of the presence of common mental disorders in different regions of the world.

We also assessed the importance of each lifestyle variable on the SMILE scale as independent factors associated with presence of depression and anxiety using machine learning methods. We used the Spain training sample to evaluate the importance of each independent question in predicting presence of the mental disorders of interest. Intriguingly, we found the answers to the question, “Do you feel that your life has a meaning?” to be the predictor most associated with presence of depression. Prior studies have reported an inverse relationship between self-perceived meaning of life and symptoms of depression, concurring with the current findings of our study.2727. Hedayati MM, Khazaei MM. An investigation of the relationship between depression, meaning in life and adult hope. Procedia Soc Behav Sci. 2014;114:598-601.,2828. Steger MF, Mann JR, Michels P, Cooper TC. Meaning in life, anxiety, depression, and general health among smoking cessation patients. J Psychosom Res. 2009;67:353-8. However, we believe this to be the first study indicating that perception of meaning of life carries greater significance in predicting symptoms of depression than other lifestyle factors. The high importance factor seen in this variable could be due to the cumulative contribution of many different aspects of lifestyle towards a sense that life is meaningless during the COVID-19 pandemic. Self-rated health was the second most important predictor of presence of depression in this sample during the pandemic, with prior literature also suggesting a strong association between subjective well-being and symptoms of depression.2929. Derdikman-Eiron R, Indredavik MS, Bratberg GH, Taraldsen G, Bakken IJ, Colton M. Gender differences in subjective well-being, self-esteem and psychosocial functioning in adolescents with symptoms of anxiety and depression: findings from the Nord-Trøndelag health study. Scand J Psychol. 2011;52:261-7.,3030. Perna L, Zhang Y, Matias-Garcia PR, Ladwig K-H, Wiechmann T, Wild B, et al. Subjective mental health, incidence of depressive symptoms in later life, and the role of epigenetics: results from two longitudinal cohort studies. Transl Psychiatry. 2020;10:323. Among the rest of the factors, sleep medications and sleep quality were found to be among the strongest predictors of depression, which has also been suggested in previous findings.3131. Augner C. Associations of subjective sleep quality with depression score, anxiety, physical symptoms and sleep onset latency in young students. Cent Eur J Public Health. 2011;19:115-7.,3232. Nutt D, Wilson S, Paterson L. Sleep disorders as core symptoms of depression. Dialogues Clin Neurosci. 2008;10:329.

Furthermore, we assessed the importance of each lifestyle variable on the SMILE scale as independent predictors of anxiety in the Spanish training sample. The leading, most significant predictor of presence of anxiety was the answer to the question, “In the last month, how often do you feel rested with the number of hours you sleep?”. Similarly, the second most important predictor was related to daily use of sleeping medications during the COVID-19 pandemic. It is known that sleep disturbances and anxiety are bidirectionally associated,3333. Alvaro PK, Roberts RM, Harris JK. A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression. Sleep. 2013;36:1059-68. and this association was expectedly evident during the early stages of the pandemic.3434. Sher L. COVID-19, anxiety, sleep disturbances and suicide. Sleep Med. 2020;70:124. Stressful life events, such as the COVID-19 pandemic, which threaten one’s psychological and physical well-being are likely to cause increased sleep disturbances in the population.3535. Morin CM, Carrier J, Bastien C, Godbout R. Sleep and circadian rhythm in response to the COVID-19 pandemic. Can J Public Health. 2020;111:654-7. Indeed, sleep problems have been highly prevalent during COVID-19, with approximately 40% of the general population reporting poor sleep quality in the early stages of the pandemic.3636. Jahrami H, BaHammam AS, Bragazzi NL, Saif Z, Faris M, Vitiello MV. Sleep problems during the COVID-19 pandemic by population: a systematic review and meta-analysis. J Clin Sleep Med. 2021;17:299-313. The confinement period during the pandemic has led to changes in social and environmental cues important for circadian rhythms and the sleep-wake cycle, including the lack of fixed schedules for working, eating, exercising, socializing, and similar daily routines.3535. Morin CM, Carrier J, Bastien C, Godbout R. Sleep and circadian rhythm in response to the COVID-19 pandemic. Can J Public Health. 2020;111:654-7. Changes in the sleep-wake cycle can result in desynchronization between the circadian rhythm and important immune functions, which can affect a person’s physical and mental well-being.3535. Morin CM, Carrier J, Bastien C, Godbout R. Sleep and circadian rhythm in response to the COVID-19 pandemic. Can J Public Health. 2020;111:654-7.,3737. Bryson WJ. Circadian rhythm sleep-wake disorders and the COVID-19 pandemic. J Clin Sleep Med. 2020;16:1423. In particular, reduced sleep quality was associated with higher levels of depression and anxiety symptoms early on during the COVID-19 lockdown in Italy.3838. Cellini N, Canale N, Mioni G, Costa S. Changes in sleep pattern, sense of time and digital media use during COVID-19 lockdown in Italy. J Sleep Res. 2020;29:e13074. Similarly, our findings indicate that sleep disturbances may be the most important factor in predicting presence of anxiety in the general population in different countries during the COVID-19 pandemic. Additionally, perception of work-life balance, meaning of life, and consumption of fast food were other variables from the SMILE scale related to the presence of anxiety, corresponding with previous studies indicating associations between these variables and anxiety.3939. Bakhtiyari M, Ehrampoush E, Enayati N, Joodi G, Sadr S, Delpisheh A, et al. Anxiety as a consequence of modern dietary pattern in adults in Tehran—Iran. Eat Behav. 2013;14:107-12.

40. Sprung JM, Rogers A. Work-life balance as a predictor of college student anxiety and depression. J Am Coll Health. 2020 Jan 23;1-8. doi: 10.1080/07448481.2019.1706540. Online ahead of print.
-4141. Yek MH, Olendzki N, Kekecs Z, Patterson V, Elkins G. Presence of meaning in life and search for meaning in life and relationship to health anxiety. Psychol Rep. 2017;120:383-90.

Findings from our study could have essential clinical implications for clinical professionals and researchers around the world. Considering the effectiveness of our models across different countries, the method developed could be adapted and used across a vast number of countries, especially when countries are in similar situations such as during the global COVID-19 pandemic. In addition, to our knowledge, this is the first study using machine learning methods to predict which lifestyle behaviors are able to accurately indicate positive screening for depression and anxiety, two of the most common mental disorders globally. Observing the most prevalent lifestyle behaviors among people with depression and anxiety using this model could be the first step towards creating a protocol of targeted interventions addressing unhealthy lifestyle behaviors that increase the likelihood of presence of these symptoms, such as sleep hygiene.

The main limitation of our study is the cross-sectional design. Considering that the lifestyle behaviors (predictors) and the presence of depression/anxiety symptoms (outcomes) were assessed at the same point in time, inference of a causal relationship between the variables is limited. Instead, it depicts a snapshot of a very dynamic process (comprising both the dynamics of the epidemic itself and how people cope with the challenges it poses over time). Furthermore, it is important to highlight that presence of anxiety and depression was assessed using a screening test, and replication of this data assessing them using a structured, albeit much more labor-intensive, clinical interview is encouraged. There are also limitations regarding the lack of fine-tuning of the model for the Brazilian sample; although we showed that the model performs similarly in both countries, the model was not further trained on a subset of Brazilian data, which could potentially improve the model for that sample. In contrast, a major advantage of this study is the consistency in performance metrics across three highly reliable machine learning methods for development of predictive models, which also achieved high AUC-ROC values for the internal and external tests. In addition, another major advantage is that the trained sample of the model was from Spain, one of the first countries affected by the pandemic, which was then tested in Brazil, where the epidemic started at a later period. This is an encouraging sign for development of prevention guides using this model. Lastly, the findings from this paper are in accordance with previous research indicating important mental health burdens related to lifestyle behaviors, especially during the COVID-19 pandemic.

Implications from this study could be highly significant in the approach towards developing targeted approaches to promote healthy lifestyles that might help reducing the burden of common mental disorders.

Acknowledgements

Raquel B. De Boni is grateful for long-term funding from Fundação de Amparo à Pesquisa do Estado do Rio de Janeiro (FAPERJ; E-26/203.154/2017) and Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq; 310541/2017-4). Vicent Balanzá-Martínez acknowledges support from Instituto de Salud Carlos III (PI16/1770, PROBILIFE Study). Francisco I. Bastos is supported by a CNPq career grant and a FAPERJ grant (E-26/010.002428/2019). Flavio Kapczinski acknowledges funding from Fundação de Amparo à Pesquisa do Estado de São Paulo (INCT 2014, 2014/50891-1), CNPq (INCT 465458/2014-9), Fundação de Amparo à Pesquisa do Estado do Rio Grande do Sul (2012551-0000250.0), and Canada Foundation for Innovation. Taiane de Azevedo Cardoso acknowledges her postdoctoral fellowship from the Canadian Institutes of Health Research (CIHR).

We would like to thank Gabriel Madeira and Ronaldo I. Moreira for their assistance in programming and testing the online questionnaire, Thais Martini for social media management, Juliana Krapp and Daniele Souza for communications advice, all the institutions and individuals who promoted the survey, and all the individuals who answered it.

References

  • 1
    Xiong J, Lipsitz O, Nasri F, Lui LM, Gill H, Phan L, et al. Impact of COVID-19 pandemic on mental health in the general population: a systematic review. J Affect Disord. 2020:277;55-64.
  • 2
    Balanzá–Martínez V, Atienza–Carbonell B, Kapczinski F, De Boni RB. Lifestyle behaviours during the COVID-19–time to connect. Hoboken: Wiley Online Library; 2020.
  • 3
    Huang Y, Zhao N. Generalized anxiety disorder, depressive symptoms and sleep quality during COVID-19 outbreak in China: a web-based cross-sectional survey. Psychiatry Res. 2020;288:112954.
  • 4
    Mazza C, Ricci E, Biondi S, Colasanti M, Ferracuti S, Napoli C, et al. A nationwide survey of psychological distress among Italian people during the COVID-19 pandemic: immediate psychological responses and associated factors. Int J Environ Res Public Health. 2020;17:3165.
  • 5
    Sønderskov KM, Dinesen PT, Santini ZI, Østergaard SD. The depressive state of Denmark during the COVID-19 pandemic. Acta Neuropsychiatr. 2020;32:226–8.
  • 6
    Ozamiz-Etxebarria N, Dosil-Santamaria M, Picaza-Gorrochategui M, Idoiaga-Mondragon N. Stress, anxiety, and depression levels in the initial stage of the COVID-19 outbreak in a population sample in the northern Spain. Cad Saude Publica. 2020;36:e00054020.
  • 7
    Serafim A de P, Goncalves PD, Rocca CC, Lotufo Neto F. The impact of COVID-19 on Brazilian mental health through vicarious traumatization. Braz J Psychiatry. 2020;42:450.
  • 8
    González-Sanguino C, Ausín B, Castellanos MÁ, Saiz J, López-Gómez A, Ugidos C, et al. Mental health consequences during the initial stage of the 2020 Coronavirus pandemic (COVID-19) in Spain. Brain Behav Immun. 2020;87:172-6.
  • 9
    Rodríguez-Rey R, Garrido-Hernansaiz H, Collado S. Psychological impact and associated factors during the initial stage of the coronavirus (COVID-19) pandemic among the general population in Spain. Front Psychol. 2020;11:1540.
  • 10
    Goularte JF, Serafim SD, Colombo R, Hogg B, Caldieraro MA, Rosa AR. COVID-19 and mental health in Brazil: psychiatric symptoms in the general population. J Psychiatr Res. 2021;132:32-7.
  • 11
    Gonçalves AP, Zuanazzi AC, Salvador AP, Jaloto A, Pianowski G, Carvalho L de F. Preliminary findings on the associations between mental health indicators and social isolation during the COVID-19 pandemic. Arch Psychiatry Psychother. 2020;22:10-9.
  • 12
    Firth J, Siddiqi N, Koyanagi A, Siskind D, Rosenbaum S, Galletly C, et al. The Lancet Psychiatry Commission: a blueprint for protecting physical health in people with mental illness. Lancet Psychiatry. 2019;6:675-712.
  • 13
    Jacka FN, Berk M. Depression, diet and exercise. Med J Aust. 2013;199:S21-3.
  • 14
    Alpaydin E. Introduction to machine learning. Cambridge: MIT Press; 2020.
  • 15
    Balanzá-Martínez V, Kapczinski F, de Azevedo Cardoso T, Atienza-Carbonell B, Rosa AR, Mota JC, et al. The assessment of lifestyle changes during the COVID-19 pandemic using a multidimensional scale. Rev Psiquiatr Salud Ment. 2021;14:16-26.
  • 16
    De Boni RB, Balanzá-Martínez V, Mota JC, Cardoso TDA, Ballester P, Atienza-Carbonell B, et al. Depression, anxiety, and lifestyle among essential workers: a web survey from Brazil and Spain during the covid-19 pandemic. J Med Internet Res. 2020;22:e22835.
  • 17
    Kroenke K, Spitzer RL, Williams JB. The Patient Health Questionnaire-2: validity of a two-item depression screener. Med Care. 2003;41:1284-92.
  • 18
    Spitzer RL, Kroenke K, Williams JB, Löwe B. A brief measure for assessing generalized anxiety disorder: the GAD-7. Arch Intern Med. 2006;166:1092-7.
  • 19
    Kuhn M. Building predictive models in R using the caret package. J Stat Softw. 2008;28:1-26.
  • 20
    Zou H, Hastie T. Regularization and variable selection via the elastic net. J R Stat Soc Ser B Stat Methodol. 2005;67:301-20.
  • 21
    Biau G, Scornet E. A random forest guided tour. Test. 2016;25:197-227.
  • 22
    Chen T, Guestrin C. Xgboost: a scalable tree boosting system. In: Association for Computing Machinery Special Interest Group on Management of Data, ACM Special Interest Group on Knowledge Discovery in Data. Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York; 2016. p. 785-94.
  • 23
    Cabello M, Miret M, Caballero FF, Chatterji S, Naidoo N, Kowal P, et al. The role of unhealthy lifestyles in the incidence and persistence of depression: a longitudinal general population study in four emerging countries. Global Health. 2017;13:18.
  • 24
    Lotfaliany M, Hoare E, Jacka FN, Kowal P, Berk M, Mohebbi M. Variation in the prevalence of depression and patterns of association, sociodemographic and lifestyle factors in community-dwelling older adults in six low-and middle-income countries. J Affect Disord. 2019;251:218-26.
  • 25
    Barzilay R, Moore TM, Greenberg DM, DiDomenico GE, Brown LA, White LK, et al. Resilience, COVID-19-related stress, anxiety and depression during the pandemic in a large population enriched for healthcare providers. Transl Psychiatry. 2020;10:291.
  • 26
    Salari N, Hosseinian-Far A, Jalali R, Vaisi-Raygani A, Rasoulpoor S, Mohammadi M, et al. Prevalence of stress, anxiety, depression among the general population during the COVID-19 pandemic: a systematic review and meta-analysis. Global Health. 2020;16:57.
  • 27
    Hedayati MM, Khazaei MM. An investigation of the relationship between depression, meaning in life and adult hope. Procedia Soc Behav Sci. 2014;114:598-601.
  • 28
    Steger MF, Mann JR, Michels P, Cooper TC. Meaning in life, anxiety, depression, and general health among smoking cessation patients. J Psychosom Res. 2009;67:353-8.
  • 29
    Derdikman-Eiron R, Indredavik MS, Bratberg GH, Taraldsen G, Bakken IJ, Colton M. Gender differences in subjective well-being, self-esteem and psychosocial functioning in adolescents with symptoms of anxiety and depression: findings from the Nord-Trøndelag health study. Scand J Psychol. 2011;52:261-7.
  • 30
    Perna L, Zhang Y, Matias-Garcia PR, Ladwig K-H, Wiechmann T, Wild B, et al. Subjective mental health, incidence of depressive symptoms in later life, and the role of epigenetics: results from two longitudinal cohort studies. Transl Psychiatry. 2020;10:323.
  • 31
    Augner C. Associations of subjective sleep quality with depression score, anxiety, physical symptoms and sleep onset latency in young students. Cent Eur J Public Health. 2011;19:115-7.
  • 32
    Nutt D, Wilson S, Paterson L. Sleep disorders as core symptoms of depression. Dialogues Clin Neurosci. 2008;10:329.
  • 33
    Alvaro PK, Roberts RM, Harris JK. A systematic review assessing bidirectionality between sleep disturbances, anxiety, and depression. Sleep. 2013;36:1059-68.
  • 34
    Sher L. COVID-19, anxiety, sleep disturbances and suicide. Sleep Med. 2020;70:124.
  • 35
    Morin CM, Carrier J, Bastien C, Godbout R. Sleep and circadian rhythm in response to the COVID-19 pandemic. Can J Public Health. 2020;111:654-7.
  • 36
    Jahrami H, BaHammam AS, Bragazzi NL, Saif Z, Faris M, Vitiello MV. Sleep problems during the COVID-19 pandemic by population: a systematic review and meta-analysis. J Clin Sleep Med. 2021;17:299-313.
  • 37
    Bryson WJ. Circadian rhythm sleep-wake disorders and the COVID-19 pandemic. J Clin Sleep Med. 2020;16:1423.
  • 38
    Cellini N, Canale N, Mioni G, Costa S. Changes in sleep pattern, sense of time and digital media use during COVID-19 lockdown in Italy. J Sleep Res. 2020;29:e13074.
  • 39
    Bakhtiyari M, Ehrampoush E, Enayati N, Joodi G, Sadr S, Delpisheh A, et al. Anxiety as a consequence of modern dietary pattern in adults in Tehran—Iran. Eat Behav. 2013;14:107-12.
  • 40
    Sprung JM, Rogers A. Work-life balance as a predictor of college student anxiety and depression. J Am Coll Health. 2020 Jan 23;1-8. doi: 10.1080/07448481.2019.1706540. Online ahead of print.
  • 41
    Yek MH, Olendzki N, Kekecs Z, Patterson V, Elkins G. Presence of meaning in life and search for meaning in life and relationship to health anxiety. Psychol Rep. 2017;120:383-90.

Publication Dates

  • Publication in this collection
    30 May 2022
  • Date of issue
    2022

History

  • Received
    21 July 2021
  • Accepted
    23 Aug 2021
Associação de Psiquiatria do Rio Grande do Sul Av. Ipiranga, 5311/202, 90610-001 Porto Alegre RS/ Brasil, Tel./Fax: (55 51) 3024 4846 - Porto Alegre - RS - Brazil
E-mail: trends@aprs.org.br