Training Set Density Estimation for Trajectory Predictions Using Artificial Neural Networks