Adverse Events

How can we explainably identify adverse events?

This application uses a multi-agent LLM workflow to identify whether user feedback from a clinical trial is an adverse event or not.

The workflow has tasks, each running a different model to evaluate the text for potential adverse events. Finally, it summarizes the results in a Pharmacovigilance assessment summary.

Here's a breakdown of the workflow:

  1. Context Analysis: The basic model analyzes the clinical description to determine if there is any mention of an adverse event.
  2. BioClin Analysis: An intermediate model performs a more detailed evaluation, considering clinical reasoning to assess the presence of adverse reactions.
  3. LLM as a Judge Analysis: A specialized model acts as a judge, evaluating the feedback from the previous analyses based on predefined criteria.
  4. Judge Feedback to Context Analysis: The judge provides feedback on the context analysis, which is then used to refine the initial evaluation.
  5. Judge Feedback to BioClin Analysis: Similar to the previous step, the judge reviews the bio-clinical analysis and offers feedback for improvement.
  6. Context Analysis - Revised: The basic model re-evaluates the clinical description, incorporating the judge's feedback to enhance its analysis.
  7. BioClin Analysis - Revised: The intermediate model revisits its analysis, integrating the judge's feedback for a more accurate assessment.
  8. Judge Summary: Finally, the judge summarizes the findings from all analyses, generating a comprehensive report that includes a pharmacovigilance assessment summary in JSON format.
%%{
  init: {
    'theme': 'base',
    'themeVariables': {
      'primaryColor': '#BB2528',
      'primaryTextColor': '#fff',
      'primaryBorderColor': '#7C0000',
      'lineColor': '#F8B229',
      'secondaryColor': '#006100',
      'tertiaryColor': '#fff'
    }
  }
}%%

flowchart LR
  A[Context Analysis] --> C[LLM as a Judge Analysis]
  B[BioClin Analysis] --> C
  C --> D[Judge Feedback to Context Analysis]
  C --> E[Judge Feedback to BioClin Analysis]
  D --> F[Context Analysis - Revised]
  E --> G[BioClin Analysis - Revised]
  F --> H[Judge Summary]
  G --> H
  C --> H
    
Model Settings
Advanced Settings

Sample Screenshot: Analysis

Screenshot of Adverse Events Analysis

Sample Screenshot: Summary

Screenshot of Pharmacovigilance Assessment Summary