Changes in the capability and cost of technology are driving an explosion in the use of intelligent, connected systems. Today, more things are connected to the internet than people. Tech giants like Facebook, Google and Amazon have led the advance and seem to know what and where we will buy, eat and visit before we do. Railways worldwide are investing in this technology to improve customer satisfaction, performance, ticket sales and maintenance planning. What is the potential for this technology in predicting and preventing accidents? Can algorithms tame the chaos and manage the risk of accidents?