Prior-informed machine learning for biomedical imaging and perception