Cognitive textile machines to improve process- and product-quality