Downloads · 30 days
4
4% of all-time downloads
moudy93/radiology-summarization-t5-lora
radiology-summarization-t5-lora is a machine learning model from moudy93. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
- Developed by: MAHAMAT YOUSSOUF - Funded by [optional]: Self-funded / Personal project - Shared by [optional]: [More Information Needed] - Model type: Transformer-based Text-to-Text model (T5-base fine-tuned for summ…
Downloads · 30 days
4
4% of all-time downloads
All-time downloads
95
Public
Repo size
21.5 MB
Likes
0
Public
Click a slice to open those files.
.pt14.4 MB · 44%
From the Hugging Face model README
Summarization of radiology reports (e.g., converting long findings into concise clinical summaries)
Assisting healthcare NLP pipelines for report abstraction
Educational use for NLP model fine-tuning demonstrations
Integration into clinical decision support systems (non-diagnostic support only)
Use in Retrieval-Augmented Generation (RAG) pipelines for medical QA
Preprocessing step for structured medical data extraction
[More Information Needed]
The model inherits biases from the training dataset (radiology reports may reflect demographic or institutional bias)
Limited generalization outside radiology domain
May generate hallucinated or incomplete summaries
Not suitable for real-world clinical decision-making without expert oversight
Performance depends heavily on input formatting and report style
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations. -Validate outputs with domain experts before use in healthcare contexts
-Avoid using outputs as standalone medical advice
-Monitor for hallucinations and factual inconsistencies
-Fine-tune further if adapting to different medical datasets
Use the code below to get started with the model.
from transformers import T5Tokenizer, T5ForConditionalGeneration
model_name = "https://huggingface.co/moudy93/radiology-summarization-t5-lora"
tokenizer = T5Tokenizer.from_pretrained(model_name) model = T5ForConditionalGeneration.from_pretrained(model_name)
input_text = "summarize: The lungs are clear. No focal consolidation, pleural effusion, or pneumothorax."
inputs = tokenizer(input_text, return_tensors="pt", truncation=True) outputs = model.generate(**inputs, max_length=64)
summary = tokenizer.decode(outputs[0], skip_special_tokens=True) print(summary)
"NLMCXR_reports" / "ecgen-radiology" Training Data
Dataset: Radiology report dataset (NLMCXR_reports/ecgen-radiology dataset)
Size: ~3995 samples
Input: Full radiology findings
Target: Corresponding summaries/impressions
Removed XML/HTML tags and special characters
Normalized whitespace and lowercased text
Added task prefix: "summarize:"
Tokenization using T5 tokenizer with truncation and padding
[More Information Needed]
Testing Data, Factors & Metrics
Testing Data
Held-out validation/test split from the same dataset 10%
Factors
-Input length variability
-Clinical terminology complexity
-Report structure differences
Metrics
ROUGE-1
ROUGE-2
ROUGE-L
Results
ROUGE-1: ~0.56
ROUGE-2: 0.46
ROUGE-L: 0.56
<!-- These are the evaluation metrics being used, ideally with a description of why. -->[More Information Needed]
[More Information Needed]
-The model performs well on structured radiology reports
-Struggles with rare conditions or highly unstructured text
-Generates concise and readable summaries in most cases
Model Architecture and Objective
Encoder-decoder Transformer (T5)
Objective: Sequence-to-sequence text generation (summarization)
Compute Infrastructure
Single GPU training environment
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
[More Information Needed]
[More Information Needed]
[More Information Needed]
-Python3
-PyTorch
-Hugging Face Transformers
-Datasets library
[More Information Needed]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]
[More Information Needed]