Automatic quality check of medical image data by artificial intelligence