Researchers have developed new sensors for measuring acceleration and vibration on trains. The technology could be integrated with artificial intelligence to prevent railway accidents and catastrophic train derailments.