AI-Powered Traffic Law Navigator and Rights Assistant
by Dr. Ronald Fernandez, Jahniel Deliso, Kleid Samuel L. Quierrez, Patrick James Asumbrado, Vivien Agustin
Published: June 17, 2026 • DOI: 10.51244/IJRSI.2026.1306000004
Abstract
Navigating traffic laws and administrative legal processes in the Philippines presents a significant challenge for ordinary motorists, who frequently lack access to legal counsel and struggle with complex technical legal terms. This information gap often leads to accidental violations, unresolved roadside disputes, and an inability to contest unjust citations. To address these challenges, this study developed the AI-Powered Traffic Law Navigator and Rights Assistant, a conversational mobile application structured around the Input-Process-Output (IPO) framework following a Prototype Software Development Life Cycle (SDLC) model. Built using the Flutter SDK and Dart programming language, the system integrates a structured MySQL relational database of Philippine traffic codes, Land Transportation Office (LTO) regulations, and Metropolitan Manila Development Authority (MMDA) guidelines. The platform employs a supervised machine learning text classification model (utilizing tokenization, normalization, and TF-IDF vectorization paired with classification algorithms) to automatically route multilingual (English, Filipino, Taglish) user descriptions to appropriate violation categories and legal data. Additionally, a generative AI presentation layer utilizes GPT API prompting templates to simplify technical legal jargon and auto-generate structured legal paperwork like explanation letters and affidavits. Real-time location-based features implement the Haversine formula on device GPS coordinates to map and calculate proximity to the nearest LTO branches, traffic units, or barangay halls within a pilot dataset covering the National Capital Region (NCR) and Luzon. Functional evaluations demonstrate that the system effectively maps natural language inputs to correct legal penalties, lowers procedural barriers via rule-based document generation templates, and improves localized civic navigation. Future recommendations emphasize migrating to a web-synchronized framework, integrating Retrieval-Augmented Generation (RAG) to eliminate AI hallucinations, scaling geographic and dialect data across the Visayas and Mindanao regions, and establishing official government API and human-in-the-loop validation pipelines.