Use of Deep Neural Networks for Uncertain Stress Functions with Extensions to Impact Mechanics