Aimed for improvement of the shortcomings existed in the traditional BP algorithm, the BP neural network was optimized by using conjugate gradient method and Levenberg Marquardt method. Through the actual data pre-processing, modeling and analysis, the traditional BP neural network and optimized BP neural networks were compared. It is proved that the optimized neural network has better generalization ability in the aspect of oil pollution and prediction of the wear.