Automatic Occupational Coding through Retrieval-Augmented Generation
Authors: Mathijs A. Langezaal, Egon L. van den Broek, Lukas P. A. Arts, Marcel Goldberg, Grégoire Rey, Melissa C. Friesen, Sarah J. Locke, Nathaniel Rothman, Qing Lan, Roel C. H. Vermeulen, Susan Peters
Organizations: Department of Information and Computing Sciences, Utrecht University, Princetonplein 5, Utrecht, 3584CC, The Netherlands · Population-Based Epidemiological Cohorts Unit UMS11, INSERM, 16 Avenue Paul Vaillant Couturier, Villejuif, 94807, France · France Cohortes UMS47, INSERM, France · Occupational and Environmental Epidemiology Branch, Division of Cancer Epidemiology and Genetics, National Cancer Institute, Bethesda, Maryland, USA · Institute for Risk Assessment Sciences, Utrecht University, Yalelaan 1, Utrecht, 3584CL, The Netherlands
Annually 1.9 million deaths and 89.7 million disability-adjusted life years are caused by exposure to agents during work (e.g., welding fumes, silica dust, and noise pollution). To improve worker health, high-quality exposure assessments are crucial. Therefore, free-text job descriptions from large-scale occupational cohorts are manually standardized through occupational classifications and linked to hazardous exposures using Job Exposure Matrices (JEM). However, manual coding is slow, unreliable (i.e., 44-89% inter-coder reliability), and costly, due to i) short, ambiguous free-text job descriptions, ii) classifications containing hundreds to thousands of categories, and iii) the absence of gold standards. With 46%-79% accuracy, state-of-the-art automatic occupational coding tools achieve classification performance on human level. However, their performance drops to 17-26% on out-of-distribution datasets. Furthermore, their supervised architectures limit them to occupational classifications present in the training set. Consequently, JEM using other classifications are incompatible, leaving vital exposure-response associations unexplored. Our Retrieval-Augmented Generation framework, OPERAG, enables classification into any occupational classification without expert-labelled databases. It retrieves coding index information and combines this with Large Language Model-based classification. Validated on AsiaLymph's 36,062 real-world job descriptions, OPERAG achieved 42.6% occupational classification accuracy on the 4th coding level, substantially outperforming existing tools and approaching human coders' 51-56% inter-coder reliability. Using two JEM named ALOHA+ and SHOCK, 89.9-98.6% accuracy was achieved on exposure assessment. OPERAG approaches human-level, universal occupational classification, enabling efficient and effective large-scale exposure assessment to improve worker health.
Figures & tables
Figure 1: Overview of characteristics of job descriptions, their attributes, answers from respondents, occupational classifications, and occupational codes. Screenshot of the OPERAS decision support system ( Langezaal et al., 2025 ) showing three anonymized job entries from the AsiaLymph ( Friesen et al., 2016 ) dataset is used.
Author(s)
Year
CS*
CL
OC
Acc.
Bao et al.
2020
Canadian NOC2016
4
500
59%
Garcia et al.
2021
Canadian NOC2016
4
500
65%
Gweon et al.
2017
ISCO - 08
4
412
65%
Jones et al.
2004
ISCO - 08
4
412
64%
UK SOC (2010, 2000, 90)
–
–
–
UK SIC (2007, 2003, 92, 80)
–
–
–
Table 1: Overview of currently available automatic coding systems, with their year of release, supported classification system(s) (CS), and performance. The coding level (CL), number of outcome categories (OC), and within-distribution Accuracy (Acc, %) are specified for each CS’ least aggregated coding level.
Figure 2: Overview of OPERAG’s retriever component development and overall classification pipelines, illustrated by the example job description "Accountant". The development phase is indicated in blue, while the inference process during the classification phase is shown in green. Orange color indicates components that are executed iteratively.
Statistic
Count
Number of job episodes
36,179
Number of unique outcome categories
389
Number of input classes
4
Minimum word count
1
Maximum word count
52
Median word count (IQR)
10 (5)
Table 2: Descriptive statistics of the AsiaLymph dataset (IQR = interquartile range).
OPERAG
AUTONOC
CASCOT
LabourR
MG*
%
F1
Acc.(%)
Acc.(%)
Acc.(%)
Acc.(%)
1
4.5
0.31
13.6
6.6
11.6
4.5
2
7.1
0.58
69.8
42.9
46.0
30.4
3
15.0
0.48
27.8
12.7
16.0
12.9
4
9.3
0.38
38.0
11.2
17.8
15.5
5
13.0
0.62
62.3
46.4
54.5
37.7
Table 3: Classification performance on AsiaLymph (n = 36,062) by ISCO-88 major group (MG). The % column shows the frequency distribution of each MG in AsiaLymph. OPERAG results include both F1 score and accuracy (Acc, %), while AUTONOC, CASCOT, and LabourR report Acc. only. N/A indicates unreported metrics.
Exposure Type
All individuals
Exposed individuals
Acc.
PABAK
N
Acc.
PABAK
Biological dust
91.7
0.83
12,062
88.5
0.77
Mineral dust
91.7
0.83
14,588
90.1
0.80
Gas/fumes
90.2
0.80
19,621
91.4
0.83
VGDF*
92.8
0.86
22,093
94.3
0.89
All pesticides
96.9
0.94
5,270
90.1
0.80
Table 4: OPERAG’s exposure assessment evaluation performance of the ALOHA+-JEM. Accuracy (Acc., %) and PABAK are given for all individuals and exposed individuals. Here, N represents the number of exposed individuals for this exposure. Exposure was dichotomized into unexposed (0) and exposed (1–2).
MG*
UG
Occupational group title
Acc.
Top incorrect predictions
(%)
1st
2nd
3rd
0
0110 (2.1%)
Armed forces
84.4%
3132 (1.5%)
5169 (1.2%)
1229 (0.8%)
1
1210 (2.6%)
Directors and Chief Executives
2.3%
1314 (21.8%)
1319 (14.4%)
1312 (11.4%)
1224 (0.3%)
Production and Operations Department Managers in Wholesale and Retail Trade
11.3%
1314 (30.4%)
1315 (14.8%)
1225 (8.7%)
1222 (0.2%)
Production and Operations Department Managers in Manufacturing
54.6%
1312 (15.9%)
1232 (3.4%)
1210 (2.3%)
2
2331 (1.1%)
Primary Education Teaching Professionals
95.1%
2359 (1.3%)
1229 (1.0%)
3310 (0.8%)
Table 5: Top incorrect predictions for the three most prevalent ISCO-88 unit groups (UG) per major group (MG) in AsiaLymph. For each UG, its frequency in AsiaLymph (%, total n = 36,062), accuracy, and the top three most frequent incorrect predictions with their share of predictions (%) within their MG are given.
Figure 3: Occupational classification Accuracy (%) for all of ISCO - 88’s coding levels (1–4) for human-coders, OPERAG, and automated coding tools (AUTONOC, CASCOT, LabourR) on the AsiaLymph dataset. “Centres 1 vs 2” and “Centres 3 vs 4” denote inter - coder agreement between different coding centres during the AsiaLymph coding process, as reported in ( Ge, 2021 ) .
Retrieval-augmented classification uses relevant examples, prototypes, or knowledge at inference time to ground predictions and handle sparse or changing labels.
Occupation coding links job titles in free text to occupational taxonomies and is a core task in labor market research. Existing approaches typically address this problem in a single end-to-end step, jointly identifying job titles and assigning occupational codes. This paper presents a novel two-step approach that separates these tasks. In the first step, a domain-specific Named Entity Recognition (NER) model identifies occupational titles in continuous text, even under noise such as OCR errors. In the second step, the extracted job titles are mapped to a taxonomy, enabling the classifier to focus exclusively on this mapping. We demonstrate that this separation improves accuracy, robustness, and interpretability compared to single-step approaches. The method has been developed for German documents but is transferable to other languages. We further introduce a margin-based confidence criterion for occupation coding, replacing common absolute thresholds. To support reproducibility, we publish the source code and evaluation scripts.
Alexander M. Esser, Jens Dörpinghaus
University of Koblenz, Germany · 2Federal Institute for Vocational Education and Training (BIBB), Bonn, Germany · 3Linnaeus University (LNU), Växjö, Sweden
Automation is often justified as relief from dull, dirty, and dangerous work. I examine how these conditions relate to occupational AI exposure using 21 O*NET items across 754 US occupations. Higher exposure is associated with lower condition scores under a large language model (LLM) measure and AI Occupational Exposure (AIOE), with equal occupation weights and employment weights. Adjustment for physical demands, required education, training and experience, and wages reduces the composite association. The adjusted confidence intervals include zero for LLM exposure and remain below zero for AIOE. Separating repetition from restricted discretion also changes what the combined Dull score conveys. These comparisons show how item groupings and occupational characteristics shape the interpretation of exposure estimates. Occupational profiles offer a starting point for selecting contrasting research settings. Establishing desired automation or realized relief requires evidence about workers' preferences and specific interventions.
Siyi Yu
Department of Marketing, Daniels School of Business, Purdue University
LLM judges are increasingly used to assess whether AI outputs meet workplace requirements, but agreement on response rankings does not establish agreement on acceptance rates or occupational aggregates. We introduce O*NET-BENCH, an audit suite derived from an existing survey of 45,796 worker ratings, and evaluate 33 pre-existing judge configurations across six model families on 4,501 test ratings. Twenty-five configurations achieve tie-aware pair accuracy of at least 0.60, although a train-fitted response-only TF-IDF baseline nearly matches the strongest judge. Despite this ordering agreement, judges estimate that 3.0%-97.9% of responses are acceptable, compared with 61.1% for occupation-matched workers. In one fine-tuned lineage, changing from pointwise scoring to a bundled few-shot/listwise protocol improves response ordering while reducing agreement with worker means at the task and occupation levels; this reversal replicates on a task- and worker-disjoint validation split under prespecified criteria. Cross-validated calibration largely removes mean bias, but calibrated scores explain at most 8.5% of individual worker-rating variance. Prediction-assisted estimation yields at most small precision gains at the studied label budgets. These results show that ranking agreement alone is insufficient for occupational measurement. Judges should be validated against the acceptance rates and aggregates their scores will be used to estimate.