Skip to main content
Journal cover image

A systematic study of the class imbalance problem in convolutional neural networks.

Publication ,  Journal Article
Buda, M; Maki, A; Mazurowski, MA
Published in: Neural Netw
October 2018

In this study, we systematically investigate the impact of class imbalance on classification performance of convolutional neural networks (CNNs) and compare frequently used methods to address the issue. Class imbalance is a common problem that has been comprehensively studied in classical machine learning, yet very limited systematic research is available in the context of deep learning. In our study, we use three benchmark datasets of increasing complexity, MNIST, CIFAR-10 and ImageNet, to investigate the effects of imbalance on classification and perform an extensive comparison of several methods to address the issue: oversampling, undersampling, two-phase training, and thresholding that compensates for prior class probabilities. Our main evaluation metric is area under the receiver operating characteristic curve (ROC AUC) adjusted to multi-class tasks since overall accuracy metric is associated with notable difficulties in the context of imbalanced data. Based on results from our experiments we conclude that (i) the effect of class imbalance on classification performance is detrimental; (ii) the method of addressing class imbalance that emerged as dominant in almost all analyzed scenarios was oversampling; (iii) oversampling should be applied to the level that completely eliminates the imbalance, whereas the optimal undersampling ratio depends on the extent of imbalance; (iv) as opposed to some classical machine learning models, oversampling does not cause overfitting of CNNs; (v) thresholding should be applied to compensate for prior class probabilities when overall number of properly classified cases is of interest.

Duke Scholars

Altmetric Attention Stats
Dimensions Citation Stats

Published In

Neural Netw

DOI

EISSN

1879-2782

Publication Date

October 2018

Volume

106

Start / End Page

249 / 259

Location

United States

Related Subject Headings

  • ROC Curve
  • Probability
  • Neural Networks, Computer
  • Machine Learning
  • Humans
  • Artificial Intelligence & Image Processing
  • 4905 Statistics
  • 4611 Machine learning
  • 4602 Artificial intelligence
 

Citation

APA
Chicago
ICMJE
MLA
NLM
Buda, M., Maki, A., & Mazurowski, M. A. (2018). A systematic study of the class imbalance problem in convolutional neural networks. Neural Netw, 106, 249–259. https://doi.org/10.1016/j.neunet.2018.07.011
Buda, Mateusz, Atsuto Maki, and Maciej A. Mazurowski. “A systematic study of the class imbalance problem in convolutional neural networks.Neural Netw 106 (October 2018): 249–59. https://doi.org/10.1016/j.neunet.2018.07.011.
Buda M, Maki A, Mazurowski MA. A systematic study of the class imbalance problem in convolutional neural networks. Neural Netw. 2018 Oct;106:249–59.
Buda, Mateusz, et al. “A systematic study of the class imbalance problem in convolutional neural networks.Neural Netw, vol. 106, Oct. 2018, pp. 249–59. Pubmed, doi:10.1016/j.neunet.2018.07.011.
Buda M, Maki A, Mazurowski MA. A systematic study of the class imbalance problem in convolutional neural networks. Neural Netw. 2018 Oct;106:249–259.
Journal cover image

Published In

Neural Netw

DOI

EISSN

1879-2782

Publication Date

October 2018

Volume

106

Start / End Page

249 / 259

Location

United States

Related Subject Headings

  • ROC Curve
  • Probability
  • Neural Networks, Computer
  • Machine Learning
  • Humans
  • Artificial Intelligence & Image Processing
  • 4905 Statistics
  • 4611 Machine learning
  • 4602 Artificial intelligence