Introduction

In recent years, conventional polyester filaments would no longer be able to satisfy the textile market demand, which is constantly evolving and changing. To meet this demand, so-called bicomponent, tricomponent and even more filaments, combining several types of polyester have been developed. These filaments present excellent performances in terms of durability1, mechanical resistance2,3, water vapor permeability4, elastic recovery5,6, biodegradability7, thermal comfort6, etc. In this context, a new trend is emerging; it consists in using these functional filaments which have new properties for technical use. This research work focuses on bicomponent filaments composed of two polymers: polyethylene terephthalate (PET) and polytrimethylene terephthalate (PTT). These two filaments are adjacent, arranged side by side and extruded from the same spinneret5. The resulting bicomponent filaments (PET/PTT) exhibit a spiral morphological structure which gives them significant elastic properties6 and allows to bring the stretch effect to the various articles while guaranteeing a better behavior during the various treatments7.

Among existent studies, several works have focused on the characterization and the physico-chemical properties of these bicomponent filaments (PET/PTT)8,9,10,11. Indeed, recent studies investigated the effect of spinning parameters on the final structural of bicomponent filaments (PET/PTT) and the interfacial structure and binding forces between polytrimethylene terephthalate (PTT) and polyethylene terephthalate (PET) filaments using sophisticated analytical techniques9,10. Obtained results showed that during the spinning process, a distinct interface layer formed between PTT and PET, crucial for their binding. Sufficient blending time led to an ester-interchange reaction, yielding copolymers. Other innovative study11 has established a rapid identification of bicomponent fibers (PET/PTT) types and their spatial distribution structures. Subsequently, an artificial intelligence software computed the mass percentage of each component based on density, cross-sectional area, and total number of test samples for each component.

In previous studies conducted by the authors and their collaborators12, a comprehensive characterization of these filaments was conducted, encompassing mechanical, physical, thermal, and chemical analyses. The results obtained highlighted the considerable potential of these bicomponent filaments, showcasing superior elasticity and elastic recovery, along with a crystallinity rate and glass transition temperature lower than those observed in other polyester filaments. This research team has even investigated13,14 the development, modeling and optimization of an economical and clean process for dyeing bicomponent filaments at a temperature equal to 100 °C. Obtained results showed that p-vanillin is an excellent alternative to remedy the use of toxic carriers and to maintain the physico-chemical characteristics of the bicomponent filaments.

According to all these research works carried out recently concerning bicomponent filaments, it is obvious that these latter present an excellent alternative for replacing elastane filaments which are causing more and more problems in dyeing and in textile finishing. It is also evident the great need to solve all the problems related to the textile finishing of these filaments increasingly used in high performance and excellent quality articles. In this context, no studies on the color formulation of bicomponent filaments are available in the literature.

This paper presents an original work whose objective is to apply artificial intelligence technique in order to predict the appropriate color recipes for dyeing bicomponent filaments (PET/PTT) with a mixture of disperse dyes allowing to obtain desired shades. So, a genetic algorithm was developed to solve this color matching problem. The goal is to optimize the step of color matching by predicting the best dyeing recipe in multicomponent mixtures. The proposed algorithm should determine which dyes to use from the range of available dyes and their corresponding concentrations. In this study, three disperse dyes were used: CI Disperse Red 167.1, CI Disperse Yellow 211 and CI Disperse Blue 79.1. The efficiency of the developed genetic algorithm was evaluated and proved using the CMC color difference between the desired reference colors and the predicted recipes.

Materials and methods

Textile support

Based on 100% bicomponent (60% PET, 40% PTT) filaments, jersey knits are made with circular knitting machine type Tricolab gauge 12 (Sodemat, France). The knits are used for dyeing in order to evaluate the performances of the developed algorithm. These multifilament yarns had a linear density of 83 dtex and contained 64 filaments per yarn. The knit thickness (mm) and the knit weight (g/m2) are equal to 0.92 and 215, respectively. Table 1 summarizes the principal thermal, mechanical and physical characteristics of these textile supports that have been realized during subsequent work12.

Table 1 Principal characteristics of bicomponent (PET/PTT) filaments12.

Used dyes

The disperse dyes used throughout this study are of the Terasil type manufactured by the Huntsman Company (Germany). These colorants are: Terasil Rubine 2GFL (C.I. Disperse Red 167.1), Terasil Yellow 4G (C.I. Disperse Yellow 211) and Terasil Blue GRL-C (C.I. Disperse Blue 79.1). These dyes exhibit vivid colors with deep shades. The chemical structures of used dyes are presented in Fig. 1.

Figure 1
figure 1

Chemical structures of disperse dyes.

Dyeing procedure

Bicomponent polyester filament knits (PET/PTT) were employed for dyeing with disperse dyes across various shades, ranging from 0.05% to 3%. This process facilitated the creation of a database, which will subsequently serve as the research foundation for our proposed genetic algorithm. The algorithm aims to reproduce different reference colors with minimal color differences. Dyeings were carried out using an Ahiba dyeing machine (Datacolor, USA). For color reproducibility, each dyeing was realized thrice. The dyeing process used is illustrated in Fig. 2. It is an ecological process already established in previous research works15,16. In this process, conventional toxic carriers have been replaced by biosourced one, namely p-vanillin, to improve the dyeing performances of bicomponent polyester filaments. Figure 3 shows the chemical formula of p-vanillin. After dyeing, the samples were post-treated at 50 °C for 10 min using 2 g L−1 sodium hydrosulphite and 2 mL L−1 sodium hydroxide solution (36°Be) with a liquor-to-fiber ratio of 20:1.

Figure 2
figure 2

Dyeing process of bicomponent filaments with used disperse dyes.

Figure 3
figure 3

Chemical formula of p-vanillin.

Color measurement

For each dyed sample, the color strength (K/S) allows to evaluate the dyeing depth of the dye fixed on the fiber. This parameter can be determined by measuring the reflectance R of the dyed sample at a well-determined wavelength. The relation linking the color strength (K/S) to the reflectance R, known as the Kubelka–Munk formula, is presented by the following formula17:

$$\frac{K}{S}=\frac{{\left(1-R\right)}^{2}}{2R}-\frac{{\left(1-{R}_{0}\right)}^{2}}{2{R}_{0}}$$
(1)

where K, S and R are respectively the absorption coefficient, the scattering coefficient and the reflectance of the dyed sample, and R0 is the reflectance of the sample before dyeing.

All colorimetric measurements were performed using a spectrophotometer type Spectraflash 600 Plus (Datacolor International, USA) with D65 light at a 10° observer, using d:8° geometry, specular component included (SCI), ranging from 400 to 700 nm at 10 nm intervals. Each measurement was repeated thrice. Values presented throughout this study are the average of three obtained values of the coloring strength. To evaluate the color difference between the desired shade and the reproduced color, the ΔECMC(2:1) formula was used17.

Development of the genetic algorithm for color formulation problem

Color formulation problem

In the textile industry, color is often one of the most textile design fundamental aspects which contributes enormously to the finished fabric overall visual effect. Color formulation step corresponds to find dyeing recipes which allow to get the color as close as possible to the desired reference color. Indeed, it is an optimization problem consisting in the combinatorial selection of components (dyes) and their quantities (concentrations) to obtain an exact color match between the resulting color and the reference one.

Currently, there are various methods for color matching problem: conventional methods such as spectrophotometric or colorimetric methods18,19,20,21 and artificial intelligence (AI) methods22,23,24,25.

In this paper, a genetic algorithm was developed and applied to resolve the color formulation problem in the case of bicomponent (PET/PTT) filaments. The aim is to select the disperse dyes to be used in mixture and their corresponding concentrations to optimize the color formulation step of bicomponent filaments.

Before applying the proposed algorithm, the different parameters and the criterion of optimization must be fixed. As the aim of this study is to optimize and to predict the optimal dyeing recipe i.e. the appropriate adding quantities of dyes available for dyeing. The best recipe is the one that minimizes the ΔECMC(2:1) value between the reference and the reproduced color. These parameters are presented in Table 2.

Table 2 Parameters of the color formulation model.

Description of the applied genetic algorithm

The genetic algorithm is an optimization algorithm inspired by the evolution process of living beings26. It is an adaptive heuristic search based on the mechanisms of natural selection and genetics27. It combines a strategy of "survival of the fittest" with a random and structured information exchange. For a problem where a solution is unknown, a set of possible solutions is randomly created. This set is called the population. The characteristics (or variables) are then used in gene sequences which will be combined with other genes to form chromosomes and subsequently individuals. Each solution is associated with an individual, and this individual is evaluated and ranked according to its resemblance to the best, but still unknown, solution to the problem. After a certain number of iterations, a generation with a more suitable individuals will be proposed28. The use of a natural selection process allows to converge gradually to the best solution29.

To resolve the color formulation problem by applying the GA, it is assumed that each individual is formed by a single chromosome corresponding to a color recipe; the number of genes in chromosome is equal to the number of available dyestuffs.

Adding to parameters already previously presented in Table 2, a second set of parameters lied to the GA are fixed. These latter are presented in Table 3. N and T were optimized using an experimental design method. Their variation levels are presented in Table 4. The optimization of the parameters values was realized using MINITAB software.

Table 3 Parameters of the genetic algorithm.
Table 4 Genetic algorithm parameters and levels used in the full factorial design study.

The proposed genetic algorithm, illustrated in Fig. 4, can be described as follow:

Figure 4
figure 4

Flow chart of the genetic algorithm.

  • Stage 1: Set, initialization and coding of GA parameters

    At first, T (number of generations) and N (number of individuals in the population) are initialized and the genetic algorithm parameters are coded. In this study, each individual was coded using one chromosome. This latter contains a certain number of genes; each gene defines the concentration of each dyestuff used in mixture. Values of concentrations vary from 0 to 3%. For coding these concentrations, we opted for a list of integers; each used allele was from 1 (i.e. concentration of 0%) to the total number of possible concentrations (i.e. concentration of 3%).

  • Stage 2: Generation of the starting population

    The starting population P0, composed of N individuals, was generated randomly, covering the entire range of possible solutions. In fact, a random color recipe was assigned for each individual of the population P0.

  • Stage 3: Evaluation of individuals

    The evaluation of individuals was made by calculating for each individual xi the function F(xi) as follows:

    $$F\left({x}_{i}\right)= \frac{1}{\Delta {E}_{CMC\left(2:1\right)}+\varepsilon }$$
    (2)

    where \(\Delta {E}_{CMC\left(2:1\right)}\) is the color difference between the standard color and the dyeing recipe proposed by the individual xi, and ε is a negligible positive value.

    Then, the quality of the solution proposed by xi is proportional to the value of F(xi).

  • Stage 4: Selection of parents

    The selection process determines the set of chromosomes from the actual population for reproduction. So, by using a selection method, r different couples of parents are selected to form a reproduction set R. There are several selection techniques30: fitness proportionate selection (roulette wheel selection, stochastic universal sampling), rank selection, tournament selection, uniform selection, etc.

    In order to choose the best selection method for our case, a comparison between different selection techniques was made as shown in Table 5.

    Table 5 Study of different genetic algorithm operators.
    • Roulette wheel selection of parents

      In this selection technique, the selection of parents from the actual population was made randomly to generate the new population based on the probabilities p1(xi) as follows:

      $${p}_{1}\left({x}_{i}\right)= \frac{F({x}_{i})}{\sum_{k=1}^{N}F({x}_{k})}$$
      (3)

      where F(xi) is the performance function value of the individual xi (i {1,…,N}).

    • Rank-based selection of parents

      The selection of parents from the actual population was made randomly to generate the new population based on the probabilities p2(xi) as follows:

      $${p}_{2}\left({x}_{i}\right)= \frac{2 (N-k+1)}{N(N+1)}$$
      (4)

      where k is the rank of the individual xi (i {1,…,N}) based on its performance function value F(xi).

    • Uniform selection of parents

      It is a random selection, uniform and without intervention of the adaptation value (the evaluation function F(xi)); each individual has the same probability of being chosen.

  • Stage 5: Crossing of parents to create children

    After the selection of parents, a cross over operator was applied for each couple. It consists in combining two chromosomes in order to generate a new off spring. The aim is to produce a new chromosome more efficient than chromosomes of parents by selecting the best characteristics of each of them31. Among the existing crossing methods32, we applied in this study a single cross over point chosen randomly. In fact, to reproduce a child e based on a couple of parents (p1, p2), we started by choosing a random number which will correspond to the crossover point. The child e thus created will be composed of a sequence of genes as follows: a first sequence of genes transmitted from parent p1 (those preceding the crossing point) and a second sequence of genes transmitted from parent p2 (those after the point of crossing).

  • Stage 6: Mutation of some created children

    When generating new individuals, in certain new created children, some of their genes can be randomly subjected to a mutation. So, the mutation process is essential so as to diversify the research33.

    In this work, we have tested our developed genetic algorithm as shown in Table 5, by applying simple mutation for certain formed new offspring and without mutation operators.

    Different mutation operators exist in the literature34. We applied in this study a simple mutation for certain reproduced children based on probabilities pm calculated as follows33:

    $${p}_{m}=1 - {\sigma }^{-\frac{1}{l}}$$
    (5)

    where l and σ are the chromosome size and the selective pressure, respectively.

  • Stage 7: Generation of the next population

    This step consists to the generation of the new population, by selecting the best element of the last one and by completing the population by all the newly reproduced children.

  • Stage 8: Decoding and displaying the best obtained recipe

    The termination criteria used in this model consists in fixing from the start the total number of generations T. So, if the number of generations is not reached, the steps from 3 to 7 should be repeated. Otherwise the program is stopped, the best obtained recipe was decoded and displayed.

Results and discussion

To evaluate the efficiency of the proposed genetic algorithm, a set of 15 target colors was used to reproduce them by dyeing bicomponent filaments (PET/PTT) with the proposed recipes of disperse dyes. The CIELab coordinates of these reference colors are shown in Table 6. For each standard color, the GA should find the best recipe to dye bicomponent filaments (PET/PTT) that minimizes the \(\Delta {E}_{CMC\left(2:1\right)}\) value between the predicted color and the standard sample.

Table 6 CIELab coordinates, (K/S) values and visual images of the used target color samples.

The genetic algorithm parameters were set based on the results of the experimental design presented in Table 4. Figure 5 presents the optimization plot of the algorithm parameters using the Minitab Response Optimizer Tool. The optimization plot shows that N (number of individuals in each population) and T (total number of generations) should be fixed at 1000 and 10, respectively.

Figure 5
figure 5

Optimization plot of genetic algorithm parameters (D: composite desirability; d: individual desirability; cur: current factor level settings; and y: minimal value of response).

The obtained results by applying different selection and mutation techniques are shown in Table 7. Concerning the selection methods, we have similar results. So, choosing one of them will not affect the obtained results. The roulette wheel selection technique presents slightly better results since the CMC color differences do not exceed 0.93 contrary to rank and uniform selection methods where the maximum CMC color differences are 0.96 and 0.98, respectively. For the mutation, applying genetic algorithm with simple mutation allows to have better results; all the CMC color differences are smaller than 1. So, in this work we have opted for roulette wheel selection method and in order to maintain diversity within the population and prevent premature convergence, a simple mutation was made.

Table 7 Evaluation of the different GA operators using ΔECMC(2:1) color differences.

Results obtained by the developed genetic algorithm for the 15 reference shades are summarized in Table 8, including the proposed dyeing recipes, CIELab coordinates, (K/S) values and visual images of reproduced colors as well as the \(\Delta {E}_{CMC\left(2:1\right)}\) values between the targets and the predicted shades. Five simulations were performed for each target color. It is observed that all the reproduced shades showed good conformity with the target shades as far as the color differences are concerned. All the CMC color difference values were smaller than textile threshold of 1 which is considered good for textile industry34,35,36.

Table 8 Disperse dye recipes proposed by the genetic algorithm for dyeing bicomponent filaments, CIELab coordinates (D65/10°), (K/S) values and color differences values between corresponding solutions and desired reference colors.

These low values of CMC color differences (mean value = 0.33 and maximum value = 0.93) prove that the reproduced colors are conform to the standard colors. It can be therefore concluded that all the predicted disperse dye concentrations allow to obtain a good colorimetric correspondence of dyed bicomponent (PET/PTT) filaments with the standards.

Conclusion

This work investigates the possibility of predicting bicomponent (PET/PTT) filaments dyeing recipes using genetic algorithm. The bicomponent polyesters filaments used in this study present high performances in terms of mechanical and thermal comfort properties. Their excellent values of elasticity and elastic recovery make them suitable for use as technical fabrics.

In order to predict the dyeing recipes allowing good matching with the desired target colors, a genetic algorithm has been developed and applied. The obtained results were promising. Indeed, the application of the developed genetic algorithm to reproduce 15 target colors showed very satisfactory results. All the predicted solutions presented low color differences values with the standard samples; all the \(\Delta {E}_{CMC\left(2:1\right)}\) values are less than the unit, which is considered very acceptable for textile colors, with an average and maximum values of 0.33 and 0.93, respectively. These results prove that the developed genetic algorithm is an efficient technique for predicting color dyeing recipes of bicomponent (PET/PTT) filaments using disperse dyes in order to obtain a good conformity with the desired color target.

Additional work will be needed in order to generalize further points. Firstly, increasing the number of dyes may potentially introduce compatibility challenges in terms of dyeing kinetics and isotherms. Secondly, the accuracy of the color matching process heavily relies on the quality and quantity of available data. If the dataset used is limited or not representative of real-world conditions, the performance of the proposed model may be compromised. Lastly, transitioning the developed system into real-world industrial applications could face additional challenges such as scalability, integration with existing processes, and cost-effectiveness.