Next Article in Journal
Effect of Water Content and Cementation on the Shear Characteristics of Remolded Fault Gouge
Next Article in Special Issue
Knowledge Support for Emergency Response During Construction Safety Accidents
Previous Article in Journal
From Control to Connection: A Child-Centred User Experience Approach to Promoting Digital Self-Regulation in Preschool-Aged Children
Previous Article in Special Issue
Research on the Influence of Anxiety Psychology on Unsafe Behavior Among Construction Workers
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Structure-Aware and Format-Enhanced Transformer for Accident Report Modeling

by
Wenhua Zeng
1,2,*,
Wenhu Tang
1,*,
Diping Yuan
3,
Hui Zhang
2,
Pinsheng Duan
4 and
Shikun Hu
2,5
1
School of Electric Power Engineering, South China University of Technology, Guangzhou 510641, China
2
Shenzhen Urban Public Safety and Technology Institute, Shenzhen 518024, China
3
Shenzhen Research Institute, China University of Mining and Technology, Shenzhen 518057, China
4
School of Mechanics and Civil Engineering, China University of Mining and Technology, Xuzhou 221116, China
5
Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences, Shenzhen 518055, China
*
Authors to whom correspondence should be addressed.
Appl. Sci. 2025, 15(14), 7928; https://doi.org/10.3390/app15147928
Submission received: 24 June 2025 / Revised: 14 July 2025 / Accepted: 14 July 2025 / Published: 16 July 2025
(This article belongs to the Special Issue Advances in Smart Construction and Intelligent Buildings)

Abstract

Modeling accident investigation reports is crucial for elucidating accident causation mechanisms, analyzing risk evolution processes, and formulating effective accident prevention strategies. However, such reports are typically long, hierarchically structured, and information-dense, posing unique challenges for existing language models. To address these domain-specific characteristics, this study proposes SAFE-Transformer, a Structure-Aware and Format-Enhanced Transformer designed for long-document modeling in the emergency safety context. SAFE-Transformer adopts a dual-stream encoding architecture to separately model symbolic section features and heading text, integrates hierarchical depth and format types into positional encodings, and introduces a dynamic gating unit to adaptively fuse headings with paragraph semantics. We evaluate the model on a multi-label accident intelligence classification task using a real-world corpus of 1632 official reports from high-risk industries. Results demonstrate that SAFE-Transformer effectively captures hierarchical semantic structure and outperforms strong long-text baselines. Further analysis reveals an inverted U-shaped performance trend across varying report lengths and highlights the role of attention sparsity and label distribution in long-text modeling. This work offers a practical solution for structurally complex safety documents and provides methodological insights for downstream applications in safety supervision and risk analysis.
Keywords: accident report modeling; structure-aware encoding; hierarchical sparse attention; multi-label classification; semantic fusion; emergency safety intelligence accident report modeling; structure-aware encoding; hierarchical sparse attention; multi-label classification; semantic fusion; emergency safety intelligence

Share and Cite

MDPI and ACS Style

Zeng, W.; Tang, W.; Yuan, D.; Zhang, H.; Duan, P.; Hu, S. Structure-Aware and Format-Enhanced Transformer for Accident Report Modeling. Appl. Sci. 2025, 15, 7928. https://doi.org/10.3390/app15147928

AMA Style

Zeng W, Tang W, Yuan D, Zhang H, Duan P, Hu S. Structure-Aware and Format-Enhanced Transformer for Accident Report Modeling. Applied Sciences. 2025; 15(14):7928. https://doi.org/10.3390/app15147928

Chicago/Turabian Style

Zeng, Wenhua, Wenhu Tang, Diping Yuan, Hui Zhang, Pinsheng Duan, and Shikun Hu. 2025. "Structure-Aware and Format-Enhanced Transformer for Accident Report Modeling" Applied Sciences 15, no. 14: 7928. https://doi.org/10.3390/app15147928

APA Style

Zeng, W., Tang, W., Yuan, D., Zhang, H., Duan, P., & Hu, S. (2025). Structure-Aware and Format-Enhanced Transformer for Accident Report Modeling. Applied Sciences, 15(14), 7928. https://doi.org/10.3390/app15147928

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop