Both white noise and periodic noise exist in distributed optical fiber temperature measurement systems. Traditional sample-accumulative averaging method can only eliminate white noise. In this paper, a method of accumulating points in the sampling period during the sampling and accumulating process was proposed to judge and filter out the periodic signals in the sampling period. Temperature measurement experiments indicate that the accuracy of the DTS is greatly improved by setting the criterion to eliminate the periodic noise during the accumulation process.