Application of Apriori and FP-Growth Algorithms in Analyzing Drug Purchasing Patterns

Authors

  • Gemma Tahmid Alfaridzi UIN Sultan Syarif Kasim
  • Febi Nur Salisah UIN Sultan Syarif Kasim
  • Inggih Permana UIN Sultan Syarif Kasim

         DOI:

https://doi.org/10.62712/juktisi.v5i1.765

Keywords:

Data Mining, Drug Purchasing Patterns, Association Rule, Apriori, FP-Growth

Abstract

Pharmacy sales transaction data contain valuable information on customer purchasing patterns; however, in practice, such data are often used merely as operational records, making relationships between purchased drugs difficult to identify. This study analyzes drug purchasing patterns using the Apriori and FP-Growth algorithms based on sales transaction data from Apotek Gadi Lamba Condet for the period January to June 2025. The transaction data were processed through data cleaning, drug name standardization, and transformation into transaction format, resulting in 7,038 transactions with 1,495 drug items. Association rule mining was performed using a minimum support of 0.01 and a minimum confidence of 0.17. The results show that the Apriori and FP-Growth algorithms generate ten identical association rules with the same support, confidence, and lift values, and all rules have lift values greater than one. Paracetamol 500 MG emerges as the most frequently involved drug in the association rules. These findings demonstrate that, for medium-scale pharmacy transaction datasets, Apriori and FP-Growth have equivalent capability in identifying drug purchasing patterns, with the primary difference lying in computational efficiency rather than the quality of the generated patterns.

Downloads

Download data is not yet available.

References

M. R. D. Bahari and R. Kurniawan, “Analysis of Drug Sales Patterns in the Belawan Naval Hospital Pharmacy Using Apriori Algorithm,” Journal of Computer Networks, Architecture and High Performance Computing, vol. 6, no. 4, pp. 1759–1768, Oct. 2024, doi: 10.47709/cnahpc.v6i4.4805.

K. D. Widodo and A. P. Lemantara, “Analysis and Implementation of the Apriori Algorithm for Strategies to Increase Sales at Sakinah Mart,” JUITA : Jurnal Informatika., vol. 11, no. 2, p. 203, 2023, doi: 10.30595/juita.v11i2.17341.

R. Amelia, D. Darmansyah, and A. M. Rismadin, “Perbandingan Algoritma Apriori dan Fp-Growth dalam Pengaplikasian Market Basket Analysis untuk Strategi Bisnis Retail,” Building of Informatics, Technology and Science (BITS), vol. 6, no. 1, Jun. 2024, doi: 10.47065/bits.v6i1.5388.

A. Harahap, A. L. R. Perangin-Angin, K. Kumar, and S. P. Parsaoran, “ANALISIS PENERAPAN DATA MINING DALAM PENENTUAN TATA LETAK BARANG MENGGUNAKAN ALGORITMA APRIORI DAN FP-GROWTH,” Jurnal Teknik Informasi dan Komputer (Tekinkom), vol. 5, no. 2, p. 291, Dec. 2022, doi: 10.37600/tekinkom.v5i2.692.

D. Dwiputra, A. Mulyo Widodo, H. Akbar, and G. Firmansyah, “Evaluating the Performance of Association Rules in Apriori and FP-Growth Algorithms: Market Basket Analysis to Discover Rules of Item Combinations,” Journal of World Science, vol. 2, no. 8, pp. 1229–1248, Aug. 2023, doi: 10.58344/jws.v2i8.403.

M. M. Lawal and O. T. Matthew, “FP-Growth Algorithm: Mining Association Rules without Candidate Sets Generation,” Kasu Journal of Computer Science, vol. 1, no. 2, pp. 392–411, Jun. 2024, doi: 10.47514/kjcs/2024.1.2.0016.

B. Mohanty, M. Tripathy, and S. Champati, “Performance Analysis of Association Rule Mining Algorithms: Evidence from the Retailing Industry,” Journal of Engineering Science and Technology Review, vol. 16, no. 5, pp. 108–122, 2023, doi: 10.25103/jestr.165.14.

Moch. Syahrir and L. Z. A. Mardedi, “Determination of the best rule-based analysis results from the comparison of the Fp-Growth, Apriori, and TPQ-Apriori Algorithms for recommendation systems,” MATRIX : Jurnal Manajemen Teknologi dan Informatika, vol. 13, no. 2, pp. 52–67, Jul. 2023, doi: 10.31940/matrix.v13i2.52-67.

A. A. C. Pabendon and H. D. Purnomo, “Penerapan Algoritma Apriori dan FP-Growth Untuk Market Basket Analisis Pada Data Transaksi NonPromo,” JURNAL MEDIA INFORMATIKA BUDIDARMA, vol. 7, no. 3, p. 975, Jul. 2023, doi: 10.30865/mib.v7i3.6153.

A. I. Idris et al., “Comparison of Apriori, Apriori-TID and FP-Growth Algorithms in Market Basket Analysis at Grocery Stores,” The IJICS (International Journal of Informatics and Computer Science), vol. 6, no. 2, p. 107, Jul. 2022, doi: 10.30865/ijics.v6i2.4535.

P. Misra, “Purchase intention toward E-pharmacy: the consumption value perspective,” Int J Pharm Healthc Mark, vol. 19, no. 2, pp. 181–208, Apr. 2025, doi: 10.1108/IJPHM-12-2023-0107.

J. Nugraha and C. Yustia Purnamawati, “Application of the Association Method Using FP-Growth Algorithm to Find Pattern Of Medicine Purchasing Transactions at Pharmacy,” Journal of Applied Research In Computer Science and Information Systems, vol. 1, no. 2, pp. 48–53, Nov. 2023, doi: 10.61098/jarcis.v1i2.50.

B. Anwar, A. Ambiyar, and F. Fadhilah, “Application of the FP-Growth Method to Determine Drug Sales Patterns,” Sinkron, 2023, doi: 10.33395/sinkron.v8i1.12004.

D. Agushinta R. and M. M. Putri, “ASSOCIATION RULE ANALYSIS OF FP-GROWTH ALGORITHM ON DRUG PURCHASE PATTERNS,” Jurnal Ilmiah Teknologi dan Rekayasa, vol. 27, no. 3, pp. 196–212, 2022, doi: 10.35760/tr.2022.v27i3.4626.

Nurhachita and E. S. Negara, “A Comparison Between Naïve Bayes and The K-Means Clustering Algorithm for The Application of Data Mining on The Admission of New Students,” Jurnal Intelektualita: Keislaman, Sosial, dan Sains, vol. 17, pp. 43–48, Mar. 2020, doi: 10.5120/2237-2860.

S. Irianto Nadeak and Y. Ali, “Analysis of Data Mining Associations on Drug Sales at Pharmacies with APRIORI Techniques,” International Journal of Information System & Technology Akreditasi, vol. 5, no. 1, pp. 38–44, 2021.

F. Bao, L. Mao, Y. Zhu, C. Xiao, and C. Xu, “An Improved Evaluation Methodology for Mining Association Rules,” Axioms, vol. 11, no. 1, Jan. 2022, doi: 10.3390/axioms11010017.

K. Y. Huh and I. Song, “Analyzing collaborations in clinical trials in Korea using association rule mining,” Transl Clin Pharmacol, vol. 32, no. 4, pp. 177–186, Dec. 2024, doi: 10.12793/tcp.2024.32.e17.

Downloads

Published

2026-03-04

How to Cite

Alfaridzi, G. T., Nur Salisah, F., & Permana, I. (2026). Application of Apriori and FP-Growth Algorithms in Analyzing Drug Purchasing Patterns. Jurnal Komputer Teknologi Informasi Sistem Komputer (JUKTISI), 5(1), 128–134. https://doi.org/10.62712/juktisi.v5i1.765

Issue

Section

Articles