Preventing car battery fires with help from machine learning