Possibly, but equally likely they start evolving weird colors patterns that fool the ai into not recognizing them.
Months? Years? Decades?
(curves where optimal amount of potentially mutating cockroaches and selection pressure meet, or whatever the parameters are. You get the idea.)