The invention relates to a method for detecting an occlusion in an occlusion detection system having at least one storage device and a processor, the method comprising the steps of : receiving a signal corresponding to a first force needed to deliver a first material if the first force is greater than a baseline value plus a delta value, the signal indicating that an occlusion exists setting, if the first force is less than or equal to the baseline value plus the delta value, and if a turbulence factor is less than a threshold value, the baseline value equal to a second force receiving a signal corresponding to a third force needed to deliver a second material and if the third force is greater than the baseline value plus the delta value, the signal indicating an occlusion exists wherein the first material and the second material comprise at least one of insulin and medicine, and wherein the delta value is set as a function of a number of delivered units of material delivered within a period of time.