Add analysis scripts and experiment configurations for bridge attention and sensitivity studies

- Introduced `bridge_attention_ceiling_check.py` for variance decomposition analysis on bridge attention configurations.
- Added `bridge_attention_readout.py` to perform per-tower gate and contribution readouts, including AUC sanity checks.
- Created multiple JSON configuration files for backbone replication experiments, including anonymous CV variants and basic backbones.
- Implemented sensitivity experiments to evaluate the impact of axial length inclusion and EfficientNetV2-M performance at higher resolutions.
- Added a memory probe script to assess GPU memory usage during training with EfficientNetV2-M.
This commit is contained in:
rpotter6298
2026-07-03 08:51:44 +02:00
parent 3d954a4606
commit 708fbc70ce
52 changed files with 2223 additions and 218 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 KiB

After

Width:  |  Height:  |  Size: 507 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 474 KiB

After

Width:  |  Height:  |  Size: 470 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 292 KiB

After

Width:  |  Height:  |  Size: 356 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 335 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 KiB

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

@@ -0,0 +1,49 @@
class,outcome,scope,quadrant,n_eyes,mean,sd
Glaucoma,correct,disc,ST,46,0.14268406172610618,0.08672064804334276
Glaucoma,correct,disc,SN,46,0.1891374642326569,0.15141795670756453
Glaucoma,correct,disc,IT,46,0.28698060971321787,0.1321960653720743
Glaucoma,correct,disc,IN,46,0.3811978502755397,0.17407907371247724
Glaucoma,correct,peri,ST,46,0.0801709241030986,0.08494386999472202
Glaucoma,correct,peri,SN,46,0.15918948407117592,0.20257575474186357
Glaucoma,correct,peri,IT,46,0.34826832191551693,0.2606073381849083
Glaucoma,correct,peri,IN,46,0.41237125804664543,0.249789089870656
Glaucoma,correct,full,ST,46,0.09742898919008372,0.08228642449987539
Glaucoma,correct,full,SN,46,0.18659980165443252,0.20125297725836833
Glaucoma,correct,full,IT,46,0.36286098988076154,0.26458782651352963
Glaucoma,correct,full,IN,46,0.35311022712131146,0.2246580892242915
Glaucoma,incorrect,disc,ST,34,0.252112440145696,0.15034014496616682
Glaucoma,incorrect,disc,SN,34,0.1746002632983389,0.09578946023984732
Glaucoma,incorrect,disc,IT,34,0.3293620129186265,0.17212955919145329
Glaucoma,incorrect,disc,IN,34,0.24392528597147015,0.17660301429323946
Glaucoma,incorrect,peri,ST,34,0.20385530932089996,0.17952535419921464
Glaucoma,incorrect,peri,SN,34,0.15875330500366588,0.15449712019023593
Glaucoma,incorrect,peri,IT,34,0.3862569142356727,0.2418765080584544
Glaucoma,incorrect,peri,IN,34,0.25113447428742586,0.24028533916258976
Glaucoma,incorrect,full,ST,34,0.21217464524321497,0.15540407279111246
Glaucoma,incorrect,full,SN,34,0.16330973974559065,0.12739118311502012
Glaucoma,incorrect,full,IT,34,0.37856896329311157,0.20473194944523931
Glaucoma,incorrect,full,IN,34,0.24594665148198902,0.20319230952963316
Normal,correct,disc,ST,313,0.21529517366946307,0.0928060891129116
Normal,correct,disc,SN,313,0.1571976673739274,0.08983072836980605
Normal,correct,disc,IT,313,0.3536251021009069,0.14392434591451472
Normal,correct,disc,IN,313,0.27388205685844386,0.13935549411695708
Normal,correct,peri,ST,313,0.16039412908580125,0.10491506604844639
Normal,correct,peri,SN,313,0.11198831344232964,0.1038424179426872
Normal,correct,peri,IT,313,0.4372451776941388,0.22439216417926178
Normal,correct,peri,IN,313,0.29037237912573877,0.21697235549864913
Normal,correct,full,ST,313,0.17585699926973924,0.09265567144523121
Normal,correct,full,SN,313,0.1305376994147368,0.09449518811759064
Normal,correct,full,IT,313,0.4112080738659084,0.19447938630719017
Normal,correct,full,IN,313,0.28239722323230754,0.18195870133945977
Normal,incorrect,disc,ST,27,0.12299851888544425,0.11261550366741999
Normal,incorrect,disc,SN,27,0.2121276641099002,0.1995218721251311
Normal,incorrect,disc,IT,27,0.26471045076221783,0.17809359884921286
Normal,incorrect,disc,IN,27,0.40016336326290614,0.22355291760060642
Normal,incorrect,peri,ST,27,0.07760201435962506,0.10155210979149742
Normal,incorrect,peri,SN,27,0.1965738090304749,0.2495116802723263
Normal,incorrect,peri,IT,27,0.2814199416369157,0.2308903646345705
Normal,incorrect,peri,IN,27,0.4444042475568166,0.27092685369261976
Normal,incorrect,full,ST,27,0.09632595685606479,0.13797078057713352
Normal,incorrect,full,SN,27,0.20212570434383328,0.2336043948759492
Normal,incorrect,full,IT,27,0.3081102746977408,0.2523555953549531
Normal,incorrect,full,IN,27,0.3934380562908973,0.24633953116106946
1 class outcome scope quadrant n_eyes mean sd
2 Glaucoma correct disc ST 46 0.14268406172610618 0.08672064804334276
3 Glaucoma correct disc SN 46 0.1891374642326569 0.15141795670756453
4 Glaucoma correct disc IT 46 0.28698060971321787 0.1321960653720743
5 Glaucoma correct disc IN 46 0.3811978502755397 0.17407907371247724
6 Glaucoma correct peri ST 46 0.0801709241030986 0.08494386999472202
7 Glaucoma correct peri SN 46 0.15918948407117592 0.20257575474186357
8 Glaucoma correct peri IT 46 0.34826832191551693 0.2606073381849083
9 Glaucoma correct peri IN 46 0.41237125804664543 0.249789089870656
10 Glaucoma correct full ST 46 0.09742898919008372 0.08228642449987539
11 Glaucoma correct full SN 46 0.18659980165443252 0.20125297725836833
12 Glaucoma correct full IT 46 0.36286098988076154 0.26458782651352963
13 Glaucoma correct full IN 46 0.35311022712131146 0.2246580892242915
14 Glaucoma incorrect disc ST 34 0.252112440145696 0.15034014496616682
15 Glaucoma incorrect disc SN 34 0.1746002632983389 0.09578946023984732
16 Glaucoma incorrect disc IT 34 0.3293620129186265 0.17212955919145329
17 Glaucoma incorrect disc IN 34 0.24392528597147015 0.17660301429323946
18 Glaucoma incorrect peri ST 34 0.20385530932089996 0.17952535419921464
19 Glaucoma incorrect peri SN 34 0.15875330500366588 0.15449712019023593
20 Glaucoma incorrect peri IT 34 0.3862569142356727 0.2418765080584544
21 Glaucoma incorrect peri IN 34 0.25113447428742586 0.24028533916258976
22 Glaucoma incorrect full ST 34 0.21217464524321497 0.15540407279111246
23 Glaucoma incorrect full SN 34 0.16330973974559065 0.12739118311502012
24 Glaucoma incorrect full IT 34 0.37856896329311157 0.20473194944523931
25 Glaucoma incorrect full IN 34 0.24594665148198902 0.20319230952963316
26 Normal correct disc ST 313 0.21529517366946307 0.0928060891129116
27 Normal correct disc SN 313 0.1571976673739274 0.08983072836980605
28 Normal correct disc IT 313 0.3536251021009069 0.14392434591451472
29 Normal correct disc IN 313 0.27388205685844386 0.13935549411695708
30 Normal correct peri ST 313 0.16039412908580125 0.10491506604844639
31 Normal correct peri SN 313 0.11198831344232964 0.1038424179426872
32 Normal correct peri IT 313 0.4372451776941388 0.22439216417926178
33 Normal correct peri IN 313 0.29037237912573877 0.21697235549864913
34 Normal correct full ST 313 0.17585699926973924 0.09265567144523121
35 Normal correct full SN 313 0.1305376994147368 0.09449518811759064
36 Normal correct full IT 313 0.4112080738659084 0.19447938630719017
37 Normal correct full IN 313 0.28239722323230754 0.18195870133945977
38 Normal incorrect disc ST 27 0.12299851888544425 0.11261550366741999
39 Normal incorrect disc SN 27 0.2121276641099002 0.1995218721251311
40 Normal incorrect disc IT 27 0.26471045076221783 0.17809359884921286
41 Normal incorrect disc IN 27 0.40016336326290614 0.22355291760060642
42 Normal incorrect peri ST 27 0.07760201435962506 0.10155210979149742
43 Normal incorrect peri SN 27 0.1965738090304749 0.2495116802723263
44 Normal incorrect peri IT 27 0.2814199416369157 0.2308903646345705
45 Normal incorrect peri IN 27 0.4444042475568166 0.27092685369261976
46 Normal incorrect full ST 27 0.09632595685606479 0.13797078057713352
47 Normal incorrect full SN 27 0.20212570434383328 0.2336043948759492
48 Normal incorrect full IT 27 0.3081102746977408 0.2523555953549531
49 Normal incorrect full IN 27 0.3934380562908973 0.24633953116106946
Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 438 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 425 KiB

After

Width:  |  Height:  |  Size: 220 KiB

@@ -0,0 +1,10 @@
feature,mean_drop,std_drop,baseline_auc_mean
Age,0.1487745098039216,0.07246596166317897,0.7117647058823529
IOP_corr,0.0645588235294118,0.053595964337907635,0.7117647058823529
Phakic/Pseudophakic,0.031004901960784353,0.05039528009700277,0.7117647058823529
Pachymetry,0.011421568627451003,0.016547911692771797,0.7117647058823529
Gender,0.006102941176470622,0.022596178307964714,0.7117647058823529
eyeID,0.0,0.0,0.7117647058823529
dioptre_2,-0.0010294117647058861,0.003622645200240852,0.7117647058823529
astigmatism,-0.002156862745098008,0.008336072214271729,0.7117647058823529
dioptre_1,-0.006593137254901939,0.011003619078899692,0.7117647058823529
1 feature mean_drop std_drop baseline_auc_mean
2 Age 0.1487745098039216 0.07246596166317897 0.7117647058823529
3 IOP_corr 0.0645588235294118 0.053595964337907635 0.7117647058823529
4 Phakic/Pseudophakic 0.031004901960784353 0.05039528009700277 0.7117647058823529
5 Pachymetry 0.011421568627451003 0.016547911692771797 0.7117647058823529
6 Gender 0.006102941176470622 0.022596178307964714 0.7117647058823529
7 eyeID 0.0 0.0 0.7117647058823529
8 dioptre_2 -0.0010294117647058861 0.003622645200240852 0.7117647058823529
9 astigmatism -0.002156862745098008 0.008336072214271729 0.7117647058823529
10 dioptre_1 -0.006593137254901939 0.011003619078899692 0.7117647058823529
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB