Adaptive deep learning under data scarcity