Beyond the Lesion: Adaptive Spatial Routing Reveals Modality- and Task-Dependent Representation Strategies in Medical Image Classification

Wait 5 sec.

Segmentation-guided classification commonly uses a predefined spatial representation, although lesion, perilesional, and global information may contribute differently to distinct diagnostic tasks. We investigated spatial representation across breast ultrasound benign-malignant classification, chest radiograph tuberculosis detection, dermoscopic benign-malignant classification, and three-class brain magnetic resonance imaging (MRI) tumor classification. First, we compared full images, soft and hard masking, tight lesion crops, and lesion crops with 25% padding. Second, we examined classification robustness under controlled segmentation-mask perturbations. Third, we introduced the Adaptive Spatial Routing Mixture-of-Experts (ASR-MoE), a representation-aware classifier with separately encoded region of interest (ROI), lesion-removed context, and full-image views and case-specific routing. In the fixed-representation study, the padded ROI showed chance-corrected area under the receiver operating characteristic curve (AUC) retention of 57.8%, 90.8%, 89.8%, and 37.0% across the four tasks, respectively. Perturbation effects varied with error type and masking strategy, and geometric overlap did not consistently predict downstream performance. ASR-MoE produced mean AUCs of 0.861 +/- 0.022, 0.821 +/- 0.033, 0.729 +/- 0.016, and 0.973 +/- 0.004, respectively, while exposing different learned routing mixtures across tasks and individual images. Computational profiling showed that ASR-MoE used 16.90 million total parameters compared with 21.67 million for the baseline models and exhibited lower observed graphics processing unit (GPU) memory usage, utilization, and mean power draw, but higher inference latency and lower throughput. The principal contribution is an empirical account of task-specific spatial signal retention and robustness together with a classifier that makes relative representation reliance observable.