Skip to main content

ORIGINAL RESEARCH article

Front. Neuroinform., 10 February 2022
Volume 16 - 2022 | https://doi.org/10.3389/fninf.2022.807584

Viability Study of Machine Learning-Based Prediction of COVID-19 Pandemic Impact in Obsessive-Compulsive Disorder Patients

María Tubío-Fungueiriño1,2,3† Eva Cernadas4† Óscar F. Gonçalves5,6 Cinto Segalas7,8,9,10 Sara Bertolín7,8 Lorea Mar-Barrutia7 Eva Real7,8,10 Manuel Fernández-Delgado4 Jose M. Menchón7,8,9,10 Sandra Carvalho11 Pino Alonso7,8,9,10 Angel Carracedo1,12,13,14‡ Montse Fernández-Prieto1,2,12,13*‡
  • 1Genomics and Bioinformatics Group, Center for Research in Molecular Medicine and Chronic Diseases (CiMUS), Universidade de Santiago de Compostela (USC), Santiago de Compostela, Spain
  • 2Fundación Instituto de Investigación Sanitaria de Santiago de Compostela (FIDIS), Santiago de Compostela, Spain
  • 3Grupo de Medicina Xenómica, Universidade de Santiago de Compostela (USC), Santiago de Compostela, Spain
  • 4Centro Singular de Investigación en Tecnoloxías Intelixentes (CiTIUS), Universidade de Santiago de Compostela (USC), Santiago de Compostela, Spain
  • 5Proaction Lab, Faculty of Psychology and Educational Sciences, University of Coimbra, Coimbra, Portugal
  • 6Department of Physical Medicine and Rehabilitation, Spaulding Neuromodulation Center, Spaulding Rehabilitation Hospital and Harvard Medical School, Boston, MA, United States
  • 7OCD Clinical and Research Unit, Psychiatry Department, Hospital Universitari de Bellvitge, Barcelona, Spain
  • 8Institut d’ Investigació Biomèdica de Bellvitge (IDIBELL), L’Hospitalet de Llobregat, Barcelona, Spain
  • 9Department of Clinical Sciences, University of Barcelona, Barcelona, Spain
  • 10CIBERSAM (Centro de Investigación en Red de Salud Mental), Instituto de Salud Carlos III, Madrid, Spain
  • 11Translational Neuropsychology Lab, Department of Education and Psychology and William James Center for Research (WJCR), University of Aveiro, Campus Universitário de Santiago, Aveiro, Portugal
  • 12Genetics Group GC05, Instituto de Investigación Sanitaria de Santiago (IDIS), Santiago de Compostela, Spain
  • 13Grupo de Medicina Xenómica, Centro de Investigación en Red de Enfermedades Raras (CIBERER), Universidade de Santiago de Compostela (USC), Santiago de Compostela, Spain
  • 14Fundación Pública Galega de Medicina Xenómica, Servicio Galego de Saúde (SERGAS), Santiago de Compostela, Spain

Background: Machine learning modeling can provide valuable support in different areas of mental health, because it enables to make rapid predictions and therefore support the decision making, based on valuable data. However, few studies have applied this method to predict symptoms’ worsening, based on sociodemographic, contextual, and clinical data. Thus, we applied machine learning techniques to identify predictors of symptomatologic changes in a Spanish cohort of OCD patients during the initial phase of the COVID-19 pandemic.

Methods: 127 OCD patients were assessed using the Yale–Brown Obsessive-Compulsive Scale (Y-BOCS) and a structured clinical interview during the COVID-19 pandemic. Machine learning models for classification (LDA and SVM) and regression (linear regression and SVR) were constructed to predict each symptom based on patient’s sociodemographic, clinical and contextual information.

Results: A Y-BOCS score prediction model was generated with 100% reliability at a score threshold of ± 6. Reliability of 100% was reached for obsessions and/or compulsions related to COVID-19. Symptoms of anxiety and depression were predicted with less reliability (correlation R of 0.58 and 0.68, respectively). The suicidal thoughts are predicted with a sensitivity of 79% and specificity of 88%. The best results are achieved by SVM and SVR.

Conclusion: Our findings reveal that sociodemographic and clinical data can be used to predict changes in OCD symptomatology. Machine learning may be valuable tool for helping clinicians to rapidly identify patients at higher risk and therefore provide optimized care, especially in future pandemics. However, further validation of these models is required to ensure greater reliability of the algorithms for clinical implementation to specific objectives of interest.

Introduction

The COVID-19 outbreak, declared on March 11, 2020 by the World Health Organization (WHO), caused an increase in symptoms of anxiety, distress and depression in the general population, due to the uncertainty of the situation. People with mental disorders experienced worsening of symptoms and, in particular, OCD patients were affected by the general measures implemented to prevent the spread of COVID-19 infections (such as hand-washing and social distancing) (Banerjee, 2020; Benatti et al., 2020; French and Lyne, 2020; Jelinek et al., 2020; Matsunaga et al., 2020).

Obsessive-Compulsive Disorder (OCD) is a psychiatric condition affecting 2–4% of the population and it is characterized by frequent, intrusive and threatening thoughts, images and ideas (obsessions) which the individual tries to control through repetitive behaviors and thoughts (compulsions) (Geller, 2006; American Psychiatric Association [APA], 2013).

Evidence suggests that people with OCD suffered a substantial impact with the current pandemic (French and Lyne, 2020; Jelinek et al., 2020; Alonso et al., 2021), especially those with contamination-related and washing-related compulsions (Fontenelle and Miguel, 2020). A recent study by Alonso et al. (2021) during the initial (and acute) stage of the lockdown in Spain showed that OCD patients experienced symptoms worsening and the appearance of COVID-19-related obsessions (e.g., fear of getting infected by SARS-CoV2). However, it was also stressed that the majority of the OCD patients (as compared to healthy controls) showed adaptive coping strategies with the emotional distress caused by the lockdown. This impact may have been moderated by several socio-emotional variables, such as resilience strategies involving online communication with relatives, physical self-care and adequate financial state (Alonso et al., 2021). It is therefore important to identify those patients at higher risk of worsening symptomatology during the pandemic in order to improve the support provided for such patients in a similar situation in the future.

The risk of worsening symptomatology can be predicted by using machine learning models, which have proved valuable in the field of psychiatry (Bzdok and Meyer-Lindenberg, 2018; Dwyer et al., 2018; Janssen et al., 2018; Xu et al., 2019; Eslami et al., 2021) for predicting the appearance of symptoms and changes in the prognosis of some disorders such as depression, anxiety and psychosis, with the aim of providing appropriate psychological and/or pharmacological treatments. Machine learning has also proved useful for predicting changes in symptomatology in OCD patients over time (Hoexter et al., 2013; Agne et al., 2020) and for predicting the severity of OCD symptoms in combination with other methods (Hoexter et al., 2013). The algorithms used in machine learning can identify and rank the most important variables for predicting a specific outcome of interest, and they are particularly useful for guiding the design of clinical studies.

For several years, the world has been alerted to the possibility of the occurrence of global pandemics. Since 2014, when the Ebola epidemic emerged in West Africa, there has been talk of the possibility of a SARS pandemic that would entail devastating economic losses worldwide (Castillo-Chavez et al., 2015). Scientists continue to maintain this discourse, warning that other pandemics, like that caused by COVID-19, will occur (Dodds, 2019; Howard et al., 2020; Mason and Friese, 2020).

It is important have tools to predict how the severity of psychiatric patients’ symptoms might change with the onset of a new pandemic.

The main objective of this study was to predict clinical changes in a cohort of OCD patients during the initial stages of the COVID-19 pandemic, based on contextual, sociodemographic and clinical variables, by using advanced machine learning models. Being able to predict worsening symptoms in conditions similar to the COVID-19 pandemic will guide the development of more effective treatments for such patients in future pandemics.

Materials and Methods

Participants

A total of 127 adults with OCD with ages between 18 and 65 years old (68 females; mean = 41.88 years old, SD = 11.87; 59 males; mean = 42.34, SD = 10.91) participated in this study. Sociodemographic and clinical characteristics of the sample can be consulted in Table 1. All the participants had previously received the OCD diagnosis by a qualified clinician following the OCD criteria established by the Diagnostic and Statistical Manual of Mental Disorders, fourth edition (DSM-IV), revised fourth edition (DSM-IV-TR) and fifth edition (DSM-5). All patients were previously assessed (at least 1 year before March 2020) by experienced clinicians in the OCD Clinical and Research Unit of the Department of Psychiatry, Hospital de Bellvitge, Barcelona, Spain, and were under pharmacological treatment and/or cognitive behavioral therapy. By the moment of the evaluation, patients who were under pharmacological treatment should be receiving a maintained dose for at least 3 months before the application of the semi-structured interview. Table 1 shows the type of treatment prescribed in the sample, the number of people with CBT associated with pharmacological treatment and the different comorbidities in the sample.

TABLE 1
www.frontiersin.org

Table 1. Sociodemographic data of the sample.

Exclusion criteria included dependence or history of substance abuse in the 6 months prior to the study and diagnosis of any psychotic disorders or autism spectrum disorders. Verbal consent for participation was formally recorded by research and clinical staff. Written consent was obtained in accordance with the Declaration of Helsinki, and the study was approved by the Ethics Committee of Hospital de Bellvitge.

Questionnaires

As a consequence of the restrictions regarding face-to-face interviews, questionnaires and a semi-structured interview were administered by telephone, by a mental health professional known to the OCD patients. The questionnaire covered six thematic blocks focusing on the participant’s social and demographic data, social context during pandemic, contact with COVID-19, psychiatric condition prior to the pandemic, strategies used to regulate stress during quarantine and the clinical consequences on OCD symptomatology of the COVID-19 pandemic.

The variables forming part of the first five blocks were used as input variables to construct a predictive model for each output variable (consisting of symptoms caused by COVID-19). These variables will be referred to hereafter as the full set of input variables:

1. Sociodemographic data: age, gender, high-risk occupation and economic income during the pandemic.

2. Social context during the pandemic: cohabitants, relatives with mental illness, dependents, changes in family cohabitation and environment, perception of family support, and leaving home.

3. Contact with COVID-19: diagnosis of COVID-19 in a friend, relative or the participant themselves and daily time spent obtaining information about COVID-19 during the pandemic.

4. Previous psychiatric conditions: age of onset of OCD and duration in years, OCD subtype, current therapy and type of response, Y-BOCS and HDRS scores and daily hours dedicated to rituals.

5. Emotional regulation and coping strategies for stress: fears related to or caused by the COVID-19 pandemic and engagement in distracting activities.

Machine Learning Techniques

Machine learning has been successfully applied to a wide variety of fields in the modeling of many real problems. A machine learning model learns to predict the output data as a function of the input data in a process called training, that uses a collection of examples that include input variables (in our case, participants’ information) and output variables (in our case, participants’ symptomatology or development of comorbidities). Once the model is trained, it can generalize its prediction to new data not used during training. When the output data takes a limited number of unordered values, they are considered as class labels and the models are called classifiers. When the output takes continuous values, the model is a regressor.

The classification was performed using the Linear Discriminant Analysis (LDA), implemented in the R statistical computing language, included as a simple linear classifier with a baseline performance. The Support Vector Machine (SVM) with radial basis function (RBF) kernel was also selected because it achieved a good performance in our previous generic comparative study (Fernández-Delgado et al., 2014). Specifically, the SVM was implemented by the LibSVM library (Chang and Lin, 2011) and accessed through its Octave binding, tuning the regularization parameter and the RBF kernel spread. The regression was performed using the multivariate Linear Regression Model (LM), also implemented in R, included as a linear method with baseline performance. The epsilon-Support Vector Regressor (SVR) was selected because it achieved a good performance in our recent comparison study (Fernández-Delgado et al., 2019). It also used RBF kernel, tuning the regularization parameter and RBF kernel width as in classification.

With the aim of anticipating the situation of patients diagnosed with OCD in a pandemic context, several output variables that are useful for clinicians were predicted:

1. Patients’ scores on the Y-BOCS during pandemic, that anticipate the changes in symptomatology. This variable takes continuous values ranging from 0 to 40 and gives a regression problem.

2. Appearance of obsessions and/or compulsions related to COVID-19, with values “yes” or “not,” that gives a classification problem.

3. Scores of self-perceived anxiety symptoms, taking continuous values between 0 and 10 and giving a regression problem.

4. Self-perceived depression symptoms, also taking continuous values between 0 and 10 and giving a regression problem.

5. Suicidal thoughts take three possible values “no suicidal thoughts,” “thoughts about death” or “thoughts about suicide,” that gives a classification problem.

6. Need for urgent psychiatric care, with values “yes” or “not,” that gives a classification problem.

Prediction of each of these outputs requires the construction of a specific machine learning classifier or regressor, depending on the output. Both models for classification (LDA and SVM) and regression (LR and SVR) use the whole set of variables including continuous and discrete ones.

Evaluation Methodology

The performance of machine learning models in classification problems is measured using Cohen’s kappa value (K), that evaluates the agreement between the true and predicted categories labels excluding the agreement by chance (McHugh, 2012). The kappa (in %) is defined for classification problems as:

κ = 100 p a - p e s - p e p a = i = 1 N C i i p e = 1 N 2 i = 1 C ( j = 1 C C i j ) ( j = 1 C C j i ) s = i = 1 C j = 1 C C i j

where C is the number of categories, while Cij is the amount of patients of class i that are predicted as of class j. The higher kappa, the better classifier, that is perfect when kappa = 100%. Classical definition for the kappa intervals and their significance (McHugh, 2012) considers that a kappa value between 1 and 20 means that the concordance between predicted and real category is slight; from 21 to 40, the concordance is fair; from 41 to 60, it is moderate; from 61 to 80, it is substantial; and more than 80 the classification is almost perfect. When the number of classes is C = 2 (sick and healthy), let the true positive (TP) be the number of sick people correctly identified as sick, the false positive (FP) be the number of healthy people incorrectly identified as sick, the true negative (TN) be the number of healthy people correctly identified as healthy, and false negative (FN) be the number of sick people incorrectly identified as healthy. The confusion matrix (Table 2) allows the visualization of performance of the classifier’s prediction:

TABLE 2
www.frontiersin.org

Table 2. Confusion matrix for a two-class classification problem, where the number in the i-th row and j-th column is Cij.

Each column in the matrix represents the patients in the predicted class while each row represents the patients in the true class. The sensitivity (Se) refers to the classifier’s ability to correctly detect sick patients while the specificity (Sp) relates the classifier’s ability to correctly reject healthy patients, according to these definitions:

S e = 100 T P T P + F N S p = 100 T N T N + F P

Finally, another performance measure for classification with two-classes is the area under the ROC curve (AUC), also in %. The ROC curve is defined by the sensitivity plotted against 100-specificity when the classifier behavior changes from assigning all the patterns to one class to assign all the patterns to the other class. In regression problems, the most popular measures are the Fisher correlation coefficient (R) and the root mean squared error (RMSE), defined as:

R = i = 1 N ( y i - y ¯ ) ( o i - o ¯ ) [ i = 1 N ( y i - y ¯ ) 2 ] [ i = 1 N ( o i - o ¯ ) 2 ]
R M S E = 1 N i = 1 N ( y i - o i ) 2

where N is the number of patients, yi and oi are, respectively, the predicted value by the model and the true value for i-th patient, while y¯ and o¯ are the average values of yi and oi, respectively. Classical definition (Colton, 1974) for the correlation intervals and their significance considers that a R value between 0 and 0.15 means that the true and predicted values for each patient are not correlated at all; R between 0.15 and 0.5 means bad to moderate correlation between them; R between 0.5 and 0.75 means moderate to good correlation; and R > 0.75 means very good to excellent correlation. Another measure of the prediction accuracy is MAE (Mean Absolute Error), defined as the average absolute difference between the predicted and true output values:

M A E = 1 N i = 1 N | y i - o i |

In our study, we use a fourfold cross-validation to estimate the model performance. In the i-th trial, with i = 1,…,4, the i-th fold is left for testing, and the remaining threefold are used to configure (i.e., to train and tune) the model. Since most of the models have one or several hyper-parameters whose values must be tuned in order to get the best available performance, two of these threefold are used to train the model using a given combination of hyper-parameter values, while the remaining fold is used as the so called “validation set” to evaluate the performance of this trained model. The process is repeated for the different combinations of hyper-parameter values, and the combination with the highest performance on the validation set is selected. Finally, the model trained with the training and validation set using the best combination of hyper-parameter values is tested on the i-th fold, which was devoted to the test. This process is repeated for i = 1,…,4 and the test performance is averaged over the fourfold.

Results

Sociodemographic and Clinical Characteristics

The sample used in this study comprised 127 participants (53.5% women). The participants ranged in age from 18 to 64 years (average age 42 years, SD = 11.3 years). The mean age of onset of the disorder was at age 17.5 years (SD = 6.2). The mean severity of OCD prior to the pandemic was 17.9 points, and the mean score for symptoms of depression was 10.83 points. Of the 127 participants, 17 lived alone (13%), 40 lived with their birth family (32%), 67 lived with their own family (53%), and 3 lived with friends (2%). In addition, 54 participants were employed (42%), 16 were unemployed (13%), 53 were pensioners (42%), and 4 were students (3%). Finally, 14 participants (11%) were living with other people with psychiatric disorders.

Prediction of Symptoms Based on Regression Analysis

Regarding the regression analysis, the correlation (R) and Mean Absolute Error (MAE) for the outputs Y-BOCS during the pandemic, self-perceived depression and self-perceived anxiety are shown in Table 3. Analyses were conducted with and without gender as an input variable (columns with and without G in the tables below, respectively). Prediction of the Y-BOCS during the pandemic was more reliable when the SVR regressor was used, without any clear importance in relation to gender (R = 0.94 in both cases, MAE = 2.13 including gender and MAE = 2.14 excluding this information). Following the Colton criterion (Colton, 1974), the prediction varied from good to excellent. In order to represent the meaning of this data from a clinical perspective, the reliability of the prediction reported by the model is shown in Figures 1A,B. The output Y-BOCS during the pandemic is represented in Figure 1A. The blue line represents the true values, the green lines define a tolerance threshold of ± 3, and red dots are the values of Y-BOCS during the pandemic predicted by the model. The red dots lying within green lines represent patients for whom the prediction of Y-BOCS during the pandemic was wrong in less than 3 of the true scores (indicating that 76.47% of the patients were correctly classified within this tolerance threshold). This tolerance threshold is related to MAE. Correct classifications for different tolerances (t) were as follows: 15.44% of the patients were classified within t = 0, where true and predicted values were equal. In the case of t = 1 (Y-BOCS during the pandemic was predicted within a tolerance threshold of ± 1), 44.85% of the patients fit within this threshold, while 65.44% of the patients were correctly classified with t = 2, and 76.47% of the patients were correctly classified within t = 3. The percentage of patients correctly classified within different tolerances in Y-BOCS during pandemic is represented in Figure 1B. Almost 100% of the patients were correctly classified within a tolerance threshold of ± 6.

TABLE 3
www.frontiersin.org

Table 3. Correlation R and MAE using the SVR and LR regressors with and without gender (columns I and I+G, respectively).

FIGURE 1
www.frontiersin.org

Figure 1. (A) Graphical representation of Y-BOCS during the pandemic without inclusion of gender and using the regressor SVR. (B) Percentage of patients correctly classified within different tolerances for Y-BOCS during pandemic using the SVR regressor.

For self-perceived depression, the prediction was improved by using the SVR regressor and including gender (MAE = 1.51 and R = 0.68). Prediction of self-perceived anxiety was improved by using the SVR regressor but only considering the inputs taking MAE as criterion (MAE = 1.76 and R = 0.53). When R was used as a criterion, the prediction was improved by including gender (MAE = 1.85 and R = 0.58). Following the Colton criterion, the prediction varied from moderate to good for self-perceived depression and self-perceived anxiety. All of the results for prediction of each variable are presented in Table 3. Graphical representations for predicting these two outputs are shown in Figures 2A,B (Figure 2A for self-perceived depression and Figure 2B for self-perceived anxiety) with four different thresholds: t = 0, t = 1, t = 2, and t = 3.

FIGURE 2
www.frontiersin.org

Figure 2. (A) Graphical representation of self-perceived depression using the regressor SVR. Correct classifications were obtained for different tolerances: for t = 0, 26.52% of the patients were correctly classified; for t = 1, 57.58% were correctly classified; for t = 2, 80.30% were correctly classified; and for t = 3, 90.91% were correctly classified. (B) Graphical representation of self-perceived anxiety using the regressor SVR. Correct classifications were obtained for different tolerances: for t = 0, 21.97% of the patients were correctly classified; for t = 1, 43.94% were correctly classified; for t = 2, 70.45% were correctly classified; and for t = 3, 87.12% were correctly classified.

Prediction of Symptoms Based on Classification Analysis

The kappa value obtained when SVM and LDA were used for the classification of new obsessions and/or compulsions related to COVID-19 infection (2 classes), suicidal thoughts (3

classes) and need for urgent psychiatric care (2 classes), and are reported in Table 4. In the first and third datasets, that have 2 classes, the AUC is also reported by Table 4. Prediction of obsessions and/or compulsions related to COVID-19 was perfect (kappa = AUC = 100%) with the SVM classifier including inputs and gender. For the remaining outputs, the results were adequate, with kappa values of between 21 and 40%: suicidal thoughts (kappa = 38.9% using LDA without gender information), and need for urgent psychiatric care (kappa = 32.3% using SVM including gender information). In this case, both classes are very unbalanced (only 6.3% of patients required urgent care). Thus, the AUC (80.9%), that does not consider the class unbalance, is much higher than kappa.

TABLE 4
www.frontiersin.org

Table 4. Kappa and AUC (only for two-class problems) values, in percentages, yielded by SVM and LDA classifiers with and without gender as input (columns I and I+G, respectively).

With the aim of explaining the meaning of a specific kappa value, we present the confusion matrix for suicidal thoughts with the inputs and the classifier LDA (kappa = 38.9%) in Table 5. The values in the table are means for all patients. The sum of the elements in the diagonal represents the patients correctly classified by the computer (64.7% of patients), and the elements outside of the diagonal represent erroneously classified patients (35.3%). Type 3 patients (suicidal thoughts) were classified as type 2 (thoughts about death) or type 3, but never as type 1 (no suicidal thoughts). Only 11.8% of the patients were erroneously classified by the computer as type 2 or 3, after not reporting any thoughts about death or suicidal thoughts, threat or attempts. Thus, the classifier yielded a sensitivity of 78.9% and a specificity of 88.1% in predicting the absence of suicidal thoughts.

TABLE 5
www.frontiersin.org

Table 5. Confusion matrix for Suicidal thoughts using the LDA classifier and excluding gender from the inputs (kappa = 38.9%).

Re-analysis Using the Most Relevant Variables in Each Output

The objective of the analysis was to make predictions based on a large number of variables covering all the questions in the questionnaire, referred to in this study as the full set of input variables. In addition, we analyzed which variables had the greatest weight in predicting each of the outputs, in order to create reliable models with as few variables as possible. To calculate the relevance of the variables, we used the fss function of the nan package of the Octave software, that uses the Feature Subset Selection and Feature Ranking method (Peng et al., 2005) based on Pearson’s correlation. For each output, the best classifier or regressor was tested removing the variables sorted by increasing relevance (i.e., less relevant variables are removed first).

The expectable behavior is that performance gradually degrades as the number of variables reduces. This degradation should be slow at the beginning, where the less relevant variables are discarded, and fast when more relevant variables are removed. This behavior was observed in the majority of the outputs, such as Perceived depression or Need for urgent psychiatric care. There were, however, some exceptions. Regarding classification, the performance to predict Suicidal thoughts (Figure 3) raised from 38.9 to 54.1% by keeping the 16 most relevant variables (Trust, OCD onset, Aggressive, Mental, Previous YBOCS, Diagnosis, OCD years, Magical, Exit pattern, Support, Previous depression, Contamination, Sexual, Hours info, Recreation, and Fear). In Supplementary Material it can be seen the complete variables to which each keyword refers and the type of variable (i.e. binary, continuous or ordinal) each one is. As well, using only the most relevant variable (Sexual Subtype), the SVM predicted Obsessions and compulsions with the same kappa (100%) as using the whole set (28 variables). Considering regression, the SVR using only the most relevant variable Ritual hours achieved R = 0.90, very near to the maximum value R = 0.94 achieved with all the variables, in the prediction of Y-BOCS during the pandemic, even excluding the Previous Y-BOCS variable.

FIGURE 3
www.frontiersin.org

Figure 3. Performance of LDA to predict Suicidal thoughts reducing the set of variables by increasing relevance.

Discussion

This validity study aimed to demonstrate the reliability and usefulness of using machine learning models to predict symptomatology changes in a cohort of OCD patients during the COVID-19 pandemic based on pre-pandemic sociodemographic and clinical data. Worsening of OCD symptoms prediction or the emergence of new symptomatology is important in situations such as pandemics, as it could help clinicians to prescribe individually tailored interventions to patients at risk. The results of our predictive analysis based on the full set of input variables was useful for a reliable prediction of the outputs. Specifically, the interview provided very good reliability regarding prediction of changes in general OCD symptomatology and in COVID-19 related symptoms, as well as prediction of OCD comorbid symptoms such as depression or anxiety.

Regarding the reliability prediction of Y-BOCS during the pandemic, almost 100% correct classification was achieved in a ± 6 threshold. The model may fail to classify the patient’s severity range especially if the score difference is very small. However, if the difference falls above or below 6, the model shows very good prediction, wish can be crucial to detect changes in the severity level of OCD, especially in the cases in which subjects have scores in the YBOCS that are in the cutting edge to change to a different severity level (e.g., change from mild to moderate or moderate to severe).

Prediction of changes in symptoms during the initial stages of the pandemic was important to enable provision of appropriate and timely support to high-risk patients. Evidence of worsening of OCD symptoms during the pandemic has been reported, especially in symptoms, such as compulsive hand-washing, related to the measures implemented to prevent COVID-19 infections (French and Lyne, 2020; Alonso et al., 2021; Wheaton et al., 2021), in both adult and pediatric populations (Nissen et al., 2020; Sulaimani and Bagadood, 2020). In addition, recovered and partially recovered patients experienced significant worsening of symptoms during the pandemic (Matsunaga et al., 2020; Tanir et al., 2020) such patients should be included in the population at risk of worsening symptomatology. Previous studies have systematically reported that stress can worsen OCD symptoms and, also, that stressful situations may act as a trigger for the onset of (new) OCD symptoms (Davide et al., 2020). This is particularly important in a context such as the early stages of a pandemic.

Anxiety and depression were by far the most commonly reported psychological symptoms in OCD patients (Silva et al., 2020; Alonso et al., 2021) during the COVID-19 pandemic. As OCD patients are more vulnerable to developing emotional problems throughout their life, it is anticipated that they may be more prone to experiencing emotional and mood disturbances during exposure to prolonged stressful situations (Silva et al., 2020), such as a pandemic. With our methodology, we can also fairly reliably predict how patients with OCD will perceive their levels of anxiety and depression. If this self-perception is elevated, the patients are likely to need more psychiatric support. In the case of the self-perception of anxious symptoms, as the chance of wrong prediction is not very high, we may still detect alarm signs that require clinical evaluation. Regarding the self-perception of depressive symptoms, as the range of error was also low when the gender of the patient was included, we can consider that the prediction of these emotional symptoms was quite reliable. Rossi et al. (2020) reported an increase in depressive and anxious symptoms in the Italian population with a positive association with gender (with females at greater risk of suffering emotional comorbidities).

Regarding the remaining outputs (need for urgent psychiatric care and suicidal thoughts), the models yielded a low level of agreement between the true and the predicted value. For need for urgent psychiatric care, the reliability was improved by including gender. Predicting comorbid symptomatology is very important for the prognosis of OCD patients. Recent studies have reported sleep problems (Banerjee, 2020; Alonso et al., 2021), suicidal ideation (Alonso et al., 2021) and emotional symptoms (Silva et al., 2020; Alonso et al., 2021), as the symptoms emerging during the COVID-19 pandemic in OCD patients. In the present study, the values predicted for some symptoms (e.g., suicidal ideation) were weakly correlated with the true values. For those variables for which the model did not yield highly reliable predictions, professionals must be alert to the symptoms that may arise in a future situation of confinement. Considering the capacity of the model to classify the three possible groups of suicidal thoughts (i.e., absence of suicidal thoughts, thoughts about death or suicidal ideation), the model fairly highly reliably predicted which patients will not present suicidal ideation. However, the model was less reliable for differentiating between patients who have thoughts about death and those who present autolytic ideation. Mental health professionals should be aware of the need to identify the type of thoughts that patients may present.

Gender information seems to be irrelevant for predicting many outputs, as the differences in model quality (kappa in classification and correlation in regression) were generally very small. Thus, gender information may be implicitly included in some of the other input variables, providing the information needed in those cases.

This study has the following limitations: generality of the results to the OCD population needs to be considerate with caution, and the since the sample size used in this preliminary study is small. In addition, due to pandemic-related restrictions, the evaluations were performed by phone, which may have been less effective that face-to-face clinical evaluation in detecting clinical changes in the symptomatology. Also, we did not include the type of pharmacological treatment in the model, nor the comorbid disorders that patients presented. We did not consider variations in pharmacological treatment (type and dosage) over the examined period due to patients’ worsening that could be interesting to predict.

Future Implications

We constructed relatively reliable and accurate predictive models for OCD symptoms during the COVID-19 pandemic, providing useful information about the most relevant variables for predicting worsening of symptomatology among OCD patients during a pandemic situation. The present results should be taken into account in developing preventive measures for the OCD population at risk of worsening symptoms. Prediction of other symptoms such as emotional traits could prevent suffering in OCD patients, who would otherwise have to seek urgent care in mental health units in a pandemic situation. Prediction of symptoms during a pandemic may not require an extensive battery of clinical measures in order to distinguish between patients at higher risk of worsening of symptoms from those at lower risk and, therefore, to ensure provision of timely and appropriate clinical support.

Prediction of symptoms also has important benefits to the general population. The maintenance of scheduled consultations by telephone as opposed to unnecessary constant monitoring of OCD patients could help decongest mental health services, enabling more efficient distribution of human resources to attend to people who develop new comorbidities and new mental health problems caused by the pandemic (Moreno et al., 2020), such as pandemic fatigue. Prior knowledge of OCD patients at risk will enable more targeted control even without the need for face-to-face consultation. This will help prevent possible infections by minimizing exposure in the hospital environment and also help to stabilize OCD symptoms by allowing patients to remain in the controlled home environment.

Machine learning models are important techniques for identifying sets of predictors in OCD patients, with implications for clinicians and researchers. Our study may serve as proof of viability for future applications of the machine learning models developed. This method could be used to develop a software application that could be used in psychiatric services, acting as an alarm system to predict changes or new symptomatology to be developed by patients under a future pandemic situation, and clinicians should be aware of this information.

Conclusion

In conclusion, our study provides evidence that artificial intelligence can be used efficiently to predict the psychological impact of a pandemic in OCD patients. Some of the most important symptoms in this context can be predicted by using a machine learning model in changes in Y-BOCS scores and the appearance of OCD symptomatology related to COVID-19. These models may be of great support for clinicians to provide optimized and personalized care to people with a high risk of suffering mental health problems during situations such as a pandemic. When prediction of symptoms is not reliable, clinicians should consider other symptoms that patients may display. Further validation of the models is required in order to enable clinical implementation of the current findings.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.

Ethics Statement

The studies involving human participants were reviewed and approved by the Ethics Committee of Hospital de Bellvitge. The patients/participants provided their written informed consent to participate in this study.

Author Contributions

MT-F: conceptualization, methodology, investigation, writing—original draft, writing—review and editing, and visualization. EC: conceptualization, methodology, software, validation, formal analysis, writing—original draft, and writing—review and editing. ÓG: resources, writing—original draft, writing—review and editing, and supervision. CS, SB, LM-B, and ER: investigation, resources, and writing—review and editing. MF-D: methodology, software, validation, formal analysis, and writing—review and editing. JM and AC: resources, writing—review and editing, and supervision. SC: conceptualization, methodology, resources, writing—original draft, and writing—review and editing. PA: conceptualization, methodology, investigation, resources, writing—original draft, and writing—review and editing. MF-P: conceptualization, methodology, investigation, writing—original draft, writing—review and editing, visualization, and project administration. All authors contributed to the article and approved the submitted version.

Funding

MT-F, AC, and MF-P acknowledged Fundación María José Jove for the support of this work. This study has been funded by Instituto de Salud Carlos III (COV20_00622) and cofunded by European Union (ERDF) “A way of making Europe” and Covid funds of Fundación Amancio Ortega and Banco de Santander. EC and MF-D were funded by Xunta de Galicia under accreditation 2019-2022 ED431G-2019/04. SC receives scholarship and support from the Portuguese Foundation for Science and Technology (FCT), co-funded through COMPETE 2020 – PO Competitividade e Internacionalização/Portugal 2020/European Union, FEDER (Fundos Europeus Estruturais e de Investimento – FEEI) under the number:PTDC/PSI-ESP/29701/2017. CS, SB, LM-B, ER, JM, and PA acknowledged Carlos III Health Institute (PI16/00950, PI18/00856) and FEDER funds (“A way to build Europe”), as well as CERCA Programme/Generalitat de Catalunya for institutional support.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Publisher’s Note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary Material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fninf.2022.807584/full#supplementary-material

References

Agne, N. A., Tisott, C. G., Ballester, P., Passos, I. C., and Ferrão, Y. A. (2020). Predictors of suicide attempt in patients with obsessive-compulsive disorder: an exploratory study with machine learning analysis. Psychol. Med. 1–11. doi: 10.1017/S0033291720002329

PubMed Abstract | CrossRef Full Text | Google Scholar

Alonso, P., Bertolín, S., Segalàs, J., Tubío-Fungueiriño, M., Real, E., Mar-Barrutia, L., et al. (2021). How is COVID-19 affecting patients with obsessive-compulsive disorder? A longitudinal study on the initial phase of the pandemic in a Spanish cohort. Eur. Psychiatry 64:e45. doi: 10.1192/j.eurpsy.2021.2214

PubMed Abstract | CrossRef Full Text | Google Scholar

American Psychiatric Association [APA] (2013). Diagnostic and Statistical Manual of Mental Disorders: DSM-5, 1st Edn. Washington, DC: American Psychiatric Association.

Google Scholar

Banerjee, D. D. (2020). The other side of COVID-19: impact on obsessive compulsive disorder (OCD) and hoarding. Psychiatry Res. 288:112966. doi: 10.1016/j.psychres.2020.112966

PubMed Abstract | CrossRef Full Text | Google Scholar

Benatti, B., Albert, U., Maina, G., Fiorillo, A., Celebre, L., Girone, N., et al. (2020). What happened to patients with obsessive compulsive disorder during the COVID-19 pandemic? A multicentre report from tertiary clinics in Northern Italy. Front. Psychiatry 11:720. doi: 10.3389/fpsyt.2020.00720

PubMed Abstract | CrossRef Full Text | Google Scholar

Bzdok, D., and Meyer-Lindenberg, A. (2018). Machine learning for precision psychiatry: opportunities and challenges. Biol. Psychiatry Cogn. Neurosci. Neuroimaging 3, 223–230. doi: 10.1016/j.bpsc.2017.11.007

PubMed Abstract | CrossRef Full Text | Google Scholar

Castillo-Chavez, C., Curtiss, R., Daszak, P., Levin, S. A., Patterson-Lomba, O., Perrings, C., et al. (2015). Beyond Ebola: lessons to mitigate future pandemics. Lancet Glob. Health 3, e354–e355. doi: 10.1016/S2214-109X(15)00068-6

CrossRef Full Text | Google Scholar

Chang, C. C., and Lin, C. J. (2011). LIBSVM: a library for support vector machines. ACM Trans. Intell. Syst. Technol. (TIST) 2, 27. doi: 10.1145/1961189.1961199

CrossRef Full Text | Google Scholar

Colton, T. (1974). Statistic in Medicine. Boston, MA: Little, Brown and Company.

Google Scholar

Davide, P., Andrea, P., Martina, O., Andrea, E., Davide, D., and Mario, A. (2020). The impact of the COVID-19 pandemic on patients with OCD: effects of contamination symptoms and remission state before the quarantine in a preliminary naturalistic study. Psychiatry Res. 291:113213. doi: 10.1016/j.psychres.2020.113213

PubMed Abstract | CrossRef Full Text | Google Scholar

Dodds, W. (2019). “Disease now and potential future pandemics,” in The World’s Worst Problems, ed. W. Dodds (Cham: Springer), doi: 10.1007/978-3-030-30410-2_4

CrossRef Full Text | Google Scholar

Dwyer, D. B., Falkai, P., and Koutsouleris, N. (2018). Machine learning approaches for clinical psychology and psychiatry. Annu. Rev. Clin. Psychol. 14, 91–118. doi: 10.1146/annurev-clinpsy-032816-045037

PubMed Abstract | CrossRef Full Text | Google Scholar

Eslami, T., Almuqhim, F., Raiker, J. S., and Saeed, F. (2021). Machine learning methods for diagnosing autism spectrum disorder and attention-deficit/hyperactivity disorder using functional and structural MRI: a survey. Front. Neuroinform. 14:62. doi: 10.3389/fninf.2020.575999

PubMed Abstract | CrossRef Full Text | Google Scholar

Fernández-Delgado, M., Cernadas, E., Barro, S., and Amorim, D. (2014). Do we need hundreds of classifiers to solve real world classification problems? J. Mach. Learn. Res. 15, 3133–3181. doi: 10.1117/1.JRS.11.015020

CrossRef Full Text | Google Scholar

Fernández-Delgado, M., Sirsat, M. S., Cernadas, E., Alawadi, S., Barro, S., and Febrero-Bande, M. (2019). An extensive experimental survey of regression methods. Neural Netw. 111, 11–34. doi: 10.1016/j.neunet.2018.12.010

PubMed Abstract | CrossRef Full Text | Google Scholar

Fontenelle, L. F., and Miguel, E. C. (2020). The impact of COVID-19 in the diagnosis and treatment of obsessive-compulsive disorder. Depress. Anxiety 37, 510–511. doi: 10.1002/da.23037

PubMed Abstract | CrossRef Full Text | Google Scholar

French, I., and Lyne, J. (2020). Acute exacerbation of OCD symptoms precipitated by media reports of COVID-19. Ir. J. Psychol. Med. 37, 291–294.

Google Scholar

Geller, D. A. (2006). Obsessive-compulsive and spectrum disorders in children and adolescents. Psychiatr. Clin. North Am. 29, 353–370. doi: 10.1016/j.psc.2006.02.012

PubMed Abstract | CrossRef Full Text | Google Scholar

Hoexter, M. Q., Miguel, E. C., Diniz, J. B., Shavitt, R. G., Busatto, G. F., and Sato, J. R. (2013). Predicting obsessive–compulsive disorder severity combining neuroimaging and machine learning methods. J. Affect. Disord. 150, 1213–1216. doi: 10.1016/j.jad.2013.05.041

PubMed Abstract | CrossRef Full Text | Google Scholar

Howard, G., Bartram, J., Brocklehurst, C., Colford, J. M. Jr., Costa, F., Cunliffe, D., et al. (2020). COVID-19: urgent actions, critical reflections and future relevance of ‘WaSH’: lessons for the current and future pandemics. J. Water Health 18, 613–630. doi: 10.2166/wh.2020.162

PubMed Abstract | CrossRef Full Text | Google Scholar

Janssen, R. J., Mourão-Miranda, J., and Schnack, H. G. (2018). Making individual prognoses in psychiatry using neuroimaging and machine learning. Biol. Psychiatry Cogn. Neurosci. Neuroimaging 3, 798–808. doi: 10.1016/j.bpsc.2018.04.004

PubMed Abstract | CrossRef Full Text | Google Scholar

Jelinek, L., Moritz, S., Miegel, F., and Voderholzer, U. (2020). Obsessive-compulsive disorder during COVID-19: turning a problem into an opportunity? J. Anxiety Disord. 77:102329. doi: 10.1016/j.janxdis.2020.102329

PubMed Abstract | CrossRef Full Text | Google Scholar

Mason, D. J., and Friese, C. R. (2020). Protecting health care workers against COVID-19—and being prepared for future pandemics. JAMA Health Forum 1:e200353.

Google Scholar

Matsunaga, H., Mukai, K., and Yamanishi, K. (2020). Acute impact of the pandemic of COVID-19 on the phenomenological features in the full or partial remitted patients with obsessive-compulsive disorder (OCD). Psychiatry Clin. Neurosci. 74, 565–566. doi: 10.1111/pcn.13119

PubMed Abstract | CrossRef Full Text | Google Scholar

McHugh, M. L. (2012). Interrater reliability: the kappa statistic. Biochem. Med. 22, 276–282.

Google Scholar

Moreno, C., Wykes, T., Galderisi, S., Nordentoft, M., Crossley, N., Jones, N., et al. (2020). How mental health care should change as a consequence of the COVID-19 pandemic. Lancet Psychiatry 7, 813–824.

Google Scholar

Nissen, J. B., Højgaard, D. R. M. A., and Thomsen, P. H. (2020). The immediate effect of COVID-19 pandemic on children and adolescents with obsessive compulsive disorder. BMC Psychiatry 20:511. doi: 10.1186/s12888-020-02905-5

PubMed Abstract | CrossRef Full Text | Google Scholar

Peng, H. C., Long, F., and Ding, C. (2005). Feature selection based on mutual information: criteria of max-dependency, max-relevance, and min-redundancy. IEEE Trans. Pat. Anal. Mach. Intel. 27, 1226–1238. doi: 10.1109/TPAMI.2005.159

PubMed Abstract | CrossRef Full Text | Google Scholar

Rossi, R., Socci, V., Talevi, D., Mensi, S., Niolu, C., Pacitti, F., et al. (2020). COVID-19 pandemic and lockdown measures impact on mental health among the general population in Italy. Front. Psychiatry 11:790. doi: 10.3389/fpsyt.2020.00790

PubMed Abstract | CrossRef Full Text | Google Scholar

Silva, R. M., Shavitt, R. G., and Costa, D. L. (2020). Obsessive-compulsive disorder during the COVID-19 pandemic. Braz. J. Psychiatry 43, 108–108.

Google Scholar

Sulaimani, M. F., and Bagadood, N. H. (2020). Implication of coronavirus pandemic on obsessive-compulsive-disorder symptoms. Rev. Environ. Health 36, 1–8. doi: 10.1515/reveh-2020-0054

PubMed Abstract | CrossRef Full Text | Google Scholar

Tanir, Y., Karayagmurlu, A., Kaya, I., Kaynar, T. B., Türkmen, G., Dambasan, B. N., et al. (2020). Exacerbation of obsessive compulsive disorder symptoms in children and adolescents during COVID-19 pandemic. Psychiatry Res. 293:113363. doi: 10.1016/j.psychres.2020.113363

PubMed Abstract | CrossRef Full Text | Google Scholar

Wheaton, M. G., Ward, H. E., Silber, A., McIngvale, E., and Björgvinsson, T. (2021). How is the COVID-19 pandemic affecting individuals with obsessive-compulsive disorder (OCD) symptoms? J. Anxiety Disord. 81:102410.

Google Scholar

Xu, X., Wang, J., Peng, H., and Wu, R. (2019). Prediction of academic performance associated with internet usage behaviors using machine learning algorithms. Comput. Hum. Behav. 98, 166–173. doi: 10.1016/j.chb.2019.04.015

CrossRef Full Text | Google Scholar

Keywords: OCD, COVID-19, obsessive-compulsive disorder, Y-BOCS, machine learning, classification, regression

Citation: Tubío-Fungueiriño M, Cernadas E, Gonçalves ÓF, Segalas C, Bertolín S, Mar-Barrutia L, Real E, Fernández-Delgado M, Menchón JM, Carvalho S, Alonso P, Carracedo A and Fernández-Prieto M (2022) Viability Study of Machine Learning-Based Prediction of COVID-19 Pandemic Impact in Obsessive-Compulsive Disorder Patients. Front. Neuroinform. 16:807584. doi: 10.3389/fninf.2022.807584

Received: 02 November 2021; Accepted: 10 January 2022;
Published: 10 February 2022.

Edited by:

Jose M. Molina, Universidad Carlos III de Madrid, Campus de Colmenarejo, Spain

Reviewed by:

Enrico Collantoni, University of Padua, Italy
David Houghton, University of Texas Medical Branch at Galveston, United States

Copyright © 2022 Tubío-Fungueiriño, Cernadas, Gonçalves, Segalas, Bertolín, Mar-Barrutia, Real, Fernández-Delgado, Menchón, Carvalho, Alonso, Carracedo and Fernández-Prieto. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Montse Fernández-Prieto, montse.fernandez.prieto@usc.es

These authors share first authorship

These authors share last authorship

Download