Incorporating Domain Knowledge into Deep Neural Networks