Proceedings of the
35th European Safety and Reliability Conference (ESREL2025) and
the 33rd Society for Risk Analysis Europe Conference (SRA-E 2025)
15 – 19 June 2025, Stavanger, Norway

Simultaneous Prediction of Causes and Consequences in Hydrogen-Related Accidents Using Transformer-Based Multi-Task Learning

July Bias Macedo1,a, Plinio Marcio Ramos1, Luana de Melo Queiroz1, Dario Valcamonico2, Márcio das Chagas Moura1, Isis Didier Lins1, Piero Baraldi2 and Enrico Zio2

1Center for Risk Analysis, Reliability Engineering and Environmental Modeling, Universidade Federal de Pernambuco, Brazil.

2Laboratory of Analysis of Systems for the Assessment of Reliability, Risk and Resilience, Politecnico di Milano, Brazil

ABSTRACT

Hydrogen is emerging as a critical alternative in the global transition to sustainable energy. However, its characteristics - such as high flammability, rapid diffusion, and low ignition energy - pose significant safety challenges in the operation of hydrogen systems. To prevent future accidents, a thorough understanding of hydrogen-related incidents is crucial. This work proposes a novel approach utilizing transformer-based multi-task learning to simultaneously predict accident causes and consequences from unstructured accident narratives within the Hydrogen Incident and Accident Database (HIAD 2.1). By fine-tuning a pre-trained BERT model, the accident narratives are processed to identify root causes while estimating the potential consequences. The proposed multi-task model uses shared representations, enabling efficient learning of both causal and consequence patterns from historical hydrogen accidents. Our results show that multi-task learning enhances the model's ability to generalize across multiple prediction tasks, outperforming single-task models. By suggesting likely causes and consequences, this methodology supports risk identification and assessment, contributing to the safer adoption of hydrogen technologies.

Keywords: Multi-task learning, Hydrogen safety, BERT-based models, Accident analysis.



Download PDF