Prediction based on neural networks