Modeling and efficient estimation of the trend function is of great importance in the estimation of variogram and prediction of spatial data. In this article, the support vector regression method is used to model the trend function. Then the data is de-trended and the estimation of variogram and prediction is done. On a real data set, the prediction results obtained from the proposed method have been compared with Spline and kriging prediction methods through cross-validation. The criterion for choosing the appropriate method for prediction is to minimize the root mean square of the error. The prediction results for several positions with known values were left out of the data set (for some reason) and were obtained for new positions. The results show the high accuracy of prediction (for all positions and elimination positions) with the proposed method compared to kriging and spline.