Apriori Algorithm for Analyzing Motorcycle Spare Part Purchase Patterns and Stock Optimization
DOI:
https://doi.org/10.51903/cgvqa534Keywords:
Data Mining, Apriori, Purchase Pattern, Product BundlingAbstract
Inventory management in motorcycle spare part businesses often faces challenges related to stock imbalances caused by the lack of insight into consumer purchasing patterns. CV FOLC MORA, a spare part retailer in Palembang, experiences inefficiencies in stock control, which can result in excessive inventory costs or lost sales opportunities when popular items are unavailable. This research aims to analyze purchasing patterns using the Apriori algorithm to support decision-making in stock optimization and sales improvement. The study adopts the CRISP-DM (Cross-Industry Standard Process for Data Mining) methodology, consisting of six stages: business understanding, data understanding, data preparation, modeling, evaluation, and deployment. Sales transaction data collected from January to April 2025 comprises 1,550 transactions and 6,478 item records. Data processing was conducted using Python with the Pandas and MLxtend libraries, and results were presented via an interactive dashboard built with Streamlit. The Apriori algorithm identified strong associations between products, such as “Ban Luar Swallow 80/90-17” and “Velg TK Excel Rim,” with a support value of 1%, confidence of 76%, and lift of 2.15. These findings provide actionable insights for product bundling strategies and restocking decisions. The developed dashboard enables business owners to upload transaction data, adjust analysis parameters, and view frequent itemsets and recommended product combinations. This approach enhances inventory management efficiency, supports data-driven marketing strategies, and ultimately contributes to increased customer satisfaction and sales performance.
References
[1] P. H. Putra, D. Selvida, and M. S. Novelan, “Application of Apriori Algorithm in Data Mining to Find Consumer Purchasing Patterns in Supermarkets,” J. Komput. Teknol. Inf. Sist. Inf., vol. 4, no. 1, pp. 221–226, Jun. 2025, doi: 10.62712/juktisi.v4i1.392.
[2] M. Qisman, R. Rosadi, and A. S. Abdullah, “Market Basket Analysis Using Apriori Algorithm to Find Consumer Patterns in Buying Goods Through Transaction Data (Case Study of Mizan Computer Retail Stores),” J. Phys. Conf. Ser., vol. 1722, no. 1, p. 012020, Jan. 2021, doi: 10.1088/1742-6596/1722/1/012020.
[3] B. H. Situmorang, A. Isra, D. Paragya, and D. A. A. Adhieputra, “Apriori Algorithm Application for Consumer Purchase Patterns Analysis,” Komputasi J. Ilm. Ilmu Komput. dan Mat., vol. 21, no. 1, pp. 15–20, 2024, doi: 10.33751/komputasi.v21i1.9260.
[4] I. P. S. Handika and I. K. S. Satwika, “Comparison of Apriori and Equivalence Class Transformation (ECLAT) Algorithms in Finding Purchase Patterns on Minimarket Transaction Data,” Netw. Eng. Res. Oper., vol. 9, no. 2, pp. 149–160, 2024, doi: 10.21107/nero.v9i2.28055.
[5] T. Setiadi, L. Rajendra, H. A. Fajri, and S. D. Ilhami, “Penerapan Sistem Informasi Untuk survei Marketplace dalam Bisnis Keatif UMKM Berbasis E-commerce: Teguh Setiadi, Laksamana Rajendra Haidar Azani Fajri, Susanti Dwi Ilhami,” J. Ilm. Sist. Inf., vol. 2, no. 2, pp. 16–29, Jun. 2023, doi: 10.51903/juisi.v2i2.655.
[6] Y. M. Dena, M. H. Rifqo, Y. Reswan, and A. . W. Mahfuzi, “Data Mining Implementation of Electronic Products Sales Using Apriori Algorithm (Case Study of Fokus Komputer Shop),” J. Komputer, Inf. dan Teknol., vol. 3, no. 1, pp. 171-186–171, Jun. 2023, doi: 10.53697/jkomitek.v3i1.1200.
[7] A. Nofianti, M. Y. Yawan, and M. A. Nazar, “Implementasi Data Mining dalam Pengolahan Data Transaksi Toko Sembako Menggunakan Algoritma Apriori (Studi Kasus : Toko Devan Mart),” G-Tech J. Teknol. Terap., vol. 7, no. 1, pp. 165–173, Jan. 2023, doi: 10.33379/gtech.v7i1.1962.
[8] M. I. Habibi, “Application of Data Mining for Ceramic Sales Using the Apriori Method,” Indones. J. Comput. Digit. Inf., vol. 2, no. 1, pp. 55–63, 2024, doi: 10.33379/ijokid.v2i1.1962.
[9] S. P. Pamungkas, D. Kurniawan, and T. Kurnialensya, “Perancangan Sistem Penjualan Berbasis Web Menggunakan Metode Objek,” J. Ilm. Sist. Inf., vol. 4, no. 1, pp. 25–36, Jan. 2025, doi: 10.51903/a49m7w68.
[10] X. Zhang and J. Zhang, “Analysis and Research on Library User Behavior Based on Apriori Algorithm,” Meas. Sensors, vol. 27, p. 100802, Jun. 2023, doi: 10.1016/j.measen.2023.100802.
[11] A. B. Saputra and E. Sofian, “Apriori Method for Sales Optimization of Rafin’s Snack Product as UMKM,” Int. J. Educ. Inf. Technol. Others, vol. 6, no. 1, pp. 113–122, Jan. 2023, doi: 10.5281/zenodo.7663022.
[12] T. Li, F. Liu, X. Chen, and C. Ma, “Web Log Mining Techniques to Optimize Apriori Association rule Algorithm in Sports Data Information Management,” Sci. Rep., vol. 14, no. 1, pp. 1–8, Dec. 2024, doi: 10.1038/s41598-024-74427-z.
[13] T. Sumarlin and N. Qosidah, “Optimizing Sales and Inventory Management with Machine Learning: Applications of Neural Networks and Random Forests,” J. Manag. Informatics, vol. 3, no. 2, pp. 312–327, Aug. 2024, doi: 10.51903/jmi.v3i2.35.
[14] M. Kurniawan and R. Prasetyo, “Market Basket Analysis for Retail Store Sales Optimization Using Apriori Algorithm,” IEEE, vol. 12, no. 2, pp. 75–82, 2024, doi: 10.1038/s41598-024-74427-z.
[15] M. Alawadh and A. Barnawi, “A Consumer Behavior Analysis Framework toward Improving Market Performance Indicators: Saudi’s Retail Sector as a Case Study,” J. Theor. Appl. Electron. Commer. Res., vol. 19, no. 1, pp. 152–171, Jan. 2024, doi: 10.3390/jtaer19010009.
[16] S. R. Yan, S. Pirooznia, A. Heidari, N. J. Navimipour, and M. Unal, “Implementation of a Product-Recommender System in an IoT-Based Smart Shopping Using Fuzzy Logic and Apriori Algorithm,” IEEE Trans. Eng. Manag., vol. 71, pp. 4940–4954, 2024, doi: 10.1109/tem.2022.3207326.
[17] S. Kumar, A. Chuli, A. Jain, and N. Prasanth, “Data Analytics for Pandemic Management Using MapReduce and Apriori Algorithm,” Procedia Comput. Sci., vol. 230, pp. 455–466, Jan. 2023, doi: 10.1016/j.procs.2023.12.101.
[18] K. A. Tarnowska, A. Bagavathi, and Z. W. Ras, “High-Performance Actionable Knowledge Miner for Boosting Business Revenue,” Appl. Sci., vol. 12, no. 23, p. 12393, Dec. 2022, doi: 10.3390/app122312393.
[19] A. Aldrawi and K. Akyol, “An Analytical Study on Information Technology and Functionality,” Int. J. Comput. Trends Technol., vol. 69, no. 5, pp. 13–21, May 2021, doi: 10.14445/22312803/ijctt-v69i5p103.
[20] V. Sakalauskas and D. Kriksciuniene, “Personalized Advertising in E-Commerce: Using Clickstream Data to Target High-Value Customers,” Algorithms, vol. 17, no. 1, p. 27, Jan. 2024, doi: 10.3390/a17010027.
[21] V. S. Adoe, D. kale Uly, and I. Inang, “Peranan Ecommerce dalam Peningkatan Penjualan (Studi Kasus: Mata Fashion Oebobo),” J. Ilm. Sist. Inf., vol. 1, no. 3, pp. 01–06, Nov. 2022, doi: 10.51903/juisi.v1i3.401.
[22] A. Hidayat, H. Susilowati, and A. Miranti, “Utilizing AI for Predicting Demand and Managing Supply Chains in E-commerce Organizations,” J. Manag. Informatics, vol. 3, no. 2, pp. 250–266, Aug. 2024, doi: 10.51903/jmi.v3i2.32.
[23] T. Ahmad Djabalul Lael, D. Akmal Pramudito, J. K. Raya Bandung Sumedang, K. Jatinangor, K. Sumedang, and J. Barat, “Use of Data Mining for The Analysis of Consumer Purchase Patterns with The Fpgrowth Algorithm on Motor Spare Part Sales Transactions Data,” IAIC Trans. Sustain. Digit. Innov., vol. 4, no. 2, pp. 128–136, Mar. 2023, doi: 10.34306/itsdi.v4i2.582.
[24] L. C. Ma, “Novel Next-Group Recommendation Approach Based on Sequential Market Basket Information,” Electron. Commer. Res., vol. 23, no. 4, pp. 2399–2418, Dec. 2023, doi: 10.1007/s10660-022-09543-x.
[25] B. Kumar, S. Roy, A. Sinha, C. Iwendi, and Ľ. Strážovská, “E-Commerce Website Usability Analysis Using the Association Rule Mining and Machine Learning Algorithm,” Mathematics, vol. 11, no. 1, p. 25, Dec. 2022, doi: 10.3390/math11010025.
Downloads
Published
Issue
Section
License
Copyright (c) 2025 Fillipo Simamora, Fransiska Prihatini Sihotang

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in this journal are open access and licensed under the terms of the Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA 4.0).
Under this license:
-
Authors retain copyright of their work.
-
Others are free to:
-
Share — copy and redistribute the material in any medium or format;
-
Adapt — remix, transform, and build upon the material for any purpose, even commercially;
-
-
As long as they:
-
Give appropriate credit to the original author(s) and the source;
-
Provide a link to the license;
-
Indicate if changes were made;
-
Distribute their contributions under the same license as the original.
-
This ensures that derivative works will also remain free and open under the same terms.













.png)