  The real-time interpretation of the logging-while-drilling data allows us to
estimate the positions and properties of the geological layers in an
anisotropic subsurface environment. Robust real-time estimations capturing
uncertainty can be very useful for efficient geosteering operations. However,
the model errors in the prior conceptual geological models and forward
simulation of the measurements can be significant factors in the unreliable
estimations of the profiles of the geological layers. The model errors are
specifically pronounced when using a deep-neural-network (DNN) approximation
which we use to accelerate and parallelize the simulation of the measurements.
This paper presents a practical workflow consisting of offline and online
phases. The offline phase includes DNN training and building of an uncertain
prior near-well geo-model. The online phase uses the flexible iterative
ensemble smoother (FlexIES) to perform real-time assimilation of extra-deep
electromagnetic data accounting for the model errors in the approximate DNN
model. We demonstrate the proposed workflow on a case study for a historic well
in the Goliat Field (Barents Sea). The median of our probabilistic estimation
is on-par with proprietary inversion despite the approximate DNN model and
regardless of the number of layers in the chosen prior. By estimating the model
errors, FlexIES automatically quantifies the uncertainty in the layers'
boundaries and resistivities, which is not standard for proprietary inversion.
