Estimation of local error by a neural model in an inverse scattering problem