Automated Hazard Identification and Risk Assessment in Occupational Health and Safety Using Artificial Intelligence Fine-Tuned Large Language Models
Abstract
Occupational health and safety management requires systematic hazard identification and comprehensive risk assessment. Traditional approaches rely on manual processes that can be time-consuming and inconsistent across evaluators. In this study, we present an automated artificial intelligence system for hazard identification and risk assessment using fine-tuned large language models. We leverage Qwen3-32B as the base model. This model was adapted via Low-Rank Adaptation (LoRA), a parameter-efficient fine-tuning method, to acquire domain-specific knowledge of workplace hazards, risk assessment methodologies, and safety control measures. We trained our model on a dataset of hazard scenarios prepared by occupational safety experts. Each sample contains structured JSON outputs, including the hazard name, description, probability score, severity score, and control measures. Our evaluation on a held-out test set shows promising results. The fine-tuned model achieved an F1-score of 0.8830, which represents a 32.1\% improvement over the base model. We observed balanced precision (0.8826) and recall (0.8836), with an overall classification accuracy of 88.3\%. One particularly noteworthy finding is that no extreme misclassifications occurred between the high- and low-risk categories. This pattern indicates conservative and safety-conscious predictions. Our findings demonstrate that large language models can be effectively adapted to specialized occupational safety tasks through parameter-efficient fine-tuning. This approach offers significant potential as a decision support tool to enhance consistency and efficiency in safety management practices.
Keywords
- Occupational health and safety
- Risk assessment
- Large language models
- Fine-tuning
- LoRA
- Artificial intelligence
Thanks
References
- Kuok Ho Daniel Tang. Artificial intelligence in occupational health and safety risk management of construction, mining, and oil and gas sectors: advances and prospects. Journal of Engineering Research and Reports, 26(6):241–253, 2024.
- Adel Badri, Bryan Boudreau-Trudel, and Ahmed Saâdeddine Souissi. Occupational health and safety in the industry 4.0 era: A cause for major concern? Safety Science, 109:403–411, 2018.
- Immad A. Shah and SukhDev Mishra. Artificial intelligence in advancing occupational health and safety: an encapsulation of developments. Journal of Occupational Health, 66(1):uiad017, 2024.
- Ran Liu, Hu-Chen Liu, Hua Shi, and Xiuzhu Gu. Occupational health and safety risk assessment: A systematic literature review of models, methods, and applications. Safety Science, 160:106050, 2023.
- Jiyoung Park and Dongheon Kang. Artificial intelligence and smart technologies in safety management: a comprehensive analysis across multiple industries. Applied Sciences, 14(24):11934, 2024.
- Likang Wu, Zhi Zheng, Zhaopeng Qiu, Hao Wang, Hongchao Gu, Tingjia Shen, Chuan Qin, Chen Zhu, Hengshu Zhu, Qi Liu, et al. A survey on large language models for recommendation. World Wide Web, 27(5):60, 2024.
- Yogesh K. Dwivedi, Nir Kshetri, Laurie Hughes, Emma Louise Slade, Anand Jeyaraj, Arpan Kumar Kar, Abdullah M. Baabdullah, Alex Koohang, Vishnupriya Raghavan, Manju Ahuja, et al. Opinion paper: “So what if ChatGPT wrote it?” Multidisciplinary perspectives on opportunities, challenges and implications of generative conversational AI for research, practice and policy. International Journal of Information Management, 71:102642, 2023.
- Jungwon Lee, Seungjun Ahn, Daeho Kim, and Dongkyun Kim. Performance comparison of retrieval-augmented generation and fine-tuned large language models for construction safety management knowledge retrieval. Automation in Construction, 168:105846, 2024.
Details
Primary Language
English
Subjects
Natural Language Processing
Journal Section
Research Article
Early Pub Date
June 22, 2026
Publication Date
June 30, 2026
Submission Date
January 23, 2026
Acceptance Date
February 9, 2026
Published in Issue
Year 2026 Volume: 9 Number: 3
