Relation-based learning for healthcare and beyond