Enhanced Medical Image Classification Using a ResNet34 Squeeze-and-Excitation Architecture
Trinugi Wira HarjantiDepartment of Informatics Engineering, Sekolah Tinggi Teknologi Informasi NIIT, Jakarta, Indonesia. trinugi.harjanti@ko2pi.org0000-0001-7836-7871
Robbi RahimSekolah Tinggi Ilmu Manajemen Sukma, Medan, North Sumatra, Indonesia. usurobbi85@zoho.com0000-0001-6119-867X
Medical image classification is among the most consequential applications of artificial intelligence in healthcare, because predictive errors translate directly into diagnostic risk. Convolutional neural networks, and residual architectures such as ResNet34 in particular, are widely adopted for this task, yet such architectures treat all feature channels as equally informative and therefore cannot adaptively emphasise diagnostically salient responses. This study evaluates the integration of the Squeeze-and-Excitation (SE) channel-attention mechanism into every residual block of ResNet34, yielding a ResNet34-SE architecture that recalibrates channel responses at four spatial resolutions. The two architectures were trained under an identical configuration and compared on a binary chest-radiograph task (normal versus pneumonia) using a held-out test partition of n = 20 images balanced across the two classes. On this partition the proposed model reduced the error count from 4 to 1, raising accuracy from 0.800 to 0.950 and specificity from 0.700 to 1.000; the three false positives produced by the baseline were eliminated, so precision rose from 0.750 to 1.000 while recall was unchanged at 0.900 and the F1-score improved from 0.818 to 0.947. Because such comparisons are frequently reported without inferential support, the difference was formally tested. The error set of ResNet34-SE is a strict subset of the baseline error set, giving 3 discordant cases all favouring the proposed model; McNemar's exact test returns p = 0.250, and the 95% confidence interval for the accuracy difference, [-0.070, 0.371], includes zero. The observed advantage is therefore consistent and clinically meaningful but not yet statistically established at this sample size, for which the attained power is only 0.20. A power analysis indicates that a test partition of approximately 40 images would suffice. Structurally, SE integration is inexpensive: it adds 157,184 parameters (0.74% of the backbone) and 0.004% of its inference cost. The findings support channel attention as a low-cost architectural refinement for radiographic screening, while identifying test-set size as the binding constraint on evidential strength.