Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2022 Jun 24;22(13):4790.
doi: 10.3390/s22134790.

A Machine Learning Approach for Predicting Non-Suicidal Self-Injury in Young Adults

Affiliations

A Machine Learning Approach for Predicting Non-Suicidal Self-Injury in Young Adults

Pere Marti-Puig et al. Sensors (Basel). .

Abstract

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.

Keywords: EMA; NSSI; app; machine learning.

PubMed Disclaimer

Conflict of interest statement

The authors declare no conflict of interest.

Figures

Figure 1
Figure 1
On the left, a screenshot with the list of emotions to report to the system. On the right, a detail on how to report the grade of the emotion by means of a sliding button (the text in the App is in Catalan. See the translated names of the emotions in Table 1).
Figure 2
Figure 2
Representation of the number of interactions that each subject in the study had with his/her application. The proportion of these messages that were not directly linked to any self-harm is shown in blue, and that which was directly linked to self-harm in red. Note that of the 64 subjects present, 24 reported one or more self-injuries.
Figure 3
Figure 3
Representative example of the confusion matrix with bar shapes, used for the joint representation of all users’ data. The sections in the vector are proportional to the percentage of the cell corresponding to the confusion matrix. The height of the bar will be proportional to the number of interactions made by the subject. Note the colour coding to represent the TP (True Positives), the FP (False Positives), the TN (True Negatives) and the FN (False Negatives).
Figure 4
Figure 4
Representation of the results of the Leave-One-Subject-Out Cross-Validation test in terms of the vectorised confusion matrices scaled by the proportion of entries each subject made in the application. The vertical axis represents the number of entries for each user. We use the colour convention from Figure 3 to represent the TP (True Positives), the FP (False Positives), the TN (True Negatives) and the FN (False Negatives).
Figure 5
Figure 5
The positive part of the graph corresponds to the representation of the database in terms of the number of entries labelled as positive and negative for each user. The negative part of the graph corresponds to the TPs and TNs obtained in the Leave-One-Subject-Out Cross-Validation test.

References

    1. Chapman A.L., Gratz K.L., Brown M.Z. Solving the puzzle of deliberate self-harm: The experiential avoidance model. Behav. Res. Ther. 2006;44:371–394. doi: 10.1016/j.brat.2005.03.005. - DOI - PubMed
    1. Gratz K.L. Measurement of deliberate self-harm: Preliminary data on the Deliberate Self-Harm Inventory. J. Psychopathol. Behav. Assess. 2001;23:253–263. doi: 10.1023/A:1012779403943. - DOI
    1. Gratz K.L., Dixon-Gordon K.L., Chapman A.L., Tull M.T. Diagnosis and characterization of DSM-5 nonsuicidal self-injury disorder using the clinician-administered nonsuicidal self-injury disorder index. Assessment. 2015;22:527–539. doi: 10.1177/1073191114565878. - DOI - PMC - PubMed
    1. Lim K.S., Wong C.H., McIntyre R.S., Wang J., Zhang Z., Tran B.X., Tan W., Ho C.S., Ho R.C. 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. 2019;16:4581. doi: 10.3390/ijerph16224581. - DOI - PMC - PubMed
    1. Sintes A., Fernández M., Puntí J., Soler J., Santamarina P., Soto À., Lara A., Méndez I., Martínez-Giménez R., Romero S., et al. Review and update on non-suicidal self-injury: Who, how and why? Actas Esp Psiquiatr. 2018;46:146–155. - PubMed