The flexible high-neck flange is connected to the circular hollow section (CHS) tube through welding, and the placement of the weld seam and corresponding stress concentration factor (SCF) are crucial determinants of the joint’s fatigue performance. In this study, three hybrid models combining ant colony optimization (ACO), a genetic algorithm (GA), and grey wolf optimization (GWO) with a random forest (RF) model were developed to predict the stress distribution on the inner and outer walls of the CHS tube under different flange parameter combinations. To achieve this, an automated finite element (FE) analysis program for flexible high-neck flange joints was initially developed based on ABAQUS 2020 software. Parameter combinations were randomly selected within a reasonable range to simulate the nonlinear mechanical behavior of the joint under uniform tension, generating a dataset comprising 5417 sets of data. The accuracy of the FE model was validated through experimental data from the literature. Based on this, feature importance analysis was conducted to reveal the influence of different variable parameters on the stress distribution in the tube of the joint. The flange parameters and tube stress distribution are considered as inputs and outputs, respectively. Three hybrid RF models, specifically ant colony optimization-based random forest (ACO-RF), genetic algorithm-based random forest (GA-RF), and grey wolf optimization-based random forest (GWO-RF), are trained for regression prediction. The results demonstrate that the three hybrid models outperform the original machine learning model in predictive accuracy. The ACO-RF model achieved the highest accuracy with average coefficients of determination (Rmean2) of 0.9983 and 0.9865 on the testing and training sets, respectively. Building upon this foundation, the study developed a corresponding open-source graphical user interface (GUI) as a tool for facilitating computations and visualizing results. Finally, a case study on fatigue damage assessment of a flexible high-neck flange joint in a wind-turbine tower is presented to demonstrate the application of the proposed model in this study.