J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. REVENUE SEGMENTATION FROM PAYMENT AGGREGATOR USING K-MEANS CLUSTERIZATION METHOD Dimas Fahmi Suntoro1*. Netty Fitriani2. Arief Wibowo3 Economic and Bussiness Faculty. Universitas Budi Luhur. Jakarta. Indonesia Information Technology Faculty. Universitas Budi Luhur. Jakarta. Indonesia Email1*: 2231600632@student. Email2: 2231600590@student. Email3: arief. wibowo@budiluhur. ABSTRACT Customer habits during payment transactions can significantly influence the revenue of companies utilizing financial technology in selecting payment partners . ayment aggregator. Customers are highly selective in choosing payment aggregators based on convenience, promotions, and benefits offered. This study aims to assist management in decision-making and business analysis by identifying patterns and similarities in revenue data for payment aggregators. Revenue grouping in payment aggregators is conducted using data mining techniques for clustering, employing the K-Means method. This method partitions revenue data into groups based on similarities. Testing with various cluster numbers, specifically k = 2 with DBI = 0. k = 3 with DBI = 0. and k = 4 with DBI = 0. 116, and a maximum of ten iterations, revealed the best result with four clusters. The resulting clustering pattern categorizes payment types into four categories: Copper. Silver. Gold, and Platinum. The study findings indicate that payment methods such as CASH. MINIATM TRANSFER, and VA TRANSFER fall under the Platinum category, contributing the highest revenue at 10. 78% of the total income. Based on this clustering pattern and the insights provided, companies should maintain features that support payment aggregators in the Platinum category, while for the Copper category, which generates the lowest revenue, business evaluations are needed to increase transaction frequency and value by adding merchants. Keywords: Payment aggregator. Data mining. Clustering. RapidMiner INTRODUCTION Research Background In the advancing digital era, data has become one of the most valuable assets for many organizations. Service providers often face challenges in categorizing the revenue generated through payment aggregators due to the large volume of transactions and diverse information. Implementing data mining techniques for clustering using the K-Means method can be an effective way to categorize revenue in payment aggregators . Data mining for clustering aims to group data objects into clusters based on similarities in features or specific characteristics. The K-Means method is one of the most popular clustering methods widely applied across various domains. This method groups data into 'K' predetermined clusters based on the distance between data objects . Previous research has analyzed customer data in payment aggregator transactions using the K-Means algorithm, resulting in clustering models of customer groups based on income and transaction amounts. This research utilized the WEKA application with the K-Means algorithm . Another study analyzed sales transactions through bank payments using the K-Means algorithm combined with Particle Swarm Optimization, producing clusters of bank customer groups in bill payments . In this study, the authors aim to apply the K-Means method to categorize revenue in payment Payment aggregator revenue often originates from various sources such as e-commerce transactions, bill payments, money transfers, and other transactions. The K-Means method can uncover hidden patterns in revenue data, simplifying analysis and decision-making processes . The objectives of this research include: Identifying patterns and structures within revenue data in payment aggregators. Evaluating the performance of the K-Means method in categorizing revenue in payment aggregators. Providing valuable insights for companies to understand different revenue profiles. This study aims to contribute to understanding the critical role of payment aggregators, the discovery of knowledge from data mining processes, the strength of clustering techniques, and the efficiency of *) Corresponding Author Submitted : October 1, 2023 Accepted : October 24, 2024 Published : March 28, 2025 ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. the K-Means algorithm. When combined, these components offer deep insights into revenue structures, business optimization, and customer-oriented strategies for companies. METHODOLOGY Payment Aggregator A payment aggregator is an entity that provides electronic payment collection and processing services for merchants or sellers. It acts as an intermediary between customers, merchants, and financial institutions to facilitate online payment transactions . The functions of a payment aggregator include receiving payments from customers on behalf of merchants or sellers and collecting payment information such as credit card details, digital payment methods, or bank transfers. Payment aggregators also process received payments by transmitting instructions to relevant financial institutions to transfer funds from customer accounts to merchant accounts. One of the responsibilities of a payment aggregator is to ensure transaction security through the implementation of appropriate encryption protocols and security measures to protect sensitive customer Payment aggregators also monitor transactions to detect potential fraud or suspicious activities that could harm customers or merchants. Additionally, they provide transaction reports and financial information to merchants for reconciliation and financial reporting purposes. Payment aggregators integrate payment systems with e-commerce applications or merchant systems to facilitate smooth payment processes . Several business models for payment aggregators involve charging additional fees on transactions to generate profit, commonly known as markup fees, which may be a percentage of the transaction amount or a fixed rate. Payment aggregators may also charge service fees to merchants as compensation for using their platform or infrastructure. In some cases, payment aggregators and merchants may have revenuesharing agreements, where the aggregator receives a certain percentage of the revenue generated by the The advantages of using payment aggregators include easy integration facilitated by the provision of application programming interfaces (API. that simplify integration with merchant systems, enabling them to quickly accept online payments. Payment methods are diverse, as payment aggregators provide access to various electronic payment methods such as credit cards, bank transfers, digital wallets, or carrier billing, thus expanding the potential customer base. Data Mining Data mining is the extraction of valuable knowledge or information from large and complex datasets . The primary goal of data mining is to uncover hidden patterns, relationships, or trends within the data that can be used to make better decisions, understand consumer behavior, optimize business processes, and enhance overall performance . The process begins with data pre-processing, which involves cleaning and transforming raw data before the data mining process. This stage includes handling missing values, addressing incomplete or invalid data, and normalizing data when necessary . Exploratory Data Analysis (EDA) is then conducted as an initial step to understand the data, involving visualization, descriptive statistics, and exploratory analysis to identify initial patterns and trends . Several data mining methods are utilized, such as clustering, classification, regression, association, and anomaly detection. Clustering groups data objects based on similarities in specific attributes, while classification creates models to predict labels or classes for new objects based on previously labelled Regression is used to model the relationship between dependent and independent variables, enabling predictions of continuous values and understanding the impact of independent variables. Association uncovers relationships or associations between items in the data, and anomaly detection identifies unusual patterns or objects that deviate from the general data trends, helping detect rare events, potential fraud, or system disruptions . The models generated through data mining are evaluated for reliability using appropriate metrics, such as accuracy, precision, recall. F1 score, or area under the curve (AUC) . The results are then interpreted and visualized to understand the patterns, relationships, or trends identified, with graphs, charts, or other visualizations effectively conveying information to stakeholders . Ultimately, the insights gained from data mining are used to make better decisions, develop business strategies, optimize operational processes, and identify new opportunities, providing valuable solutions to business challenges and leveraging emerging opportunities . ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. Clustering Clustering is a data mining technique aimed at grouping data objects with similarities into clusters. Conversely, data objects without similarities are placed in different clusters. Clustering is used to identify patterns, structures, or relationships in data without class labels or prior supervision . Several clustering methods are commonly applied in data analysis, including K-Means, hierarchical clustering. Density-Based Spatial Clustering of Applications with Noise (DBSCAN), and Gaussian Mixture Models (GMM) . The K-Means method is among the most popular clustering techniques, dividing data into k predetermined clusters based on the distance between data objects. Hierarchical clustering builds a dendrogram to represent hierarchical relationships among data objects, using either agglomerative . tarting with individual objects and sequentially merging the. or divisive . tarting with one large group and splitting it sequentiall. DBSCAN identifies clusters based on data density, grouping objects close in parameter space while considering isolated objects as noise or anomalies. GMM assumes that data within each cluster is generated from a Gaussian distribution and estimates the parameters of the Gaussian distribution for each cluster to predict the likelihood of a data object belonging to a specific cluster. Evaluating clustering quality often involves metrics such as the Sum of Squared Errors (SSE), which measures the extent of data objectsAo proximity to their cluster centers, aiming to minimize the total squared The silhouette coefficient assesses how similar objects within the same cluster are compared to those in other clusters, ranging from -1 to 1, with higher positive values indicating better clustering quality. The Calinski-Harabasz index measures how well clustering separates clusters with low dispersion within each Clustering has various applications across different fields. In customer analysis, it is used to identify customer profiles based on shopping behavior, preferences, or demographic characteristics. In market segmentation, clustering helps define distinct market segments based on consumer preferences, needs, or In bioinformatics, it is applied to group genetic samples or biological data to uncover patterns or related groups. Document clustering organizes documents by topics, content, or attribute similarities, while anomaly detection identifies unusual data, such as fraudulent activities or system Research Methodology The research methodology employed in this study is clustering using the K-Means method. K-Means is one of the most popular clustering methods in data analysis. It is used to group data objects into clusters based on similarities in specific features or characteristics . The general steps of the K-Means method are as follows . First, during initialization, the number of clusters . to be formed is determined, and 'k' initial points are randomly selected as the initial cluster centers. Next, classification involves calculating the distance between each data object and the existing cluster centers. Following this, assignment allocates each data object to the cluster with the nearest center, where the distance can be measured using metrics such as Euclidean or Manhattan distance. Subsequently, cluster center updates are performed by recalculating the centers for each cluster, taking the average of all data objects assigned to that cluster. This process iterates, repeating the classification and assignment steps, until no changes occur in the data object assignments or until a predefined stopping condition is met, such as a fixed number of iterations or convergence of cluster centers. Finally, the clustering results are evaluated using metrics like the Sum of Squared Errors (SSE) to assess how closely data objects in a cluster are to their respective cluster centers, ensuring the quality of the clustering. The advantages of the K-Means method include its relatively easy implementation and fast data processing capabilities. It is efficient when applied to large datasets and produces good results for clusters that are spherical in shape and have uniform sizes. However. K-Means also has certain limitations. It is dependent on random initialization, which can affect the clustering results. Additionally, the method is sensitive to outliers, which may influence the positions of cluster centers. K-Means is suitable only for numerical data and is not appropriate for categorical data or data with attributes of varying scales. The framework applied in this study is illustrated in Figure 1. ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. Figure 1. Research Framework The steps in data processing using the K-Means method are as follows: Data collection involves gathering revenue data from the payment aggregators that serve as the research objects. This data includes transaction counts (Trx Coun. , transaction amounts (Trx Amoun. , transaction types (Trx Typ. , and other relevant attributes . Data preprocessing is conducted before the data can be used in the clustering process. This stage includes cleaning the data, handling missing values, and normalizing the data if necessary. overview of the preprocessed payment aggregator data to be analyzed in this study is presented in Table 1. Table 1. Pre-processing Results No. Payment Aggregator Atome Cash CIMB QR Credit Debit Doku QRIS Ecomm Eligibility Emoney Gopay QR Installment Kredivo QR Miniatm Transfer Nobu QR Nobu Qr Dynamic Ovo Push To Pay Shopeepay QR Tcash QR VA Transfer Other Transaction Count (Fre. 1,659,186 1,127,369 35,944 2,463,870 2,379,841 5,534 62,007 98,761 864,954 2,409 4,613 114,520 495,737 223,348 56,393 183,983 641,564 753,715 80,178 20,159 Transaction Amount (Rp Millio. 1,250,010 658,955 3,462 15,174,600 1,186,290 1,355 227,201 8,911 1,929 1,764 26,050 64,852 728,845 42,514 8,525 26,274 68,756 54,458 806,619 43,963 The implementation of the K-Means method will be applied to the pre-processed revenue data. Parameters such as the number of clusters will be determined based on the needs of the analysis. The clustering results will be evaluated using appropriate metrics, such as the Sum of Squared Errors (SSE) or cluster validity indices. The clustering results will then be analysed to identify patterns and revenue profiles. This research is expected to contribute to the payment industry by enhancing the understanding of revenue within payment aggregators. Insights gained from data mining clustering techniques can help payment aggregators optimize business strategies, improve decision-making processes, and better meet customer ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. RESULTS AND DISCUSSION The critical stages of this study include Data Collection. Data Pre-processing. Determination of K Value, and Implementation of the K-Means Algorithm. Each phase is essential in uncovering hidden patterns, optimizing strategies, and making informed decisions. Data Collection Data was collected from the database and required cleaning. The data presented in Table 1 underwent further inspection and processing to create the dataset. This dataset includes necessary information such as transaction status, transaction dates . onth and yea. , payment aggregator names, transaction frequency, and transaction amounts. Data Pre-processing At this stage, after obtaining a clean dataset, the relevant data was identified, including the collection time, the transaction status used, and the conversion of transaction types . ayment aggregator name. into numerical values to allow processing in RapidMiner. The data included only successful transaction statuses recorded between January 2019 and June 2023. Determination of K Value In the K-Means method, 'K' refers to the number of clusters to be formed in the data. The value of 'K' was predetermined as an input parameter for the K-Means algorithm. Each cluster aimed to represent distinct groups or categories in the data. In this study, the authors used 'K' as four, dividing the dataset into four distinct categories based on attribute or characteristic similarities. These categories are represented in Table 2. Table 2. Clustering Categories Cluster Cluster_0 Cluster_1 Cluster_2 Cluster_3 Category Copper Silver Gold Platinum Criteria for Determining Cluster Categories: Cluster_0 (Coppe. : Transaction nominal values range from IDR 1. 355 million to IDR 227. million, with transaction frequencies between 4,613 and 864,954. Cluster_1 (Silve. : Transaction nominal value is IDR 15,174. 600 million, with a transaction frequency of 2,463,870. Cluster_2 (Gol. : Transaction nominal values range from IDR 1,250. 010 million to IDR 1,186. million, with transaction frequencies between 1,659,186 and 2,379,841. Cluster_3 (Platinu. : Transaction nominal values range from IDR 658. 955 million to IDR 619 million, with transaction frequencies between 80,178 and 1,127,369. Implementation of the K-Means Algorithm The study evaluated K values of 2, 3, and 4 to identify the optimal clustering configuration. At this stage, the focus was on the use of 'K' as four, which resulted in the formation of four clusters. In this context. RapidMiner was used to cluster the obtained data. The process diagram for clustering with RapidMiner is shown in Figure 2. Figure 2. Modelling in Rapidminer Application Figure 3. RapidminerAos Configuration The dataset was already in CSV file format, containing data as agreed upon. In the clustering icon of RapidMiner, the researchers set 'K' to four with a maximum of ten iterations. The configuration of the clustering icon in RapidMiner is illustrated in Figure 3. ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. Previously, the researchers also used 'K' values of two and three to compare the results obtained with 'K' set to four, two, and three. The comparison of data obtained during testing with RapidMiner is shown in Table 3. Table 3. Comparison of Testing Results with 'K' Using RapidMiner K Value Davies Bouldin Index The Davies-Bouldin Index (DBI) is one method used to determine the optimal number of clusters. This approach aims to maximize the distance between clusters while minimizing the distance between objects within the same cluster. The ideal number of clusters corresponds to the minimum DBI value. shown in Table 3, the researchers conducted three tests with k = 2, 3, and 4, using a maximum of ten The DBI results indicate that the smallest value was obtained for k = 2 (DBI = 0. , while the largest value was for k = 3 (DBI = 0. Although a DBI value closer to zero is considered better, the researchers did not choose k = 2 because it resulted in too few categories. Therefore, k = 4, with a DBI of 116, was selected. Consequently, clustering with RapidMiner produced four categories. The clustering process with RapidMiner resulted in four categories: cluster_0 (CL_. , cluster_1 (CL_. , cluster_2 (CL_. , and cluster_3 (CL_. with details are presented in Table 4. Table 4. Clustering Results from RapidMiner Transaction Count (Fre. 1,659,186 1,127,369 35,944 2,463,870 2,379,841 5,534 62,007 98,761 864,954 24,09 4,613 114,52 495,737 223,348 56,393 20,159 183,983 641,564 753,715 80,178 Transaction Amount (Rp Millio. 1,250,010 658,955 3,462 15,174,600 1,186,290 1,355 227,201 8,911 1,929 1,764 26,050 64,852 728,845 42,514 8,525 43,963 26,274 68,756 54,458 806,619 Transaction Type Cluster Cl_2 Cl_3 Cl_0 Cl_1 Cl_2 Cl_0 Cl_0 Cl_0 Cl_0 Cl_0 Cl_0 Cl_0 Cl_3 Cl_0 Cl_0 Cl_0 Cl_0 Cl_0 Cl_0 Cl_3 The transaction type codes based on payment aggregators are presented in Table 5. Table 5. Transaction Type Codes by Payment Aggregator Transaction Type Aggregator Atome Cash CIMB QR Credit Debit Doku QRIS Ecomm Eligibility Emoney Gopay QR Installment Kredivo QR ISSN: 2337-7631 (Printe. ISSN: 2654-4091 (Onlin. J-Icon : Jurnal Informatika dan Komputer Vol. 13 No. March 2025, pp. DOI: 10. 35508/jicon. Miniatm Transfer Nobu QR Nobu Qr Dynamic Other Ovo Push To Pay Shopeepay QR Tcash QR VA Transfer The following outlines the clustering results obtained through RapidMiner: Cluster 0 (Coppe. : Represents the category with the lowest transaction frequency and value. Payment aggregators in this cluster include CIMB QR. DOKU QRIS. ECOMM. ELIGIBILITY. EMONEY. GOPAY QR. INSTALLMENT. KREDIVO QR. NOBU QR. NOBU QR DYNAMIC. OTHER. OVO PUSH TO PAY. SHOPEEPAY QR, and TCASH QR. Cluster 1 (Silve. : Represents the category with the fewest payment aggregators, primarily including CREDIT. Cluster 2 (Gol. : Represents the category that includes payment aggregators such as ATOME and DEBIT. Cluster 3 (Platinu. : Represents the category with the highest transaction frequency and value. Payment aggregators in this cluster include CASH. MINIATM TRANSFER, and VA TRANSFER. CONCLUSION AND SUGGESTION This study demonstrates that CASH. MINIATM TRANSFER, and VA TRANSFER represent the payment aggregators generating the highest revenue. It is therefore recommended to prioritize maintaining the availability of applications managing these features. Additionally, for categories with the lowest revenue, a business evaluation is needed to consider adding merchants to increase transaction frequency and value. The optimal cluster configuration was achieved with K=2, yielding a Davies-Bouldin Index (DBI) of Based on these findings, it is recommended to implement business management strategies such as targeted marketing, customer experience optimization, availability management, competitive analysis, and product and service innovation. These strategies aim to drive sustainable business growth and enhance customer satisfaction within the payment aggregator industry. REFERENCES