Roll-bending technology has a high degree of flexibility and does not require special molds. However, based on the existing plastic mechanics theory and finite element simulation, it is difficult to accurately analyze the complex spatial relationship of profile roll forming. Therefore, a fixed-curvature prediction model is constructed based on XGBoost (extreme gradient boosting), and the coupling effect of the process parameters and material performance parameters on the roll-forming process is explored. Combined with a Bayesian optimization algorithm, the hyperparameters of the fixed-curvature prediction model are optimized. In addition, based on the prediction result of the fixed curvature, a variable-curvature prediction model is established using the conditional random field (CRF). To further improve the prediction accuracy, an error compensation network is added after the result of the CRF in order to map the discrete sequence to the continuous sequence. The experimental results show that the mean square error (MSE), mean absolute error (MAE), and mean absolute percentage error (MAPE) predicted by the models above are much smaller than other methods, which verifies the superiority of the prediction models.