India’s Leading Domain & Web Hosting Provider
Pharmacovigilance hub catches a seriousness-classification regression within a day
Pharmaceutical company's global PV case-processing hub, about 9,000 cases a month · Hyderabad · 8 weeks
As-is situation
The hub used an Amazon Bedrock pipeline to pre-populate case intake from emails, call-centre notes and literature: patient details, suspect products, adverse events with suggested MedDRA terms and a seriousness classification. Case processors verified every field. Quality was measured by quarterly manual audits of 200 cases. When the team upgraded the model version, seriousness recall dropped from 98% to 91% for hospitalisation-related cases, but nobody noticed for five weeks, until a QA reviewer found several serious cases routed to the standard queue, risking late expedited reporting.
- Quality checked only through a quarterly 200-case manual audit
- Five weeks to detect a seriousness-recall drop after a model upgrade
- No traces linking each pre-populated field to prompt, model version and source text
Approach, tools and architecture
NTSPL instrumented the pipeline with OpenTelemetry spans exported to CloudWatch, carrying model ID, prompt version and source document hash, with Bedrock model invocation logging enabled. A 450-case golden set was assembled with the PV physicians, weighted toward serious and special-situation cases. Offline evaluation in the release pipeline now blocks any version whose seriousness recall falls below 97% or MedDRA term accuracy drops by more than 2 points. Online, 10% of cases and every processor correction are scored daily, with a CloudWatch alarm on rolling seriousness recall. Corrections feed a review queue for physicians.
Implementation approach
Measured results
Operational improvements
- Quality assurance can produce field-level accuracy evidence for audits and inspections on demand
- Two later candidate model versions were rejected by the gate before reaching processors
Cost considerations
Daily online scoring and the release gate add about ₹70,000 a month in Bedrock and CloudWatch costs, roughly 18% of pipeline model spend. Trace retention follows the company's PV record-keeping requirements, with personal data masked in logs.
Return on investment
The value is avoided compliance risk: one undetected regression could delay expedited reports for dozens of serious cases. Faster safe adoption of newer, cheaper model versions also reduced pipeline model spend by about a fifth after gating.