원시데이터 수집 시스템
선정목록으로

Leveraging multi-output modelling for CIELAB using colour difference formula towards sustainable textile dyeing

간접 관련 패션 · (24) 패션(코오롱FnC) (17) 스펀본드 부직포(3) 자동차 인테리어 소재

기본 정보

저자
  1. Zhenyuan Chen — Guangzhou Institute of Industrial Intelligence, Guangzhou, 511458, China|||Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, 110016, China
  2. Jian Liu — Guangzhou Institute of Industrial Intelligence, Guangzhou, 511458, China
  3. Jian Li — Guangzhou Institute of Industrial Intelligence, Guangzhou, 511458, China
  4. Mukun Yuan — Guangzhou Institute of Industrial Intelligence, Guangzhou, 511458, China|||Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, 110016, China|||University of Chinese Academy of Sciences, Beijing, 100049, China
  5. Yu Guangping — Guangzhou Institute of Industrial Intelligence, Guangzhou, 511458, China|||Shenyang Institute of Automation, Chinese Academy of Sciences, Shenyang, 110016, China
DOI
10.1007/s43684-024-00076-8
저널
Autonomous Intelligent Systems
발행년도
2024
발행기관
Springer Nature
피인용수
5
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s43684-024-00076-8
토픽
Color Science and Applications
OpenAlex ID
W4402892140

평가 내용

관련도
간접 관련
사업분야
패션 · (24) 패션(코오롱FnC)
부 분야
(17) 스펀본드 부직포, (3) 자동차 인테리어 소재
R&D 측면
공정·제조
확신도
0.90
근거 용어
textile dyeing, CIELAB colour values, dyeing ingredient, process parameters, physics-informed Transformer
판단 근거
본 논문은 섬유 염색 공정에서 염료 배합과 공정 변수에 따른 CIELAB 색상 값을 예측하는 AI 모델을 다룹니다. 이는 코오롱인더스트리의 패션(24) 부문의 기능성 원단 제조 및 자동차 인테리어(3), 스펀본드 부직포(17) 등 섬유 기반 제품의 염색 공정 최적화 및 품질 관리에 직접적으로 응용 가능한 기술입니다.
R&D 활용 포인트
섬유 및 부직포 염색 공정에서 AI 기반의 색상 예측 모델을 도입하여, 목표 색상 구현을 위한 시행착오(Trial-and-error)를 줄이고 물, 에너지, 화학물질 소비를 최소화하는 스마트 팩토리 공정 최적화에 활용 가능함.
평가 입력
섹션 본문 42,784자 중 30,032자 발췌

초록

Abstract Textile dyeing requires optimizing combinations of ingredients and process parameters to achieve target colour properties. Modelling the complex relationships between these factors and the resulting colour is challenging. In this case, a physics-informed approach for multi-output regression to model CIELAB colour values from dyeing ingredient and process inputs is proposed. Leveraging attention mechanisms and multi-task learning, the model outperforms baseline methods at predicting multiple colour outputs jointly. Specifically, the Transformer model’s attention mechanism captures the complex interactions between dyeing ingredients and process parameters, while the multi-task learning framework exploits the intrinsic correlations among the L*, a*, and b* dimensions of the CIELAB colour space. In addition, the incorporation of physical knowledge through a physics-informed loss function integrates the CMC colour difference formula. This loss function, along with the attention mechanisms, enables the model to learn the nuanced relationships between the dyeing process variables and the final colour output, thereby improving the overall prediction accuracy. This reduces trial-and-error costs and resource waste, contributing to environmental sustainability by minimizing water and energy consumption and chemical emissions.

본문 44,098자

본문 펼치기
Textile dyeing requires optimizing combinations of ingredients and process parameters to achieve target colour properties.Modelling the complex relationships between these factors and the resulting colour is challenging.In this case, a physics-informed approach for multi-output regression to model CIELAB colour values from dyeing ingredient and process inputs is proposed.Leveraging attention mechanisms and multi-task learning, the model outperforms baseline methods at predicting multiple colour outputs jointly.Specifically, the Transformer model's attention mechanism captures the complex interactions between dyeing ingredients and process parameters, while the multi-task learning framework exploits the intrinsic correlations among the L*, a*, and b* dimensions of the CIELAB colour space.In addition, the incorporation of physical knowledge through a physics-informed loss function integrates the CMC colour difference formula.This loss function, along with the attention mechanisms, enables the model to learn the nuanced relationships between the dyeing process variables and the final colour output, thereby improving the overall prediction accuracy.This reduces trial-and-error costs and resource waste, contributing to environmental sustainability by minimizing water and energy consumption and chemical emissions. Introduction Textile dyeing aims to impart colour to textile materials through the application of dyeing ingredients and control of process parameters.Achieving a target colour depends on complex physicochemical interactions between the dyes, fibres, and process conditions.These interactions make it challenging to predict colour outcomes accurately, leading to a reliance on empirical methods and extensive trial-and-error experimentation.Such approaches are not only time-consuming and resource-intensive but also contribute to inefficiencies and waste in the industry.Optimiz-tion for yarn nep index prediction showcased improved prediction accuracy over traditional neural networks [1].A colour-matching algorithm for digital textile printing, which uses AI to bridge the gap between design and production, thereby reducing waste and improving sustainability, was developed [2].The use of a scanner-based artificial intelligence technique for predicting nanosilver and dye content on silk fabric was explored, showcasing how AI can be used to minimize the environmental impact of textile dyeing processes [3].In addition, a colourmatching model using particle swarm optimization and least squares support vector machine (LSSVM) for predicting dye recipes in cotton fabric dyeing achieved a high colour-matching precision suitable for industrial applications [4].Also, the use of a scanner-based artificial intelligence technique for predicting nanosilver and dye content on silk fabric was explored, showcasing how AI can be used to minimize the environmental impact of textile dyeing processes [3].As reviewed, the state-of-the-art AI applications in textile industries have strengthened the role of deep learning and neural networks, which significantly improve efficiency and accuracy [5]. Introduction In textile dyeing, the CIELAB colour space, which quantifies colour in terms of lightness (L * ), green-red (a * ), and blue-yellow (b * ) coordinates, is widely used for its perceptual uniformity and ability to represent the entire gamut of colours visible to the human eye [6].Achieving precise and consistent CIELAB values is essential for quality control in textile manufacturing.In this case, one of the key challenges in textile dyeing is the accurate prediction of CIELAB colour values based on the combination of dyeing ingredients and process parameters.The non-linear nature of these relationships and the interdependencies between different colour components complicate the modelling process [7].This is where a physicsinformed approach becomes essential.By incorporating domain-specific physical knowledge into the modelling framework, the proposed method leverages the known relationships between the dyeing parameters and the resulting colour properties [8].This integration allows the model to capture the nuanced interactions more effectively, leading to improved prediction accuracy and reduced reliance on costly trial-and-error processes.The motivation behind adopting this physics-informed approach lies in its potential to enhance the efficiency and sustainability of textile dyeing operations by providing more reliable and accurate colour predictions. Introduction Previous approaches, such as polynomial regression and neural networks [9], have attempted to model these relationships but have often fallen short due to their inability to fully capture the intricate dependencies between multiple input variables and the resultant colour properties.Polynomial regression, while simple and interpretable, cannot effectively model the high-dimensional and non-linear interactions [5].Similarly, traditional neural networks, although more flexible, often require extensive data and can struggle with multi-output prediction tasks where the outputs are correlated. Introduction In recent years, deep learning has shown immense potential in handling complex, high-dimensional data across various fields.Specifically, multi-output prediction, which involves predicting multiple correlated outputs simultaneously, can leverage shared information between outputs to improve overall prediction accuracy.In the context of textile dyeing, this approach allows for the joint modelling of CIELAB values, taking into account the correlations between L*, a*, and b* components.Attention mechanisms, a core component of Transformer models, have revolutionized the way neural networks process information by allowing the model to dynamically focus on the most relevant parts of the input when making predictions.This capability is particularly useful in dyeing processes, where certain combinations of ingredients and conditions may have more significant effects on the final colour than others.By incorporating attention mechanisms, models can better capture these key interactions, leading to more accurate and robust predictions. Introduction This paper proposes a physics-informed Transformer approach to model CIELAB colour values from dyeing ingredient and process factors.By leveraging multi-task learning and attention mechanisms, it aims to improve the prediction of multiple correlated colour outputs compared to baseline methods.The integration of physical principles related to dyeing processes into the Transformer model further enhances its capability to understand and predict the complex relationships involved.The enhanced accuracy can enable recommendation systems to optimize dyeing for target colours, supporting smart textile dyeing processes.Such systems can not only improve the efficiency and effectiveness of dyeing operations but also contribute to sustainability by minimizing waste and reducing the need for corrective dyeing steps. Ingredient and process combination in textile dyeing The optimization of ingredient combinations and process parameters in textile dyeing is crucial for achieving the desired colour properties.This section reviews various approaches and models used to predict and optimize dyeing outcomes.One study explored the dyeing of polyester fabric with madder, a natural dye, using a Box-Behnken experimental design.The researchers evaluated the effects of five parameters-dye concentration, dye bath pH, temperature, duration, and liquor ratio-on colour strength.A novel approach using linear programming optimization was proposed to solve the textile colour formulation problem, emphasizing the advantages of linear models in min-imizing colour differences during dyeing [10].By employing artificial neural networks (ANN) and fuzzy logic models optimized by a genetic algorithm, they achieved mean absolute percentage errors of 2.52 and 3.01 in their predictions.This approach demonstrated the potential of combining experimental design with machine learning to optimize dyeing processes effectively.The study highlighted the importance of integrating AI with traditional experimental methods to enhance the accuracy and efficiency of dyeing process optimization [11].Another significant contribution was the development of an ANN method to assess the colour mix in mélange yarns.This study focused on the complex task of blending pre-coloured fibres to achieve the desired shade.By utilizing a modular artificial neural network (MANN), the researchers were able to predict the blending ratios more accurately compared to traditional methods.The MANN model demonstrated a higher success rate, fewer error factors, and faster computation times.The study underscored the potential of advanced neural network architectures in handling the intricacies of colour formulation, thus offering a robust solution for optimizing ingredient combinations in textile dyeing [12]. Ingredient and process combination in textile dyeing The application of neural networks in colour recipe prediction was further investigated by comparing the traditional Kubelka-Munk (K-M) model with neural network approaches for predicting the spectral reflectance of dyed fabrics.While the K-M model has been widely used for its simplicity, the study found that neural networks could potentially offer more accurate mappings between colourant concentrations and spectral reflectance under certain conditions.This comparison underscored the limitations of traditional models in handling non-linearities and the benefits of neural networks in providing more precise colour predictions [13].In addition to these methods, a convolutional neural network (CNN) approach was proposed for predicting textile colour trends.By extracting hidden information from a collection of images, the CNN model was able to predict colour demands more accurately.The use of the K-means clustering algorithm to extract colour features from images further enhanced the model's predictive capabilities.This method not only improved the accuracy of colour forecasting but also demonstrated the potential for integrating visual data analysis into the dyeing process optimization, thus providing a comprehensive approach to colour trend prediction [14]. Ingredient and process combination in textile dyeing Furthermore, a hyperspectral colour measurement technique combined with a deep learning algorithm for dyeing recipe prediction was introduced.This method provided a more nuanced understanding of colour interactions and allowed for more precise control over the dyeing process.The improved recurrent neural network (RNN) used in this study offered enhanced accuracy and efficiency in predicting dye recipes, thereby supporting better decisionmaking in the textile industry.The integration of hyper-spectral imaging with deep learning represents a significant advancement in colour measurement and prediction technologies [15].Additional research highlighted the use of neural networks to model the removal of textile dyes from contaminated water, demonstrating the broad applicability of these models beyond just colour prediction.The potential of microalga Chlamydomonas species to biosorb and decolourize dyes was modelled using an ANN, showing how machine learning can help in environmental sustainability efforts related to the textile industry.This study emphasized the versatility of AI in addressing various aspects of textile dyeing, from colour formulation to environmental impact mitigation [16].The prediction of warp breakage rates in weaving using neural network techniques further showcased the diverse applications of AI in textile processes.By modelling the relationship between yarn properties and breakage rates, this study provided insights into optimizing weaving processes to enhance fabric quality.The application of fuzzy neural networks to classify dyeing defects demonstrated another innovative use of AI in the textile industry, enabling more accurate and efficient defect detection and classification [17,18]. Ingredient and process combination in textile dyeing The reviewed studies collectively highlight the advancements in using artificial intelligence and machine learning techniques to optimize ingredient and process combinations in textile dyeing.By leveraging various models, researchers have been able to address the complexities and non-linearities of dyeing processes, leading to improved accuracy in colour prediction and process optimization. Previous studies on CIELAB colour value modelling The accurate prediction of CIELAB colour values is crucial for optimizing textile dyeing processes.Various machine learning techniques, particularly artificial neural networks (ANNs), have been explored to model the complex relationships between dyeing parameters and resulting colour properties.This section reviews the significant contributions and advancements in the field of L, a, and b colour modelling, highlighting the methodologies and outcomes of previous studies. Previous studies on CIELAB colour value modelling Neural networks have been extensively applied to model the CIELAB colour space due to their ability to handle non-linear relationships and complex interactions.In [6], a feed-forward neural network model was developed to predict CIELAB values in vinyl sulphone dye applications.The model demonstrated a lightness difference ( E) within acceptable ranges for most samples, with a maximum error of 2% for Lab* values.This study highlighted the potential of ANNs in optimizing dyeing parameters for specific dyes.Another significant study introduced a modular artificial neural network (MANN) to assess mélange yarn's colour mix [19].The MANN model outperformed traditional ANN models, achieving a colour difference (CMC 2:1) of 1.26, which was closer to real measurements compared to the standard ANN approach.This study emphasized the importance of modular approaches in improving prediction accuracy and reducing computational errors. Previous studies on CIELAB colour value modelling Recent advancements in machine learning have further enhanced the accuracy of CIELAB colour predictions.In [7], a dyeing recipe prediction model for cotton fabric based on hyperspectral colour measurement and a deep learning algorithm was proposed.This model leveraged the capabilities of deep learning to handle highdimensional spectral data, resulting in improved colourmatching accuracy compared to conventional methods.An automatic colour-matching prediction model, CMRcolour, incorporating convolutional neural networks (CNNs), multilayer perceptrons (MLPs), and residual networks (ResNets) was developed in [9].This approach significantly improved the model's ability to extract highdimensional features from spectral data, leading to more accurate colour predictions and better dyeing recipe recommendations. Previous studies on CIELAB colour value modelling Hybrid approaches combining neural networks with other optimization techniques have also been explored.The application of a genetic algorithm to optimize colour recipe formulation showed that AI-based optimization can achieve minimal colour differences, thus improving colour accuracy in textile production [20].In [21], a hybrid model using ANNs and fuzzy logic optimized by a genetic algorithm for environmentally benign dyeing of polyester fabric was employed.This model demonstrated superior performance in predicting dyeing outcomes, showcasing the effectiveness of hybrid models in complex dyeing scenarios.Another study developed a neural network-based scanner for colour-matching reactive dyed cotton [22].The model used histograms of scanned fabric images to train the neural network, achieving a low mean square error and high accuracy in colour prediction.This study highlighted the potential of integrating image processing techniques with neural networks for colour-matching applications.In addition, a hybrid AI model was developed to predict the colour coordinates of polyester fabric dyed with madder natural dye, demonstrating the superiority of AI models over traditional methods in handling non-linear relationships in colour prediction [23]. Previous studies on CIELAB colour value modelling The reviewed studies underscore the advancements in using neural networks and other machine learning techniques for CIELAB colour prediction in textile dyeing.While significant progress has been made, challenges remain in achieving higher accuracy and robustness across diverse dyeing conditions and fabric types.Existing models often struggle with the scalability and generalization required for industrial applications. Transformer and its application for multi-output regression Transformers have revolutionized various fields by leveraging attention mechanisms to model complex inputoutput relationships.Initially proposed by Vaswani et al. [24], the Transformer model has shown great success across multiple domains such as natural language processing, computer vision, and time-series forecasting due to its capability to handle long-range dependencies and parallelize computations. Transformer and its application for multi-output regression For multi-output regression, the Transformer model's ability to manage multiple outputs simultaneously makes it a valuable tool.For instance, a study by Wang et al. proposed a multi-task model, MultiDeT (Multiple-Decoder Transformer), to predict multi-energy load in integrated energy systems.This model employs a single encoder and multiple task-specific decoders to capture the interdependencies between different energy loads.The architecture effectively addresses the coupling characteristics of various energy types, thereby improving the accuracy and reliability of load forecasts [25].Another application is found in wastewater treatment, where predicting effluent water quality based on influent water characteristics poses significant challenges due to the complex and dynamic nature of the treatment process.Huang et al. introduced the Regformer model, a Transformer-based approach for multioutput regression to predict multiple effluent quality indicators.This model significantly enhances prediction accuracy and efficiency, demonstrating superior performance over traditional methods like LSTM and CNN [26]. Transformer and its application for multi-output regression In multi-energy load forecasting, the MultiDeT model uses a one-encoder multi-decoder structure to simultaneously predict the next 24-hour load for electricity, cold, and heat.This approach leverages the attention mechanism to focus on the most relevant features, resulting in more accurate and reliable predictions compared to conventional methods.The model's architecture allows it to handle the complex interactions between different energy loads, providing a comprehensive solution for integrated energy systems [25].Moreover, the Regformer model for wastewater treatment showcases the Transformer's ability to handle variable-length input sequences, which is crucial for real-time applications.The model supports dynamic updates and low-latency predictions, making it suitable for real-time monitoring and control in industrial settings.By treating the wastewater treatment process as a "black box, " the Reformer model automatically learns the underlying principles, achieving high prediction accuracy with minimal computational overhead [27]. Transformer and its application for multi-output regression The successful implementation of Transformers in these multi-output regression tasks underscores their potential in handling complex, high-dimensional data.By capturing intricate relationships between multiple outputs and leveraging the self-attention mechanism, Transformers provide a robust framework for predictive modelling in various industrial applications [28]. Transformer and its application for multi-output regression In summary, the reviewed studies collectively highlight the advancements in using data-driven techniques to optimize ingredient and process combinations in textile dyeing, as well as the accurate prediction of CIELAB colour values.By leveraging various models, researchers have been able to address the complexities and non-linearities of dyeing processes, leading to improved accuracy in colour prediction and process optimization.However, several challenges remain.Existing models often struggle with the scalability and generalization required for industrial applications, and the ability to handle diverse dyeing conditions and fabric types robustly remains a significant challenge.While machine learning models have shown great promise, there is a need for integrating domain-specific knowledge, such as the CIELAB colour difference formula, to enhance prediction interpretability and reliability.The intricate dependencies between multiple dyeing parameters and their collective impact on the resulting colour are not fully captured by traditional models, necessitating advanced models that can manage these complex interactions.Furthermore, the development of models that can support dynamic updates and low-latency predictions for real-time monitoring and control in industrial settings is essential for the practical implementation of smart dyeing systems. Transformer and its application for multi-output regression To address these gaps, this research proposes a physicsinformed Transformer-based multi-output regression model.By leveraging attention mechanisms and multitask learning, the proposed model aims to improve the prediction of multiple correlated colour outputs from dyeing ingredient and process inputs.The enhanced modelling accuracy will enable better recommendations for ingredient and process combinations to achieve target colours, thereby supporting the development of smart textile dyeing systems. Methodology To address the aforementioned research gaps, this research proposes a physics-informed multi-output regression model using a Transformer to predict CIELAB colour values from textile dyeing inputs.By leveraging attention mechanisms and multi-task learning, the proposed model aims to improve the prediction of multiple correlated colour outputs from dyeing ingredient and process inputs.The proposed approach involves four key steps, starting with data fusion and preprocessing, followed by the training of the Transformer model with the incorporation of the CMC colour difference formula as the loss function.Finally, prediction and evaluation.Figure 1 provides a visual overview of the framework.The data preprocessing stage involves normalizing dye and auxiliary agent proportions, followed by encoding categorical variables.The model then uses this pre-processed data to predict CIELAB values, leveraging multi-task learning and attention mechanisms.The model's predictions are evaluated using both Figure 1 Illustration of the proposed approach conventional metrics and industry-specific metrics, ensuring that the outputs are both accurate and perceptually relevant. The colour-matching model The colour-matching model is essential for computerassisted colour matching, as it ensures that the model meets the actual production needs of the dyeing factory.This model is crucial for converting colour measurements into actionable formulas.A key aspect of this process is the calculation of the tristimulus values, which has garnered significant attention from colour scientists [29].In our approach, we utilize the equal interval wavelength method, also known as the weighting method, as the physical model to calculate these tristimulus values [30].This method is preferred over the direct selection method for its accuracy and is widely used in modern colourimetric instruments for chromaticity calculations.According to the CIE colour model, a specific colour can be expressed using L, a, b.In this study, we employ the CMC E CMC(1:c) formula [30] to evaluate the colour difference between the target sample and the expected formulation, the illustration is shown in Fig. 2. The colour-matching model This formula provides an accurate measure of colour difference.The E CMC(1:c) formula is mathematically defined as: Here, L * , C * , and H * represent the differences in lightness, chroma, and hue, respectively, between the predicted and target colours.The coefficients S L , S C , and S H serve as weighting factors for these differences.The formula modifies L*, C*, and H* by adding weight factors l (lightness weight) and c (chroma factor) to enhance colour difference uniformity. The architecture of the multi-output model The proposed model is based on Transformer architecture tailored for multi-output regression tasks in textile dyeing.The model includes a unified encoder and multiple task-specific decoders, each dedicated to predicting one of the CIELAB colour components.To incorporate this colour-matching model into the Transformer architecture, we need to ensure that the physics-informed loss function captures the CMC colour difference formula.This integration will make the model physically meaningful and aligned with the industry standards for colour evaluation.The Transformer model leverages the multihead self-attention mechanism to capture intricate relationships between dyeing ingredients and process parameters.This mechanism allows the model to focus on different parts of the input vector dynamically, which is crucial for accurately predicting the multiple correlated outputs (L*, a*, b*).Additionally, the multi-task learning framework enables the model to predict these outputs simultaneously by sharing a unified encoder while using separate decoders for each colour component.This approach exploits the intrinsic correlations among the outputs, improving overall prediction accuracy. The architecture of the multi-output model Encoders The encoder is designed to capture the complex interactions between dyeing ingredients and process parameters.The encoder processes the input data through multiple layers, each comprising a multi-head self-attention mechanism and a feedforward neural network.The attention mechanism allows the model to dynamically focus on different parts of the input vector, capturing intricate relationships between various dyeing parameters.The attention mechanism is defined as: The architecture of the multi-output model where Q, K , and V are the query, key, and value matrices, respectively, and d k is the dimensionality of the key vectors.Each encoder layer includes a feedforward neural network to enhance the model's non-linear fitting ability, consisting of two linear transformations with a ReLU activation in between: The architecture of the multi-output model where W 1 and W 2 are weight matrices, and b 1 and b 2 are bias terms. The architecture of the multi-output model Decoders The model employs separate decoders for each colour component (L, a, b).Each decoder follows a similar structure to the encoder but includes an additional encoder-decoder attention mechanism to utilize the encoded representations from the encoder.The decoders take the hidden states from the encoder and combine them with the target sequence (previously predicted CIELAB values) to generate the final predictions.The attention mechanisms in the decoders are defined as follows: The architecture of the multi-output model where each head is computed as: The architecture of the multi-output model and W O is the output weight matrix. Physics-informed loss function To incorporate the colour difference formula into the neural network, we introduce a physics-informed loss function that penalizes deviations from the expected CIELAB values.The CIELAB colour difference ( E) is computed as equation ( 1): Physics-informed loss function The proposed model employs multi-task learning to jointly predict the three CIELAB colour components (L, a, b).Each decoder is responsible for predicting one of the components, and all decoders share the same encoder.Typically, in colourimetry, a E value less than 1 is considered excellent, and values below 2 are often considered acceptable for commercial purposes.The Mean Absolute Error (MAE) and Mean Squared Error (MSE) should also reflect this level of accuracy. Physics-informed loss function The total loss function combines the traditional mean square error (MSE) with the physics-informed E component: Physics-informed loss function where α and β are weights that balance the contributions of each loss term.By leveraging attention mechanisms and multi-task learning, the proposed physics-informed Transformerbased model significantly enhances the prediction accuracy of multiple correlated colour outputs (L, a, b) from dyeing ingredient and process inputs. Evaluation metrics The evaluation of the model's performance is based on several key metrics, each providing unique insights into different aspects of the model's effectiveness: Evaluation metrics Mean Squared Error (MSE): Measures the average squared difference between predicted and actual colour values.It provides a baseline understanding of prediction accuracy. Evaluation metrics where y i represents the true CIELAB colour value, ŷi represents the predicted CIELAB colour value, and n is the number of samples.MSE measures the average squared difference between the predicted and actual colour values, providing a sense of overall prediction accuracy.Mean Absolute Error (MAE): Measures the average absolute difference between predicted and actual colour values, offering an alternative perspective on prediction accuracy. Evaluation metrics MAE measures the average absolute difference between the predicted and actual colour values, offering an alternative perspective on prediction accuracy by focusing on the magnitude of errors regardless of their direction. Evaluation metrics Besides MSE and MAE, the CIELAB colour difference metric E is applied as the evaluation metric as well since it is crucial for assessing the perceptual accuracy of colour predictions.A lower E indicates that the predicted colour is closer to the actual colour, which is essential for practical applications in textile dyeing. Case study This experimental study focuses on the formulation recommendation process for textile dyeing.Typically, a client provides a sample, and the dyeing factory must conduct trial productions, continuously adjusting materials, processes, types of formulas, and their proportions to achieve a CIELAB colour value that closely matches the client's sample.Traditionally, this process relied heavily on the experience of skilled technicians who, through multiple rounds of trial production, would gradually approach the target colour.However, with the accumulation of extensive production data over time, there is now a growing demand for data-driven approaches. Case study Currently, the data at our disposal encompasses two years of production records from a large-scale dyeing factory.This dataset includes detailed information on production processes, fabric material types, dye and auxiliary categories and proportions, and the resulting colours postdyeing.The objective of this study is to develop a predictive model for the CIELAB colour values (L, a, b) based on this comprehensive dataset. Data description To verify the effectiveness of the proposed approach, the dataset utilized in this study was collected from the Manufacturing Execution System (MES) records and colourimeter measurements at a large textile dyeing factory.The MES system meticulously records various dyeing process variables such as temperature, pH, dye concentration, and process duration.Subsequently, the colourimeter provides precise measurements of the resulting colours, ensuring a comprehensive capture of the dyeing process's operational conditions.As shown in Table 1, the dataset consists of individual records, with each record representing a single production or trial production run.This detailed structure allows for a granular analysis of the dyeing process. Data description Notably, the dataset includes comprehensive information on dye and auxiliary agent usage, not only recording the types and proportions of the ingredients used but also the order and sequence in which they were added.This is significant as the sequence of addition can influence the final colour outcome. Data pre-processing In preparation for training the Transformer model, the raw data from the dyeing process must be pre-processed to ensure that it is structured appropriately for the model architecture.The main goal of this preprocessing step is to convert the dye and auxiliary agent usage data into a format that can be effectively processed by the Transformer model.Specifically, the formulation data is transformed into a vector representation where each formulation is represented as a vector, with the proportions of the ingredients corresponding to the magnitude of the vector components. Data pre-processing As described in Sect.4.1, the sequence of addition can influence the final colour outcome.Each formulation in the dataset is comprised of different dyes and auxiliary agents, each with a specific proportion.These proportions can be thought of as the magnitudes of the components of a vector.For example, if a formulation consists of three dyes (D1, D2, and D3) and two auxiliary agents (A1 and A2), the vector representation could be: Data pre-processing where t i represents the position (or time-step) in the sequence and p D1 , p D2 , p D3 , p A1 and p A2 are the proportions of the respective dyes and auxiliary agents. Data pre-processing Before constructing the vector representation, the proportions of the ingredients need to be normalized.This normalization step is important because it ensures that the vector magnitudes reflect relative proportions rather than absolute quantities.The normalization can be performed using the following formula: Data pre-processing where p i is the normalized proportion of the ith ingredient and p i is the original proportion. Data pre-processing As the proportions are normalized, each formulation can be represented as a sequence of tuples, where each tu- In addition to the formulation data, the process parameters such as temperature, pH, and process duration also need to be incorporated into the input.These parameters are concatenated to the end of the formulation vector, creating an extended input vector for the Transformer model.Textual information such as the names of the dyes and auxiliary agents and the fabric material types are converted into numerical form by embedding.The final input to the Transformer model consists of a vector that combines the normalized proportions of the dyes and auxiliary agents with the process parameters.Figure 3 illustrates the details of data pre-processing. Experiments setup To evaluate the effectiveness of the proposed physicsinformed Transformer-based multi-output regression model, a comparative analysis of our proposed approach against several baseline models which have been applied in previous studies of CIELAB modelling, including Gradient Boosting [31], Artificial Neural Networks [32] is conducted.In addition to these approaches, considering the sequential nature of the training dataset, the Long Short-Term Memory (LSTM) and a standard Transformer model are selected for comparison as well. Experiments setup For the Gradient Boosting Machine (GBM) approach, the model was optimised to compare its performance.The GBM models used squared error as the objective function.The GBM models were tuned by searching for the optimal hyperparameter values using a grid search following the parameters in Table 2. Experiments setup For the ANN approach, we experimented with a fully connected model and a ResNet-like model (with skipconnections).In all the experiments, the network archi- tecture is a single model which has a fixed number of input nodes, equal to the number of the variables used.The parameters in the ANN model are listed in Table 3. Experiments setup For the LSTM approach, the model was tuned using the Adam optimizer to minimize the loss.The parameters in the LSTM model are listed in Table 4.An early stopping criterion was also implemented to prevent overfitting. Experiments setup For the proposed Transformer approach, we developed a multi-output regression architecture tailored specifically for predicting the CIELAB colour components (L, a, b) Experiments setup in textile dyeing applications.The parameters in the proposed model are listed in Table 5.The model leverages the Transformer architecture, incorporating multi-task learning and a physics-informed loss function to enhance the prediction accuracy. Results and conclusions The comparative analysis across different models showed that the proposed physics-informed Transformer model outperformed the baseline models in predicting the CIELAB colour components (L, a, b) for textile dyeing.The results are summarized in Table 6. Results and conclusions The E values represent the actual colour difference between the predicted colours and the true laboratory colours.As shown in Fig. 4, the GBM model achieved a mean E of 1.82 with a standard deviation of 0.24, outperforming the conventional ANN and LSTM models, which had higher mean E values of 2.09 and 1.98, respectively.This suggests that the GBM model is effective at capturing the relationships between the dyeing process parameters and the resulting colour.However, the LSTM model performed better than the GBM due to its ability to handle the sequential nature of the dyeing process, achieving a mean E of 1.75 with a standard deviation of 0.18.The Standard Transformer model further improved upon the LSTM, achieving a mean E of 1.73 with a standard deviation of 0.16.The proposed Transformer model with CMC-loss, which incorporates the CMC colour difference formula into the loss function, achieved the best performance with a mean E of 1.73 and a standard deviation of 0.16.Despite having similar MAE and MSE values to the standard Transformer, the proposed Physics-Informed Transformer's E value indicates that its predictions are more closely aligned with the true colours, making it the most suitable choice for practical applications. Results and conclusions The MAE provides a measure of the average magnitude of errors in the predictions without considering their direction.As shown in Fig. 5, the GBM model achieved an MAE of 0.35, while the conventional ANN and LSTM models had slightly higher MAEs of 0.40 and 0.32, respectively.Both the standard Transformer and the proposed Transformer models with CMC-loss achieved the lowest MAE values of 0.28 and 0.29, respectively.The MAE values indicate that the Transformer models, especially the CMC-loss Transformer, provide the most stable predictions, being less sensitive to outliers due to the use of absolute differences.The low MAE values suggest that the Transformer models consistently produce predictions that are close to the true values, making them more reliable for industrial dyeing applications. Results and conclusions The MSE penalizes larger errors more heavily due to the squaring of the differences between the predicted and true values.As shown in Fig. 6, the Conventional GBM model achieved an MSE of 0.54, while the ANN and LSTM models had higher MSEs of 0.66 and 0.50, respectively.Both the Standard Transformer and the proposed physics-informed Transformer models achieved the lowest MSE values of 0.33 and 0.35, respectively.The low MSE values for the Transformer models indicate that they effectively minimize the impact of outliers, as the squared errors will be smaller when the predictions are closer to the true values.The physics-informed Transformer's slightly higher MSE compared to the Standard Transformer suggests that the inclusion of the CMC colour difference formula in the loss function might introduce some additional variance in the predictions.However, the overall performance of the Transformer with the CMC-loss remains superior due to its optimized predictions for E. Results and conclusions In summary, the proposed Transformer model with CMC-loss offers the best balance between E, MAE, and MSE, making it the most suitable choice for accurate and robust colour prediction in textile dyeing.Its superior performance in terms of E indicates that it is highly effective at producing predictions that are closely aligned with the true colours, while its low MAE and MSE values demonstrate its ability to produce stable and precise predictions. Conclusions By leveraging this data-driven approach, the dyeing factory aims to enhance the accuracy of formula recommendations during the trial production phase, thereby reducing the number of iterations needed to achieve the target colour.This not only improves production efficiency but also lowers costs.Additionally, the model can provide deeper insights into how different factors influence the final colour, enabling further optimization of the dyeing process.Also, achieving precise and consistent CIELAB values is critical for maintaining high standards of quality control in textile manufacturing.These values ensure that the colours produced meet customer expectations and industry standards, reducing the need for costly rework.Furthermore, by optimizing dye formulations to achieve these targets with minimal waste, the proposed model supports sustainability goals, helping manufacturers reduce The robustness of the proposed model, as indicated by the lower standard deviation in the E values, is crucial in real-world applications where small variations in the dyeing process can lead to significant differences in the final product.The improved performance over other models indicates that the integration of domain-specific knowledge, such as the physics-informed loss function, can significantly enhance the predictive power of machine learning models in complex industrial settings like textile dyeing. Conclusions In summary, the physics-informed Transformer model represents a significant advancement in textile dyeing, offering accurate and reliable predictions that can directly inform industrial dyeing processes, potentially reducing waste and improving efficiency.The integration of domain-specific knowledge, such as the physics-informed loss function, demonstrates the potential to revolutionize the dyeing industry by enabling more sustainable and effi-cient practices.Future research could extend this work in several directions.First, exploring the scalability and generalization of the model across different dye types and fabric compositions could broaden its applicability.Second, integrating real-time monitoring capabilities and feedback mechanisms would enhance the model's adaptability to varying dyeing conditions.Third, considering additional environmental impacts, such as carbon footprint reduction, could further align the model with sustainability goals in the textile industry.These extensions would not only strengthen the model's practical utility but also contribute to the ongoing efforts to make textile dyeing processes more efficient and environmentally friendly. Figure 2 Figure 2 Illustration of E CMC(1:c) formula Temperature Categories and ProportionsSpecific types and amounts of dyes and auxiliary chemicals are used in each recipe, along with the sequence and order of their addition.Dye type, Dye concentration, Auxiliary type, Addition sequence 4 Resulting Colours Post-Dyeing Measured CIELAB colour values (L, a, b) for each dyed sample, obtained through colourimeter measurements.L* value, a* value, b* value Figure 3 Figure 3 Illustration of the proposed data pre-processing approach Figure 4 Figure 4 Comparison of E across different approaches Figure 5 Figure 6 Figure 5 Comparison of MAE across different approaches Table 1 Details of Main Categories of the Dyeing Process Dataset Table 2 Parameters in GBM model Table 3 Parameters in ANN model Table 4 Parameters in LSTM model Table 5 Parameters in the proposed model Table 6 Performance in predicting CIELAB colour components

섹션 본문 74문단 · 42,020자

(제목 없음)

1Textile dyeing requires optimizing combinations of ingredients and process parameters to achieve target colour properties.Modelling the complex relationships between these factors and the resulting colour is challenging.In this case, a physics-informed approach for multi-output regression to model CIELAB colour values from dyeing ingredient and process inputs is proposed.Leveraging attention mechanisms and multi-task learning, the model outperforms baseline methods at predicting multiple colour outputs jointly.Specifically, the Transformer model's attention mechanism captures the complex interactions between dyeing ingredients and process parameters, while the multi-task learning framework exploits the intrinsic correlations among the L*, a*, and b* dimensions of the CIELAB colour space.In addition, the incorporation of physical knowledge through a physics-informed loss function integrates the CMC colour difference formula.This loss function, along with the attention mechanisms, enables the model to learn the nuanced relationships between the dyeing process variables and the final colour output, thereby improving the overall prediction accuracy.This reduces trial-and-error costs and resource waste, contributing to environmental sustainability by minimizing water and energy consumption and chemical emissions.

Introduction

2Textile dyeing aims to impart colour to textile materials through the application of dyeing ingredients and control of process parameters.Achieving a target colour depends on complex physicochemical interactions between the dyes, fibres, and process conditions.These interactions make it challenging to predict colour outcomes accurately, leading to a reliance on empirical methods and extensive trial-and-error experimentation.Such approaches are not only time-consuming and resource-intensive but also contribute to inefficiencies and waste in the industry.Optimiz-tion for yarn nep index prediction showcased improved prediction accuracy over traditional neural networks [1].A colour-matching algorithm for digital textile printing, which uses AI to bridge the gap between design and production, thereby reducing waste and improving sustainability, was developed [2].The use of a scanner-based artificial intelligence technique for predicting nanosilver and dye content on silk fabric was explored, showcasing how AI can be used to minimize the environmental impact of textile dyeing processes [3].In addition, a colourmatching model using particle swarm optimization and least squares support vector machine (LSSVM) for predicting dye recipes in cotton fabric dyeing achieved a high colour-matching precision suitable for industrial applications [4].Also, the use of a scanner-based artificial intelligence technique for predicting nanosilver and dye content on silk fabric was explored, showcasing how AI can be used to minimize the environmental impact of textile dyeing processes [3].As reviewed, the state-of-the-art AI applications in textile industries have strengthened the role of deep learning and neural networks, which significantly improve efficiency and accuracy [5].

3In textile dyeing, the CIELAB colour space, which quantifies colour in terms of lightness (L * ), green-red (a * ), and blue-yellow (b * ) coordinates, is widely used for its perceptual uniformity and ability to represent the entire gamut of colours visible to the human eye [6].Achieving precise and consistent CIELAB values is essential for quality control in textile manufacturing.In this case, one of the key challenges in textile dyeing is the accurate prediction of CIELAB colour values based on the combination of dyeing ingredients and process parameters.The non-linear nature of these relationships and the interdependencies between different colour components complicate the modelling process [7].This is where a physicsinformed approach becomes essential.By incorporating domain-specific physical knowledge into the modelling framework, the proposed method leverages the known relationships between the dyeing parameters and the resulting colour properties [8].This integration allows the model to capture the nuanced interactions more effectively, leading to improved prediction accuracy and reduced reliance on costly trial-and-error processes.The motivation behind adopting this physics-informed approach lies in its potential to enhance the efficiency and sustainability of textile dyeing operations by providing more reliable and accurate colour predictions.

4Previous approaches, such as polynomial regression and neural networks [9], have attempted to model these relationships but have often fallen short due to their inability to fully capture the intricate dependencies between multiple input variables and the resultant colour properties.Polynomial regression, while simple and interpretable, cannot effectively model the high-dimensional and non-linear interactions [5].Similarly, traditional neural networks, although more flexible, often require extensive data and can struggle with multi-output prediction tasks where the outputs are correlated.

5In recent years, deep learning has shown immense potential in handling complex, high-dimensional data across various fields.Specifically, multi-output prediction, which involves predicting multiple correlated outputs simultaneously, can leverage shared information between outputs to improve overall prediction accuracy.In the context of textile dyeing, this approach allows for the joint modelling of CIELAB values, taking into account the correlations between L*, a*, and b* components.Attention mechanisms, a core component of Transformer models, have revolutionized the way neural networks process information by allowing the model to dynamically focus on the most relevant parts of the input when making predictions.This capability is particularly useful in dyeing processes, where certain combinations of ingredients and conditions may have more significant effects on the final colour than others.By incorporating attention mechanisms, models can better capture these key interactions, leading to more accurate and robust predictions.

6This paper proposes a physics-informed Transformer approach to model CIELAB colour values from dyeing ingredient and process factors.By leveraging multi-task learning and attention mechanisms, it aims to improve the prediction of multiple correlated colour outputs compared to baseline methods.The integration of physical principles related to dyeing processes into the Transformer model further enhances its capability to understand and predict the complex relationships involved.The enhanced accuracy can enable recommendation systems to optimize dyeing for target colours, supporting smart textile dyeing processes.Such systems can not only improve the efficiency and effectiveness of dyeing operations but also contribute to sustainability by minimizing waste and reducing the need for corrective dyeing steps.

Ingredient and process combination in textile dyeing

7The optimization of ingredient combinations and process parameters in textile dyeing is crucial for achieving the desired colour properties.This section reviews various approaches and models used to predict and optimize dyeing outcomes.One study explored the dyeing of polyester fabric with madder, a natural dye, using a Box-Behnken experimental design.The researchers evaluated the effects of five parameters-dye concentration, dye bath pH, temperature, duration, and liquor ratio-on colour strength.A novel approach using linear programming optimization was proposed to solve the textile colour formulation problem, emphasizing the advantages of linear models in min-imizing colour differences during dyeing [10].By employing artificial neural networks (ANN) and fuzzy logic models optimized by a genetic algorithm, they achieved mean absolute percentage errors of 2.52 and 3.01 in their predictions.This approach demonstrated the potential of combining experimental design with machine learning to optimize dyeing processes effectively.The study highlighted the importance of integrating AI with traditional experimental methods to enhance the accuracy and efficiency of dyeing process optimization [11].Another significant contribution was the development of an ANN method to assess the colour mix in mélange yarns.This study focused on the complex task of blending pre-coloured fibres to achieve the desired shade.By utilizing a modular artificial neural network (MANN), the researchers were able to predict the blending ratios more accurately compared to traditional methods.The MANN model demonstrated a higher success rate, fewer error factors, and faster computation times.The study underscored the potential of advanced neural network architectures in handling the intricacies of colour formulation, thus offering a robust solution for optimizing ingredient combinations in textile dyeing [12].

8The application of neural networks in colour recipe prediction was further investigated by comparing the traditional Kubelka-Munk (K-M) model with neural network approaches for predicting the spectral reflectance of dyed fabrics.While the K-M model has been widely used for its simplicity, the study found that neural networks could potentially offer more accurate mappings between colourant concentrations and spectral reflectance under certain conditions.This comparison underscored the limitations of traditional models in handling non-linearities and the benefits of neural networks in providing more precise colour predictions [13].In addition to these methods, a convolutional neural network (CNN) approach was proposed for predicting textile colour trends.By extracting hidden information from a collection of images, the CNN model was able to predict colour demands more accurately.The use of the K-means clustering algorithm to extract colour features from images further enhanced the model's predictive capabilities.This method not only improved the accuracy of colour forecasting but also demonstrated the potential for integrating visual data analysis into the dyeing process optimization, thus providing a comprehensive approach to colour trend prediction [14].

9Furthermore, a hyperspectral colour measurement technique combined with a deep learning algorithm for dyeing recipe prediction was introduced.This method provided a more nuanced understanding of colour interactions and allowed for more precise control over the dyeing process.The improved recurrent neural network (RNN) used in this study offered enhanced accuracy and efficiency in predicting dye recipes, thereby supporting better decisionmaking in the textile industry.The integration of hyper-spectral imaging with deep learning represents a significant advancement in colour measurement and prediction technologies [15].Additional research highlighted the use of neural networks to model the removal of textile dyes from contaminated water, demonstrating the broad applicability of these models beyond just colour prediction.The potential of microalga Chlamydomonas species to biosorb and decolourize dyes was modelled using an ANN, showing how machine learning can help in environmental sustainability efforts related to the textile industry.This study emphasized the versatility of AI in addressing various aspects of textile dyeing, from colour formulation to environmental impact mitigation [16].The prediction of warp breakage rates in weaving using neural network techniques further showcased the diverse applications of AI in textile processes.By modelling the relationship between yarn properties and breakage rates, this study provided insights into optimizing weaving processes to enhance fabric quality.The application of fuzzy neural networks to classify dyeing defects demonstrated another innovative use of AI in the textile industry, enabling more accurate and efficient defect detection and classification [17,18].

10The reviewed studies collectively highlight the advancements in using artificial intelligence and machine learning techniques to optimize ingredient and process combinations in textile dyeing.By leveraging various models, researchers have been able to address the complexities and non-linearities of dyeing processes, leading to improved accuracy in colour prediction and process optimization.

Previous studies on CIELAB colour value modelling

11The accurate prediction of CIELAB colour values is crucial for optimizing textile dyeing processes.Various machine learning techniques, particularly artificial neural networks (ANNs), have been explored to model the complex relationships between dyeing parameters and resulting colour properties.This section reviews the significant contributions and advancements in the field of L, a, and b colour modelling, highlighting the methodologies and outcomes of previous studies.

12Neural networks have been extensively applied to model the CIELAB colour space due to their ability to handle non-linear relationships and complex interactions.In [6], a feed-forward neural network model was developed to predict CIELAB values in vinyl sulphone dye applications.The model demonstrated a lightness difference ( E) within acceptable ranges for most samples, with a maximum error of 2% for Lab* values.This study highlighted the potential of ANNs in optimizing dyeing parameters for specific dyes.Another significant study introduced a modular artificial neural network (MANN) to assess mélange yarn's colour mix [19].The MANN model outperformed traditional ANN models, achieving a colour difference (CMC 2:1) of 1.26, which was closer to real measurements compared to the standard ANN approach.This study emphasized the importance of modular approaches in improving prediction accuracy and reducing computational errors.

13Recent advancements in machine learning have further enhanced the accuracy of CIELAB colour predictions.In [7], a dyeing recipe prediction model for cotton fabric based on hyperspectral colour measurement and a deep learning algorithm was proposed.This model leveraged the capabilities of deep learning to handle highdimensional spectral data, resulting in improved colourmatching accuracy compared to conventional methods.An automatic colour-matching prediction model, CMRcolour, incorporating convolutional neural networks (CNNs), multilayer perceptrons (MLPs), and residual networks (ResNets) was developed in [9].This approach significantly improved the model's ability to extract highdimensional features from spectral data, leading to more accurate colour predictions and better dyeing recipe recommendations.

14Hybrid approaches combining neural networks with other optimization techniques have also been explored.The application of a genetic algorithm to optimize colour recipe formulation showed that AI-based optimization can achieve minimal colour differences, thus improving colour accuracy in textile production [20].In [21], a hybrid model using ANNs and fuzzy logic optimized by a genetic algorithm for environmentally benign dyeing of polyester fabric was employed.This model demonstrated superior performance in predicting dyeing outcomes, showcasing the effectiveness of hybrid models in complex dyeing scenarios.Another study developed a neural network-based scanner for colour-matching reactive dyed cotton [22].The model used histograms of scanned fabric images to train the neural network, achieving a low mean square error and high accuracy in colour prediction.This study highlighted the potential of integrating image processing techniques with neural networks for colour-matching applications.In addition, a hybrid AI model was developed to predict the colour coordinates of polyester fabric dyed with madder natural dye, demonstrating the superiority of AI models over traditional methods in handling non-linear relationships in colour prediction [23].

15The reviewed studies underscore the advancements in using neural networks and other machine learning techniques for CIELAB colour prediction in textile dyeing.While significant progress has been made, challenges remain in achieving higher accuracy and robustness across diverse dyeing conditions and fabric types.Existing models often struggle with the scalability and generalization required for industrial applications.

Transformer and its application for multi-output regression

16Transformers have revolutionized various fields by leveraging attention mechanisms to model complex inputoutput relationships.Initially proposed by Vaswani et al. [24], the Transformer model has shown great success across multiple domains such as natural language processing, computer vision, and time-series forecasting due to its capability to handle long-range dependencies and parallelize computations.

17For multi-output regression, the Transformer model's ability to manage multiple outputs simultaneously makes it a valuable tool.For instance, a study by Wang et al. proposed a multi-task model, MultiDeT (Multiple-Decoder Transformer), to predict multi-energy load in integrated energy systems.This model employs a single encoder and multiple task-specific decoders to capture the interdependencies between different energy loads.The architecture effectively addresses the coupling characteristics of various energy types, thereby improving the accuracy and reliability of load forecasts [25].Another application is found in wastewater treatment, where predicting effluent water quality based on influent water characteristics poses significant challenges due to the complex and dynamic nature of the treatment process.Huang et al. introduced the Regformer model, a Transformer-based approach for multioutput regression to predict multiple effluent quality indicators.This model significantly enhances prediction accuracy and efficiency, demonstrating superior performance over traditional methods like LSTM and CNN [26].

18In multi-energy load forecasting, the MultiDeT model uses a one-encoder multi-decoder structure to simultaneously predict the next 24-hour load for electricity, cold, and heat.This approach leverages the attention mechanism to focus on the most relevant features, resulting in more accurate and reliable predictions compared to conventional methods.The model's architecture allows it to handle the complex interactions between different energy loads, providing a comprehensive solution for integrated energy systems [25].Moreover, the Regformer model for wastewater treatment showcases the Transformer's ability to handle variable-length input sequences, which is crucial for real-time applications.The model supports dynamic updates and low-latency predictions, making it suitable for real-time monitoring and control in industrial settings.By treating the wastewater treatment process as a "black box, " the Reformer model automatically learns the underlying principles, achieving high prediction accuracy with minimal computational overhead [27].

19The successful implementation of Transformers in these multi-output regression tasks underscores their potential in handling complex, high-dimensional data.By capturing intricate relationships between multiple outputs and leveraging the self-attention mechanism, Transformers provide a robust framework for predictive modelling in various industrial applications [28].

20In summary, the reviewed studies collectively highlight the advancements in using data-driven techniques to optimize ingredient and process combinations in textile dyeing, as well as the accurate prediction of CIELAB colour values.By leveraging various models, researchers have been able to address the complexities and non-linearities of dyeing processes, leading to improved accuracy in colour prediction and process optimization.However, several challenges remain.Existing models often struggle with the scalability and generalization required for industrial applications, and the ability to handle diverse dyeing conditions and fabric types robustly remains a significant challenge.While machine learning models have shown great promise, there is a need for integrating domain-specific knowledge, such as the CIELAB colour difference formula, to enhance prediction interpretability and reliability.The intricate dependencies between multiple dyeing parameters and their collective impact on the resulting colour are not fully captured by traditional models, necessitating advanced models that can manage these complex interactions.Furthermore, the development of models that can support dynamic updates and low-latency predictions for real-time monitoring and control in industrial settings is essential for the practical implementation of smart dyeing systems.

21To address these gaps, this research proposes a physicsinformed Transformer-based multi-output regression model.By leveraging attention mechanisms and multitask learning, the proposed model aims to improve the prediction of multiple correlated colour outputs from dyeing ingredient and process inputs.The enhanced modelling accuracy will enable better recommendations for ingredient and process combinations to achieve target colours, thereby supporting the development of smart textile dyeing systems.

Methodology

22To address the aforementioned research gaps, this research proposes a physics-informed multi-output regression model using a Transformer to predict CIELAB colour values from textile dyeing inputs.By leveraging attention mechanisms and multi-task learning, the proposed model aims to improve the prediction of multiple correlated colour outputs from dyeing ingredient and process inputs.The proposed approach involves four key steps, starting with data fusion and preprocessing, followed by the training of the Transformer model with the incorporation of the CMC colour difference formula as the loss function.Finally, prediction and evaluation.Figure 1 provides a visual overview of the framework.The data preprocessing stage involves normalizing dye and auxiliary agent proportions, followed by encoding categorical variables.The model then uses this pre-processed data to predict CIELAB values, leveraging multi-task learning and attention mechanisms.The model's predictions are evaluated using both Figure 1 Illustration of the proposed approach conventional metrics and industry-specific metrics, ensuring that the outputs are both accurate and perceptually relevant.

The colour-matching model

23The colour-matching model is essential for computerassisted colour matching, as it ensures that the model meets the actual production needs of the dyeing factory.This model is crucial for converting colour measurements into actionable formulas.A key aspect of this process is the calculation of the tristimulus values, which has garnered significant attention from colour scientists [29].In our approach, we utilize the equal interval wavelength method, also known as the weighting method, as the physical model to calculate these tristimulus values [30].This method is preferred over the direct selection method for its accuracy and is widely used in modern colourimetric instruments for chromaticity calculations.According to the CIE colour model, a specific colour can be expressed using L, a, b.In this study, we employ the CMC E CMC(1:c) formula [30] to evaluate the colour difference between the target sample and the expected formulation, the illustration is shown in Fig. 2.

24This formula provides an accurate measure of colour difference.The E CMC(1:c) formula is mathematically defined as: Here, L * , C * , and H * represent the differences in lightness, chroma, and hue, respectively, between the predicted and target colours.The coefficients S L , S C , and S H serve as weighting factors for these differences.The formula modifies L*, C*, and H* by adding weight factors l (lightness weight) and c (chroma factor) to enhance colour difference uniformity.

The architecture of the multi-output model

25The proposed model is based on Transformer architecture tailored for multi-output regression tasks in textile dyeing.The model includes a unified encoder and multiple task-specific decoders, each dedicated to predicting one of the CIELAB colour components.To incorporate this colour-matching model into the Transformer architecture, we need to ensure that the physics-informed loss function captures the CMC colour difference formula.This integration will make the model physically meaningful and aligned with the industry standards for colour evaluation.The Transformer model leverages the multihead self-attention mechanism to capture intricate relationships between dyeing ingredients and process parameters.This mechanism allows the model to focus on different parts of the input vector dynamically, which is crucial for accurately predicting the multiple correlated outputs (L*, a*, b*).Additionally, the multi-task learning framework enables the model to predict these outputs simultaneously by sharing a unified encoder while using separate decoders for each colour component.This approach exploits the intrinsic correlations among the outputs, improving overall prediction accuracy.

26Encoders The encoder is designed to capture the complex interactions between dyeing ingredients and process parameters.The encoder processes the input data through multiple layers, each comprising a multi-head self-attention mechanism and a feedforward neural network.The attention mechanism allows the model to dynamically focus on different parts of the input vector, capturing intricate relationships between various dyeing parameters.The attention mechanism is defined as:

27where Q, K , and V are the query, key, and value matrices, respectively, and d k is the dimensionality of the key vectors.Each encoder layer includes a feedforward neural network to enhance the model's non-linear fitting ability, consisting of two linear transformations with a ReLU activation in between:

28where W 1 and W 2 are weight matrices, and b 1 and b 2 are bias terms.

29Decoders The model employs separate decoders for each colour component (L, a, b).Each decoder follows a similar structure to the encoder but includes an additional encoder-decoder attention mechanism to utilize the encoded representations from the encoder.The decoders take the hidden states from the encoder and combine them with the target sequence (previously predicted CIELAB values) to generate the final predictions.The attention mechanisms in the decoders are defined as follows:

30where each head is computed as:

31and W O is the output weight matrix.

Physics-informed loss function

32To incorporate the colour difference formula into the neural network, we introduce a physics-informed loss function that penalizes deviations from the expected CIELAB values.The CIELAB colour difference ( E) is computed as equation ( 1):

33The proposed model employs multi-task learning to jointly predict the three CIELAB colour components (L, a, b).Each decoder is responsible for predicting one of the components, and all decoders share the same encoder.Typically, in colourimetry, a E value less than 1 is considered excellent, and values below 2 are often considered acceptable for commercial purposes.The Mean Absolute Error (MAE) and Mean Squared Error (MSE) should also reflect this level of accuracy.

34The total loss function combines the traditional mean square error (MSE) with the physics-informed E component:

35where α and β are weights that balance the contributions of each loss term.By leveraging attention mechanisms and multi-task learning, the proposed physics-informed Transformerbased model significantly enhances the prediction accuracy of multiple correlated colour outputs (L, a, b) from dyeing ingredient and process inputs.

Evaluation metrics

36The evaluation of the model's performance is based on several key metrics, each providing unique insights into different aspects of the model's effectiveness:

37Mean Squared Error (MSE): Measures the average squared difference between predicted and actual colour values.It provides a baseline understanding of prediction accuracy.

38where y i represents the true CIELAB colour value, ŷi represents the predicted CIELAB colour value, and n is the number of samples.MSE measures the average squared difference between the predicted and actual colour values, providing a sense of overall prediction accuracy.Mean Absolute Error (MAE): Measures the average absolute difference between predicted and actual colour values, offering an alternative perspective on prediction accuracy.

39MAE measures the average absolute difference between the predicted and actual colour values, offering an alternative perspective on prediction accuracy by focusing on the magnitude of errors regardless of their direction.

40Besides MSE and MAE, the CIELAB colour difference metric E is applied as the evaluation metric as well since it is crucial for assessing the perceptual accuracy of colour predictions.A lower E indicates that the predicted colour is closer to the actual colour, which is essential for practical applications in textile dyeing.

Case study

41This experimental study focuses on the formulation recommendation process for textile dyeing.Typically, a client provides a sample, and the dyeing factory must conduct trial productions, continuously adjusting materials, processes, types of formulas, and their proportions to achieve a CIELAB colour value that closely matches the client's sample.Traditionally, this process relied heavily on the experience of skilled technicians who, through multiple rounds of trial production, would gradually approach the target colour.However, with the accumulation of extensive production data over time, there is now a growing demand for data-driven approaches.

42Currently, the data at our disposal encompasses two years of production records from a large-scale dyeing factory.This dataset includes detailed information on production processes, fabric material types, dye and auxiliary categories and proportions, and the resulting colours postdyeing.The objective of this study is to develop a predictive model for the CIELAB colour values (L, a, b) based on this comprehensive dataset.

Data description

43To verify the effectiveness of the proposed approach, the dataset utilized in this study was collected from the Manufacturing Execution System (MES) records and colourimeter measurements at a large textile dyeing factory.The MES system meticulously records various dyeing process variables such as temperature, pH, dye concentration, and process duration.Subsequently, the colourimeter provides precise measurements of the resulting colours, ensuring a comprehensive capture of the dyeing process's operational conditions.As shown in Table 1, the dataset consists of individual records, with each record representing a single production or trial production run.This detailed structure allows for a granular analysis of the dyeing process.

44Notably, the dataset includes comprehensive information on dye and auxiliary agent usage, not only recording the types and proportions of the ingredients used but also the order and sequence in which they were added.This is significant as the sequence of addition can influence the final colour outcome.

Data pre-processing

45In preparation for training the Transformer model, the raw data from the dyeing process must be pre-processed to ensure that it is structured appropriately for the model architecture.The main goal of this preprocessing step is to convert the dye and auxiliary agent usage data into a format that can be effectively processed by the Transformer model.Specifically, the formulation data is transformed into a vector representation where each formulation is represented as a vector, with the proportions of the ingredients corresponding to the magnitude of the vector components.

46As described in Sect.4.1, the sequence of addition can influence the final colour outcome.Each formulation in the dataset is comprised of different dyes and auxiliary agents, each with a specific proportion.These proportions can be thought of as the magnitudes of the components of a vector.For example, if a formulation consists of three dyes (D1, D2, and D3) and two auxiliary agents (A1 and A2), the vector representation could be:

47where t i represents the position (or time-step) in the sequence and p D1 , p D2 , p D3 , p A1 and p A2 are the proportions of the respective dyes and auxiliary agents.

48Before constructing the vector representation, the proportions of the ingredients need to be normalized.This normalization step is important because it ensures that the vector magnitudes reflect relative proportions rather than absolute quantities.The normalization can be performed using the following formula:

49where p i is the normalized proportion of the ith ingredient and p i is the original proportion.

50As the proportions are normalized, each formulation can be represented as a sequence of tuples, where each tu- In addition to the formulation data, the process parameters such as temperature, pH, and process duration also need to be incorporated into the input.These parameters are concatenated to the end of the formulation vector, creating an extended input vector for the Transformer model.Textual information such as the names of the dyes and auxiliary agents and the fabric material types are converted into numerical form by embedding.The final input to the Transformer model consists of a vector that combines the normalized proportions of the dyes and auxiliary agents with the process parameters.Figure 3 illustrates the details of data pre-processing.

Experiments setup

51To evaluate the effectiveness of the proposed physicsinformed Transformer-based multi-output regression model, a comparative analysis of our proposed approach against several baseline models which have been applied in previous studies of CIELAB modelling, including Gradient Boosting [31], Artificial Neural Networks [32] is conducted.In addition to these approaches, considering the sequential nature of the training dataset, the Long Short-Term Memory (LSTM) and a standard Transformer model are selected for comparison as well.

52For the Gradient Boosting Machine (GBM) approach, the model was optimised to compare its performance.The GBM models used squared error as the objective function.The GBM models were tuned by searching for the optimal hyperparameter values using a grid search following the parameters in Table 2.

53For the ANN approach, we experimented with a fully connected model and a ResNet-like model (with skipconnections).In all the experiments, the network archi- tecture is a single model which has a fixed number of input nodes, equal to the number of the variables used.The parameters in the ANN model are listed in Table 3.

54For the LSTM approach, the model was tuned using the Adam optimizer to minimize the loss.The parameters in the LSTM model are listed in Table 4.An early stopping criterion was also implemented to prevent overfitting.

55For the proposed Transformer approach, we developed a multi-output regression architecture tailored specifically for predicting the CIELAB colour components (L, a, b)

56in textile dyeing applications.The parameters in the proposed model are listed in Table 5.The model leverages the Transformer architecture, incorporating multi-task learning and a physics-informed loss function to enhance the prediction accuracy.

Results and conclusions

57The comparative analysis across different models showed that the proposed physics-informed Transformer model outperformed the baseline models in predicting the CIELAB colour components (L, a, b) for textile dyeing.The results are summarized in Table 6.

58The E values represent the actual colour difference between the predicted colours and the true laboratory colours.As shown in Fig. 4, the GBM model achieved a mean E of 1.82 with a standard deviation of 0.24, outperforming the conventional ANN and LSTM models, which had higher mean E values of 2.09 and 1.98, respectively.This suggests that the GBM model is effective at capturing the relationships between the dyeing process parameters and the resulting colour.However, the LSTM model performed better than the GBM due to its ability to handle the sequential nature of the dyeing process, achieving a mean E of 1.75 with a standard deviation of 0.18.The Standard Transformer model further improved upon the LSTM, achieving a mean E of 1.73 with a standard deviation of 0.16.The proposed Transformer model with CMC-loss, which incorporates the CMC colour difference formula into the loss function, achieved the best performance with a mean E of 1.73 and a standard deviation of 0.16.Despite having similar MAE and MSE values to the standard Transformer, the proposed Physics-Informed Transformer's E value indicates that its predictions are more closely aligned with the true colours, making it the most suitable choice for practical applications.

59The MAE provides a measure of the average magnitude of errors in the predictions without considering their direction.As shown in Fig. 5, the GBM model achieved an MAE of 0.35, while the conventional ANN and LSTM models had slightly higher MAEs of 0.40 and 0.32, respectively.Both the standard Transformer and the proposed Transformer models with CMC-loss achieved the lowest MAE values of 0.28 and 0.29, respectively.The MAE values indicate that the Transformer models, especially the CMC-loss Transformer, provide the most stable predictions, being less sensitive to outliers due to the use of absolute differences.The low MAE values suggest that the Transformer models consistently produce predictions that are close to the true values, making them more reliable for industrial dyeing applications.

60The MSE penalizes larger errors more heavily due to the squaring of the differences between the predicted and true values.As shown in Fig. 6, the Conventional GBM model achieved an MSE of 0.54, while the ANN and LSTM models had higher MSEs of 0.66 and 0.50, respectively.Both the Standard Transformer and the proposed physics-informed Transformer models achieved the lowest MSE values of 0.33 and 0.35, respectively.The low MSE values for the Transformer models indicate that they effectively minimize the impact of outliers, as the squared errors will be smaller when the predictions are closer to the true values.The physics-informed Transformer's slightly higher MSE compared to the Standard Transformer suggests that the inclusion of the CMC colour difference formula in the loss function might introduce some additional variance in the predictions.However, the overall performance of the Transformer with the CMC-loss remains superior due to its optimized predictions for E.

61In summary, the proposed Transformer model with CMC-loss offers the best balance between E, MAE, and MSE, making it the most suitable choice for accurate and robust colour prediction in textile dyeing.Its superior performance in terms of E indicates that it is highly effective at producing predictions that are closely aligned with the true colours, while its low MAE and MSE values demonstrate its ability to produce stable and precise predictions.

Conclusions

62By leveraging this data-driven approach, the dyeing factory aims to enhance the accuracy of formula recommendations during the trial production phase, thereby reducing the number of iterations needed to achieve the target colour.This not only improves production efficiency but also lowers costs.Additionally, the model can provide deeper insights into how different factors influence the final colour, enabling further optimization of the dyeing process.Also, achieving precise and consistent CIELAB values is critical for maintaining high standards of quality control in textile manufacturing.These values ensure that the colours produced meet customer expectations and industry standards, reducing the need for costly rework.Furthermore, by optimizing dye formulations to achieve these targets with minimal waste, the proposed model supports sustainability goals, helping manufacturers reduce The robustness of the proposed model, as indicated by the lower standard deviation in the E values, is crucial in real-world applications where small variations in the dyeing process can lead to significant differences in the final product.The improved performance over other models indicates that the integration of domain-specific knowledge, such as the physics-informed loss function, can significantly enhance the predictive power of machine learning models in complex industrial settings like textile dyeing.

63In summary, the physics-informed Transformer model represents a significant advancement in textile dyeing, offering accurate and reliable predictions that can directly inform industrial dyeing processes, potentially reducing waste and improving efficiency.The integration of domain-specific knowledge, such as the physics-informed loss function, demonstrates the potential to revolutionize the dyeing industry by enabling more sustainable and effi-cient practices.Future research could extend this work in several directions.First, exploring the scalability and generalization of the model across different dye types and fabric compositions could broaden its applicability.Second, integrating real-time monitoring capabilities and feedback mechanisms would enhance the model's adaptability to varying dyeing conditions.Third, considering additional environmental impacts, such as carbon footprint reduction, could further align the model with sustainability goals in the textile industry.These extensions would not only strengthen the model's practical utility but also contribute to the ongoing efforts to make textile dyeing processes more efficient and environmentally friendly.

Figure 2

64Figure 2 Illustration of E CMC(1:c) formula

Temperature

65Categories and ProportionsSpecific types and amounts of dyes and auxiliary chemicals are used in each recipe, along with the sequence and order of their addition.Dye type, Dye concentration, Auxiliary type, Addition sequence 4 Resulting Colours Post-Dyeing Measured CIELAB colour values (L, a, b) for each dyed sample, obtained through colourimeter measurements.L* value, a* value, b* value

Figure 3

66Figure 3 Illustration of the proposed data pre-processing approach

Figure 4

67Figure 4 Comparison of E across different approaches

Figure 5 Figure 6

68Figure 5 Comparison of MAE across different approaches

Table 1

69Details of Main Categories of the Dyeing Process Dataset

Table 2

70Parameters in GBM model

Table 3

71Parameters in ANN model

Table 4

72Parameters in LSTM model

Table 5

73Parameters in the proposed model

Table 6

74Performance in predicting CIELAB colour components

참고문헌 30건

  1. Predicting the Warp Breakage Rate in Weaving by Neural Network Techniques Textile Research Journal · SAGE Publishing · 2005 10.1177/004051750507500314
  2. Modification to the JPC79 Colour–difference Formula Journal of the Society of Dyers and Colourists · Wiley · 1984 10.1111/j.1478-4408.1984.tb00969.x
  3. Kubelka-Munk or neural networks for computer colorant formulation? Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2002 10.1117/12.464656
  4. Prediction of the changes on the CIELab values of fabric after chemical finishing using artificial neural network and linear regression models Fibers and Polymers · Springer Science+Business Media · 2009 10.1007/s12221-009-0384-2
  5. Fuzzy Neural Network Approach to Classifying Dyeing Defects Textile Research Journal · SAGE Publishing · 2001 10.1177/004051750107100202
  6. Modelling of CIELAB values in vinyl sulphone dye application using feed-forward neural networks Dyes and Pigments · Elsevier BV · 2006 10.1016/j.dyepig.2006.06.010
  7. Application of microalga<i>Chlamydomonas</i>sp. for biosorptive removal of a textile dye from contaminated water: Modelling by a neural network Environmental Technology · Taylor & Francis · 2009 10.1080/09593330903370018
  8. Development of a color matching algorithm for digital transfer textile printing using an artificial neural network and multiple regression Textile Research Journal · SAGE Publishing · 2015 10.1177/0040517515569525
  9. A scanner based neural network technique for color matching of dyed cotton with reactive dye Fibers and Polymers · Springer Science+Business Media · 2013 10.1007/s12221-013-1196-y
  10. A novel approach to using neural networks to predict the colour of fibre blends Coloration Technology · Wiley · 2016 10.1111/cote.12220
  11. Advances in Neural Information Processing Systems 29 2016
  12. Recipe prediction of mélange yarn using modular artificial neural network Journal of the Textile Institute · Taylor & Francis · 2017 10.1080/00405000.2017.1362730
  13. LSSVM-based color prediction for cotton fabrics with reactive pad-dry-pad-steam dyeing Chemometrics and Intelligent Laboratory Systems · Elsevier BV · 2020 10.1016/j.chemolab.2020.103956
  14. Application of genetic algorithm to color recipe formulation using reactive and direct dyestuffs mixtures Color Research & Application · Wiley · 2020 10.1002/col.22533
  15. Dyeing recipe prediction of cotton fabric based on hyperspectral colour measurement and an improved recurrent neural network Coloration Technology · Wiley · 2021 10.1111/cote.12516
  16. Textile color formulation using linear programming based on <scp>Kubelka‐Munk</scp> and Duncan theories Color Research & Application · Wiley · 2021 10.1002/col.22626
  17. Prediction of nanosilver and dye content on silk fabric using a scanner-based artificial intelligence technique Pigment & Resin Technology · Emerald Publishing Limited · 2021 10.1108/prt-02-2021-0023
  18. Environmentally Benign Dyeing of Polyester Fabric with Madder: Modelling by Artificial Neural Network and Fuzzy Logic Optimized by Genetic Algorithm Fibers and Polymers · Springer Science+Business Media · 2021 10.1007/s12221-021-1161-0
  19. An Hybrid Model CMR-Color of Automatic Color Matching Prediction for Textiles Dyeing and Printing Communications in computer and information science · Springer Science+Business Media · 2021 10.1007/978-981-16-5188-5_43
  20. Machine learning for metal additive manufacturing: Towards a physics-informed data-driven paradigm Journal of Manufacturing Systems · Elsevier BV · 2021 10.1016/j.jmsy.2021.11.003
  21. Transformer based Multi-output Regression Learning for Wastewater Treatment 2021 IEEE 33rd International Conference on Tools with Artificial Intelligence (ICTAI) · 2021 10.1109/ictai52525.2021.00110
  22. A hybrid artificial intelligence model to predict the color coordinates of polyester fabric dyed with madder natural dye Expert Systems with Applications · Elsevier BV · 2022 10.1016/j.eswa.2022.116514
  23. Artificial intelligence (AI) in textile industry operational modernization Research Journal of Textile and Apparel · Emerald Publishing Limited · 2022 10.1108/rjta-04-2021-0046
  24. A Transformer-Based Method of Multienergy Load Forecasting in Integrated Energy System IEEE Transactions on Smart Grid · Institute of Electrical and Electronics Engineers · 2022 10.1109/tsg.2022.3166600
  25. Prediction of the reactive dye recipe in cotton fabric dyeing using the pad‐dry‐pad‐steam process by particle swarm optimisation‐least squares support vector machine with matching database Coloration Technology · Wiley · 2022 10.1111/cote.12622
  26. A Yarn Nep Prediction Method Combining Grey Correlation and Nearest Neighbour Journal of Information & Knowledge Management · World Scientific · 2022 10.1142/s0219649222500526
  27. Artificial neural networks approach for prediction of CIELab values for yarn after dyeing and finishing process Journal of the Textile Institute · Taylor & Francis · 2022 10.1080/00405000.2022.2124629
  28. Machine Learning an Intelligent Approach in Process Industries: A Perspective and Overview ChemBioEng Reviews · Wiley · 2022 10.1002/cben.202200030
  29. Predicting Colour Reflectance with Gradient Boosting and Deep Learning IFIP advances in information and communication technology · Springer Science+Business Media · 2023 10.1007/978-3-031-34111-3_14
  30. Optimal design of colour formulation prediction for cotton fabrics based on <scp>NSGA‐II</scp> and <scp>TOPSIS</scp> Coloration Technology · Wiley · 2024 10.1111/cote.12749