The optimization of the sawing process for Pinus kesiya Royle ex Gordon, an important timber used in construction and furniture, especially through the adjustment of parameters such as wood moisture content, cutting speed, and feed speed, not only helps reduce energy consumption and noise but also improves surface processing quality, thereby promoting green and environmentally friendly production. Therefore, this study selects the wood moisture content, cutting speed, and feed speed during the Single Pass Crosscut process of Pinus kesiya as the preliminary experimental parameters. Based on the Transformer model, a cutting prediction model for Pinus kesiya is established to predict three cutting performance indicators: cutting power consumption, surface roughness, and cutting noise. Meanwhile, Bayesian optimization was used to search for the optimal parameter combination within the specified cutting process parameter ranges that minimizes the objective function for these cutting performance indicators. Finally, experimental verification based on the optimal parameter combination shows that the average coefficient of determination for the cutting performance indicators is 0.937, the average mean squared error is 0.076, and the average mean absolute error is 0.186, indicating good agreement between the predicted and measured values.