Text this: Using Machine Learning to Optimize Resource Use in Batteries and Engines