๐Ÿ“„ Research paper ยท IEEE IMCOM 2022

Studying Borderline Personality Disorder Using Machine Learning

Koushik Deb, Hemangee De, Seshadri Sekhar Chatterjee, Anjan Pal ยท 16th IEEE IMCOM, Seoul

๐Ÿ› IEEE๐Ÿง  Mental-health NLP๐ŸŒฒ Random Forest๐ŸŽฏ ~81% accuracy
mood-swing patterns impulsivity signals relationship instability screening aid supports clinicians

Emotional signals in what people write โ€” nervousness, shame, pain โ€” carry a recognisable pattern that a model can learn to flag.

In plain words

Borderline personality disorder shapes how a person thinks and feels about themselves and others, yet it is notoriously under-diagnosed. This work โ€” done with a practising psychiatrist as co-author โ€” asks whether the disorder leaves a detectable fingerprint in the emotions people express in text.

Two kinds of data were studied: posts from people on social media who self-identify as BPD patients, and responses from people invited to take a BPD screening test. From every text, the emotions expressed were extracted as features and fed to a Random Forest classifier.

The model reached around 81% accuracy โ€” and strikingly, using only the three most diagnostic emotions (nervousness, shame and pain) performed just as well, suggesting BPD carries a distinctive emotional signature.

How it works

  1. Gather two data sourcesSocial-media posts from self-declared BPD patients, plus screening-test responses from volunteers.
  2. Extract emotional featuresEach text is converted into the emotions it expresses, rather than raw words.
  3. Train and rankA Random Forest learns to separate BPD from non-BPD text and ranks which emotions matter most.
  4. Distil the signatureNervousness, shame and pain alone reproduce ~81% accuracy โ€” a compact emotional marker of the disorder.

Why it matters

A screening aid that works on ordinary text could reach people who would never book a psychiatric evaluation, and give clinicians an early, evidence-backed reason to look closer. It is an assistive signal, not a diagnosis โ€” but for an under-diagnosed disorder, earlier signals save years.

Read the paper โ†— โ† All research
โ† PreviousHow prompts manipulate models (ISSE 2026)