Adaptive adversarial neural networks for the analysis of lossy and domain-shifted datasets of medical images