A technical solution for monitoring operation of a medical delivery device such as an infusion pump for occlusion is provided that obviates the need for any hardware changes or additions. A pump measurement such as pump duration (e.g., duration of aspirate stroke or dispense stroke in a rotational metering-type pump or a reciprocating-type pump) that is already provided for in a pump is analyzed to determine the differences in the pump measurement during normal operating conditions and occluded conditions, and a threshold or metric is set. When a detected pump measurement fails to meet a threshold, the pump can either indicate to the user to shutdown operation of the pump or to automatically disable the pump. The pump measurement can be a single one, or a subset, or a combination of stroke duration, end-stop or limit switch activation, and duration difference between aspirate and dispense strokes.