Leveraging LLMs to Streamline Pharma Case Processing: Reducing Time and Costs with iRxSafe
Highlights:
iRxSafe is a AI driven Pharmacovigilance intake case processing platform
- Handles incoming emails and classifies them as safety, product quality issue or other categories
- AI based extraction of drug details, adverse event details, patient conditions etc (Based on trained & fine tuned LLM Claude Sonnet)
- Automatic follow up email writing to collect missing details to enable the case to be processed
The solution is end to end hosted inside AWS, ensuring data security and scalability and can be plugged into a larger case processing & reporting system (As an intake handling tool)
How LLMs are used:
- Identifying the category of the incoming email – into the following categories
- Product safety (adverse event)
- Product quality
- Seeking product info
- Spam or other categories
- Extracting details of the adverse event / case
- Primary drug and dosage
- Patient information
- Adverse event information
- Concomitant drugs if any
- Patient conditions for which the drug was taken , etc
- Creating Followup email for requesting missing information
We have evaluated various models and we have zeroed on Claude Sonnet for its better performance of the above tasks cost effectively. We had to fine tune the model for certain conditions of identifying primary drug and concomitant drugs and the model could improve the performance after the training.
Human in the loop was built into the system where the System waits for user confirmation of the AI models’ conclusions, where the user can edit, correct and add information which the AI models fail to detect. This information again fed into the training pipeline for further fine tuning the model.