Addressing the challenges of complex movement trajectories and rapid action changes in martial arts performances, this study introduces a novel posture recognition algorithm based on Random Forest and Skeletal Feature Extraction (RF-SFE) for martial arts leg movements. Unlike traditional posture recognition methods that struggle with accuracy, RF-SFE aims to provide intelligent analysis of training postures to assist practitioners in efficient training. The algorithm initially employs advanced skeletal feature extraction techniques to identify and articulate the relative positions and movements specific to martial arts. These extracted spatial features enhance the flexibility in modeling the unique dynamics of martial arts. Subsequently, Random Forest classification is utilized to categorize different leg movements, leveraging its strength in handling high-dimensional data and providing robust classification. Comparative experiments on diverse martial arts posture datasets demonstrate a significant improvement in recognition rates over baseline methods. This validates the effectiveness of the RF-SFE method in recognizing martial arts postures, offering scientific guidance for practitioners’ training regimens.