Inversion using a new low-dimensional representation of complex binary geological media based on a deep neural network