keep a reference encoding of a given sample and compare the encoder output to it. Not perfect but will fail whenever the encoder output changes.