hh.sePublications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
A Density-Based Contrastive Loss and Explainable Machine Learning Study of Sex-Specific Suicide Risk inOlder Adults in Sweden
Halmstad University, School of Information Technology.
Halmstad University, School of Information Technology.
2025 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE creditsStudent thesis
Abstract [en]

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.

Place, publisher, year, edition, pages
2025.
Keywords [en]
Suicide Prediction, Elderly Suicide, Machine Learning, Contrastive Learning, Density-Based Contrastive Loss (DBCL), Swedish National Health Registers, Imbalanced Data Classification, Explainable AI (XAI), TabTransformer
National Category
Computer Vision and Learning Systems
Identifiers
URN: urn:nbn:se:hh:diva-57155OAI: oai:DiVA.org:hh-57155DiVA, id: diva2:1988683
External cooperation
Statistikkonsulterna AB
Subject / course
Computer science and engineering
Educational program
Computer Science and Engineering, 300 credits
Supervisors
Examiners
Available from: 2025-08-25 Created: 2025-08-12 Last updated: 2025-10-01Bibliographically approved

Open Access in DiVA

fulltext(7406 kB)199 downloads
File information
File name FULLTEXT02.pdfFile size 7406 kBChecksum SHA-512
282cd99209dfadf335b9476af148acdfda1ebf306abceeaac12d075092c0eace16710b848e38b31bdb8abee2bdb846ab1e39d0df1686c2b7ff5cbc96fa87a2aa
Type fulltextMimetype application/pdf

By organisation
School of Information Technology
Computer Vision and Learning Systems

Search outside of DiVA

GoogleGoogle Scholar
Total: 199 downloads
The number of downloads is the sum of all downloads of full texts. It may include eg previous versions that are now no longer available

urn-nbn

Altmetric score

urn-nbn
Total: 615 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf