IMAGE SEGMENTATION WITH DYNAMIC ARTIFACTS DETECTION AND BIAS CORRECTION