Add model card
Browse files
README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/medgemma-1.5-4b-it
|
| 4 |
+
tags: [medical, dermatology, adverse-event-detection, medgemma]
|
| 5 |
+
---
|
| 6 |
+
# MedGemma AE Detection
|
| 7 |
+
|
| 8 |
+
MedGemma 1.5-4B fine-tuned for **visual adverse event detection** from clinical photographs.
|
| 9 |
+
|
| 10 |
+
- **Base model**: `google/medgemma-1.5-4b-it`
|
| 11 |
+
- **Method**: LoRA fine-tuning (50 epochs)
|
| 12 |
+
- **Task**: Classify skin AEs from patient photos into 21 categories (normal + 7 AE types × 3 CTCAE grades)
|
| 13 |
+
- **AE types**: maculopapular rash, acneiform rash, periorbital edema, SJS, stomatitis, pruritus, alopecia
|
| 14 |
+
|
| 15 |
+
## Usage
|
| 16 |
+
|
| 17 |
+
```python
|
| 18 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 19 |
+
|
| 20 |
+
model = AutoModelForImageTextToText.from_pretrained("AlphaRaven/medgemma-ae-detection")
|
| 21 |
+
processor = AutoProcessor.from_pretrained("google/medgemma-1.5-4b-it")
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
Part of the [Clinical Trial Simulation Engine](https://github.com/AlphaRaven/ClinicalTrialEngine) pipeline.
|