{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,17]],"date-time":"2026-01-17T21:29:54Z","timestamp":1768685394016,"version":"3.49.0"},"reference-count":45,"publisher":"MDPI AG","issue":"13","license":[{"start":{"date-parts":[[2022,6,24]],"date-time":"2022-06-24T00:00:00Z","timestamp":1656028800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Ag\u00e8ncia de Gesti\u00f3 d\u2019Ajuts Universitaris i de Recerca (AGAUR) of the Catalan Government","award":["2020-DI-068"],"award-info":[{"award-number":["2020-DI-068"]}]},{"name":"Ag\u00e8ncia de Gesti\u00f3 d\u2019Ajuts Universitaris i de Recerca (AGAUR) of the Catalan Government","award":["PSI2016\u201379980-P"],"award-info":[{"award-number":["PSI2016\u201379980-P"]}]},{"name":"Spanish government grant","award":["2020-DI-068"],"award-info":[{"award-number":["2020-DI-068"]}]},{"name":"Spanish government grant","award":["PSI2016\u201379980-P"],"award-info":[{"award-number":["PSI2016\u201379980-P"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Artificial intelligence techniques were explored to assess the ability to anticipate self-harming behaviour in the mental health context using a database collected by an app previously designed to record the emotional states and activities of a group of subjects exhibiting self-harm. Specifically, the Leave-One-Subject-Out technique was used to train classification trees with a maximum of five splits. The results show an accuracy of 84.78%, a sensitivity of 64.64% and a specificity of 85.53%. In addition, positive and negative predictive values were also obtained, with results of 14.48% and 98.47%, respectively. These results are in line with those reported in previous work using a multilevel mixed-effect regression analysis. The combination of apps and AI techniques is a powerful way to improve the tools to accompany and support the care and treatment of patients with this type of behaviour. These studies also guide the improvement of apps on the user side, simplifying and collecting more meaningful data, and on the therapist side, progressing in pathology treatments. Traditional therapy involves observing and reconstructing what had happened before episodes once they have occurred. This new generation of tools will make it possible to monitor the pathology more closely and to act preventively.<\/jats:p>","DOI":"10.3390\/s22134790","type":"journal-article","created":{"date-parts":[[2022,6,26]],"date-time":"2022-06-26T22:50:23Z","timestamp":1656283823000},"page":"4790","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":21,"title":["A Machine Learning Approach for Predicting Non-Suicidal Self-Injury in Young Adults"],"prefix":"10.3390","volume":"22","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-6582-4551","authenticated-orcid":false,"given":"Pere","family":"Marti-Puig","sequence":"first","affiliation":[{"name":"Data and Signal Processing Group, University of Vic\u2014Central University of Catalonia, 08500 Vic, Catalonia, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Chiara","family":"Capra","sequence":"additional","affiliation":[{"name":"Data and Signal Processing Group, University of Vic\u2014Central University of Catalonia, 08500 Vic, Catalonia, Spain"},{"name":"beHIT, Carrer de Mata 1, 08004 Barcelona, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5621-8987","authenticated-orcid":false,"given":"Daniel","family":"Vega","sequence":"additional","affiliation":[{"name":"Psychiatry and Mental Health Department, Hospital Universitari d\u2019Igualada, Consorci Sanitari de l\u2019Anoia & Fundaci\u00f3 Sanit\u00e0ria d\u2019Igualada, 08700 Igualada, Barcelona, Spain"},{"name":"Department of Psychiatry and Forensic Medicine, Institute of Neurosciences, Universitat Aut\u00f2noma de Barcelona (UAB), 08193 Cerdanyola del Vall\u00e9s, Barcelona, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Laia","family":"Llunas","sequence":"additional","affiliation":[{"name":"beHIT, Carrer de Mata 1, 08004 Barcelona, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6534-1979","authenticated-orcid":false,"given":"Jordi","family":"Sol\u00e9-Casals","sequence":"additional","affiliation":[{"name":"Data and Signal Processing Group, University of Vic\u2014Central University of Catalonia, 08500 Vic, Catalonia, Spain"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2022,6,24]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"371","DOI":"10.1016\/j.brat.2005.03.005","article-title":"Solving the puzzle of deliberate self-harm: The experiential avoidance model","volume":"44","author":"Chapman","year":"2006","journal-title":"Behav. Res. Ther."},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"253","DOI":"10.1023\/A:1012779403943","article-title":"Measurement of deliberate self-harm: Preliminary data on the Deliberate Self-Harm Inventory","volume":"23","author":"Gratz","year":"2001","journal-title":"J. Psychopathol. Behav. Assess."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"527","DOI":"10.1177\/1073191114565878","article-title":"Diagnosis and characterization of DSM-5 nonsuicidal self-injury disorder using the clinician-administered nonsuicidal self-injury disorder index","volume":"22","author":"Gratz","year":"2015","journal-title":"Assessment"},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Lim, K.S., Wong, C.H., McIntyre, R.S., Wang, J., Zhang, Z., Tran, B.X., Tan, W., Ho, C.S., and Ho, R.C. (2019). Global lifetime and 12-month prevalence of suicidal behavior, deliberate self-harm and non-suicidal self-injury in children and adolescents between 1989 and 2018: A meta-analysis. Int. J. Environ. Res. Public Health, 16.","DOI":"10.3390\/ijerph16224581"},{"key":"ref_5","first-page":"146","article-title":"Review and update on non-suicidal self-injury: Who, how and why?","volume":"46","author":"Sintes","year":"2018","journal-title":"Actas Esp Psiquiatr"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"563","DOI":"10.1111\/sltb.12237","article-title":"Lifetime and 12-month nonsuicidal self-injury and academic performance in college freshmen","volume":"46","author":"Kiekens","year":"2016","journal-title":"Suicide Life-Threat. Behav."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"225","DOI":"10.1017\/S0033291715001804","article-title":"Self-injurious thoughts and behaviors as risk factors for future suicide ideation, attempts, and death: A meta-analysis of longitudinal studies","volume":"46","author":"Ribeiro","year":"2016","journal-title":"Psychol. Med."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"226","DOI":"10.1016\/j.cpr.2006.08.002","article-title":"The functions of deliberate self-injury: A review of the evidence","volume":"27","author":"Klonsky","year":"2007","journal-title":"Clin. Psychol. Rev."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"759","DOI":"10.1016\/j.jad.2017.11.073","article-title":"A meta-analysis of the prevalence of different functions of non-suicidal self-injury","volume":"227","author":"Taylor","year":"2018","journal-title":"J. Affect. Disord."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"364","DOI":"10.1002\/jclp.22037","article-title":"Daily emotion in non-suicidal self-injury","volume":"70","author":"Victor","year":"2014","journal-title":"J. Clin. Psychol."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1146\/annurev.clinpsy.3.022806.091415","article-title":"Ecological momentary assessment","volume":"4","author":"Shiffman","year":"2008","journal-title":"Annu. Rev. Clin. Psychol."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"357","DOI":"10.1037\/per0000205","article-title":"Ecological momentary assessment of nonsuicidal self-injury in youth with borderline personality disorder","volume":"8","author":"Andrewes","year":"2017","journal-title":"Personal. Disord. Theory Res. Treat."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"212","DOI":"10.1016\/j.psychres.2018.02.051","article-title":"Use of ecological momentary assessment (EMA) in non-suicidal self-injury (NSSI): A systematic review","volume":"263","author":"Carballo","year":"2018","journal-title":"Psychiatry Res."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"267","DOI":"10.1037\/per0000104","article-title":"Explicit and inferred motives for nonsuicidal self-injurious acts and urges in borderline and avoidant personality disorders","volume":"6","author":"Snir","year":"2015","journal-title":"Personal. Disord. Theory Res. Treat."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"588","DOI":"10.1037\/abn0000141","article-title":"The role of interpersonal conflict and perceived social support in nonsuicidal self-injury in daily life","volume":"125","author":"Turner","year":"2016","journal-title":"J. Abnorm. Psychol."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1035","DOI":"10.1007\/s11126-020-09875-7","article-title":"Predicting non-suicidal self-injury in young adults with and without borderline personality disorder: A multilevel approach combining ecological momentary assessment and self-report measures","volume":"92","author":"Schmidt","year":"2021","journal-title":"Psychiatr. Q."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"579","DOI":"10.1016\/j.beth.2011.01.002","article-title":"Changes in ecological momentary assessment reported affect associated with episodes of nonsuicidal self-injury","volume":"42","author":"Armey","year":"2011","journal-title":"Behav. Ther."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"83","DOI":"10.1016\/j.brat.2008.10.011","article-title":"Emotional states preceding and following acts of non-suicidal self-injury in bulimia nervosa patients","volume":"47","author":"Muehlenkamp","year":"2009","journal-title":"Behav. Res. Ther."},{"key":"ref_19","first-page":"2222","article-title":"What is machine learning? A primer for the epidemiologist","volume":"188","author":"Bi","year":"2019","journal-title":"Am. J. Epidemiol."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"438","DOI":"10.1037\/cou0000382","article-title":"Machine learning and natural language processing in psychotherapy research: Alliance as example use case","volume":"67","author":"Goldberg","year":"2020","journal-title":"J. Couns. Psychol."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"1254","DOI":"10.1038\/npp.2013.328","article-title":"Single-subject anxiety treatment outcome prediction using functional neuroimaging","volume":"39","author":"Ball","year":"2014","journal-title":"Neuropsychopharmacology"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"e01384","DOI":"10.1002\/brb3.1384","article-title":"Individualized treatment response prediction of dialectical behavior therapy for borderline personality disorder using multimodal magnetic resonance imaging","volume":"9","author":"Schmitgen","year":"2019","journal-title":"Brain Behav."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"e530","DOI":"10.1038\/tp.2015.22","article-title":"Predicting long-term outcome of Internet-delivered cognitive behavior therapy for social anxiety disorder using fMRI and support vector machine learning","volume":"5","author":"Frick","year":"2015","journal-title":"Transl. Psychiatry"},{"key":"ref_24","first-page":"7","article-title":"Improving therapy outcome prediction in major depression using multimodal functional neuroimaging: A pilot study","volume":"11","author":"Schultz","year":"2018","journal-title":"Pers. Med. Psychiatry"},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"1053","DOI":"10.1016\/j.nicl.2018.10.011","article-title":"Using fMRI and machine learning to predict symptom improvement following cognitive behavioural therapy for psychosis","volume":"20","author":"Tolmeijer","year":"2018","journal-title":"Neuroimage Clin."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"2222","DOI":"10.1073\/pnas.1716686115","article-title":"Multivariate resting-state functional connectivity predicts response to cognitive behavioral therapy in obsessive\u2013compulsive disorder","volume":"115","author":"Reggente","year":"2018","journal-title":"Proc. Natl. Acad. Sci. USA"},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"e10275","DOI":"10.2196\/10275","article-title":"Predicting therapy success and costs for personalized treatment recommendations using baseline characteristics: Data-driven analysis","volume":"20","author":"Bremer","year":"2018","journal-title":"J. Med. Internet Res."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"156","DOI":"10.1016\/j.jsat.2019.01.020","article-title":"Machine learning vs addiction therapists: A pilot study predicting alcohol dependence treatment outcome from patient data in behavior therapy with adjunctive medication","volume":"99","author":"Symons","year":"2019","journal-title":"J. Subst. Abus. Treat."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"184","DOI":"10.1055\/s-0038-1633857","article-title":"Methods for predictor analysis of repeated measurements: Application to psychiatric data","volume":"43","author":"Seuchter","year":"2004","journal-title":"Methods Inf. Med."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"1449","DOI":"10.1109\/JBHI.2016.2601123","article-title":"Predicting social anxiety treatment outcome based on therapeutic email conversations","volume":"21","author":"Hoogendoorn","year":"2016","journal-title":"IEEE J. Biomed. Health Inform."},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"463","DOI":"10.1162\/tacl_a_00111","article-title":"Large-scale analysis of counseling conversations: An application of natural language processing to mental health","volume":"4","author":"Althoff","year":"2016","journal-title":"Trans. Assoc. Comput. Linguist."},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"35","DOI":"10.1001\/jamapsychiatry.2019.2664","article-title":"Quantifying the association between psychotherapy content and clinical outcomes using deep learning","volume":"77","author":"Ewbank","year":"2020","journal-title":"JAMA Psychiatry"},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Nasir, M., Baucom, B.R., Georgiou, P., and Narayanan, S. (2017). Predicting couple therapy outcomes based on speech acoustic features. PLoS ONE, 12.","DOI":"10.1371\/journal.pone.0185123"},{"key":"ref_34","doi-asserted-by":"crossref","first-page":"2277","DOI":"10.1007\/s12652-019-01355-6","article-title":"What data are smartphone users willing to share with researchers?","volume":"11","author":"Beierle","year":"2020","journal-title":"J. Ambient. Intell. Humaniz. Comput."},{"key":"ref_35","first-page":"278","article-title":"Preliminary Results on the Use of Classification Trees to Predict Non-suicidal Self-injury with Data Collected through a Mobile App","volume":"Volume 4","author":"Tsanas","year":"2022","journal-title":"Proceedings of the 15th International Joint Conference on Biomedical Engineering Systems and Technologies, BIOSTEC 2022"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"572","DOI":"10.1016\/j.neuroimage.2009.10.092","article-title":"Avoiding non-independence in fMRI data analysis: Leave one subject out","volume":"50","author":"Esterman","year":"2010","journal-title":"Neuroimage"},{"key":"ref_37","doi-asserted-by":"crossref","unstructured":"Kunjan, S., Grummett, T., Pope, K., Powers, D., Fitzgibbon, S., Bastiampillai, T., Battersby, M., and Lewis, T. (2021). The Necessity of Leave One Subject Out (LOSO) Cross Validation for EEG Disease Diagnosis. Proceedings of the International Conference on Brain Informatics, Springer.","DOI":"10.1007\/978-3-030-86993-9_50"},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"14","DOI":"10.1002\/widm.8","article-title":"Classification and regression trees","volume":"1","author":"Loh","year":"2011","journal-title":"Wiley Interdiscip. Rev. Data Min. Knowl. Discov."},{"key":"ref_39","unstructured":"Lewis, R.J. (2000, January 22\u201325). An introduction to classification and regression tree (CART) analysis. Proceedings of the Annual Meeting of the Society for Academic Emergency Medicine, San Francisco, CA, USA."},{"key":"ref_40","doi-asserted-by":"crossref","first-page":"3154","DOI":"10.1109\/TIFS.2021.3076932","article-title":"Gini-Impurity index analysis","volume":"16","author":"Yuan","year":"2021","journal-title":"IEEE Trans. Inf. Forensics Secur."},{"key":"ref_41","doi-asserted-by":"crossref","first-page":"223","DOI":"10.1111\/sltb.12186","article-title":"Identifying risk for self-harm: Rumination and negative affectivity in the prospective prediction of nonsuicidal self-injury","volume":"46","author":"Nicolai","year":"2016","journal-title":"Suicide Life-Threat. Behav."},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"584","DOI":"10.1007\/s12671-016-0492-1","article-title":"Impact of mindfulness training on borderline personality disorder: A randomized trial","volume":"7","author":"Elices","year":"2016","journal-title":"Mindfulness"},{"key":"ref_43","doi-asserted-by":"crossref","first-page":"112761","DOI":"10.1016\/j.psychres.2020.112761","article-title":"Investigating the role of the intensity and duration of self-injury thoughts in self-injury with ecological momentary assessment","volume":"284","author":"Fitzpatrick","year":"2020","journal-title":"Psychiatry Res."},{"key":"ref_44","first-page":"407","article-title":"Mindfulness in borderline personality disorder: Decentering mediates the effectiveness","volume":"33","year":"2021","journal-title":"Psicothema"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"234","DOI":"10.1016\/j.beth.2006.08.003","article-title":"Initial psychometric properties of the experiences questionnaire: Validation of a self-report measure of decentering","volume":"38","author":"Fresco","year":"2007","journal-title":"Behav. Ther."}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/13\/4790\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T23:39:38Z","timestamp":1760139578000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/22\/13\/4790"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,6,24]]},"references-count":45,"journal-issue":{"issue":"13","published-online":{"date-parts":[[2022,7]]}},"alternative-id":["s22134790"],"URL":"https:\/\/doi.org\/10.3390\/s22134790","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,6,24]]}}}