Enhancing Product Recommendations Using ALS Matrix Factorization on Retailrocket with Apache Spark

Authors

  • Agustina STMIK Pelita Nusantara
  • R. Mahdalena Simanjorang STMIK PELITA NUSANTARA
  • Bagas Multasyah STMIK PELITA NUSANTARA
  • Bagus Rivaldi STMIK PELITA NUSANTARA

DOI:

https://doi.org/10.30865/ijics.v10i2.9845

Keywords:

Matrix Factorization, Alternating Least Squares, Recommendation System, Big Data, Collaborative Filtering

Abstract

The rapid growth of e-commerce has generated massive volumes of user interaction data, requiring recommendation systems capable of providing accurate and relevant product suggestions. However, conventional recommendation systems still face sparsity issues and low prediction accuracy in large-scale data environments. This study aims to improve the accuracy of big data-based product recommendation systems by implementing Matrix Factorization using the Alternating Least Squares (ALS) algorithm. The research utilized the Retailrocket E-commerce Dataset consisting of 104,287 interaction records, 18,642 users, and 7,831 products with a sparsity level of 96.8%. Implicit interactions, including product views, add-to-cart activities, and purchases, were transformed into weighted preference values to represent user behavior. The model was implemented using Apache Spark MLlib within a distributed computing environment. Model evaluation was conducted using RMSE, MAE, Precision@10, and Recall@10 metrics with a 5-fold cross-validation approach. The experimental results indicate that the optimal configuration was achieved using 50 latent factors, 0.05 regularization, and 20 iterations, producing an RMSE value of 0.836, MAE of 0.689, Precision@10 of 0.861, and Recall@10 of 0.824. These findings demonstrate that ALS-based Matrix Factorization effectively improves recommendation quality while supporting scalability for large-scale data processing in modern e-commerce environments.

Keywords: Matrix Factorization, Alternating Least Squares, Recommendation System, Big Data, Collaborative Filtering.

References

[1] S. Silviawati, E. S. Wibawa, N. A. Wardani, and S. Wahyuning, “Peran E-Commerce dalam Transformasi Digital UMKM Indonesia : Sebuah Kajian Literatur,” vol. 3, 2025.

[2] A. Pertiwi and R. Puspita, “Penerapan Big Data Analytics untuk Pengambilan Keputusan Bisnis pada,” vol. 4, no. 4, pp. 7857–7864, 2025.

[3] H. A. Adyatma and Z. K. A. Baizal, “Book Recommender System Using Matrix Factorization with Alternating Least Square Method,” vol. 4, no. 4, pp. 1286–1292, 2023, doi: 10.47065/josh.v4i4.3816.

[4] Z. Wu, C. Mao, Y. Liu, and Z. Shi, “SS symmetry Matrix Factorization Recommendation Algorithm Based on,” 2024.

[5] J. Bobadilla, J. Dueñas-lerín, F. Ortega, and A. Gutierrez, “Comprehensive Evaluation of Matrix Factorization Models for Collaborative Filtering Recommender Systems,” vol. 8, no. 6, pp. 15–23, 2024, doi: 10.9781/ijimai.2023.04.008.

[6] D. M. Saputra, N. Angelia, and N. Yusliani, “Informasi,” vol. 5, no. 3, pp. 122–127, 2024, doi: 10.62527/jitsi.5.3.2.

[7] Y. Wen, S. Kang, Q. Zeng, H. Duan, and X. Chen, “Session-Based Recommendation with GNN and Time-Aware Memory Network,” vol. 2022, 2022, doi: 10.1155/2022/1879367.

[8] H. Liu et al., “OPEN A scalable hybrid framework for boosting customer experience and operational efficiency in e-commerce,” pp. 1–30, 2026.

[9] T. Nguyen, L. N. Van, and K. Than, “Modeling the sequential behaviors of online users in recommender systems,” no. 1.

[10] Z. Meng, R. Mccreadie, C. Macdonald, and I. Ounis, “Exploring Data Splitting Strategies for the Evaluation of Recommendation Models,” pp. 1–8, 2020.

[11] M. Sari, Masri and P. Avrianto, Refgiufi, “Big Data dalam Bisnis : Studi Literatur dan Penerapannya di Indonesia,” vol. 07, no. April, pp. 25–36, 2025.

[12] H. B. Barua and K. C. Mondal, “Cloud Big Data Mining and Analytics : Bringing Greenness and Acceleration in the Cloud,” pp. 1–22.

[13] N. Fajriyah, W. Setiawan, E. Dewi, and T. Duha, “Implementasi Teknologi Big Data Di Era Digital,” vol. 1, no. 1, pp. 1–7, 2022.

[14] A. H. Ritdrix, P. W. Wirawan, and U. Diponegoro, “Sistem Rekomendasi Buku Menggunakan Metode Item-Based Collaborative,” 2025, vol. 9, pp. 24–32.

[15] D. Pratiwi and L. Rosnita, “Penerapan Metode Content-Based Filtering dalam Sistem Rekomendasi Objek Wisata di Aceh Tamiang,” vol. 4, no. 2, pp. 85–96, 2024.

[16] D. Sartika, F. Elfaladonna, A. Octarina, and F. P. Kesuma, “Analisis Kinerja Sistem Rekomendasi yang Menggunakan Collaborative Filtering Berdasarkan Pengguna dengan Python,” vol. 3, no. 1, pp. 4686–4696, 2025.

[17] F. Y. A, N. Firdaus, and A. Supriyadi, “Optimizing Alternating Least Squares for Recommender Systems Using Particle Swarm Optimization,” vol. 6, no. 4, pp. 2867–2877, 2025.

[18] H. K. Omar, M. Frikha, and A. K. Jumaa, “Improving Big Data Recommendation System Performance Using NLP Techniques With Multi-attributes,” vol. 48, pp. 63–70, 2024.

[19] D. M. . Powers, “Evaluation : From Precision , Recall And F-Measure To Roc , Informedness , Markedness & Correlation,” pp. 37–63.

Downloads

Published

2026-07-29

How to Cite

Agustina, Simanjorang, R. M., Bagas Multasyah, & Bagus Rivaldi. (2026). Enhancing Product Recommendations Using ALS Matrix Factorization on Retailrocket with Apache Spark. The IJICS (International Journal of Informatics and Computer Science), 10(2), 107–114. https://doi.org/10.30865/ijics.v10i2.9845

Issue

Section

Articles

Most read articles by the same author(s)