科研速览 · Science Skim继续刷下去 · Keep skimming →
◆ Journal of Geovisualization and Spatial Analysis2026-04-27· Computer science

An Automated Framework for Natural Language-Based Spatial Query Using Large Language Models

Ensiyeh Javaherian Pour, Yiqun Chen, Alice Kesminas, Abbas Rajabifard, Mazdak Ghasemi Tootkaboni

原始摘要(英文原文)· Original abstract
Abstract Automating spatial analysis remains challenging due to its dependence on predefined workflows, static schemas, and expert-driven configurations, which limit adaptability across diverse datasets and analytical contexts. Recent advances in large language models (LLMs) provide new opportunities to address these challenges by enabling systems to interpret human intent, reason over structured data, and generate executable analytical workflows. This study presents an automated Spatial Query and Analysis (SQA) framework that leverages LLMs to translate natural language queries into validated spatial operations. The framework interprets user prompts and classifies them as either general or spatial queries. General queries are answered directly by a language model, whereas spatial queries are processed through a multi-agent reasoning pipeline that performs semantic interpretation, spatial analysis, peer-review validation, and code execution checks to ensure accuracy and consistency. In addition to query-based interaction, users can upload new spatial datasets that are automatically validated and integrated into the system through dynamic knowledge augmentation. Evaluation using a large metropolitan university campus dataset shows that SQA framework achieves improved spatial reasoning performance compared with single-agent baselines, including configurations with metadata access and error-correction mechanisms. The framework also incorporates a two-step error recovery process that successfully resolves common failure types, including table or schema mismatches, coordinate reference system (CRS) misuse, and column or spatial reasoning errors. SQA framework demonstrates consistent accuracy across single-table, multi-table, and 3D queries, producing integrated outputs in map, chart, and tabular formats.
读原文 · Read the paper ↗

AI 追问PRO

登录后使用 AI 追问

讨论区

登录后参与讨论

相关论文 · Related

An Automated Framework for Natural Language-Based Spatial Query Using Large Language Models — 科研速览 Science Skim