Skip to main content

Comparative Study of Loss Functions for Imbalanced Dataset of Online Reviews

  • Conference paper
  • First Online:
Machine Learning and Computational Intelligence Techniques for Data Engineering (MISP 2022)

Abstract

Loss functions play a critical role in evaluating the performance of a model trained on specific parameters of the dataset. In simpler terms, loss functions serve as a penalty for a bad prediction to improve the prediction with its testing values. However, in the case of a prediction on an imbalanced dataset, the loss function must also be modified so that the weights of the loss that occurred due to misclassification do not change. In contrast, the weights in case of loss due to correct classification were reduced. Different developers have brought up a variety of loss functions to curb this problem that occurred due to an imbalanced dataset, one of them being the focal loss function. This focal loss function will be compared with the normal cross-entropy loss function, widely used in the evaluation. The final comparison between the two-loss functions will help determine whether the change of loss function can create how much difference in the model performance.

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 259.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 329.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 329.99
Price excludes VAT (USA)
  • Durable hardcover 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. Malavolta I, Ruberto S, Soru T, Terragni V (2015) Hybrid mobile apps in the google play store: an exploratory investigation. In: 2nd ACM international conference on mobile software engineering and systems, pp. 56–59

    Google Scholar 

  2. Viennot N, Garcia E, Nieh J (2014) A measurement study of google play. ACM SIGMETRICS Perform Eval Rev 42(1), 221–233

    Google Scholar 

  3. McIlroy S, Shang W, Ali N, Hassan AE (2017) Is it worth responding to reviews? Studying the top free apps in Google Play. IEEE Softw 34(3):64–71

    Article  Google Scholar 

  4. Shashank S, Naidu B (2020) Google play store apps—data analysis and ratings prediction. Int Res J Eng Technol (IRJET) 7:265–274

    Google Scholar 

  5. Arxiv A Longitudinal study of Google Play page, https://arxiv.org/abs/1802.02996, Accessed 21 Dec 2021

  6. Patil HP, Atique M (2015) Sentiment analysis for social media: a survey. In: 2nd international conference on information science and security (ICISS), pp. 1–4

    Google Scholar 

  7. Zainuddin N, Selamat, A.: Sentiment analysis using support vector machine. In: International conference on computer, communications, and control technology (I4CT) 2014, pp. 333–337

    Google Scholar 

  8. Dubey A, Rasool A (2021) Efficient technique of microarray missing data imputation using clustering and weighted nearest neighbor. Sci Rep 11(1)

    Google Scholar 

  9. Li X, Wang X, Liu H (2021) Research on fine-tuning strategy of sentiment analysis model based on BERT. In: International conference on communications, information system and computer engineering (CISCE), pp. 798–802

    Google Scholar 

  10. Mohammadian S, Karsaz A, Roshan YM (2017) A comparative analysis of classification algorithms in diabetic retinopathy screening. In: 7th international conference on computer and knowledge engineering (ICCKE) 2017, pp. 84–89

    Google Scholar 

  11. Latif R, Talha Abdullah M, Aslam Shah SU, Farhan M, Ijaz F, Karim A (2019) Data scraping from Google Play Store and visualization of its content for analytics. In: 2nd international conference on computing, mathematics and engineering technologies (iCoMET) 2019, pp. 1–8

    Google Scholar 

  12. Day M, Lin Y (2017) Deep learning for sentiment analysis on Google Play consumer review. IEEE Int Conf Inf Reuse Integr (IRI) 2017:382–388

    Google Scholar 

  13. Abdul Khalid KA, Leong TJ, Mohamed K (2016) Review on thermionic energy converters. IEEE Trans Electron Devices 63(6):2231–2241

    Article  Google Scholar 

  14. Regulin D, Aicher T, Vogel-Heuser B (2016) Improving transferability between different engineering stages in the development of automated material flow modules. IEEE Trans Autom Sci Eng 13(4):1422–1432

    Article  Google Scholar 

  15. Li D, Qian J (2016) Text sentiment analysis based on long short-term memory. In: First IEEE international conference on computer communication and the internet (ICCCI) 2016, pp. 471–475 (2016)

    Google Scholar 

  16. Lin T, Goyal P, Girshick R, He K, Dollár P (2020) Focal loss for dense object detection. IEEE Trans Pattern Anal Mach Intell 42(2):318–327

    Article  Google Scholar 

  17. Arxiv A Sentimental Education: Sentiment Analysis Using Subjectivity Summarization Based on Minimum Cuts, https://arxiv.org/abs/cs/0409058, Accessed 21 Dec 2021

  18. Sfu Webpage Methods for Creating Semantic Orientation Dictionaries, https://www.sfu.ca/~mtaboada/docs/publications/Taboada_et_al_LREC_2006.pdf, Accessed 21 Dec 2021

  19. Sudhir P, Suresh VD (2021) Comparative study of various approaches, applications and classifiers for sentiment analysis. Glob TransitS Proc 2(2):205–211

    Article  Google Scholar 

  20. Gillioz A, Casas J, Mugellini E, Khaled OA (2020) Overview of the transformer-based models for NLP tasks. In: 15th conference on computer science and information systems (FedCSIS) 2020, pp. 179–183

    Google Scholar 

  21. Zhou Y, Li M (2020) Online course quality evaluation based on BERT. In: 2020 International conference on communications, information system and computer engineering (CISCE) 2020, pp. 255–258

    Google Scholar 

  22. Truong TL, Le HL, Le-Dang TP (2020) Sentiment analysis implementing BERT-based pre-trained language model for Vietnamese. In: 7th NAFOSTED conference on information and computer science (NICS) 2020, pp. 362–367 (2020)

    Google Scholar 

  23. Kano T, Sakti S, Nakamura S (2021) Transformer-based direct speech-to-speech translation with transcoder. IEEE spoken language technology workshop (SLT) 2021, pp. 958–965

    Google Scholar 

  24. Arxiv Comparing BERT against traditional machine learning text classification, https://arxiv.org/abs/2005.13012, Accessed 21 Dec 2021

  25. Arxiv A Comparison of LSTM and BERT for Small Corpus, https://arxiv.org/abs/2009.05451, Accessed 21 Dec 2021

  26. Arxiv BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding, https://arxiv.org/abs/1810.04805, Accessed 21 Dec 2021

  27. Naseer M, Asvial M, Sari RF (2021) An empirical comparison of BERT, RoBERTa, and Electra for fact verification. In: International conference on artificial intelligence in information and communication (ICAIIC) 2021, pp. 241–246

    Google Scholar 

  28. Ho Y, Wookey S (2020) The real-world-weight cross-entropy loss function: modeling the costs of mislabeling. IEEE Access 8:4806–4813

    Article  Google Scholar 

  29. Zhou Y, Wang X, Zhang M, Zhu J, Zheng R, Wu Q (2019) MPCE: a maximum probability based cross entropy loss function for neural network classification. IEEE Access 7:146331–146341

    Article  Google Scholar 

  30. Yessou H, Sumbul G, Demir B (2020) A Comparative study of deep learning loss functions for multi-label remote sensing image classification. IGARSSIEEE international geoscience and remote sensing symposium 2020, pp. 1349–1352

    Google Scholar 

  31. Liu L, Qi H (2017) Learning effective binary descriptors via cross entropy. In: IEEE winter conference on applications of computer vision (WACV) 2017, pp. 1251–1258 (2017)

    Google Scholar 

  32. Riquelme N, Von Lücken C, Baran B (2015) Performance metrics in multi-objective optimization. In: Latin American Computing Conference (CLEI) 2015, pp. 1–11

    Google Scholar 

  33. Dubey A, Rasool A (2020) Clustering-based hybrid approach for multivariate missing data imputation. Int J Adv Comput Sci Appl (IJACSA) 11(11):710–714

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Aditya Dubey .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 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

Vyas, P., Sharma, M., Rasool, A., Dubey, A. (2023). Comparative Study of Loss Functions for Imbalanced Dataset of Online Reviews. In: Singh, P., Singh, D., Tiwari, V., Misra, S. (eds) Machine Learning and Computational Intelligence Techniques for Data Engineering. MISP 2022. Lecture Notes in Electrical Engineering, vol 998. Springer, Singapore. https://doi.org/10.1007/978-981-99-0047-3_11

Download citation

Publish with us

Policies and ethics