Application of machine learning techniques to help in the feature selection related to hospital readmissions of suicidal behavior
Abstract
Producción Científica
Full text
Vol.:(0123456789) International Journal of Mental Health and Addiction https://doi.org/10.1007/s11469-022-00868-0 1 3 ORIGINAL ARTICLE Application ofMachine Learning Techniques toHelp intheFeature Selection Related toHospital Readmissions ofSuicidal Behavior GemaCastillo‑Sánchez1· MarioJojoaAcosta2 · BegonyaGarcia‑Zapirain2 · IsabelDelaTorre1 · ManuelFranco‑Martín3 Accepted: 28 June 2022 © The Author(s) 2022 Abstract Suicide was the main source of death from external causes in Spain in 2020, with 3,941 cases. The importance of identifying those mental disorders that influenced hospital readmissions will allow us to manage the health care of suicidal behavior. The feature selection of each hospital in this region was carried out by applying Machine learning (ML) and traditional statistical methods. The results of the characteristics that best explain the readmissions of each hospital after assessment by the psychiatry specialist are presented. Adjustment disorder, alcohol abuse, depressive syndrome, personality disorder, and dysthymic disorder were selected for this region. The most influential methods or characteristics associated with suicide were benzodiazepine poisoning, suicidal ideation, medication poisoning, antipsychotic poisoning, and suicide and/or self-harm by jumping. Suicidal behavior is a concern in our society, so the results are relevant for hospital management and decisionmaking for its prevention. Keywords Machine learning· Readmissions· Mental disorder· Suicide prevention· Hospital * Gema Castillo-Sánchez [email protected]; g[email protected]a.es Mario Jojoa Acosta [email protected] Begonya Garcia-Zapirain [email protected] Isabel Dela Torre [email protected]a.es Manuel Franco-Martín [email protected] 1 Department ofSignal Theory andCommunications, andTelematics Engineering, Universidad de Valladolid, Paseo de Belén 15, 47011Valladolid, Spain 2 eVida Research Laboratory, The University ofDeusto, Bilbao, Spain 3 Psychiatry Service, Healthcare Complex, Zamora, Spain
International Journal of Mental Health and Addiction 1 3 Abbreviations ICD-10 International Classification of Diseases, 10th Edition CYL Castilla y León SACYL Castilla y Leon Health CHAID Chi-square automatic interaction detector ML Machine learning Introduction Suicide was the primary source of death by external causes in Spain in 2020, with 3,941 cases – 7.4% higher than in 2019 (INE, 2021). 4.4% of deaths in Spain corresponded to mental or behavioural disorders (INE, 2021), while in Castilla y León (CYL), there were 228 deaths by suicide in 2020 (INE, 2021). In CYL, the general trend in psychiatric hospitalizations was an annual statistically significant increase of 2% over 11years (2005–2015) (Llanes-Álvarez etal., 2021). However, hospitalization in CYL tended to be lower in cases where the main diagnosis was alcohol or drug abuse/dependence (Llanes-Álvarez etal., 2020). Additional efforts to prevent suicide may better focus on reducing the risk of suicide immediately following discharge (Williams etal., 2018). Mental disorders in themselves do not explain suicide, although it is a fact that there is an underlying mental disorder in most cases and this vulnerability interacts with many psychological and social factors that lead some individuals to either end or try to end their own lives (Haw & Hawton, 2015). For their part, mental disorders are considered major risk factors in suicide (Moitra etal., 2021), with one study suggesting that ongoing efforts are required to improve access to and quality of mental health care, to prevent individuals with mental disorders from committing suicide (Too etal., 2019). That is why there was a need to gather official information based on the minimum basic dataset (CMBD) (Melendez frigola etal., 2016) regarding admissions or acute patients associated with suicide in CYL, which entails the search for the key factors that have the most bearing on hospital readmissions of such patients with mental health problems by way of the objective to be pursued in this research. Thus, the application of techniques such as CHAID (Jojoa etal., 2021), random forest (Wang etal., 2021), logistic regression (Qasim & Algamal, 2018), and support vector machine (Jojoa-Acosta etal., 2021) proved necessary, together with a set based on common outputs for each algorithm to obtain a general overview of how the resulting system functions. Subsequently, and for the specialist in psychiatry to conduct the assessment, a table was put together indicating which variables best explained the real situation facing each hospital subject to study. Lastly, the results obtained were based on the application of machine learning, conventional statistical methods, and expert assessment provided to suicide prevention strategies, considering the features of each region. This research presents the materials used in the following section, describing the database used (context-hospital time behavior) and the methods with their basic theoretical principles supporting the selection of machine learning techniques used. The results obtained from the analysis and corresponding comparisons are then provided. Lastly, a discussion of results in considered together with the limitations and conclusions deriving from this research.
International Journal of Mental Health and Addiction 1 3 Materials andMethods Materials State‑of‑the‑Art Review (Context‑Hospital Time Behavior) CYL (an autonomous region comprising nine provinces (Avila, Burgos, Leon, Palencia, Salamanca, Segovia, Soria, Valladolid and Zamora). It covers an area of 94,226 km2 with 2,409,165 inhabitants as of 2020 (INE, 2021). The distribution of hospitals and their corresponding hospital records of acute patients with suicide-related mental disorders according to the province are shown in Fig.1. CYL health organization is based on territorial demarcations (Fig.1). Figure1 shows the total number of records of patients with mental disorders who were hospitalized between 2005 and 2015 in CYL. In Table1, we can observe the average population corresponding to each hospital region that recorded acute patients with mental health issues. It is important to highlight the fact that the 261 records about the Rio Hortega hospital in Valladolid were not included, because the gathering of information from this the hospital required for the present study first started to be recorded in 2009, in contrast with the other records that date back to 2005. The remaining hospitals coincide in the data collection period from 2005 to 2015, and so their 4054 records were included in their entirety for this research. Furthermore, CYL is a large region in Spain and has a food and agriculture sector with a turnover of around 10% of the rest of Spain, which attention should be drawn to its meat, dairy, and animal foodstuff industry (Invest in Spain, n.d.). Twelve percent of total Spanish energy is produced in CYL, which also boosts energy diversification and innovation in terms of renewable energies (Invest in Spain, n.d.). Fig. 1 Map of CYL with total numbers of records with suicide-related diagnoses between 2005 and 2015
International Journal of Mental Health and Addiction 1 3 Dataset Description Patient admission records in (CYL) comprise 4315 records with diagnoses of acute mental disorders in public health hospitals in Castilla y Leon (SACYL) (Sacyl, 2021) between 2005 and 2015. The data is based on the minimum basic dataset (CMBD) (Melendez frigola etal., 2016) and the International Classification of Diseases 10 (Spain, 2021). We applied data cleaning to obtain records of patients with diagnoses associated with suicide, which we show in detail in Fig.2. The data relating to suicide diagnoses in CYL, which we will refer to as (DBSUICIDECYL), comprises 4315 records of admissions of patients with suicide-related diagnoses. The inclusion criteria for records were acute mental health patients according to ICD-10 coding of the diagnoses selected by the authors as suicide-related disorders shown in Table2 and Fig.2. Lastly, N = 4054 was used to extract the 261 records from the Rio Ortega University Hospital, according to Fig.2. Variable Description Some dichotomous variables are created that allow us to identify the most frequent diagnoses associated with suicide in DBSUICIDECYL, these being organized into three main themes. Other variables such as years are shown numerically, with age and stay days being categorized accordingly together with hospitals. For further details, see Table2. Table3 shows the distribution of mental disorders, suicidal features, and somatic disorders associated with suicide as described by DBSUICIDECYL, according to that shown in Table2. Distribution according to gender enables us to show the distribution and corresponding percentage in each group of variables included in this study (Table3). Methods The decision was made in the present research to use two state-of-the-art components in selecting attributes/variables. The first corresponds to a classic statistical technique based on goodness of fit assessed by Chi2 distribution, while the second involves the use of machine learning techniques whose function is based on 3 different approaches: entropy, probability, and the linear ratio of the variable. Based on this, the CHAID algorithms were Table 1 Population average over the 11years (2005–2015): variance, according to region and hospital in CYL Region Population average Standard deviation Variance Avila 169,419.4 2576.5 6,638,642.4 Burgos 369,791.4 5526.8 30,546,316.6 El Bierzo Hospital 247,148.3 3424.1 11,724,220.2 Leon 247,148.3 3424.1 11,724,220.2 Palencia 171,286.8 2636.6 6,951,987.5 Salamanca 349,948.5 5114.0 26,153,388.8 Segovia 160,991.2 3444.8 11,866,853.7 Soria 93,739.73 1370.6 1,878,487.8 Valladolid Clinic Hospital 263,986.6 3381.6 11,435,294.4 Zamora 192,909.7 5129.1 26,307,633.2
International Journal of Mental Health and Addiction 1 3 selected (Jojoa etal., 2021) for the first component, random forest (Wang etal., 2021), logistic regression (Qasim & Algamal, 2018), and support vector machine (Jojoa-Acosta etal., 2021) for the second. In the end, a study was carried out based on common outputs and assessment by an expert, who finally decided which would have the greatest bearing on the hospital readmissions variable from among the resulting set of variables. Details of the methods applied in the present study are provided below in Fig.3. CHAID Analysis forFeature Selection The application of different techniques was required for the present study, to compare them and thus obtain target results about those variables that have the greatest bearing on predicting admissions in acute patients with suicide-related mental disorders. To this end, it was important to use a technique based on the statistical study involving the distribution of the data analyzed. Chi-square tests offer the chance to analyze by observing the goodness of fit of one set of data in contrast to the other—in other words, using this method known as chi-square interaction automatic detector (CHAID), it is possible to build a tree that may help to determine how the variables merge to explain the result in the given dependent datum. Nominal, ordinal, and continuous data may be used in the CHAID analysis, in which continuous predictors are divided into categories with approximately the same number of observations. In our case, the response variable evidence dichotomous behavior, enabling the CHAID to detect all the possible cross-tabulations for each categorical predictor until the best result is obtained—exactly where no other division can be made in some branch of the tree. The decision or classification tree starts with the identification of the target variable or dependent variable, which would be considered the root. The CHAID analysis divides the target into two or more categories using statistical algorithms in child nodes. Unlike the regression analysis, the CHAID technique does not require data to be distributed normally. Fig. 2 Flow of inclusion and exclusion criteria: patient data associated with suicide-related diagnoses
International Journal of Mental Health and Addiction 1 3 Table 2 Variable description of DBSUICIDECYL Other variables in the database: Years, a year in which the diagnosis was registered; Admission month, patient record admission month; Hospitals, Hospital identifier; Gender, gender identifier; Age, age identifier; stay days, number of patient hospital stay days; Re_entry, variable assumed value 1 when the patient was readmitted to CYL hospitals during the period from 2005 to 2015 Variable description Mental disorders Suicidal features Somatic disorders Personality disorder (includes borderline personality disorder and histrionic personality disorder) Antipsychotic poisoning (includes antipsychotic poisoning) Arterial hypertension Bipolar disorder (includes diagnoses related to manic depressive psychosis) Benzodiazepine poisoning Hypercholesterolemia (includes hyperlipidaemia and lipidaemia) Depressive syndrome (includes depressive disorder) Suicide by psychotropics Mellitus diabetes Schizophrenia (includes schizophreniform, delusional development, and paranoia) Drug poisoning (includes all drug intoxication and suicide by drugs) Hypothyroidism Adjustment disorder (all types of this disorder) Suicidal ideas Alcohol abuse (includes alcohol dependence and alcohol addiction) Suicide and/or self-harm from jumping Dysthymic disorder State of anxiety
International Journal of Mental Health and Addiction 1 3 Machine Learning forFeature Selection We find the use of classification algorithms in many state-of-the-art works which, via information analysis, can identify the most important attributes or variables in a prediction task. That is why we decided to apply different methods based on different linear and-linear metrics and, with the results obtained as a whole, thus determine the importance of attributes when predicting admissions. For this reason, we selected three algorithms with different metrics, as their objectivity was required. Correlation Analysis In a machine learning analysis, it is desirable for the variables being analyzed not to evidence any correlation with each other, as dimensionality reduction is needed to prevent any phenomena that may affect performance, such as those regarding fit. Therefore, a Pearson correlation coefficient analysis was initially carried out to observe those variables which could be disregarded according to a team of experts. Pearson Correlation Coefficient and Spearman Correlation Coefficient Two matrixes were created to observe the correlation between input variables: one based on the Pearson correlation coefficient (Wan etal., 2021) and one on the Spearman correlation coefficient (Ghosh etal., 2021). Initially, we used normalized covariance to thus compare data behavior in the sets being studied, using centred statical moment. The formula corresponding to the Pearson correlation coefficient is shown in Eq.(1) Table 3 Distribution and percentages of variables according to year and gender, broken down according to mental disorders, suicidal features, and somatic disorders COD_ CIE 10 Mental disorders 2005 - 2015 %05-15 Male Female Male%Female% F43.20 Adjustment Disorder 107121% 487584 45 %5 5% F10(F10.1-F10.99) Alcohol Abuse104621% 636410 61 %3 9% F30-F39Depressive syndrome 801 16%324 47740% 60% F60.9, F60.3, F60.4 Personality disorder 779 15%235 54430% 70% F34.1Dysthymic Disorder 484 10%124 36026% 74% F20 (F20.1-F20.9) Schizophrenia 389 8% 251138 65 %3 5% F31.9-F31.81, F29Bipolar disorder 321 6% 124197 39 %6 1% F41Anxiety State145 3% 73 72 50 %5 0% COD_ CIE 10 Characteriscs of Suicide 2005-2015 %05-15 Male Female Male %Female% T42.4Benzodiazepine poisoning129429% 485809 37 %6 3% R45.8 Suicide Ideas111525% 579536 52 %4 8% T36-T50Drug poisoning 103423% 449585 43 %5 7% T43.8, T43.9Suicide by Psychotropics816 18%308 50838% 62% T43.3Anpsychoc poisoning197 4% 90 10746% 54% X80 Suicide and / or self-harm from jumping 29 1% 16 13 55 %4 5% COD_ CIE 10 Somac Disorder 2005-2015 %05-15 Male Female Male %Female% I10Arterial hypertension 355 35%167 18847% 53% E78,E78.5, E78.2Hypercholesterolemia (includes hyperlipidemia and lipidemia) 279 28%125 15445% 55% E14Mellitus diabetes 219 22%106 11348% 52% E03.9Hypothyroidism 159 16%20139 13 %8 7%
International Journal of Mental Health and Addiction 1 3 Seeking a more objective perspective, it was also decided to use the Spearman correlation coefficient [17] in such a way as to ascertain correlation behavior between variables, via the two approaches mentioned: whereas the Pearson correlation coefficient seeks linear correlation between two random variables, the Spearman correlation coefficient targets the monotonous relationship between variables, i.e., they change simultaneously in terms of increase or decrease. Non‑correlated Variable Selection Once the aforementioned procedures have been completed, those variables with a statistically high correlation value are then selected, i.e., those whose correlation coefficients exceed certainly given thresholds. To this end, thresholds of 0.8, 0.7, and 0.6 were established to create non-correlated subunits to select attributes. A block diagram is shown in Fig.4 with the procedure referred to. Recursive Feature Selection Based on Machine Learning Currently, machine learning techniques (ML) are being widely used for tasks involving attribute selection (Munasinghe & Karunanayake, 2021) based on their main features in terms of predicting a variable response selected, among other applications. Different machine learning techniques were used in this work to find the attributes that most affected admission response behavior in hospitals in the autonomous region of Castilla y León. The analysis was conducted for all data, and each hospital on an individual basis and the algorithms used were: – Support vector machine (Casalicchio etal., 2018). – Random forest (Kirasich etal., 2018). – Logistic regression (Guo etal., 2021). Random Forest as an Attribute Selector Algorithm This involves a set of decision trees using what is known as the bagging technique to increase generalization capacity and reduce variance in the performance metrics required. They constitute one of the most used algorithms in the industry and are widely applied in determining the importance of attributes. The functioning of this algorithm is based mainly on entropy calculation in Eq.(1) (1) 𝜌 p= Co(x , y) 𝛿 x 𝛿 y Pearson correlation coefficient (2) 𝜌 s=1−6Σ(x−y) 2 n ( x2−1 )Spearman correlation coefficient Fig. 3 Methods applied
International Journal of Mental Health and Addiction 1 3 of the data used for each tree and hence used to determine those variables that provide the most information in terms of the classification task. Thus, bagging proposes an algorithmic goal to integrate machine learning algorithms to improve the general performance metrics of the system being used. A block diagram showing the model used is provided below. Each DTn block corresponds to a decision tree trained using an independent part of the data and is assembled in the last bagging block in inference time to provide a suitably agreed output, as shown in Fig.5. Multinomial Logistic Regression as an Attribute Selector Algorithm This is known as a regression technique used to predict a categorical variable. For the purposes of the present work, an attempt was made to predict a patient’s admission to hospital, and thus determine which attributes are the ones that mainly interact to predict them. Its functioning is based on data analysis according to multinomial distribution, as shown below: From this can be obtained a logarithm of the odds ratio or logit, as shown below: Which represents the attribute incidence of arrangement Xi in response variable Yi making use of the Softmax function shown in Eq.(3), in this polychotomous case. In this specific case, Yi corresponds to the dependent or Re_entry and the sets Xi as described in the “Materials” section. Support Vector Machine as an Attribute Selector Algorithm This constitutes one of the most used algorithms in classification problems and categorical regression. Its simplicity and computational efficiency make it an ideal algorithm for these types of rapid-use and highly reliable applications. Its functioning is based on margin maximization (distance between support vectors of the data being used) to trace a hyperplane that represents the algorithm (3) Entropy = −Pilog2(Pi) (4) f(x)= n! x1!……xk! px1…..p xk (5) P xi =exp ⎛ ⎜ ⎜ ⎝ Y i Ni Xi ⎞ ⎟ ⎟ ⎠ (6) Softmax( x)= e xi ∑e xj Fig. 4 Block diagram showing the creation of subunits based on Pearson and Spearman correlation coefficients
International Journal of Mental Health and Addiction 1 3 • Personality disorder is an influential variable in Avila, Burgos, Leon, El Bierzo, Palencia, Salamanca, Segovia, Soria, and Valladolid. CHAID coincides with the case of the Palencia hospital in terms of this disorder. This study (Doyle etal., 2016) found a 20-fold increase in the risk of suicide among patients with personality disorder in comparison to those without any such recorded psychiatric disorder. • Dysthymic disorder is considered an influential variable in Avila, Burgos, El Bierzo, Soria, Valladolid, and Zamora. The recurring dysthymic disorder would appear to lead to a greater risk of suicide (Witte etal., 2009). • Schizophrenia appears as an influential variable in Burgos, Leon, Palencia, Salamanca, Segovia, Soria, and Valladolid. There is a significant link between schizophrenia and suicide in China (Lyu etal., 2021) and schizophrenic suicides involved a greater intention to commit suicide than those without it (Lyu & Zhang, 2021). • Bipolar disorder is an influential variable in Avila, Burgos, Leon, El Bierzo, Palencia, Salamanca, Segovia, Soria, and Zamora. There have been studies on bipolar disorder and suicide to help understand clinical and demographic factors (Miller & Black, 2020). • State of anxiety is an influential variable in Avila, El Bierzo, Palencia, Segovia, Soria, Valladolid, and Zamora. Mental health diagnoses such as anxiety and/or depression are closely associated with suicide among university students (S. M. Casey etal., 2022). According to Table7, the variables associated with methods or suicidal features selected by ML that influence admissions in CYL public hospitals are found in the following: • Benzodiazepine poisoning is considered an influential variable in Avila, Leon, El Bierzo, Salamanca, Segovia, Valladolid, and Zamora. The high proportion of this type of intentional poisoning, which includes diagnoses of mental health disorders among young women, highlights the importance of assessing mental health and the risk of suicide in emergency services deriving from suitable monitoring, according to this research (Bushnell etal., 2021). • Suicidal ideas are considered an influential variable in Avila, Burgos, Leon, El Bierzo, Palencia, Salamanca, Segovia, Valladolid, and Zamora. CHAID coincides with the case of the hospitals in Avila and Burgos in terms of this variable. In this research (Chapman etal., 2015), it is pointed out that the association of suicidal ideas with subsequent suicide needs to be cautiously interpreted, owing to the great heterogeneous nature of studies and associated disorders. • Drug poisoning is considered an influential variable in Avila, Burgos, Leon, El Bierzo, Palencia, Salamanca, Segovia, Soria, Valladolid, and Zamora. In a cross-sectional study (Shiels etal., 2020), it was found that demographic features and geographic patterns varied according to the cause of death, which suggests that the increase in death results from this cause and alcohol abuse is not merely concentrated within a single group or region. • Suicide by psychotropics is considered an influential variable in Burgos, Leon, El Bierzo, Palencia, Salamanca, Segovia, Soria, and Zamora. There is a study that compares cases of self-intoxication by psychotropics (Pfeifer etal., 2020); the results of which depend on the region subject to study. • Antipsychotic poisoning is considered an influential variable in Avila, Burgos, Leon, El Bierzo, Salamanca, Soria, and Valladolid. In research into this subject (Ferrey etal., 2018), little difference was found in terms of the toxicity of individual mood stabilizers. • Suicide and/or self-harm from jumping is considered an influential variable in Burgos and Salamanca. There is little difference in terms of the features of individuals who jump from different places (Bennewith etal., 2011; Gunnell & Nowers, 1997). • Of the other variables considered influential according to Table7, only Burgos showed via the CHAID analysis that the years variable accounted for its admission behavior; in the case of the other hospitals, this variable was not selected according to the methodology proposed in the study. Specifically, the economic crisis (Mattei etal., 2019) and
International Journal of Mental Health and Addiction 1 3 the increase in unemployment (Chang etal., 2013; López-Contreras etal., 2019) are considered important risk factors regarding suicide (Demirci etal., 2020). In general, it is estimated that this is accentuated insituations of economic uncertainty (Vandoros etal., 2019), or when the situation regarding family poverty worsens, especially if associated with previous mental health problems (Pan etal., 2013). Consequently, and considering that a situation of world trade collapse is being announced leading to a major economic crisis as a result of the pandemic (Slater, 2020), this will foreseeably influence suicide rates, as occurs in the case of all disasters (Mannix etal., 2020). • Age is another variable considered influential in the case of hospitals in Avila, Leon, El Bierzo, Palencia, Salamanca, Segovia, Soria, and Valladolid, according to the results obtained in Table5. In this study (Da Veiga & Saraiva, 2003), the practical implications within the context of previous theories that relate suicide age patterns to sociological and economic dimensions are discussed. • Gender is a further variable considered influential in the case of hospitals in Avila, Burgos, El Bierzo, Palencia, Salamanca, Segovia, Soria, Valladolid, and Zamora, according to the results obtained by ML in Table7. The CHAID analysis also coincides with the El Bierzo and Salamanca hospitals in terms of this variable. Considering the differences in intention to commit suicide between men and women highlighted in this study (Freeman etal., 2017), gender-oriented prevention and intervention strategies would be recommended, whereby this variable proves to be influential in accounting for admissions of acute patients associated with suicide. Limitation DBSUICIDECYL contains the records of acute patients with suicide-related mental disorders and represents one of the most diverse cohorts in the country. The nature of this study also limits the records of patients meeting the inclusion criteria shown in Table2. The data analyzed here has been anonymised (BDSUICIDECYL), and as such, there is no knowledge of the patient’s socio-economic data. However, the period from which the data was taken was from 2005 to 2015, including the 2008 period of the financial crisis. According to the studies by Roca etal. (2013), to assess the relationship between suicide and the economic crisis, we must avoid focusing on immediate suicide rates, but rather, first look at the underlying diseases and only later at the consequences of those diseases, i.e. suicide, and the use of health services. That is why we focused on mental disorders and suicidal features when carrying out this study. Conclusion The relevance of this study is to show the variables for each hospital and for the entire region with their metrics in order to show the feature selection that allow us to understand patients who are readmitted with suicidal behavior. According to an ML analysis on CYL hospital readmissions of acute patients with suiciderelated mental disorders between 2005 and 2015, we found variables that influence adjustment disorder, alcohol abuse, depressive syndrome, personality disorder, and dysthymic disorder. Of the methods or features associated with suicide over the same period, in the ML analysis carried out, we found influential variables such as benzodiazepine poisoning,
International Journal of Mental Health and Addiction 1 3 suicidal ideas, drug poisoning, antipsychotic poisoning, and suicide, and/or self-harm from jumping. Other influential variables that we found in this study were age and gender. For its part, the CHAID analysis coincided with ML in variables influencing personality disorder, gender, suicidal ideas, and dysthymic disorder. According to the results obtained, it is necessary to continue investigating the various factors that affect suicide; in this case, we address the hospital management of readmissions. However, there are other areas of research that can contribute to suicide prevention. All of them contribute to the knowledge of this problem, for example, we can mention initiatives that help prevent it, such as training activities for its professionals (Castillo-Sanchez etal., 2019) and mindfulness therapies in times of COVID (Castillo-Sánchez etal., 2022). Expected future work will involve verifying suicide-related mental disorders over the years 2016 to 2020 in the same region. Acknowledgements We wish to express our gratitude to the University of Valladolid for supporting the Doctoral stay at the University of Deusto. Acknowledgement for the Senacyt, Panama doctoral scholarship. Author Contribution All authors contributed to study design, writing, editing, and final approved of the manuscript. Authors GC and MJ were responsible for the analyses described in the study. Funding Open Access funding provided thanks to the CRUE-CSIC agreement with Springer Nature. Declarations Ethics Approval Approved ethical committee code: PI 20–1780 by CEim (“Comité de Ética de la Investigación con Medicamentos área de Salud Valladolid”/ committee of ethics for research with medicines, Valladolid health area). Conflict of Interest The authors declare no competing interests. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http:// creat iveco mmons. org/ licen ses/ by/4. 0/. References Bennasar, M., Hicks, Y., & Setchi, R. (2015). Feature selection using Joint Mutual Information Maximisation. Expert Systems with Applications, 42(22), 8520–8532. https:// doi. org/ 10. 1016/J. ESWA. 2015. 07. 007 Bennewith, O., Nowers, M., & Gunnell, D. (2011). Suicidal behaviour and suicide from the Clifton Suspension Bridge, Bristol and surrounding area in the UK: 1994–2003. European Journal of Public Health, 21(2), 204–208. https:// doi. org/ 10. 1093/ EURPUB/ CKQ092 Berenfeld, C., & Hoffmann, M. (2021). Density estimation on an unknown submanifold. https:// doi. org/ 10. 1214/ 21EJS18 26, 15(1), 2179–2223. https:// doi. org/ 10. 1214/ 21EJS18 26,15(1) ,21792223. 10. 1214/ 21EJS18 26 Bushnell, G. A., Olfson, M., & Martins, S. S. (2021). Sex differences in US emergency department non-fatal visits for benzodiazepine poisonings in adolescents and young adults. Drug and Alcohol Dependence, 221, 108609. https:// doi. org/ 10. 1016/J. DRUGA LCDEP. 2021. 108609
International Journal of Mental Health and Addiction 1 3 Casalicchio, G., Molnar, C., & Bischl, B. (2018). Visualizing the feature im portance for black box models. Lecture Notes in Computer Science (Including Subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 11051 LNAI, 655–670. https:// doi. org/ 10. 1007/ 978-303010925-7_ 40 Casey, P., Jabbar, F., O’Leary, E., & Doherty, A. M. (2015). Suicidal behaviours in adjustment disorder and depressive episode. Journal of Affective Disorders, 174, 441–446. https:// doi. org/ 10. 1016/J. JAD. 2014. 12. 003 Casey, S. M., Varela, A., Marriott, J. P., Coleman, C. M., & Harlow, B. L. (2022). The influence of diagnosed mental health conditions and symptoms of depression and/or anxiety on suicide ideation, plan, and attempt among college students: Findings from the Healthy Minds Study, 2018–2019. Journal of Affective Disorders, 298, 464–471. https:// doi. org/ 10. 1016/J. JAD. 2021. 11. 006 Castillo-Sánchez, G., Sacristán-Martín, O., Hernández, M. A., Muñoz, I., De La Torre, I., & Franco-Martín, M. (2022). Online mindfulness experience for emotional support to healthcare staff in times of Covid19. Journal of Medical Systems, 46(3), 1–11. https:// doi. org/ 10. 1007/ S1091602201799-Y Castillo-Sanchez, G. A., De La Torre Diez, I., Rodrigues, J. J. P. C., Munoz-Sanchez, J. L., HernandezRamos, A., & Franco, M. A. (2019). Development of an E-learning model for training health staff in suicide prevention. In IEEE (Ed.), 2019 IEEE International Conference on E-Health Networking, Application and Services, HealthCom 2019 (pp. 1–16). Institute of Electrical and Electronics Engineers Inc. https:// doi. org/ 10. 1109/ Healt hCom4 6333. 2019. 90095 99 Chang, S. S., Stuckler, D., Yip, P., & Gunnell, D. (2013). Impact of 2008 global economic crisis on suicide: Time trend study in 54 countries. BMJ (online), 347(7925), f5239. https:// doi. org/ 10. 1136/ bmj. f5239 Chapman, C. L., Mullin, K., Ryan, C. J., Kuffel, A., Nielssen, O., & Large, M. M. (2015). Meta-analysis of the association between suicidal ideation and later suicide among patients with either a schizophrenia spectrum psychosis or a mood disorder. Acta Psychiatrica Scandinavica, 131(3), 162–173. https:// doi. org/ 10. 1111/ ACPS. 12359 Conner, K. R., & Bagge, C. L. (2019). Suicidal behavior: Links between alcohol use disorder and acute use of alcohol. Alcohol Research: Current Reviews, 40(1), e1–e4. https:// doi. org/ 10. 35946/ ARCR. V40.1. 02 Da Veiga, F. A., & Saraiva, C. B. (2003). Age patterns of suicide: Identification and characterization of European clusters and trends. Crisis, 24(2), 56–67. https:// doi. org/ 10. 1027// 02275910. 24.2. 56 Demirci, Ş, Konca, M., Yetim, B., & İlgün, G. (2020). Effect of economic crisis on suicide cases: An ARDL bounds testing approach. International Journal of Social Psychiatry, 66(1), 34–40. https:// doi. org/ 10. 1177/ 00207 64019 879946 Doyle, M., While, D., Mok, P. L. H., Windfuhr, K., Ashcroft, D. M., Kontopantelis, E., Chew-Graham, C. A., Appleby, L., Shaw, J., & Webb, R. T. (2016). Suicide risk in primary care patients diagnosed with a personality disorder: A nested case control study. BMC Family Practice, 17(1), 1–9. https:// doi. org/ 10. 1186/ S128750160479-Y/ TABLES/5 Fegan, J., & Doherty, A. M. (2019). Adjustment disorder and suicidal behaviours presenting in the general medical setting: A systematic review. In International Journal of Environmental Research and Public Health,16(16),MDPI AG. https:// doi. org/ 10. 3390/ ijerp h1616 2967 Ferrey, A. E., Geulayov, G., Casey, D., Wells, C., Fuller, A., Bankhead, C., Ness, J., Clements, C., Gunnell, D., Kapur, N., & Hawton, K. (2018). Relative toxicity of mood stabilisers and antipsychotics: Case fatality and fatal toxicity associated with self-poisoning. BMC Psychiatry, 18(1), 1–8. https:// doi. org/ 10. 1186/ S128880181993-3/ TABLES/3 Freeman, A., Mergl, R., Kohls, E., Székely, A., Gusmao, R., Arensman, E., Koburger, N., Hegerl, U., & Rummel-Kluge, C. (2017). A cross-national study on gender differences in suicide intent. BMC Psychiatry, 17(1), 1–11. https:// doi. org/ 10. 1186/ S128880171398-8/ TABLES/4 Ghosh, A., Nashaat, M., Miller, J., & Quader, S. (2021). Context-based evaluation of dimensionality reduction algorithms—Experiments and statistical significance analysis. ACM Transactions on Knowledge Discovery from Data (TKDD), 15(2). https:// doi. org/ 10. 1145/ 34280 77 Gunnell, D., & Nowers, M. (1997). Suicide by jumping. Acta Psychiatrica Scandinavica, 96(1), 1–6. https:// doi. org/ 10. 1111/J. 16000447. 1997. TB098 97.X Guo, Y., Zhang, Z., & Tang, F. (2021). Feature selection with kernelized multi-class support vector machine. Pattern Recognition, 117, 107988. https:// doi. org/ 10. 1016/J. PATCOG. 2021. 107988 Gupta, R., Shrivas, A., & Shukla, R. (2022). A two-stage multifeature selection method to predict healthcare data using neural network. EAI/Springer Innovations in Communication and Computing, 77–87. https:// doi. org/ 10. 1007/ 978-303078284-9_ 4/ COVER/ Haw, C., & Hawton, K. (2015). Suicide is a complex behaviour in which mental disorder usually plays a central role. Australian and New Zealand Journal of Psychiatry, 49(1), 13–15. https:// doi. org/ 10. 1177/ 00048 67414 555419 INE. (2021). Deaths by death’s cause in Spain - 2020. Invest in Spain. (n.d.). Industrias destacadas. Retrieved October 8, 2021, from https:// www. inves tinsp ain. org/ es/ regio nes/ casti lla-yleon/ indus triasdesta cadas
International Journal of Mental Health and Addiction 1 3 Jojoa, M., Lazaro, E., Garcia-Zapirain, B., Gonzalez, M. J., & Urizar, E. (2021). The impact of COVID 19 on university staff and students from Iberoamerica: Online learning and teaching experience. International Journal of Environmental Research and Public Health, 18(11), 5820. https:// doi. org/ 10. 3390/ IJERP H1811 5820 Jojoa-Acosta, M. F., Signo-Miguel, S., Garcia-Zapirain, M. B., Gimeno-Santos, M., Méndez-Zorrilla, A., Vaidya, C. J., Molins-Sauri, M., Guerra-Balic, M., & Bruna-Rabassa, O. (2021). Executive functioning in adults with down syndrome: Machine-learning-based prediction of inhibitory capacity. International Journal of Environmental Research and Public Health 2021, 18(20), 10785. https:// doi. org/ 10. 3390/ IJERP H1820 10785 Kaur, P., Gautam, R., & Sharma, M. (2022). Feature selection for bi-objective stress classification using emerging swarm intelligence metaheuristic techniques. Lecture Notes on Data Engineering and Communications Technologies, 91, 357–365. https:// doi. org/ 10. 1007/ 978981166285-0_ 29/ COVER/ Kirasich, K., Smith, T., & Sadler, B. (2018). Random forest vs logistic regression: Binary classification for heterogeneous datasets. SMU Data Science Review, 1(3). https:// schol ar. smu. edu/ datas cienc erevi ew/ vol1/ iss3/9 Kõlves, K., Draper, B. M., Snowdon, J., & De Leo, D. (2017). Alcohol-use disorders and suicide: Results from a psychological autopsy study in Australia. Alcohol (Fayetteville NY), 64, 29–35. https:// doi. org/ 10. 1016/J. ALCOH OL. 2017. 05. 005 Llanes-Álvarez, C., Alberola-López, C., Andrés-de-Llano, J. M., Álvarez-Navares, A. I., Pastor-Hidalgo, M. T., Roncero, C., Garmendia-Leiza, J. R., & Franco-Martín, M. A. (2021). Hospitalization trends and chronobiology for mental disorders in Spain from 2005 to 2015. Chronobiology International, 38(2), 286–295. https:// doi. org/ 10. 1080/ 07420 528. 2020. 18117 19 Llanes-Álvarez, C., Andrés-de Llano, J. M., Álvarez-Navares, A. I., Pastor-Hidalgo, M. T., Roncero, C., & Franco-Martín, M. A. (2020). Trends in psychiatric hospitalization for alcohol and drugs in Castilla y León between 2005 and 2015. Adicciones, 0(0). https:// doi. org/ 10. 20882/ ADICC IONES. 1405 López-Contreras, N., Rodríguez-Sanz, M., Novoa, A., Borrell, C., Medallo Muñiz, J., & Gotsens, M. (2019). Socioeconomic inequalities in suicide mortality in Barcelona during the economic crisis (2006–2016): A time trend study. British Medical Journal Open, 9(8), e028267–e028267. https:// doi. org/ 10. 1136/ bmjop en2018028267 Lyu, J., & Zhang, J. (2021). Suicide means, timing, intent and behavior characteristics of the suicides with schizophrenia. Psychiatry Research, 306, 114267. https:// doi. org/ 10. 1016/J. PSYCH RES. 2021. 114267 Lyu, J., Zhang, J., & Hennessy, D. A. (2021). Characteristics and risk factors for suicide in people with schizophrenia in comparison to those without schizophrenia. Psychiatry Research, 304, 114166. https:// doi. org/ 10. 1016/J. PSYCH RES. 2021. 114166 Mannix, R., Lee, L. K., & Fleegler, E. W. (2020). Coronavirus disease 2019 (COVID-19) and firearms in the United States: Will an epidemic of suicide follow? Annals of Internal Medicine, 173(3), 228–319. https:// doi. org/ 10. 7326/ m201678 Marengo, L., Douaihy, A., Zhong, Y., Krancevich, K., Brummit, B., Sakolsky, D., Deal, M., Zelazny, J., Goodfriend, E., Saul, M., Murata, S., Thoma, B., Mansour, H., Tew, J., Ahmed, N., Marsland, A., Brent, D., & Melhem, N. M. (2021). Opioid use as a proximal risk factor for suicidal behavior in young adults. Suicide and Life-Threatening Behavior. https:// doi. org/ 10. 1111/ SLTB. 12806 Mattei, G., Pistoresi, B., & De Vogli, R. (2019). Impact of the economic crises on suicide in Italy: The moderating role of active labor market programs. Social Psychiatry and Psychiatric Epidemiology, 54(2), 201–208. https:// doi. org/ 10. 1007/ s001270181625-8 Melendez frigola, C., Arroyo Borrell, E., & Saez, M. (2016). Data analysis of sub-acute patients with information registered in the minimum basic set of social health data (cmbd). Rev Esp Salud Pública, 90(3), e1–e7. https:// www. mscbs. gob. es/ bibli oPubl ic/ publi cacio nes/ recur sos_ propi os/ resp/ revis ta_ cdrom/ VOL90/ ORIGI NALES/ RS90C_ CMF. pdf Miller, J. N., & Black, D. W. (2020). Bipolar disorder and suicide: A review. Current Psychiatry Reports 2020, 22(6), 1–10. https:// doi. org/ 10. 1007/ S119200201130-0 Moitra, M., Santomauro, D., Degenhardt, L., Collins, P. Y., Whiteford, H., Vos, T., & Ferrari, A. (2021). Estimating the risk of suicide associated with mental disorders: A systematic review and metaregression analysis. Journal of Psychiatric Research, 137, 242–249. https:// doi. org/ 10. 1016/J. JPSYC HIRES. 2021. 02. 053 Monga, P., Sharma, M., & Sharma, S. K. (2022). Performance analysis of machine learning and soft computing techniques in diagnosis of behavioral disorders. 85–99. https:// doi. org/ 10. 1007/ 978981169488-2_8
International Journal of Mental Health and Addiction 1 3 Munasinghe, K., & Karunanayake, P. (2021). Recursive feature elimination for machine learning-based landslide prediction models. 3rd International Conference on Artificial Intelligence in Information and Communication, ICAIIC 2021, 126–129. https:// doi. org/ 10. 1109/ ICAII C51459. 2021. 94152 32 Pan, Y. J., Stewart, R., & Chang, C. K. (2013). Socioeconomic disadvantage, mental disorders and risk of 12-month suicide ideation and attempt in the National Comorbidity Survey Replication (NCSR) in US. Social Psychiatry and Psychiatric Epidemiology, 48(1), 71–79. https:// doi. org/ 10. 1007/ s001270120591-9 Pandey, R., Gautam, V., Pal, R., Bandhey, H., Singh Dhingra, L., Misra, V., Sharma, H., Jain, C., Bhagat, K., Patel, L., Agarwal, M., Agrawal, S., Jalan, R., Wadhwa, A., Garg, A., Agrawal, Y., Rana, B., Kumaraguru, P., & Sethi, T. (123 C.E.). A machine learning application for raising WASH awareness in the times of COVID-19 pandemic. https:// doi. org/ 10. 1038/ s4159802103869-6 Pfeifer, P., Greusing, S., Kupferschmidt, H., Bartsch, C., & Reisch, T. (2020). A comprehensive analysis of attempted and fatal suicide cases involving frequently used psychotropic medications. General Hospital Psychiatry, 63, 16–20. https:// doi. org/ 10. 1016/J. GENHO SPPSY CH. 2019. 07. 011 Pourmand, S., Shabbak, A., & Ganjali, M. (2021). Feature selection based on divergence functions: A comparative classiffication study. Statistics Optimization and Information Computing, 9(3), 587– 606. https:// doi. org/ 10. 19139/ SOIC231050701092 Qasim, O. S., & Algamal, Z. Y. (2018). Feature selection using particle swarm optimization-based logistic regression model. Chemometrics and Intelligent Laboratory Systems, 182, 41–46. https:// doi. org/ 10. 1016/J. CHEMO LAB. 2018. 08. 016 Revappala, B. C., Mallanaik, S., Vijayakumar, V. K., Kudumallige, S. K., & Eshwarappa, S. N. (2021). Prevalence of psychiatric comorbidity among suicide attempters. Journal of Evolution of Medical and Dental Sciences, 10(38), 3370–3374. https:// go. gale. com/ ps/i. do?p= AONE& sw= w& issn= 22784 748&v= 2. 1& it= r& id= GALE% 7CA67 79009 54& sid= googl eScho lar& linka ccess= fullt ext Roca, M., Gili, M., Garcia-Campayo, J., & García-Toro, M. (2013). Economic crisis and mental health in Spain. In The Lancet 382(9909):pp. 1977-1978. Elsevier B.V. https:// doi. org/ 10. 1016/ S01406736(13) 62650-1 Sacyl. (2021). CYL health. SACYL. https:// www. salud casti llayl eon. es/ en Sharma, S., Singh, G., & Sharma, M. (2021). A comprehensive review and analysis of supervised-learning and soft computing techniques for stress diagnosis in humans. Computers in Biology and Medicine, 134, 104450. https:// doi. org/ 10. 1016/J. COMPB IOMED. 2021. 104450 Sharma, M., Sharma, S., & Singh, G. (2020). Remote monitoring of physical and mental state of 2019nCoV victims using social internet of things, fog and soft computing techniques. Computer Methods and Programs in Biomedicine, 196. https:// doi. org/ 10. 1016/J. CMPB. 2020. 105609 Shiels, M. S., Tatalovich, Z., Chen, Y., Haozous, E. A., Hartge, P., Nápoles, A. M., Pérez-Stable, E. J., Rodriquez, E. J., Spillane, S., Thomas, D. A., Withrow, D. R., Berrington De González, A., & Freedman, N. D. (2020). Trends in mortality from drug poisonings, suicide, and alcohol-induced deaths in the United States from 2000 to 2017. JAMA Network Open, 3(9). https:// doi. org/ 10. 1001/ JAMAN ETWOR KOPEN. 2020. 16217 Slater, A. (2020). Coronavirus is crushing world trade. https:// resou rces. oxfor decon omics. com/ hubfs/ OEDownl oads/ 00000 27. pdf? utm_ campa ign= Promo tional Campaigns-UK&utm_medium=email&_ hsmi=83701646&_hsenc=p2ANqtz--73WTERBoGeFt0o4lIdVu3TETsSqeZgpSA6qJvk1IU_kxcBSQlUhGqvGg7f3_TBbSOyFQy&utm_content=83701646&utm_source=hs_automation Spain, government of. (2021). eCIE-Maps - CIE-10-ES Diagnósticos. Diagnosticos. https:// eciem aps. mscbs. gob. es/ ecieM aps/ brows er/ index_ 10_ mc. html Too, L. S., Spittal, M. J., Bugeja, L., Reifels, L., Butterworth, P., & Pirkis, J. (2019). The association between mental disorders and suicide: A systematic review and meta-analysis of record linkage studies. Journal of Affective Disorders, 259, 302–313. https:// doi. org/ 10. 1016/J. JAD. 2019. 08. 054 Vandoros, S., Avendano, M., & Kawachi, I. (2019). The association between economic uncertainty and suicide in the short-run. Social Science and Medicine, 220, 403–410. https:// doi. org/ 10. 1016/j. socsc imed. 2018. 11. 035 Wan, Y., Li, T., Wang, P., Duan, S., Zhang, C., & Li, N. (2021). Robust and efficient classification for underground metal target using dimensionality reduction and machine learning. IEEE Access, 9, 7384–7401. https:// doi. org/ 10. 1109/ ACCESS. 2021. 30493 08 Wang, Z., Li, H., Nie, B., Du, J., Du, Y., & Chen, Y. (2021). Feature selection using different evaluate strategy and random forests. 2021 International Conference on Computer Engineering and Artificial Intelligence (ICCEAI), 310–313. https:// doi. org/ 10. 1109/ ICCEA I52939. 2021. 00062
International Journal of Mental Health and Addiction 1 3 Williams, S. C., Schmaltz, S. P., Castro, G. M., & Baker, D. W. (2018). Incidence and method of suicide in hospitals in the United States. The Joint Commission Journal on Quality and Patient Safety, 44(11), 643–650. https:// doi. org/ 10. 1016/J. JCJQ. 2018. 08. 002 Witte, T. K., Timmons, K. A., Fink, E., Smith, A. R., & Joiner, T. E. (2009). Do major depressive disorder and dysthymic disorder confer differential risk for suicide? Journal of Affective Disorders, 115(1–2), 69–78. https:// doi. org/ 10. 1016/J. JAD. 2008. 09. 003 You, B. S., Jeong, K. H., & Cho, H. J. (2020). Regional suicide rate change patterns in Korea. International Journal of Environmental Research and Public Health, 17(19), 1–10. https:// doi. org/ 10. 3390/ ijerp h1719 6973 Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.