Harness Machine Learning For Shape Morphing Devices