Error Frame Score Function