AB
AiBoss
project

MedRAX - An AI-powered medical reasoning agent for chest X-ray examinations and solving complex medical problems.

MedRAX (Medical Reasoning Agent for Chest X-ray) is a medical reasoning AI agent specifically designed for chest X-ray examinations. It integrates state-of-the-art chest X-ray analysis tools with a multimodal, large-scale language model to form a...

What is MedRAX?

MedRAX (Medical Reasoning Agent for Chest X-ray) is a medical reasoning AI agent specifically designed for chest X-ray examinations. By integrating state-of-the-art chest X-ray analysis tools and large-scale multimodal language models into a unified framework, it can dynamically solve complex medical query problems without additional training. MedRAX's core architecture is based on the LangChain and LangGraph frameworks, using the vision-capable GPT-4o as its core language model. It supports local and cloud deployments and features a production-grade user interface built with Grado.

MedRAX's main functions

  • Multimodal medical reasoningMedRAX integrates a variety of state-of-the-art chest X-ray (CXR) analysis tools and multimodal large language models, dynamically utilizing these models to solve complex medical query problems without additional training.
  • Multi-step reasoning supportIt can break down complex medical queries into multiple sub-tasks and solve them one by one. For example, it can identify specific lesions in chest X-rays (detection), classify lesions (classification), accurately locate lesion positions (location), compare changes in lesions (comparison), analyze relationships between lesions (relationships), make clinical diagnoses (diagnosis), and describe lesion characteristics (feature description).
  • Powerful tool integrationMedRAX integrates a variety of tools, including visual question answering (CheXagent and LLaVA-Med), image segmentation (MedSAM and PSPNet), lesion localization (Maira-2), report generation (SwinV2 Transformer), disease classification (DenseNet-121), and X-ray generation (RoentGen).
  • User-friendly interface and flexible deploymentMedRAX provides a production-grade user interface that supports both on-premises and cloud deployments, meeting the privacy and security needs of various healthcare scenarios.
  • Performance verification and benchmarkingThrough the ChestAgentBench benchmark test, MedRAX performed exceptionally well in 2,500 complex medical queries, covering multiple core capabilities such as detection, classification, and localization, outperforming open-source and proprietary models.

MedRAX's technical principles

  • Core ArchitectureMedRAX is built on the LangChain and LangGraph frameworks, using GPT-4o, a vision-enabled language model, as its core. The architecture supports dynamic tool orchestration, automatically selecting the optimal tool combination based on complex medical queries.
  • Multimodal reasoning and tool integrationMedRAX integrates multiple tools to achieve multimodal reasoning and accurate diagnosis.
    • Visual QAComplex visual understanding and medical reasoning based on CheXagent and LLaVA-Med.
    • Image segmentationAccurate anatomical structure identification was achieved using MedSAM and a PSPNet model trained on ChestX-Det.
    • Lesion localization (Grounding): Precisely locate specific findings in medical images using Maira-2.
    • Report Generation: Generate detailed medical reports using the SwinV2 Transformer trained on CheXpert Plus.
    • Disease Classification: Detection of 18 pathological categories based on DenseNet-121 in TorchXRayVision.
    • X-ray generationSynthetic chest X-rays were generated using RoentGen.
  • Dynamic Reasoning and Multi-Step Task DecompositionMedRAX can break down complex medical queries into multiple subtasks and solve them one by one. For example, it can identify lesions (detection), classify lesions (classification), accurately locate lesions (location), compare changes in lesions (comparison), analyze relationships between lesions (relationships), make clinical diagnoses (diagnosis), and describe lesion characteristics (feature description).

MedRAX project address

Application scenarios of MedRAX

  • Clinical diagnostic support:MedRAX enables rapid and accurate interpretation of chest X-rays, providing diagnostic support for radiologists and clinicians. Through multi-step reasoning and multimodal analysis, it can identify, locate, classify, compare lesion changes, analyze lesion relationships, make diagnoses, and describe lesion characteristics.
  • Complex Case AnalysisMedRAX is particularly well-suited for analyzing complex cases, breaking down complex medical queries into multiple subtasks and resolving them one by one.
  • Medical Education and TrainingMedRAX can serve as a medical education tool, helping students and novice physicians improve their diagnostic skills. Through transparent workflows and detailed reasoning processes, learners can better understand diagnostic logic.
  • Telemedicine consultationMedRAX can be integrated into telemedicine platforms to provide patients with initial diagnostic advice and health guidance. Patients can obtain a preliminary diagnosis based on a chest X-ray by describing their symptoms and medical history.
  • Multimodal medical image analysisMedRAX supports the analysis of chest X-rays and can be extended to other modalities of medical imaging, such as CT 3D reconstruction data, to establish a cross-modal cross-validation mechanism.