Embedding and Extracting Domain Knowledge in Machine Learning for Condition-based Maintenance