K-Means is one of the most commonly used clustering algorithms for grouping data with similarities within a cluster. However, there are limitations in K-Means clustering, such as clustering results being initialized based on random centroid points and the number of clusters used. To improve the performance of the K-Means algorithm, the Firefly Algorithm is used for clustering optimization. The …