-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconstants.py
2653 lines (2597 loc) · 230 KB
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
'''drawn from Gloria github: https://github.com/marshuang80/gloria
'''
BERT_TYPE = 'emilyalsentzer/Bio_ClinicalBERT'
VIT_TYPE = 'microsoft/swin-tiny-patch4-window7-224'
IMG_SIZE = 224
IMG_MEAN = .5862785803043838
IMG_STD = .27950088968644304
LC25000_lung = {
"Lung adenocarcinoma": [
"Histopathology slide of Lung adenocarcinoma with glandular patterns",
"Histopathology image showing Lung adenocarcinoma cells with mucin production",
"Pathology tissue sample of Lung adenocarcinoma with lepidic growth pattern"
],
"Benign lung": [
"Histopathology slide of Benign lung tissue with normal alveolar architecture",
"Histopathology image showing Benign lung tissue with no abnormal cell growth",
"Pathology tissue sample of Benign lung with fibrous tissue and no signs of malignancy"
],
"Lung squamous cell carcinoma": [
"Histopathology slide of Lung squamous cell carcinoma with keratin pearls",
"Histopathology image showing Lung squamous cell carcinoma cells with intercellular bridges",
"Pathology tissue sample of Lung squamous cell carcinoma with squamous differentiation"
]
}
LC25000_colon = {
"Colon adenocarcinoma": [
"Histopathology slide of Colon adenocarcinoma with glandular structures",
"Histopathology image showing Colon adenocarcinoma cells with mucinous differentiation",
"Pathology tissue sample of Colon adenocarcinoma with invasion into surrounding tissue"
],
"Benign colonic tissue": [
"Histopathology slide of Benign colonic tissue with normal mucosal architecture",
"Histopathology image showing Benign colonic tissue with no dysplastic changes",
"Pathology tissue sample of Benign colonic tissue without malignant features"
]
}
PCAM = {
"Lymph node": [
"Histopathology image of normal lymph node.",
"Histopathology slide of a healthy lymph node."
],
"Lymph node containing metastatic tumor tissue": [
"Histopathology image of a abnormal lymph node with metastatic tumor invasion and disrupted structure.",
"Histopathology slide of a abnormal lymph node with metastatic tumor cells."
]
}
CHEXPERT_TASKS = [
"No Finding",
"Enlarged Cardiomediastinum",
"Cardiomegaly",
"Lung Lesion",
"Lung Opacity",
"Edema",
"Consolidation",
"Pneumonia",
"Atelectasis",
"Pneumothorax",
"Pleural Effusion",
"Pleural Other",
"Fracture",
"Support Devices",
]
CHEXPERT_COMPETITION_TASKS = [
"Atelectasis",
"Cardiomegaly",
"Consolidation",
"Edema",
"Pleural Effusion",
]
CHEXPERT_CLASS_PROMPTS_webdataset = {
"Atelectasis": ['Atelectasis is observed in the chest X-ray image.',
'The X-ray of the chest reveals areas characteristic of atelectasis.',
'Chest radiography indicates the presence of atelectasis.',
'The X-ray image shows signs of atelectasis in the lung fields.',
'Pulmonary atelectasis is evident in the chest X-ray.',
'The radiographic image of the chest displays features consistent with atelectasis.',
'Signs of lung collapse, indicative of atelectasis, are present in the chest X-ray.',
'Chest X-ray demonstrates consolidation typical of atelectasis.',
'Radiological assessment of the chest suggests atelectasis.',
'X-ray findings of the chest confirm the presence of atelectasis.'],
"Cardiomegaly": ['Cardiomegaly is evident in the X-ray image of the chest.',
'The chest X-ray image reveals an enlarged heart, indicative of cardiomegaly.',
'Enlargement of the heart, or cardiomeg bital acy, is displayed on the radiograph of the thoracic region.',
'The thoracic X-ray shows heart enlargement consistent with cardiomegaly.',
'Heart enlargement, suggestive of cardiomegaly, is apparent in the chest radiograph.',
'A diagnosis of cardiomegaly can be inferred from the chest X-ray presentation.',
'The radiological examination of the chest depicts an increased heart size, characteristic of cardiomegaly.',
'Cardiomegaly is diagnosed through the visualization of an enlarged heart on the X-ray film of the chest.',
'The X-ray of the chest area displays a significantly enlarged heart, a condition known as cardiomegaly.',
'Evidence of cardiomegaly is demonstrated in the X-ray image focusing on the chest cavity.'],
"Consolidation": ['Consolidation evident in the chest X-ray image.',
'Pulmonary consolidation depicted on the thoracic radiograph.',
'Radiographic confirmation of lung consolidation in the chest X-ray.',
'The chest X-ray shows features typical of consolidation.',
'Consolidation is visible in the X-ray of the thorax.',
'Chest radiography revealing signs of consolidation.',
'Evidence of consolidation appears in the radiological chest examination.',
'X-ray of the chest indicates the presence of consolidation in lung tissue.',
'Lung consolidation is diagnosed in the recent chest X-ray.',
'X-ray analysis of the chest outlines consolidation areas in pulmonary structures.'],
"Edema": ['Edema evident in the chest X-ray imaging', 'Chest radiograph showing signs of pulmonary edema',
'X-ray of the chest indicates accumulation of fluid, consistent with edema',
'Pulmonary edema diagnosed from the X-ray of the chest',
'Radiographic evidence of edema in pulmonary regions',
'Fluid retention in the lungs visible in chest X-ray',
'Chest X-ray reveals characteristics typical of edema',
'Accumulation of fluid in chest noted on X-ray, suggesting edema',
'Chest X-ray manifestation of edema in lung tissues',
'Signs of edema observed in the radiographic image of the chest'],
"Pleural Effusion": ['Pleural effusion is evident in the chest X-ray image.',
'The X-ray delineates fluid accumulation characteristic of pleural effusion in the thoracic region.',
'Accumulation of excess fluid in the pleural cavity is shown in the X-ray of the chest.',
'The chest radiograph reveals signs of pleural effusion.',
'Indications of pleural effusion are present in the imaged chest area.',
'The pulmonary X-ray displays pleural effusion.',
'Thoracic effusion evident within the pleural space, as seen on the chest X-ray.',
'Chest X-ray examination indicates the presence of pleural effusion.',
'Evidence of pleural fluid excess is visible in the X-ray of the chest.',
'The X-ray image shows pleural effusion in the chest cavity.']
}
CHEXPERT_CLASS_PROMPTS = {
"Atelectasis": {
"severity": ["", "mild", "minimal"],
"subtype": [
"subsegmental atelectasis",
"linear atelectasis",
"trace atelectasis",
"bibasilar atelectasis",
"retrocardiac atelectasis",
"bandlike atelectasis",
"residual atelectasis",
],
"location": [
"at the mid lung zone",
"at the upper lung zone",
"at the right lung zone",
"at the left lung zone",
"at the lung bases",
"at the right lung base",
"at the left lung base",
"at the bilateral lung bases",
"at the left lower lobe",
"at the right lower lobe",
],
},
"Cardiomegaly": {
"severity": [""],
"subtype": [
"cardiac silhouette size is upper limits of normal",
"cardiomegaly which is unchanged",
"mildly prominent cardiac silhouette",
"portable view of the chest demonstrates stable cardiomegaly",
"portable view of the chest demonstrates mild cardiomegaly",
"persistent severe cardiomegaly",
"heart size is borderline enlarged",
"cardiomegaly unchanged",
"heart size is at the upper limits of normal",
"redemonstration of cardiomegaly",
"ap erect chest radiograph demonstrates the heart size is the upper limits of normal",
"cardiac silhouette size is mildly enlarged",
"mildly enlarged cardiac silhouette, likely left ventricular enlargement. other chambers are less prominent",
"heart size remains at mildly enlarged",
"persistent cardiomegaly with prominent upper lobe vessels",
],
"location": [""],
},
"Consolidation": {
"severity": ["", "increased", "improved", "apperance of"],
"subtype": [
"bilateral consolidation",
"reticular consolidation",
"retrocardiac consolidation",
"patchy consolidation",
"airspace consolidation",
"partial consolidation",
],
"location": [
"at the lower lung zone",
"at the upper lung zone",
"at the left lower lobe",
"at the right lower lobe",
"at the left upper lobe",
"at the right uppper lobe",
"at the right lung base",
"at the left lung base",
],
},
"Edema": {
"severity": [
"",
"mild",
"improvement in",
"presistent",
"moderate",
"decreased",
],
"subtype": [
"pulmonary edema",
"trace interstitial edema",
"pulmonary interstitial edema",
],
"location": [""],
},
"Pleural Effusion": {
"severity": ["", "small", "stable", "large", "decreased", "increased"],
"location": ["left", "right", "tiny"],
"subtype": [
"bilateral pleural effusion",
"subpulmonic pleural effusion",
"bilateral pleural effusion",
],
},
}
COVID_TASKS = [
'Normal',
'COVID',
]
COVID_CLASS_PROMPTS = {
'COVID': {
'adjective': ['patchy', 'confluent'],
'description': ['ground glass'],
'subtype': ['opacity', 'consolidation'],
'location': ['in peripheral', 'in mid', 'in lower'],
}
}
RSNA_TASKS = [
'Normal',
'Pneumonia',
]
RSNA_CLASS_PROMPTS = {
'Pneumonia': {
'adjective': ['round', 'early', 'focal', 'multifocal', 'small', ''],
'subtype': ['bacterial', 'viral', 'mycoplasma', ''],
"location": [
"at the mid lung zone",
"at the upper lung zone",
"at the right lung zone",
"at the left lung zone",
"at the lung bases",
"at the right lung base",
"at the left lung base",
"at the bilateral lung bases",
"at the left lower lobe",
"at the right lower lobe",
"at the left middle lobe",
"at the right middle lobe",
""
]
}
}
# ["Pneumonia is indicated in this chest X-ray image.", "This radiograph of the chest shows characteristics typical of pneumonia.", "Signs of pneumonia are evident in the X-ray of the chest.", "The chest radiograph reveals pulmonary patterns consistent with pneumonia.", "Evidence of pneumonia is present in this thoracic X-ray.", "This X-ray of the chest displays diagnostic features of pneumonia.", "Manifestations of pneumonia appear in this chest X-ray.", "Pneumonia is diagnosed in the displayed chest X-ray.", "The chest X-ray examination suggests the presence of pneumonia.", "Chest X-ray analysis indicates pneumonia in this image."]
# ["No pathological findings are evident in the chest X-ray image.", "The chest radiograph shows no abnormalities.", "There are no detectable abnormalities in the X-ray of the chest.", "The X-ray examination of the chest reveals no significant findings.", "No diagnostic abnormalities are present in the chest X-ray.", "The radiographic chest image indicates an absence of pathological conditions.", "No findings of concern appear in the chest imaging from the X-ray.", "The chest X-ray is clear of any detectable conditions.", "There are no visible pathological signs in the X-ray of the chest.", "The chest X-ray image is free from any abnormalities."]
RSNA_CLASS_PROMPTS_webdataset = {
'Normal': ["No pathological findings are evident in the chest X-ray image.",
"The chest radiograph shows no abnormalities.",
"There are no detectable abnormalities in the X-ray of the chest.",
"The X-ray examination of the chest reveals no significant findings.",
"No diagnostic abnormalities are present in the chest X-ray.",
"The radiographic chest image indicates an absence of pathological conditions.",
"No findings of concern appear in the chest imaging from the X-ray.",
"The chest X-ray is clear of any detectable conditions.",
"There are no visible pathological signs in the X-ray of the chest.",
"The chest X-ray image is free from any abnormalities."]
,
'Pneumonia': ["Pneumonia is indicated in this chest X-ray image.",
"This radiograph of the chest shows characteristics typical of pneumonia.",
"Signs of pneumonia are evident in the X-ray of the chest.",
"The chest radiograph reveals pulmonary patterns consistent with pneumonia.",
"Evidence of pneumonia is present in this thoracic X-ray.",
"This X-ray of the chest displays diagnostic features of pneumonia.",
"Manifestations of pneumonia appear in this chest X-ray.",
"Pneumonia is diagnosed in the displayed chest X-ray.",
"The chest X-ray examination suggests the presence of pneumonia.",
"Chest X-ray analysis indicates pneumonia in this image."]
}
WEIGHTS_NAME = 'pytorch_model.bin'
# store the URL of pretrained weights, `dev` needs to change to `main` after merging it to main branch.
PRETRAINED_URL_MEDCLIP_RESNET = 'https://github.com/RyanWangZf/MedCLIP/raw/main/medclip/medclip_resnet_weight.txt'
PRETRAINED_URL_MEDCLIP_VIT = 'https://github.com/RyanWangZf/MedCLIP/raw/main/medclip/medclip_vit_weight.txt'
ct_scan_labels = {
"heart": [
"CT scan image showing the anatomical structures of the heart, including the chambers and major blood vessels.",
"Detailed CT scan image of the heart displaying the myocardium and pericardium.",
"CT scan revealing the coronary arteries and their branches within the heart.",
"Cross-sectional CT scan image highlighting the interventricular septum of the heart.",
"CT scan displaying the left and right atria and ventricles of the heart.",
"CT scan image illustrating the pulmonary veins entering the left atrium of the heart.",
"CT scan showing the aortic arch and its branches as they originate from the heart.",
"High-resolution CT scan image of the heart demonstrating the cardiac silhouette.",
"CT scan image highlighting the mitral and tricuspid valves of the heart.",
"CT scan image depicting the left ventricle outflow tract and the aorta."
],
"left lung": [
"CT scan image displaying the lobes and segments of the left lung.",
"Detailed CT scan image of the left lung highlighting the bronchial tree.",
"CT scan revealing the parenchymal structures of the left lung.",
"Cross-sectional CT scan image of the left lung showing alveolar and interstitial patterns.",
"CT scan demonstrating the pulmonary vasculature within the left lung.",
"CT scan image of the left lung depicting areas of consolidation.",
"CT scan illustrating the pleural space adjacent to the left lung.",
"High-resolution CT scan of the left lung revealing possible nodules or lesions.",
"CT scan image highlighting the fissures and lobar anatomy of the left lung.",
"CT scan image of the left lung showing the mediastinal structures and hilum."
],
"right lung": [
"CT scan image showing the lobes and segments of the right lung.",
"Detailed CT scan image of the right lung highlighting the bronchial tree.",
"CT scan revealing the parenchymal structures of the right lung.",
"Cross-sectional CT scan image of the right lung showing alveolar and interstitial patterns.",
"CT scan demonstrating the pulmonary vasculature within the right lung.",
"CT scan image of the right lung depicting areas of consolidation.",
"CT scan illustrating the pleural space adjacent to the right lung.",
"High-resolution CT scan of the right lung revealing possible nodules or lesions.",
"CT scan image highlighting the fissures and lobar anatomy of the right lung.",
"CT scan image of the right lung showing the mediastinal structures and hilum."
],
"liver": [
"CT scan image displaying the anatomical lobes and segments of the liver.",
"Detailed CT scan image of the liver showing the hepatic vasculature.",
"CT scan revealing the liver parenchyma and surrounding structures.",
"Cross-sectional CT scan image of the liver demonstrating potential lesions.",
"CT scan highlighting the bile ducts within the liver.",
"CT scan image showing the liver's relationship to the gallbladder.",
"CT scan illustrating the portal vein and hepatic artery in the liver.",
"High-resolution CT scan of the liver revealing the surface contours.",
"CT scan image depicting the liver's connection to the inferior vena cava.",
"CT scan image showing the hepatic lobules and their vascular supply."
],
"spleen": [
"CT scan image displaying the anatomical location and size of the spleen.",
"Detailed CT scan image of the spleen highlighting its parenchymal structure.",
"CT scan revealing the splenic vasculature, including the splenic artery and vein.",
"Cross-sectional CT scan image of the spleen showing its relation to adjacent organs.",
"CT scan demonstrating the splenic hilum and associated vessels.",
"CT scan image showing the trabecular structure within the spleen.",
"CT scan illustrating the spleen's relationship to the diaphragm and stomach.",
"High-resolution CT scan of the spleen revealing potential cysts or lesions.",
"CT scan image highlighting the lymphatic tissue within the spleen.",
"CT scan image showing the splenic capsule and surrounding peritoneal space."
],
"pancreas": [
"CT scan image displaying the anatomical structure of the pancreas, including the head, body, and tail.",
"Detailed CT scan image of the pancreas showing the pancreatic duct.",
"CT scan revealing the relationship of the pancreas to the duodenum.",
"Cross-sectional CT scan image of the pancreas demonstrating its parenchymal texture.",
"CT scan highlighting the vascular supply to the pancreas, including the splenic artery.",
"CT scan image showing the pancreas in relation to the surrounding organs.",
"CT scan illustrating potential cystic or neoplastic lesions within the pancreas.",
"High-resolution CT scan of the pancreas revealing the pancreatic islets.",
"CT scan image depicting the pancreas and its connection to the bile duct.",
"CT scan image showing the exocrine and endocrine regions of the pancreas."
],
"left kidney": [
"CT scan image displaying the anatomical structure of the left kidney.",
"Detailed CT scan image of the left kidney showing the renal cortex and medulla.",
"CT scan revealing the renal vasculature, including the renal artery and vein.",
"Cross-sectional CT scan image of the left kidney demonstrating the renal pelvis.",
"CT scan highlighting the calyces and collecting system of the left kidney.",
"CT scan image showing the relationship of the left kidney to the adrenal gland.",
"CT scan illustrating potential cystic or neoplastic lesions within the left kidney.",
"High-resolution CT scan of the left kidney revealing the renal capsule.",
"CT scan image depicting the left kidney and its ureter.",
"CT scan image showing the nephron structure within the left kidney."
],
"right kidney": [
"CT scan image displaying the anatomical structure of the right kidney.",
"Detailed CT scan image of the right kidney showing the renal cortex and medulla.",
"CT scan revealing the renal vasculature, including the renal artery and vein.",
"Cross-sectional CT scan image of the right kidney demonstrating the renal pelvis.",
"CT scan highlighting the calyces and collecting system of the right kidney.",
"CT scan image showing the relationship of the right kidney to the adrenal gland.",
"CT scan illustrating potential cystic or neoplastic lesions within the right kidney.",
"High-resolution CT scan of the right kidney revealing the renal capsule.",
"CT scan image depicting the right kidney and its ureter.",
"CT scan image showing the nephron structure within the right kidney."
],
"bladder": [
"CT scan image displaying the anatomical structure of the bladder.",
"Detailed CT scan image of the bladder showing the bladder wall and lumen.",
"CT scan revealing the relationship of the bladder to the surrounding pelvic organs.",
"Cross-sectional CT scan image of the bladder demonstrating potential stones or lesions.",
"CT scan highlighting the bladder's connection to the ureters and urethra.",
"CT scan image showing the bladder's muscular layers.",
"CT scan illustrating the bladder's position in relation to the prostate or uterus.",
"High-resolution CT scan of the bladder revealing its filling and emptying states.",
"CT scan image depicting the bladder and its vascular supply.",
"CT scan image showing the trigone area of the bladder."
],
"left femoral head": [
"CT scan image displaying the anatomical structure of the left femoral head.",
"Detailed CT scan image of the left femoral head showing the articular surface.",
"CT scan revealing the relationship of the left femoral head to the acetabulum.",
"Cross-sectional CT scan image of the left femoral head demonstrating bone density.",
"CT scan highlighting potential fractures or lesions in the left femoral head.",
"CT scan image showing the left femoral head's connection to the femoral neck.",
"CT scan illustrating the vascular supply to the left femoral head.",
"High-resolution CT scan of the left femoral head revealing the subchondral bone.",
"CT scan image depicting the left femoral head and its surrounding soft tissues.",
"CT scan image showing the left femoral head in different anatomical planes."
],
"right femoral head": [
"CT scan image displaying the anatomical structure of the right femoral head.",
"Detailed CT scan image of the right femoral head showing the articular surface.",
"CT scan revealing the relationship of the right femoral head to the acetabulum.",
"Cross-sectional CT scan image of the right femoral head demonstrating bone density.",
"CT scan highlighting potential fractures or lesions in the right femoral head.",
"CT scan image showing the right femoral head's connection to the femoral neck.",
"CT scan illustrating the vascular supply to the right femoral head.",
"High-resolution CT scan of the right femoral head revealing the subchondral bone.",
"CT scan image depicting the right femoral head and its surrounding soft tissues.",
"CT scan image showing the right femoral head in different anatomical planes."
]
}
# thyroid_us_prompts = {'malignant': ['Malignant thyroid nodule depicted in ultrasound imaging.',
# 'Ultrasound presentation of a malignant nodule within the thyroid gland.',
# 'Thyroid ultrasound revealing a cancerous nodule.',
# 'An ultrasound scan displaying a malignant neoplasm in the thyroid.',
# 'Diagnostic ultrasound showing a malignant thyroidal nodule.',
# 'Ultrasound imaging illustrates a malignant lesion in thyroid tissue.',
# 'Sonographic evidence of a malignant nodule in the thyroid area.',
# 'Ultrasound visualization of thyroid malignancy in nodule form.',
# 'Thyroid gland ultrasound indicates presence of a malignant nodule.',
# 'Clinical ultrasound identifies a malignant thyroid growth.'],
# 'benign': ["The benign thyroid nodule is visible in the ultrasound image.",
# "Ultrasound imaging reveals a benign nodular formation in the thyroid.",
# "Thyroid ultrasound demonstrates the presence of a benign nodule.",
# "A benign thyroid nodule is identified on the ultrasonic scan.",
# "Ultrasound scan shows a non-malignant nodule within the thyroid gland.",
# "Benign nodule detected in the thyroid region via ultrasound imaging.",
# "Image depicts a benign nodule in the thyroid as seen by ultrasound.",
# "Thyroid sonography confirms a benign nodular appearance.",
# "Non-cancerous thyroid nodule evident on ultrasound examination.",
# "Ultrasound image delineates a benign thyroid nodule."]
# }
#
refuge_prompts = {'no glaucoma': [
"This fundus image shows a healthy optic nerve with no signs of glaucoma.",
"The optic disc and cup appear normal, indicating no glaucoma.",
"The fundus image reveals no optic nerve damage, suggesting no glaucoma.",
"This eye fundus image is normal, with no evidence of glaucoma.",
"The image shows a normal cup-to-disc ratio, indicating no glaucoma.",
"Normal: This fundus image shows a healthy optic nerve with no signs of disease.",
"The optic disc and cup appear normal, indicating no abnormalities.",
"Normal: The fundus image reveals no retinal damage, suggesting a healthy eye.",
"This eye fundus image is normal, with no evidence of any disease.",
"The image shows a normal macula and retina, indicating a healthy eye."],
'glaucoma': [
"This fundus image shows optic nerve damage due to glaucoma.",
"The image displays increased cup-to-disc ratio, a sign of glaucoma.",
"The fundus image reveals a pale optic disc, indicating glaucoma.",
"This eye fundus image shows visual field loss typical of glaucoma.",
"The optic nerve appears excavated, a characteristic of glaucoma."
]
}
five_prompts = {
"A": [
"Age-related macular degeneration: This fundus image shows drusen deposits.",
"The image reveals geographic atrophy, a sign of age-related macular degeneration.",
"Fundus image displays pigmentary changes associated with age-related macular degeneration.",
"Age-related macular degeneration: This eye fundus image shows subretinal fluid.",
"The macula appears distorted, indicative of age-related macular degeneration."
],
"D": [
"Diabetic retinopathy: This fundus image shows microaneurysms.",
"The image displays retinal hemorrhages, a sign of diabetic retinopathy.",
"Diabetic retinopathy: Fundus image reveals cotton wool spots.",
"This eye fundus image shows neovascularization, characteristic of diabetic retinopathy.",
"The retina appears with hard exudates, indicating diabetic retinopathy."
],
"G": [
"Glaucoma: This fundus image shows optic nerve damage.",
"The image displays increased cup-to-disc ratio, a sign of glaucoma.",
"Glaucoma: The fundus image reveals a pale optic disc.",
"This eye fundus image shows visual field loss, typical of glaucoma.",
"The optic nerve appears excavated, indicating glaucoma."
],
"N": [
"Normal: This fundus image shows a healthy optic nerve with no signs of disease.",
"The optic disc and cup appear normal, indicating no abnormalities.",
"Normal: The fundus image reveals no retinal damage, suggesting a healthy eye.",
"This eye fundus image is normal, with no evidence of any disease.",
"The image shows a normal macula and retina, indicating a healthy eye."
]
}
odir_retina_prompts = {
"normal": [
"Normal: This fundus image shows a healthy optic nerve with no signs of disease.",
"The optic disc and cup appear normal, indicating no abnormalities.",
"Normal: The fundus image reveals no retinal damage, suggesting a healthy eye.",
"This eye fundus image is normal, with no evidence of any disease.",
"The image shows a normal macula and retina, indicating a healthy eye."
],
"pathologic myopia": [
"Pathologic myopia: This fundus image shows extensive chorioretinal atrophy.",
"The image displays posterior staphyloma, a sign of pathologic myopia.",
"Pathologic myopia: Fundus image reveals lacquer cracks.",
"This eye fundus image shows tilted optic disc, typical of pathologic myopia.",
"The retina appears thinned and stretched, indicating pathologic myopia."
],
"cataract": [
"Cataract: This fundus image shows clouding of the lens.",
"The image displays lens opacities, a sign of cataract.",
"Cataract: Fundus image reveals decreased red reflex.",
"This eye fundus image shows blurred retinal details, typical of cataract.",
"The lens appears opaque, indicating cataract."
]
}
breast_us_prompts = {'benign': ['Benign lesions are visible in the ultrasound imaging of the breast.',
'The ultrasound scan shows a benign pathology in the breast tissue.',
'Breast ultrasound reveals features consistent with benign conditions.',
'Benign findings indicated in the breast by ultrasonic imaging.',
'Ultrasonography of the breast suggests a benign anomaly.',
'The breast sonographic examination displays benign characteristics.',
'Evidence of benign abnormalities observed in ultrasonic breast images.',
'Breast imaging via ultrasound depicting benign results.',
'Non-malignant indications identified in breast ultrasound.',
'Ultrasound of the breast demonstrates non-cancerous features.'],
'malignant': ['Lesion (migraine) is identified in the ultrasound imaging of the breast.',
'In the ultrasound image, a malignant lesion is evident in the breast tissue.',
'Breast ultrasound reveals presence of a lesion characterized as malignant.',
'The ultrasound study of the breast shows a malignant lesion.',
'Malignant lesion appears in the breast as seen in ultrasound image.',
'Breast ultrasonographic image displays a malignant lesion.',
'Ultrasound diagnostic of the breast indicates a malignant lesion.',
'Malignant lesion in breast detected by ultrasound imaging.',
'Breast ultrasound imaging reveals a malignancy in the lesion.',
'A malignant lesion is showcased in the ultrasound image of the breast.']}
#
# meniscus_mri_prompts = {
# 'yes': ['Meniscal abnormality detected in MRI imaging of the knee.', 'MRI of the knee reveals meniscal pathology.',
# 'Knee MRI indicating abnormalities in the meniscus.', 'Abnormal meniscal findings in knee MRI scan.',
# 'Meniscal degeneration observed in knee MRI.', 'MRI scan of the knee showing meniscal damage.',
# 'Evidence of meniscal irregularities in the MRI of the knee.',
# 'Knee MRI scan diagnostic of a meniscal disorder.',
# 'Meniscal disruption identified in knee MRI examination.',
# 'MRI assessment of the knee displays meniscal anomaly.'],
# 'no': [
# "The knee MRI reveals no abnormalities, with all structures appearing within normal limits.",
# "MRI imaging of the knee displays normal anatomy without any pathological changes.",
# "Evaluation of the knee MRI indicates a normal knee joint with no detectable abnormalities.",
# "The MRI scan of the knee shows no irregularities, suggesting a normal knee configuration.",
# "Analysis of the knee MRI confirms normal findings without any evident abnormalities.",
# "The knee MRI demonstrates normal knee joint structures without any pathological changes.",
# "Upon MRI examination, the knee joint shows no signs of abnormalities or pathology.",
# "MRI findings of the knee reveal normal knee anatomy with no detectable abnormalities.",
# "The knee MRI indicates a normal knee joint without any signs of pathology.",
# "Analysis of the knee MRI scan shows normal findings throughout the knee joint."
# ]}
#
# acl_mri_prompts = {
# 'yes': ['ACL pathology is evident in the MRI imaging of the knee.',
# 'The MRI scan reveals a pathology in the anterior cruciate ligament of the knee.',
# 'Pathological changes in the knee ACL are detected in the MRI.',
# 'The knee MRI results indicate an ACL disorder.',
# 'An anterior cruciate ligament pathology is diagnosed through the knee MRI.',
# 'MRI of the knee shows compromised integrity of the ACL.',
# 'The knee anterior cruciate ligament exhibits pathological abnormalities in the MRI scan.',
# 'MRI findings suggest a disease process in the knee anterior cruciate ligament.',
# 'The imaging of the knee reveals a pathological condition of the ACL.',
# 'A disorder in the knee’s anterior cruciate ligament is visible on MRI.'],
# 'no': [
# "The knee MRI reveals no abnormalities, with all structures appearing within normal limits.",
# "MRI imaging of the knee displays normal anatomy without any pathological changes.",
# "Evaluation of the knee MRI indicates a normal knee joint with no detectable abnormalities.",
# "The MRI scan of the knee shows no irregularities, suggesting a normal knee configuration.",
# "Analysis of the knee MRI confirms normal findings without any evident abnormalities.",
# "The knee MRI demonstrates normal knee joint structures without any pathological changes.",
# "Upon MRI examination, the knee joint shows no signs of abnormalities or pathology.",
# "MRI findings of the knee reveal normal knee anatomy with no detectable abnormalities.",
# "The knee MRI indicates a normal knee joint without any signs of pathology.",
# "Analysis of the knee MRI scan shows normal findings throughout the knee joint."
# ]}
diabetic_retinopathy_prompts = {
'no_dr': [
"No signs of diabetic retinopathy are detected in the retinal examination, with a healthy vascular architecture and no hemorrhagic or exudative changes.",
"The retinal image shows a clear optic disc and intact macular structure, without any abnormalities suggestive of diabetic retinopathy.",
"Detailed analysis confirms a normal retinal vasculature and absence of microvascular abnormalities or pathological features.",
"This retinal scan exhibits no signs of diabetic retinopathy, including no bleeding, exudates, or abnormal vascular growth.",
"The retinal photograph indicates no diabetic changes, with healthy retinal layers and no signs of vascular anomalies.",
"Examination reveals a normal foveal contour and healthy retinal pigment epithelium, ruling out diabetic retinopathy.",
"Comprehensive retinal analysis shows no hemorrhages, exudates, or other pathological changes, indicating a healthy retina.",
"The retinal image is clear, indicating no diabetic retinopathy with normal blood vessels and retinal tissue.",
"The eye scan shows no diabetic changes, with normal blood vessels and no bleeding or fluid leakage.",
"Detailed imaging reveals no microaneurysms, hemorrhages, or exudates, confirming the absence of diabetic retinopathy.",
"The retinal photograph displays a homogenous retinal background with no intraretinal microvascular abnormalities, indicating no diabetic retinopathy.",
"Clinical imaging of the retina shows clear retinal layers with no hemorrhagic or lipid deposits, confirming the absence of diabetic retinopathy.",
"Examination of the retinal vasculature reveals no microvascular complications such as venous beading or intraretinal microvascular abnormalities, suggesting no diabetic retinopathy.",
"This retinal scan is clear with no evidence of diabetic retinopathy, meaning there are no abnormal blood vessels or retinal swelling.",
"The retina image shows healthy blood vessels and no signs of diabetic damage, such as bleeding spots or swelling."
],
'mild_dr': [
"Early-stage stage 1 diabetic retinopathy is observed with microaneurysms and minor hemorrhages, without neovascularization.",
"The retinal image displaysstage 1 mild diabetic eye disease, featuring microvascular abnormalities and minor hemorrhagic spots.",
"Initial stage 1 non-proliferative diabetic retinopathy is evident with scattered microaneurysms and minimal retinal hemorrhages.",
"Stage 1 mild diabetic retinal changes are visible with isolated microaneurysms and sparse hemorrhages.",
"This retinal image presents early stage 1 diabetic eye disease, characterized by microaneurysms and minor hemorrhages.",
"Mild stage 1 diabetic retinopathy is indicated by early microvascular changes and minimal retinal hemorrhages.",
"The fundus photograph shows initial stage 1 NPDR with scattered microaneurysms and minor hemorrhages.",
"Stage 1 NPDR is observed with early microaneurysms and occasional dot hemorrhages.",
"This retinal scan illustrates mild stage 1 diabetic retinopathy with isolated microaneurysms and sparse hemorrhages.",
"In this image, mild stage 1 diabetic eye disease is visible, featuring small bulges in blood vessels and minor bleeding spots.",
"Early signs of stage 1 NPDR are visible with small blood vessel abnormalities and light hemorrhages.",
"The retina shows early signs of stage 1 diabetic retinopathy with small blood vessel changes and minor bleeding areas.",
"This image reveals stage 1 mild diabetic retinal changes, marked by minor blood vessel changes and small bleeding areas.",
"The retina displays early stage 1 NPDR, characterized by tiny blood vessel swellings and occasional small bleeds.",
"This eye scan shows stage 1 initial NPDR with small blood vessel abnormalities and light hemorrhages."
],
'moderate_dr': [
"Stage 2 moderate NPDR is observed with multiple microaneurysms, intraretinal hemorrhages, and mild macular edema.",
"Moderate stage 2 non-proliferative diabetic eye disease shows venous beading and intraretinal microvascular abnormalities.",
"This retinal image reveals moderate severity stage 2 NPDR with dot and blot hemorrhages and hard exudates.",
"The retinal scan highlights moderate stage 2 NPDR with microaneurysms, dot-blot hemorrhages, and venous changes.",
"Moderate stage 2 non-proliferative DR is depicted with retinal findings such as scattered microaneurysms and dot hemorrhages.",
"In this retinal image, moderate stage 2 NPDR is evident with multiple hemorrhages and microaneurysms.",
"The image reveals moderate stage 2 NPDR, marked by multiple microaneurysms and mild intraretinal hemorrhages.",
"Moderate stage 2 NPDR is shown with venous loops, multiple microaneurysms, and dot-blot hemorrhages.",
"This retinal image shows moderate stage 2 NPDR with multiple microaneurysms and scattered hemorrhages.",
"Moderate stage 2 NPDR is depicted with multiple microaneurysms, mild hemorrhages, and early retinal ischemic changes.",
"The retina has moderate stage 2 NPDR, seen by several small blood leaks, bulging vessels, and mild swelling.",
"Stage 2 moderate NPDR is visible with small blood spots, tiny bulges in blood vessels, and yellow deposits.",
"This retinal scan reveals moderate stage 2 NPDR with small areas of bleeding, tiny bulging vessels, and early fluid build-up.",
"The eye scan displays moderate stage 2 NPDR, marked by small blood vessel leaks, yellowish deposits, and minor retinal swelling.",
"Moderate stage 2 NPDR is evident with multiple small blood vessel leaks, some yellowish deposits, and minor swelling in the retina."
],
'severe_dr': [
"Severe stage 3 non-proliferative diabetic retinopathy is characterized by extensive hemorrhages and intraretinal microvascular abnormalities.",
"The retinal image displays severe stage 3 NPDR with significant dot and blot hemorrhages and venous beading.",
"This retinal scan shows severe stage 3 NPDR with extensive hemorrhages, microaneurysms, and cotton wool spots.",
"Severe stage 3 NPDR is evident with widespread hemorrhages, microaneurysms, and significant retinal changes.",
"The image shows severe stage 3 NPDR with multiple hemorrhages, microaneurysms, and prominent venous changes.",
"Severe stage 3 NPDR is prominently displayed with extensive hemorrhages and prominent venous beading.",
"This retinal image reveals severe stage 3 NPDR with numerous microaneurysms and extensive intraretinal hemorrhages.",
"The retinal scan highlights severe stage 3 NPDR with significant dot and blot hemorrhages and pronounced venous abnormalities.",
"Severe stage 3 NPDR is depicted with widespread hemorrhages, multiple microaneurysms, and retinal ischemia.",
"The retina shows severe stage 3 NPDR with many small blood spots, swollen veins, and damaged vessels.",
"Severe stage 3 NPDR is visible with many bleeding spots, thickened veins, and significant damage to vessels.",
"This image displays severe stage 3 NPDR with numerous tiny blood leaks, swollen veins, and vessel damage.",
"Severe stage 3 NPDR is marked by many small hemorrhages, thickened veins, and significant vessel damage.",
"The image shows severe stage 3 diabetic retinopathy with bleeding spots, swollen veins, and damage to vessels.",
"Severe NPDR is evident with extensive bleeding spots, large areas of bleeding, and noticeable changes in veins."
],
'full_stage4_dr': [
"Advanced stage 4 proliferative diabetic retinopathy (PDR) is evident with extensive microaneurysms and intraretinal hemorrhages.",
"This retinal scan shows severe Stage 4 PDR with widespread hemorrhages, microaneurysms, and cotton wool spots.",
"Advanced Stage 4 PDR is evident with extensive hemorrhages, microaneurysms, and severe retinal changes.",
"Stage 4 PDR is prominently displayed with extensive hemorrhages and pronounced venous abnormalities.",
"The retinal image displays stage 4 PDR with numerous microaneurysms and extensive intraretinal hemorrhages.",
"This retinal scan reveals stage 4 PDR with significant hemorrhages and extensive microaneurysms.",
"Advanced Stage 4 PDR is characterized by extensive hemorrhages, microaneurysms, and severe retinal damage.",
"Stage 4 PDR is evident with significant dot and blot hemorrhages, extensive microaneurysms, and cotton wool spots.",
"Advanced Stage 4 PDR is visible with numerous small blood spots, areas of bleeding, and vessel damage.",
"Stage 4 PDR is shown with noticeable small blood leaks, patches of bleeding, and changes in veins.",
"Advanced Stage 4 PDR is visible with numerous small blood spots, extensive bleeding areas, and significant vessel damage.",
"Stage 4 PDR is depicted with extensive bleeding, many small blood vessel leaks, and noticeable retinal damage.",
"Advanced Stage 4 PDR is evident with extensive blood spots, large areas of bleeding, and changes in veins.",
"Stage 4 PDR is visible with extensive blood spots, large areas of bleeding, and significant vessel damage.",
"Advanced stage 4 PDR is shown with widespread bleeding spots, many small blood vessel leaks, and significant retinal damage."
]
}
thyroid_us_prompts = {'benign': [
'Symmetrical shape.',
'Smooth borders.',
'No microcalcifications.',
'Uniform texture.',
'Regular shape and size.',
'Well-defined contour.',
'Smooth-bordered thyroid nodule.',
'Not suspicious thyroid nodule.',
'Uniform echotexture.',
'Consistent shape and size.'
],
'malignant': [
'Irregular tumor shape.',
'Nonuniform tumor margins.',
'Presence of microcalcifications.',
'Heterogeneous tumor texture.',
'Unclear tumor boundaries.',
'Asymmetrical tumor border.',
'High suspicion of malignancy.',
'Suspicious growth pattern.',
'Malignant thyroid lesion detected.',
'Indicative of tumor malignancy.'
]
}
BACH_prompts = {
'Breast non-malignant benign tissue': ["a histopathology slide showing Breast non-malignant benign tissue",
"histopathology image of Breast non-malignant benign tissue",
"pathology tissue showing Breast non-malignant benign tissue",
"presence of Breast non-malignant benign tissue on image"]
, 'Breast malignant in-situ carcinoma': ["a histopathology slide showing Breast malignant in-situ carcinoma",
"histopathology image of Breast malignant in-situ carcinoma",
"pathology tissue showing Breast malignant in-situ carcinoma",
"presence of Breast malignant in-situ carcinoma tissue on image"],
'Breast malignant invasive carcinoma': ["a histopathology slide showing Breast malignant invasive carcinoma",
"histopathology image of Breast malignant invasive carcinoma",
"pathology tissue showing Breast malignant invasive carcinoma",
"presence of Breast malignant invasive carcinoma tissue on image"],
'Breast normal breast tissue': ["a histopathology slide showing Breast normal breast tissue",
"histopathology image of Breast normal breast tissue",
"pathology tissue showing Breast normal breast tissue",
"presence of Breast normal breast tissue tissue on image"]
}
NCK_CRC_prompts = {"ADI": ["a histopathology slide showing Adipose",
"histopathology image of Adipose", "pathology tissue showing Adipose",
"presence of Adipose tissue on image"],
"DEB": ["a histopathology slide showing Debris",
"histopathology image of Debris", "pathology tissue showing Debris",
"presence of Debris tissue on image"],
"LYM": ["a histopathology slide showing Lymphocytes",
"histopathology image of Lymphocytes", "pathology tissue showing Lymphocytes",
"presence of Lymphocytes tissue on image"],
"MUC": ["a histopathology slide showing Mucus",
"histopathology image of Mucus", "pathology tissue showing Mucus",
"presence of Mucus tissue on image"],
"MUS": ["a histopathology slide showing Smooth muscle",
"histopathology image of Smooth muscle", "pathology tissue showing Smooth muscle",
"presence of Smooth muscle tissue on image"],
"NORM": ["a histopathology slide showing Normal colon mucosa",
"histopathology image of Normal colon mucosa",
"pathology tissue showing Normal colon mucosa",
"presence of Normal colon mucosa tissue on image"],
"STR": ["a histopathology slide showing Cancer-associated stroma",
"histopathology image of Cancer-associated stroma",
"pathology tissue showing Cancer-associated stroma",
"presence of Cancer-associated stroma tissue on image"],
"TUM": [
"a histopathology slide showing Colorectal adenocarcinoma epithelium",
"histopathology image of Colorectal adenocarcinoma epithelium",
"pathology tissue showing Colorectal adenocarcinoma epithelium",
"presence of Colorectal adenocarcinoma epithelium tissue on image"],
}
SICAPv2_prompts = {"Benign glands": ["a histopathology slide showing Benign glands",
"histopathology image of Benign glands", "pathology tissue showing Benign glands",
"presence of Benign glands tissue on image"],
"Atrophic dense glands": ["a histopathology slide showing Atrophic dense glands",
"histopathology image of Atrophic dense glands",
"pathology tissue showing Atrophic dense glands",
"presence of Atrophic dense glands tissue on image"],
"Cribriform ill-formed fused papillary patterns": [
"a histopathology slide showing Cribriform ill-formed fused papillary patterns",
"histopathology image of Cribriform ill-formed fused papillary patterns",
"pathology tissue showing Cribriform ill-formed fused papillary patterns",
"presence of Cribriform ill-formed fused papillary patterns tissue on image"],
"Isolated nest cells without lumen rosetting patterns": [
"a histopathology slide showing Isolated nest cells without lumen rosetting patterns",
"histopathology image of Isolated nest cells without lumen rosetting patterns",
"pathology tissue showing Isolated nest cells without lumen rosetting patterns",
"presence of Isolated nest cells without lumen rosetting patterns tissue on image"],
}
skin_cancer_prompts = {
"nontumor_skin_necrosis_necrosis": ["a histopathology slide showing Necrosis",
"histopathology image of Necrosis", "pathology tissue showing Necrosis",
"presence of Necrosis tissue on image"],
"nontumor_skin_muscle_skeletal":
["a histopathology slide showing Skeletal muscle",
"histopathology image of Skeletal muscle", "pathology tissue showing Skeletal muscle",
"presence of Skeletal muscle tissue on image"],
"nontumor_skin_sweatglands_sweatglands":
["a histopathology slide showing Eccrine sweat glands",
"histopathology image of Eccrine sweat glands", "pathology tissue showing Eccrine sweat glands",
"presence of Eccrine sweat glands tissue on image"],
"nontumor_skin_vessel_vessel":
["a histopathology slide showing Vessels",
"histopathology image of Vessels", "pathology tissue showing Vessels", "presence of Vessels tissue on image"],
"nontumor_skin_elastosis_elastosis":
["a histopathology slide showing Elastosis",
"histopathology image of Elastosis", "pathology tissue showing Elastosis",
"presence of Elastosis tissue on image"],
"nontumor_skin_chondraltissue_chondraltissue":
["a histopathology slide showing Chondral tissue",
"histopathology image of Chondral tissue", "pathology tissue showing Chondral tissue",
"presence of Chondral tissue tissue on image"],
"nontumor_skin_hairfollicle_hairfollicle":
["a histopathology slide showing Hair follicle",
"histopathology image of Hair follicle", "pathology tissue showing Hair follicle",
"presence of Hair follicle tissue on image"],
"nontumor_skin_epidermis_epidermis": ["a histopathology slide showing Epidermis",
"histopathology image of Epidermis", "pathology tissue showing Epidermis",
"presence of Epidermis tissue on image"],
"nontumor_skin_nerves_nerves":
["a histopathology slide showing Nerves",
"histopathology image of Nerves", "pathology tissue showing Nerves", "presence of Nerves tissue on image"],
"nontumor_skin_subcutis_subcutis":
["a histopathology slide showing Subcutis",
"histopathology image of Subcutis", "pathology tissue showing Subcutis",
"presence of Subcutis tissue on image"],
"nontumor_skin_dermis_dermis":
["a histopathology slide showing Dermis",
"histopathology image of Dermis", "pathology tissue showing Dermis", "presence of Dermis tissue on image"],
"nontumor_skin_sebaceousglands_sebaceousglands":
["a histopathology slide showing Sebaceous glands",
"histopathology image of Sebaceous glands", "pathology tissue showing Sebaceous glands",
"presence of Sebaceous glands tissue on image"],
"tumor_skin_epithelial_sqcc":
["a histopathology slide showing Squamous-cell carcinoma",
"histopathology image of Squamous-cell carcinoma", "pathology tissue showing Squamous-cell carcinoma",
"presence of Squamous-cell carcinoma tissue on image"],
"tumor_skin_melanoma_melanoma":
["a histopathology slide showing Melanoma in-situ",
"histopathology image of Melanoma in-situ", "pathology tissue showing Melanoma in-situ",
"presence of Melanoma in-situ tissue on image"],
"tumor_skin_epithelial_bcc":
["a histopathology slide showing Basal-cell carcinoma",
"histopathology image of Basal-cell carcinoma", "pathology tissue showing Basal-cell carcinoma",
"presence of Basal-cell carcinoma tissue on image"],
"tumor_skin_naevus_naevus":
["a histopathology slide showing Naevus",
"histopathology image of Naevus", "pathology tissue showing Naevus", "presence of Naevus tissue on image"]
}
skin_tumor_prompts = {
"tumor_skin_epithelial_sqcc":
["a histopathology slide showing Squamous-cell carcinoma",
"histopathology image of Squamous-cell carcinoma", "pathology tissue showing Squamous-cell carcinoma",
"presence of Squamous-cell carcinoma tissue on image"],
"tumor_skin_melanoma_melanoma":
["a histopathology slide showing Melanoma in-situ",
"histopathology image of Melanoma in-situ", "pathology tissue showing Melanoma in-situ",
"presence of Melanoma in-situ tissue on image"],
"tumor_skin_epithelial_bcc":
["a histopathology slide showing Basal-cell carcinoma",
"histopathology image of Basal-cell carcinoma", "pathology tissue showing Basal-cell carcinoma",
"presence of Basal-cell carcinoma tissue on image"],
"tumor_skin_naevus_naevus":
["a histopathology slide showing Naevus",
"histopathology image of Naevus", "pathology tissue showing Naevus", "presence of Naevus tissue on image"]
}
Osteo_prompts = {
"Normal non-tumor": ["a histopathology slide showing Normal non-tumor", "histopathology image of Normal non-tumor",
"pathology tissue showing Normal non-tumor", "presence of Normal non-tumor tissue on image"],
"Necrotic": ["a histopathology slide showing Necrotic",
"histopathology image of Necrotic", "pathology tissue showing Necrotic",
"presence of Necrotic tissue on image"],
"Tumor": ["a histopathology slide showing Tumor",
"histopathology image of Tumor", "pathology tissue showing Tumor", "presence of Tumor tissue on image"]
}
# breast_us_prompts = {
# 'malignant': [
# 'Irregular tumor shape.',
# 'Nonuniform tumor margins.',
# 'Presence of microcalcifications.',
# 'Heterogeneous tumor texture.',
# 'Unclear tumor boundaries.'
# ],
# 'benign': [
# 'Symmetrical shape.',
# 'Smooth borders.',
# 'No microcalcifications.',
# 'Uniform texture.',
# 'Regular shape and size.'
# ]
# }
# meniscus_mri_prompts = {
# 'yes': [
# "Abnormalities.",
# "Changes in anatomy.",
# "Not normal knee joint.",
# "Irregularities present.",
# "Knee configuration not normal.",
# "Evident findings.",
# "Abnormal case.",
# "Evidences of abnormalities.",
# "Detectable abnormalities.",
# "Tear indication."],
# 'no': [
# "No abnormalities.",
# "Normal anatomy.",
# "Normal knee joint.",
# "No irregularities.",
# "Normal knee configuration.",
# "Normal findings.",
# "Normal case.",
# "No signs of abnormalities.",
# "No detectable abnormalities.",
# "No relevant findings."
# ]}
meniscus_mri_prompts = {'no': ['Normal appearance of the knee in MRI imaging.',
'MRI scan showing no abnormalities in the knee.',
'The knee MRI indicates a normal condition.',
'MRI of the knee displaying typical anatomy and no pathologic findings.',
'Normal knee structure as revealed by magnetic resonance imaging.',
'Magnetic resonance image of the knee showing healthy structural integrity.',
'The MRI results confirm normal knee anatomy without any abnormal findings.',
'Diagnostic MRI reveals the knee to be in normal condition.',
'Knee MRI, which shows no signs of pathology, indicating a normal state.',
'MRI examination of the knee presents normal anatomical features..'],
'yes': ['Meniscal abnormality detected in MRI imaging of the knee.',
'MRI of the knee reveals meniscal pathology.',
'Knee MRI indicating abnormalities in the meniscus.',
'Abnormal meniscal findings in knee MRI scan.',
'Meniscal degeneration observed in knee MRI.',
'MRI scan of the knee showing meniscal damage.',
'Evidence of meniscal irregularities in the MRI of the knee.',
'Knee MRI scan diagnostic of a meniscal disorder.',
'Meniscal disruption identified in knee MRI examination.',
'MRI assessment of the knee displays meniscal anomaly.']}
acl_mri_prompts = {
'no': ['Normal appearance of the knee in MRI imaging.',
'MRI scan showing no abnormalities in the knee.',
'The knee MRI indicates a normal condition.',
'MRI of the knee displaying typical anatomy and no pathologic findings.',
'Normal knee structure as revealed by magnetic resonance imaging.',
'Magnetic resonance image of the knee showing healthy structural integrity.',
'The MRI results confirm normal knee anatomy without any abnormal findings.',
'Diagnostic MRI reveals the knee to be in normal condition.',
'Knee MRI, which shows no signs of pathology, indicating a normal state.',
'MRI examination of the knee presents normal anatomical features..'],
'yes': ['ACL pathology is evident in the MRI imaging of the knee.',
'The MRI scan reveals a pathology in the anterior cruciate ligament of the knee.',
'Pathological changes in the knee ACL are detected in the MRI.',
'The knee MRI results indicate an ACL disorder.',
'An anterior cruciate ligament pathology is diagnosed through the knee MRI.',
'MRI of the knee shows compromised integrity of the ACL.',
'The knee anterior cruciate ligament exhibits pathological abnormalities in the MRI scan.',
'MRI findings suggest a disease process in the knee anterior cruciate ligament.',
'The imaging of the knee reveals a pathological condition of the ACL.',
'A disorder in the knee’s anterior cruciate ligament is visible on MRI.']}
# 'no': ['Normal appearance of the knee in MRI imaging', 'MRI scan showing no abnormalities in the knee',
# 'The knee MRI indicates a normal condition',
# 'MRI of the knee displaying typical anatomy and no pathologic findings',
# 'Normal knee structure as revealed by magnetic resonance imaging',
# 'Magnetic resonance image of the knee showing healthy structural integrity',
# 'The MRI results confirm normal knee anatomy without any abnormal findings',
# 'Diagnostic MRI reveals the knee to be in normal condition',
# 'Knee MRI, which shows no signs of pathology, indicating a normal state',
# 'MRI examination of the knee presents normal anatomical features.']}
radimagenet_all_prompts = {
'MRI photo, knee, meniscal abnormality': ['Meniscal abnormality detected in MRI imaging of the knee.',
'MRI of the knee reveals meniscal pathology.',
'Knee MRI indicating abnormalities in the meniscus.',
'Abnormal meniscal findings in knee MRI scan.',
'Meniscal degeneration observed in knee MRI.',
'MRI scan of the knee showing meniscal damage.',
'Evidence of meniscal irregularities in the MRI of the knee.',
'Knee MRI scan diagnostic of a meniscal disorder.',
'Meniscal disruption identified in knee MRI examination.',
'MRI assessment of the knee displays meniscal anomaly.'],
'MRI photo, knee, chondral abnormality': ['Chondral abnormality evident in the MRI image of the knee.',
'The MRI of the knee reveals a chondral defect.',
'Knee MRI showing signs of chondral damage.',
'MRI scan indicates a chondral lesion in the knee zone.',
'Evidence of a chondral abnormality in knee MRI assessment.',
'Diagnostic MRI indicates chondral deterioration in the knee.',
'Chondral impairment detected in the knee by MRI imaging.',
'Knee MRI scan presents with chondral pathology.',
'MRI assessment of the knee displays chondral abnormality.',