I've been thinking of this too. Surely the best way would be to use an optical mouse - greater accuracy, no contact, very small sense area - could be used on print head.
trouble is you really need to know the filament pressure as well as if it is actually moving.