Medical classifiers usually see few examples of the conditions that matter most: abnormal heart sounds, rare skin cancers, uncommon tumour subtypes. A network trained to minimize average error on such data learns features that serve the common classes and squeezes the rare ones into a small, poorly separated corner of feature space. This proposal tests a simple fix. During representation learning, the network is also asked to predict a set of classical handcrafted measurements of each input, such as texture statistics, colour histograms or acoustic band energies. These measurements are computed deterministically from the input and need no label. The extra task therefore applies the same pressure to every example, rare or common, and it pushes the network to keep the specific kinds of variation that clinicians already know separate pathologies.
The bet is that this auxiliary "reconstruct the handcrafted features" task protects rare-class representations at the stage where they are formed. The usual approach injects handcrafted features only at the final classifier. If the bet is right, the benefit should grow as imbalance becomes more extreme, and it should be visible directly in the geometry of the learned features. If it is wrong, simply appending the same handcrafted features to a rebalanced classifier will do just as well, and the experiments are designed so that this outcome is detectable.
Core Claim
Imbalance Trouble: Revisiting Neural-Collapse Geometry shows that under class imbalance, the features and classifier weights of minority classes shrink in norm and crowd together ("minority collapse"), and that gradient descent separates them more slowly as the imbalance ratio grows. That paper motivates this proposal. Its mechanism is that the label-driven loss is dominated by majority examples. A per-example regression loss on label-independent targets is not dominated in this way. Every sample contributes equally, and a feature that has collapsed to a small, class-uniform vector cannot reconstruct how that sample's texture or spectrum differs from its classmates'.
Concretely, let $h_i$ be the penultimate-layer feature of example $i$, $z_i$ its standardized vector of handcrafted descriptors, and $g$ a small regression head. Stage-one representation learning then minimizes
$$\mathcal{L} = \mathcal{L}_{\text{cls}} + \lambda \frac{1}{N}\sum_{i=1}^{N} \lVert g(h_i) - z_i \rVert^2 ,$$
where $\mathcal{L}_{\text{cls}}$ is whatever imbalance-aware classification loss the host pipeline already uses and $\lambda$ sets the weight of the reconstruction term. Stage two then rebalances the classifier as usual.
The specific, falsifiable claim has three parts. First, at a matched pipeline, this term raises tail-class accuracy more as the imbalance ratio rises. Second, it does so by keeping minority feature norms and inter-class angles closer to those of majority classes. Third, it beats feeding the identical descriptors into the stage-two classifier.
The technique is borrowed from Evaluating the Utility of Hand-crafted Features in Sequence Labelling. That work added an auto-encoder loss reconstructing part-of-speech tags, word shapes and gazetteer matches from BiLSTM states for named-entity recognition, reaching an F1 of 91.89 on CoNLL-2003 and matching the baseline with 60% of the training data. It studied a roughly balanced text task and never examined imbalance or feature geometry. Here the same idea is moved to imbalanced medical imaging and audio and evaluated as a remedy for minority collapse.
Research Program
The work has three parts. The first is building descriptor sets that need no segmentation masks. The radiomics survey From Handcrafted to Deep-Learning-Based Cancer Radiomics: Challenges and opportunities identifies expensive, observer-dependent region-of-interest masks as the main bottleneck of handcrafted imaging features. To avoid that bottleneck, the descriptors are computed on the whole image or audio segment. For dermoscopy and histopathology, they are first-order intensity and colour statistics plus whole-image grey-level co-occurrence (Haralick) texture features. For heart sounds, they are wavelet and band-energy statistics and spectral shape measures on each filtered segment. These are exactly the time-frequency features that Classification of Heart Sound Recordings Using Convolution Neural Network deliberately discarded.
The second part inserts the reconstruction term into existing strong long-tailed pipelines rather than a new architecture. The term then works as an add-on whose value can be isolated.
The third part measures geometry, not only accuracy. Analyzing the Effects of Handling Data Imbalance on Learned Features from Medical Images by Looking Into the Models found that focal and class-balanced losses left chest X-ray AUROC and average precision "nearly identical" to plain cross-entropy while substantially changing the learned features (570 versus 328 pathology concepts in ResNet-50). That result constrains this work: aggregate metrics alone could miss a real effect. Every run therefore also reports, per class, the mean feature norm, the classifier weight norm, the within-class variance, and the smallest angle between class means. From these come a minority-to-majority norm ratio and a minimum tail angle, which can be compared against the collapse predicted by the neural-collapse analysis.
Baselines
The naive reference point is plain empirical risk minimization with cross-entropy on the same backbone. On ISIC-2019-LT at imbalance ratio 500, MONICA: Benchmarking on Long-tailed Medical Image Classification reports tail accuracy of 12.67% for this baseline. For heart sounds, the naive reference is the end-to-end 1D CNN of Classification of Heart Sound Recordings Using Convolution Neural Network, which reports 70.8% sensitivity, 88.2% specificity and an overall score of 79.5 on the 2016 PhysioNet/CinC Challenge data. It will be reproduced with the same 2.5-second segments, filtering and majority voting.
The strongest existing imaging competitor is the best two-stage method in MONICA. On ISIC-2019-LT at ratio 500, GCL reaches 71.33% tail accuracy in that benchmark. MONICA's broader finding that decoupled two-stage training beats single-stage rebalancing at ratios of 100 and above is why the proposal attaches to such pipelines at all. GCL will be reproduced with MONICA's splits, backbone and schedule, and the reproduction must land near 71.33% before any comparison counts.
The second strong competitor is ProCo: Prototype-Aware Contrastive Learning for Long-Tailed Medical Image Classification. It learns class prototypes and synthesizes adversarial instances between samples and prototypes, and it reports accuracy 0.887 and F1 0.763 on ISIC2018 and accuracy 0.837 and F1 0.674 on APTOS2019. It is the most direct latent-space attack on tail-class geometry, so the question is whether descriptor reconstruction adds anything on top of it.
The third competitor is a metric-aligned loss: cross-entropy plus soft-F1 from Imbalance-aware loss functions improve medical image classification. That paper reports up to +51.3% class-wise F1 on early glaucoma and up to 12.7% relative balanced-accuracy gain on glioma subtypes.
The fourth competitor is late fusion. The same descriptors are appended to the stage-two classifier, either raw or after deep features are reduced by discriminant analysis. Medical image classification by incorporating clinical variables and learned features showed that this reduction beats raw or PCA-reduced concatenation, with Montgomery accuracy of 0.85 against 0.70 for PCA plus clinical variables. That paper never tested long-tailed data, which this comparison supplies.
Fairness is enforced in four ways. Every method shares the backbone, augmentation, epoch budget and the same number of hyperparameter trials, with $\lambda$ counting as one of the proposal's trials. Descriptor extraction time is reported. Each configuration is run over five seeds. Each method is also run with and without the reconstruction term, so the comparison is always the host method against the host method plus reconstruction.
Two ablations isolate the key ingredient. In the first, the reconstruction targets are shuffled across samples, which tests whether any extra regression head helps. In the second, the descriptors are replaced by statistics from random convolutional filters of matched dimension, which tests whether domain knowledge matters beyond "some per-sample target." Beating a baseline means a tail-accuracy or macro-F1 gain larger than two seed standard deviations at matched compute. For heart sounds, it means higher sensitivity at Ryu's 88.2% specificity operating point.
Why not just…?
Why not just use a cost-sensitive or metric-aligned loss on a plain deep network? These losses do reshape features, but the chest X-ray study above found their aggregate metrics indistinguishable from cross-entropy. The soft-F1 work needed a careful pairing with cross-entropy to avoid ignoring classes, and MONICA finds simple reweighting weak at ratio 500. The proposal does not compete with these losses. It adds the reconstruction term on top of them, so if it gives no gain over CE plus soft-F1, the experiment shows that directly.
Why not just append the handcrafted features to the rebalanced classifier? This is the most serious threat. It is cheaper, it reuses the discriminant-analysis fusion that already works, and it may capture most of the descriptors' value. The late-fusion baseline above is run with identical descriptors. If it matches the reconstruction term on tail accuracy, then representation-level guidance is unnecessary and the claim fails. A further prediction separates the two: only the reconstruction term should change the feature-norm and angle diagnostics, because late fusion leaves the stage-one features untouched.
Why not just use label-free self-supervised or contrastive pretraining, which also weights every example equally? This is also a real threat. Self-supervised pretraining shares the label-independence argument, and ProCo already shapes tail geometry contrastively. The difference claimed here is that common self-supervised invariances, such as colour jitter and crops, actively remove intensity and texture cues that the descriptors require the network to keep. The random-filter ablation and the ProCo-plus-reconstruction run settle this. If random targets help as much as Haralick or acoustic descriptors, the domain-knowledge story is wrong and the effect is generic per-sample regularization.
Proposed Experiments
The main study uses MONICA's ISIC-2019-LT, PathMNIST and DermaMNIST splits. PathMNIST is chosen because texture descriptors should matter most for histopathology. Each is subsampled to imbalance ratios of 10, 100 and 500. Each host method (ERM, CE plus soft-F1, GCL, ProCo) is trained with and without the reconstruction term, and results are reported as tail accuracy, balanced accuracy and macro F1, with AUROC kept only as a secondary metric. ISIC2018, using ProCo's 7-class protocol, provides a direct check against its reported 0.763 F1.
The audio study reproduces Ryu's 1D CNN on PhysioNet/CinC 2016 and adds the acoustic reconstruction term. The abnormal class is further subsampled to create controlled imbalance sweeps, and the late-fusion and random-filter controls are included as before.
The decisive check is the interaction between imbalance ratio and method. The mechanism predicts that the gain from reconstruction is near zero at ratio 10 and largest at ratio 500. It also predicts that the gain coincides with a higher minority-to-majority feature-norm ratio and a wider minimum tail angle. Late fusion should move neither geometric quantity.
A gain that is flat across ratios, that shuffled or random targets reproduce, or that late fusion matches would each falsify the specific claim. In those cases the result would be reported as evidence that handcrafted features help medical long-tail problems only as classifier inputs, not as protectors of rare-class representations.
References
- Imbalance Trouble: Revisiting Neural-Collapse Geometry
- Evaluating the Utility of Hand-crafted Features in Sequence Labelling
- From Handcrafted to Deep-Learning-Based Cancer Radiomics: Challenges and opportunities
- Classification of Heart Sound Recordings Using Convolution Neural Network
- Analyzing the Effects of Handling Data Imbalance on Learned Features from Medical Images by Looking Into the Models
- MONICA: Benchmarking on Long-tailed Medical Image Classification
- ProCo: Prototype-Aware Contrastive Learning for Long-Tailed Medical Image Classification
- Imbalance-aware loss functions improve medical image classification
- Medical image classification by incorporating clinical variables and learned features