COMPARING THE PERFORMANCE BETWEEN FP-GROWTH AND APRIORI ALGORITHMS FOR ANALYZING SHOPPING PATTERNS IN A COFFEE SHOP
Main Article Content
Abstract
The current study, namely Comparison of FP-Growth and Apriori Algorithms for Analyzing Shopping Patterns in a Coffee Shop, was aimed to investigate association rules and compare the performance of the Apriori and FP-Growth algorithms in analyzing customer purchase transactions in a coffee shop. The dataset, consisting of 1,000 transactions, was obtained from the Kaggle website then analyzed using data mining techniques with the Python programming language and the mlxtend library. The research results were revealed that both algorithms could generate association rules with high confidence values. For example, the rule (Latte) → (Croissant) achieved a confidence of 85%. However, FP-Growth algorithms demonstrated the better performance than Apriori’s, spending 0.01 seconds of processing time and using 30.34 KB of memory. On the other hand, Apriori algorithms spending 0.00 seconds and using 30.33 KB. Although Apriori algorithms are suitable for small datasets, FP-Growth offers a structural advantage through its use of the FP-Tree, which reduces redundant data scans. FP-Growth algorithms are more suitable for large and complex datasets.
Downloads
Article Details
Copyright Notice
The copyright of research articles published in the VRU Research and Development Journal Science and Technology Journal belongs to the Research and Development Institute, Valaya Alongkorn Rajabhat University under the Royal Patronage. Reproduction of the content, in whole or in part, is prohibited without prior written permission from the university.
Responsibility
The content published in the VRU Research and Development Journal Science and Technology Journal is the sole responsibility of the author(s). The journal does not assume responsibility for errors arising from the printing process.
References
Chusna, N. L., Herwanto, & Sari, I. P. (2021). Application of data mining for product purchase pattern analysis with frequent pattern growth (FP-Growth) algorithm on sales transaction data. Journal of Science, Technology, and Engineering, 1(1), 1–6.
Hunyadi, D. (2011). Performance comparison of Apriori and FP-Growth algorithms in generating association rules. Proceedings of the European Computing Conference, 376–381.
Istrat, V., & Lalić, N. (2017). Association rules as a decision making model in the textile industry. Fibres & Textiles in Eastern Europe, 25, 4(124), 8-14.
Mustakim, M., & Team. (2018). Market basket analysis using Apriori and FP-Growth for analysis consumer expenditure patterns at Berkah Mart in Pekanbaru Riau. Journal of Physics: Conference Series, 1114(1), 012131, 1-9.
Sun, X., Ngueilbaye, A., Luo, K., Cai, Y., Wu, D., & Huang, J. Z. (2024). A scalable and flexible basket analysis system for big transaction data in Spark. Information Processing and Management, 61(2), 103577, 1-22.