Back to Browse sources
Full recordLegally binding

HMPPS: Key Work quality assurance automation

Report State lawNorthern Europe · GBin force

This algorithmic transparency record details the automation of quality assessments for prisoner Key Work session case notes within Her Majesty's Prison and Probation Service. Using machine learning and text classification techniques including BERT NER, Longformer, and a gradient boosting classifier, the system scores case notes to replace resource-intensive manual sampling. The outputted scores provide prisons with valid monthly performance data while maintaining human review and challenge mechanisms.

Summary and content fields are drawn from the document text and are pending editorial review.

Who issued it

Cabinet OfficeGovernment (executive) · GB
Publisher
Department for Science, Innovation and TechnologyGovernment
Publisher
Government Digital ServiceGovernment (executive) · GB
Publisher
Legal forceLegally binding
Under whose authorityState law
Judged fromfull text

Who it governs

Public sector bodiesRegulatorsResearchers and academicsWorkers

This record is for researchers, policymakers, and members of the public interested in understanding the deployment and governance of AI systems in government.

Sectors
Justice · prison and probation servicesPublic administration · government algorithmic transparency

What the document contains

What's covered

The document covers the architectural design, data processing steps, model specifications, performance metrics, and risk mitigations for an automated text classification tool used in prison case note evaluations.

What's missing

The document does not provide source code, commercial contract details for external suppliers since none were used, or direct operational instructions for frontline prison staff.

Key takeaways
  • The model automates the quality assessment of Key Work session case notes in prisons using machine learning.
  • It replaces a manual, resource-intensive sample review process with monthly scores covering all case notes.
  • The technical pipeline integrates a BERT NER model, Longformer embeddings, and a gradient boosting classifier.
  • Human oversight is maintained through a prison challenge process, random sampling, and manual reviews.
  • Ethics and bias assessments found no significant correlation indicating bias toward ethnicity, gender, or age.
Principles it states
transparencyfairnessdata privacy
Outline
· Tier 1 Information
· Tier 2 - Owner and Responsibility
· Tier 2 - Description and Rationale
· Tier 2 - Decision making Process
· Tier 2 - Tool Specification
· Tier 2 - Model Specification
· Tier 2 - Data Specification
· Tier 2 - Risks, Mitigations and Impact Assessments
Issued30 July 2025
Length3,674 words
FormatNot recorded
Scopenational

How it scores

Pending review

Each score is backed by a quote verified against the document text. Editorial review has not yet confirmed them.

Fairness

4/5

Non-discrimination and equitable treatment

Once the outlier regions were removed, there was no significant correlation found that would suggest our model includes bias towards ethnicity, gender or age.

4.2.7 - Model performance

screening score · 2026-11-26

Human Dignity

2/5

Respect for the inherent worth of persons

The aim of the Key Worker role in prisons is to promote rehabilitation and constructive staff- prisoner relationships.

Tier 1 Information

screening score · 2026-11-26

Human Oversight

4/5

Humans remain in control of consequential decisions

These scores can be challenged by prisons if they feel that the score allocated by the model is incorrect, at this point a human will manually review the case note and assign the appropriate score.

2.2 - Scope

screening score · 2026-11-26

Privacy

4/5

Protection of personal data and private life

prediction pipeline uses a named entity recognition (BERT NER) model to identify names in the case notes and removes these by replacing with the word ‘Person’.

2.1 - Detailed description

screening score · 2026-11-26

Transparency

4/5

Openness about how AI systems work and are used

Users have been provided with documentation to explain that the case note quality scores have been generated using AI.

3.5 - Required training

screening score · 2026-11-26

Enforcement

4/5

Consequences and compliance mechanisms with real force

There is also a process whereby the scores outputted by the model can be challenged by prisons if they feel that they are incorrect which provides a further review of the model.

4.1.3 - Maintenance

screening score · 2026-11-26

Impact Assessment

4/5

Required assessment of an AI system's risks/impacts before or during use

Data Privacy Impact Assessment completed and approved internally (final approval April 2025). Ethics Assessment completed based on MoJ’s Data Science Ethics Framework

5.1 - Impact assessment

screening score · 2026-11-26

Topics

algorithmic transparency public sector ai text classification criminal justice quality assurance