This model is a fine-tuned version of lingshu-medical-mllm/Lingshu-7B for generating the FINDINGS section of contextualized structured chest X-ray radiology reports.
It was trained using LoRA (Low-Rank Adaptation) on the csrrg_ift_dataset containing instruction-following examples from MIMIC-CXR and CheXpert+ datasets.
Model Description
This model performs Contextualized Structured Radiology Report Generation (CSRRG) for chest X-rays, generating detailed findings sections with rich clinical context including patient history, imaging technique, comparison to prior studies, and temporal reasoning.
Key characteristics:
Generates the FINDINGS section of radiology reports
Incorporates clinical history/indication, technique, and comparison to prior studies
Performs temporal reasoning across multiple examinations
Produces structured, clinically relevant observations with contextual awareness
Fine-tuned with LoRA for parameter-efficient adaptation
Intended Use
Primary Use Cases
Research on contextualized radiology report generation
Development of temporal reasoning systems for medical imaging
Clinical decision support with longitudinal patient data
Medical AI and multimodal model research
Educational tools for radiology training
Intended Users
Medical AI researchers
Healthcare technology developers
Clinical informatics specialists
Radiology departments (research use only)
Out-of-Scope Use
NOT intended for clinical diagnosis without physician review
Should not replace human radiologists in clinical practice
Requires validation before any clinical deployment
Training framework: HuggingFace Transformers + PEFT
Usage
Loading the Model
python
1from transformers import AutoProcessor, AutoModelForVision2Seq
2from PIL import Image
3import torch
45# Load model and processor6model_name ="erjui/Lingshu-7b-csrrg-findings"7model = AutoModelForVision2Seq.from_pretrained(8 model_name,9 trust_remote_code=True,10 torch_dtype=torch.bfloat16,11 device_map="auto"12)13processor = AutoProcessor.from_pretrained("lingshu-medical-mllm/Lingshu-7B", trust_remote_code=True)1415# Load chest X-ray images (current and prior studies)16# CSRRG models support multiple images for temporal comparison (max_images_per_sample: 2)17current_image = Image.open("current_xray.jpg")18prior_image = Image.open("prior_xray.jpg")1920# Prepare input with clinical context21messages =[22{23"role":"system",24"content":[{"type":"text","text":"You are an expert radiologist."}]25},26{27"role":"user",28"content":[29{30"type":"text",31"text":"""Analyze the chest X-ray images and write the FINDINGS section of a radiology report. Use standard medical terminology and organize findings by anatomical regions. Consider the available clinical contexts when formulating your findings.
3233=== CLINICAL HISTORY/INDICATION ===
34Male patient status post acetabular surgery with concern for pleural effusion.
3536=== TECHNIQUE ===
37Portable semi-erect single frontal chest radiograph.
3839=== CURRENT IMAGES ==="""40},41{"type":"image"},# Current image42{"type":"image"}# Prior image (supports multiple images for temporal comparison)43]44}45]4647# Process and generate48inputs = processor(images=[current_image, prior_image], text=messages, return_tensors="pt").to(model.device)49outputs = model.generate(**inputs, max_new_tokens=512)50generated_text = processor.decode(outputs[0], skip_special_tokens=True)5152print(generated_text)
Expected Output Format
FINDINGS:
Lungs and Airways:
- No pleural effusion or pneumothorax detected
- Bibasilar atelectasis present
Cardiovascular:
- Mild left ventricular enlargement
Musculoskeletal and Chest Wall:
- Bilateral rib fractures noted
Citation
If you use this model, please cite:
bibtex
1@article{kang2025automated,
2 title={Automated Structured Radiology Report Generation with Rich Clinical Context},
3 author={Kang, Seongjae and Lee, Dong Bok and Jung, Juho and Kim, Dongseop and Kim, Won Hwa and Joo, Sunghoon},
4 journal={arXiv preprint arXiv:2510.00428},
5 year={2025}
6}
Also cite the base model:
bibtex
1@article{xu2025lingshu,
2 title={Lingshu: A Generalist Foundation Model for Unified Multimodal Medical Understanding and Reasoning},
3 author={Xu, Weiwen and Chan, Hou Pong and Li, Long and Aljunied, Mahani and Yuan, Ruifeng and Wang, Jianyu and Xiao, Chenghao and Chen, Guizhen and Liu, Chaoqun and Li, Zhaodonghui and others},
4 journal={arXiv preprint arXiv:2506.07044},
5 year={2025}
6}
Model Card Authors
Seongjae Kang (erjui)
Model Card Contact
For questions or issues, please open an issue on the model repository.