Scientific Intent Translation System for Healthcare Analytics Using Amazon Bedrock

aetion · Healthcare · 2025 · 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 analytics scientific-intent translation

Aetion needed to let healthcare and life-science users express scientific intent in natural language and receive valid AEP Measures instructions without requiring data science expertise, support staff, or lengthy specialized training.

Constraints:

Architecture

Aetion built Measures Assistant as a Kubernetes-on-AWS microservice behind a REST API. Substantiate sends user questions and prior message history to the service, which fills a prompt template, calls Amazon Bedrock to invoke Claude 3 Haiku, and augments responses with a local AEP Measures knowledge base, dynamic semantically similar Q&A examples, static instructions, rules, and SME-maintained feedback loops.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  A["Assistant UI"] --> B["Substantiate request layer"]
  B --> C["Measures Assistant microservice"]
  C --> D["Prompt template"]
  D --> G["Local AEP Measures knowledge base"]
  C --> E["Amazon Bedrock API"]
  E --> F["Claude 3 Haiku"]
  G --> H["Mixedbread embedding model"]
  I["Subject matter experts"] --> G
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Assistant UI User-facing entry point for natural-language scientific questions. Substantiate request layer
Substantiate request layer Initiates requests containing the question and optional prior message history. Assistant UI, Measures Assistant microservice
Measures Assistant microservice Kubernetes-on-AWS service that builds prompts, calls Bedrock, and returns Measure instructions. Substantiate request layer, Prompt template, Amazon Bedrock API, Local AEP Measures knowledge base
Prompt template Combines task definition, documentation extracts, relevant Q&A examples, and behavioral rules. Measures Assistant microservice, Local AEP Measures knowledge base
Amazon Bedrock API Managed model API used to invoke Claude 3 Haiku. Measures Assistant microservice, Claude 3 Haiku
Claude 3 Haiku Foundation model selected for runtime and cost efficiency. Amazon Bedrock API
Local AEP Measures knowledge base SME-maintained documentation and solved Q&A pool used for guardrails and dynamic examples. Measures Assistant microservice, Prompt template, Mixedbread embedding model, Subject matter experts
Mixedbread embedding model Fine-tuned sentence transformer that embeds questions and Q&A entries for semantic selection. Local AEP Measures knowledge base
Subject matter experts Continuously test the assistant and maintain the Q&A pool used to refine it. Local AEP Measures knowledge base

Data flow

A user asks a scientific question through the assistant UI; Substantiate sends the question and optional history over TLS to the Measures Assistant microservice; the service inserts the question into a prompt template with AEP documentation, static rules, and dynamic semantically similar examples from a local knowledge base; Amazon Bedrock invokes Claude 3 Haiku; the assistant returns valid Measure instructions for Aetion's analytics workflow.

3 supporting quotes
“When a user asks a question through the assistant UI, Substantiate initiates a request containing the question and previous history of messages, if available.”article, stated
“Measures Assistant incorporates the question into a prompt template and calls the Amazon Bedrock API to invoke Anthropic’s Claude 3 Haiku.”article, stated
“Questions and answers are dynamically selected from a local knowledge base based on semantic proximity to the user question.”article, stated

Why this architecture

Aetion chose Bedrock and Claude 3 Haiku for managed model access, security posture, runtime, and cost; wrapped the model with a local AEP knowledge base and rules so outputs stayed valid; and used human-maintained examples to keep the assistant aligned with expert scientific workflows.

3 supporting quotes
“Aetion chose to use Amazon Bedrock for working with large language models (LLMs) due to its vast model selection from multiple providers, security posture, extensibility, and ease of use.”article, stated
“Anthropic’s Claude 3 Haiku LLM was found to be more efficient in runtime and cost than available alternatives.”article, stated
“These guardrails make sure the service returns valid instructions to the user, and compensates for logical reasoning errors that the core model might exhibit.”article, stated

Models used: Anthropic Claude 3 Haiku · Mixedbread mxbai-embed-large-v1 Sentence Transformer

Scale

Alternatives considered (roads not taken)

Use a model without a local AEP knowledge base

Rejected because: Aetion needed valid Measure instructions and compensation for logical reasoning errors.

“Measures Assistant maintains a local knowledge base about AEP Measures from scientific experts at Aetion and incorporates this information into its responses as guardrails.”article, stated

Use only static prompt instructions

Rejected because: Dynamic semantically similar Q&A examples improved answer quality for the user's specific question.

“Dynamic – Questions and answers are dynamically selected from a local knowledge base based on semantic proximity to the user question.”article, stated

Select another available LLM

Rejected because: Claude 3 Haiku was more efficient in runtime and cost than alternatives.

“Anthropic’s Claude 3 Haiku LLM was found to be more efficient in runtime and cost than available alternatives.”article, stated

Patterns

rag-retrieval (retrieval)

Measures Assistant dynamically selects semantically similar solved Q&A examples from a local knowledge base and inserts them into the prompt.

“This technique models a small-scale, optimized, in-process knowledge base for a Retrieval Augmented Generation (RAG) pattern.”article, stated
“Sentence question similarity is calculated through the cosine similarity between embedding vectors.”article, stated

safety-policy-enforcement (safety)

Prompt rules and knowledge-base guardrails restrict creativity, keep sensitive data secure, and force valid AEP Measure instructions.

“Rules to condition the LLM to behave in a certain manner. For example, how to react to unrelated questions, keep sensitive data secure, or restrict its creativity”article, stated
“These guardrails make sure the service returns valid instructions to the user, and compensates for logical reasoning errors that the core model might exhibit.”article, stated

human-in-the-loop-gate (quality)

Subject matter experts continuously test the assistant and use Q&A pairs to refine its behavior.

“The generation and maintenance of the question-and-answer pool involve a human in the loop. Subject matter experts continuously test Measures Assistant, and question-and-answer pairs are used to refine it continually to optimize the user experience.”article, stated
“Subject matter experts continuously test Measures Assistant, and question-and-answer pairs are used to refine it continually”article, stated

Tradeoffs

Use Bedrock and Claude 3 Haiku.

Chose managed Bedrock invocation of Claude 3 Haiku over other available LLM alternatives.

Rationale: Aetion valued provider selection, security posture, extensibility, ease of use, and Haiku's runtime/cost efficiency.

“Aetion chose to use Amazon Bedrock for working with large language models (LLMs) due to its vast model selection from multiple providers, security posture, extensibility, and ease of use. Anthropic’s Claude 3 Haiku LLM was found to be more efficient in runtime and cost than available alternatives.”article, stated
“Aetion chose to use Amazon Bedrock for working with large language models (LLMs) due to its vast model selection from multiple providers, security posture, extensibility, and ease of use. Anthropic’s Claude 3 Haiku LLM was found to be more efficient in runtime and cost than available alternatives.”article, stated

Combine static prompt structure with dynamic examples.

Chose static task/rule instructions plus semantically selected Q&A examples over a fixed prompt without retrieval.

Rationale: Static instructions define behavior while dynamic examples tailor the prompt to the user's question.

“* Static – Fixed instructions to be used with user questions. These instructions cover a broad range of well-defined instructions for Measures Assistant.”article, stated
“These examples improve the quality of the generated answers by incorporating similar previously asked and answered questions to the prompt.”article, stated

Keep SMEs in the loop.

Chose continuous SME testing and Q&A pool maintenance over fully automatic prompt/knowledge maintenance.

Rationale: Scientific correctness and user experience depended on expert-maintained question-and-answer examples.

“Subject matter experts continuously test Measures Assistant, and question-and-answer pairs are used to refine it continually to optimize the user experience.”article, stated

Gotchas (what bit them)

Natural-language scientific intent can be clinically complex.

Root cause: Variables may require event sequences, combinations of occurrences and non-occurrences, numeric calculations, and categorizations over patient timelines.

Resolution: Use a specialized Measures Assistant that translates user intent into AEP Measures instructions.

“These variables often involve complex sequences of events, combinations of occurrences and non-occurrences, as well as detailed numeric calculations or categorizations”article, stated
“Aetion developed a Measures Assistant to turn users’ natural language expressions of scientific intent into Measures.”article, stated

The base model can make logical reasoning errors for valid Measure construction.

Root cause: General-purpose LLMs do not inherently know all AEP Measure constraints.

Resolution: Add local expert knowledge, prompt rules, and dynamic solved examples as guardrails.

“These guardrails make sure the service returns valid instructions to the user, and compensates for logical reasoning errors that the core model might exhibit.”article, stated
“Extracts of AEP documentation, describing each Measure type covered, its input and output types, and how to use it.”article, stated

Healthcare analytics prompts and responses require security controls.

Root cause: The assistant handles sensitive scientific and healthcare workflow data.

Resolution: Deploy as an AWS Kubernetes microservice and encrypt user prompts and Bedrock requests with TLS 1.2.

“Measures Assistant is a microservice deployed in a Kubernetes on AWS environment and accessed through a REST API.”article, stated
“The user-provided prompts and the requests sent to the Amazon Bedrock API are encrypted using TLS 1.2.”article, stated

Evaluation

The article does not report a formal benchmark, but it describes SME continuous testing, Q&A-pool refinement, runtime/cost comparison for model choice, and user-facing time-to-measure improvement.

Metrics: runtime and cost efficiency · time from natural-language question to measures · SME continuous testing · valid Measure instructions

3 supporting quotes
“Aetion chose to use Amazon Bedrock for working with large language models (LLMs) due to its vast model selection from multiple providers, security posture, extensibility, and ease of use. Anthropic’s Claude 3 Haiku LLM was found to be more efficient in runtime and cost than available alternatives.”article, stated
“The generation and maintenance of the question-and-answer pool involve a human in the loop. Subject matter experts continuously test Measures Assistant, and question-and-answer pairs are used to refine it continually to optimize the user experience.”article, stated
“Users now can turn questions expressed in natural language into measures in a matter minutes as opposed to days”article, stated

Outcomes

Aetion's customer footprint includes most top-20 biopharma companies and regulated healthcare analytics markets across the US, Canada, Europe, and Japan.

3 supporting quotes
“Users now can turn questions expressed in natural language into measures in a matter minutes as opposed to days, without the need of support staff and specialized training.”article, stated
“Measures Assistant enables scientists to implement complex studies and iterate on study designs, instantaneously receiving guidance”article, stated
“Aetion has partnered with the majority of top 20 biopharma, leading payors, and regulatory agencies.”article, stated