The edit score (segmental edit score) is an evaluation metric for the task of labeling each frame of a video with an action (temporal action segmentation) that condenses the prediction and ground truth into sequences of per-segment actions, divides their edit distance by the number of segments, and scales the result to 0–100. Higher is better; if the predicted actions are in the same order as the ground truth and the number of segments is the same, the score is 100.
and are the per-segment label sequences of the prediction and ground truth, and are their numbers of segments, and is the edit distance between the two sequences (the minimum number of substitutions, deletions, and insertions).
This metric is needed because frame-wise accuracy barely reflects errors in which segments are broken into small pieces (over-segmentation). In the example in the figure at the top, only 3 of 30 frames are wrong, so frame accuracy is 90%, but because a single frame of "add" appears in the middle of "mix", the prediction has 6 segments instead of 4. The edit score counts these 2 extra segments as errors and comes out at 66.7.
The edit score was used in Lea et al.'s work on action segmentation, and it became one of the standard metrics in the field after the TCN paper (2017) reported it alongside the segmental F1@k and frame accuracy.

