Enhancing System Self-Awareness and Trust of AI: A Case Study in Trajectory Prediction and Planning