Evidence map›Paper›PMID 41078072›Full record

ArticleBJPsych open2025

Development of a natural language-processing application for LGBTQ+ status in mental health records.

Margaret Heslin, Jaya Chaturvedi, Anne Marie Bonnici Mallia, Ace Taaca, Diogo Pontes, Charvi Saraswat, Charlotte Woodhead, Katharine A Rimes, David Chandran, Jyoti Sanyal and 3 more

Abstract read
In one paragraph

Article in BJPsych open, 2025. The graph could read no effect estimate from its abstract, so it casts no vote on the map. Cited by 1 paper.

0numbers the graph read from it
0cells of the map it votes in
1citing papers in PubMed
–field-weighted citation impact
1 · What the graph read from it

What it found

Each row is one number read from the abstract, on the scale the paper reported it, with its interval. Left of the dashed line favours the treatment, right favours the comparator. Under each row is the sentence it came from. New to these charts? A ten-minute tutorial.

The abstract states no effect estimate the extractor could read, or names no intervention and outcome on the map, so this paper lights no cell and moves no belief. It is still indexed, cited and linked below.

2 · The registry

The trial behind it

Trials whose registry record cites this paper, or whose number appears in the abstract. A trial that started after this paper was published is citing it as background, not reporting it.

Neither the registry nor the abstract names a trial number. If this is a trial report, that itself is worth knowing.

3 · Its place in the literature

Who cites it

1 citing paper in PubMed.

  1. Review
4 · The record

Corrections and comments

PubMed lists nothing against this paper. Absence here is not a guarantee, only a check that was made.

5 · Who and what money

Authors and funding

13 authors.

Margaret HeslinInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-3094-9255
Jaya ChaturvediInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-6359-9853
Anne Marie Bonnici MalliaSouth London and Maudsley NHS Foundation Trust, London, UK.
Ace TaacaInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0009-0007-5616-8055
Diogo PontesSouth London and Maudsley NHS Foundation Trust, London, UK.ORCID https://orcid.org/0000-0001-8955-7929
Charvi SaraswatInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0009-0006-9450-7970
Charlotte WoodheadInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-5545-6238
Katharine A RimesInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0003-2634-455X
David ChandranInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-0123-666X
Jyoti SanyalSouth London and Maudsley NHS Foundation Trust, London, UK.
Ruimin MaInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-6051-8093
Robert StewartInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-4435-6397
Angus RobertsInstitute of Psychiatry, Psychology & Neuroscience, https://ror.org/0220mzb33King's College London, UK.ORCID https://orcid.org/0000-0002-4570-9801

Funding

No grant is acknowledged in the PubMed record.

6 · The paper itself

Abstract

backgroundLesbian, gay, bisexual, transgender, queer and related community (LGBTQ+) individuals have significantly increased risk for mental health problems. However, research on inequalities in LGBTQ+ mental healthcare is limited because LGBTQ+ status is usually only contained in unstructured, free-text sections of electronic health records.

aimsThis study investigated whether natural language processing (NLP), specifically the large language model, Bi-directional Encoder Representations from Transformers (BERT), can identify LGBTQ+ status from this unstructured text in mental health records.

methodUsing electronic health records from a large mental healthcare provider in south London, UK, relevant search terms were identified and a random sample of 10 000 strings extracted. Each string contained 100 characters either side of a search term. A BERT model was trained to classify LGBTQ+ status.

resultsAmong 10 000 annotations, 14% (1449) confirmed LGBTQ+ status while 86% (8551) did not. These other categories included LGBTQ+ negative status, irrelevant annotations and unclear cases. The final BERT model, tested on 2000 annotations, achieved a precision of 0.95 (95% CI 0.93-0.98), a recall of 0.93 (95% CI 0.91-0.96) and an F1 score of 0.94 (95% CI 0.92-0.97).

conclusionLGBTQ+ status can be determined using this NLP application with a high success rate. The NLP application produced through this work has opened up mental health records to a variety of research questions involving LGBTQ+ status, and should be explored further. Additional work should aim to extend what has been done here by developing an application that can distinguish between different LGBTQ+ groups to examine inequalities between these groups.

Indexed as

electronic health recordsinformation extractionLGBTQ+mental healthnatural language-processing annotation

Identifiers

PMID41078072
PMCPMC12529341

What OpenQuestion holds

Textmetadata
LicenceCC BY
Read underepoch 390

Registered trials

None linked

Read under generation 80e0d062 · epoch 390. Bibliography from PubMed, PubMed Central and OpenAlex; grants from NIH RePORTER; trial links from ClinicalTrials.gov; estimates, votes and beliefs from the OpenQuestion graph.