Design and Analysis of Defect Detection in Composite Materials Using Machine Learning Based Thermal Wave Imaging