Weighted Sampling with Frequency-Aware Spatial Attention for Imbalanced Image Classification
Related Experiment Videos
1School of Mathematics and Statistics, Beijing Institute of Technology, Beijing 100081, China.
Abstract:
Class imbalance remains a critical challenge in image classification, where underrepresented classes often receive insufficient training attention and exhibit poor recognition performance. In this study, we propose a hybrid framework that combines weighted sampling with frequency-aware spatial attention (WSFSA) to address class imbalance at both the data and feature levels. The weighted sampler improves the training exposure of minority classes, while the frequency-aware spatial attention module incorporates class-frequency information into spatial attention to enhance discriminative feature responses for underrepresented classes. We evaluate the proposed method on four MedMNIST benchmarks, DermaMNIST, BloodMNIST, OrganCMNIST, and DermaMNIST-224, using a ResNet-18 backbone. Results show that WSFSA provides the clearest benefit on the severely imbalanced DermaMNIST and DermaMNIST-224 datasets, performing comparably to the strongest baseline methods while showing particular benefits under severe class imbalance. On OrganCMNIST, WSFSA provides moderate gains, while on BloodMNIST, where the imbalance effect is weaker, all methods perform similarly. Per-class analysis further shows that WSFSA improves sensitivity for several minority or difficult classes while maintaining high specificity across most classes. These findings suggest that combining sampling-level and feature-level rebalancing is a practical strategy for improving class-balanced recognition, particularly under severe class imbalance.
Related Concept Videos
Stratified Sampling Method
To choose a stratified sample, divide the population into groups called strata and then take a...
Random Sampling Method
Systematic Sampling Method
Systematic sampling is one of the simplest methods...
Cluster Sampling Method
To choose a cluster sample, divide the population into clusters (groups) and then randomly select some of the clusters. All the members from these clusters are in the cluster sample. For example, if you randomly sample four departments from your...
Weighted Mean
For example, consider the number of goals scored in the matches of a tournament. While computing the average number of goals scored in the tournament, it may be more important to...
Sampling Plans
Random sampling is a method where each member of the population has an equal chance of being selected for the sample. It involves selecting individuals randomly, often using random number generators or lottery-type methods. For example, when analyzing the properties of a...