Abstract
Classification of biological images is an important task with crucial application in many fields, such as cell phenotypes recognition, detection of cell organelles and histopathological classification, and it might help in early medical diagnosis, allowing automatic disease classification without the need of a human expert. In this paper we classify biomedical images using ensembles of neural networks. We create this ensemble using a ResNet50 architecture and modifying its activation layers by substituting ReLUs with other functions. We select our activations among the following ones: ReLU, leaky ReLU, Parametric ReLU, ELU, Adaptive Piecewice Linear Unit, S-Shaped ReLU, Swish, Mish, Mexican Linear Unit, Gaussian Linear Unit, Parametric Deformable Linear Unit, Soft Root Sign (SRS) and others. As a baseline, we used an ensemble of neural networks that only use ReLU activations. We tested our networks on several small and medium sized biomedical image datasets. Our results prove that our best ensemble obtains a better performance than the ones of the naive approaches.
Introduction
In deep learning, the Rectified Linear Unit (ReLU) is the default choice for activation functions due to its computational efficiency and ability to mitigate the vanishing gradient problem. However, in the specialized field of healthcare—where datasets are often small and features like cell organelles or histopathological patterns are incredibly subtle—a "one-size-fits-all" activation strategy may limit a model's representational power. This research addresses the challenge of improving classification accuracy on biological images by introducing architectural diversity through stochastic activation selection.
Methodology
The researchers used ResNet50 as their backbone architecture and experimented with two primary modification strategies:
- Deterministic Substitution: Every ReLU in the network is replaced with a single alternative function (e.g., all layers become ELU or all become Swish).
- Stochastic Substitution (
GenStochasticModel): This is the paper's core novelty. For every activation layer in the ResNet50, the algorithm randomly draws an activation function from a predefined "pool" of functions. This creates internal architectural inconsistency, which serves as a form of regularization and diversity.
To finalize predictions, the authors created ensembles using the sum rule, averaging output probability vectors from multiple independently trained stochastic networks. They also explored the impact of a hyperparameter called maxInput (set to either 1 or 255) used to normalize inputs for certain complex activation functions.
Experimental Setup and Datasets
The methods were evaluated on 13 diverse biomedical image datasets, covering cellular imaging (CH, HE, RN), tissue analysis (CO, BGR, LAR), and subcellular location (LO, TR). All images were resized to 224×224 to fit standard CNN requirements.
Key Results and Insights
The results demonstrate that diversity drives ensemble success. By forcing each layer to use a different, randomly selected activation function, the researchers created "partially independent classifiers" that, when fused, are far more robust than standard ReLU-based networks.
As shown in the performance table, wMeLU(255) (Wider Mexican ReLU) achieved the top rank among standalone models. The stochastic ensemble SOldAS also performed exceptionally well, ranking 3rd overall and significantly outperforming the standard ReLU baseline (Rank 6). Statistical analysis using the Wilcoxon signed-rank test confirmed that these stochastic ensembles were superior to standard approaches with a p-value < 0.05.
Conclusion
This study proves that the standard approach of using uniform ReLU activations is often suboptimal for medical image classification. By injecting randomness into the choice of activation layers and leveraging ensembles, researchers can achieve state-of-the-art performance across a wide variety of healthcare datasets. Future work will explore applying these stochastic methods to lighter architectures like MobileNet for edge-device applications.
Summary updated