Pile foundations in soft soil often encounter challenges regarding abnormal bearing capacity, significantly impacting the safety of engineering projects. The bearing capacity of pile foundations is influenced by various factors, often characterized by complexity and unpredictability. Therefore, this study proposes a comprehensive model, termed GWOASSA-LSSVM, based on Grey Wolf Optimization (GWO)-enhanced Sparrow Search Algorithm (SSA) and Least Squares Support Vector Model (LSSVM). By introducing a grey wolf hierarchy to enhance the global search capability of the sparrow search algorithm and automating the optimization of parameters (γ, δ) in the LSSVM model using GWO, the GWOASSA-LSSVM predictive model is established. Evaluation metrics including correlation, and correlation between pile bearing capacity and the predictive target are considered, with pile bearing capacity as the predictive target. The GWOASSA-LSSVM model is compared with SSA-LSSVM, LSSVM, and Back Propagation Neural Network (BPNN). Results indicate that the GWOASSA-LSSVM model outperforms SSA-LSSVM, LSSVM, and BPNN across metrics such as Coefficient of Determination (R2), Variance Accounted For (VAF), Performance Index (PI), Index of Agreement (IOA), Index of Scatter (IOS), Mean Absolute Percentage Error (MAPE), Root Mean Square Error (RMSE), and a20-index, demonstrating its capability for accurate prediction of pile bearing capacity.