Text this: Mathematical approaches for track analysis and process optimization in additive manufacturing