Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Artif. Intell., 17 September 2025

Sec. AI in Finance

Volume 8 - 2025 | https://doi.org/10.3389/frai.2025.1640776

Profiling investor behavior in the Malaysian derivatives market using K-means clustering

Eng Hao Louis TanEng Hao Louis Tan1Yaman Hamed
Yaman Hamed1*Hanita DaudHanita Daud1Mohd Amirul Faiz Abdul WahabMohd Amirul Faiz Abdul Wahab2Ahmad Amirul Adlan AzharAhmad Amirul Adlan Azhar2Sieow Yeek TanSieow Yeek Tan2
  • 1Department of Applied Sciences, Intelligent Asset Reliability Centre, Institute of Emerging Digital Technologies, Universiti Teknologi PETRONAS, Seri Iskandar, Malaysia
  • 2Bursa Malaysia Berhad, Kuala Lumpur, Malaysia

This study investigates the trading behaviors of Malaysian derivatives traders using a comprehensive dataset from Bursa Malaysia with K-means clustering, representing one of the first AI applications to derivatives market segmentation. The analysis encompassed over 11 million trade records for FCPO and FKLI derivatives from January to December 2022. Six key features were engineered to segment derivative traders: Total Number of Trades, Total Traded Amount, Overall Realized Profit, Average ROI, Maximum Account Vintage (trader experience in years), and Median Holding Days (typical position duration). Inverse Hyperbolic Sine transformation was applied to address extreme outliers, ensuring robust feature scaling. K-means clustering identified five distinct profiles: “High-Frequency, High-Risk Derivative Traders with Consistent Losses,” “Conservative, Steady-Growth Derivative Trader,” “High-Frequency, High-Yield Derivative Traders,” “Conservative, Low-Yield Derivative Traders,” and “Cautious, Low-Activity Novice Derivative Traders.” Decision tree classifiers validated these clusters through interpretable splitting conditions. These profiles enable targeted risk management strategies, personalized trading services, and evidence-based regulatory policies for derivatives markets and future research.

Introduction

Derivatives are financial instruments whose value derives from underlying assets like commodities, stocks, or indices, used for hedging risks, speculation, and portfolio enhancement. Malaysia’s most actively traded derivatives include Futures Crude Palm Oil (FCPO), linked to crude palm oil prices, and Futures Kuala Lumpur Index (FKLI). FCPO is a commodity-based derivative linked to the price of crude palm oil, a significant export commodity for Malaysia, making it particularly attractive for participants in the agricultural and commodities sectors (Rizal et al., 2023; Jamak, 2018). FKLI, is an index-based derivative that tracks the performance of the Bursa Malaysia Kuala Lumpur Composite Index, which represents the Malaysian stock market’s benchmark index (Jamak, 2018; Seng and Thaker, 2018). These derivatives attract diverse participants who employ varied investment strategies, with 25% of publicly listed firms on Bursa Malaysia using derivatives for hedging from 2003 to 2007 (Seng and Thaker, 2018).

In financial markets, customer segmentation divides populations into distinct groups based on common characteristics, enabling tailored services that help provide improved investment strategies (Clark-Murphy and Soutar, 2005; Kashwan and Velu, 2013; Wood and Zaichkowsky, 2004). Trading segmentation identifies trader typologies based on strategies, risk tolerance, and behavioral patterns which include high-frequency traders, long-term investors, and hedgers (Keller and Siegrist, 2006; Berglöf, 1985). While extensive research exists on investor segmentation in stock markets, limited studies have explored segmentation in derivatives markets. Given the differences in underlying assets, market behaviors, and risk dynamics, studying these segments is critical for understanding trading patterns in the derivatives market (Subeesh and Liya, 2024; Somanathan and Nageswaran, 2015). The resulting trader profiles can help regulators determine when trader positions become large enough to potentially manipulate prices away from legitimate supply and demand conditions (Sanders et al., 2004).

This study applies K-means clustering to historical FCPO and FKLI trade data to identify distinct derivatives trader clusters, representing one of the first comprehensive applications of machine learning techniques specifically to derivatives trader segmentation. MacQueen in 1967 introduced the K-means algorithm as a method for partitioning observations into k clusters, establishing the mathematical framework that remains fundamental to modern clustering applications (MacQueen, 1967). K-means efficiently partitions data into groups by minimizing intra-cluster variance, providing interpretable results for financial market analysis (Wood and Zaichkowsky, 2004; Fawaid Ridwan and Supian, 2021; Kalra Sahi and Arora, 2012). The categorical variables within clusters were analyzed, and performance differences between clusters were investigated to provide insights into the behavior of derivatives market traders. The analysis also considered potential implications for trading strategies and risk management practices that could benefit market stakeholders. A novel decision tree validation approach is developed to uniquely characterize cluster membership, providing actionable behavioral insights for market stakeholders. This approach provides better identification compared to the current usage of ANOVA and Hypothesis testing that is used to highlight the differences between the resulted clusters, which does not require any normality assumptions and/or linearity.

The remainder of this paper is organized as follows: Section 2 presents a literature review of derivatives trading and clustering methodologies. Section 3 details data collection, feature engineering, and transformation techniques. Section 4 includes a detailed analysis of the K-means clustering outcomes across continuous and categorical variables. Section 5 explores cluster characteristics and suggests the main criteria of the trader clusters using decision tree node splits, validated through boxplot distributions. Section 6 summarizes the findings and offers future direction.

Literature review

Research on derivatives investor behavior has revealed distinct trading preferences and patterns. Yuen (2013) suggested that investment experience directly correlates with average returns and trading performance, while also identifying heterogeneous investor profiles characterized by different risk tolerances, holding periods, and product preferences. The shift toward online derivatives trading has also influenced investor behavior, with studies showing increased trading frequency and altered decision-making patterns among participants using digital platforms (Yuen, 2013). Shi et al. (2018) claimed that certain traders participate in specific transaction patterns, and only some trading characteristics of certain traders in a time window will reflect the trading behavior patterns. This suggested distinct behavioral clusters within derivatives markets.

Related studies that used trade data for clustering investors into significant groups were reviewed to demonstrate the application of clustering methodologies in financial market traders. Notably, there remains a significant shortage of research applying clustering techniques to derivatives market data. This study addresses this research gap by utilizing trade data extracted specifically from derivatives markets to identify distinct investor profiles, thereby extending the application of clustering methodologies beyond the commonly studied equity markets. Additionally, an innovative decision tree validation methodology for post-clustering validation and characterization provides decision rules for each identified cluster, representing a novel contribution to financial market segmentation research. The related work to this research is summarized in Table 1.

Table 1
www.frontiersin.org

Table 1. Summary of related work.

Shin and Sohn focused on total trade amounts over three months, analyzing representative-assisted trading and the online Home Trading System (HTS) of 2,999 customers (Shin and Sohn, 2004). The authors applied K-means, Self Organizing Maps, and fuzzy K-means as the clustering algorithms. The representative-assisted trading data were described by “total trade amount” and “representative-assisted trade amount.” The online HTS was represented by “total trade amount” and “trade amount in HTS” as the main raw features. The authors identified three clusters, normal customers (95%) (trading below specified thresholds in both trading modes), best customers (3%) (trading at intermediate levels), and VIP Customers (0.2–0.5%) who exhibited the highest trade volumes across both trading modes. The authors introduced a new brokerage commission policy based on the identified clusters for a potential of higher profit.

Wang et al. used the records of 30,287 investors to categorize them into three predefined clusters. The customer purchasing and selling frequency, proportion of transaction amount to total assets, and proportion of deposit to total assets were used as the clustering features (Wang et al., 2009). The authors used voting K-means to categorize the investors into three groups, Conservative Investors (52%), Speculative Investors (27%), and Moderate Investors (21%). Conservative Investors preferred low-risk instruments like time deposits, demonstrating minimal engagement with high-risk products. Speculative Investors favored high-risk financial products across all categories. While Moderate Investors adopted a balanced approach, blending conservative and speculative strategies. The clusters acquired an accuracy of 87% when evaluated using a randomly selected 200 customers from the dataset.

Goshima et al. analyzed 144 trading desks using hierarchical clustering based on four key metrics, Cancellation to Order Ratio, Inventory Ratio, Number of Actions per Stock, and Number of Stocks per Trading Desk (Goshima et al., 2019). Their analysis initially yielded ten clusters, which they subsequently consolidated into three main trader categories with distinctive characteristics. The High-Frequency Trader Market Makers (8%) exhibited the highest cancellation-to-order ratios combined with minimal inventory holdings. Investors in this group are typical for high-frequency limit order strategies. The Opportunistic High-Frequency Traders (17%) displayed either elevated cancellation-to-order ratios or reduced inventory ratios, but not both simultaneously. The Middle-Frequency Traders (74%) maintained moderate values across both the Cancellation-to-Order Ratio and the Inventory Ratio. Additionally, they included a fourth category outside their clustering analysis (Low-Frequency Traders) which comprised of additional 2,177 trading desks with distinctly different trading patterns.

Thompson et al. used K-prototype clustering to segment 52,025 accounts based on investor demographics, trading frequency, and traded amount. Their analysis resulted in five clusters: Active Traders (19%), engaging in frequent, high-volume manual trades with moderate risk tolerance; Early Savers (36%), younger individuals relying on systematic transactions with minimal trading activity; Just-In-Time (27%), characterized by infrequent, small manual trades with slightly lower risk tolerance; Older Investors (7%), who prioritized withdrawals and dividends and exhibited the lowest risk tolerance; and Systematic Savers (12%), who employed periodic, systematic trading with a similar risk profile to active traders (Thompson et al., 2021).

Hwang et al. conducted an investor clustering analysis using a substantial dataset comprising 339,007 investors with 955,035 data entries spanning January 2016 to December 2020. They utilized 23 variables across five categories: account overview, buy/sell orders, deposits/withdrawals, transaction proportions, and transaction details. The researchers identified eight clusters by employing the Gaussian Mixture Model. The resulting clusters exhibited varying characteristics, including differences in average balances, trading volumes, transaction values, turnover rates, and deposit/withdrawal patterns (Hwang et al., 2024). Notably, some clusters demonstrated inverse relationships between account balance and trading activity, while others showed distinctive patterns in terms of transaction frequency and value.

Vlahavas et al. analyzed Bitcoin transaction behavior using K-means clustering on a comprehensive dataset comprising 105,589,345 transactions to identify distinct user behavioral patterns in cryptocurrency markets (Vlahavas et al., 2024). Their analysis resulted in five clusters: Cluster 1 (61.4%), Cluster 2 (19.3%), Cluster 3 (11.5%), and Clusters 4 and 5 (approximately 3% each). While the study did not provide detailed names for each cluster, it demonstrated the effectiveness of unsupervised clustering techniques in revealing hidden patterns within blockchain transaction data, providing insights into the heterogeneous nature of cryptocurrency market participants (Vlahavas et al., 2024).

Methodology

The stepwise framework of the proposed methodology is illustrated in Figure 1.

Figure 1
Flowchart detailing a data analysis process. Steps include Data Collection, Data Pre-processing, Feature Engineering (with factors like Total Number of Trades and Average ROI), IHS Data Transformation, and K-means Clustering. It connects to Clustering Performance Metrics with Elbow Method and Silhouette Score. The process continues with Determination of Optimal Number of Clusters, Cluster Identification (using Decision Tree Splitting Conditions), Cluster Characterization, and concludes with an Intervention Plan.

Figure 1. Methodology flow chart.

Data description

The data used for this analysis were provided by BURSA Malaysia. The dataset comprises 11,222,606 rows of trade data collected between January 2022 and December 2022, covering two product codes, FCPO and FKLI. The records are stored in a structured SQL database. The data was filtered to include only traders registered in Malaysia, which reduced it to 11,117,203 rows, removing approximately 1% of the original data. To facilitate efficient data management and querying, a unique primary key was created by hashing a combination of three attributes: investor ID, broker participant ID, and account ID. The hierarchical structure prioritizes the broker participant ID, followed by the investor ID, and finally the account ID. This process generated 9,852 unique primary hash keys, representing 9,852 unique accounts, 8,816 unique traders, and 13 broker participants.

The dataset was further categorized based on the frequency of trade records for FCPO and FKLI to capture the trading preferences. Each unique primary hash key was classified into one of five categories: FCPO dominant, FCPO favored, neutral, FKLI favored, and FKLI dominant. Each transaction is made using one of two different trading strategy types, SPD (Derivatives that are based on the spread between the prices of two or more assets) and NRM (derivatives with one directional to buy/sell contracts). Therefore, the most frequent strategy type used by each unique primary hash key was recorded and associated with the respective account. Five categorical variables describe investor traits in the dataset, age group, gender, investor type, trade product preference, and most used strategy type. The characteristics of the studied data are illustrated in Figure 2.

Figure 2
Bar charts depicting investor demographics and trading preferences. The Investor Type chart shows Retail at 9,675, Local at 78, and RTIP at 20. The Gender chart has Male at 7,849 and Female at 1,924. The Age Band chart shows most investors in the 36–45 range at 3,225, decreasing with age. The Trading Preference chart highlights FCPO dominant at 7,317 and FKLI dominant at 1,931. The Main Strategy Type chart shows NRM at 8,640 and SPD at 1,133.

Figure 2. Distribution of categorical variables across the dataset of 9,773 derivatives traders (79 traders were removed due to no realized profit).

Feature engineering and transformation

Six features were generated to analyze the trading behavior of traders. Each feature was designed to capture a distinct aspect of the trading activities. The generated features are the Total Number of Trades, Total Traded Amount, Overall Realized Profit, Average Return on Investment (ROI), Maximum Account Vintage, and Median Holding Days. Each feature is derived from the dataset and grouped by the unique primary hash key index, ensuring that they accurately represent individual trading behavior.

The Total Number of Trades corresponds to the total count of trade records in the dataset associated with each unique primary hash key. The Total Traded Amount is calculated as the cumulative sum of the trade values for all buy and sell transactions grouped by the unique primary hash key. The Overall Realized Profit represents the net profit or loss achieved by each trader. It is calculated by subtracting the total bought amount from the total sold amount for matched trades, where the quantities of bought and sold transactions align. A positive value indicates a net profit, while a negative value signifies a loss. Similarly, Average ROI is calculated as the realized profit divided by the total bought amount for matched trades. This metric provides a normalized measure of profitability, allowing for direct comparisons across traders regardless of the scale of their trading activities. It is particularly useful for identifying efficient traders who achieve high returns with limited resources. The Maximum Account Vintage reflects the longevity of a trader’s account and is calculated as the difference between the last recorded trade date and the account creation date (expressed in years). The account vintage provides insights into the trader’s experience and commitment over time to distinguish between newer participants and long-standing traders who may exhibit more stable or sophisticated trading behaviors. Finally, Median Holding Days capture the typical duration for which a trader holds a trade position before closing it. This is calculated as the median of the holding durations for all matched trades associated with each unique primary hash key, where the holding duration is the time elapsed between the creation of the buy and sell transactions. It offers a view into the trader’s trading strategy, revealing whether they tend toward short-term trading for quick gains or long-term investments that aim for sustained returns. The formulated engineered features are summarised in Table 2.

Table 2
www.frontiersin.org

Table 2. Formulated engineered features.

A total of 79 unique primary hash keys had no realized profit being computed as no match trades were found. As a result, those hash keys were removed from the analysis which reduced the data from 9,852 to 9,773 unique rows (representing only 0.8% of the dataset). The deleted entries contribute to only 334 total trades in the data (approximately 0.003% of the entire dataset), where 32 out of these 79 unique primary hash keys have exactly one trade from the entire Jan 2022 to Dec 2022 period.

Figure 3 illustrates the preprocessing flow chart of the variables and engineered features.

Figure 3
Flowchart depicting a data processing framework. The process begins by creating a primary hash key using Broker Participant ID, Investor ID, Account ID, and Malaysian, generating 9,852 rows. Data is grouped by each primary hash key. Categorical variables include trading preferences (FCPO Dominant, FCPO Favored, Neutral, FKLI Favored, FKLI Dominant) and main strategy type (SPD, NRM). Feature engineering involves calculating total number of trades, traded amount, realized profit, average ROI, maximum account vintage, and median holding days, using formulas from Table 2. After removing 79 keys with no realized profit, the dataset reduces to 9,773 rows.

Figure 3. Data preprocessing flow chart of variables and features.

These features exhibit substantial variability due to the presence of outliers, which can distort the clustering performance of the K-means model. To address this issue, the Inverse Hyperbolic Sine (IHS) transformation was applied to scale down the values of features with extremely large ranges while preserving the overall distribution structure (Equation 1). First, IHS transformation accommodates the full range of financial data including zero and negative values without requiring data truncation or sign loss, unlike log transformation which necessitates positive-only inputs. Second, IHS provides asymptotic behavior that compresses extreme outliers through the asymptotic linearity property, effectively reducing outlier leverage while retaining their directional information (Equation 2). Finally, unlike other normalization techniques such as log transformation or min-max scaling, Hence, IHS maintains the distributional properties and relative ordering of observations while mitigating the disproportionate influence of outliers (Bellemare and Wichman, 2020; Burbidge et al., 1988).

sin h 1 x = ln ( x + x 2 + 1 )     (1)
lim x + sin h 1 ( x ) ln ( x ) = 1     (2)

K-means clustering

The six generated features were used in the K-means clustering algorithm. K-means is a simple yet powerful clustering algorithm that can be used over a d -dimensional vector X = [ x 1 , x 2 , , x n ] in R d . For a set of n input data points the k-means algorithm begins with the initialization of k centroids, c 1 , c 2 , , c k , which are randomly selected from the set of data X . These centroids represent the initial cluster centers (step 1).

Each data point x i in X is then assigned to the nearest centroid c j based on a distance metric (typically the Euclidean distance given in Equation 3) as the assignment step (step 2).

d ( x i , c j ) = x i c j 2 = l = 1 d ( x il c jl ) 2     (3)

Each data point x i is assigned to the cluster C j whose centroid c j is the closest. Once all data points have been assigned to clusters, the centroids c j are recalculated as the mean of the data points in each cluster as given in Equation 4:

c j = 1 C j x i C j x i     (4)

Where C j is the number of data points in cluster j , and the sum is over all data points assigned to cluster C j . Hence, all the centroids are now updated (step 3). The steps of assignment (step 2) and update (step 3) are repeated until the centroids are no longer changing significantly, or until a maximum number of iterations is reached. The convergence criterion can be the change in the centroids’ positions or the change in the cluster assignments. The objective of k-means is to minimize the within-cluster sum of squares (WCSS), also known as the inertia, as shown in Equation 5:

J = j = 1 k x i C j x i c j 2 2     (5)

The objective function J quantifies the total variance within the clusters, and the k-means algorithm seeks to minimize this value. The final output is a set of k clusters ( C 1 , C 2 , , C k ) and their corresponding centroids ( c 1 , c 2 , , c k ) (MacQueen, 1967).

Results and discussion

The optimal number of clusters (k) was determined using four methods, the Elbow Method, Silhouette Score, Davies-Bouldin Index, and Calinski-Harabasz Index (Rousseeuw, 1987; Davies and Bouldin, 2009; Caliński and Harabasz, 1974). These methods collectively identified the optimal range of k from 3 to 6, where the Elbow Method shows a noticeable bend at k = 5, the Silhouette Score reaches a local maximum, the Davies-Bouldin Index achieves a local minimum value, and the Calinski-Harabasz Index demonstrates high values at this point as illustrated in Figure 4. The convergence of these four indicators at k = 5 provides strong statistical evidence for this optimal cluster number. The five identified clusters are well-separated in the reduced two-dimensional PCA space as illustrated in Figure 5. The distribution of data points among the five identified clusters is given in Figure 6.

Figure 4
Four line graphs depict different methods for determining the optimal number of clusters. The Elbow Method graph shows a sharp decrease in WSS at 5 clusters. The Silhouette Score graph peaks at 5 clusters. The Davies-Bouldin Index graph reaches a low at 5 clusters. The Calinski-Harabasz Index graph peaks at 5 clusters. Vertical dashed lines mark potential optimal clusters, highlighting 5 as a common point.

Figure 4. Cluster validation metrics for determining optimal number of clusters.

Figure 5
Scatter plot showing K-Means clustering visualization with data points grouped into five clusters, each represented by a different color: blue, orange, green, red, and purple. The axes are labeled PCA1 and PCA2.

Figure 5. K-means clustering results visualized in two-dimensional PCA space.

Figure 6
Histogram showing cluster label frequencies. Label 1 has 1992 (20.4%), label 2 has 1427 (14.6%), label 3 has 2065 (21.1%), label 4 has 1169 (12.0%), and label 5 has 3120 (31.9%).

Figure 6. Cluster size distribution showing trader count and percentage for each identified cluster.

Figure 7 shows the distributions of the six features across the five clusters. The Total Number of Trades and Total Traded Amount exhibit wide ranges across clusters, with clusters 1 and 3 showing higher medians compared to clusters 2 and 4. Similarly, Maximum Account Vintage Years in clusters 2 and 4 demonstrate wider interquartile ranges compared to others. The Total Realized Profit and Average ROI in clusters 1 and 4 display more negative values, while cluster 3 exhibits higher positive medians. The Median Holding Days feature remains relatively low across all clusters, with slightly longer durations observed in clusters 2 and 4.

Figure 7
Box plots showing pre-transformation feature distributions by cluster without outliers. Plots include total number of trades, total traded amount, maximum account vintage years, total realized profit, average ROI, and median number of holding days. Each plot compares five clusters labeled 1 to 5, distinguished by color.

Figure 7. Distribution of six engineered features across the five trader clusters (outliers removed for clarity).

The distribution of the categorical variables across clusters and the distinct patterns in the trader profiles are found in Figures 8, 9. Retail remains the main investor type across all clusters, while RTIP and Local investors are mostly identified in Cluster 1 and 3. The proportion of males to females traders amongst all clusters is estimated roughly as 80 to 20 percent, with cluster 3 having the highest female percentage at 22%. The distribution of the Main Strategy Type exhibits a similar trend as well. Around 83–90% of the traders are mainly using the NRM strategy, with cluster 3 having a slightly higher percentage of using SPD as their main strategy.

Figure 8
Four charts detail the distribution of investors and gender across clusters. The top left chart shows counts of investor types across five clusters, mostly retail in Cluster 5. The top right chart illustrates cluster distribution within investor types, with Cluster 1 dominating retail. The bottom left chart shows gender distribution across clusters, primarily male in Cluster 5. The bottom right chart highlights cluster distribution within gender, with Cluster 1 prevalent among both males and females.

Figure 8. Categorical variable distributions across trader clusters showing investor type and gender.

Figure 9
The image contains six bar charts illustrating distributions of various factors across clusters. The first chart shows the distribution of main strategy types (NRM and SPD) across different clusters. The second chart displays cluster distribution within these strategy types. The third chart represents the distribution of age bands across clusters. The fourth chart details cluster distribution within each age band. The fifth chart shows distribution of trading preferences (e.g., FKLI and FCPO) across clusters, while the sixth chart illustrates cluster distribution within each trading preference category. Each chart includes detailed percentages and count data.

Figure 9. Categorical variable distributions across trader clusters showing strategy type, age band, and trading preference.

As of the age bands, Cluster 5, comprises a significant proportion of younger traders (18–25 years and 26–35 years). This is also shown by the dominant lower Maximum Account Vintage value compared to other clusters. Cluster 2 shows an opposite age band trend compared to Cluster 5, where experienced and elder traders are concentrated there. Finally, the age groups in Cluster 1 are uniformly distributed. The trading preference within clusters shows that traders in Clusters 1, 3, and 5 are more inclined to trade FCPO when compared to Cluster 2 and 4 traders who mostly favor FKLI as their main trading preference.

A decision tree classifier is employed to determine the splitting mechanism that differentiates each cluster from the others. The pruned decision trees reveal the primary criteria for identifying and characterizing each cluster based on their trading behaviors and features (Appendix A). The characteristics of each cluster are detailed as follows.

Cluster 1 (representing 20.4% of the dataset) is defined by high trading activity, substantial traded amounts, and short holding periods. However, traders in Cluster 1 achieved consistently negative profits, indicating a high-risk and high-turnover trading strategy. The primary conditions distinguishing this cluster are a Total Realized Profit of less than RM-51.85 k, a Total Traded Amount above RM17.57 million, and a Median Number of Holding Days under 2.22 days, emphasizing frequent trading without consistent profitability.

Cluster 2 (representing 14.6% of the dataset) represents a low-risk, cautious trader profile achieving modest returns. The cluster is characterized by an Average ROI greater than 0.139%, a Median Holding Days above 0.299 days, and a Total Number of Trades below 364.5, highlighting a conservative trading strategy with moderate engagement and consistent positive returns.

Cluster 3 (representing 21.1% of the dataset) is a high-activity, high-gain trader cluster, exhibiting substantial profits and short holding periods. Traders in this group have achieved a Total Realized Profit exceeding RM40.938 thousand, a Total Traded Amount above RM15.882 million, and a Median Holding Days under 0.993 days, suggesting quick, successful trades with significant market engagement.

Cluster 4 (representing 12% of the dataset) represents cautious traders with low returns, reflecting a risk-averse strategy. This cluster is distinguished by traders achieving an Average ROI below −0.205%, a Median Holding Days above 0.203 days, and a Total Number of Trades below 306.5, indicating a conservative approach with limited profitability.

Finally, Cluster 5 (representing 31.9% of the dataset) encompasses low-activity and low-risk traders (potentially less experienced in the market). The defining criteria include a Total Number of Trades below 156.5, a Median Holding Days under 0.068 days, a Maximum Account Vintage under 3.337 years, and a Total Realized Profit under RM40.487 thousand, signifying cautious or infrequent trading and limited market exposure.

As a conclusion, the decision tree classifier results align closely with the observed boxplot distributions of the features across clusters as visualized in Figure 6. The matching patterns provide confidence that the features selected by the classifier effectively describe the unique characteristics of each cluster, enhancing the overall reliability of the analysis. Subsequently, the splitting conditions and trading behaviors revealed by the decision tree classifiers were used to label the identified clusters, providing clear and meaningful descriptions for each group. These labels capture the essence of the trading strategies, trading volume and frequency, and overall returns exhibited by the traders within each group. The labels of each identified cluster are detailed as follows.

As a conclusion, the decision tree classifier results align closely with the observed boxplot distributions of the features across clusters as visualized in Figure 6. The matching patterns provide confidence that the features selected by the classifier effectively describe the unique characteristics of each cluster, enhancing the overall reliability of the analysis. Subsequently, the splitting conditions and trading behaviors revealed by the decision tree classifiers were used to label the identified clusters, providing clear and meaningful descriptions for each group. These labels capture the essence of the trading strategies, the trading volume and frequency, and the overall returns exhibited by the traders within each group. The labels of each identified cluster are detailed as follows.

Cluster 1, “High-Frequency, High-Risk Derivative Traders with Consistent Losses,” represents a group of high-activity, high-turnover traders who prioritize frequent, short-term trades in hopes of achieving rapid gains. However, these traders often experience consistent losses. This group embodies a risk-heavy approach, where high trading volumes fail to translate into positive financial outcomes. They are also inclined to trade in FCPO products. Regulators could implement targeted interventions such as mandatory cooling-off periods or enhanced margin requirements for this segment, while brokers might benefit from automated risk controls and educational interventions to address their systematic losses. It seems to be a unique profile not commonly identified in equity market studies.

Cluster 2, “Conservative, Steady-Growth Derivative Traders,” is characterized by conservative, low-risk traders who achieve steady, modest returns, which is similar to “Conservative Investors” identified by Wang et al. These traders demonstrate a focus on minimizing risk, as reflected by their higher Average ROI, the longer Median Holding Days with low trade amounts. This group represents disciplined traders who prefer calculated strategies, avoiding excessive risk while ensuring a consistent, positive financial performance. Their cautious engagement reflects a preference for stable growth over aggressive expansion. They are also inclined to trade FKLI products with older traders. This segment presents opportunities for brokers to develop long-term investment products and advisory services, given their disciplined approach and consistent positive performance.

Cluster 3, “High-Frequency, High-Yield Derivative Traders,” comprises highly active, short-term traders who excel in generating substantial profits through quick trades. With a higher Traded Amount and shorter Median Holding Days, these traders successfully capitalize on rapid market movements as shown by their higher Realized Profit than other clusters. This group represents dynamic, successful traders who navigate the market with agility and precision, and similar to the “Active Traders” cluster described by Thompson et al. They are also inclined to trade FCPO products, while some have higher flexibility towards FKLI. Most RTIP and Local investors belong to this cluster as well. These high-performing traders could be offered premium services, lower transaction costs, and advanced trading tools by brokers, representing the most profitable client segment.

Cluster 4, “Conservative, Low-Yield Derivative Traders,” includes cautious traders who trade conservatively but yield low returns, shares similarities with “Moderate Investors” by Wang et al. Despite their steady approach (as indicated by negative Average ROI), they fail to achieve significant profitability. Their lower Number of Trades and longer Median Holding Days further reflect their preference for controlled and limited market engagement. This cluster captures the behavior of risk-averse traders who prioritize stability over aggressive strategies but struggle to convert this approach into meaningful financial gains. They are also inclined to trade in FKLI products. The negative average ROI despite cautious approaches may indicate market access barriers or information asymmetries that warrant regulatory attention and broker-provided educational support.

Cluster 5, “Cautious, Low-Activity Novice Derivative Traders,” represents low-activity traders who exhibit cautious behaviors, likely due to limited market experience. This group engages infrequently (as shown by their lower Number of Trades and Median Holding Days) while also having relatively short account histories (Maximum Account Vintage Years under 3.337 years). Their lower Realized Profit reflects modest or limited financial outcomes as well. This cluster likely consists of newer or less-engaged traders (age 18–35) who are still exploring the market or adopting a conservative approach to trading. They are also inclined to trade FCPO products. The predominance of younger, inexperienced traders in this largest cluster suggests the need for enhanced investor protection measures and mandatory financial literacy programs before derivatives trading authorization. This cluster is also similar to the “Early Savers” category identified by Thompson et al.

Conclusions and future direction

This study explored the trading behaviors of traders in Bursa Malaysia’s derivatives markets, with a specific focus on FCPO and FKLI products. While investor segmentation has been widely studied in stock markets, this study represents a breakthrough as one of the first to apply clustering techniques to investor behavior in the derivatives market. Through the application of K-means clustering on approximately 11 million trade records, five distinct clusters were identified, “High-Frequency, High-Risk Derivative Traders with Consistent Losses,” “Conservative, Steady-Growth Derivative Trader,” “High-Frequency, High-Yield Derivative Traders,” “Conservative, Low-Yield Derivative Traders,” and “Cautious, Low-Activity Novice Derivative Traders.” The methodological approach incorporated feature engineering and IHS transformation to address extreme data variability and outliers, thereby enhancing the robustness of the clustering algorithm. The details of the clusters were discussed deeply based on the characteristics identified using a novel decision tree approach and a thorough descriptive analysis.

Future research could incorporate questionnaire-based data to establish correlations between demographic characteristics, psychological traits, and trading behaviors to relate these attributes against the identified trader clusters for more insights. However, behavioral data integration through carefully designed questionnaires would require addressing privacy and regulatory constraints inherent in financial market research with nearly 10,000 traders. Additionally, expanding the analysis to include temporal dimensions through quarterly or semi-annual segmentation would facilitate an understanding of performance trends over time. Temporal clustering analysis could be conducted with larger datasets spanning multiple years and different market cycles to ensure sufficient trader activity across all seasons while maintaining statistical validity. Future studies could also developing methodologies to accurately calculate unrealized profits, which would provide a more comprehensive view of trader performance, particularly for long-term position holders. Cross-market validation using data from other emerging derivatives markets would also enhance the generalizability of findings beyond the Malaysian context. Lastly, the current analysis does not establish whether demographic characteristics influence trading behavior clustering or merely correlate with it. Future research should incorporate formal statistical testing and expand the demographic dataset as mentioned earlier to include variables such as education level, income, trading experience, and professional background to better understand the causal relationships between trader characteristics and behavioral patterns.

Data availability statement

The datasets presented in this article are not readily available because the data used in this study were obtained under a data-sharing agreement with BURSA Malaysia. Due to the sensitive and proprietary nature of the trading data, access is restricted and the dataset is not publicly available. Interested researchers may request access directly from BURSA Malaysia; however, approval is subject to their discretion, and data access may involve administrative procedures and associated charges. The authors do not have the authority to share the dataset. Requests to access the datasets should be directed to ST, dGFuc2llb3d5ZWVrQGJ1cnNhbWFsYXlzaWEuY29t.

Author contributions

ET: Visualization, Methodology, Validation, Writing – original draft, Data curation. YH: Methodology, Funding acquisition, Writing – review & editing, Project administration, Supervision. HD: Funding acquisition, Writing – review & editing, Conceptualization, Validation. MA: Writing – review & editing, Validation, Data curation, Methodology. AA: Writing – review & editing, Methodology, Data curation, Validation. ST: Funding acquisition, Methodology, Writing – review & editing, Conceptualization, Validation.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. The authors would like to express their sincere gratitude to Universiti Teknologi PETRONAS (UTP) for the financial support provided under the research grant University Internal Research Funding (URIF) [cost center: 015LB0-094].

Acknowledgments

We also extend our deepest appreciation to BURSA Malaysia for granting access to a highly sensitive and high-value dataset containing over 11 million trade records. We are grateful for the continuous technical guidance and collaboration extended by the BURSA team, which significantly enhanced the quality and relevance of this work.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/frai.2025.1640776/full#supplementary-material

References

Bellemare, M. F., and Wichman, C. J. (2020). Elasticities and the inverse hyperbolic sine transformation. Oxf. Bull. Econ. Stat. 82, 50–61. doi: 10.1111/obes.12325

Crossref Full Text | Google Scholar

Berglöf, E. (1985). A Note on the Typology of Financial Systems

Google Scholar

Burbidge, J. B., Magee, L., and Robb, A. L. (1988). Alternative transformations to handle extreme values of the dependent variable. J. Am. Stat. Assoc. 83, 123–127. doi: 10.1080/01621459.1988.10478575

Crossref Full Text | Google Scholar

Caliński, T., and Harabasz, J. (1974). A dendrite method for cluster analysis. Commun. Stat. Theory Methods 3, 1–27.

Google Scholar

Clark-Murphy, M., and Soutar, G. (2005). Individual investor preferences: a segmentation analysis. J. Behav. Finance 6, 6–14. doi: 10.1207/s15427579jpfm0601_2

Crossref Full Text | Google Scholar

Davies, D. L., and Bouldin, D. W. (2009). A cluster separation measure. IEEE Trans. Pattern Anal. Mach. Intell. 2, 224–227.

Google Scholar

Fawaid Ridwan, A., and Supian, S. (2021). IDX30 stocks clustering with K-means algorithm based on expected return and value at risk. Int. J. Quant. Res. Model. 2, 201–208.

Google Scholar

Goshima, K., Tobe, R., and Uno, J.. Trader classification by cluster analysis: interaction between HFTs and other traders. (2019).

Google Scholar

Hwang, Y., Park, J., Kim, J. H., Lee, Y., and Fabozzi, F. J. (2024). Heterogeneous trading behaviors of individual investors: a deep clustering approach. Financ. Res. Lett. 65:105481. doi: 10.1016/j.frl.2024.105481

Crossref Full Text | Google Scholar

Jamak, F. (2018) Futures Market of Crude Palm Oil (FCPO) and Kuala Lumpur Index (FKLI) as the Price Discovery in Malaysia

Google Scholar

Kalra Sahi, S., and Arora, A. P. (2012). Individual investor biases: a segmentation analysis. Qual. Res. Financ. Mark. 4, 6–25. doi: 10.1108/17554171211213522

Crossref Full Text | Google Scholar

Kashwan, K. R., and Velu, C. M. (2013). Customer segmentation using clustering and data mining techniques. Int. J. Comput. Theor. Eng., 856–861. doi: 10.7763/IJCTE.2013.V5.811

Crossref Full Text | Google Scholar

Keller, C., and Siegrist, M. (2006). Money attitude typology and stock investment. J. Behav. Finance 7, 88–96. doi: 10.1207/s15427579jpfm0702_3

Crossref Full Text | Google Scholar

MacQueen, J., (1967). Multivariate observations. in Proceedings of the 5th Berkeley symposium on mathematical statistics and probability, 1, 281–297.

Google Scholar

Rizal, N., Saifuddin, S. A., Abd Rahim, S. H. A., Mohd Nazri, N., Ab Aziz, M. S., and Zainoddin, A. I. (2023). The macroeconomic factors on Malaysia’s future crude palm oil (FCPO). Int. J. Acad. Res. Bus. Soc. Sci. 13. doi: 10.6007/ijarbss/v13-i3/16474

Crossref Full Text | Google Scholar

Rousseeuw, P. J. (1987). Silhouettes: a graphical aid to the interpretation and validation of cluster analysis. J. Comput. Appl. Math. 20, 53–65. doi: 10.1016/0377-0427(87)90125-7

Crossref Full Text | Google Scholar

Sanders, D. R., Boris, K., and Manfredo, M. (2004). Hedgers, funds, and small speculators in the energy futures markets: an analysis of the CFTC'S commitments of traders reports. Energy Econ. 26, 425–445. doi: 10.1016/j.eneco.2004.04.010

Crossref Full Text | Google Scholar

Seng, C. K., and Thaker, H. M. T. (2018). Determinants of corporate hedging practices: Malaysian evidence. Rep. Econ. Finance. 4, 199–220. doi: 10.12988/ref.2018.8418

Crossref Full Text | Google Scholar

Shi, G., Ren, L., Miao, Z., Gao, J., Che, Y., and Lu, J. (2018). Discovering the trading pattern of financial market participants: comparison of two co-clustering methods. IEEE Access 6, 14431–14438. doi: 10.1109/ACCESS.2018.2801263

Crossref Full Text | Google Scholar

Shin, H. W., and Sohn, S. Y. (2004). Segmentation of stock trading customers according to potential value. Expert Syst. Appl. 27, 27–33. doi: 10.1016/j.eswa.2003.12.002

Crossref Full Text | Google Scholar

Somanathan, T. V., and Nageswaran, V. A. (2015). The economics of derivatives : Cambridge University Press.

Google Scholar

Subeesh, V. K., and Liya, K. (2024). Systematic literature review of top 10 publications in the derivatives market. Int. J. Sci. Res. 13, 1907–1912. doi: 10.21275/SR24721123050

Crossref Full Text | Google Scholar

Thompson, J. R., Feng, L., Reesor, R. M., and Grace, C. (2021). Know your clients’ behaviours: a cluster analysis of financial transactions. J. Risk Financial Manag. 14:50. doi: 10.3390/jrfm14020050

Crossref Full Text | Google Scholar

Vlahavas, G., Karasavvas, K., and Vakali, A. (2024). Unsupervised clustering of bitcoin transactions. Financ. Innov. 10:25. doi: 10.1186/s40854-023-00525-y

Crossref Full Text | Google Scholar

Wang, G., Nie, G., Zhang, P., and Shi, Y., (2009). Personal financial market segmentation based on clustering ensembles. in 2009 WRI world congress on computer science and information engineering: IEEE, pp. 694–698.

Google Scholar

Wood, R., and Zaichkowsky, J. L. (2004). Attitudes and trading behavior of stock market investors: a segmentation approach. J. Behav. Finance 5, 170–179. doi: 10.1207/s15427579jpfm0503_5

Crossref Full Text | Google Scholar

Yuen, K. H. (2013). The investment preferences and behaviour of small investors in derivatives markets: a survey on derivative investments in Hong Kong. J. Emerg. Issues Econ. Finance Bank.

Google Scholar

Keywords: clustering, K-means, decision trees, trading behavior, derivatives, investors behavior

Citation: Tan EHL, Hamed Y, Daud H, Abdul Wahab MAF, Azhar AAA and Tan SY (2025) Profiling investor behavior in the Malaysian derivatives market using K-means clustering. Front. Artif. Intell. 8:1640776. doi: 10.3389/frai.2025.1640776

Received: 04 June 2025; Accepted: 25 August 2025;
Published: 17 September 2025.

Edited by:

Maria Chiara Caschera, National Research Council (CNR), Italy

Reviewed by:

Iryna Mihus, Scientific Center of Innovative Research, Estonia
Yuquan Liu, University of Science and Technology of China, China
Francka Sakti Lee, University of Bunda Mulia, Indonesia
Sudha Palaniappan, SSN College of Engineering, India
Musli Yanto, Universitas Putra Indonesia, Indonesia

Copyright © 2025 Tan, Hamed, Daud, Abdul Wahab, Azhar and Tan. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Yaman Hamed, eWFtYW4uaGFtZWRAdXRwLmVkdS5teQ==

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.