HyperAIHyperAI

Command Palette

Search for a command to run...

MIRAGE: 의료 교육을 위한 다중 모드 이미지와 텍스트의 검색 및 생성

Miguel Díaz Benito Cecilia Diana-Albelda Álvaro García-Martín Jesus Bescos Marcos Escudero Viñolo Juan Carlos SanMiguel

MedGemma-4b-it 다중 모달 의료 AI 모델의 원클릭 배포

노트북으로 이동

초록

상세하게 주석 처리된 다양한 의료 이미지를 대화형 학습 도구와 함께 접근할 수 있는 것은 의학과 관련 분야의 실무자가 진단 기술을 향상시키고 해부학적 구조에 대한 이해를 높이기 위해 훈련받는 데 기초가 된다. 의료 아틀라스는 가치가 있지만, 크기와 상호작용 부재로 인해 실제 적용이 어려운 경우가 많으며, 온라인 이미지 검색은 오라벨링된或不완전한 자료를 제공할 수 있다. 이러한 문제를 해결하기 위해 우리는 MIRAGE를 제안한다. MIRAGE는 다모달 의료 텍스트 및 이미지 검색·생성 시스템으로, 텍스트와 이미지를 공유 잠재 공간(shared latent space)에 매핑하여 의미 있는 시맨틱 쿼리를 가능하게 함으로써 신뢰할 수 있는 출처에서 임상적으로 관련성이 높은 이미지를 찾고 생성할 수 있게 한다. 본 시스템은 PubMed Central에서 얻은 ROCO 데이터셋으로 학습된 CLIP의 의료 전용 파인튜닝 버전인 MedICaT-ROCO를 기반으로 한다. MIRAGE는 사용자가 프롬프트를 입력하여 이미지를 검색하고, 의료 디퓨전 모델(Prompt2MedImage)을 통해 합성 이미지를 생성하며, 대규모 언어 모델(Dolly-v2-3b)로부터 보강된 설명을 받을 수 있다. 또한 다양한 의료 상태를 시각적으로 비교할 수 있는 듀얼 검색 옵션도 지원한다. 시스템의 주요 장점은 완전히 공개적으로 이용 가능한 사전 학습된 모델에 의존하므로 재현성과 접근성이 보장된다는 점이다. 우리의 목표는 프로그래밍 경험이 없는 의학도들을 포함한 의학도들을 위해 무료이고 투명하며 사용이 간편한 교육용 도구를 제공하는 것이다. 본 시스템은 의료 이미지 검색 및 생성을 통해 상호작용적이고 개인화된 시각적 학습이 가능한 인터페이스를 제공한다. MIRAGE는 현지 컴퓨팅 자원이나 기술적 전문성이 필요 없이 전 세계 의학도들이 접근할 수 있으며, 현재 Kaggle에서 배포되어 운영되고 있다.

One-sentence Summary

MIRAGE is a multimodal retrieval and generation system that maps medical text and images to a shared latent space using a fine-tuned MedICaT-ROCO model, the Prompt2MedImage diffusion network, and the Dolly-v2-3b language model to retrieve and synthesize clinically relevant visuals, providing medical students with a free, Kaggle-hosted educational platform that relies exclusively on publicly available pretrained models.

Key Contributions

  • The paper introduces MIRAGE, a unified multimodal system that integrates medical image retrieval, synthetic image generation, and concept-level comparison via latent space arithmetic. By mapping textual and visual inputs into a shared embedding space, the architecture enables semantically aligned queries and supports dual-search functionality for visualizing clinical differences.
  • The processing pipeline relies exclusively on publicly available pretrained models, including a fine-tuned MedICaT-ROCO vision-language encoder, the Prompt2MedImage diffusion generator, and the Dolly-v2-3b large language model. Trained on the ROCO dataset, this transparent stack guarantees full reproducibility without requiring specialized computational infrastructure.
  • The platform is deployed on Kaggle and validated through quantitative and qualitative analyses that confirm its semantic consistency in realistic educational scenarios. This accessible interface enables interactive medical training for students without programming expertise.

Introduction

Medical education fundamentally depends on interactive access to high-quality, annotated visual data to train diagnostic skills and anatomical understanding. While traditional atlases offer clinical reliability, they are cumbersome and static, and general web searches frequently yield unverified or poorly labeled content. Existing AI-driven educational tools remain largely text-focused and fail to integrate reliable image retrieval, synthetic generation, and validated clinical grounding into a single workflow. To bridge this gap, the authors leverage a fine-tuned medical vision-language model, a domain-specific diffusion generator, and a large language model to build MIRAGE, a unified platform that retrieves relevant medical images, produces synthetic visuals, and generates enriched clinical descriptions from user prompts. The system also enables comparative analysis through latent space manipulation and runs entirely on publicly available pretrained models, ensuring full reproducibility and straightforward deployment for medical students without technical expertise.

Dataset

  • Dataset Composition and Sources: The authors use the ROCO dataset, a large-scale multimodal medical imaging collection comprising over 81,000 images extracted from the Open Access subset of PubMed Central.
  • Subset Details: The collection features diverse imaging modalities such as X-ray, CT, and MRI. Each image is paired with an expert-written caption drawn from figure legends or article content, which typically identifies the imaging type and specific pathology.
  • Data Usage: All MIRAGE components except the underlying large language model are pretrained on this dataset to support multimodal research and interactive medical query processing.
  • Processing and Metadata: The dataset relies on naturally occurring clinical annotations rather than synthetic metadata or cropping strategies. Captions function as the primary textual grounding, preserving diagnostic context while enabling reproducible training and cloud-based inference.

Method

The authors leverage a multimodal framework centered around a shared latent space to enable semantic retrieval and generation of medical images and descriptions. The system, MIRAGE, operates through three primary modules: a system encoder, query processing, and synthetic image generation. The overall architecture is designed to support educational use cases in medical imaging, allowing users to retrieve relevant images, obtain enriched textual descriptions, and generate synthetic images based on user queries.

Refer to the framework diagram to understand the end-to-end workflow. The system begins with the ROCO dataset, which serves as a reference atlas of medical images and their corresponding captions. Both images and captions are embedded into a shared latent space using a CLIP-based model fine-tuned for medical content, CLIP-ViT-L-14-448px-MedICaT-ROCO. This model employs separate text and visual encoders to produce normalized embeddings, enabling direct semantic comparison between textual queries and image representations. These embeddings are precomputed and stored for efficient cosine similarity retrieval.

As shown in the figure below, the query processing module accepts a user input describing a medical concept or condition. The query is encoded into an embedding using the same CLIP model, which is then compared against the precomputed image embeddings in the shared latent space. The top-k most similar images are retrieved, and their corresponding captions are used as context for a general-purpose instruction-following language model, Dolly-v2-3b. This model generates an enriched caption that provides a more detailed and contextually relevant description of the queried concept. The enriched caption is then re-encoded using CLIP, and a second retrieval step compares it against the image embeddings to return the most semantically aligned image, along with the enriched description.

The system further supports a dual search module designed to facilitate the comparison of two related medical concepts. This feature enables users to explore the differences between clinically distinct conditions by performing latent space arithmetic. When a user specifies a base query and two terms—one to subtract and one to add—the system embeds all textual inputs into the shared semantic space. The modified query embedding is computed as the difference between the original query embedding and the subtracted term's embedding, plus the added term's embedding, as defined in Equation 1. This transformation shifts the semantic representation toward the new concept. Both the original and modified embeddings are used to retrieve their respective top-1 most similar images, enabling side-by-side visual comparison.

In addition to retrieval, the system generates synthetic medical images using a diffusion-based model, Prompt2MedImage, which is trained on medical content and supports various modalities such as MRI, CT, and X-ray. The original user prompt is used for image generation, as longer descriptions do not improve synthetic output quality. The synthetic image generation process is integrated into the pipeline, allowing users to compare real and synthetic images, which enhances conceptual understanding and interpretation. The entire pipeline is designed with human-AI collaboration in mind, encouraging active learning through interactive exploration and contextualized visual and textual feedback.

Experiment

The evaluation combines quantitative embedding analysis to verify semantic alignment across textual and multimodal pairs with qualitative visual inspection to assess retrieval accuracy and generative fidelity in medical contexts. Experimental results demonstrate that the latent space reliably preserves clinical relationships, ensuring semantically related inputs are consistently distinguished from unrelated ones. Qualitative assessments further confirm that the system retrieves real images closely aligned with user queries and generates synthetic visuals that accurately capture specified anatomical and pathological features. Additionally, latent space operations successfully drive predictable semantic and visual shifts, highlighting the model's practical utility for interactive medical education and concept exploration.

The authors evaluate the semantic consistency of their multimodal system by analyzing cosine similarity scores and classification accuracy across different input types, including text-text, real image-caption, and synthetic image-caption pairs. Results show that semantically similar inputs consistently achieve higher similarity scores than dissimilar ones, with high classification accuracy across all setups. The system demonstrates strong alignment between textual and visual representations, particularly for real image-caption pairs, while synthetic image-caption pairs also show significant but lower similarity. The authors further illustrate the system's capabilities through qualitative examples, highlighting the ability to retrieve relevant images and generate synthetic images that capture key medical features, with visual and semantic shifts in response to query modifications. Text-text and real image-caption pairs exhibit higher similarity scores and classification accuracy compared to synthetic image-caption pairs. The system achieves high classification accuracy for separating similar from dissimilar pairs across all evaluated types. Qualitative results demonstrate that the system can generate synthetic images that reflect key medical features and respond to query modifications with appropriate visual and semantic changes.

The evaluation assesses semantic consistency by testing the system across text-text, real image-caption, and synthetic image-caption pairs to validate representational alignment and classification reliability. Results indicate that the model consistently distinguishes between similar and dissimilar inputs, with real-world pairs exhibiting stronger visual-textual coherence than synthetic alternatives. Qualitative assessments further demonstrate the system's ability to retrieve relevant medical imagery and generate accurate synthetic visuals that adapt appropriately to query modifications. Overall, the framework successfully maintains semantic integrity and delivers contextually appropriate multimodal outputs across all evaluated configurations.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp