Examples of methods for detecting a material phase are described herein. In some examples, a kernel is predicted based on an input corresponding to an object and based on a machine learning model. In some examples, the machine learning model is constrained with a physical model. In some examples, a material phase is detected based on the kernel.