For example, I can go a whole afternoon some days without it auto-pausing, while others as you said, you can go two episodes and it will pause on you.
I suspect Netflix tracks window focus via JavaScript at minimal, and maybe other metrics too to try and guesstimate user idle-ness.
Interestingly when I am in a full screen game (and Netflix on another screen) it "never" pauses. It only pauses when I am not doing anything on the machine and just watching (i.e. I effectively get punished for paying too much attention).