Skip to content

Latest commit

Β 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 

Repository files navigation

πŸ«€ CardioSentinel: AI System for Guideline-Aligned Cardiovascular Disease (CVD) Management

Bridging the evidence–practice gap in cardiovascular care using Retrieval-Augmented Generation and Multi-Agent System (MAS).


πŸ“Œ Background

Cardiovascular diseases (CVDs) are the leading cause of death globally. An estimated 19.8 million people died from CVDs in 2022, representing approximately 32% of all global deaths. WHO

Over the past decades, major professional bodiesβ€”such as the American College of Cardiology/American Heart Association (ACC/AHA), the European Society of Cardiology (ESC), and the World Health Organization (WHO)β€”have published comprehensive guidelines that define optimal diagnostic, therapeutic, and preventive strategies of cardiovascular diseases.

However, real-world clinical practice frequently fails to align with these guidelines. This persistent discrepancy, commonly referred to as the evidence–practice gap, results in suboptimal treatment decisions and failure to achieve recommended clinical targets for many patients with CVD. NIH


🎯 The Core Problem

Why do such gaps between evidence and practice exist?

A study conducted in 5 Europe countries have identified 5 most common barriers cited by physicians in implementation of these guidelines. NIH

Most Commonly Cited Barriers to Implementation of Coronary Heart Disease Guidelines.

These are not purely medical problems β€” they are information, cognition, and coordination problems, which makes them ideal targets for AI systems.


πŸ’‘ Proposed solution

This project addresses the evidence–practice gap by building a modular AI system that:

  • Makes clinical guidelines instantly accessible
  • Reduces guideline overload
  • Supports clinicians under time pressure
  • Improves patient adherence and follow-up

The system is designed as a Clinical Decision Support System (CDSS) β€” it assists clinicians, not replaces them.


🧠 High-Level Solution Architecture

This project builds a 3-layered AI ecosystem:

                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   Guideline RAG Engine  |
                   β”‚    Evidence Retrieval   β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   Multi-Agent System    β”‚
                   β”‚ Care Planning + Support β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚    Production System    β”‚
                   β”‚  (Deployment, UI, EHR)  β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Each layer solves a different part of the real-world barrier stack.


🧩 Repository Structure

This is an umbrella repository. The core implementations live in separate modules:

Component Purpose
1. Guideline RAG System Solves guideline overload and lack of awareness
2. Multi-Agent Clinical System Solves time pressure and patient compliance
3. Production System Makes the whole system usable in real clinical environments

1️⃣ Guideline RAG System

Independent Research Module

πŸ“ ./rag-guideline-engine

Purpose

A Retrieval-Augmented Generation (RAG) based CDSS that transforms static cardiovascular guidelines into a queryable clinical reasoning system.

Problem It Solves

  • Clinicians cannot memorize thousands of pages of guidelines
  • Searching PDFs during consultation is impractical
  • Guidelines are scattered, dense, and frequently updated

What This System Does

It converts ESC/ACC/WHO guidelines into a structured, searchable knowledge system and generates patient-specific, evidence-grounded recommendations.

Architecture Overview

                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚  Patient Clinical Summary   β”‚     
                β”‚             +               |
                |      Clinician Query        β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚
                               β–Ό
                β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                β”‚     Query Rewriting Layer   β”‚
                β”‚  (Medical Variant Generator)β”‚
                β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                               β”‚
                    Expanded Medical Queries
                               β”‚
                               β–Ό
       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
       β”‚                Retrieval Funnel                  β”‚
       β”‚                                                  β”‚
       β”‚   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
       β”‚   β”‚   Vector Search  β”‚      β”‚   Graph Search   β”‚ β”‚
       β”‚   β”‚   (ChromaDB)     β”‚      β”‚    (Neo4j KG)    β”‚ β”‚
       β”‚   β”‚  "Similar Text"  β”‚      β”‚"Related Entities"β”‚ β”‚
       β”‚   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
       β”‚             β”‚                        β”‚           β”‚
       β”‚             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜           β”‚
       β”‚                         β–Ό                        β”‚
       β”‚              Candidate Guideline Chunks          β”‚
       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚   Context-Aware Reranker    β”‚
                  β”‚ (Patient-Specific Scoring)  β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                       Top-K Evidence Snippets
                                 β”‚
                                 β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚   Guardrailed LLM Generator β”‚
                  β”‚  (Evidence-Constrained CDSS)β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
                  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                  β”‚  Guideline-Aligned Output   β”‚
                  β”‚  + Citations + Transparency β”‚
                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

2️⃣ Multi-Agent Clinical Support System

Built on top of the RAG Engine

πŸ“ ./multi-agent-clinical-system

Purpose

Moves beyond information retrieval to care coordination and reasoning, using multiple specialized AI agents.

Problem It Solves

Even when guidelines are known:

  • Clinicians lack time for deep planning
  • Patients struggle with adherence
  • Care is fragmented

System Architecture

                             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                             β”‚   Clinician / System     β”‚
                             β”‚  Query + Patient Data    β”‚
                             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                          β”‚
                                          β–Ό
                             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                             β”‚    Orchestrator Agent    β”‚
                             β”‚ (Task Routing + Control) β”‚
                             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                          β”‚
             β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
             β–Ό                            β–Ό                            β–Ό
     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
     β”‚ Guideline Agent β”‚        β”‚ Clinical Reasonerβ”‚         β”‚ Patient Comm Agent β”‚
     β”‚ (Evidence Query)β”‚        β”‚ (Care Planning)  β”‚         β”‚ (Education Output) β”‚
     β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜         β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
             β”‚                            β”‚                            β”‚
             β”‚                            β–Ό                            β”‚
             β”‚                 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                β”‚
             β”‚                 β”‚ Medication Agent     β”‚                β”‚
             β”‚                 β”‚(Therapy Optimization)β”‚                β”‚
             β”‚                 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                β”‚
             β”‚                           β”‚                             β”‚
             β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β–Ό                         β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”       β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚ Risk Agent     β”‚       β”‚ Adherence Agent    β”‚
                   β”‚ (Risk Scoring) β”‚       β”‚ (Follow-up Logic)  β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜       β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

What This Layer Adds

  • Longitudinal care planning
  • Medication adjustment logic
  • Patient-specific lifestyle advice
  • Automated follow-up suggestions

This layer tackles:

βœ” Time pressure βœ” Complex decision-making βœ” Patient compliance


3️⃣ Production System

Turning Research into Real-World Infrastructure

πŸ“ ./production-system

Purpose

Transforms the AI system into a clinically deployable platform.

Key Areas

  • API infrastructure
  • Security & privacy design
  • Logging and audit trails
  • Monitoring and evaluation
  • UI for clinicians
  • Integration pathways (future EHR compatibility)

Why This Matters

Most AI healthcare projects fail not because of models β€” they fail at deployment, safety, and usability.

This module ensures:

  • Clinical transparency
  • Traceability of recommendations
  • Safe system behavior

🚧 Development Roadmap

Phase Focus
Phase 1 Build and validate Guideline RAG Engine
Phase 2 Develop Multi-Agent Clinical Layer
Phase 3 Integrate agents with RAG
Phase 4 Production architecture & API
Phase 5 Evaluation & validation

⚠️ Scope and Limitations

  • This is a decision support system, not an autonomous clinician
  • Recommendations are limited to available guideline evidence
  • Clinical outcome improvements require real-world validation

🌍 Significance

This project demonstrates how RAG + Multi-Agent AI can be responsibly used in healthcare to:

  • Reduce cognitive overload
  • Improve evidence access
  • Support structured clinical reasoning
  • Enhance patient engagement

It targets the information and cognition bottlenecks at the heart of the evidence–practice gap.


πŸ§ͺ Research Contributions

This project contributes to:

  • Medical RAG architectures
  • Multi-agent clinical reasoning systems
  • Faithfulness-constrained medical LLMs
  • AI for evidence-based medicine

πŸ”— System Modules

Module Description
Guideline RAG Engine Evidence retrieval system
Multi-Agent Clinical System Care reasoning & coordination
Production System Deployment infrastructure

πŸ“œ License

All components of this system are released under the MIT License unless stated otherwise. See individual repositories for details.


About

AI infrastructure for guideline-aligned cardiovascular disease management using RAG, multi-agent systems, and clinical decision support tools.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors