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.
Development and validation of a natural language processing application using General Architecture for Text Engineering (GATE) software to extract occupations from de-identified clinical records.
Setting & Participants
Electronic health records from a large secondary mental health provider in south London, accessed through the Clinical Record Interactive Search (CRIS) platform. The text-mining application was run over the free-text fields in the electronic health records of 341,720 patients (all aged ≥16).
Precision and recall estimates of the application performance; occupation retrieval using the application compared to structured fields; most common patient occupations; and analysis of key sociodemographic and clinical indicators for occupation recording.
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.
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.
|Publication status||Accepted/In press - 10 Nov 2020|
- Mental health
- Health informatics
- Adult psychiatry