Development of a Machine Learning and Large Language Model-Based Classification Tool for Automated Analysis of Transportation Public Comments
-
2026-03-30
-
Details
-
Creators:
-
Corporate Creators:
-
Corporate Contributors:
-
Subject/TRT Terms:
-
Publication/ Report Number:
-
Resource Type:
-
Geographical Coverage:
-
Edition:Final Report
-
Corporate Publisher:
-
Abstract:Transportation agencies receive large volumes of free-form public comments describing infrastructure conditions, safety concerns, and service issues. Processing and classifying these comments manually is time-consuming, inconsistent, and difficult to scale, limiting their usefulness for operational decision-making. This study presents a machine learning and Large Language Model (LLM)-based framework for automated classification of transportation public comments across a three-level hierarchical taxonomy: Category, Subcategory, and Final Decision (Dismiss, Refer, Potential Project). Comments are encoded using MPNet sentence embeddings and indexed in a train-only vector database. Three classification strategies are evaluated: (1) an embedding-based k-nearest neighbors (kNN) baseline using cosine similarity, (2) a zero-shot/few-shot LLM with schema-constrained outputs, and (3) a retrieval-augmented LLM that incorporates semantically similar historical examples and concise label guidance during inference. Results indicate that while high-level categories are generally well separated, many public comments contain overlapping or multi-modal semantic content that spans multiple infrastructure types. To address this ambiguity, the retrieval-augmented LLM is evaluated using ordered predictions, allowing multiple plausible labels to be returned. This approach improves overall classification performance and provides richer context for agency review. Overall, the proposed framework demonstrates the potential of retrieval-augmented LLMs to support scalable, transparent, and decision-oriented processing of public transportation comments, enabling faster and higher-quality agency workflows.
-
Format:
-
Funding:
-
Collection(s):
-
Main Document Checksum:urn:sha-512:26a991bd27adde5506b52782d5b6cfa737bb0e1df3b1058a718bc6440492782ad504df650960cbe4617fe2a6d2e8bddc6aee64a950c7f5b0c25e2bdfd2ee614b
-
Download URL:
-
File Type: