Skip to main content

Dynamic Weight Distribution Method of Loss Function Based on Category Theory

  • Conference paper
  • First Online:
Advanced Intelligent Computing Technology and Applications (ICIC 2024)

Abstract

Imbalanced datasets are prevalent in real life, which have a skewed data distribution. In the research of imbalanced datasets, the inherent patterns of minority class affect the generalization performance of Machine Learning models. The re-weighting/re-sampling methods are used to address the issue of imbalanced datasets. However, the above methods are formulated based on empirical and heuristic rules. A theoretical framework is required in the presentation of the re-weighting/re-sampling methods. Category Theory is used as a framework to analyze the training process of Machine Learning models on imbalanced data. Based on the analysis, a method named Dynamic Weight Adjustment (DWA) is proposed to improve the generalization performance of models on imbalanced data. The imbalanced datasets for binary classification and multi-classification problems are used to verify the effectiveness of the DWA. The results of the DWA are the best in both imbalanced datasets for binary classification and multi-classification problems.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Chen, X., et al.: MOVNG: applied a novel sparse fusion representation into GTCN for pan-cancer classification and biomarker identification. In: International Conference on Intelligent Computing (2023)

    Google Scholar 

  2. Chen, X., et al.: Identification of suitable technologies for drinking water quality prediction: a comparative study of traditional, ensemble, cost-sensitive, outlier detection learning models and sampling algorithms. In: ACS ES&T Water (2021)

    Google Scholar 

  3. Desiani, A., et al.: Handling the imbalanced data with missing value elimination SMOTE in the classification of the relevance education background with graduates employment. IAES Int. J. Artif. Intell. 10, 346 (IJ-AI) (2021)

    Google Scholar 

  4. Zhang, Y., Hui, L.: Rolling bearing fault diagnosis based on graph convolution neural network. In: International Conference on Intelligent Computing (2022)

    Google Scholar 

  5. Oksuz, K., et al.: Imbalance problems in object detection: a review. IEEE Trans. Pattern Anal. Mach. Intell. 43, 3388–3415 (2019)

    Google Scholar 

  6. Mathews, L., Seetha, H.: Learning from imbalanced data. In: Advances in Computer and Electrical Engineering (2019)

    Google Scholar 

  7. Leevy, J.L., et al.: A survey on addressing high-class imbalance in big data. J. Big Data 5, 1–30 (2018)

    Article  Google Scholar 

  8. Rendón, E., et al.: Data sampling methods to deal with the big data multi-class imbalance problem. Appl. Sci. 10, 1276 (2020)

    Google Scholar 

  9. Peng, M., et al.: Trainable undersampling for class-imbalance learning. In: AAAI Conference on Artificial Intelligence (2019)

    Google Scholar 

  10. Elreedy, D., Atiya, A.F.: A comprehensive analysis of Synthetic Minority Oversampling Technique (SMOTE) for handling class imbalance. Inf. Sci. 505, 32–64 (2019)

    Article  Google Scholar 

  11. Yang, Y., et al.: Delving into deep imbalanced regression. In: International Conference on Machine Learning. PMLR (2021)

    Google Scholar 

  12. Tang, K., Huang, J., Zhang, H.: Long-tailed classification by keeping the good and removing the bad momentum causal effect. Adv. Neural. Inf. Process. Syst. 33, 1513–1524 (2020)

    Google Scholar 

  13. Alshammari, S., et al.: Long- Tailed Recognition via Weight Balancing. In: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 6887–6897 (2022)

    Google Scholar 

  14. Spivak, D.I.: Basic Category Theory (2014)

    Google Scholar 

  15. Shiebler, D., et al.: Category theory in machine learning. ArXiv abs/2106.07032 (2021)

    Google Scholar 

  16. Wilson, P.W., Fabio, Z.: Reverse derivative ascent: a categorical approach to learning Boolean circuits. ACT (2021)

    Google Scholar 

  17. Cruttwell, G.S.H., et al.: Categorical foundations of gradient-based learning. In: European Symposium on Programming (2021)

    Google Scholar 

  18. Northoff, G., et al.: Mathematics and the brain: a category theoretical approach to go beyond the neural correlates of consciousness. Entropy 21, 1234 (2019)

    Article  MathSciNet  Google Scholar 

  19. Dong, Q., et al.: Imbalanced deep learning by minority class incremental rectification. IEEE Trans. Pattern Anal. Mach. Intell. 41, 1367–1381 (2018)

    Article  Google Scholar 

  20. Cao, K., et al.: Learning imbalanced datasets with label-distribution-aware margin loss. In: Advances in Neural Information Processing Systems, vol. 32 (2019)

    Google Scholar 

  21. Lin, T.-Y., et al.: Focal loss for dense object detection. In: 2017 IEEE International Conference on Computer Vision (ICCV), pp. 2999–3007 (2017)

    Google Scholar 

  22. Kini, G.R., et al.: Label-Imbalanced and group-sensitive classification under over parameterization. In: Advances in Neural Information Processing Systems (2021)

    Google Scholar 

  23. Zhao, Y., et al.: A dynamic resampling based intrusion detection method. In: International Conference on Intelligent Computing (2023)

    Google Scholar 

  24. Park, S., et al.: The majority can help the minority: context-rich minority oversampling for long-tailed classification. In: 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 6877–6886 (2021)

    Google Scholar 

  25. Sambasivam, G., Geoffrey, D.O.: A predictive machine learning application in agriculture: Cassava disease detection and classification with imbalanced dataset using convolutional neural networks. Egyptian Informatics J. (2020)

    Google Scholar 

  26. Cui, Y., et al.: Class-balanced loss based on effective number of samples. In: 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 9260–9269 (2019)

    Google Scholar 

  27. Thiry, L., et al.: Categories for (Big) data models and optimization. J. Big Data 5, 21 (2018). https://doi.org/10.1186/s40537-018-0132-9

  28. Fuyama, M., et al.: A category theoretic approach to metaphor comprehension: theory of indeterminate natural transformation. Bio Syst. 197, 104213 (2020)

    Google Scholar 

Download references

Acknowledgments

This work is supported by Research Platforms and Projects of Universities in Guangdong Province, China - Youth Innovative Talents 2022KQNCX071.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Heng Zhao .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Chen, J., Zhao, H. (2024). Dynamic Weight Distribution Method of Loss Function Based on Category Theory. In: Huang, DS., Zhang, C., Pan, Y. (eds) Advanced Intelligent Computing Technology and Applications. ICIC 2024. Lecture Notes in Computer Science(), vol 14876. Springer, Singapore. https://doi.org/10.1007/978-981-97-5666-7_34

Download citation

  • DOI: https://doi.org/10.1007/978-981-97-5666-7_34

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-97-5665-0

  • Online ISBN: 978-981-97-5666-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics