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.
University of Koblenz, Germany · 2Federal Institute for Vocational Education and Training (BIBB), Bonn, Germany · 3Linnaeus University (LNU), Växjö, Sweden