train analysis