1. A method for object segmentation, the method hod comprising: receiving a digital image; performing initial segmentation on the digital image to generate a segmented digital image; receiving refinement instructions to refine the initial segmentation; inferring an intention of a user to correct a foreground area or a background area of the initial segmentation based on the received refinement instructions; learning a behavior of the user to further infer the intention of the user to correct the foreground area or the background area; and refining, by a processor, the initial segmentation based on the inferred intention.