Derailments and train-pedestrian accidents are the reasons behind most incidents with trains, and are attributable to track issues and human error, respectively.