The evolution of the liquid–vapour interface plays a crucial role in multiphase flow, heat and mass transfer, and fluid phase change in porous media. A thorough investigation of the interface under varying degrees of saturation is necessary and crucial to fully understanding the key mechanism of soil water evaporation. The pore voids and fluids are characterized using X-ray microtomography and image processing. Salt solutions usually replace pure water for better contrast and image development. Machine learning algorithms were employed to identify and extract the different phase and their interface accurately. Then, variations in the geometrical and topological features of the interface at varying saturation during evaporation were analysed to quantitatively describe the connectivity of the liquid phase and the morphological change in the liquid–vapour interface. Topological analysis reveals that normalized Euler characteristic numbers quantify the complementary connectivity of liquid and vapour phase. The curvatures of the liquid–vapour interface of the samples under various saturations classify the liquid–air interface curvature of samples under various saturations for quantitatively describing the migration progress and quantity distribution of typical interface along with drying.