arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.35054cs.CL
收藏

从问题到查询再到洞察:一种基于模式的智能体工作流用于自然语言碰撞数据分析

From Questions to Queries to Insights: A Schema-Grounded Agentic Workflow for Natural-Language Crash Data Analysis

University of Wisconsin–Madison(威斯康星大学麦迪逊分校)

Jingwen Zhu, Keshu Wu, Steven T. Parker, Bin Ran, David A. Noyce

AI总结:

本研究提出CrashDB-QA智能体工作流,结合领域基础与验证机制,在440万条碰撞记录的基准测试中,提升了自然语言碰撞数据分析的准确性,7B代码模型实现最优性能平衡。

摘要:

交通管理机构维护着庞大的碰撞数据库,以确定安全优先级、评估对策并指导资源分配。要让这些数据对从业者可用,需要灵活的方式将分析问题转化为可靠结果。现有仪表盘支持预定义分析,而额外的请求往往依赖于了解数据库查询、编码字段和机构惯例的专家。本研究提出了CrashDB-QA,一种完全本地化、基于模式的智能体工作流,可实现碰撞数据库的自然语言分析。专门组件用于解释问题、生成并验证只读SQL、执行查询以及解释结果。共享知识库将查询构建基于机构的数据字典和安全分析惯例,而记录的中间输出支持检查和审计。可选扩展CrashDB-QA+会检查问题、查询和执行结果之间的一致性,并提供迭代修复的证据。我们使用威斯康星州440万条碰撞记录的冻结快照,以及涵盖10个分析类别和9个本地开放权重模型的300个问题的新基准,对该工作流进行评估。领域基础显著提高了查询准确性,而专门用于代码的7B模型在测试模型中提供了最佳的准确性-延迟平衡。组合分析仍然比常规检索更困难,尤其是组或时间段之间的比较。当Judge使用权威字段定义且Refiner接收执行证据时,验证可提高性能,而仅额外检查则无一致益处。这些发现证明了本地部署、基于领域的工作流在扩大碰撞分析访问权限方面的潜力,并确定了可靠使用所需的推理和验证能力。

英文摘要:

Transportation agencies maintain extensive crash databases to identify safety priorities, evaluate countermeasures, and guide resource allocation. Making these data accessible to practitioners requires flexible ways to translate analytical questions into reliable results. Existing dashboards support predefined analyses, while additional requests often depend on specialists who understand database queries, coded fields, and agency conventions. This study presents CrashDB-QA, a fully local, schema-grounded agentic workflow that enables natural-language analysis of crash databases. Specialized components interpret questions, generate and validate read-only SQL, execute queries, and explain the results. A shared knowledge base grounds query construction in the agency's data dictionary and safety-analysis conventions, while recorded intermediate outputs support inspection and auditing. An optional extension, CrashDB-QA+, checks the alignment among the question, query, and execution result and supplies evidence for iterative repair. We evaluate the workflow on a frozen snapshot of 4.4 million Wisconsin crash records using a new benchmark of 300 questions across ten analytical categories and nine local open-weight models. Domain grounding substantially improves query accuracy, and a code-specialized 7B model provides the best accuracy-latency balance among the tested models. Compositional analyses remain more difficult than routine retrieval, particularly comparisons between groups or periods. Verification improves performance when the Judge uses authoritative field definitions and the Refiner receives execution evidence, whereas additional checking alone offers no consistent benefit. These findings demonstrate the potential of locally deployed, domain-grounded workflows to broaden access to crash analysis and identify the reasoning and verification capabilities needed for reliable use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑