LAPSE:2025.0360
Published Article

LAPSE:2025.0360
AutoJSA: A Knowledge-Enhanced Large Language Model Framework for Improving Job Safety Analysis
July 22, 2025. Originally submitted on June 27, 2025
Abstract
Job Safety Analysis (JSA) is critical for proactively identifying workplace hazards, assessing their potential consequences, and implementing effective control measures. However, traditional JSA methods can be inefficient and prone to errors, particularly in complex industrial environments. This paper introduces AutoJSA, a knowledge-enhanced framework that leverages large language models (LLMs) to automate and optimize the JSA process. We collected 73 high-quality JSA reports from a chemical engineering company and divided the JSA workflow into three key tasks: hazard identification, consequence identification, and control measure generation. Two approaches - fine-tuning and retrieval-augmented generation (RAG) - were employed on a base LLM (GLM-4-9B-Chat) to adapt it for these domain-specific tasks. Experimental results demonstrate that both fine-tuning and RAG significantly improve task performance relative to the unmodified model, with fine-tuning generally providing larger gains. While RAG offers the advantages of dynamic knowledge retrieval and simpler implementation, it yields more modest improvements compared to fine-tuning. Moreover, a direct combination of fine-tuning and RAG did not show additional benefits under the current approach. Overall, AutoJSA effectively addresses the limitations of traditional JSA by increasing the accuracy and efficiency of safety analysis, laying the groundwork for fully automated JSA report generation. The findings underscore the potential of advanced artificial intelligence and natural language processing techniques to enhance workplace safety management in complex and rapidly evolving industrial settings.
Job Safety Analysis (JSA) is critical for proactively identifying workplace hazards, assessing their potential consequences, and implementing effective control measures. However, traditional JSA methods can be inefficient and prone to errors, particularly in complex industrial environments. This paper introduces AutoJSA, a knowledge-enhanced framework that leverages large language models (LLMs) to automate and optimize the JSA process. We collected 73 high-quality JSA reports from a chemical engineering company and divided the JSA workflow into three key tasks: hazard identification, consequence identification, and control measure generation. Two approaches - fine-tuning and retrieval-augmented generation (RAG) - were employed on a base LLM (GLM-4-9B-Chat) to adapt it for these domain-specific tasks. Experimental results demonstrate that both fine-tuning and RAG significantly improve task performance relative to the unmodified model, with fine-tuning generally providing larger gains. While RAG offers the advantages of dynamic knowledge retrieval and simpler implementation, it yields more modest improvements compared to fine-tuning. Moreover, a direct combination of fine-tuning and RAG did not show additional benefits under the current approach. Overall, AutoJSA effectively addresses the limitations of traditional JSA by increasing the accuracy and efficiency of safety analysis, laying the groundwork for fully automated JSA report generation. The findings underscore the potential of advanced artificial intelligence and natural language processing techniques to enhance workplace safety management in complex and rapidly evolving industrial settings.
Record ID
Keywords
Artificial Intelligence, Job Safety Analysis, Large Language Model
Subject
Suggested Citation
Xu S, Zhao J. AutoJSA: A Knowledge-Enhanced Large Language Model Framework for Improving Job Safety Analysis. Systems and Control Transactions 4:1300-1305 (2025) https://doi.org/10.69997/sct.186169
Author Affiliations
Xu S: Tsinghua University, Department of Chemical Engineering, Beijing, China
Zhao J: Tsinghua University, Department of Chemical Engineering, Beijing, China
Zhao J: Tsinghua University, Department of Chemical Engineering, Beijing, China
Journal Name
Systems and Control Transactions
Volume
4
First Page
1300
Last Page
1305
Year
2025
Publication Date
2025-07-01
Version Comments
Errata Correction - Table 2 Row 1 - Editorial Board Approved
Other Meta
PII: 1300-1305-1140-SCT-4-2025, Publication Type: Journal Article
Record Map
Published Article

LAPSE:2025.0360
This Record
External Link

https://doi.org/10.69997/sct.186169
Article DOI
Download
Meta
Record Statistics
Record Views
1540
Version History
[v2] (Errata Correction - Table 2 Row 1 - Edit...)
Jul 22, 2025
[v1] (Original Submission)
Jun 27, 2025
Verified by curator on
Jul 22, 2025
This Version Number
v2
Citations
Most Recent
This Version
URL Here
https://psecommunity.org/LAPSE:2025.0360
Record Owner
PSE Press
Links to Related Works
References Cited
- Analysis JH, Lebowitz J. Essentials of job hazard analysis. Chem Eng Prog 114:52-6 (2018)
- Albrechtsen E, Solberg I, Svensli E. The application and benefits of job safety analysis. Saf Sci 113:425-37 (2019) https://doi.org/10.1016/j.ssci.2018.12.007
- Ghasemi F, Doosti-Irani A, Aghaei H. Applications, shortcomings, and new advances of job safety analysis (JSA): findings from a systematic review. Saf Health Work 14(2):153-62 (2023) https://doi.org/10.1016/j.shaw.2023.03.006
- Swartz G. Job hazard analysis: A guide to identifying risks in the workplace. Government Institutes (2001) https://doi.org/10.5771/9781591919803
- Geronsin R. Job hazard assessment: a comprehensive approach. Prof Saf 46(12):23 (2001)
- Yoon IK, Seo JM, Jang N, Oh SK, Shin D, Yoon ES. A practical framework for mandatory job safety analysis embedded in the permit-to-work system and application to the gas industry. J Chem Eng Jpn 44(12):976-88 (2011) https://doi.org/10.1252/jcej.11we156
- Palega M. Application of the job safety analysis (JSA) method to assess occupational risk at the workplace of the laser cutter operator. Manag Prod Eng Rev 12(3) (2021) https://doi.org/10.24425/mper.2021.138529
- Roughton J, Crutchfield N. Job Hazard Analysis: A Guide for Voluntary Compliance and Beyond. Butterworth-Heinemann (2015)
- Zheng W, Shuai J, Shan K. The energy source-based job safety analysis and application in the project. Saf Sci 93:9-15 (2017) https://doi.org/10.1016/j.ssci.2016.11.009
- Chi NW, Lin KY, Hsieh SH. Using ontology-based text classification to assist job hazard analysis. Adv Eng Informatics 28(4):381-94 (2014) https://doi.org/10.1016/j.aei.2014.05.001
- Namian M. Factors Affecting Construction Hazard Recognition and Safety Risk Perception. North Carolina State University (2017)
- Li W, Cao Q, He M, Sun Y. Industrial non-routine operation process risk assessment using job safety analysis (JSA) and a revised Petri net. Process Saf Environ Prot 117:533-8 (2018) https://doi.org/10.1016/j.psep.2018.05.029
- Pandithawatta S, Ahn S, Rameezdeen R, Chow CW, Gorjian N, Kim TW. Development of a knowledge graph for automatic job hazard analysis: The schema. Sensors 23(8):3893 (2023) https://doi.org/10.3390/s23083893
- Zhang S, Boukamp F, Teizer J. Ontology-based semantic modeling of construction safety knowledge: towards automated safety planning for job hazard analysis (JHA). Autom Constr 52:29-41 (2015) https://doi.org/10.1016/j.autcon.2015.02.005
- Achiam J, Adler S, Agarwal S, Ahmad L, Akkaya I, Aleman FL, ... McGrew B. GPT-4 technical report. arXiv preprint arXiv:2303.08774 (2023)
- Bernardi ML, Cimitile M, Pecori R. Automatic job safety report generation using RAG-based LLMs. In: 2024 International Joint Conference on Neural Networks (IJCNN). Ed: IEEE (2024) p. 1-8 https://doi.org/10.1109/IJCNN60899.2024.10651320
- Uddin SJ, Albert A, Ovid A, Alsharef A. Leveraging ChatGPT to aid construction hazard recognition and support safety education and training. Sustainability 15(9):7121 (2023) https://doi.org/10.3390/su15097121
- Kvale DK. Deep Learning in Construction Safety: Quality Assessment, Hazard Identification, and Preventive Measure Proposals in Job Safety Analysis. NTNU (2023)
- GLM T, Zeng A, Xu B, Wang B, Zhang C, Yin D, ... Wang Z. ChatGLM: a family of large language models from GLM-130B to GLM-4 all tools. arXiv preprint arXiv:2406.12793 (2024)
- Dodge J, Ilharco G, Schwartz R, Farhadi A, Hajishirzi H, Smith N. Fine-tuning pretrained language models: weight initializations, data orders, and early stopping. arXiv preprint arXiv:2002.06305 (2020)
- White J, Fu Q, Hays S, Sandborn M, Olea C, Gilbert H, ... Schmidt DC. A prompt pattern catalog to enhance prompt engineering with ChatGPT. arXiv preprint arXiv:2302.11382 (2023)
- Lewis P, Perez E, Piktus A, Petroni F, Karpukhin V, Goyal N, ... Kiela D. Retrieval-augmented generation for knowledge-intensive NLP tasks. Adv Neural Inf Process Syst 33:9459-74 (2020)
- Devlin J. BERT: pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805 (2018)

