The equipment with higher measuring accuracy is installed at a suitable place in fore and aft to get ship sway data during sailing in wind and wave. The data is classified. The ship sway data prediction model based on PSO-SVM method is provided, and the extreme short time prediction result which meets the demand can be get after multi-steps calculation.