K-Means Clustering on Physical Activity Volume Groups and Associations with Health-Related Indicators in Gym Members
Abstract
It remains unclear whether health benefits differ meaningfully across PA volume levels among individuals who already exercise. To examine this, PA volume data from 787 gym members were analyzed using K-Means clustering. The optimal cluster count was identified using within-cluster sum of squares (WCSS), Silhouette Coefficient, and Davies-Bouldin Index, which indicated four PA volume groups: Low, Moderate, High, and Very High Activity. After the clustering step, one-way ANCOVA was applied to examine differences in body fat percentage and resting heart rate across the groups, with age serving as a covariate and gender taken as a fixed factor. Body fat percentage varied significantly by cluster, and the pattern was non-linear. Resting heart rate, by contrast, did not show visible group differences. These findings, taken together, underscore the utility of coupling clustering with adjusted group comparisons to identify PA volume subgroups, and may in turn guide more individualized exercise assessment and activity recommendations.
References
- Franklin, B. A., Eijsvogels, T. M. H., Pandey, A., et al. (2022). Physical activity, cardiorespiratory fitness, and cardiovascular health: A clinical practice statement of the American Society for Preventive Cardiology Part II: Physical activity, cardiorespiratory fitness, minimum and goal intensities for exercise training, prescriptive methods, and special patient populations.American Journal of Preventive Cardiology, 12, Article 100425.
- Lee, I.-M., Shiroma, E. J., Lobelo, F., et al. (2012). Effect of physical inactivity on major non-communicable diseases worldwide: An analysis of burden of disease and life expectancy.The Lancet, 380(9838), 219–229.
- Warburton, D. E. R., & Bredin, S. S. D. (2017). Health benefits of physical activity: A systematic review of current systematic reviews.Current Opinion in Cardiology, 32(5), 541–556.
- Jain, A. K. (2008). Data clustering: 50 years beyond K-means. InMachine Learning and Knowledge Discovery in Databases(Lecture Notes in Computer Science, Vol. 5211, pp. 3–4). Springer.
- Khorasani, V. (2024).Gym members exercise dataset[Data set]. Kaggle. https://www.kaggle.com/datasets/valakhorasani/gym-members-exercise-dataset
- Adult Compendium of Physical Activities. (n.d.). Compendium of Physical Activities. Retrieved August 5, 2026, from https://pacompendium.com/adult-compendium/
- Huang, T., Feng, H., Xie, Z., et al. (2025). Effects of exercise on body fat percentage and cardiorespiratory fitness in sedentary adults: A systematic review and network meta-analysis.Frontiers in Public Health, 13, Article 1624562.
- Gonzales, T. I., Jeon, J. Y., Lindsay, T., et al. (2023). Resting heart rate is a population-level biomarker of cardiorespiratory fitness: The Fenland Study.PLOS ONE, 18(5), Article e0285272.
- Ikotun, A. M., Habyarimana, F., & Ezugwu, A. E. (2025). Benchmarking validity indices for evolutionary K-means clustering performance.Scientific Reports, 15(1), Article 8473.
- Thomas, D. M., Bouchard, C., Church, T., et al. (2012). Why do individuals not lose more weight from an exercise intervention at a defined dose? An energy balance analysis.Obesity Reviews, 13(10), 835–847.
- O'Keefe, J. H., O'Keefe, E. L., Eckert, R., et al. (2023). Training strategies to optimize cardiovascular durability and life expectancy.Missouri Medicine, 120(2), 155–162.