Physics student develops machine-learning model for energy and environmental applications