The DeepAdapter algorithm combines self-supervised learning and unsupervised domain adaptation to screen for retinopathy of prematurity. This approach reduces performance drops when models encounter data from new clinical sites. It solves a common failure point in medical imaging. Practitioners can now deploy vision models that maintain accuracy across diverse hospital datasets without manual retraining.