A Density-Based Contrastive Loss and Explainable Machine Learning Study of Sex-Specific Suicide Risk inOlder Adults in Sweden

Predicting suicide is challenging as the outcome is rare. In this thesis, data from 1,448,228 individuals aged 75 years or older (56.6% women and 43.4% men) who had in- or outpatient visits, only 1,386 suicides(0.010%) were observed between 2007 and 2018. Moreover, the characteristics of suicide cases overlapped substantially with those of non-suicide cases. Using a prospective 90-day window, we trained and compared several sex-specific machine-learning models. Coupled with explainableartificial intelligence (xAI), the models revealed both protective andrisk factors for suicide, overall and by sex. We implemented a TabTransformer encoder with the proposed novel Density-Based Contrastive Loss (DBCL) that up-weights anchor–positive pairs located in regions of high class overlap, thereby driving the learned embeddings away from ambiguous zones. xAI inspection highlighted that multiple previous attempts and advanced age are overall strong predictors. Living alone and any psychiatric diagnosis were female-specific risks, whereas unmarried status and high-risk manual occupations dominated in males. Integrated into a triplet-lossframework, DBCL improved the downstream F1-score of an attachedmultilayer perceptron by approximately 10% compared with a stan-dard triplet loss. The DBCL-enhanced TabTransformer increased predictive performance and, through xAI, constructed transparent models that highlight protective and risk factors, offering actionable insights for suicide prevention in older adults.

Publication Details

Journal
Hogskolan Ihalmstad (Halmstad University)
Published
2025-01-01
Primary Topic
Geochemistry and Geologic Mapping
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Density-Based Contrastive Loss and Explainable Machine Learning Study of Sex-Specific Suicide Risk inOlder Adults in Sweden

Hogskolan Ihalmstad (Halmstad University)
Geochemistry and Geologic Mapping
article

A Density-Based Contrastive Loss and Explainable Machine Learning Study of Sex-Specific Suicide Risk inOlder Adults in Sweden

article en

Abstract

Predicting suicide is challenging as the outcome is rare. In this thesis, data from 1,448,228 individuals aged 75 years or older (56.6% women and 43.4% men) who had in- or outpatient visits, only 1,386 suicides(0.010%) were observed between 2007 and 2018. Moreover, the characteristics of suicide cases overlapped substantially with those of non-suicide cases. Using a prospective 90-day window, we trained and compared several sex-specific machine-learning models. Coupled with explainableartificial intelligence (xAI), the models revealed both protective andrisk factors for suicide, overall and by sex. We implemented a TabTransformer encoder with the proposed novel Density-Based Contrastive Loss (DBCL) that up-weights anchor–positive pairs located in regions of high class overlap, thereby driving the learned embeddings away from ambiguous zones. xAI inspection highlighted that multiple previous attempts and advanced age are overall strong predictors. Living alone and any psychiatric diagnosis were female-specific risks, whereas unmarried status and high-risk manual occupations dominated in males. Integrated into a triplet-lossframework, DBCL improved the downstream F1-score of an attachedmultilayer perceptron by approximately 10% compared with a stan-dard triplet loss. The DBCL-enhanced TabTransformer increased predictive performance and, through xAI, constructed transparent models that highlight protective and risk factors, offering actionable insights for suicide prevention in older adults.

Hogskolan Ihalmstad (Halmstad University)
Good health and well-being
Openalex Percentile: Top 63%
Geochemistry and Geologic Mapping
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A Density-Based Contrastive Loss and Explainable Machine Learning Study of Sex-Specific Suicide Risk inOlder Adults in Sweden · Hogskolan Ihalmstad (Halmstad University) (2025) | TGRS Research Map | TGRS