Abstract
Local railway committees need timely situational awareness after highway–rail grade crossing incidents, yet official Federal Railroad Administration (FRA) investigations can take days to weeks. We present a demo system that populates Highway–Rail Grade Crossing Incident Data (Form 57) from news in real time. Our approach addresses two core challenges: the form is visually irregular and semantically dense, and news is noisy. To solve these problems, we design a pipeline that first converts Form 57 into a JSON schema using a vision language model with sample aggregation, and then performs grouped question answering following the intent of the form layout to reduce ambiguity. In addition, we build an evaluation dataset by aligning scraped news articles with official FRA records and annotating retrievable information. We then assess our system against various alternatives in terms of information retrieval accuracy and coverage.
Introduction
When a highway-rail grade crossing incident occurs, local decision-makers require immediate situational awareness to manage safety and infrastructure. While the Federal Railroad Administration (FRA) eventually produces a detailed investigation report (Form 57), the latency of this official process—often taking days or weeks—leaves a critical information gap. During this period, local news is the primary source of data. However, extracting structured data from news to populate Form 57 is difficult because news is noisy and the form itself is visually complex.
Unlike grid-based invoices, Form 57 is visually irregular, mixing checkboxes, text fields, and units of measure in tight, overlapping spaces. Fields are often ambiguous without visual context; for instance, a "Direction" field might refer to the train or the highway vehicle depending on its placement. Traditional OCR and standard form parsers, such as AWS Textract, often fail to capture these nuances.
Methodology
To bridge the gap between unstructured news and structured reports, we propose a two-step pipeline that integrates Vision-Language Models (VLMs) and Large Language Models (LLMs).
1. Form Interpretation via VLMs
We use VLMs to transcribe the blank Form 57 into a machine-readable JSON schema. To ensure high fidelity, we implement:
- Sample Aggregation: The VLM generates multiple independent transcriptions which are then validated and merged to prevent hallucinations and missed fields.
- Human-Centric Schema: The schema focuses on subfields—the actual physical spaces for input—ensuring that checkboxes and adjacent text lines are captured as distinct entities rather than high-level abstractions.
2. Information Retrieval via Grouped QA
To populate the schema from news articles, we employ an LLM (Phi-4) using Grouped Question Answering. Instead of processing fields in isolation or overwhelming the model with all 66 fields at once, we categorize fields into logical groups based on visual layout (e.g., "Highway User Involved"). This preserves the semantic context necessary for disambiguation.
Evaluation and Results
We constructed a novel dataset by scraping 1,707 news articles related to California rail accidents and aligning them with official FRA records, resulting in 266 matched pairs. A subset of 50 pairs was manually annotated to establish a ground truth for retrievable information.
Our results demonstrate that the proposed VLM strategies significantly outperform baselines. In the parsing stage, our approach reduced errors from 25 (using AWS Textract) to just 1 (using Gemini 2.5 Flash). In the retrieval stage, the Grouped QA approach achieved an accuracy of 0.67 and a coverage of 0.96, significantly outperforming a baseline approach that used simplified field names without visual/semantic grouping (0.52 accuracy).
Discussion and Conclusion
A key insight from this work is that context is paramount for complex government forms. Grouping fields by visual layout is essential for resolving semantic ambiguity. However, challenges remain: breaking news often provides tentative numerical estimates (e.g., speed, time), leading to lower accuracy in digit-based fields compared to categorical ones.
Future work will explore incorporating additional real-time data sources to improve coverage of underreported minor incidents and scaling the system beyond California. The VLM-driven parsing technique also holds promise for other unstructured government documents like Form 71 and 55a.
Summary updated