Back to Wiki

[25] PIDQA—Question Answering on Piping and Instrumentation Diagrams

EBSCO – Screened Emerging Applications (2024–2026) 2025

Paper Description extracted from PDF · abstract · 145 words

This paper introduces a novel framework enabling natural language question answering on Piping and Instrumentation Diagrams (P&IDs), addressing a critical gap between engineering design documentation and intuitive information retrieval. Our approach transforms static P&IDs into queryable knowledge bases through a three-stage pipeline. First, we recognize entities in a P&ID image and organize their relationships to form a base entity graph. Second, this entity graph is converted into a Labeled Property Graph (LPG), enriched with semantic attributes for nodes and edges. Third, a Large Language Model (LLM)-based information retrieval system translates a user query into a graph query language (Cypher) and retrieves the answer by executing it on LPG. For our experiments, we augmented a publicly available P&ID image dataset with our novel PIDQA dataset, which comprises 64,000 question–answer pairs spanning four categories: (I) simple counting, (II) spatial counting, (III) spatial connections, and (IV) value-based questions.

AuthorsGupta, Mohit and Wei, Chialing and Czerniawski, Thomas and Eiris, Ricardo
Year2025
VenueMachine Learning & Knowledge Extraction
DOI10.3390/make7020039
Source DatabaseEBSCO (Applied Science & Technology)
Bridge-to-GNNCategory Borderline
GNN ArchitectureKnowledge Graph Embedding (heuristic — verify)
Graph EncodingNot yet extracted from PDF
AEC TaskNot yet extracted from PDF
CohortMature Applications (2024–2026)

Extracted Methodology heuristic — verify before citing

Implementation FrameworkNetworkX, Revit / Dynamo, Neo4j (heuristic — verify)
Primary MetricAccuracy (heuristic — verify)
Primary Value43.5% (heuristic — verify)
Key Findingframework for making P&IDs queryable with natural language (heuristic — verify)
Quality Assessment2/6 · rigor: Low ·
Code/Data: ✓Baseline: ✓ (heuristic — verify)

Detected Technical Stack auto-detected from PDF · regex catalogue match

GNN architectures detectedKnowledge Graph Embedding (TransE/RotatE/DistMult)
Frameworks / librariesNetworkX · Revit / Dynamo · AutoCAD · Neo4j / Cypher · OpenAI / GPT API
Code repositories found in texthttps://github.com/mgupta70/PIDQA · https://github.com/mgupta7 · https://github.com/facebookresearch/
Reported metrics + valuesF1 Score: 0.998
Quality (heuristic, 6-flag)2/6 · rigor: Low
Code/Data: ✓Benchmark: —Baseline: ✓CV/Split: —Ablation: —Reproducible: —

Lineage Families

llm-kg-hybrid

Enabled By / Precursors

[18]

Extended By

None in corpus

Infrastructure Dependencies

NetworkX (detected from PDF) Revit / Dynamo (detected from PDF) AutoCAD (detected from PDF) Neo4j / Cypher (detected from PDF) OpenAI / GPT API (detected from PDF)

Research Frontier Tags

frontier-2025+

Part of the GML/GNN in AEC Systematic Review (PRISMA 2020) — 112 papers, 2020–2026