Predicting fire consequences with the transformer model based on multimodal feature fusion

IF 7.9 2区 化学 Q1 CHEMISTRY, MULTIDISCIPLINARY
Journal of Cheminformatics Pub Date : 2026-05-25 Epub Date: 2026-07-24 DOI:10.1186/s13321-026-01228-z
Yilin Wang, Beibei Wang, Xiaolu Wang, Yichen Zhang, Jiquan Zhang, Yijie Song
{"title":"Predicting fire consequences with the transformer model based on multimodal feature fusion","authors":"Yilin Wang,&nbsp;Beibei Wang,&nbsp;Xiaolu Wang,&nbsp;Yichen Zhang,&nbsp;Jiquan Zhang,&nbsp;Yijie Song","doi":"10.1186/s13321-026-01228-z","DOIUrl":null,"url":null,"abstract":"<div><p>Accurate prediction of fire consequences is fundamental to process safety management and quantitative risk assessment in the chemical process industries. Traditional empirical and computational fluid dynamics models often struggle to balance computational efficiency with predictive accuracy, especially when considering the complex interplay between molecular properties and process conditions. To address this challenge, this study proposes a high-precision Transformer-based prediction model for estimating the radiation effect distance, a critical parameter for defining safety zones. The model is founded on a multimodal feature fusion approach, integrating SMILES encoding, molecular descriptors, and three-dimensional molecular structures to comprehensively represent chemical identity and hazard potential. A dataset was generated using industry-standard PHAST software simulations, covering diverse release scenarios for 40 flammable chemicals. The proposed multimodal Transformer model significantly outperforms traditional machine learning models. Compared with the random forest (RFR) benchmark model, its coefficient of determination (R<sup>2</sup>) has increased by approximately 15%, rising from 0.84 to 0.98. More importantly, it performs better in regression performance. The mean squared error (MSE) on the test set is as low as 0.0082, the root mean squared error (RMSE) is 0.0959, and the mean absolute error (MAE) is 0.0047. SHAP analysis confirmed the model's decision-making aligns with safety principles, identifying leak size and pressure as key hazard drivers. This confirms the model's reliability. This work successfully applies the Transformer architecture to fire consequence modeling within a process safety framework, achieving an optimal balance between computational performance and prediction accuracy. It provides a reliable and interpretable tool for enhancing industrial hazard assessment, supporting safety design, and informing emergency planning, thereby underscoring the transformative potential of deep learning in advancing chemical safety practices.</p><p><b>Scientific contribution</b></p><p>This study proposes a Transformer-based deep learning framework with multimodal feature fusion for predicting firethermal radiation distances, establishing an innovative bridge between molecular informatics and process safety engineering. The model integrates SMILES sequences, three-dimensional molecular structures, quantum-chemical descriptors, and key process parameters into an end-to-end architecture, moving beyond traditional QSPR/QPCR methods that rely solely on handcrafted descriptors. Systematic comparison demonstrates that incorporating 3Dmolecular spatial information significantly improves prediction accuracy, achieving an 18.3% reduction in meanabsolute error for late pool fires. The proposed model substantially outperforms conventional machine learning benchmarks, attaining an R² of 0.98 for jet fires—a 15% improvement over random forest—with a test set MSE aslow as 0.0082. SHAP-based interpretability analysis confi rms that the model's decision-making aligns with established safety principles and molecular orbital theory, identifying leak size and pressure as primary hazarddrivers while revealing how specific molecular features influence distinct fire types. Furthermore, a two-stage transfer learning strategy with pre-training on 130,000 molecules enables eff ective generalization to the fi reconsequence prediction task. The framework establishes a clear applicability domain, and with open access to dataand code, provides a fast, accurate, interpretable tool for industrial risk assessment, safety zone design, and emergency planning.</p></div>","PeriodicalId":617,"journal":{"name":"Journal of Cheminformatics","volume":"18 1","pages":""},"PeriodicalIF":7.9000,"publicationDate":"2026-05-25","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13397775/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Cheminformatics","FirstCategoryId":"92","ListUrlMain":"https://link.springer.com/article/10.1186/s13321-026-01228-z","RegionNum":2,"RegionCategory":"化学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/7/24 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"CHEMISTRY, MULTIDISCIPLINARY","Score":null,"Total":0}
引用次数: 0

Abstract

Accurate prediction of fire consequences is fundamental to process safety management and quantitative risk assessment in the chemical process industries. Traditional empirical and computational fluid dynamics models often struggle to balance computational efficiency with predictive accuracy, especially when considering the complex interplay between molecular properties and process conditions. To address this challenge, this study proposes a high-precision Transformer-based prediction model for estimating the radiation effect distance, a critical parameter for defining safety zones. The model is founded on a multimodal feature fusion approach, integrating SMILES encoding, molecular descriptors, and three-dimensional molecular structures to comprehensively represent chemical identity and hazard potential. A dataset was generated using industry-standard PHAST software simulations, covering diverse release scenarios for 40 flammable chemicals. The proposed multimodal Transformer model significantly outperforms traditional machine learning models. Compared with the random forest (RFR) benchmark model, its coefficient of determination (R2) has increased by approximately 15%, rising from 0.84 to 0.98. More importantly, it performs better in regression performance. The mean squared error (MSE) on the test set is as low as 0.0082, the root mean squared error (RMSE) is 0.0959, and the mean absolute error (MAE) is 0.0047. SHAP analysis confirmed the model's decision-making aligns with safety principles, identifying leak size and pressure as key hazard drivers. This confirms the model's reliability. This work successfully applies the Transformer architecture to fire consequence modeling within a process safety framework, achieving an optimal balance between computational performance and prediction accuracy. It provides a reliable and interpretable tool for enhancing industrial hazard assessment, supporting safety design, and informing emergency planning, thereby underscoring the transformative potential of deep learning in advancing chemical safety practices.

Scientific contribution

This study proposes a Transformer-based deep learning framework with multimodal feature fusion for predicting firethermal radiation distances, establishing an innovative bridge between molecular informatics and process safety engineering. The model integrates SMILES sequences, three-dimensional molecular structures, quantum-chemical descriptors, and key process parameters into an end-to-end architecture, moving beyond traditional QSPR/QPCR methods that rely solely on handcrafted descriptors. Systematic comparison demonstrates that incorporating 3Dmolecular spatial information significantly improves prediction accuracy, achieving an 18.3% reduction in meanabsolute error for late pool fires. The proposed model substantially outperforms conventional machine learning benchmarks, attaining an R² of 0.98 for jet fires—a 15% improvement over random forest—with a test set MSE aslow as 0.0082. SHAP-based interpretability analysis confi rms that the model's decision-making aligns with established safety principles and molecular orbital theory, identifying leak size and pressure as primary hazarddrivers while revealing how specific molecular features influence distinct fire types. Furthermore, a two-stage transfer learning strategy with pre-training on 130,000 molecules enables eff ective generalization to the fi reconsequence prediction task. The framework establishes a clear applicability domain, and with open access to dataand code, provides a fast, accurate, interpretable tool for industrial risk assessment, safety zone design, and emergency planning.

基于多模态特征融合的变压器模型火灾后果预测。
准确预测火灾后果是化工过程安全管理和定量风险评估的基础。传统的经验和计算流体动力学模型往往难以平衡计算效率和预测精度,特别是在考虑分子性质和工艺条件之间复杂的相互作用时。为了应对这一挑战,本研究提出了一种基于变压器的高精度预测模型,用于估计辐射效应距离,这是定义安全区的关键参数。该模型基于多模态特征融合方法,将SMILES编码、分子描述符和三维分子结构整合在一起,全面表征化学特性和危害潜力。使用行业标准的PHAST软件模拟生成了一个数据集,涵盖了40种易燃化学品的不同释放场景。提出的多模态Transformer模型显著优于传统的机器学习模型。与随机森林(RFR)基准模型相比,其决定系数(R2)提高了约15%,从0.84上升到0.98。更重要的是,它具有更好的回归性能。测试集的均方误差(MSE)低至0.0082,均方根误差(RMSE)为0.0959,平均绝对误差(MAE)为0.0047。SHAP分析证实,该模型的决策符合安全原则,将泄漏大小和压力确定为主要危险驱动因素。这证实了模型的可靠性。这项工作成功地将Transformer架构应用于过程安全框架内的火灾后果建模,在计算性能和预测准确性之间实现了最佳平衡。它为加强工业危害评估、支持安全设计和通知应急规划提供了可靠和可解释的工具,从而强调了深度学习在推进化学品安全实践方面的变革潜力。本研究提出了一个基于变压器的深度学习框架,该框架具有多模态特征融合,用于预测火热辐射距离,在分子信息学和过程安全工程之间建立了一座创新的桥梁。该模型将SMILES序列、三维分子结构、量子化学描述符和关键过程参数集成到端到端架构中,超越了仅依赖手工描述符的传统QSPR/QPCR方法。系统比较表明,结合三维分子空间信息显著提高了预测精度,后期池火的平均绝对误差降低了18.3%。所提出的模型大大优于传统的机器学习基准,在喷射火灾方面的R²为0.98,比随机森林提高了15%,测试集的MSE低至0.0082。基于shap的可解释性分析证实,该模型的决策符合既定的安全原则和分子轨道理论,确定泄漏大小和压力是主要的危险因素,同时揭示了特定的分子特征如何影响不同的火灾类型。此外,在130,000个分子上进行预训练的两阶段迁移学习策略能够有效地泛化到结果预测任务。该框架确立了明确的适用领域,并开放获取数据和代码,为工业风险评估、安全区设计和应急规划提供了快速、准确和可解释的工具。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Journal of Cheminformatics
Journal of Cheminformatics CHEMISTRY, MULTIDISCIPLINARY-COMPUTER SCIENCE, INFORMATION SYSTEMS
CiteScore
14.10
自引率
7.00%
发文量
82
审稿时长
3 months
期刊介绍: Journal of Cheminformatics is an open access journal publishing original peer-reviewed research in all aspects of cheminformatics and molecular modelling. Coverage includes, but is not limited to: chemical information systems, software and databases, and molecular modelling, chemical structure representations and their use in structure, substructure, and similarity searching of chemical substance and chemical reaction databases, computer and molecular graphics, computer-aided molecular design, expert systems, QSAR, and data mining techniques.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书