Machine learning and combinatorial analysis-based recognition of sports activity: An investigation using SVM and KNN classifiers

Yanfeng Shang1,2, Yanxia Shang3, Yutong Shang4, Ooi Boon Keat2
1Department of Physical Education and Health, Wuxi Vocational Institute of Commerce, Wuxi 214000, China
2Management and Science University, Shah Alam 40100, Malaysia
3School of Athletic Performance, Shanghai University of Sport, Shanghai 200438, China
4Jiangsu Xishan Senior High School, Wuxi 214000, China

Abstract

This study applies Support Vector Machine (SVM) and K-Nearest Neighbors (KNN) algorithms to classify five types of basketball footwork. SVM maps the training data into a high-dimensional space using nonlinear transformation and classifies it with support vectors and a hyperplane. Experimental analysis showed minimal differences in peak and trough values of footwork movements; therefore, only mean and standard deviation features were retained, resulting in 12 effective features. KNN experiments demonstrated that recognition accuracy varies with different K values. The highest accuracy (80.7%) was achieved when K = 5 with the selected features. The study also examined the physical characteristics of basketball players, analyzing height, weight, and other indicators. Statistical results showed no significant body shape differences between experimental and control groups (P > 0.05). A T-test on dribbling, shooting, and layup performance also revealed no significant differences between the groups (P > 0.05).

Keywords: basketball player, large game, mental training, sports Performance Analysis, physical characteristics