Abstract
Counting intracellular lipid droplets in sebocytes is essential for studying skin pathologies like acne, yet manual counting is labor-intensive and subjective. This paper investigates Multiple Instance Learning (MIL) as a weakly supervised alternative. We compare a simple MLP baseline using mean-pooling against an attention-based MIL framework. Surprisingly, the MLP baseline achieved a lower Mean Absolute Error (MAE) of 6.48 compared to 9.16 for the attention model, highlighting that simpler aggregation strategies can be more robust for global counting tasks.
Introduction
Sebocytes are specialized cells responsible for sebum production. The differentiation of these cells is typically measured by the accumulation of lipid droplets. Current quantification methods rely on manual cell-by-cell counting from fluorescence microscopy, which is inefficient and prone to inter-observer variability. While deep learning offers automation, standard supervised models require dense pixel-level annotations. To mitigate this, we explore Multiple Instance Learning (MIL), which allows models to learn from slide-level counts rather than individual cell masks.
Methods
The counting task is framed as a bag-level, multi-target regression problem. Each microscopy slide is treated as a "bag" of image patches.
- Feature Extraction: A frozen ResNet-50 encoder, pre-trained on ImageNet, extracts 1024-dimensional feature vectors from 512x512 patches.
- MLP Baseline: This model utilizes mean-pooling to aggregate patch features into a single slide-level representation before processing through a Multi-Layer Perceptron.
- Attention-MIL: This architecture employs a trainable attention module to weight patches based on their perceived importance for the counting task.
Both models utilize a log1p transformation and a channel-weighted Mean Squared Error (MSE) loss to address class imbalance across the 14 droplet-count categories.
Datasets
The study utilized 80 fluorescence images of Nile Red-stained sebocytes. A total of 12,618 cells were manually delineated and classified into 14 categories based on droplet count (0 to 13+). Data augmentation (brightness and blur) expanded the set to 320 images (~50,000 cells).
Results and Discussion
Experimental results demonstrate that the MLP baseline is significantly more stable and accurate than the Attention-MIL model. The MLP achieved a Mean Absolute Error (MAE) of 6.48, whereas the attention-based model lagged at 9.16 with higher variance across cross-validation folds.
The "Attention Trap"
The failure of the attention mechanism in this context suggests an "attention trap" for global regression. While attention excels at identifying sparse targets in classification, it may overfit to specific patches in counting tasks where the signal is distributed across the entire slide. Mean-pooling, by contrast, provides a more consistent statistical summary of the global distribution.
Impact of Data Distribution
Both models showed performance degradation on specific data folds characterized by "heavy tails" (higher frequencies of cells with many droplets). This indicates that data distribution remains a more significant bottleneck than architectural complexity.
Conclusion and Future Work
This research underscores that for global regression tasks like cell counting, simpler pooling strategies often outperform complex attention mechanisms. Future work will investigate hybrid architectures that combine attention-based interpretability with the robustness of distribution-aware pooling, alongside larger datasets and entropy-regularized attention to prevent over-fixation on outliers.
Summary updated