<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Welthandelsplatz</journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.1145/3591366.3591376</article-id>
      <title-group>
        <article-title>Techniques for EU Accident Report Processing</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Shahrom Sohi</string-name>
          <email>shahrom.sohi@wu.ac.at</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dragomir Balan</string-name>
          <email>dragomir.balan@s.wu.ac.at</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amin Anjomshoaa</string-name>
          <email>amin.anjomshoaa@wu.ac.at</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Axel Polleres</string-name>
          <email>axel.polleres@wu.ac.at</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Workshop</string-name>
        </contrib>
        <contrib contrib-type="editor">
          <string-name>Large Language Models, Railway Accident Reports, Information Extraction, Name Entity Recognitions, Accidents</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Vienna University of Economics and Business, Institute of Data</institution>
          ,
          <addr-line>Process and Knowledge Management</addr-line>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2016</year>
      </pub-date>
      <volume>1</volume>
      <issue>1020</issue>
      <fpage>288</fpage>
      <lpage>297</lpage>
      <abstract>
        <p>This paper investigates the application of large language models (LLMs) to extract structured information from unstructured European railway accident reports. A corpus of 354 multilingual reports from Austria, Belgium, Ireland, and Poland was processed, with model performance evaluated through accuracy and completeness metrics. To enhance extraction quality, it has developed a Retrieval-Augmented Generation (RAG) pipeline and integrated it with a Neo4j graph database for knowledge representation and interactive visualisation. The EU Rail Accident Vocabulary was incorporated to standardise terminology and improve LLM outputs, using two leading models-GPT-4o-mini and Gemini 2.5 Pro. Results demonstrate that RAG-enabled LLMs significantly improve information extraction eficiency and accuracy, while supporting harmonised rail safety knowledge across European contexts. These findings underscore the potential of combining LLMs, domain ontologies, and graph-based representations to advance cross-border safety data integration and decision-making in the European railway sector.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Drawing lessons from past railway accidents is essential to improve operational safety [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], understand
the dynamics of accident development, and build knowledge to support prevention, resilience, and
awareness across railway systems[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. Accident reports ofer valuable information, but much of the
knowledge they contain remains locked in unstructured text [
        <xref ref-type="bibr" rid="ref1 ref2 ref3">1, 2, 3</xref>
        ].
      </p>
      <p>
        The extraction of knowledge from railway accident reports is a broad research area. Techniques
range from topological and causal analysis to natural language processing (NLP)[
        <xref ref-type="bibr" rid="ref1 ref4">1, 4</xref>
        ], ontology-based
knowledge graphs[
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], and text mining[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Each approach seeks to convert raw textual data into
structured knowledge that can support engineering, operational, and policy-level improvements in rail
safety.
      </p>
      <p>This paper, to the best of the authors’ knowledge, constitutes the first attempt to investigate the
use LLM technologies for extracting unstructured information from EU-level railway accident reports.
The study showcases how entity extraction enables the creation of accident graphs derived from
LLMgenerated data, with outcomes benchmarked against manually entered metadata. The results support
improved knowledge representation of European railway accidents and ofer an assessment of the
opportunities and constraints of LLMs in the harmonisation of EU railway safety knowledge.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Background</title>
      <p>The 2023 Eurostat annual safety report provides a comprehensive overview of railway safety trends
in the European Union. Despite a slight increase in 2022, the overall number of significant railway</p>
      <p>CEUR</p>
      <p>
        ceur-ws.org
accidents has decreased by 29.7% since 2010 — from 2,227 in 2010 to 1,565 in 2023. In particular, more
than half of the fatalities in 2023 involved unauthorized persons on the tracks (58.4%), while a further
26.6% occurred at level crossings[
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <p>Within the railway sector, the European Union Agency for Railways (ERA) works closely with
National Investigation Bodies (NIBs) across member states[7]. NIBs are mandated to investigate serious
accidents and, at their own discretion, other accidents and incidents[8] in order to determine the
immediate causes of an accident and uncover root causes.</p>
      <p>Traditionally, accident investigation methods have varied between NIBs. However, with the growth
of cross-border rail trafic, the need for a harmonised approach has become increasingly important.
ERA supports NIBs by developing guidance on common investigation methodologies, facilitating
platforms for sharing best practices, and ofering tailor-made services such as investigator training and
assessments of investigation practices [7].</p>
      <p>In this complex realm of several NIBs it is relevant to maintain a harmonised view of incidents
and to approach safety holistically within the Single European Transport Area. A consistent,
crossborder perspective allows stakeholders to identify systemic risks, monitor emerging safety trends,
and coordinate preventive measures. Semantic technologies are central to this process, enabling the
integration of diverse data sources ranging from structured databases to unstructured accident narratives
into a coherent, machine-readable format [9]. By applying standardised ontologies and entity linking,
these technologies ensure a uniform representation of safety information, enhance interoperability
between national systems, and support advanced analytics for informed decision-making.
2.1. Knowledge extraction from accident reports
Natural Language Processing and Text Mining techniques are used for extracting structured data from
unstructured accident reports. These technologies enable automated coding of reports, classification,
and analysis of narrative content, thereby enhancing the understanding of complex accident scenarios.</p>
      <p>
        The work of Christophe Pimm demonstrates the use of NLP to systematically code the Air France
accident report. The study showcases how automated information extraction can support human
experts by facilitating the labelling and analysis of report content, reducing manual workload, and
improving consistency [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>A notable advancement in multilingual NLP applications is found in the work on the Swiss Railway,
which addresses the challenges of processing safety reports written in diferent languages [ 10]. Their
research focuses on railway accident data in a multilingual context, developing an information extraction
technique to construct a trilingual knowledge base centred on passenger-related incidents. This system
supports querying and analysis across English, French, and German, thereby significantly broadening
the accessibility and utility of the extracted insights. Importantly, working in a multilingual setting
introduces complexities far beyond those encountered in English-only processing, including diferences
in syntax, semantics, idiomatic expressions, and domain-specific terminology across languages, which
make accurate extraction and integration more challenging.</p>
      <p>With the advent of LLM, knowledge extraction has entered a transformative phase. Early
experiments with LLMs, even without task-specific fine-tuning, show remarkable performance in identifying
causation patterns, contributing to the faster and more accurate construction of knowledge graphs [11].</p>
      <p>Moreover, LLMs facilitate the acceleration and automation of report processing pipelines. Tests
using single-type LLMs demonstrate that general-purpose models, when applied appropriately, can
outperform many specialized approaches. This not only highlights the technological maturity of LLMs
but also points to their potential in revolutionizing safety data analysis by enabling scalable, multilingual,
and intelligent systems [12].</p>
    </sec>
    <sec id="sec-3">
      <title>3. ERAIL Extraction Method</title>
      <p>The methodology used for extracting structured knowledge from the ERAIL database involves automatic
acquisition, semantic preprocessing, and iterative retrieval-refinement using two LLMs. Accident
investigation reports and their associated metadata were retrieved from the ERA website. The
fulltext reports were segmented into smaller chunks. These chunks were then transformed into vector
embeddings using “all-mpnet-base-v2” model, enabling eficient similarity retrieval within a vector
database.</p>
      <p>Three primary document types were used in the knowledge extraction framework:
• Investigation Reports: full text descriptions of accident cases, including summaries as PDF files.
• EU Rail Vocabulary: a structured glossary of contributing and systemic factors used to classify
events, functioning as a Retrieval-Augmented Generation (RAG).
• Metadata Files: structured fields detailing variables such as accident type, date, location, and
operational context.</p>
      <p>The extraction pipeline is designed to simulate domain-informed reasoning using an LLM within a
retrieval-augmented framework. The pipeline includes Vector store initialization, all chunked report
embeddings are stored in a vector database for similarity search. Initial retrieval for given query entities,
the system retrieves the top three semantically relevant documents (e.g. the top 3 accident cause).
Contextual refinement, the results are passed through a second stage LLM prompt, which incorporates
structured inputs from the accident vocabulary. This guides the model toward accurate classification
using predefined categories and “Top-1” prediction. This iterative approach enables the system to refine
its predictions and improve classification accuracy by learning from structured feedback. After these
steps it has implemented the results into a Neo4j data store to have visual representation of the accidents.
The complete process from raw report ingestion to structured knowledge extraction is illustrated in 1.
The use of embeddings, contextual prompts, and feedback loops ensures adaptability and scalability for
broader transport safety datasets.</p>
    </sec>
    <sec id="sec-4">
      <title>4. Preliminary Results</title>
      <p>In the initial iteration, the task focused on extracting 353 documents reporting serious railway accidents
from the years 2002 to 2024, across four European countries: Austria, Belgium, Ireland, and Poland.
These countries were selected intentionally to create a multilingual environment, enabling evaluation
of LLMs under diverse linguistic conditions.</p>
      <p>The key elements extracted from each accident report are:
• Time of the event
• Date of the event
• Country of occurrence
• Accident type
• Regulatory body
• Contributing factors
• Systemic factors</p>
      <p>Following extraction, a web application was developed to process the PDFs and visualize results and
the results are automatically stored and compared across models using the following evaluation metrics:
• Accuracy: Defined as the degree to which the extracted entities match the oficial ERAIL database
entries. Only exact matches are considered valid, which creates a strict benchmark. For instance,
”Derailment of a train” and ”Derailment of one or more rail vehicles” are treated as distinct.
• Completeness: Evaluates whether all target elements are successfully extracted from each
report, e.g., 7 out of 7 elements.</p>
      <p>The processed data were visualized using Neo4j graph, allowing cross-country visual comparisons of
extracted content. Common contributing factors included communication failures, lack of awareness,
and environmental conditions. Common systemic factors included weaknesses in operational planning,
inadequate safety policies, and poor quality control. The results revealed an average accuracy of 34%
across both GPT and Gemini models. The model scores low due to the strict exact-match requirement in
the evaluation protocol, this number should be interpreted cautiously. For instance, textual variations
or synonymous phrasing lead to mismatches even when the semantic meaning is identical.</p>
      <p>The completeness metric showed an average of 95.5% across models, indicating that nearly all expected
ifelds were successfully extracted. Date extraction had an accuracy of 90%, while time extraction reached
only 43%. When relaxed to a tolerance of two minutes, time accuracy increased to 62.6%, and with five
minutes tolerance, it rose to 68.7%. Lower time accuracy is likely due to the narrative style of reports,
which often include multiple timestamps, making precise identification dificult. Moreover another
reason why the time is accuracy is low is due to lower quality of Manual Metadata. After manual
verification 50 reports contain incomplete metadata information on time of occurrence.</p>
      <p>Contributing factors, and systemic factors yielded lower accuracy scores. This was largely because
these entities are either absent from the ERAIL metadata or described using vocabulary that difers
from the controlled terminology used in the ISS vocabulary. There results show a need to improve the
metadata at EU level in accordance to EU Rail Vocabulary.</p>
      <p>Furthermore, English language reports are more consistent having less mismatch information
extracted. Below the details of mismatch for each country.</p>
      <p>• Austria: 44.5%
• Poland: 23.6%
• Belgium: 19%
• Ireland: 12.9%</p>
      <p>Further analysis indicated that the accident types most prone to mismatches were level crossing
accidents, derailments, and train collisions. These categories are more complex in description and
causality, leading to higher misclassification rates (e.g. the derailment can be a consequence of several
events which are included in the report).This also suggests future adjustments in the EU Rail Vocabulary.</p>
    </sec>
    <sec id="sec-5">
      <title>5. Conclusion and Future Work</title>
      <p>In summary, this preliminary study demonstrates both the promise and the limitations of applying LLMs
for structured information extraction in safety-critical domains such as railway transport. While the
models exhibit strong performance in extracting basic metadata fields (e.g., date, location, country), they
continue to face challenges when identifying more complex causal and systemic structures—especially
across documents with varying formats, languages, and terminologies.</p>
      <p>RAGs enhance information extraction by retrieving the top three most relevant chunks per query
from a vector store, thereby narrowing the scope of outputs. This process reduces both processing costs
and time requirements.</p>
      <p>Limitation are present on certain documents that are PDF formats generated through scanning. While
modern LLMs ofer capabilities for interpreting scanned text, the current pipeline depends on retrieving
text chunks, this process makes image-based PDFs incompatible. Overcoming this constraint will be a
focus of future work.</p>
      <p>Future enhancements will also focus on several areas: first, improving evaluation metrics to better
reflect semantic similarity and partial matches will help provide a more nuanced understanding of
model performance. Second, additional concepts related to accident causation, safety interventions, and
incident resolution will be noted to enrich the metadata. Third focus on consistency of results evaluating
multiple instances with same models. Finally, once these concepts are formalized, a comprehensive
knowledge graph of European railway safety will be developed.</p>
    </sec>
    <sec id="sec-6">
      <title>Acknowledgments</title>
      <p>The contribution of this paper was supported by the Austrian Federal Ministry for Innovation, Mobility
and Infrastructure (BMIMI) under the endowed professorship for “Data-Driven Knowledge Generation:
Climate Action”.</p>
    </sec>
    <sec id="sec-7">
      <title>Declaration on Generative AI</title>
      <p>Beside the core of the paper which is knowledge extraction with LLMs, during the preparation of this
work, the author(s) used also GPT-4 in order to: Grammar and spelling check, and bug corrections.
After using these tool(s)/service(s), the author(s) reviewed and edited the content as needed and take(s)
full responsibility for the publication’s content.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>C.</given-names>
            <surname>Pimm</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Raynal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Tulechki</surname>
          </string-name>
          , E. Hermann, G. Caudy, L. Tanguy,
          <string-name>
            <surname>Natural Language</surname>
          </string-name>
          <article-title>Processing (NLP) tools for the analysis of incident and accident reports</article-title>
          , in: International Conference on
          <article-title>Human-Computer Interaction in Aerospace (HCI-</article-title>
          <string-name>
            <surname>Aero</surname>
            <given-names>)</given-names>
          </string-name>
          ,
          <year>2012</year>
          , Brussels, Belgium.,
          <year>2012</year>
          . URL: https://www.researchgate.net/publication/280751863_Natural_Language_
          <article-title>Processing_NLP_ tools_for_the_analysis_of_incident_and_accident_reports.</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>C.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Yang</surname>
          </string-name>
          ,
          <article-title>Using text mining to establish knowledge graph from accident/incident reports in risk assessment</article-title>
          ,
          <source>Expert Systems with Applications</source>
          <volume>207</volume>
          (
          <year>2022</year>
          )
          <article-title>117991</article-title>
          . URL: https://www. sciencedirect.com/science/article/pii/S0957417422012179. doi:
          <volume>10</volume>
          .1016/j.eswa.
          <year>2022</year>
          .
          <volume>117991</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>C. Y.</given-names>
            <surname>Lam</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Tai</surname>
          </string-name>
          ,
          <article-title>Network topological approach to modeling accident causations and characteristics: Analysis of railway incidents in Japan</article-title>
          ,
          <source>Reliability Engineering &amp; System Safety</source>
          <volume>193</volume>
          (
          <year>2020</year>
          )
          <article-title>106626</article-title>
          . URL: https://www.sciencedirect.com/science/article/pii/S0951832019304247. doi:
          <volume>10</volume>
          .1016/j.ress.
          <year>2019</year>
          .
          <volume>106626</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>W.-T.</given-names>
            <surname>Hong</surname>
          </string-name>
          , G. Clifton,
          <string-name>
            <given-names>J. D.</given-names>
            <surname>Nelson</surname>
          </string-name>
          ,
          <article-title>Railway accident causation analysis: Current approaches, challenges and potential solutions</article-title>
          ,
          <source>Accident Analysis &amp; Prevention</source>
          <volume>186</volume>
          (
          <year>2023</year>
          )
          <article-title>107049</article-title>
          . URL: https://www.sciencedirect.com/science/article/pii/S0001457523000969. doi:
          <volume>10</volume>
          .1016/j.aap.
          <year>2023</year>
          .
          <volume>107049</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>F.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Fleyeh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Wang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lu</surname>
          </string-name>
          ,
          <article-title>Construction site accident analysis using text mining and natural language processing techniques, Automation in Construction (</article-title>
          <year>2019</year>
          ). doi:
          <volume>10</volume>
          .1016/j. autcon.
          <year>2018</year>
          .
          <volume>12</volume>
          .016.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <surname>EUROSTAT</surname>
          </string-name>
          , Railway safety statistics in
          <source>the EU</source>
          ,
          <year>2023</year>
          . URL: https://ec.europa.eu/eurostat/ statistics-explained/index.php?title=Railway_safety_statistics_in_the_EU.
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>