Using deep learning to replace domain knowledge