I believe this illusion is exploiting a quirk of human sensory vision so any machine learning will not be affected. It's the same property that most video encodings and compression algorithms exploit: Our colour and luminance perception does not have equal fidelity, i.e we dont sense as much detail in colour, where as we can sense more detail in luminance... in this case it means we can perceive the stripes, and given stripes alone we can just about discern their colour, but when mixed with a background colour it effectively blends the colour without blending the luminance.
I think this might be the same biological reason that we can't perceive much (or any) colour in low light, rods vs cones.
TL;DR our retinas are not CCDs they are a patchwork of two discrete components.