Tag endoscopy for ulcer diagnosis