With[{aps=Select[allperts[ru,init,txspec],30<Keys[#][[1,1]]<60&],res=p/@alltrain[[All,1]]},KeyValueMap[Labeled[Show@@{ListStepPlot[#1,PlotHighlighting->None],Graphics[Join[{Green},Line[{{Keys[First[rh[[#]]]][[1,1]],0},{Keys[First[rh[[#]]]][[1,1]],30}}]&/@#2,{Red},Line[{{res[[#]],0},{res[[#]],30}}]&/@#2]]},Text[Length[#2]]]&,ReverseSortBy[GroupBy[ti,(If[#=={},0,#[[2]]-#[[1]]+1]&[nonzeroRange[#]]&/@PerturbedCellularAutomaton[ru,init,txspec,aps[[#]],"ReturnPerturbations"->False]&)],Length]][[;;20]]]