Natural Language Interface for Healthcare Data Analytics using LLMs

aachen_uniklinik_/_aurea_software · Healthcare · year n/a · source Agentic: no · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Healthcare data analytics

Aachen University Clinic needed ICU data analytics accessible to physicians and department heads without requiring SQL expertise.

Constraints:

Architecture

NLQ built a hybrid system using vector databases with metadata embeddings, fine-tuned LLMs for intent detection and slot filling, and structured query generation over ICU databases.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  natural-language-interface["Natural Language Interface"]
  metadata-vector-database["Metadata Vector Database"]
  intent-and-slot-llms["Intent and Slot LLMs"]
  sql-generator["SQL Generator"]
  icu-databases["ICU Databases"]
  visualization-and-analytics-output["Visualization and Analytics Output"]
  natural-language-interface --> metadata-vector-database
  natural-language-interface --> intent-and-slot-llms
  metadata-vector-database --> intent-and-slot-llms
  intent-and-slot-llms --> sql-generator
  sql-generator --> icu-databases
  icu-databases --> visualization-and-analytics-output
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Natural Language Interface Accepts healthcare analytics questions from non-technical staff. Metadata Vector Database, Intent and Slot LLMs
Metadata Vector Database Provides relevant schema and metadata context. Intent and Slot LLMs
Intent and Slot LLMs Detect query intent and fill structured parameters. SQL Generator
SQL Generator Creates structured queries against ICU databases. ICU Databases
ICU Databases Store patient data and analytics inputs. Visualization and Analytics Output
Visualization and Analytics Output Returns query results, visualizations, and complication calculations. —

Data flow

Clinical users ask natural-language questions, the system retrieves relevant metadata context, fine-tuned LLM components detect intent and slots, structured query generation creates SQL, and the interface returns analytics or visualizations.

“The system uses a hybrid architecture combining vector databases with metadata embeddings, fine-tuned large language models for intent detection and slot filling, and structured query generation”summary, stated
“generate visualizations, and calculate downstream complications without requiring SQL expertise”summary, stated

Why this architecture

The hybrid architecture constrains natural-language analytics with metadata retrieval and structured slots so clinicians can query ICU data without writing SQL.

“make Intensive Care Unit databases accessible to non-technical healthcare staff.”summary, stated
“transform natural language questions into SQL queries.”summary, stated

Models used: Fine-tuned large language models · Vector database metadata embeddings

Alternatives considered (roads not taken)

Require SQL expertise from healthcare staff

Rejected because: Physicians and department heads needed direct analytics access.

“without requiring SQL expertise, ultimately supporting faster clinical decision-making.”summary, stated

Use unconstrained text-to-SQL alone

Rejected because: The system needed intent detection, slot filling, and metadata retrieval to ground query generation.

“fine-tuned large language models for intent detection and slot filling, and structured query generation”summary, stated

Patterns

query-rewriting (query-generation)

The system rewrites natural-language healthcare questions into SQL queries.

“transform natural language questions into SQL queries.”summary, stated

rag-retrieval (retrieval)

Metadata embeddings and vector databases provide schema context for query generation.

“vector databases with metadata embeddings”summary, stated

fine-tuning-adaptation (model-adaptation)

Fine-tuned LLMs perform domain-specific intent detection and slot filling.

“fine-tuned large language models for intent detection and slot filling”summary, stated

Tradeoffs

Use a hybrid architecture

Chose Vector metadata, fine-tuned LLMs, and structured SQL generation over A generic natural-language chatbot over healthcare data.

Rationale: The healthcare analytics task needed constrained schema grounding and slot filling.

“The system uses a hybrid architecture combining vector databases with metadata embeddings, fine-tuned large language models for intent detection and slot filling”summary, stated

Expose analytics to non-technical staff

Chose Natural-language interface over Analyst- or SQL-mediated access.

Rationale: The system aimed to accelerate clinical decision-making for physicians and department heads.

“This enables physicians and department heads to quickly retrieve patient data analytics”summary, stated

Gotchas (what bit them)

Clinical analytics questions need structured parameter extraction.

Root cause: ICU analytics questions include intents, slots, and database-specific constraints.

Resolution: Use fine-tuned LLMs for intent detection and slot filling before SQL generation.

“fine-tuned large language models for intent detection and slot filling”summary, stated

Healthcare users need results in decision-ready forms.

Root cause: Physicians and department heads often need visualizations and complication calculations, not just rows.

Resolution: Return visualizations and downstream complication calculations through the interface.

“generate visualizations, and calculate downstream complications”summary, stated

Evaluation

The summary describes enabled workflows but does not provide quantitative accuracy, latency, or adoption metrics.

Metrics: No quantitative metrics reported

“ultimately supporting faster clinical decision-making.”summary, stated

Outcomes

No concrete scale numbers are reported in the summary.

“This enables physicians and department heads to quickly retrieve patient data analytics, generate visualizations, and calculate downstream complications without requiring SQL expertise”summary, stated