Text mining occupations from the mental health electronic health record: a natural language processing approach using records from the Clinical Record Interactive Search (CRIS) platform in south London, UK
- PMID: 33766838
- PMCID: PMC7996661
- DOI: 10.1136/bmjopen-2020-042274
Text mining occupations from the mental health electronic health record: a natural language processing approach using records from the Clinical Record Interactive Search (CRIS) platform in south London, UK
Abstract
Objectives: We set out to develop, evaluate and implement a novel application using natural language processing to text mine occupations from the free-text of psychiatric clinical notes.
Design: Development and validation of a natural language processing application using General Architecture for Text Engineering software to extract occupations from de-identified clinical records.
Setting and participants: Electronic health records from a large secondary mental healthcare provider in south London, accessed through the Clinical Record Interactive Search platform. The text mining application was run over the free-text fields in the electronic health records of 341 720 patients (all aged ≥16 years).
Outcomes: Precision and recall estimates of the application performance; occupation retrieval using the application compared with structured fields; most common patient occupations; and analysis of key sociodemographic and clinical indicators for occupation recording.
Results: Using the structured fields alone, only 14% of patients had occupation recorded. By implementing the text mining application in addition to the structured fields, occupations were identified in 57% of patients. The application performed on gold-standard human-annotated clinical text at a precision level of 0.79 and recall level of 0.77. The most common patient occupations recorded were 'student' and 'unemployed'. Patients with more service contact were more likely to have an occupation recorded, as were patients of a male gender, older age and those living in areas of lower deprivation.
Conclusion: This is the first time a natural language processing application has been used to successfully derive patient-level occupations from the free-text of electronic mental health records, performing with good levels of precision and recall, and applied at scale. This may be used to inform clinical studies relating to the broader social determinants of health using electronic health records.
Keywords: adult psychiatry; epidemiology; health informatics; mental health.
© Author(s) (or their employer(s)) 2021. Re-use permitted under CC BY. Published by BMJ.
Conflict of interest statement
Competing interests: None declared.
Figures



Similar articles
-
Can natural language processing models extract and classify instances of interpersonal violence in mental healthcare electronic records: an applied evaluative study.BMJ Open. 2022 Feb 16;12(2):e052911. doi: 10.1136/bmjopen-2021-052911. BMJ Open. 2022. PMID: 35172999 Free PMC article.
-
Cohort profile of the South London and Maudsley NHS Foundation Trust Biomedical Research Centre (SLaM BRC) Case Register: current status and recent enhancement of an Electronic Mental Health Record-derived data resource.BMJ Open. 2016 Mar 1;6(3):e008721. doi: 10.1136/bmjopen-2015-008721. BMJ Open. 2016. PMID: 26932138 Free PMC article.
-
Natural language processing to extract symptoms of severe mental illness from clinical text: the Clinical Record Interactive Search Comprehensive Data Extraction (CRIS-CODE) project.BMJ Open. 2017 Jan 17;7(1):e012012. doi: 10.1136/bmjopen-2016-012012. BMJ Open. 2017. PMID: 28096249 Free PMC article.
-
Folic acid supplementation and malaria susceptibility and severity among people taking antifolate antimalarial drugs in endemic areas.Cochrane Database Syst Rev. 2022 Feb 1;2(2022):CD014217. doi: 10.1002/14651858.CD014217. Cochrane Database Syst Rev. 2022. PMID: 36321557 Free PMC article.
-
A systematic review of natural language processing and text mining of symptoms from electronic patient-authored text data.Int J Med Inform. 2019 May;125:37-46. doi: 10.1016/j.ijmedinf.2019.02.008. Epub 2019 Feb 20. Int J Med Inform. 2019. PMID: 30914179 Free PMC article.
Cited by
-
Understanding social and clinical associations with unemployment for people with schizophrenia and bipolar disorders: large-scale health records study.Soc Psychiatry Psychiatr Epidemiol. 2024 Oct;59(10):1709-1719. doi: 10.1007/s00127-024-02620-6. Epub 2024 Feb 20. Soc Psychiatry Psychiatr Epidemiol. 2024. PMID: 38378812 Free PMC article.
-
Machine Learning in Primary Health Care: The Research Landscape.Healthcare (Basel). 2025 Jul 7;13(13):1629. doi: 10.3390/healthcare13131629. Healthcare (Basel). 2025. PMID: 40648653 Free PMC article. Review.
-
Realizing the potential of social determinants data in EHR systems: A scoping review of approaches for screening, linkage, extraction, analysis, and interventions.J Clin Transl Sci. 2024 Oct 10;8(1):e147. doi: 10.1017/cts.2024.571. eCollection 2024. J Clin Transl Sci. 2024. PMID: 39478779 Free PMC article.
-
Identifying Asthma-Related Symptoms From Electronic Health Records Using a Hybrid Natural Language Processing Approach Within a Large Integrated Health Care System: Retrospective Study.JMIR AI. 2025 May 2;4:e69132. doi: 10.2196/69132. JMIR AI. 2025. PMID: 40611521 Free PMC article.
-
The growing evidence for mental health rehabilitation services and directions for future research.Front Psychiatry. 2023 Nov 20;14:1303073. doi: 10.3389/fpsyt.2023.1303073. eCollection 2023. Front Psychiatry. 2023. PMID: 38053541 Free PMC article. No abstract available.
References
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources