Integration of RFM and Apriori Algorithm in a CRM System for Targeted Promotion
DOI:
https://doi.org/10.47709/brilliance.v6i4.10032Keywords:
Apriori Algorithm, Association Rule, Customer Relationship Management, Customer Segmentation, RFM Analysis, Targeted PromotionAbstract
The growth of small and medium-scale multi-vendor e-commerce platforms in Indonesia has increased the need for intelligent customer relationship management (CRM), yet most platforms managed by a single administrator still apply uniform promotions without considering differences in customer purchase behavior, which reduces marketing effectiveness and customer loyalty. This study aims to design and implement an integrated CRM system that combines Recency, Frequency, Monetary (RFM) analysis for customer segmentation with the Apriori algorithm for purchase pattern analysis to generate targeted promotion recommendations. The system was developed using Node.js, Python, React.js, and MongoDB, and encapsulates the entire analytical process from data preprocessing to recommendation output. The algorithms were validated using the Online Retail II dataset, which yielded 779,425 clean transaction records from 5,878 customers after preprocessing. RFM values were scored using a quintile-based approach and mapped into seven behavioral segments, after which the Apriori algorithm was applied specifically to the Champions segment with minimum support of 0.02, confidence of 0.30, and lift of 1.0. Champions, the highest-value segment, comprised 1,570 of these customers and accounted for 63.35 per cent of all orders, and rule mining on that segment generated 41 strong association rules with the highest lift reaching 26.41. The implemented system displayed these segments and the resulting product recommendations through an administrator dashboard. Transaction records from an Indonesian MSME retailer were further assessed, indicating that catalog breadth and repeat purchase behavior are preconditions for applying the approach in that setting.
References
Alves Gomes, M., & Meisen, T. (2023). A review on customer segmentation methods for personalized customer targeting in e-commerce use cases. Information Systems and e-Business Management, 21(3), 527–570. https://doi.org/10.1007/s10257-023-00640-4
Chen, A. H.-L., & Gunawan, S. (2023). Enhancing retail transactions: A data-driven recommendation using modified RFM analysis and association rules mining. Applied Sciences, 13(18), 10057. https://doi.org/10.3390/app131810057
Devi, R. F., Siswanto, F. H., Azkia, N., & Heikal, J. (2024). Customer segmentation based on RFM analysis as the basis of marketing strategy: Case study of PT Pertiwi Agung Pharmaceutical Industry (Landson). BUDGETING: Journal of Business, Management and Accounting, 5(2), 766–774. https://doi.org/10.31539/budgeting.v5i2.8994
?ukanovi?, M., Rogi?, S., Novi?evi?, L., Popovi?-Bugarin, V., & Jovanovi?, M. (2022). Application of Apriori algorithm for CRM improvement: Case study from Montenegro. In Proceedings of the 2022 8th International Conference on Computer Technology Applications (pp. 48–56). New York, NY: Association for Computing Machinery. https://doi.org/10.1145/3543712.3543733
Hendra, H., Hermawan, A., & Edy, E. (2024). Smart product recommendations in web e-commerce: Leveraging Apriori algorithm for market basket analysis. IJCCS (Indonesian Journal of Computing and Cybernetics Systems), 18(3).https://doi.org/10.22146/ijccs.89075
Hoque, M. J., Islam, M. S., & Mohtasim, S. A. (2024). Optimizing decision-making through customer-centric market basket analysis. Journal of Operational and Strategic Analytics, 2(2), 72–83. https://doi.org/10.56578/josa020201
Hunyadi, I. D., Constantinescu, N., & ?icleanu, O.-A. (2025). Efficient discovery of association rules in e-commerce: Comparing candidate generation and pattern growth techniques. Applied Sciences, 15(10), 5498. https://doi.org/10.3390/app15105498
Irawan, F., Amaluddin, F., & Wijayanti, A. (2025). E-commerce customer segmentation based on RFM analysis using DBSCAN algorithm to improve marketing strategy. Jurnal EMT KITA, 9(4), 1850–1859. https://doi.org/10.35870/emt.v9i4.5375
Kaban, E., Darmawiguna, I. G. M., & Kesiman, M. W. A. (2024). Optimizing customer purchase insights: Apriori algorithm for effective product bundle recommendations. Brilliance: Research of Artificial Intelligence, 4(2), 747–756. https://doi.org/10.47709/brilliance.v4i2.4981
Pai, P.-Y., Lin, S.-W., & Lu, W.-M. (2026). Integration of association rule mining and RFM analysis with machine learning for e-commerce customer value segmentation: A sustainable retail perspective. Quality & Quantity, 60(1), 87–125. https://doi.org/10.1007/s11135-025-02259-8
Sibarani, J. M. P., Akbar, Y., Sutisna, & Setiawan, K. (2024). Implementation of RFM analysis to enhance sales patterns of food and beverages at Bonjour Café and Resto using the Apriori algorithm. International Journal Software Engineering and Computer Science (IJSECS), 4(3), 1261–1279. https://doi.org/10.35870/ijsecs.v4i3.3073
Sudrajat, J., Maulana, A. I., Riswaya, A. R., Marjito, M., & Rizqiati, F. (2025). Customer relationship management information system analysis using RFM dashboard for customer segmentation strategy (Study on a ritel fashion company in Bandung). Jurnal Computech & Bisnis, 19(1), 74–82. https://doi.org/10.56447/jcb.v19i1.7
Susilowati, D., Hairani, H., Lestari, I. P., Marzuki, K., & Mardedi, L. Z. A. (2022). Segmentasi lokasi promosi penerimaan mahasiswa baru menggunakan metode RFM dan K-Means clustering. MATRIK: Jurnal Manajemen, Teknik Informatika dan Rekayasa Komputer, 21(2), 275–282. https://doi.org/10.30812/matrik.v21i2.1542
Verda, D., & Muselli, M. (2025). Alternative support threshold computation for market basket analysis. AppliedMath, 5(2), 71. https://doi.org/10.3390/appliedmath5020071
Y?ld?z, E., Güngör ?en, C., & I??k, E. E. (2023). A hyper-personalized product recommendation system focused on customer segmentation: An application in the fashion retail industry. Journal of Theoretical and Applied Electronic Commerce Research, 18(1), 571–596. https://doi.org/10.3390/jtaer18010029
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Salman Alfarisi, Ari Purno Wahyu Wibowo

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.















