For now the scene transition is testing the structural similarity between two frames. There is no calculation I found so far that it will work 100% of the time, if you are using for some job is best to export the png sequence and then fix it by hand.
I'm always looking for ways to improve it, but it's unlikely it will work 100% in the future.