The scale factor used in the dilation of line segment AB is 2. This can be determined by comparing the coordinates of point A and point B before and after the dilation. In both cases, the x-coordinate and y-coordinate of point B are double the x-coordinate and y-coordinate of point A, respectively. This indicates a dilation by a factor of 2.