Skip to main content

Recommendation System for E-commerce Using Alternating Least Squares (ALS) on Apache Spark

  • Conference paper
  • First Online:
Intelligent Computing and Optimization (ICO 2020)

Abstract

Recommendation system can predict the ratings of users to items by leveraging machine learning algorithms. The use of recommendation systems is common in e-commerce websites now-a-days. Since enormous amounts of data including users’ click streams, purchase history, demographics, social networking comments and user-item ratings are stored in e-commerce systems databases, the volume of the data is getting bigger at high speed, and the data is sparse. However, the recommendations and predictions must be made in real time, enabling to bring enormous benefits to human beings. Apache spark is well suited for applications which require high speed query of data, transformation and analytics results. Therefore, the recommendation system developed in this research is implemented on Apache Spark. Also, the matrix factorization using Alternating Least Squares (ALS) algorithm which is a type of collaborative filtering is used to solve overfitting issues in sparse data and increases prediction accuracy. The overfitting problem arises in the data as the user-item rating matrix is sparse. In this research a recommendation system for e-commerce using alternating least squares (ALS) matrix factorization method on Apache Spark MLlib is developed. The research shows that the RMSE value is significantly reduced using ALS matrix factorization method and the RMSE is 0.870. Consequently, it is shown that the ALS algorithm is suitable for training explicit feedback data set where users provide ratings for items.

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 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.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. Pine, B.J.: Mass Customization, vol. 17. Harvard Business School Press, Boston (1993)

    Google Scholar 

  2. Shahjee, R.: The impact of electronic commerce on business organization. Sch. Res. J. Interdisc. Stud. 4(27), 3130–3140 (2016)

    Google Scholar 

  3. Verma, J.P., Patel, B., Patel, A.: Big data analysis: recommendation system with Hadoop framework. In: 2015 IEEE International Conference on Computational Intelligence & Communication Technology, pp. 92–97. IEEE, February 2015

    Google Scholar 

  4. Alzogbi, P., Koleva, G.: Lausen, towards distributed multi-model learning on apache spark for model-based recommender. In: 2019 IEEE 35th International Conference on Data Engineering Workshops (ICDEW), pp. 193–200. IEEE, April 2019

    Google Scholar 

  5. Wei, J., He, J., Chen, K., Zhou, Y., Tang, Z.: Collaborative filtering and deep learning based hybrid recommendation for cold start problem. In: 2016 IEEE 14th International Conference on Dependable, Autonomic and Secure Computing, 14th International Conference on Pervasive Intelligence and Computing, 2nd International Conference on Big Data Intelligence and Computing and Cyber Science and Technology Congress (DASC/PiCom/DataCom/CyberSciTech), pp. 874–877. IEEE, August 2016

    Google Scholar 

  6. Kupisz, B., Unold, O.: Collaborative filtering recommendation algorithm based on Hadoop and spark. In: 2015 IEEE International Conference on Industrial Technology (ICIT). IEEE (2015)

    Google Scholar 

  7. Chen, Y.C.: User behavior analysis and commodity recommendation for point-earning apps. In: 2016 Conference on Technologies and Applications of Artificial Intelligence (TAAI). IEEE (2016)

    Google Scholar 

  8. Zhou, Y.H., Wilkinson, D., Schreiber, R.: Large scale parallel collaborative filtering for the Netflix prize. In: Proceedings of 4th International Conference on Algorithmic Aspects in Information and Management, Shanghai, pp. 337–348. Springer (2008)

    Google Scholar 

  9. Ponnam, L.T., et al.: Movie recommender system using item based collaborative filtering technique. In: International Conference on Emerging Trends in Engineering, Technology, and Science (ICETETS). IEEE (2016)

    Google Scholar 

  10. Dev, A.V., Mohan A.: Recommendation system for big data applications based on set similarity of user preferences. In: International Conference on Next Generation Intelligent Systems (ICNGIS). IEEE (2026)

    Google Scholar 

  11. Zeng, X., et al.: Parallelization of latent group model for group recommendation algorithm. In: IEEE International Conference on Data Science in Cyberspace (DSC). IEEE (2016)

    Google Scholar 

  12. Jooa, J., Bangb, S., Parka, G.: Implementation of a recommendation system using association rules and collaborative filtering. Proc. Comput. Sci. 91, 944–952 (2016)

    Article  Google Scholar 

  13. Panigrahi, S., Lenka, R.K., Stitipragyan, A.: A hybrid distributed collaborative filtering recommender engine using apache spark. In: ANT/SEIT, pp. 1000–1006, January 1026

    Google Scholar 

  14. Koren, Y., Bell, R., Volinsky, C.: Matrix factorization techniques for recommender systems. Computer 42(8), 30–37 (2009)

    Article  Google Scholar 

  15. Meng, X., Bradley, J., Yavuz, B., Sparks, E., Venkataraman, S., Liu, D., Freeman, J., Tsai, D.B., Amde, M., Owen, S., Xin, D.: Mllib: machine learning in apache spark. J. Mach. Learn. Res. 17(1), 1235–1241 (2016)

    MathSciNet  MATH  Google Scholar 

  16. Li, H., Wang, Y., Zhang, D., Zhang, M., Chang, E.Y.: Pfp: parallel fp-growth for query recommendation. In: Proceedings of the 2008 ACM Conference on Recommender Systems, pp. 107–114, October 2008

    Google Scholar 

  17. Shanahan, J.G., Dai, L.: Large scale distributed data science using apache spark. In: Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 2323–2324, August 2015

    Google Scholar 

  18. Sharma, S.: Dynamic hashtag interactions and recommendations: an implementation using apache spark streaming and graphX. In: Data Management, Analytics and Innovation, pp. 723–738. Springer, Singapore (2020)

    Google Scholar 

  19. Armbrust, M., Xin, R.S., Lian, C., Huai, Y., Liu, D., Bradley, J.K., Meng, X., Kaftan, T., Franklin, M.J., Ghodsi, A., Zaharia, M.M.: Spark sql: relational data processing in spark. In: Proceedings of the 2015 ACM SIGMOD International Conference on Management of Data, pp. 1383–1394, May 2015

    Google Scholar 

  20. Harper, F.M., Konstan, J.A.: The movielens datasets: history and context. Acm. Trans. Interact. Intell. Syst. (tiis) 5(4), 1–19 (2015)

    Google Scholar 

  21. Chowdhury, R.R., Hossain, M.S., ul Islam, R., Andersson, K., Hossain, S.: Bangla handwritten character recognition using convolutional neural network with data augmentation. In: 2019 Joint 8th International Conference on Informatics, Electronics & Vision (ICIEV) and 2019 3rd International Conference on Imaging, Vision & Pattern Recognition (icIVPR), pp. 318–323. IEEE, May 2019

    Google Scholar 

  22. Ahmed, T.U., Hossain, M.S., Alam, M.J., Andersson, K.: An integrated CNN-RNN framework to assess road crack. In: 2019 22nd International Conference on Computer and Information Technology (ICCIT), pp. 1–6. IEEE, December 2019

    Google Scholar 

  23. Ahmed, T.U., Hossain, S., Hossain, M.S., ul Islam, R., Andersson, K.: Facial expression recognition using convolutional neural network with data augmentation. In: 2019 Joint 8th International Conference on Informatics, Electronics & Vision (ICIEV) and 2019 3rd International Conference on Imaging, Vision & Pattern Recognition (icIVPR), pp. 336–341. IEEE, May 2019

    Google Scholar 

  24. Islam, M.Z., Hossain, M.S., ul Islam, R., Andersson, K.: Static hand gesture recognition using convolutional neural network with data augmentation, May 2019

    Google Scholar 

  25. Sinitsyn, S., et al.: The concept of information modeling in interactive intelligence systems. In:  International Conference on Intelligent Computing & Optimization. Springer, Cham (2019)

    Google Scholar 

  26. Alhendawi, K.M., Al-Janabi, A.A.: An intelligent expert system for management information system failure diagnosis. In: International Conference on Intelligent Computing & Optimization. Springer, Cham (2018)

    Google Scholar 

  27. Biswas, M., Chowdhury, S.U., Nahar, N., Hossain, M.S., Andersson, K.: A belief rule base expert system for staging non-small cell lung cancer under uncertainty. In: 2019 IEEE International Conference on Biomedical Engineering, Computer and Information Technology for Health (BECITHCON), pp. 47–52. IEEE, November 2019

    Google Scholar 

  28. Kabir, S., Islam, R.U., Hossain, M.S., Andersson, K.: An integrated approach of belief rule base and deep learning to predict air pollution. Sensors 20(7), 1956 (2020)

    Article  Google Scholar 

  29. Monrat, A.A., Islam, R.U., Hossain, M.S., Andersson, K.: A belief rule based flood risk assessment expert system using real time sensor data streaming. In: 2018 IEEE 43rd Conference on Local Computer Networks Workshops (LCN Workshops), pp. 38–45. IEEE, October 2018

    Google Scholar 

  30. Karim, R., Hossain, M.S., Khalid, M.S., Mustafa, R., Bhuiyan, T.A.: A belief rule-based expert system to assess bronchiolitis suspicion from signs and symptoms under uncertainty. In: Proceedings of SAI Intelligent Systems Conference, pp. 331–343. Springer, Cham, September 2016

    Google Scholar 

  31. Hossain, M.S., Monrat, A.A., Hasan, M., Karim, R., Bhuiyan, T. A., Khalid, M.S.: A belief rule-based expert system to assess mental disorder under uncertainty. In: 2016 5th International Conference on Informatics, Electronics and Vision (ICIEV), pp. 1089–1094. IEEE, May 2016

    Google Scholar 

  32. Hossain, M.S., Habib, I.B., Andersson, K.: A belief rule based expert system to diagnose dengue fever under uncertainty. In:2 017 Computing conference, pp. 179–186. IEEE July 2017

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Mohammad Shahadat Hossain .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Gosh, S., Nahar, N., Wahab, M.A., Biswas, M., Hossain, M.S., Andersson, K. (2021). Recommendation System for E-commerce Using Alternating Least Squares (ALS) on Apache Spark. In: Vasant, P., Zelinka, I., Weber, GW. (eds) Intelligent Computing and Optimization. ICO 2020. Advances in Intelligent Systems and Computing, vol 1324. Springer, Cham. https://doi.org/10.1007/978-3-030-68154-8_75

Download citation

Publish with us

Policies and ethics