NimaFathi/AURA

10

stars

2

commits

Python

primary language

Sep 23, 2025

updated

nimafathi.github.io/AURA/

README

๐Ÿง  AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotation

arXiv Python License

AURA represents a paradigm shift from static prediction systems to agentic AI agents capable of reasoning, interacting with tools, and adapting to complex medical imaging tasks.

๐ŸŒŸ Overview

AURA is the first visual linguistic explainability agent designed specifically for comprehensive analysis, explanation, and evaluation of medical images. By enabling dynamic interactions, contextual explanations, and hypothesis testing, AURA represents a significant advancement toward more transparent, adaptable, and clinically aligned AI systems.

Key Features

  • ๐Ÿ” Comprehensive Medical Image Analysis: Advanced chest X-ray interpretation with clinical reasoning
  • ๐ŸŽจ Counterfactual Generation: Create "what-if" scenarios to explain AI decisions
  • ๐Ÿ‘ฅ Demographic Analysis: Analyze age, sex, and race variations in medical images
  • ๐Ÿงฉ Multi-Tool Integration: Seamless integration of segmentation, VQA, and generation tools
  • ๐Ÿ“Š Visual Explainability: Generate difference maps and overlay findings
  • ๐Ÿค– Agentic Reasoning: Dynamic tool selection and parameter optimization
  • ๐Ÿ’ฌ Interactive Interface: User-friendly Gradio-based chat interface

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.10+
  • CUDA-compatible GPU (recommended)
  • Hugging Face account with access to MAIRA-2

Installation

  1. Clone the repository

    git clone https://github.com/your-username/AURA.git
    cd AURA
    
  2. Create virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies

    pip install -r requirements.txt
    
  4. Set up environment variables

    cp .env.example .env
    # Edit .env and add your Hugging Face token
    
  5. Launch AURA

    python main_aura.py
    

๐Ÿ› ๏ธ Architecture

AURA leverages a modular architecture with the following components:

Core Agent

  • LLM Backbone: Qwen-32B for reasoning and tool orchestration
  • Medical Model: MAIRA-2 for chest X-ray report generation
  • Tool Integration: Seamless connection to specialized medical tools

Tool Suite

  • Segmentation Tools: MedSAM for anatomical and pathological segmentation
  • Counterfactual Generation: RadEdit for image editing and variation
  • Visual Question Answering: CheXAgent for clinical question answering
  • Analysis Tools: TorchXrayVision for pathology detection
  • Visualization: Difference maps and overlay generation

๐Ÿ“‹ Usage

Basic Analysis

# Upload a chest X-ray image and ask:
"Analyze this chest X-ray and provide comprehensive visual explainability analysis"

Counterfactual Generation

# Generate counterfactuals for specific findings:
"Remove the pleural effusion and show me the difference"

Demographic Analysis

# Analyze demographic variations:
"Generate counterfactuals showing age and sex variations"

๐Ÿ”ง Configuration

Environment Variables

  • HF_TOKEN: Your Hugging Face token for model access
  • MODEL_NAME: Model name (default: microsoft/maira-2)
  • CACHE_DIR: Cache directory for models and data

Tool Configuration

Each tool can be configured through the prompt.yml file, allowing for:

  • Parameter optimization
  • Tool selection strategies
  • Output formatting preferences

๐Ÿ“Š Performance

AURA demonstrates state-of-the-art performance in:

  • Medical Image Understanding: Comprehensive analysis of chest X-rays
  • Counterfactual Quality: High-fidelity image generation with clinical relevance
  • Explainability: Clear visualization of AI decision processes
  • Tool Integration: Seamless orchestration of multiple specialized tools

๐Ÿšง Important Note: PRISM Integration

PRISM (Precise counterfactual Image generation using language guided Stable diffusion Model) is currently closed-source and not included in this repository. The processing pipeline is prepared for PRISM integration, and we will update the code as soon as PRISM becomes open-weight.

For more information about PRISM, visit: PRISM on Hugging Face

๐Ÿ“ TODO

  • Integrate PRISM: Add PRISM counterfactual generation when available
  • Hugging Face Model: Publish AURA on Hugging Face Model Hub

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“š Citation

If you use AURA in your research, please cite our paper:

@misc{fathi2025aura,
  title={AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotation},
  author={Fathi, Nima and Kumar, Amar and Arbel, Tal},
  eprint={2507.16940},
  url={https://arxiv.org/abs/2507.16940},
  year={2025}
}

๐Ÿ™ Acknowledgments

  • MAIRA-2: Microsoft's medical AI model for report generation
  • MedSAM: Medical segmentation model
  • RadEdit: Counterfactual image generation
  • PRISM: StableDiffusion fine-tuned for chest X-ray image generation
  • CheXAgent: Visual question answering for medical images
  • TorchXrayVision: Chest X-ray pathology detection
  • Qwen: Large language model backbone

๐ŸŒŸ Star this repository if you find it useful!

Made with โค๏ธ by the AURA team

Contributors

NimaFathi

2 commits

NimaFathi/AURA

10

stars

2

commits

Python

primary language

Sep 23, 2025

updated

nimafathi.github.io/AURA/

README

๐Ÿง  AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotation

arXiv Python License

AURA represents a paradigm shift from static prediction systems to agentic AI agents capable of reasoning, interacting with tools, and adapting to complex medical imaging tasks.

๐ŸŒŸ Overview

AURA is the first visual linguistic explainability agent designed specifically for comprehensive analysis, explanation, and evaluation of medical images. By enabling dynamic interactions, contextual explanations, and hypothesis testing, AURA represents a significant advancement toward more transparent, adaptable, and clinically aligned AI systems.

Key Features

  • ๐Ÿ” Comprehensive Medical Image Analysis: Advanced chest X-ray interpretation with clinical reasoning
  • ๐ŸŽจ Counterfactual Generation: Create "what-if" scenarios to explain AI decisions
  • ๐Ÿ‘ฅ Demographic Analysis: Analyze age, sex, and race variations in medical images
  • ๐Ÿงฉ Multi-Tool Integration: Seamless integration of segmentation, VQA, and generation tools
  • ๐Ÿ“Š Visual Explainability: Generate difference maps and overlay findings
  • ๐Ÿค– Agentic Reasoning: Dynamic tool selection and parameter optimization
  • ๐Ÿ’ฌ Interactive Interface: User-friendly Gradio-based chat interface

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.10+
  • CUDA-compatible GPU (recommended)
  • Hugging Face account with access to MAIRA-2

Installation

  1. Clone the repository

    git clone https://github.com/your-username/AURA.git
    cd AURA
    
  2. Create virtual environment

    python -m venv venv
    source venv/bin/activate  # On Windows: venv\Scripts\activate
    
  3. Install dependencies

    pip install -r requirements.txt
    
  4. Set up environment variables

    cp .env.example .env
    # Edit .env and add your Hugging Face token
    
  5. Launch AURA

    python main_aura.py
    

๐Ÿ› ๏ธ Architecture

AURA leverages a modular architecture with the following components:

Core Agent

  • LLM Backbone: Qwen-32B for reasoning and tool orchestration
  • Medical Model: MAIRA-2 for chest X-ray report generation
  • Tool Integration: Seamless connection to specialized medical tools

Tool Suite

  • Segmentation Tools: MedSAM for anatomical and pathological segmentation
  • Counterfactual Generation: RadEdit for image editing and variation
  • Visual Question Answering: CheXAgent for clinical question answering
  • Analysis Tools: TorchXrayVision for pathology detection
  • Visualization: Difference maps and overlay generation

๐Ÿ“‹ Usage

Basic Analysis

# Upload a chest X-ray image and ask:
"Analyze this chest X-ray and provide comprehensive visual explainability analysis"

Counterfactual Generation

# Generate counterfactuals for specific findings:
"Remove the pleural effusion and show me the difference"

Demographic Analysis

# Analyze demographic variations:
"Generate counterfactuals showing age and sex variations"

๐Ÿ”ง Configuration

Environment Variables

  • HF_TOKEN: Your Hugging Face token for model access
  • MODEL_NAME: Model name (default: microsoft/maira-2)
  • CACHE_DIR: Cache directory for models and data

Tool Configuration

Each tool can be configured through the prompt.yml file, allowing for:

  • Parameter optimization
  • Tool selection strategies
  • Output formatting preferences

๐Ÿ“Š Performance

AURA demonstrates state-of-the-art performance in:

  • Medical Image Understanding: Comprehensive analysis of chest X-rays
  • Counterfactual Quality: High-fidelity image generation with clinical relevance
  • Explainability: Clear visualization of AI decision processes
  • Tool Integration: Seamless orchestration of multiple specialized tools

๐Ÿšง Important Note: PRISM Integration

PRISM (Precise counterfactual Image generation using language guided Stable diffusion Model) is currently closed-source and not included in this repository. The processing pipeline is prepared for PRISM integration, and we will update the code as soon as PRISM becomes open-weight.

For more information about PRISM, visit: PRISM on Hugging Face

๐Ÿ“ TODO

  • Integrate PRISM: Add PRISM counterfactual generation when available
  • Hugging Face Model: Publish AURA on Hugging Face Model Hub

Development Setup

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ“š Citation

If you use AURA in your research, please cite our paper:

@misc{fathi2025aura,
  title={AURA: A Multi-Modal Medical Agent for Understanding, Reasoning & Annotation},
  author={Fathi, Nima and Kumar, Amar and Arbel, Tal},
  eprint={2507.16940},
  url={https://arxiv.org/abs/2507.16940},
  year={2025}
}

๐Ÿ™ Acknowledgments

  • MAIRA-2: Microsoft's medical AI model for report generation
  • MedSAM: Medical segmentation model
  • RadEdit: Counterfactual image generation
  • PRISM: StableDiffusion fine-tuned for chest X-ray image generation
  • CheXAgent: Visual question answering for medical images
  • TorchXrayVision: Chest X-ray pathology detection
  • Qwen: Large language model backbone

๐ŸŒŸ Star this repository if you find it useful!

Made with โค๏ธ by the AURA team

Contributors

NimaFathi

2 commits

Languages

Python

100.0%