Advanced laser processing and its optimization with machine learning