HeriKGQA improves querying cultural heritage sensor data with knowledge graphs
HeriKGQA: Grounded Knowledge-Graph Question Answering over Cultural Heritage Sensor Data
Computation and LanguageArtificial IntelligenceDatabasesInformation Retrieval
Summary
Many cultural heritage sites use sensors to collect data, but understanding this data usually needs special database skills. The authors introduce HeriKGQA, a system that helps people ask natural questions about sensor data without needing those skills. It uses a knowledge graph to keep track of sensors, locations, and times, allowing accurate answers by combining language models with structured queries. This approach avoids mistakes common when language models work on raw data alone and works much faster and better on real heritage data.
What this means in practice
- •For heritage site managers: Allow staff to query sensor data with natural language questions, improving monitoring accuracy and reducing database expertise needed.
- •For environmental monitoring teams: Use a knowledge-graph-based question answering method to interpret complex sensor data with temporal and spatial context for better anomaly detection.
Authors
Lingxiao Kong, Vasileios Arampatzakis, Vasileios Sevetlidis, George Pavlidis, Zeyd Boukhers
Abstract
Cultural heritage sites are increasingly monitored by sensor networks, but querying their data requires database expertise. Large Language Models (LLMs) offer a natural-language interface, yet over raw sensor records they lose track of which sensor, site, and time each value belongs to, and silently miscompute. We present HeriKGQA, a knowledge-graph question-answering method that confines the LLM to interpreting questions and phrasing answers, leaving computation to SPARQL and deterministic code. Questions are parsed into intents constrained by a heritage ontology aligning W3C SOSA/SSN with CIDOC-CRM, compiled into SPARQL, and answered from query results and temporal, spatial, and anomaly facts derived by a grounding layer, with error correction guarding each LLM step. On 500 questions over real data from five heritage sites, HeriKGQA reaches 99.0% accuracy, 18.2 points above the strongest of three baselines using the same LLM and receiving the same anomaly rules and answer conventions, with comparable answer quality while running almost four times faster. Without grounding, accuracy drops by 12.2 points and on anomaly questions from 99% to 66%. We report lessons from development and live deployment.