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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Pine, B.J.: Mass Customization, vol. 17. Harvard Business School Press, Boston (1993)
Shahjee, R.: The impact of electronic commerce on business organization. Sch. Res. J. Interdisc. Stud. 4(27), 3130–3140 (2016)
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
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
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
Kupisz, B., Unold, O.: Collaborative filtering recommendation algorithm based on Hadoop and spark. In: 2015 IEEE International Conference on Industrial Technology (ICIT). IEEE (2015)
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)
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)
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)
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)
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)
Jooa, J., Bangb, S., Parka, G.: Implementation of a recommendation system using association rules and collaborative filtering. Proc. Comput. Sci. 91, 944–952 (2016)
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
Koren, Y., Bell, R., Volinsky, C.: Matrix factorization techniques for recommender systems. Computer 42(8), 30–37 (2009)
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)
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
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
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)
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
Harper, F.M., Konstan, J.A.: The movielens datasets: history and context. Acm. Trans. Interact. Intell. Syst. (tiis) 5(4), 1–19 (2015)
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
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
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
Islam, M.Z., Hossain, M.S., ul Islam, R., Andersson, K.: Static hand gesture recognition using convolutional neural network with data augmentation, May 2019
Sinitsyn, S., et al.: The concept of information modeling in interactive intelligence systems. In: International Conference on Intelligent Computing & Optimization. Springer, Cham (2019)
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)
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
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)
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
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
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
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
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2021 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
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
DOI: https://doi.org/10.1007/978-3-030-68154-8_75
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-68153-1
Online ISBN: 978-3-030-68154-8
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)