Skip to content

Add project page: Qualitative Data Categorisation Improvements#362

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
project-submission/qualitative-data-categorisation-improvements
Open

Add project page: Qualitative Data Categorisation Improvements#362
github-actions[bot] wants to merge 2 commits into
mainfrom
project-submission/qualitative-data-categorisation-improvements

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Project Submission: Qualitative Data Categorisation Improvements

Summary

LLM-based multi-label text classifier for NHS patient experience comments, replacing a legacy ML model with a RAG-augmented approach requiring no model training

Details

  • Status: Current Project
  • Year: N/A
  • Main Work Area: Natural Language Processing Products
  • Origin: Insight and Voice
  • Images: 1 image(s) included in docs/images/our_work/qualitative-data-categorisation-improvements/

Changes

  • Added: docs/our_work/qualitative-data-categorisation-improvements.md
  • Updated: mkdocs.yml (added to Current/Past Projects and Work Area sections)

Next Steps

  1. Review the changes in this PR
  2. Once approved, merge this PR
  3. The website will be updated automatically

Closes #361

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you please add some alt text!

@amaiaita amaiaita left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks great, just a couple minor things!


The legacy approach used a trained sklearn/BERT ensemble that required manual retraining and achieved ~0.70 weighted F1.

We replaced this with an LLM-based classifier using Claude Sonnet via the NHS Federated Data Platform (FDP) API. The system uses retrieval-augmented few-shot prompting — for each comment being classified, it retrieves semantically similar examples from a corpus of 13,000 labelled comments and includes them as in-context calibration. Comments are processed in batches of 50 per API call for efficiency. This approach requires no model training, and making category changes is as simple as updating a prompt.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we've been told to not mention FDP in comms stuff so maybe remove this

title: 'Qualitative Data Categorisation Improvements'
summary: 'LLM-based multi-label text classifier for NHS patient experience comments, replacing a legacy ML model with a RAG-augmented approach requiring no model training'
origin: 'Insight and Voice'
tags: ['CLASSIFICATION', 'LARGE LANGUAGE MODELS (LLM)', 'MACHINE LEARNING', 'NATURAL LANGUAGE PROCESSING (NLP)', 'MODELLING', 'UNSTRUCTURED', 'TEXT DATA', 'PYTHON', 'IN DEVELOPMENT']

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is entirely the fault of my template, will change it, but would you change the tag for LLM to just say LLM?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and the NLP one to just say "Natural Language Processing" with no brackets

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Qualitative Data Categorisation Improvements

2 participants