The UK ONS built the open-source ClassifAI package to auto-code survey text into official classifications, halving processing time for occupation coding on a major labour-market survey, and is piloting a related tool, Survey Assist, under a public transparency record.
-50% %
Reduction in occupation-coding processing time on ASHE
~90,000 households
Households potentially covered by Survey Assist once deployed (annual, once deployed)
~2.25 million instances
Survey instances Survey Assist could cover annually (annual, once deployed)
Details
Maturity
Scaling
Promoter
UK Office for National Statistics (ONS) - Data Science Campus
Period
2023-present
Keywords
official statistics, government data science, labour statistics
Context
National statistics offices spend significant staff time manually coding survey respondents' free-text answers into standard classifications such as the Standard Occupational Classification (SOC) and Standard Industrial Classification (SIC), a bottleneck as survey volumes grow. The UK's Office for National Statistics (ONS) Data Science Campus built ClassifAI, an open-source Python package that combines semantic search over previously coded examples with retrieval-augmented generation.
Objectives
ClassifAI aims to assign free text automatically to classifications including SOC, SIC, COICOP and their international equivalents (ISCO, ISIC). Building on the same pipeline, the ONS is separately piloting 'Survey Assist' on the Transformed Labour Force Survey, using AI-generated follow-up questions to sharpen SIC/SOC coding.
Activities
ClassifAI, according to the ONS's own account, is now coding labour market data in production, including a large-language-model application used on the Annual Survey of Hours and Earnings (ASHE). Survey Assist, which could cover around 90,000 households (about 2.25 million survey instances a year) once deployed, was published on 30 October 2025 under the UK's Algorithmic Transparency Record Standard (v3.0), documenting its pilot status, data flows, human clerical review and a planned evaluation against gold-standard coded data.
Results
The ONS's own account states that the large-language-model application built on ClassifAI halved processing time for occupation coding on ASHE. Survey Assist, the newer follow-up-question tool, has not yet published accuracy or consistency results, as testing was still under way through 2025.
Conclusions
The Survey Assist Transparency Record sets a materially higher public-transparency bar than most comparable AI deployments in this dataset, but the well-evidenced part of the impact claim remains limited to the ASHE processing-time figure, with Survey Assist itself still unproven in production.
Implementation
Indicative cost
Medium (€50k–€500k)
Time to results
Medium (1–3 years)
Staffing & skills
ONS Data Science Campus (in-house team, Newport)
Conditions for success
Open-source (MIT-licensed) codebase enabling reuse and scrutiny
Retrieval-augmented generation over a library of previously coded examples
Publication under the UK Algorithmic Transparency Record Standard (v3.0)
Human clerical review retained alongside the AI-generated codes
Common failure modes
Survey Assist has no published accuracy or consistency results yet; testing was still under way through 2025
Commonly funded by
National / regional programmes
Indicative funding routes for practices of this type — always check each programme's current calls and eligibility rules.
Replication kit
Reusable artefacts from this practice — as published by their sources.
Mexico's statistics institute INEGI is scaling BERT/FastText-based AI coding from its household income survey to the national employment survey, formally …
Baden-Württemberg built F13, the first AI assistant in productive use across a full German state administration, running on sovereign infrastructure; …