一种用于检测事故叙述中个人可识别信息的代理工作流
An Agentic Workflow for Detecting Personally Identifiable Information in Crash Narratives
AI总结:
本文提出一种本地部署的代理工作流,利用大语言模型检测事故叙述中的个人可识别信息,通过混合提取器和验证器提升检测精度与召回率,实现隐私保护的可扩展数据处理。
摘要:
事故报告中的事故叙述为交通安全管理分析提供了关键上下文信息。然而,其广泛应用受到个人可识别信息(PII)的阻碍,包括姓名、家庭地址和车牌号。由于PII在事故叙述中稀疏且不一致,手动检测不可扩展,现有基于规则的方法难以捕捉上下文相关的PII。本研究开发并评估了一种本地部署的代理工作流,利用大语言模型(LLMs)进行PII检测。工作流包含混合提取器和验证器。混合提取器将结构化PII(如电话号码和电子邮件地址)路由到基于规则的模型(即Presidio),并将上下文相关的PII(如姓名、家庭地址和 alphanumeric 标识符)路由到领域适应的微调LLM。为解决挑战性类别的歧义,工作流结合了集合LLM提取和代理验证步骤,通过基于证据的推理过滤假检测。在真实世界事故数据集上评估,代理工作流实现了高精度(0.82)、高召回率(0.94)、F1值(0.87)和高准确率(0.96),优于多种基线方法。此外,消融结果表明,集合LLM提取和验证器在家庭地址和alphanumeric标识符的检测中有所提升。该工作流本地运行,支持隐私敏感的操作环境,其中外部API受限。本工作为可扩展、隐私保护的事故数据处理提供了实用且稳健的路径,使更广泛的研究和安全干预成为可能,同时保护个人隐私。
英文摘要:
Crash narratives in crash reports provide crucial contextual information for traffic safety analysis. Yet, their broader use is hindered by the presence of personally identifiable information (PII), including names, home addresses, and license plate numbers. Because PII appears sparsely and inconsistently in crash narratives, manual detection is not scalable, and existing rule-based approaches often fail to capture context-dependent PII. This study develops and evaluates a locally deployable, agentic workflow for PII detection in crash narratives by leveraging large language models (LLMs). The workflow contains a Hybrid Extractor and a Verifier. The Hybrid Extractor routes structured PII (e.g., phone numbers and email addresses) to a rule-based model (i.e., Presidio) and context-dependent PII (e.g., names, home addresses, and alphanumeric identifiers) to a domain-adapted, fine-tuned LLM. To address ambiguity in challenging categories, the workflow incorporates ensemble LLM extraction and an agentic verification step that filters false detections through evidence-based reasoning. Evaluated on a real-world crash dataset, the agentic workflow achieves strong performance with a precision of 0.82, a recall of 0.94, an F1 of 0.87, and an accuracy of 0.96, outperforming multiple baseline methods. Moreover, the ablation results suggest that ensemble LLM extraction and Verifier offer improved detection for home addresses and alphanumeric identifiers. The workflow runs locally, supporting privacy-sensitive operational settings where external APIs are restricted. This work offers a practical and robust path for scalable, privacy-preserving crash data processing, enabling broader research and safety interventions while safeguarding individual privacy.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。