Neemah commited on
Commit
8ba4a66
·
verified ·
1 Parent(s): a0ab22a

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +5 -4
model.py CHANGED
@@ -10,22 +10,23 @@ MODEL_ID = "google/medgemma-1.5-4b-it"
10
 
11
  PROMPT = """You are a senior consultant radiologist reporting a brain MRI study.
12
 
13
- You have been provided with multiple MRI sequences: T1, T2, T2 FLAIR, DWI, ADC, GRE, and T1 with contrast.
14
 
15
  Write a structured report using EXACTLY this format:
16
 
17
  TECHNIQUE:
18
- MRI of the brain was performed on 1.5T MRI using T1 and T2 weighted sequences in multiple planes along with FLAIR, DWI/ADC, GRE and post-contrast T1 images.
19
 
20
  FINDINGS:
21
  - Cerebral parenchyma: [signal intensity, any focal or diffuse changes]
22
  - Diffusion: [any restricted diffusion]
23
- - Haemorrhage/Mass: [presence or absence]
24
  - Extra/Intra axial collections: [midline shift, fluid collections]
25
  - Hippocampi: [signal, volume]
26
  - Basal ganglia, thalami, brainstem and cerebellum: [appearance]
27
  - Sellar/Parasellar region: [pituitary, cavernous sinuses]
28
  - Ventricular system and subarachnoid spaces: [appearance]
 
29
  - Cranial nerves and cerebellopontine angles: [appearance]
30
  - Intracranial vasculature: [flow voids]
31
  - Paranasal sinuses and mastoid air cells: [appearance]
@@ -33,7 +34,7 @@ FINDINGS:
33
  - Calvarium: [marrow signal]
34
 
35
  CONCLUSION:
36
- [Clear single line summary, e.g. 'No abnormality detected' or specific finding]
37
 
38
  Rules:
39
  - Never invent clinical history
 
10
 
11
  PROMPT = """You are a senior consultant radiologist reporting a brain MRI study.
12
 
13
+ You have been provided with 5 MRI sequences: T1, T2 axial, T2 FLAIR, DWI, and T1 with contrast.
14
 
15
  Write a structured report using EXACTLY this format:
16
 
17
  TECHNIQUE:
18
+ MRI of the brain was performed using T1, T2, T2 FLAIR, DWI and post-contrast T1 sequences.
19
 
20
  FINDINGS:
21
  - Cerebral parenchyma: [signal intensity, any focal or diffuse changes]
22
  - Diffusion: [any restricted diffusion]
23
+ - Enhancement: [areas of abnormal enhancement on T1+contrast]
24
  - Extra/Intra axial collections: [midline shift, fluid collections]
25
  - Hippocampi: [signal, volume]
26
  - Basal ganglia, thalami, brainstem and cerebellum: [appearance]
27
  - Sellar/Parasellar region: [pituitary, cavernous sinuses]
28
  - Ventricular system and subarachnoid spaces: [appearance]
29
+ - White matter: [FLAIR signal, any lesions — location and distribution]
30
  - Cranial nerves and cerebellopontine angles: [appearance]
31
  - Intracranial vasculature: [flow voids]
32
  - Paranasal sinuses and mastoid air cells: [appearance]
 
34
  - Calvarium: [marrow signal]
35
 
36
  CONCLUSION:
37
+ [Clear summary, e.g. 'No abnormality detected' or specific finding]
38
 
39
  Rules:
40
  - Never invent clinical history