CL-SR: Boosting Imbalanced Image Classification with Contrastive Learning and Synthetic Minority Oversampling Technique Based on Rough Set Theory Integration
Source abstract
Abstract
Image recognition models often struggle with class imbalance, which can impede their performance. To overcome this issue, researchers have extensively used resampling methods, traditionally focused on tabular datasets. In contrast to the original method, which generates data at the data level, this paper introduces a novel strategy that combines contrastive learning with the Synthetic Minority Oversampling Technique based on Rough Set Theory (SMOTE-RSB) specifically tailored for imbalanced image datasets. Our method leverages contrastive learning to refine representation learning and balance features, thus effectively mitigating the challenges of imbalanced image classification. We begin by extracting features using a pre-trained contrastive learning encoder. Subsequently, SMOTE-RSB is applied to these features to augment underrepresented classes and reduce irrelevant features. We evaluated our approach on several modified benchmark datasets, including CIFAR-10, SVHN, and ImageNet-LT, achieving notable improvements: an F1 score of 72.43% and a Gmean of 82.53% on the CIFAR-10 long-tailed dataset, F1 scores up to 79.57% and Gmean of 88.20% on various SVHN datasets, and a Top-1 accuracy of 68.67% on ImageNet-LT. Both qualitative and quantitative results confirm the effectiveness of our method in managing imbalances in image datasets. Additional ablation studies exploring various contrastive learning models and oversampling techniques highlight the flexibility and efficiency of our approach across different settings, underscoring its significant potential for enhancing imbalanced image classification.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Imbalanced Data Classification Techniques · Electricity Theft Detection Techniques · Digital Imaging for Blood Diseases
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Information and Computer Science, Xinhua College of Ningxia University, Yinchuan 750021, China
College of Computing, Informatics and Mathematics, Universiti Teknologi MARA, Shah Alam 40450, Selangor, Malaysia
Funding
scientific research project of Xinhua College of Ningxia University
References (58)
Show source-provided references
1. Learning imbalanced datasets with label-distribution-aware margin loss
2. Survey on deep learning with class imbalance10.1186/s40537-019-0192-5 ↗
3. A survey on imbalanced learning: Latest research, applications and future directions10.1007/s10462-024-10759-6 ↗
4. The balancing trick: Optimized sampling of imbalanced datasets—A brief survey of the recent State of the Art10.1002/eng2.12298 ↗
5. Chen, P., Yao, R., and Wang, N. (2022, January 17–18). Research on Two-Stage AMI Intrusion Detection Method for Imbalanced Data. Proceedings of the Annual Conference of China Electrotechnical Society, Beijing, China.10.1007/978-981-99-0408-2_18 ↗
6. CEGAN: Classification Enhancement Generative Adversarial Networks for unraveling data imbalance problems10.1016/j.neunet.2020.10.004 ↗
7. DeepSMOTE: Fusing deep learning and SMOTE for imbalanced data10.1109/TNNLS.2021.3136503 ↗
8. Dablain, D.A., Bellinger, C., Krawczyk, B., and Chawla, N.V. (2023, January 3–7). Efficient augmentation for imbalanced deep learning. Proceedings of the 2023 IEEE 39th International Conference on Data Engineering (ICDE), Anaheim, CA, USA.10.1109/ICDE55515.2023.00114 ↗
9. Big self-supervised models are strong semi-supervised learners
10. Bootstrap your own latent-a new approach to self-supervised learning
11. Rethinking the value of labels for improving class-imbalanced learning
12. Jiang, Z., Chen, T., Mortazavi, B.J., and Wang, Z. (2021, January 18–24). Self-damaging contrastive learning. Proceedings of the International Conference on Machine Learning, PMLR, Virtual.
13. Cui, J., Zhong, Z., Liu, S., Yu, B., and Jia, J. (2021, January 11–17). Parametric contrastive learning. Proceedings of the IEEE/CVF International Conference on Computer Vision, Virtual.10.1109/ICCV48922.2021.00075 ↗
14. Chen, X., Fan, H., Girshick, R., and He, K. (2020). Improved baselines with momentum contrastive learning. arXiv.
15. Zhu, J., Wang, Z., Chen, J., Chen, Y.P.P., and Jiang, Y.G. (2022, January 18–24). Balanced contrastive learning for long-tailed visual recognition. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.00678 ↗
16. Comparing oversampling techniques to handle the class imbalance problem: A customer churn prediction case study10.1109/ACCESS.2016.2619719 ↗
17. Synthetic minority oversampling technique for multiclass imbalance problems10.1016/j.patcog.2017.07.024 ↗
18. SMOTE: Synthetic minority over-sampling technique10.1613/jair.953 ↗
19. Han, H., Wang, W.Y., and Mao, B.H. (2005, January 23–26). Borderline-SMOTE: A new over-sampling method in imbalanced data sets learning. Proceedings of the International Conference on Intelligent Computing, Hefei, China.10.1007/11538059_91 ↗
20. Bunkhumpornpat, C., Sinapiromsaran, K., and Lursinsap, C. (2009, January 27–30). Safe-level-smote: Safe-level-synthetic minority over-sampling technique for handling the class imbalanced problem. Proceedings of the Advances in Knowledge Discovery and Data Mining: 13th Pacific-Asia Conference, PAKDD 2009, Bangkok, Thailand. Proceedings 13.10.1007/978-3-642-01307-2_43 ↗
21. SMOTE–IPF: Addressing the noisy and borderline examples problem in imbalanced classification by a re-sampling method with filtering10.1016/j.ins.2014.08.051 ↗
22. Smote-rs b*: A hybrid preprocessing approach based on oversampling and undersampling for high imbalanced data-sets using smote and rough sets theory10.1007/s10115-011-0465-6 ↗
23. Long-tailed visual recognition with deep models: A methodological survey and evaluation10.1016/j.neucom.2022.08.031 ↗
24. Lin, T.Y., Goyal, P., Girshick, R., He, K., and Dollár, P. (2017, January 22–29). Focal loss for dense object detection. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.324 ↗
25. Cui, Y., Jia, M., Lin, T.Y., Song, Y., and Belongie, S. (2019, January 15–20). Class-balanced loss based on effective number of samples. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00949 ↗
26. Wang, T., Zhu, Y., Zhao, C., Zeng, W., Wang, J., and Tang, M. (2021, January 20–25). Adaptive class suppression loss for long-tail object detection. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.00312 ↗
27. Hsieh, T.I., Robb, E., Chen, H.T., and Huang, J.B. (2021, January 2–9). Droploss for long-tail instance segmentation. Proceedings of the AAAI Conference on Artificial Intelligence, Virtually.10.1609/aaai.v35i2.16246 ↗
28. Wang, J., Zhang, W., Zang, Y., Cao, Y., Pang, J., Gong, T., Chen, K., Liu, Z., Loy, C.C., and Lin, D. (2021, January 20–25). Seesaw loss for long-tailed instance segmentation. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.00957 ↗
29. Tan, J., Wang, C., Li, B., Li, Q., Ouyang, W., Yin, C., and Yan, J. (2020, January 13–19). Equalization loss for long-tailed object recognition. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.01168 ↗
30. Deng, Z., Liu, H., Wang, Y., Wang, C., Yu, Z., and Sun, X. (2021, January 20–25). Pml: Progressive margin loss for long-tailed age classification. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01036 ↗
31. Goyal, P., Mahajan, D., Gupta, A., and Misra, I. (November, January 27). Scaling and benchmarking self-supervised visual representation learning. Proceedings of the IEEE/CVF International Conference on Computer Vision, Seoul, Republic of Korea.
32. Kotar, K., Ilharco, G., Schmidt, L., Ehsani, K., and Mottaghi, R. (2021, January 11–17). Contrasting contrastive self-supervised representation learning pipelines. Proceedings of the IEEE/CVF International Conference on Computer Vision, Montreal, BC, Canada.10.1109/ICCV48922.2021.00980 ↗
33. He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. (2020, January 13–19). Momentum contrast for unsupervised visual representation learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.00975 ↗
34. Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. (2020, January 13–18). A simple framework for contrastive learning of visual representations. Proceedings of the International Conference on Machine Learning, PMLR, Virtual.
35. Unsupervised learning of visual features by contrasting cluster assignments
36. Chen, X., and He, K. (2021, January 20–25). Exploring simple siamese representation learning. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA.10.1109/CVPR46437.2021.01549 ↗
37. Goyal, P., Caron, M., Lefaudeux, B., Xu, M., Wang, P., Pai, V., Singh, M., Liptchinsky, V., Misra, I., and Joulin, A. (2021). Self-supervised pretraining of visual features in the wild. arXiv.
38. Contrastive representation learning: A framework and review10.1109/ACCESS.2020.3031549 ↗
39. Chopra, S., Hadsell, R., and LeCun, Y. (2005, January 20–26). Learning a similarity metric discriminatively, with application to face verification. Proceedings of the 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), San Diego, CA, USA.
40. Schroff, F., Kalenichenko, D., and Philbin, J. (2015, January 7–12). Facenet: A unified embedding for face recognition and clustering. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298682 ↗
41. Fixmatch: Simplifying semi-supervised learning with consistency and confidence
42. Tian, Y., Krishnan, D., and Isola, P. (2020, January 23–28). Contrastive multiview coding. Proceedings of the Computer Vision–ECCV 2020: 16th European Conference, Glasgow, UK. Proceedings, Part XI 16.
43. Class-imbalanced deep learning via a class-balanced ensemble10.1109/TNNLS.2021.3071122 ↗
44. Wang, X., Lian, L., Miao, Z., Liu, Z., and Yu, S.X. (2020). Long-tailed recognition by routing diverse distribution-aware experts. arXiv.
45. Balanced meta-softmax for long-tailed visual recognition
46. Alshammari, S., Wang, Y.X., Ramanan, D., and Kong, S. (2022, January 18–24). Long-tailed recognition via weight balancing. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, New Orleans, LA, USA.10.1109/CVPR52688.2022.00677 ↗
47. Cong, C., Xuan, S., Liu, S., Zhang, S., Pagnucco, M., and Song, Y. (2024, January 20–27). Decoupled optimisation for long-tailed visual recognition. Proceedings of the AAAI Conference on Artificial Intelligence, Vancouver, BC, Canada.10.1609/aaai.v38i2.27902 ↗
48. Oord, A.v.d., Li, Y., and Vinyals, O. (2018). Representation learning with contrastive predictive coding. arXiv.
49. SSOMaj-SMOTE-SSOMin: Three-step intelligent pruning of majority and minority samples for learning from imbalanced datasets10.1016/j.asoc.2019.02.028 ↗
50. Shalev-Shwartz, S., and Ben-David, S. (2014). Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press.10.1017/CBO9781107298019 ↗
51. A systematic study of the class imbalance problem in convolutional neural networks10.1016/j.neunet.2018.07.011 ↗
52. Krizhevsky, A., and Hinton, G. (2024, November 25). Learning Multiple Layers of Features from Tiny Images. Technical Report, Department of Computer Science, University of Toronto. Available online: http://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf.
53. Liu, Z., Miao, Z., Zhan, X., Wang, J., Gong, B., and Yu, S.X. (2019, January 15–20). Large-scale long-tailed recognition in an open world. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR.2019.00264 ↗
54. Tree induction for probability-based ranking10.1023/A:1024099825458 ↗
55. Kang, B., Xie, S., Rohrbach, M., Yan, Z., Gordo, A., Feng, J., and Kalantidis, Y. (2019). Decoupling representation and classifier for long-tailed recognition. arXiv.
56. Machine learning made easy: A review of scikit-learn package in python programming language10.3102/1076998619832248 ↗
57. Combined cleaning and resampling algorithm for multi-class imbalanced data with label noise10.1016/j.knosys.2020.106223 ↗
58. Mariani, G., Scheidegger, F., Istrate, R., Bekas, C., and Malossi, C. (2018). Bagan: Data augmentation with balancing gan. arXiv.