occur. As the app will be more responsive in these
cases, we are also reducing the likelihood of self-
harm.
Figure 3: Larger classification tree. Now the algorithm
selected five different features to model the data. See Table
1 for the decoding of the features.
Nonetheless, we suggest that a more detailed
exploration of results should be carried out and that,
further research should apply these models to bigger
databases to obtain more accurate results, especially
if aiming at integrating them with cutting-edge
technology. Also new classification models should be
addressed, such as neural networks or SVM.
However, although recent research has focused on
the usefulness of apps for direct patient’s support
(Torous 2021), little attention has given to digital
platforms for clinical support to automatise prompt
interventions through the app itself. In our study, we
provide evidence that EMA data can be a valuable
data for real-time prediction of NSSI as well as
knowing whether the patients are about to engage in
disruptive coping mechanism to deal with NSSI, such
as having several sexual intercourses, as reported. In
this case, we propose that apps like Sinjur may help
in reducing the risk of self-injurious thoughts and
subsequent behaviours.
5 CONCLUSIONS
Giving the growing yet little research in the field of
digital mental health, our findings shade a light on the
great advantage of ML applications to predict real-
time NSSI at the individual patient level.
Nonetheless, this promising data needs to be built
upon in future studies and needs major translation in
the everyday clinical practice to demonstrate its real-
world efficacy and later, to be translated to the
enterprise world.
ACKNOWLEDGEMENTS
We thank the Agency for Management of University
and Research Grants (AGAUR) of the Catalan
Government for their support to Chiara Capra
(Industrial Doctorate programme).
REFERENCES
Breiman, L., Friedman, J. H., Olshen, R. A., & Stone, C. J.
(2017). Classification and regression trees. Routledge.
Briones-Buixassa, L., Alí, I., Schmidt, C., Nicolaou, S.,
Pascual, J.C., Soler, J., & Vega, D. (2021). 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. Psychiatric
Quarterly, 92(22).
Lewis, R. J. (2000). An introduction to classification and
regression tree (CART) analysis. In Annual meeting of
the society for academic emergency medicine in San
Francisco, California (Vol. 14).
Snir, A., Rafaeli, E., Gadassi, R., Berenson, K., & Downey,
G. (2015). Explicit and inferred motives for nonsuicidal
selfinjurious acts and urges in borderline and avoidant
personality disorders. Personal Disord, 6(3), 267–77.
Turner, B.J., Cobb, R.J., Gratz, K.L., Chapman, A.L.
(2016). The role of interpersonal conflict and perceived
social support in nonsuicidal self-injury in daily life. J
Abnorm Psychol, 125(4), 588-98.
John Torous, Sandra Bucci, Imogen H. Bell, Lars V.
Kessing, Maria Faurholt-Jepsen, … & Firth, J. (2021).
The growing field of digital psychiatry: current
evidence and the future of apps, social media, chatbots,
and virtual reality. World Psychiatry, 20, 3.
Wolff, J.C., Fraizer, A., Esposito-Smythers, C., Burke, T.,
Sloan, E., & Spirito. A. (2013). Cognitive and Social
Factors Associated with NSSI and Suicide Attempts in
Psychiatrically Hospitalized Adolescents. J Abnorm
Child Psychol., 41(6): 1005–1013.
Wolff, J.C., Thompson, E., Thomas, S.A., Nesi, J., Bettis,
A.H., & Ransford, B. (2019). Emotion dysregulation
and nonsuicidal self-injury: a systematic review and
meta-analysis. Eur Psychiatry, 59, 25-36.
Yuan, Y., Wu, L. & Zhang, X. (2021). Gini-Impurity Index
Analysis. IEEE Transactions on Information Forensics
and Security, vol. 16, pp. 3154-3169
Zetterqvist, M. (2015). The DSM-5 diagnosis of
nonsuicidal self-injury disorder: a review of the
empirical literature. Child Adolesc Psychiatry Ment
Health, 9, 31.