Constrained multiple instance learning for ulcerative colitis prediction using histological images