Optimizing k-means centroid initialization using genetic algorithms for student activity clustering

K-means is one of the most widely used clustering algorithms due to its computational efficiency and simplicity. However, its performance depends heavily on the selection of initial centroids, which can lead to inconsistent or suboptimal outcomes. To address this limitation, k-means++ was introduced with a probabilistic initialization strategy. Although it improves stability compared to random initialization, k-means++ still encounters challenges when applied to datasets with complex or non-linear structures. This study proposes integrating a genetic algorithm (GA) with k-means to optimize centroid initialization before clustering. GA applies selection, crossover, and mutation processes to explore the solution space and identify near-optimal centroids. The performance of GA k-means was evaluated using fitness scores and silhouette scores, and compared with k-means++ and random initialization. Experiments were conducted on student online learning activity data, including module access, discussion participation, and other interactions. Results show that GA consistently produces higher fitness values, with the best score of 0.8948 at two clusters, reflecting stable centroid optimization. Meanwhile, k-means++ achieved the highest silhouette score of 0.6144 at three clusters, indicating the most coherent structure. These results demonstrate that combining GA with k-means offers a robust solution for clustering educational data and similar applications.

Authors

Institutions

Publication Details

Journal
IAES International Journal of Artificial Intelligence
Published
2026-12-01
DOI
https://doi.org/10.11591/ijai.v15.i6.pp5289-5298
Primary Topic
Advanced Clustering Algorithms Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Optimizing k-means centroid initialization using genetic algorithms for student activity clustering

Agus Sihabuddin, Aina Musdholifah, Sri Mulyana, Abdul Rahman
1 links
IAES International Journal of Artificial Intelligence
Advanced Clustering Algorithms Research
article

Optimizing k-means centroid initialization using genetic algorithms for student activity clustering

Agus Sihabuddin, Aina Musdholifah, Sri Mulyana, Abdul Rahman
article en

Abstract

K-means is one of the most widely used clustering algorithms due to its computational efficiency and simplicity. However, its performance depends heavily on the selection of initial centroids, which can lead to inconsistent or suboptimal outcomes. To address this limitation, k-means++ was introduced with a probabilistic initialization strategy. Although it improves stability compared to random initialization, k-means++ still encounters challenges when applied to datasets with complex or non-linear structures. This study proposes integrating a genetic algorithm (GA) with k-means to optimize centroid initialization before clustering. GA applies selection, crossover, and mutation processes to explore the solution space and identify near-optimal centroids. The performance of GA k-means was evaluated using fitness scores and silhouette scores, and compared with k-means++ and random initialization. Experiments were conducted on student online learning activity data, including module access, discussion participation, and other interactions. Results show that GA consistently produces higher fitness values, with the best score of 0.8948 at two clusters, reflecting stable centroid optimization. Meanwhile, k-means++ achieved the highest silhouette score of 0.6144 at three clusters, indicating the most coherent structure. These results demonstrate that combining GA with k-means offers a robust solution for clustering educational data and similar applications.

IAES International Journal of Artificial IntelligenceVol. 15(6)
Universitas Gadjah Mada (ID)
Universitas Gadjah Mada
Quality education
Advanced Clustering Algorithms Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon