That's incredibly disturbing. I guess a lot of the criminal justice system has a bedrock, usually unstated, assumption that people know what they did and didn't do. That assumption is already questionable some of the time, but I suppose falls apart further when evidence can be fabricated to an extent that makes defendants doubt their sanity.
I wonder if this will occur more frequently in an era when people can start to create highly realistic video that appears to be of a particular person performing a particular act (so someone can show you full-blown "surveillance camera footage" of you doing something that you didn't do).