Hostname: page-component-55f67697df-jr75m Total loading time: 0 Render date: 2025-05-09T20:11:18.990Z Has data issue: false hasContentIssue false

Identifying most important predictors for suicidal thoughts and behaviours among healthcare workers active during the Spain COVID-19 pandemic: a machine-learning approach

Published online by Cambridge University Press:  08 May 2025

Itxaso Alayo
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain Biosistemak Institute for Health Systems Research, Bilbao, Bizkaia, Spain Red de Investigación en Cronicidad, Atención Primaria y Promoción de la Salud RICAPPS-(RICORS), Instituto de Salud Carlos III (ISCIII), Madrid, Spain Department of Medicine and Life Sciences (MELIS), Universitat Pompeu Fabra, Barcelona, Spain
Oriol Pujol
Affiliation:
Departament de Matemàtiques i Informàtica, Universitat de Barcelona, Barcelona, Spain
Jordi Alonso
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain Department of Medicine and Life Sciences (MELIS), Universitat Pompeu Fabra, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
Montse Ferrer
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain Department of Medicine and Life Sciences (MELIS), Universitat Pompeu Fabra, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
Franco Amigo
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
Ana Portillo-Van Diest
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain Department of Medicine and Life Sciences (MELIS), Universitat Pompeu Fabra, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
Enric Aragonès
Affiliation:
Institut d’Investigació en Atenció Primària IDIAP Jordi Gol, Barcelona, Spain Atenció Primària Camp de Tarragona, Institut Català de la Salut, Tarragona, Spain
Andrés Aragon Peña
Affiliation:
Epidemiology Unit, Regional Ministry of Health, Community of Madrid, Madrid, Spain Fundación Investigación e Innovación Biosanitaria de AP, Comunidad de Madrid, Madrid, Spain
Ángel Asúnsolo Del Barco
Affiliation:
Department of Surgery, Medical and Social Sciences, Faculty of Medicine and Health Sciences, University of Alcala, Alcalá de Henares, Spain Ramón y Cajal Institute of Sanitary Research (IRYCIS), Madrid, Spain Department of Epidemiology and Biostatistics, Graduate School of Public Health and Health Policy, The City University of New York, New York, NY, USA
Mireia Campos
Affiliation:
Service of Prevention of Labor Risks, Medical Emergencies System, Generalitat de Catalunya, Barcelona, Spain
Meritxell Espuga
Affiliation:
Occupational Health Service, Hospital Universitari Vall d’Hebron, Barcelona, Spain
Ana González-Pinto
Affiliation:
BIOARABA, Hospital Universitario Araba-Santiago, UPV/EHU, Vitoria-Gasteiz, Spain CIBER Salud Mental (CIBERSAM), Madrid, Spain
Josep Maria Haro
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Parc Sanitari Sant Joan de Déu, Institut de Recerca Sant Joan de Deu (IRSJD), Sant Boi de Llobregat, Barcelona, Spain
Nieves López-Fresneña
Affiliation:
Hospital General Universitario Gregorio Marañón, Madrid, Spain
Alma D. Martínez de Salázar
Affiliation:
UGC Salud Mental, Hospital Universitario Torrecárdenas, Almería, Spain
Juan D. Molina
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Villaverde Mental Health Center, Clinical Management Area of Psychiatry and Mental Health, Psychiatric Service, Hospital Universitario 12 de Octubre, Madrid, Spain Research Institute Hospital 12 de Octubre (i+12), Madrid, Spain Facultad de Medicina, Universidad Francisco de Vitoria, Madrid, Spain
Rafael M. Ortí-Lucas
Affiliation:
Servicio de Medicina Preventiva y Calidad Asistencial, Hospital Clínic Universitari de Valencia, Valencia, Spain
Mara Parellada
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Hospital General Universitario Gregorio Marañón, Madrid, Spain
José Maria Pelayo-Terán
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Servicio de Psiquiatría y Salud Mental, Hospital el Bierzo, Gerencia de Asistencia Sanitaria del Bierzo (GASBI). Gerencia Regional de Salud de Castilla y Leon (SACYL), Ponferrada, León, Spain Area de Medicina Preventiva y Salud Pública, Departamento de Ciencias Biomédicas, Universidad de León, León, Spain
Maria João Forjaz
Affiliation:
Red de Investigación en Cronicidad, Atención Primaria y Promoción de la Salud RICAPPS-(RICORS), Instituto de Salud Carlos III (ISCIII), Madrid, Spain National Center of Epidemiology, Instituto de Salud Carlos III (ISCIII), Madrid, Spain
Aurora Pérez-Zapata
Affiliation:
Hospital Universitario Príncipe de Asturias, Servicio de Prevención de Riesgos Laborales, Spain
José Ignacio Pijoan
Affiliation:
Red de Investigación en Cronicidad, Atención Primaria y Promoción de la Salud RICAPPS-(RICORS), Instituto de Salud Carlos III (ISCIII), Madrid, Spain Clinical Epidemiology Unit-Hospital Universitario Cruces/ OSI EEC, Biobizkaia Health Research Institute, Barakaldo, Spain
Nieves Plana
Affiliation:
Red de Investigación en Cronicidad, Atención Primaria y Promoción de la Salud RICAPPS-(RICORS), Instituto de Salud Carlos III (ISCIII), Madrid, Spain Ramón y Cajal University Hospital, IRYCIS, Department of Surgery, Medical and Social Sciences, Faculty of Medicine and Health Sciences, University of Alcalá, Alcala de Henares, MAD, Spain
Elena Polentinos-Castro
Affiliation:
Service of Prevention of Labor Risks, Medical Emergencies System, Generalitat de Catalunya, Barcelona, Spain Research Unit, Primary Care Management, Madrid Health Service, Madrid, Spain Department of Medical Specialities and Public Health, King Juan Carlos University, Madrid, Spain
Maria Teresa Puig
Affiliation:
Universitat Autònoma de Barcelona (UAB), Barcelona, Spain Department of Epidemiology and Public Health, Hospital de la Santa Creu i Sant Pau, Barcelona, Spain Biomedical Research Institute Sant Pau (IIB Sant Pau), Barcelona, Spain CIBER Enfermedades Cardiovasculares (CIBERCV), Madrid, Spain
Cristina Rius
Affiliation:
CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain Agència de Salut Pública de Barcelona, Barcelona, Spain
Ferran Sanz
Affiliation:
Department of Medicine and Life Sciences (MELIS), Universitat Pompeu Fabra, Barcelona, Spain Research Progamme on Biomedical Informatics (GRIB), Hospital del Mar Research Institute, Barcelona, Spain Instituto Nacional de Bioinformatica – ELIXIR-ES, Barcelona, Spain
Cònsol Serra
Affiliation:
CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain CiSAL-Centro de Investigación en Salud Laboral, Hospital del Mar Research Institute/University Pompeu Fabra, Barcelona, Spain Occupational Health Service, Hospital del Mar, Barcelona, Spain
Iratxe Urreta-Barallobre
Affiliation:
CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain Osakidetza Basque Health Service, Donostialdea Integrated Health Organisation, Donostia University Hospital, Clinical Epidemiology Unit, San Sebastián, Spain Biodonostia Health Research Institute, Clinical Epidemiology, San Sebastián, Spain
Ronny Bruffaerts
Affiliation:
Center for Public Health Psychiatry, Universitair Psychiatrisch Centrum, KU Leuven, Leuven, Belgium
Eduard Vieta
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Institute of Neuroscience, Hospital Clinic, University of Barcelona, IDIBAPS, Barcelona, Spain
Víctor Pérez-Solá
Affiliation:
CIBER Salud Mental (CIBERSAM), Madrid, Spain Universitat Autònoma de Barcelona (UAB), Barcelona, Spain Institute of Neuropsychiatry and Addiction (INAD), Parc de Salut Mar, Barcelona, Spain
Philippe Mortier*
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
Gemma Vilagut
Affiliation:
Hospital del Mar Research Institute, Barcelona, Spain CIBER de Epidemiología y Salud Pública (CIBERESP), Instituto de Salud Carlos III, Madrid, Spain
*
Corresponding author: Philippe Mortier; Email: [email protected]
Rights & Permissions [Opens in a new window]

Abstract

Aims

Studies conducted during the COVID-19 pandemic found high occurrence of suicidal thoughts and behaviours (STBs) among healthcare workers (HCWs). The current study aimed to (1) develop a machine learning-based prediction model for future STBs using data from a large prospective cohort of Spanish HCWs and (2) identify the most important variables in terms of contribution to the model’s predictive accuracy.

Methods

This is a prospective, multicentre cohort study of Spanish HCWs active during the COVID-19 pandemic. A total of 8,996 HCWs participated in the web-based baseline survey (May–July 2020) and 4,809 in the 4-month follow-up survey. A total of 219 predictor variables were derived from the baseline survey. The outcome variable was any STB at the 4-month follow-up. Variable selection was done using an L1 regularized linear Support Vector Classifier (SVC). A random forest model with 5-fold cross-validation was developed, in which the Synthetic Minority Oversampling Technique (SMOTE) and undersampling of the majority class balancing techniques were tested. The model was evaluated by the area under the Receiver Operating Characteristic (AUROC) curve and the area under the precision–recall curve. Shapley’s additive explanatory values (SHAP values) were used to evaluate the overall contribution of each variable to the prediction of future STBs. Results were obtained separately by gender.

Results

The prevalence of STBs in HCWs at the 4-month follow-up was 7.9% (women = 7.8%, men = 8.2%). Thirty-four variables were selected by the L1 regularized linear SVC. The best results were obtained without data balancing techniques: AUROC = 0.87 (0.86 for women and 0.87 for men) and area under the precision–recall curve = 0.50 (0.55 for women and 0.45 for men). Based on SHAP values, the most important baseline predictors for any STB at the 4-month follow-up were the presence of passive suicidal ideation, the number of days in the past 30 days with passive or active suicidal ideation, the number of days in the past 30 days with binge eating episodes, the number of panic attacks (women only) and the frequency of intrusive thoughts (men only).

Conclusions

Machine learning-based prediction models for STBs in HCWs during the COVID-19 pandemic trained on web-based survey data present high discrimination and classification capacity. Future clinical implementations of this model could enable the early detection of HCWs at the highest risk for developing adverse mental health outcomes.

Study registration

NCT04556565

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2025. Published by Cambridge University Press.

Introduction

Suicide is a major public health issue and one of the leading causes of preventable death worldwide (World Health Organization, 2024). Pre-pandemic studies showed consistently that both physicians (Dutheil et al., Reference Dutheil, Aubert, Pereira, Dambrun, Moustafa, Mermillod, Baker, Trousselard, Lesage and Navel2019) and nurses (Davis et al., Reference Davis, Cher, Friese and Bynum2021) are at high risk for suicide compared to other employed people (Milner et al., Reference Milner, Spittal, Pirkis and LaMontagne2013), in part related to high access to lethal means and low willingness to seek help (Harvey et al., Reference Harvey, Epstein, Glozier, Petrie, Strudwick, Gayed, Dean and Henderson2021). An important risk factor for suicide is suicidal thought and behaviour (STB) (Ribeiro et al., Reference Ribeiro, Franklin, Fox, Bentley, Kleiman, Chang and Nock2016). Studies carried out during the pandemic found high levels of STBs among healthcare workers (HCWs) compared to the pre-pandemic period (Greenberg et al., Reference Greenberg, Docherty, Gnanapragasam and Wessely2020; Mediavilla et al., Reference Mediavilla, Fernández-Jiménez, Andreo, Morán-Sánchez, Muñoz-Sanjosé, Moreno-Küstner, Mascayano, Ayuso-Mateos, Bravo-Ortiz and Martínez-Alés2023; Mortier et al., Reference Mortier, Vilagut, Ferrer, Serra, Molina, López‐Fresneña, Puig, Pelayo‐Terán, Pijoan, Emparanza, Espuga, Plana, González‐Pinto, Ortí‐Lucas, Salázar, Rius, Aragonès, Cura‐González, Aragón‐Peña, Campos, Parellada, Pérez‐Zapata, Forjaz, Sanz, Haro, Vieta, Pérez‐Solà, Kessler, Bruffaerts and Alonso2021b; Murata et al., Reference Murata, Rezeppa, Thoma, Marengo, Krancevich, Chiyka, Hayes, Goodfriend, Deal, Zhong, Brummit, Coury, Riston, Brent and Melhem2021; Sahimi et al., Reference Sahimi, Mohd Daud, Chan, Shah, Rahman and Nik Jaafar2021; Xiaoming et al., Reference Xiaoming, Ming, Su, Wo, Jianmei, Qi, Hua, Xuemei, Lixia, Jun, Lei, Zhen, Lian, Jing, Handan, Haitang, Xiaoting, Xiaorong, Ran, Qinghua, Xinyu, Jian, Jing, Guanghua, Zhiqin, Nkundimana and Li2020; Xu et al., Reference Xu, Wang, Chen, Ai, Shi, Wang, Hong, Zhang, Hu, Li, Cao, Lv, Du, Li, Yang, He, Chen, Chen, Luo, Zhou, Tan, Tu, Jiang, Han and Kuang2021; Zhou et al., Reference Zhou, Wang, Sun, Qian, Liu, Wang, Qi, Yang, Song, Zhou, Zeng, Liu, Li and Zhang2020).

Risk factors identified in these studies span various risk domains and include pre-pandemic lifetime factors, current mental disorders and emotional problems (e.g., burn-out, traumatic stress, anxiety and depression), loneliness and social isolation, financial stress, and pandemic-specific factors, such as having been in quarantine, moral injury, interpersonal and health-related stress (Eyles et al., Reference Eyles, Moran, Okolie, Dekel, Macleod-Hall, Webb, Schmidt, Knipe, Sinyor, McGuinness, Arensman, Hawton, O’Connor, Kapur, O’Neill, Olorisade, Cheng, Higgins, John and Gunnell2021; García-Iglesias et al., Reference García-Iglesias, Gómez-Salgado, Fernández-Carrasco, Rodríguez-Díaz, Vázquez-Lara, Prieto-Callejero and Allande-Cussó2022; Mortier et al., Reference Mortier, Vilagut, Alayo, Ferrer, Amigo, Aragonès, Aragón-Peña, Asúnsolo Del Barco, Campos, Espuga, González-Pinto, Haro, López Fresneña, Martínez de Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Gómez, Pérez-Zapata, Pijoan, Plana, Polentinos-Castro, Portillo-Van Diest, Puig, Rius, Sanz, Serra, Urreta-Barallobre, Kessler, Bruffaerts, Vieta, Pérez-Solá, Alonso, Alonso, Alayo, Alonso, Álvarez, Amann, Amigo, Anmella, Aragón, Aragonés, Aragonès, Arizón, Asunsolo, Ayora, Ballester, Barbas, Basora, Bereciartua, Ignasi Bolibar, Bonfill, Cotillas, Cuartero, de Paz, Cura, Jesus Del Yerro, Diaz, Domingo, Emparanza, Espallargues, Espuga, Estevan, Fernandez, Fernandez, Ferrer, Ferreres, Fico, Forjaz, Barranco, Garcia Torrecillasc Garcia-ribera, Garrido, Gil, Gomez, Gomez, Pinto, Haro, Hernando, Insigna, Iriberri, Jimenez, Jimenez, Larrauri, Leon, Lopez-Fresneña, Lopez, Lopez-Atanes Juan Antonio Lopez-Rodriguez, Lopez-Cortacans, Marcos, Martin, Martin, Martinez-Cortés, Martinez-Martinez, Martinez de Salazar, Martinez, Marzola, Mata, Molina, de Dios Molina, Molinero, Mortier, Muñoz, Murru, Olmedo, Ortí, Padrós, Pallejà, Parra, Pascual, Pelayo, Pla, Plana, Aznar, Gomez, Zapata, Pijoan, Polentinos, Puertolas, Puig, Quílez, Quintana, Quiroga, Rentero, Rey, Rius, Rodriguez-Blazquez, Rojas, Romero, Rubio, Rumayor, Ruiz, Saenz, Sanchez, Sanchez-Arcilla, Sanz, Serra, Serra-Sutton, Serrano, Sola, Solera, Soto, Tarrago, Tolosa, Vazquez, Viciola, Vieta, Vilagut, Yago, Yañez, Zapico, Zorita, Zorrilla, Zurbano and Perez-Solá2022, Reference Mortier, Vilagut, Ferrer, Alayo, Bruffaerts, Cristóbal-Narváez, Del Cura-González, Domènech-Abella, Félez-Nobrega, Olaya, Pijoan, Vieta, Pérez-Solà, Kessler, Haro, Alonso, Alonso, Álvarez-Villalba, Amann, Amigo, Anmella, Aragón, Aragonès, Aragonès, Arizón, Asunsolo, Ayora, Ballester, Barbas, Basora, Bereciartua, Bravo, Bolíbar, Bonfill, Cotillas-Rodero, Cuartero, De Paz, Del Yerro, De Vocht, Díaz, Domingo, Emparanza, Espallargues, Espuga, Estevan-Burdeus, Fernández, Fernández, Ferreres, Fico, Forjaz, García-Barranco, García-Ribera, García-Torrecillas, Garrido-Barral, Gil, Giola-Insigna, Gómez, Gómez, González-Pinto, Hernando, Iriberri, Jansen, Jiménez, Jiménez, Larrauri, León-Vázquez, López-Atanes, López-Fresneña, López-Rodríguez, López-Rodríguez, López-Cortacans, Marcos, Martín, Martín, Martínez-Cortés, Martínez-Martínez, De Salázar, Martínez, Marzola, Mata, Molina, Molina, Molinero, Muñoz-Ruipérez, Murru, Navarro, Olmedo-Galindo, Ortí-Lucas, Padrós, Pallejà, Parra, Pascual, Pelayo-Terán, Pla, Plana, Pérez-Aznar, Pérez-Gómez, Pérez-Zapata, Polentinos- Castro, Puértolas, Puig, Quílez, Quintana, Quiroga, Rentero, Rey, Rius, Rodríguez-Blázquez, Rojas-Giraldo, Romero- Barzola, Rubio, Ruiz, Rumayor, Sáenz, Sánchez, Sánchez-Arcilla, Sanz, Serra, Serra-Sutton, Serrano, Solà, Solera, Soto, Tarragó, Tolosa, Vázquez, Viciola, Voorspoels, Yago-González, Yáñez-Sánchez, Zapico, Zorita, Zorrilla and Zurbano2021a).

Identifying individuals at the highest risk for future STBs is a significant challenge in the field of mental health research, especially given the relatively low occurrence of STBs. Over the past five decades, traditional statistical approaches have been predominant in predicting STB risk (Nordin et al., Reference Nordin, Zainol, Mohd Noor and Chan2023), which often, due to their limited capacity as to including a wide range of predictor variables, require the researcher to define a priori a limited set of predictors to be included in the models. This approach has been criticized because variable selection is often based on predefined theoretical frameworks that only consider some of the potentially relevant predictors for STBs (Franklin et al., Reference Franklin, Ribeiro, Fox, Bentley, Kleiman, Huang, Musacchio, Jaroszewski, Chang and Nock2017), resulting in relatively simple models with limited predictive accuracy (Boudreaux et al., Reference Boudreaux, Rundensteiner, Liu, Wang, Larkin, Agu, Ghosh, Semeter, Simon and Davis-Martin2021).

Advanced analytical approaches, such as machine learning (ML) models, have demonstrated higher predictive accuracy of STBs than traditional statistical approaches (e.g. linear regression, generalized linear models or analysis of variance) including a limited number of variables based on predefined theoretical frameworks (Schafer et al., Reference Schafer, Kennedy, Gallyer and Resnik2021). ML models handle complex interactions and high-dimensional data effectively by capturing non-linear relationships and efficiently processing and analysing large volumes of data with multiple variables, overcoming the limitations of traditional approaches (Bennett et al., Reference Bennett, Kleczyk, Hayes, Mehta, Aceves-Fernández and Travieso-Gonzalez2022). They also allow a better understanding of the complex patterns and non-evident relationships among a very large set of STB-related variables including not only commonly considered factors such as mental health and family history, but also contextual aspects such as lifestyles, access to healthcare, adverse childhood experiences and social and economic environments, among others (Favril et al., Reference Favril, Yu, Uyar, Sharpe and Fazel2022). Thus, these advanced approaches can provide a more comprehensive and accurate understanding of the factors contributing to the risk of STBs. The key is to integrate traditional approaches with the empirical power of data-driven techniques (Schafer et al., Reference Schafer, Kennedy, Gallyer and Resnik2021). An increased focus on the prediction of adverse mental health, including identification of predictors that mostly contribute to increased prediction accuracy, may lead to new hypotheses about causal associations, and ultimately, a better understanding and prevention of these outcomes, including STBs (Yarkoni and Westfall, Reference Yarkoni and Westfall2017).

Despite ML being increasingly used for STB risk prediction, to the best of our knowledge, there is no previous study using ML to develop a prediction model for STBs among HCWs. Such models could help with early identification and intervention for at-risk HCWs and also provide valuable insights into the complex interplay of factors contributing to suicidal ideation in this population. In addition, although there are clear gender differences in both absolute STB risk and the distribution of risk factors (Gradus et al., Reference Gradus, Rosellini, Horváth-Puhó, Jiang, Street, Galatzer-Levy, Lash and Sørensen2021; Jiang et al., Reference Jiang, Rosellini, Horváth-Puhó, Shiner, Street, Lash, Sørensen and Gradus2021; Miranda‐Mendizabal et al., Reference Miranda‐Mendizabal, Castellví, Alayo, Vilagut, Blasco, Torrent, Ballester, Almenara, Lagares, Roca, Sesé, Piqueras, Soto‐Sanz, Rodríguez‐Marín, Echeburúa, Gabilondo, Cebrià, Bruffaerts, Auerbach, Mortier, Kessler and Alonso2019a, Reference Miranda-Mendizabal, Castellví, Parés-Badell, Alayo, Almenara, Alonso, Blasco, Cebrià, Gabilondo, Gili, Lagares, Piqueras, Rodríguez-Jiménez, Rodríguez-Marín, Roca, Soto-Sanz, Vilagut and Alonso2019b), ML-based studies often do not take these differences into consideration, leading to a lack of gender-specific STB prediction models.

The aim of the current study is to develop an ML-based prediction model for future STBs using data from the MINDCOVID project, a large prospective cohort study of Spanish HCWs (Alonso et al., Reference Alonso, Vilagut, Mortier, Ferrer, Alayo, Aragón-Peña, Aragonès, Campos, Cura-González, Emparanza, Espuga, Forjaz, González-Pinto, Haro, López-Fresneña, Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Zapata, Pijoan, Plana, Puig, Rius, Rodríguez-Blázquez, Sanz, Serra, Kessler, Bruffaerts, Vieta and Pérez-Solà2021; MINDCOVID, 2020). The HCW cohort was recruited just after the height of the first wave of the Spanish COVID-19 pandemic and was followed up 4 months later, including a reassessment of STBs. Importantly, predictor variables to develop the prediction model were created using all information included in the baseline survey. Although the information collected in the baseline survey was not exhaustive with regard to including all factors potentially related to HCW’s STB in the literature, it spanned various relevant risk factor domains for adverse mental health and STB, including depression, anxiety and post-traumatic stress disorder (PTSD). Variable selection techniques were employed to avoid manual selection of predictors. In addition, we aim to identify predictors that are the most important contributors to the model’s predictive accuracy, separately for men and women.

Methods

Recruitment

Data for this study come from the MINDCOVID project (Alonso et al., Reference Alonso, Vilagut, Mortier, Ferrer, Alayo, Aragón-Peña, Aragonès, Campos, Cura-González, Emparanza, Espuga, Forjaz, González-Pinto, Haro, López-Fresneña, Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Zapata, Pijoan, Plana, Puig, Rius, Rodríguez-Blázquez, Sanz, Serra, Kessler, Bruffaerts, Vieta and Pérez-Solà2021; MINDCOVID, 2020), a multicentre, prospective, observational cohort study of Spanish HCWs, representing a convenience sample of 18 healthcare institutions (hospitals, primary care and public healthcare centres) from six Autonomous Communities in Spain and included all types of HCWs (medical doctors, nurses, auxiliary nurses, other professions involved in patient care and professions not directly involved in patient care). The cohort was assessed at two time points using web-based self-report surveys. The first assessment (T1) was conducted from 5 May through 7 September 2020, i.e., just after the height of the first wave of the Spain COVID-19 pandemic. The follow-up assessment (T2) was conducted 4 months (mean = 120.1 days [SD = 22.2]) after the T1 assessment.

Recruitment for the T1 survey was done by healthcare representatives who contacted all employed HCWs in each participating healthcare centre using administrative email distribution lists (i.e., census sampling). A total of 8,996 HCWs participated at T1, representing a mean weighted response rate across healthcare centres (weighted by achieved sample size) of 11.7% (unweighted mean response rate of 12.8%). A total of 4,809 T1 participants also participated at T2 (53.5%). For both surveys, two reminder emails were sent within 2–4 weeks after the initial invitation. For the current study, we included data from the 4,809 HCWs described previously (Alonso et al., Reference Alonso, Vilagut, Alayo, Ferrer, Amigo, Aragón-Peña, Aragonès, Campos, Del Cura-gonzález, Urreta, Espuga, González Pinto, Haro, López Fresneña, Martínez de Salázar, Molina, Ortí Lucas, Parellada, Pelayo-Terán, Pérez Zapata, Pijoan, Plana, Puig, Rius, Rodriguez-Blazquez, Sanz, Serra, Kessler, Bruffaerts, Vieta, Pérez-Solá and Mortier2022; Mortier et al., Reference Mortier, Vilagut, Alayo, Ferrer, Amigo, Aragonès, Aragón-Peña, Asúnsolo Del Barco, Campos, Espuga, González-Pinto, Haro, López Fresneña, Martínez de Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Gómez, Pérez-Zapata, Pijoan, Plana, Polentinos-Castro, Portillo-Van Diest, Puig, Rius, Sanz, Serra, Urreta-Barallobre, Kessler, Bruffaerts, Vieta, Pérez-Solá, Alonso, Alonso, Alayo, Alonso, Álvarez, Amann, Amigo, Anmella, Aragón, Aragonés, Aragonès, Arizón, Asunsolo, Ayora, Ballester, Barbas, Basora, Bereciartua, Ignasi Bolibar, Bonfill, Cotillas, Cuartero, de Paz, Cura, Jesus Del Yerro, Diaz, Domingo, Emparanza, Espallargues, Espuga, Estevan, Fernandez, Fernandez, Ferrer, Ferreres, Fico, Forjaz, Barranco, Garcia Torrecillasc Garcia-ribera, Garrido, Gil, Gomez, Gomez, Pinto, Haro, Hernando, Insigna, Iriberri, Jimenez, Jimenez, Larrauri, Leon, Lopez-Fresneña, Lopez, Lopez-Atanes Juan Antonio Lopez-Rodriguez, Lopez-Cortacans, Marcos, Martin, Martin, Martinez-Cortés, Martinez-Martinez, Martinez de Salazar, Martinez, Marzola, Mata, Molina, de Dios Molina, Molinero, Mortier, Muñoz, Murru, Olmedo, Ortí, Padrós, Pallejà, Parra, Pascual, Pelayo, Pla, Plana, Aznar, Gomez, Zapata, Pijoan, Polentinos, Puertolas, Puig, Quílez, Quintana, Quiroga, Rentero, Rey, Rius, Rodriguez-Blazquez, Rojas, Romero, Rubio, Rumayor, Ruiz, Saenz, Sanchez, Sanchez-Arcilla, Sanz, Serra, Serra-Sutton, Serrano, Sola, Solera, Soto, Tarrago, Tolosa, Vazquez, Viciola, Vieta, Vilagut, Yago, Yañez, Zapico, Zorita, Zorrilla, Zurbano and Perez-Solá2022) that participated in both T1 and T2 assessments.

Informed consent was obtained from all participants. The study complies with the principles established by national and international regulations, including the Declaration of Helsinki and the Code of Ethics. The study was approved by the Research Integrity and Good Scientific Practices Committee of IMIM‐Parc de Salut Mar, Barcelona, Spain (2020/9203/I), and by all participating centres’ institutional review boards.

Measures

Primary outcome

The study’s primary outcome was any 30-day STBs at the 4-month follow-up (T2), assessed using a modified version of four selected items from the Columbia Suicide Severity Rating Scale (Posner et al., Reference Posner, Brown, Stanley, Brent, Yershova, Oquendo, Currier, Melvin, Greenhill, Shen and Mann2011), each with dichotomous response options (yes or no). The items assess passive suicidal ideation (SI) (‘wish you were dead or would go to sleep and never wake up’), active SI (‘have thoughts of killing yourself’), suicide plans (‘think about how you might kill yourself [e.g. taking pills, shooting yourself] or work out a plan of how to kill yourself’) and suicide attempts in the past 30 days (‘make a suicide attempt [i.e. purposefully hurt yourself with at least some intent to die]’). Following previous studies, the primary outcome labelled as ‘any STB’ was created as a dichotomous variable indicating the presence of any of the four STB outcomes (Mortier et al., Reference Mortier, Vilagut, Ferrer, Alayo, Bruffaerts, Cristóbal-Narváez, Del Cura-González, Domènech-Abella, Félez-Nobrega, Olaya, Pijoan, Vieta, Pérez-Solà, Kessler, Haro, Alonso, Alonso, Álvarez-Villalba, Amann, Amigo, Anmella, Aragón, Aragonès, Aragonès, Arizón, Asunsolo, Ayora, Ballester, Barbas, Basora, Bereciartua, Bravo, Bolíbar, Bonfill, Cotillas-Rodero, Cuartero, De Paz, Del Yerro, De Vocht, Díaz, Domingo, Emparanza, Espallargues, Espuga, Estevan-Burdeus, Fernández, Fernández, Ferreres, Fico, Forjaz, García-Barranco, García-Ribera, García-Torrecillas, Garrido-Barral, Gil, Giola-Insigna, Gómez, Gómez, González-Pinto, Hernando, Iriberri, Jansen, Jiménez, Jiménez, Larrauri, León-Vázquez, López-Atanes, López-Fresneña, López-Rodríguez, López-Rodríguez, López-Cortacans, Marcos, Martín, Martín, Martínez-Cortés, Martínez-Martínez, De Salázar, Martínez, Marzola, Mata, Molina, Molina, Molinero, Muñoz-Ruipérez, Murru, Navarro, Olmedo-Galindo, Ortí-Lucas, Padrós, Pallejà, Parra, Pascual, Pelayo-Terán, Pla, Plana, Pérez-Aznar, Pérez-Gómez, Pérez-Zapata, Polentinos- Castro, Puértolas, Puig, Quílez, Quintana, Quiroga, Rentero, Rey, Rius, Rodríguez-Blázquez, Rojas-Giraldo, Romero- Barzola, Rubio, Ruiz, Rumayor, Sáenz, Sánchez, Sánchez-Arcilla, Sanz, Serra, Serra-Sutton, Serrano, Solà, Solera, Soto, Tarragó, Tolosa, Vázquez, Viciola, Voorspoels, Yago-González, Yáñez-Sánchez, Zapico, Zorita, Zorrilla and Zurbano2021a; Nock et al., Reference Nock, Stein, Heeringa, Ursano, Colpe, Fullerton, Hwang, Naifeh, Sampson, Schoenbaum, Zaslavsky and Kessler2014).

Baseline predictor variables

The baseline survey (T1) contains 207 items that were used to create the 219 predictor variables for STBs (items with non-ordinal categorical answers were converted into as many dummy variables as the number of categories minus one). The items were organized into eight different sections based on their contents (see Supplementary Table 1 for the list of items). Due to space constraints, we provide here a short description of predictor variables and corresponding T1 survey sections: (1) eight sociodemographic variables (e.g., age, gender and marital status); (2) 14 variables related to COVID-19 exposure, infection status and perceived risk for COVID-19 infection (e.g., having received a positive COVID-19 test and having been hospitalized for COVID-19); (3) 55 items related to mental disorders, including a checklist for pre-pandemic lifetime mental disorders and screening scale items spanning five common current mental disorders, i.e., Major Depressive Disorder (PHQ-8; Kroenke et al., Reference Kroenke, Strine, Spitzer, Williams, Berry and Mokdad2009), Generalized Anxiety Disorder 7-item (Spitzer et al., Reference Spitzer, Kroenke, Williams and Löwe2006), 30-day panic attacks (item adapted from the Composite International Diagnostic Interview (CIDI) screening scale; Kessler et al., Reference Kessler, Santiago, Colpe, Dempsey, First, Heeringa, Stein, Fullerton, Gruber, Naifeh, Nock, Sampson, Schoenbaum, Zaslavsky and Ursano2013), 30-day traumatic stress symptoms (four-item abbreviated form of the PTSD Checklist, PCL-5; Zuromski et al., Reference Zuromski, Ustun, Hwang, Keane, Marx, Stein, Ursano and Kessler2019) and substance use disorder (four-item version of the CAGE Adapted to Include Drugs (CAGE-AID); Hinkin et al., Reference Hinkin, Castellon, Dickson‐Fuhrman, Daum, Jaffe and Jarvik2001). In addition, any 30-day STB was assessed (Posner et al., Reference Posner, Brown, Stanley, Brent, Yershova, Oquendo, Currier, Melvin, Greenhill, Shen and Mann2011), as well as burnout (six-item personal burnout subscale of the Copenhagen Burnout Inventory; Kristensen et al., Reference Kristensen, Borritz, Villadsen and Christensen2005), 30-day psychotic symptoms (items taken from the prodromal questionnaire; Loewy et al., Reference Loewy, Pearson, Vinogradov, Bearden and Cannon2011) and 30-day obsessive compulsive disorder symptoms (the three-item obsessing subscale of the obsessive compulsive inventory revised; Foa et al., Reference Foa, Huppert, Leiberg, Langner, Kichic, Hajcak and Salkovskis2002); (4) 30 items assessing treatment use, including healthcare service and psychotropic medication use for emotional or substance use problems, as well as barriers for treatment use; (5) 27 items assessing relevant work-related variables (e.g., type of HCWs, type of workplace, income, perceived risk for COVID-19 at work, perceived lack of healthcare centre preparedness and moral injury); (6) three items about isolation, quarantine and confinement due to COVID-19; (7) 35 items assessing 12-month serious stressful events, perceived stress (adapted peri life events scale; Dohrenwend et al., Reference Dohrenwend, Askenasy, Krasnoff and Dohrenwend1978), resilience (Connor–Davidson resilience scale; Connor and Davidson, Reference Connor and Davidson2003) and healthy habits and (8) 35 items assessing social support (Oslo social support scale; Husain et al., Reference Husain, Mukherjee, Notiar, Alavi, Tomenson, Hawa, Malik, Ahmed and Chaudhry2016), loneliness (UCLA three-item loneliness scale; Hughes et al., Reference Hughes, Waite, Hawkley and Cacioppo2004), use of social media, family functioning (Brief Assessment of Family Functioning Scale; Mansfield et al., Reference Mansfield, Keitner and Sheeran2019), parental stress (items taken from the Parental Stress Scale; Berry and Jones, Reference Berry and Jones1995), quality of life (five-level version of EQ-5D; Herdman et al., Reference Herdman, Gudex, Lloyd, Janssen, Kind, Parkin, Bonsel and Badia2011), somatic comorbidity (self-administered comorbidity questionnaire (Sangha et al., Reference Sangha, Stucki, Liang, Fossel and Katz2003) and role impairment (Sheehan disability scales; Sheehan et al., Reference Sheehan, Harnett-Sheehan and Raj1996).

Statistical analysis

The percentage of missing values across all variables analysed was moderate, with a mean missing rate of 6.5% and a median value of less than 1% (see Supplementary Table 2 for the percentage of missing values for each variable). Multiple imputation by chained equations with 10 iterations per imputation and 12 imputed datasets was used to impute missing item-level data (Van Buuren, Reference van Buuren2018) using R’s mice package (Buuren and Groothuis-Oudshoorn, Reference Buuren and Groothuis-Oudshoorn2011). The choice of 12 imputations provided a reasonable trade-off between statistical accuracy and computational efficiency, following recommendations that 5–20 imputations are generally sufficient under moderate missingness (Van Buuren, Reference van Buuren2018; White et al., Reference White, Royston and Wood2011) and that the number of imputations should be at least equal to 100 times the fraction of missing information, which in our study was below 0.1 (White et al., Reference White, Royston and Wood2011) for key performance measures such as AUC.

The regularization path of linear Support Vector Classifier (SVC) with L1 penalty (Dai and Zhao, Reference Dai and Zhao2020) was implemented to select the most critical predictor variables out of the 219 candidates by forcing some coefficients to be exactly zero, aiming to improve the accuracy and efficiency of predictive models (Montesinos López & Crossa, Reference Montesinos López, Montesinos López and Crossa2022). SVC for variable selection was applied to the 12 imputed datasets. Variables that were selected in at least 7 of the 12 imputed datasets were included in the final prediction model. This decision is justified by the work of Zhao and Long (Zhao and Long, Reference Zhao and Long2017) who propose to perform variable selection separately in each imputed dataset and then include variables that are selected with a frequency above a defined threshold. In this study, the threshold chosen was 7 out of 12 imputations to ensure consistency across more than 50% of the imputations. According to Wood et al. (Reference Wood, White and Royston2008), this strategy improves the robustness of variable selection and coefficient estimation in regression models.

To address imbalanced data (i.e., 7.9% prevalence of STBs at the 4-month follow-up), which can lead to poor minority class classification (Rezvani and Wang, Reference Rezvani and Wang2023), two different techniques were compared: (1) Synthetic Minority Oversampling Technique (SMOTE) (Chawla et al., Reference Chawla, Bowyer, Hall and Kegelmeyer2002) and (2) majority class undersampling (Devi et al., Reference Devi, Biswas, Purkayastha, Paul and Verma2021).

A random forest (RF) classifier was used to develop prediction models for STBs at the 4-month follow-up (Hammelrath et al., Reference Hammelrath, Hilbert, Heinrich, Zagorscak and Knaevelsrud2023; Navarro et al., Reference Navarro, Ouellet-Morin, Geoffroy, Boivin, Tremblay, Côté and Orri2021). Different values of the predefined hyperparameters specifying the number of decision trees to be included in the RF (n_estimators: [20, 25, 50, 75, 100]) and the maximum depth allowed for each decision tree (max_depth: [7, 8, 9, 10, 11]) were tested using a grid combination and 5-fold cross-validation. The grid combination was tested on a single stacked dataset of all 12 imputed datasets for both balancing methods (Seki et al., Reference Seki, Kawazoe and Ohe2021). The model with the selected hyperparameters was then independently trained and tested for each of the 12 imputed datasets. To decrease the risk of overfitting, 5-fold cross-validation was used in each imputed dataset. We aggregated the results of the predicted probabilities of each of the imputations into a single dataset to obtain performance metrics. The RandomForestClassifier function of the sklearn library in Python version 3.8 was used (Pedregosa et al., Reference Pedregosa, Varoquaux, Gramfort, Michel, Thirion, Grisel, Blondel, Müller, Nothman, Louppe, Prettenhofer, Weiss, Dubourg, Vanderplas, Passos, Cournapeau, Brucher, Perrot and Duchesnay2012).

Model characteristics were assessed on the test dataset through the area under the Receiver Operating Characteristic (AUROC) curve and the area under the precision (positive predictive value [PPV])–recall (sensitivity) curve. The precision–recall curve is particularly useful for imbalanced datasets (Saito and Rehmsmeier, Reference Saito and Rehmsmeier2015). These curves allowed us to evaluate recall, specificity and precision for different cut-off points. The model was applied to each of the imputed datasets and predictions from each dataset were aggregated to obtain the overall metrics values (Seki et al., Reference Seki, Kawazoe and Ohe2021). All metrics were also obtained separately for men and women.

To quantify variable importance, the Shapley Additive Explanations (SHAP) (Lundberg and Lee, Reference Lundberg and Lee2017) method was used. SHAP values represent the contribution that each variable had in the final model prediction. As SHAP values can display variability across imputations, they were obtained separately for each of the 12 imputed datasets and a combined representation of the contributions of each variable was obtained as the mean of these values (Seki et al., Reference Seki, Kawazoe and Ohe2021). Although the model is the same for both genders, the SHAP values have been obtained separately for the subsamples of men and women. SHAP summary plots are provided. In this plot, variables are ordered according to their influence on the predictions of the model. Each dot represents an individual’s SHAP value, plotted along the horizontal axis. The dots are collared based on the variable’s value, ranging from low (blue) to high (pink). If pink dots appear on the right side and blue dots on the left, it indicates that the risk increases as the value of the variable rises. Analyses were conducted with the SHAP library in Python version 3.8.

Results

Sample characteristics

Table 1 shows the descriptive characteristics of the study sample by gender at T1. Ages ranged from 18 to 71 years, with a mean age of 45.8 (SD = 11.0). The country of birth was Spain for 95.3% of the sample. Healthcare professionals were mostly women (81.1%). About one-third (34.3%) were physicians, 29.2% nurses, 8.1% auxiliary nurses, 11.5% other profession involved in patient care and 16.9% other profession not involved in patient care. A total of 19.5% had a positive test or medical diagnosis of COVID-19 (women = 19.3%, men = 20.2%). A total of 381 subjects (7.9%; women = 7.8%, men = 8.2%) reported having had 30-day STBs at T2.

Table 1. Sociodemographic and work characteristics of Spanish healthcare workers during the COVID-19 pandemic assessed at T1 (N = 4,809)

SE: standard error; SD: standard deviation.

Of the 7.9% of subjects with any STB at the 12-month follow-up, 0.9% reported a suicide attempt, 26.3% a suicide plan without attempt, 10.7% active ideation without plan or attempt and 62.1% passive ideation without active ideation, plan or attempt.

Variables selection

Out of the initial 219 candidate predictor variables, 34 variables were selected by the linear SVM (Supplementary Figure 1). Although the gender variable was not selected, it was included because gender is a key variable due to significant differences in STB risk factors between men and women (Miranda-Mendizabal et al., Reference Miranda-Mendizabal, Castellví, Parés-Badell, Alayo, Almenara, Alonso, Blasco, Cebrià, Gabilondo, Gili, Lagares, Piqueras, Rodríguez-Jiménez, Rodríguez-Marín, Roca, Soto-Sanz, Vilagut and Alonso2019; Schrijvers et al., Reference Schrijvers, Bollen and Sabbe2012), and to be able to assess relevant risk factors within each gender. This leads to a total of 35 variables being included in the model. The inclusion in the RF model is also justified by the ability of the RF model to account for complex interactions between variables (Auret and Aldrich, Reference Auret and Aldrich2012).

Random forest

The selected hyperparameters specified 50 decision trees to be included in the RF (n_estimators = 50) and a maximum depth of 9 allowed for each decision tree (max_depth = 9).

Figure 1 presents AUROC and precision–recall curves resulting from the RF fitted on the test sample using the 35 baseline selected variables. The AUROC with and without balancing techniques is higher than 0.80. In the total sample, the best result was obtained with the model without data balancing (AUROC = 0.87).

Abbreviations: ROC: receiver operating characteristics; AUC: area under the curve; No balancing: no balancing technique was used; Undersampling: undersampling of the majority class technique was used; SMOTE: Synthetic Minority Oversampling Technique was used.

Figure 1. (a) The receiver operating characteristics curve and the area under the receiver operating characteristic curve (AUROC) for suicidal thoughts and behavior prediction. The results of the prediction using different balancing test are shown (left). (b) The precision-recall curve and the area underthe precision-recall curve of the models. The results of the prediction using different balancing test are shown (right).

Regarding the area under the precision–recall curve, large differences are observed between balancing methods, being the model without data balancing the one with the best result (area under the precision–recall curve = 0.52).

Figure 2 shows that when the goodness of fit of the model without data balancing is assessed separately by gender, the good metric properties are maintained. The AUROC curve is 0.84 and 0.86 for men and women, respectively. In the case of the area under the precision–recall curve, the values obtained are 0.45 for men and 0.54 for women.

Abbreviations: ROC: receiver operating characteristics; AUC: area under the curve.

Figure 2. (a) The receiver operating characteristics curve and the area under the receiver operating characteristic (AUROC) curve of the models for men and women. (b) The precision-recall curve and the area under the precision-recall curve of the models for men and women.

SHAP values

In the summary plot of the SHAP values (Figures 3 and 4), the variables are sorted according to their importance in the prediction model. The colour of each point on the graph represents the value of the corresponding variable: pink indicates high values and blue indicates low values. The horizontal axis (x-axis) represents the SHAP value: having values above 0 indicates that these experiences are potentially important predictor variables in predicting future suicidal ideation. Figure 3 shows the most important variables in the prediction of STBs. The ranking is headed by the number of days in the past 30 days with suicidal ideation (passive or active) followed by passive suicidal ideation, the number of days in the past 30 days with binge eating episodes and having intrusive thoughts (i.e., nasty thoughts and having difficulty in getting rid of them). Another relevant factor identified is concentration problems. Some of the factors associated with COVID-19 infection that have been identified include: having been in isolation or quarantine, fear of personal or loved ones’ infection, work-related factors and experiences during the initial pandemic outbreak, such as perceived lack of supervision at work, not getting along with co-workers, stress related to having to prioritize care among patients and work-related role impairment. Financial stress also appears as a risk factor for STBs.

Notes: The color of each point on the graph represents the value of the corresponding variable: pink indicates high values and blue indicates low values. The horizontal axis (x-axis) represents the SHAP value. Abbreviations: C-SSRS: Suicidal thoughts and behaviors screen; PHQ-9: Patient Health Questionnaire 9 item; CIDI: Composite International Diagnostic Interview; Prime-MD: Primary Care Evaluation of Mental Disorders; BAFFS: Brief Assessment of Family Functioning Scale; CD-RISC: Connor-Davidson Resilience Scale; OSS3: Oslo Social Support Scale; OCI-R: Obsessive Compulsive Inventory revised.

Figure 3. Shapley additive explanation (SHAP) summary graph. Each point on the graph is a SHAP value for one variable. The color represents the value of the variable from low (blue) to high (pink).

Notes: The color of each point on the graph represents the value of the corresponding variable: pink indicates high values and blue indicates low values. The horizontal axis (x-axis) represents the SHAP value. Abbreviations: C-SSRS: Suicidal thoughts and behaviors screen; PHQ-9: Patient Health Questionnaire 9 item; CIDI: Composite International Diagnostic Interview; Prime-MD: Primary Care Evaluation of Mental Disorders; BAFFS: Brief Assessment of Family Functioning Scale; CD-RISC: Connor-Davidson Resilience Scale; OSS3: Oslo Social Support Scale; OCI-R: Obsessive Compulsive Inventory revised.

Figure 4. Shapley additive explanation (SHAP) summary graph. for men (a) and women (b).

Among men (Figure 4a) the most important variables for predicting STBs at T2 included the number of days in the past 30 days with suicidal ideation (passive or active), passive suicidal ideation and frequency of intrusive thoughts at the T1 assessment.

Among women (Figure 4b), the most important baseline variables for predicting STBs (at T2) included the number of days in the past 30 days with suicidal ideation (passive or active), passive suicidal ideation and number of panic attacks.

Discussion

In this study, we developed and validated a predictive model for STBs within a 4-month period using survey data collected from HCWs during the COVID-19 pandemic in Spain. The ML-based model showed robust predictive performance for STBs and identified, out of a total of 219 variables, the 35 key predictive variables associated with STBs. Our model showed very good metric characteristics with an AUROC of 0.86 (0.86 in women and 0.84 in men) and an area under the precision–recall curve of 0.52 (0.54 and 0.45 in women and men, respectively). The results align with previous studies, as shown in the systematic review by Somé et al. (Reference Somé, Noormohammadpour and Lange2024), which found a mean AUROC of 0.81 in 84 studies, a mean recall of 0.68 in 64 studies and a mean precision of 0.41 in 46 studies. Our results improve precision metric (Nock et al., Reference Nock, Millner, Ross, Kennedy, Al-Suwaidi, Barak-Corren, Castro, Castro-Ramirez, Lauricella, Murman, Petukhova, Bird, Reis, Smoller and Kessler2022), which is challenging due to the low prevalence of STBs. ML models developed to predict STBs in previous studies have been criticized for having low precision (often below 1%) and thus producing too many false positives (Nock et al., Reference Nock, Millner, Ross, Kennedy, Al-Suwaidi, Barak-Corren, Castro, Castro-Ramirez, Lauricella, Murman, Petukhova, Bird, Reis, Smoller and Kessler2022). Our model achieved a precision of 50% with a recall of 60%. With recalls of 80%, the precision is greater than 20%. The fact that the model’s cut-off point is not predetermined allows for their selection based on the required recall and precision, depending on the objective or application of the predictive models. As the data were unbalanced (92.1% of the subjects in one category), balancing techniques were tested, but these techniques did not improve the results of the models.

STB at T1 was identified as a strong predictor at T2, consistent with previous literature (Ribeiro et al., Reference Ribeiro, Franklin, Fox, Bentley, Kleiman, Chang and Nock2016). While the association between mental disorders and suicidal ideation is well established (Franklin et al., Reference Franklin, Ribeiro, Fox, Bentley, Kleiman, Huang, Musacchio, Jaroszewski, Chang and Nock2017), a key contribution of our study is the identification of specific mental disorder symptoms as independent predictors of STBs among HCWs active during the COVID-19 pandemic, including binge eating, panic attacks, intrusive thoughts and concentration problems. These results align with studies in non-HCW populations linking STBs to eating disorders (Brown et al., Reference Brown, LaRose and Mezuk2018; Sohn et al., Reference Sohn, Dimitropoulos, Ramirez, McPherson, Anderson, Munir, Patten, McGirr and Devoe2023), panic disorder (Zhang et al., Reference Zhang, Wang, Xiong, Jian, Zhang, Xiang, Zhou and Zou2022), obsessive-compulsive disorder (Pellegrini et al., Reference Pellegrini, Maietti, Rucci, Burato, Menchetti, Berardi, Maina, Fineberg and Albert2021) and concentration difficulties (Lo et al., Reference Lo, Chan, Yip, Chui, Fung, Wong, Chu, So, Chan, Chung, Lee, Cheng, Law, Chan and Chang2023). These findings highlight the critical need for early identification and screening of mental health symptoms in HCWs, as well as the challenge of ensuring access to timely, evidence-based mental health care (Jain et al., Reference Jain, Sarfraz, Karlapati, Kazmi, Nasir, Atiq, Ansari, Shah, Aamir, Zaidi, Shakil Zubair and Jyotsana2024). Notably, our study also found that practical barriers to seeking treatment and disruptions in psychiatric or psychological care due to the COVID-19 pandemic were significant predictors of future STBs, a particularly concerning issue given the low treatment utilization among HCWs (Braquehais et al., Reference Braquehais, Gómez-Duran, Nieva, Valero, Ramos-Quiroga and Bruguera2022; Dellazizzo et al., Reference Dellazizzo, Léveillé, Landry and Dumais2021; Mortier et al., Reference Mortier, Vilagut, García-Mieres, Alayo, Ferrer, Amigo, Aragonès, Aragón-Peña, Asúnsolo Del Barco, Campos, Espuga, González-Pinto, Haro, López Fresneña, Martínez de Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Gómez, Pérez-Zapata, Pijoan, Plana, Polentinos-Castro, Portillo-Van Diest, Puig, Rius, Sanz, Serra, Urreta-Barallobre, Kessler, Bruffaerts, Vieta, Pérez-Solá and Alonso2024; Rogoža et al., Reference Rogoža, Strumila, Klivickaitė, Diržius and Čėnaitė2021).

Consistent with prior research (Du et al., Reference Du, Jia, Hu, Ge, Cheng, Qu and Chen2023; Kavukcu and Akdeniz, Reference Kavukcu and Akdeniz2021), our study found that COVID-19-related experiences, including isolation or quarantine and fear of personal or familial infection, predicted STBs at follow-up, likely due to their traumatic and stressful nature (Portillo-Van Diest et al., Reference Portillo-Van Diest, Vilagut, Alayo, Ferrer, Amigo, Amann, Aragón-Peña, Aragonès, Asúnsolo Del Barco, Campos, Del Cura-González, Espuga, González-Pinto, Haro, Larrauri, López-Fresneña, Martínez de Salázar, Molina, Ortí-Lucas, Parellada, Pelayo-Terán, Pérez-Zapata, Pijoan, Plana, Puig, Rius, Rodríguez-Blázquez, Sanz, Serra, Urreta-Barallobre, Kessler, Bruffaerts, Vieta, Pérez-Solá, Alonso and Mortier2023). Additionally, work-related disruptions during the initial pandemic outbreak, such as perceived lack of supervision, interpersonal conflicts with co-workers, stress from prioritizing patient care and role impairment, emerged as significant predictors of later suicidal ideation. These findings underscore the need for systemic workplace reforms, including improved healthcare centre preparedness for viral outbreaks through enhanced equipment, staffing, training and protocols. Moreover, fostering supportive work environments, encouraging the reporting of interpersonal conflicts (Alshammari and Dayrit, Reference Alshammari and Dayrit2017) and implementing effective communication and conflict resolution strategies (Jerng et al., Reference Jerng, Huang, Liang, Chen, Lin, Huang, Hsieh and Sun2017) are essential. Future research should focus on delineating causal pathways underlying STBs among HCWs to inform targeted prevention efforts, addressing the critical gap in evidence-based interventions for mental health issues in this population at both individual and organizational levels (Petrie et al., Reference Petrie, Crawford, Baker, Dean, Robinson, Veness, Randall, McGorry, Christensen and Harvey2019).

Gender was not selected as a relevant predictor when the Support Vector Machine (SVM) model was applied. This result was unexpected as gender has been shown in the mental health and STB literature to be a key variable in identifying significant risk factors. The ability of the RF model to capture complex interactions, identify non-linear dependencies and consider multivariate relationships between variables (Auret and Aldrich, Reference Auret and Aldrich2012), together with the recognized clinical and theoretical relevance of gender in mental disorders and STB – given that risk factors differ significantly between men and women (Miranda‐Mendizabal et al., Reference Miranda‐Mendizabal, Castellví, Alayo, Vilagut, Blasco, Torrent, Ballester, Almenara, Lagares, Roca, Sesé, Piqueras, Soto‐Sanz, Rodríguez‐Marín, Echeburúa, Gabilondo, Cebrià, Bruffaerts, Auerbach, Mortier, Kessler and Alonso2019; Schrijvers et al., Reference Schrijvers, Bollen and Sabbe2012) – justifies the inclusion of the gender variable in the model.

Considering the evident gender differences in both the absolute risk of STBs and the prevalence of associated risk factors (Gradus et al., Reference Gradus, Rosellini, Horváth-Puhó, Jiang, Street, Galatzer-Levy, Lash and Sørensen2021; Jiang et al., Reference Jiang, Rosellini, Horváth-Puhó, Shiner, Street, Lash, Sørensen and Gradus2021; Miranda‐Mendizabal et al., Reference Miranda‐Mendizabal, Castellví, Alayo, Vilagut, Blasco, Torrent, Ballester, Almenara, Lagares, Roca, Sesé, Piqueras, Soto‐Sanz, Rodríguez‐Marín, Echeburúa, Gabilondo, Cebrià, Bruffaerts, Auerbach, Mortier, Kessler and Alonso2019a, Reference Miranda-Mendizabal, Castellví, Parés-Badell, Alayo, Almenara, Alonso, Blasco, Cebrià, Gabilondo, Gili, Lagares, Piqueras, Rodríguez-Jiménez, Rodríguez-Marín, Roca, Soto-Sanz, Vilagut and Alonso2019b), the accuracy of the model was assessed separately for men and women, and the model proved to be a good fit for both genders. For both genders, the most important factors were the number of suicidal thoughts (passive or active) and passive suicidal thoughts in the last 30 days. For men, the second most important factor was the frequency of unpleasant thoughts and the difficulty in getting rid of them, while for women it was the number of panic attacks. This is an important finding suggesting that there are gender differences in the relative importance of risk factors for STBs. Previous research has shown significant interactions between gender and certain risk factors for STBs (Miranda‐Mendizabal et al., Reference Miranda‐Mendizabal, Castellví, Alayo, Vilagut, Blasco, Torrent, Ballester, Almenara, Lagares, Roca, Sesé, Piqueras, Soto‐Sanz, Rodríguez‐Marín, Echeburúa, Gabilondo, Cebrià, Bruffaerts, Auerbach, Mortier, Kessler and Alonso2019a). These gender differences in risk factors have been linked to variations in the prevalence of internalizing and externalizing disorders between genders, as well as differences in coping strategies, including the frequency of help-seeking. These differences may be attributed to gender socialization.

Strengths and limitations

This study has some limitations. First, due to low numbers of suicide plans and suicide attempts at the 4-month follow-up, we operationalized the study outcome as any STB (i.e., having passive or active suicidal ideation with or without plan or attempt), as all four separate outcomes indicate the presence of at least passive suicidal ideation. This is in line with previous work by our group (Mortier et al., Reference Mortier, Vilagut, Ferrer, Alayo, Bruffaerts, Cristóbal-Narváez, Del Cura-González, Domènech-Abella, Félez-Nobrega, Olaya, Pijoan, Vieta, Pérez-Solà, Kessler, Haro, Alonso, Alonso, Álvarez-Villalba, Amann, Amigo, Anmella, Aragón, Aragonès, Aragonès, Arizón, Asunsolo, Ayora, Ballester, Barbas, Basora, Bereciartua, Bravo, Bolíbar, Bonfill, Cotillas-Rodero, Cuartero, De Paz, Del Yerro, De Vocht, Díaz, Domingo, Emparanza, Espallargues, Espuga, Estevan-Burdeus, Fernández, Fernández, Ferreres, Fico, Forjaz, García-Barranco, García-Ribera, García-Torrecillas, Garrido-Barral, Gil, Giola-Insigna, Gómez, Gómez, González-Pinto, Hernando, Iriberri, Jansen, Jiménez, Jiménez, Larrauri, León-Vázquez, López-Atanes, López-Fresneña, López-Rodríguez, López-Rodríguez, López-Cortacans, Marcos, Martín, Martín, Martínez-Cortés, Martínez-Martínez, De Salázar, Martínez, Marzola, Mata, Molina, Molina, Molinero, Muñoz-Ruipérez, Murru, Navarro, Olmedo-Galindo, Ortí-Lucas, Padrós, Pallejà, Parra, Pascual, Pelayo-Terán, Pla, Plana, Pérez-Aznar, Pérez-Gómez, Pérez-Zapata, Polentinos- Castro, Puértolas, Puig, Quílez, Quintana, Quiroga, Rentero, Rey, Rius, Rodríguez-Blázquez, Rojas-Giraldo, Romero- Barzola, Rubio, Ruiz, Rumayor, Sáenz, Sánchez, Sánchez-Arcilla, Sanz, Serra, Serra-Sutton, Serrano, Solà, Solera, Soto, Tarragó, Tolosa, Vázquez, Viciola, Voorspoels, Yago-González, Yáñez-Sánchez, Zapico, Zorita, Zorrilla and Zurbano2021a) and others (Benjet et al., Reference Benjet, Borges, Miah, Albor, Gutiérrez‐García, Zavala Berbena, Guzmán, Vargas‐Contreras, Hermosillo de la Torre, Hernández Uribe, Quevedo, Covarrubias Díaz, Martínez Ruiz, Valdés‐García, Martínez Jerez and Mortier2022; Nock et al., Reference Nock, Millner, Ross, Kennedy, Al-Suwaidi, Barak-Corren, Castro, Castro-Ramirez, Lauricella, Murman, Petukhova, Bird, Reis, Smoller and Kessler2022). Second, a convenience sample was used and results need to be validated using external samples. This limitation is partially addressed by obtaining a random and heterogeneous census sample of HCWs from 18 healthcare institutions in six Autonomous Communities. Third, STB is complex and difficult to predict; therefore, psychosocial and environmental factors cannot be easily excluded (Ati et al., Reference Ati, Paraswati and Windarwati2021). However, the number of variables used to predict was very large, all 219 variables collected in the survey were used. Fourth, although an SVM with an L1 regularization model was used for a large and objective selection of variables, the analysis is based on a predefined survey with a specific number of items. This implies that, although the model allows for a greater inclusion of predictor variables, there is still the limitation of not including all possible variables relevant in the context of STBs. Fifth, we have exclusively used the RF algorithm to predict STBs. Although the predictive capacity of this algorithm was effective in our study, other models may also provide meaningful and complementary results that could improve the accuracy of our results analysis.

Conclusion

In this study of Spanish HCWs during the COVID-19 pandemic, we have developed a predictive model of the risk of STBs. Our results show that RF ML algorithm has a high prediction performance for STBs (AUROC = 0.86; 0.86 in women and 0.84 in men). Importantly, our study improves the precision compared to previous research. The results generated by the proposed model help to identify and explain risk factors for STBs and contribute to the development of a first comprehensive conceptual framework for understanding STB occurrence in major epidemics and other disasters with high impact on essential workers. The most important predictors contributing to the prediction of suicide ideation in healthcare professionals were ideation frequency in the last 30 days, passive suicidal ideation and the number of days with binge eating episodes in the last 30 days.

Supplementary material

The supplementary material for this article can be found at https://doi.org/10.1017/S2045796025000198.

Availability of data and materials

The de-identified participant data as well as the study protocol, statistical analysis plan and data dictionaries used for this study are available as from publication and upon reasonable request from the corresponding author (P.M.; ) as long as the main objective of the data-sharing request is replicating the analysis and findings as reported in this paper.

Acknowledgements

The authors would like to sincerely thank all HCWs participating in the study. They also thank Puri Barbas for the management of the project.

Author Contributions

I.A., G.V., P.M. and O.P. reviewed the literature. I.A., J.A., G.V., P.M., O.P., M.F., E.A., V.P.S., J.M.H. and R.B. conceived and designed the study. E.A., J.D.M., N.L.F., T.P., J.M.P.-T., J.I.P., M.E., M.N.P., A.G.-P., C.R., E.A., N.N.A., M.C., A.P.-Z., E.V., C.S. and V.P.-S. acquired the data. G.V., I.A., F.A. and P.M. cleaned and analysed the data. I.A., G.V., O.P. and P.M. drafted the initial version of the manuscript. All authors reviewed the initial draft, made a critical contribution to the interpretation of the data and approved the manuscript. The corresponding author attests that all listed authors meet authorship criteria and that no others meeting the criteria have been omitted.

Financial support

This work was supported by grants from the Instituto de Salud Carlos III (ISCIII)/Ministerio de Ciencia e Innovación/FEDER COV20/00711 (J.A.); ISCIII-FEDER (J.A., grant number PI17/00521); Miguel Servet grant (P.M., CP21/00078) co-financed by the ISCIII and co-funded by the European Union; ISCIII Sara Borrell CD18/00049 (P.M.); ISCIII co-financed by the European Union through the European Social Fund Plus PFIS grant FI23/00004 (A.P.-V.D.); the Secretaria d’Universitats i Recerca del Departament d’Economia i Coneixement of the Generalitat de Catalunya AGAUR 2021 SGR 00624 (J.A.); PERIS, Departament de Salut SLT017/20/000009 (I.A.); and CIBER of Epidemiology & Public Health, ISCIII CB06/02/0046. Additional partial funding was received from the Gerencia Regional de Salud de Castilla y León (SACYL) GRS COVID 32/A/20 (J.M.P.-T.).

Competing interests

E.A. reports personal fees from Lundbeck, Esteve and Boehringer-Ingelheim, outside the submitted work. E.V. has received grants and served as a consultant, advisor or Continuing Medical Education (CME) speaker for the following entities: AB-Biotics, AbbVie, Adamed, Alcediag, Angelini, Biogen, Beckley-Psytech, Biohaven, Boehringer-Ingelheim, Celon Pharma, Compass, Dainippon Sumitomo Pharma, Ethypharm, Ferrer, Gedeon Richter, GH Research, Glaxo-Smith Kline, HMNC, Idorsia, Johnson & Johnson, Lundbeck, Luye Pharma, Medincell, Merck, Newron, Novartis, Orion Corporation, Organon, Otsuka, Roche, Rovi, Sage, Sanofi-Aventis, Sunovion, Takeda, Teva and Viatris, outside the submitted work. A.G.-P. has received grants and served as a consultant, advisor or CME speaker for the following entities: Janssen-Cilag, Lundbeck, Otsuka, Alter, Angelini, Novartis, Rovi, Takeda, the Spanish Ministry of Science and Innovation (CIBERSAM), the Ministry of Science (Carlos III Institute), the Basque Government and the European Framework Program of Research. J.M.H. has served as a consultant, advisor or CME speaker for the following entities: Boehringer-Ingelheim, Eli Lilly and Co. and Lundbeck, outside the submitted work. J.M.P.-T. has served as a consultant, advisor or CME speaker for the following entities: Angelini, Boehringer-Ingelheim, Eli Lilly and Co, Johnson & Johnson Lundbeck, Otsuka and Rovi, outside the submitted work. All other authors reported no conflict of interest. R.B. reports fees from Janssen-Cilag, outside the submitted work.

Ethical standards

The authors assert that all procedures contributing to this study comply with the ethical standards of the relevant national and institutional committees on human experimentation and with the Helsinki Declaration of 1975, as revised in 2000.

Footnotes

The MINDCOVID Working Group is formed by Jordi Alonso, Itxaso Alayo, Manuel Alonso, Mar Álvarez, Benedikt Amann, Franco F. Amigo, Gerard Anmella, Andres Aragón, Nuria Aragonés, Enric Aragonès, Ana Isabel Arizón, Angel Asunsolo, Alfons Ayora, Laura Ballester, Puri Barbas, Josep Basora, R. Bausà, Elena Bereciartua, Inés Bravo, Alberto Cotillas, Andres Cuartero, Concha de Paz, Isabel del Cura, Maria Jesus del Yerro, Domingo Diaz, Jose Luis Domingo, Jose I. Emparanza, Mireia Espallargues, Meritxell Espuga, Patricia Estevan, M. Isabel Fernandez, Tania Fernandez, Montse Ferrer, Yolanda Ferreres, Giovanna Fico, M. Joao Forjaz, Rosa Garcia Barranco, J. Manuel Garcia Torrecillas, C. Garcia-Ribera, Araceli Garrido, Elisa Gil, Marta Gomez, Javier Gomez, Ana Gonzalez Pinto, Josep Maria Haro, Margarita Hernando, Maria Giola Insigna, Milagros Iriberri, Nuria Jimenez, Xavi Jimenez, Amparo Larrauri, Fernando Leon, Nieves Lopez-Fresneña, Carmen Lopez, Mayte Lopez-Atanes, Juan Antonio Lopez-Rodriguez, German Lopez-Cortacans, Alba Marcos, Jesus Martin, Vicente Martin, Mercedes Martinez-Cortés, Raquel Martinez-Martinez, Alma D. Martinez de Salazar, Isabel Martinez, Marco Marzola, Nelva Mata, Josep Maria Molina, Juan de Dios Molina, Emilia Molinero, Philippe Mortier, Carmen Muñoz, Andrea Murru, L. Navarro, Jorge Olmedo, Rafael M. Ortí, Rafael Padrós, Meritxell Pallejà, Raul Parra, Julio Pascual, Jose Maria Pelayo, Rosa Pla, Nieves Plana, Coro Perez Aznar, Beatriz Perez Gomez, Aurora Perez Zapata, Jose Ignacio Pijoan, Elena Polentinos, Beatriz Puertolas, Maria Teresa Puig, Alex Quílez, M. Jesus Quintana, Antonio Quiroga, David Rentero, Cristina Rey, Cristina Rius, Carmen Rodriguez-Blazquez, M. Jose Rojas, Yamina Romero, Gabriel Rubio, Mercedes Rumayor, Pedro Ruiz, Margarita Saenz, Jesus Sanchez, Ignacio Sanchez-Arcilla, Ferran Sanz, Consol Serra, Victoria Serra-Sutton, Manuela Serrano, Silvia Sola, Sara Solera, Miguel Soto, Alejandra Tarrago, Natividad Tolosa, Mireia Vazquez, Margarita Viciola, Eduard Vieta, Gemma Vilagut, Sara Yago, Jesus Yañez, Yolanda Zapico, Luis Maria Zorita, Iñaki Zorrilla, Saioa L. Zurbano and Victor Perez-Solá.

References

Alonso, J, Vilagut, G, Alayo, I, Ferrer, M, Amigo, F, Aragón-Peña, A, Aragonès, E, Campos, M, Del Cura-gonzález, I, Urreta, I, Espuga, M, González Pinto, A, Haro, JM, López Fresneña, N, Martínez de Salázar, A, Molina, JD, Ortí Lucas, RM, Parellada, M, Pelayo-Terán, JM, Pérez Zapata, A, Pijoan, JI, Plana, N, Puig, MT, Rius, C, Rodriguez-Blazquez, C, Sanz, F, Serra, C, Kessler, RC, Bruffaerts, R, Vieta, E, Pérez-Solá, V and Mortier, P (2022) Mental impact of Covid-19 among Spanish healthcare workers. A large longitudinal survey. Epidemiology and Psychiatric Sciences 31, e28. doi:10.1017/S2045796022000130CrossRefGoogle ScholarPubMed
Alonso, J, Vilagut, G, Mortier, P, Ferrer, M, Alayo, I, Aragón-Peña, A, Aragonès, E, Campos, M, Cura-González, ID, Emparanza, JI, Espuga, M, Forjaz, MJ, González-Pinto, A, Haro, JM, López-Fresneña, N, Salázar, ADMD, Molina, JD, Ortí-Lucas, RM, Parellada, M, Pelayo-Terán, JM, Pérez-Zapata, A, Pijoan, JI, Plana, N, Puig, MT, Rius, C, Rodríguez-Blázquez, C, Sanz, F, Serra, C, Kessler, RC, Bruffaerts, R, Vieta, E and Pérez-Solà, V (2021) Mental health impact of the first wave of COVID-19 pandemic on Spanish healthcare workers: a large cross-sectional survey. Revista de Psiquiatria y Salud Mental. 14, 90105. doi:10.1016/j.rpsm.2020.12.001CrossRefGoogle ScholarPubMed
Alshammari, HF and Dayrit, RDJ (2017) Conflict and conflict resolution among the medical and nursing personnel of selected hospitals in Hail City. IOSR Journal of Nursing and Health Science 06, 4560. doi:10.9790/1959-0603014560CrossRefGoogle Scholar
Ati, NAL, Paraswati, MD and Windarwati, HD (2021) What are the risk factors and protective factors of suicidal behavior in adolescents? A systematic review. Journal of Child and Adolescent Psychiatric Nursing 34, 718. doi:10.1111/jcap.12295CrossRefGoogle ScholarPubMed
Auret, L and Aldrich, C (2012) Interpretation of nonlinear relationships between process variables by use of random forests. Minerals Engineering 35, 2742. doi:10.1016/j.mineng.2012.05.008CrossRefGoogle Scholar
Benjet, C, Borges, G, Miah, S, Albor, Y, Gutiérrez‐García, RA, Zavala Berbena, A, Guzmán, R, Vargas‐Contreras, E, Hermosillo de la Torre, AE, Hernández Uribe, PC, Quevedo, G, Covarrubias Díaz, A, Martínez Ruiz, S, Valdés‐García, KP, Martínez Jerez, AM and Mortier, P (2022) One‐year incidence, predictors, and accuracy of prediction of suicidal thoughts and behaviors from the first to second year of university. Depression and Anxiety 39, 727740. doi:10.1002/da.23278CrossRefGoogle ScholarPubMed
Bennett, M, Kleczyk, EJ, Hayes, K and Mehta, R (2022) Evaluating similarities and differences between machine learning and traditional statistical modeling in healthcare analytics. In Aceves-Fernández, MA and Travieso-Gonzalez, CM (eds), Artificial Intelligence Annual Volume 2022. Rijeka: IntechOpen. doi:10.5772/intechopen.105116CrossRefGoogle Scholar
Berry, JO and Jones, WH (1995) The parental stress scale: initial psychometric evidence. Journal of Social and Personal Relationships 12, 463472. doi:10.1177/0265407595123009CrossRefGoogle Scholar
Boudreaux, ED, Rundensteiner, E, Liu, F, Wang, B, Larkin, C, Agu, E, Ghosh, S, Semeter, J, Simon, G and Davis-Martin, RE (2021) Applying machine learning approaches to suicide prediction using healthcare data: overview and future directions. Frontiers in Psychiatry, 12. doi:10.3389/fpsyt.2021.707916Google ScholarPubMed
Braquehais, MD, Gómez-Duran, EL, Nieva, G, Valero, S, Ramos-Quiroga, JA and Bruguera, E (2022) Help seeking of highly specialized mental health treatment before and during the COVID-19 pandemic among health professionals. International Journal of Environmental Research and Public Health 19, 3665. doi:10.3390/ijerph19063665CrossRefGoogle ScholarPubMed
Brown, KL, LaRose, JG and Mezuk, B (2018) The relationship between body mass index, binge eating disorder and suicidality. BMC Psychiatry 18, 196. doi:10.1186/s12888-018-1766-zCrossRefGoogle ScholarPubMed
Buuren, SV and Groothuis-Oudshoorn, K (2011) Mice: multivariate imputation by chained equations in R. Journal of Statistical Software 45. doi:10.18637/jss.v045.i03CrossRefGoogle Scholar
Chawla, NV, Bowyer, KW, Hall, LO and Kegelmeyer, WP (2002) SMOTE: Synthetic Minority Over-sampling Technique. Journal of Artificial Intelligence Research 16, 321357. doi:10.1613/jair.953CrossRefGoogle Scholar
Connor, KM and Davidson, JRT (2003) Development of a new resilience scale: the Connor-Davidson Resilience Scale (CD-RISC). Depression and Anxiety 18, 7682. doi:10.1002/da.10113CrossRefGoogle ScholarPubMed
Dai, Y and Zhao, P (2020) A hybrid load forecasting model based on support vector machine with intelligent methods for feature selection and parameter optimization. Applied Energy 279, 115332. doi:10.1016/j.apenergy.2020.115332CrossRefGoogle Scholar
Davis, MA, Cher, BAY, Friese, CR, Bynum, JPW (2021) Association of US nurse and physician occupation with risk of suicide. JAMA Psychiatry 78, 651. doi:10.1001/jamapsychiatry.2021.0154CrossRefGoogle ScholarPubMed
Dellazizzo, L, Léveillé, N, Landry, C and Dumais, A (2021) Systematic review on the mental health and treatment impacts of COVID-19 on neurocognitive disorders. Journal of Personalized Medicine. 11, 746. doi:10.3390/jpm11080746CrossRefGoogle ScholarPubMed
Devi, D, Biswas, S and Purkayastha, B (2021) A Review on Solution to Class Imbalance Problem: Undersampling Approaches. In Paul, S and Verma, JK (eds), Proceedings of the 2021 International Conference on Computational Performance Evaluation (ComPE 2021). Piscataway, NJ: IEEE, pp. 626631. doi:10.1109/ComPE52596.2021.00022CrossRefGoogle Scholar
Dohrenwend, BS, Askenasy, AR, Krasnoff, L and Dohrenwend, BP (1978) Exemplification of a method for scaling life events: the PERI life events scale. Journal of Health and Social Behavior 19, 205. doi:10.2307/2136536CrossRefGoogle ScholarPubMed
Du, W, Jia, YJ, Hu, FH, Ge, MW, Cheng, YJ, Qu, X and Chen, HL (2023) Prevalence of suicidal ideation and correlated risk factors during the COVID-19 pandemic: a meta-analysis of 113 studies from 31 countries. Journal of Psychiatric Research 166, 147168. doi:10.1016/j.jpsychires.2023.07.040CrossRefGoogle ScholarPubMed
Dutheil, F, Aubert, C, Pereira, B, Dambrun, M, Moustafa, F, Mermillod, M, Baker, JS, Trousselard, M, Lesage, F-X and Navel, V (2019) Suicide among physicians and health-care workers: a systematic review and meta-analysis. PLoS One 14, e0226361. doi:10.1371/journal.pone.0226361CrossRefGoogle ScholarPubMed
Eyles, E, Moran, P, Okolie, C, Dekel, D, Macleod-Hall, C, Webb, RT, Schmidt, L, Knipe, D, Sinyor, M, McGuinness, LA, Arensman, E, Hawton, K, O’Connor, RC, Kapur, N, O’Neill, S, Olorisade, B, Cheng, HY, Higgins, JPT, John, A and Gunnell, D (2021) Systematic review of the impact of the COVID-19 pandemic on suicidal behaviour amongst health and social care workers across the world. Journal of Affective Disorders Reports 6, 100271. doi:10.1016/j.jadr.2021.100271.CrossRefGoogle Scholar
Favril, L, Yu, R, Uyar, A, Sharpe, M and Fazel, S (2022) Risk factors for suicide in adults: systematic review and meta-analysis of psychological autopsy studies. Evidence Based Mental Health 25, 148155. doi:10.1136/ebmental-2022-300549CrossRefGoogle ScholarPubMed
Foa, EB, Huppert, JD, Leiberg, S, Langner, R, Kichic, R, Hajcak, G and Salkovskis, PM (2002) The Obsessive-Compulsive Inventory: development and validation of a short version. Psychol Assessment 14, 485496. doi:10.1037/1040-3590.14.4.485CrossRefGoogle ScholarPubMed
Franklin, JC, Ribeiro, JD, Fox, KR, Bentley, KH, Kleiman, EM, Huang, X, Musacchio, KM, Jaroszewski, AC, Chang, BP and Nock, MK (2017) Risk factors for suicidal thoughts and behaviors: a meta-analysis of 50 years of research. Psychological Bulletin 143, 187232. doi:10.1037/bul0000084CrossRefGoogle ScholarPubMed
García-Iglesias, JJ, Gómez-Salgado, J, Fernández-Carrasco, FJ, Rodríguez-Díaz, L, Vázquez-Lara, JM, Prieto-Callejero, B and Allande-Cussó, R (2022). Suicidal ideation and suicide attempts in healthcare professionals during the COVID-19 pandemic: A systematic review. Frontiers in Public Health 10, 1043216. doi:10.3389/fpubh.2022.952250CrossRefGoogle ScholarPubMed
Gradus, JL, Rosellini, AJ, Horváth-Puhó, E, Jiang, T, Street, AE, Galatzer-Levy, I, Lash, TL and Sørensen, HT (2021) Predicting sex-specific nonfatal suicide attempt risk using machine learning and data from Danish national registries. American Journal of Epidemiology 190, 25172527. doi:10.1093/aje/kwab112CrossRefGoogle ScholarPubMed
Greenberg, N, Docherty, M, Gnanapragasam, S and Wessely, S (2020) Managing mental health challenges faced by healthcare workers during covid-19 pandemic. BMJ 368, m1211. doi:10.1136/bmj.m1211CrossRefGoogle ScholarPubMed
Hammelrath, L, Hilbert, K, Heinrich, M, Zagorscak, P and Knaevelsrud, C (2023) Select or adjust? How information from early treatment stages boosts the prediction of non-response in internet-based depression treatment. Psychological Medicine 54, 16411650. doi:10.1017/S0033291723003537CrossRefGoogle ScholarPubMed
Harvey, SB, Epstein, RM, Glozier, N, Petrie, K, Strudwick, J, Gayed, A, Dean, K and Henderson, M (2021) Mental illness and suicide among physicians. The Lancet 398, 920930. doi:10.1016/S0140-6736(21)01596-8CrossRefGoogle ScholarPubMed
Herdman, M, Gudex, C, Lloyd, A, Janssen, MF, Kind, P, Parkin, D, Bonsel, G and Badia, X (2011) Development and preliminary testing of the new five-level version of EQ-5D (EQ-5D-5L). Quality of Life Research 20, 17271736. doi:10.1007/s11136-011-9903-xCrossRefGoogle ScholarPubMed
Hinkin, CH, Castellon, SA, Dickson‐Fuhrman, E, Daum, G, Jaffe, J and Jarvik, L (2001) Screening for drug and alcohol abuse among older adults using a modified version of the CAGE. The American Journal on Addictions/American Academy of Psychiatrists in Alcoholism and Addictions 10, 319326. doi:10.1111/j.1521-0391.2001.tb00521.xGoogle ScholarPubMed
Hughes, ME, Waite, LJ, Hawkley, LC and Cacioppo, JT (2004) A short scale for measuring loneliness in large surveys. Psychological Medicine 26, 655672. doi:10.1177/0164027504268574Google Scholar
Husain, N, Mukherjee, I, Notiar, A, Alavi, Z, Tomenson, B, Hawa, F, Malik, A, Ahmed, A and Chaudhry, N (2016) Prevalence of common mental disorders and its association with life events and social support in mothers attending a well-child clinic. Sage Open 6, 215824401667732. doi:10.1177/2158244016677324CrossRefGoogle Scholar
Jain, L, Sarfraz, Z, Karlapati, S, Kazmi, S, Nasir, MJ, Atiq, N, Ansari, D, Shah, D, Aamir, U, Zaidi, K, Shakil Zubair, A and Jyotsana, P (2024) Suicide in healthcare workers: an umbrella review of prevalence, causes, and preventive strategies. Journal of Primary Care & Community Health 15. doi:10.1177/21501319241273242CrossRefGoogle ScholarPubMed
Jerng, J-S, Huang, S-F, Liang, H-W, Chen, L-C, Lin, C-K, Huang, H-F, Hsieh, M-Y and Sun, J-S (2017) Workplace interpersonal conflicts among the healthcare workers: retrospective exploration from the institutional incident reporting system of a university-affiliated medical center. PLoS One 12, e0171696. doi:10.1371/journal.pone.0171696CrossRefGoogle ScholarPubMed
Jiang, T, Rosellini, AJ, Horváth-Puhó, E, Shiner, B, Street, AE, Lash, TL, Sørensen, HT and Gradus, JL (2021) Using machine learning to predict suicide in the 30 days after discharge from psychiatric hospital in Denmark. The British Journal of Psychiatry 219, 440447. doi:10.1192/bjp.2021.19CrossRefGoogle ScholarPubMed
Kavukcu, E and Akdeniz, M (2021) Tsunami after the novel coronavirus (COVID-19) pandemic: a global wave of suicide? International Journal of Social Psychiatry 67, 197199. doi:10.1177/0020764020946348CrossRefGoogle Scholar
Kessler, RC, Santiago, PN, Colpe, LJ, Dempsey, CL, First, MB, Heeringa, SG, Stein, MB, Fullerton, CS, Gruber, MJ, Naifeh, JA, Nock, MK, Sampson, NA, Schoenbaum, M, Zaslavsky, AM and Ursano, RJ (2013) Clinical reappraisal of the Composite International Diagnostic Interview Screening Scales (CIDI-SC) in the Army Study to Assess Risk and Resilience in Servicemembers (Army STARRS). International Journal of Methods in Psychiatric Research 22, 303321. doi:10.1002/mpr.1398CrossRefGoogle ScholarPubMed
Kristensen, TS, Borritz, M, Villadsen, E and Christensen, KB (2005) The Copenhagen Burnout Inventory: a new tool for the assessment of burnout. Work & Stress 19, 192207. doi:10.1080/02678370500297720CrossRefGoogle Scholar
Kroenke, K, Strine, TW, Spitzer, RL, Williams, JBW, Berry, JT and Mokdad, AH (2009) The PHQ-8 as a measure of current depression in the general population. Journal of Affective Disorders 114, 163173. doi:10.1016/j.jad.2008.06.026CrossRefGoogle ScholarPubMed
Lo, HKY, Chan, JKN, Yip, EWC, Chui, EMC, Fung, VSC, Wong, CSM, Chu, RST, So, YK, Chan, JMT, Chung, AKK, Lee, KCK, Cheng, CPW, Law, CW, Chan, WC and Chang, WC (2023) The prevalence and correlates of suicidal ideation in Chinese psychiatric patients during the fifth wave of COVID-19 in Hong Kong. European Neuropsychopharmacology 77, 411. doi:10.1016/j.euroneuro.2023.08.485CrossRefGoogle ScholarPubMed
Loewy, RL, Pearson, R, Vinogradov, S, Bearden, CE and Cannon, TD (2011) Psychosis risk screening with the Prodromal Questionnaire – Brief Version (PQ-B). Schizophrenia Research 129, 4246. doi:10.1016/j.schres.2011.03.029CrossRefGoogle ScholarPubMed
Lundberg, S and Lee, S-I (2017) A Unified Approach to Interpreting Model Predictions. In Advances in Neural Information Processing Systems 30 (NIPS 2017). Red Hook, NY: Curran Associates, Inc, pp. 47654774. https://arxiv.org/abs/1705.07874.Google Scholar
Mansfield, AK, Keitner, GI and Sheeran, T (2019) The Brief Assessment of Family Functioning Scale (BAFFS): a three-item version of the General Functioning Scale of the Family Assessment Device. Psychotherapy Research 29, 824831. doi:10.1080/10503307.2017.1422213CrossRefGoogle ScholarPubMed
Mediavilla, R, Fernández-Jiménez, E, Andreo, J, Morán-Sánchez, I, Muñoz-Sanjosé, A, Moreno-Küstner, B, Mascayano, F, Ayuso-Mateos, JL, Bravo-Ortiz, M-F and Martínez-Alés, G (2023) Association between perceived discrimination and mental health outcomes among health workers during the initial COVID-19 outbreak. Spanish Journal of Psychiatry and Mental Health 16, 221224. doi:10.1016/j.rpsm.2021.06.001CrossRefGoogle ScholarPubMed
Milner, A, Spittal, MJ, Pirkis, J and LaMontagne, AD (2013) Suicide by occupation: systematic review and meta-analysis. British Journal of Psychiatry 203, 409416. doi:10.1192/bjp.bp.113.128405CrossRefGoogle ScholarPubMed
MINDCOVID (2020) Impact on Mental Health and care needs associated with the COVID-19 pandemic: a comprehensive assessment in Spain. https://www.mindcovid.org/Google Scholar
Miranda‐Mendizabal, A, Castellví, P, Alayo, I, Vilagut, G, Blasco, MJ, Torrent, A, Ballester, L, Almenara, J, Lagares, C, Roca, M, Sesé, A, Piqueras, JA, Soto‐Sanz, V, Rodríguez‐Marín, J, Echeburúa, E, Gabilondo, A, Cebrià, AI, Bruffaerts, R, Auerbach, RP, Mortier, P, Kessler, RC and Alonso, J (2019) Gender commonalities and differences in risk and protective factors of suicidal thoughts and behaviors: a cross‐sectional study of Spanish university students. Depression and Anxiety 36, 11021114. doi:10.1002/da.22960CrossRefGoogle ScholarPubMed
Miranda-Mendizabal, A, Castellví, P, Parés-Badell, O, Alayo, I, Almenara, J, Alonso, I, Blasco, MJ, Cebrià, A, Gabilondo, A, Gili, M, Lagares, C, Piqueras, JA, Rodríguez-Jiménez, T, Rodríguez-Marín, J, Roca, M, Soto-Sanz, V, Vilagut, G and Alonso, J (2019) Gender differences in suicidal behavior in adolescents and young adults: systematic review and meta-analysis of longitudinal studies. International Journal of Public Health 64, 265283. doi:10.1007/s00038-018-1196-1CrossRefGoogle Scholar
Montesinos López, OA, Montesinos López, A and Crossa, J (2022) Statistical Machine Learning Methods for Genomic Prediction [Internet]. Chapter 4, Overfitting, Model Tuning, and Evaluation of Prediction Performance, 14 January 2022. Cham: Springer. Available at: https://www.ncbi.nlm.nih.gov/books/NBK583970/.CrossRefGoogle Scholar
Mortier, P, Vilagut, G, Alayo, I, Ferrer, M, Amigo, F, Aragonès, E, Aragón-Peña, A, Asúnsolo Del Barco, A, Campos, M, Espuga, M, González-Pinto, A, Haro, JM, López Fresneña, N, Martínez de Salázar, A, Molina, JD, Ortí-Lucas, RM, Parellada, M, Pelayo-Terán, JM, Pérez-Gómez, B, Pérez-Zapata, A, Pijoan, JI, Plana, N, Polentinos-Castro, E, Portillo-Van Diest, A, Puig, MT, Rius, C, Sanz, F, Serra, C, Urreta-Barallobre, I, Kessler, RC, Bruffaerts, R, Vieta, E, Pérez-Solá, V, Alonso, J, Alonso, J, Alayo, I, Alonso, M, Álvarez, M, Amann, B, Amigo, FF, Anmella, G, Aragón, A, Aragonés, N, Aragonès, E, Arizón, AI, Asunsolo, A, Ayora, A, Ballester, L, Barbas, P, Basora, J, Bereciartua, E, Ignasi Bolibar, IB, Bonfill, X, Cotillas, A, Cuartero, A, de Paz, C, Cura, ID, Jesus Del Yerro, M, Diaz, D, Domingo, JL, Emparanza, JI, Espallargues, M, Espuga, M, Estevan, P, Fernandez, MI, Fernandez, T, Ferrer, M, Ferreres, Y, Fico, G, Forjaz, MJ, Barranco, RG, Garcia Torrecillasc Garcia-ribera, JM, Garrido, A, Gil, E, Gomez, M, Gomez, J, Pinto, AG, Haro, JM, Hernando, M, Insigna, MG, Iriberri, M, Jimenez, N, Jimenez, X, Larrauri, A, Leon, F, Lopez-Fresneña, N, Lopez, C, Lopez-Atanes Juan Antonio Lopez-Rodriguez, M, Lopez-Cortacans, G, Marcos, A, Martin, J, Martin, V, Martinez-Cortés, M, Martinez-Martinez, R, Martinez de Salazar, AD, Martinez, I, Marzola, M, Mata, N, Molina, JM, de Dios Molina, J, Molinero, E, Mortier, P, Muñoz, C, Murru, A, Olmedo, J, Ortí, RM, Padrós, R, Pallejà, M, Parra, R, Pascual, J, Pelayo, JM, Pla, R, Plana, N, Aznar, CP, Gomez, BP, Zapata, AP, Pijoan, JI, Polentinos, E, Puertolas, B, Puig, MT, Quílez, A, Quintana, MJ, Quiroga, A, Rentero, D, Rey, C, Rius, C, Rodriguez-Blazquez, C, Rojas, MJ, Romero, Y, Rubio, G, Rumayor, M, Ruiz, P, Saenz, M, Sanchez, J, Sanchez-Arcilla, I, Sanz, F, Serra, C, Serra-Sutton, V, Serrano, M, Sola, S, Solera, S, Soto, M, Tarrago, A, Tolosa, N, Vazquez, M, Viciola, M, Vieta, E, Vilagut, G, Yago, S, Yañez, J, Zapico, Y, Zorita, LM, Zorrilla, I, Zurbano, SL and Perez-Solá, V (2022) Four-month incidence of suicidal thoughts and behaviors among healthcare workers after the first wave of the Spain COVID-19 pandemic. Journal of Psychiatric Research 149, 1017. doi:10.1016/j.jpsychires.2022.02.009CrossRefGoogle ScholarPubMed
Mortier, P, Vilagut, G, Ferrer, M, Alayo, I, Bruffaerts, R, Cristóbal-Narváez, P, Del Cura-González, I, Domènech-Abella, J, Félez-Nobrega, M, Olaya, B, Pijoan, JI, Vieta, E, Pérez-Solà, V, Kessler, RC, Haro, JM, Alonso, J, Alonso, M, Álvarez-Villalba, M, Amann, B, Amigo, FF, Anmella, G, Aragón, A, Aragonès, N, Aragonès, E, Arizón, AI, Asunsolo, A, Ayora, A, Ballester, L, Barbas, P, Basora, J, Bereciartua, E, Bravo, I, Bolíbar, I, Bonfill, X, Cotillas-Rodero, A, Cuartero, A, De Paz, C, Del Yerro, MJ, De Vocht, J, Díaz, D, Domingo, JL, Emparanza, JI, Espallargues, M, Espuga, M, Estevan-Burdeus, P, Fernández, MI, Fernández, T, Ferreres, Y, Fico, G, Forjaz, MJ, García-Barranco, R, García-Ribera, C, García-Torrecillas, JM, Garrido-Barral, A, Gil, E, Giola-Insigna, M, Gómez, M, Gómez, J, González-Pinto, A, Hernando, M, Iriberri, M, Jansen, L, Jiménez, N, Jiménez, X, Larrauri, A, León-Vázquez, F, López-Atanes, M, López-Fresneña, N, López-Rodríguez, C, López-Rodríguez, JA, López-Cortacans, G, Marcos, A, Martín, J, Martín, V, Martínez-Cortés, M, Martínez-Martínez, R, De Salázar, ADM, Martínez, I, Marzola, M, Mata, N, Molina, JM, Molina, JD, Molinero, E, Muñoz-Ruipérez, C, Murru, A, Navarro, L, Olmedo-Galindo, J, Ortí-Lucas, RM, Padrós, R, Pallejà, M, Parra, R, Pascual, J, Pelayo-Terán, JM, Pla, R, Plana, N, Pérez-Aznar, C, Pérez-Gómez, B, Pérez-Zapata, A, Polentinos- Castro, E, Puértolas, B, Puig, MT, Quílez, Á, Quintana, MJ, Quiroga, A, Rentero, D, Rey, C, Rius, C, Rodríguez-Blázquez, C, Rojas-Giraldo, MJ, Romero- Barzola, Y, Rubio, G, Ruiz, P, Rumayor, M, Sáenz, M, Sánchez, J, Sánchez-Arcilla, I, Sanz, F, Serra, C, Serra-Sutton, V, Serrano, M, Solà, S, Solera, S, Soto, M, Tarragó, A, Tolosa, N, Vázquez, M, Viciola, M, Voorspoels, W, Yago-González, S, Yáñez-Sánchez, J, Zapico, Y, Zorita, LM, Zorrilla, I and Zurbano, SL (2021a) Thirty-day suicidal thoughts and behaviours in the Spanish adult general population during the first wave of the Spain COVID-19 pandemic. Epidemiology and Psychiatric Sciences, 30, e19. doi:10.1017/S2045796021000093CrossRefGoogle Scholar
Mortier, P, Vilagut, G, Ferrer, M, Serra, C, Molina, JD, López‐Fresneña, N, Puig, T, Pelayo‐Terán, JM, Pijoan, JI, Emparanza, JI, Espuga, M, Plana, N, González‐Pinto, A, Ortí‐Lucas, RM, Salázar, AM, Rius, C, Aragonès, E, Cura‐González, I, Aragón‐Peña, A, Campos, M, Parellada, M, Pérez‐Zapata, A, Forjaz, MJ, Sanz, F, Haro, JM, Vieta, E, Pérez‐Solà, V, Kessler, RC, Bruffaerts, R and Alonso, J (2021b) Thirty‐day suicidal thoughts and behaviors among hospital workers during the first wave of the Spain COVID‐19 outbreak. Depression and Anxiety 38, 528544. doi:10.1002/da.23129CrossRefGoogle Scholar
Mortier, P, Vilagut, G, García-Mieres, H, Alayo, I, Ferrer, M, Amigo, F, Aragonès, E, Aragón-Peña, A, Asúnsolo Del Barco, Á, Campos, M, Espuga, M, González-Pinto, A, Haro, JM, López Fresneña, N, Martínez de Salázar, AD, Molina, JD, Ortí-Lucas, RM, Parellada, M, Pelayo-Terán, JM, Pérez-Gómez, B, Pérez-Zapata, A, Pijoan, JI, Plana, N, Polentinos-Castro, E, Portillo-Van Diest, A, Puig, T, Rius, C, Sanz, F, Serra, C, Urreta-Barallobre, I, Kessler, RC, Bruffaerts, R, Vieta, E, Pérez-Solá, V and Alonso, J (2024) Health service and psychotropic medication use for mental health conditions among healthcare workers active during the Spain Covid-19 Pandemic – a prospective cohort study using web-based surveys. Psychiatry Research 334, 115800. doi:10.1016/j.psychres.2024.115800CrossRefGoogle ScholarPubMed
Murata, S, Rezeppa, T, Thoma, B, Marengo, L, Krancevich, K, Chiyka, E, Hayes, B, Goodfriend, E, Deal, M, Zhong, Y, Brummit, B, Coury, T, Riston, S, Brent, DA and Melhem, NM (2021) The psychiatric sequelae of the COVID‐19 pandemic in adolescents, adults, and health care workers. Depression and Anxiety 38, 233246. doi:10.1002/da.23120CrossRefGoogle ScholarPubMed
Navarro, MC, Ouellet-Morin, I, Geoffroy, M-C, Boivin, M, Tremblay, RE, Côté, SM and Orri, M (2021) Machine learning assessment of early life factors predicting suicide attempt in adolescence or young adulthood. JAMA Network Open 4, e211450. doi:10.1001/jamanetworkopen.2021.1450CrossRefGoogle ScholarPubMed
Nock, MK, Millner, AJ, Ross, EL, Kennedy, CJ, Al-Suwaidi, M, Barak-Corren, Y, Castro, VM, Castro-Ramirez, F, Lauricella, T, Murman, N, Petukhova, M, Bird, SA, Reis, B, Smoller, JW and Kessler, RC (2022) Prediction of suicide attempts using clinician assessment, patient self-report, and electronic health records. JAMA Netw Open 5, e2144373. doi:10.1001/jamanetworkopen.2021.44373CrossRefGoogle ScholarPubMed
Nock, MK, Stein, MB, Heeringa, SG, Ursano, RJ, Colpe, LJ, Fullerton, CS, Hwang, I, Naifeh, JA, Sampson, NA, Schoenbaum, M, Zaslavsky, AM and Kessler, RC (2014) Prevalence and correlates of suicidal behavior among soldiers. JAMA Psychiatry 71, 514. doi:10.1001/jamapsychiatry.2014.30CrossRefGoogle ScholarPubMed
Nordin, N, Zainol, Z, Mohd Noor, MH and Chan, LF (2023) An explainable predictive model for suicide attempt risk using an ensemble learning and Shapley Additive Explanations (SHAP) approach. Asian J Psychiatry 79, 103316. doi:10.1016/j.ajp.2022.103316CrossRefGoogle ScholarPubMed
Pedregosa, F, Varoquaux, G, Gramfort, A, Michel, V, Thirion, B, Grisel, O, Blondel, M, Müller, A, Nothman, J, Louppe, G, Prettenhofer, P, Weiss, R, Dubourg, V, Vanderplas, J, Passos, A, Cournapeau, D, Brucher, M, Perrot, M and Duchesnay, É., 2012. Scikit-learn: machine Learning in Python.Google Scholar
Pellegrini, L, Maietti, E, Rucci, P, Burato, S, Menchetti, M, Berardi, D, Maina, G, Fineberg, NA and Albert, U (2021) Suicidality in patients with obsessive-compulsive and related disorders (OCRDs): a meta-analysis. Comprehensive Psychiatry 108, 152246. doi:10.1016/j.comppsych.2021.152246CrossRefGoogle ScholarPubMed
Petrie, K, Crawford, J, Baker, STE, Dean, K, Robinson, J, Veness, BG, Randall, J, McGorry, P, Christensen, H and Harvey, SB (2019) Interventions to reduce symptoms of common mental disorders and suicidal ideation in physicians: a systematic review and meta-analysis. The Lancet Psychiatry 6, 225234. doi:10.1016/S2215-0366(18)30509-1CrossRefGoogle ScholarPubMed
Portillo-Van Diest, A, Vilagut, G, Alayo, I, Ferrer, M, Amigo, F, Amann, BL, Aragón-Peña, A, Aragonès, E, Asúnsolo Del Barco, Á, Campos, M, Del Cura-González, I, Espuga, M, González-Pinto, A, Haro, JM, Larrauri, A, López-Fresneña, N, Martínez de Salázar, A, Molina, JD, Ortí-Lucas, RM, Parellada, M, Pelayo-Terán, JM, Pérez-Zapata, A, Pijoan, JI, Plana, N, Puig, T, Rius, C, Rodríguez-Blázquez, C, Sanz, F, Serra, C, Urreta-Barallobre, I, Kessler, RC, Bruffaerts, R, Vieta, E, Pérez-Solá, V, Alonso, J and Mortier, P (2023) Traumatic stress symptoms among Spanish healthcare workers during the COVID-19 pandemic: a prospective study. Epidemiology and Psychiatric Sciences 32, e50. doi:10.1017/S2045796023000628CrossRefGoogle ScholarPubMed
Posner, K, Brown, GK, Stanley, B, Brent, DA, Yershova, KV, Oquendo, MA, Currier, GW, Melvin, GA, Greenhill, L, Shen, S and Mann, JJ (2011) The Columbia–Suicide Severity Rating Scale: initial validity and internal consistency findings from three multisite studies with adolescents and adults. American Journal of Psychiatry 168, 12661277. doi:10.1176/appi.ajp.2011.10111704CrossRefGoogle ScholarPubMed
Rezvani, S and Wang, X (2023) A broad review on class imbalance learning techniques. Applied Soft Comput 143, 110415. doi:10.1016/j.asoc.2023.110415CrossRefGoogle Scholar
Ribeiro, JD, Franklin, JC, Fox, KR, Bentley, KH, Kleiman, EM, Chang, BP and Nock, MK (2016) Self-injurious thoughts and behaviors as risk factors for future suicide ideation, attempts, and death: a meta-analysis of longitudinal studies. Psychological Medicine 46, 225236. doi:10.1017/S0033291715001804CrossRefGoogle Scholar
Rogoža, D, Strumila, R, Klivickaitė, E, Diržius, E and Čėnaitė, N (2021) Depressive symptoms, help-seeking, and barriers to mental healthcare among healthcare professionals in Lithuania. Acta Medica Lituanica 28, 5976. doi:10.15388/Amed.2020.28.1.3CrossRefGoogle ScholarPubMed
Sahimi, HMS, Mohd Daud, TI, Chan, LF, Shah, SA, Rahman, FHA and Nik Jaafar, NR (2021) Depression and suicidal ideation in a sample of Malaysian healthcare workers: a preliminary study during the COVID-19 pandemic. Frontiers in Psychiatry, 12, 658174. doi:10.3389/fpsyt.2021.658174CrossRefGoogle Scholar
Saito, T and Rehmsmeier, M (2015) The precision-recall plot is more informative than the ROC plot when evaluating binary classifiers on imbalanced datasets. PLoS One 10, e0118432. doi:10.1371/journal.pone.0118432CrossRefGoogle Scholar
Sangha, O, Stucki, G, Liang, MH, Fossel, AH and Katz, JN (2003) The self‐administered comorbidity questionnaire: a new method to assess comorbidity for clinical and health services research. Arthritis Care Res (Hoboken) 49, 156163. doi:10.1002/art.10993CrossRefGoogle ScholarPubMed
Schafer, KM, Kennedy, G, Gallyer, A and Resnik, P (2021) A direct comparison of theory-driven and machine learning prediction of suicide: a meta-analysis. PLoS One 16, e0249833. doi:10.1371/journal.pone.0249833CrossRefGoogle ScholarPubMed
Schrijvers, DL, Bollen, J and Sabbe, BGC (2012) The gender paradox in suicidal behavior and its impact on the suicidal process. Journal of Affective Disorders 138, 1926. doi:10.1016/j.jad.2011.03.050CrossRefGoogle ScholarPubMed
Seki, T, Kawazoe, Y and Ohe, K (2021) Machine learning-based prediction of in-hospital mortality using admission laboratory data: a retrospective, single-site study using electronic health record data. PLoS One 16, e0246640. doi:10.1371/journal.pone.0246640CrossRefGoogle Scholar
Sheehan, DV, Harnett-Sheehan, K and Raj, BA (1996) The measurement of disability. International Clinical Psychopharmacology 11, 8995. doi:10.1097/00004850-199606003-00015CrossRefGoogle ScholarPubMed
Sohn, MN, Dimitropoulos, G, Ramirez, A, McPherson, C, Anderson, A, Munir, A, Patten, SB, McGirr, A and Devoe, DJ (2023) Non‐suicidal self‐injury, suicidal thoughts and behaviors in individuals with an eating disorder relative to healthy and psychiatric controls: a systematic review and meta‐analysis. International Journal of Eating Disorders 56, 501515. doi:10.1002/eat.23880CrossRefGoogle ScholarPubMed
Somé, NH, Noormohammadpour, P and Lange, S (2024) The use of machine learning on administrative and survey data to predict suicidal thoughts and behaviors: a systematic review. Frontiers in Psychiatry 15, 1291362. doi:10.3389/fpsyt.2024.1291362CrossRefGoogle ScholarPubMed
Spitzer, RL, Kroenke, K, Williams, JBW and Löwe, B (2006) A brief measure for assessing generalized anxiety disorder. Archives of Internal Medicine 166, 1092. doi:10.1001/archinte.166.10.1092CrossRefGoogle ScholarPubMed
van Buuren, S (2018). Flexible Imputation of Missing Data, (2nd edn.) Chapman and Hall/CRC. doi:10.1201/9780429492259CrossRefGoogle Scholar
White, IR, Royston, P and Wood, AM (2011) Multiple imputation using chained equations: issues and guidance for practice. Statistics in Medicine 30, 377399. doi:10.1002/sim.4067CrossRefGoogle ScholarPubMed
Wood, AM, White, IR and Royston, P (2008) How should variable selection be performed with multiply imputed data? Statistics in Medicine 27, 32273246. doi:10.1002/sim.3177CrossRefGoogle ScholarPubMed
World Health Organization (2024) https://www.who.int/news-room/fact-sheets/detail/suicide [World Health Organization. Suicide data.].Google Scholar
Xiaoming, X, Ming, A, Su, H, Wo, W, Jianmei, C, Qi, Z, Hua, H, Xuemei, L, Lixia, W, Jun, C, Lei, S, Zhen, L, Lian, D, Jing, L, Handan, Y, Haitang, Q, Xiaoting, H, Xiaorong, C, Ran, C, Qinghua, L, Xinyu, Z, Jian, T, Jing, T, Guanghua, J, Zhiqin, H, Nkundimana, B and Li, K (2020) The psychological status of 8817 hospital workers during COVID-19 epidemic: a cross-sectional study in Chongqing. Journal of Affective Disorders 276, 555561. doi:10.1016/j.jad.2020.07.092CrossRefGoogle ScholarPubMed
Xu, X, Wang, W, Chen, J, Ai, M, Shi, L, Wang, L, Hong, S, Zhang, Q, Hu, H, Li, X, Cao, J, Lv, Z, Du, L, Li, J, Yang, H, He, X, Chen, X, Chen, R, Luo, Q, Zhou, X, Tan, J, Tu, J, Jiang, G, Han, Z and Kuang, L (2021) Suicidal and self-harm ideation among Chinese hospital staff during the COVID-19 pandemic: prevalence and correlates. Psychiatry Research 296, 113654. doi:10.1016/j.psychres.2020.113654CrossRefGoogle ScholarPubMed
Yarkoni, T and Westfall, J (2017) Choosing prediction over explanation in psychology: lessons from machine learning. Perspectives on Psychological Science 12, 11001122. doi:10.1177/1745691617693393CrossRefGoogle ScholarPubMed
Zhang, Y, Wang, J, Xiong, X, Jian, Q, Zhang, L, Xiang, M, Zhou, B and Zou, Z (2022) Suicidality in patients with primary diagnosis of panic disorder: a single-rate meta-analysis and systematic review. Journal of Affective Disorders 300, 2733. doi:10.1016/j.jad.2021.12.075CrossRefGoogle ScholarPubMed
Zhao, Y and Long, Q (2017) Variable selection in the presence of missing data: imputation‐based methods. WIREs Computational Statistics 9, e1402. doi:10.1002/wics.1402CrossRefGoogle ScholarPubMed
Zhou, Y, Wang, W, Sun, Y, Qian, W, Liu, Z, Wang, R, Qi, L, Yang, J, Song, X, Zhou, X, Zeng, L, Liu, T, Li, Z and Zhang, X (2020) The prevalence and risk factors of psychological disturbances of frontline medical staff in China under the COVID-19 epidemic: workload should be concerned. Journal of Affective Disorders 277, 510514. doi:10.1016/j.jad.2020.08.059CrossRefGoogle Scholar
Zuromski, KL, Ustun, B, Hwang, I, Keane, TM, Marx, BP, Stein, MB, Ursano, RJ and Kessler, RC (2019) Developing an optimal short‐form of the PTSD Checklist for DSM‐5 (PCL‐5). Depression and Anxiety 36, 790800. doi:10.1002/da.22942CrossRefGoogle ScholarPubMed
Figure 0

Table 1. Sociodemographic and work characteristics of Spanish healthcare workers during the COVID-19 pandemic assessed at T1 (N = 4,809)

Figure 1

Figure 1. (a) The receiver operating characteristics curve and the area under the receiver operating characteristic curve (AUROC) for suicidal thoughts and behavior prediction. The results of the prediction using different balancing test are shown (left). (b) The precision-recall curve and the area underthe precision-recall curve of the models. The results of the prediction using different balancing test are shown (right).

Abbreviations: ROC: receiver operating characteristics; AUC: area under the curve; No balancing: no balancing technique was used; Undersampling: undersampling of the majority class technique was used; SMOTE: Synthetic Minority Oversampling Technique was used.
Figure 2

Figure 2. (a) The receiver operating characteristics curve and the area under the receiver operating characteristic (AUROC) curve of the models for men and women. (b) The precision-recall curve and the area under the precision-recall curve of the models for men and women.

Abbreviations: ROC: receiver operating characteristics; AUC: area under the curve.
Figure 3

Figure 3. Shapley additive explanation (SHAP) summary graph. Each point on the graph is a SHAP value for one variable. The color represents the value of the variable from low (blue) to high (pink).

Notes: The color of each point on the graph represents the value of the corresponding variable: pink indicates high values and blue indicates low values. The horizontal axis (x-axis) represents the SHAP value. Abbreviations: C-SSRS: Suicidal thoughts and behaviors screen; PHQ-9: Patient Health Questionnaire 9 item; CIDI: Composite International Diagnostic Interview; Prime-MD: Primary Care Evaluation of Mental Disorders; BAFFS: Brief Assessment of Family Functioning Scale; CD-RISC: Connor-Davidson Resilience Scale; OSS3: Oslo Social Support Scale; OCI-R: Obsessive Compulsive Inventory revised.
Figure 4

Figure 4. Shapley additive explanation (SHAP) summary graph. for men (a) and women (b).

Notes: The color of each point on the graph represents the value of the corresponding variable: pink indicates high values and blue indicates low values. The horizontal axis (x-axis) represents the SHAP value. Abbreviations: C-SSRS: Suicidal thoughts and behaviors screen; PHQ-9: Patient Health Questionnaire 9 item; CIDI: Composite International Diagnostic Interview; Prime-MD: Primary Care Evaluation of Mental Disorders; BAFFS: Brief Assessment of Family Functioning Scale; CD-RISC: Connor-Davidson Resilience Scale; OSS3: Oslo Social Support Scale; OCI-R: Obsessive Compulsive Inventory revised.
Supplementary material: File

Alayo et al. supplementary material

Alayo et al. supplementary material
Download Alayo et al. supplementary material(File)
File 506.3 KB