Dyeing of advanced denim fabrics (blend of cotton/bicomponent polyester filaments) using different processes and artificial intelligence method

Denim clothes are the must-have items of clothing around the world. This kind of fabrics is evolving with the increasing consumer demand in order to keep its place as a versatile article. In this context, this paper contributes to the development and dyeing of a new blend fabric made of cotton fibers and bicomponent polyester filaments (PET/PTT). A comparative study between the mechanical and thermal properties of this fabric and conventional fabrics has confirmed the great interest to use bicomponent (PET/PTT) filaments in the manufacture of denim fabrics; these bicomponent filaments allow to give to wearer the desired elasticity and comfort. For dyeing (cotton/bicomponent polyester filaments) blend fabric, three different processes, using reactive and disperse dyes, were tested and analyzed. These dyeing processes are: two-baths/two-phases, one-bath/two-phases, and one-bath/one-phase processes. In addition, in order to obtain uniform shades between cotton fibers dyed with reactive dyes and bicomponent polyester filaments dyed with disperse dyes, an ant colony algorithm was elaborated to predict the optimal dye recipes. By observing obtained results, the developed algorithm is very effective; it allows to find the combination of reactive dyes necessary to achieve the same shade obtained by the disperse dyes with very small color differences between the two components and without having to make corrections mainly for the one-bath/two-phases process. Indeed, dyeing using the two processes (two baths/two phases and one bath/two phases) presents the best values of color yield (K/S) with almost similar results (ΔECMC(2:1) <  < 1). For the one-bath/one-phase process, it presents less significant results; We can observe ΔECMC(2:1) greater than 1 in certain shades. This is due to the strongly pH value (basic pH of 11) of reactive dyeing.


Textile supports
The textile supports used in this study are: 100% cotton fabric used as a reference (F1), cotton/PET blend fabric (F2), and cotton/bicomponent (PET/PTT) filaments blend fabric (F3).All these fabrics are produced using a Sulzer-type projectile weaving.The blend fabrics are made from the interlacing of 100% cotton warp threads and 100% polyester weft threads.All the fabrics produced using 2/2 twill weave.The number of weft threads per centimeter is equal to 17.The main characteristics of the fabrics obtained are presented in Table 1.

Mechanical tests
The mechanical properties of fabrics were made according to the standard method ISO 13934-1 and using a dynamometer type Lloyd instruments LR5K (UK).The dimensions of tested samples are equal to 5 cm × 25 cm.Each measurement was repeated five times and carried out in both warp and weft directions of the fabric.The test speed is maintained at 100 mm min −1 .

Moisture management test
According to the AATCC TEST METHOD 195 (2011), moisture management behaviours of studied fabrics were evaluated using the Moisture Management Tester (MMT) type M290 (SDL ATLAS, USA).Tested fabrics are cut in the form of a square with a side equal to 8 cm, the pumping time of the saline solution is equal to 20 s and the duration of each test is 120 s.Each test was repeated three times.All reactive and disperse dyes were purchased from Huntsman (Switzerland) and used without purification.Table 2 presents the main characteristics of used dyes.Their chemical structures are shown in Figs. 1 and 2. The liquor ratio is equal to 1:10.For dyeing cotton with reactive dyes, the following auxiliary products were used: CHTT-MRS (wetting agent), sodium chloride and caustic soda.The added quantities of auxiliaries depended on the desired shades.Dyeing of the polyester part required only the use of p-vanillin carrier with a concentration equal to 0.04 mol/L.

Dyeing procedure
To dye (cotton/bicomponent polyester filaments) blend fabric, three dyeing processes were used, namely: twobaths/two-phases process, one-bath/two-phases process, and one-bath/one-phase process.These processes are inspired by those used for dyeing (cotton/PET) blend fabrics.The dyeing of the polyester part, i.e. bicomponent (PET/PTT) filaments, was carried out using a clean and ecological process already developed in our previous works 15,17,21 .All pre-treatments, dyeing and post-treatments were carried out in a laboratory dyeing machine, an Ahiba Nuance Top Speed (Datacolor International Company, USA).

Two-baths/two-phases dyeing process
This process is one of the most commonly used processes in the textile industry 25,26 .It involves fixing reactive and disperse dyes using two different baths.The steps and the thermal curves of this dyeing process are mentioned in Fig. 3.

One-bath/two-phases dyeing process
This dyeing process, shown in Fig. 4, first dyes the polyester part with disperse dyes at 100 °C with the addition of p-vanillin.The bath was then cooled to 30 °C.At this level, the reactive dye and the wetting agent and the electrolyte were added.The reactive dyes were then fixed for 40 min.A pH of 11 was reached by adding alkali.After dyeing, a rinse at 50 °C, neutralization with acetic acid at 50 °C, soaping at 95 °C and another cold rinse were carried out to remove the dye persisting on the fabric surface.

One-bath dyeing process
To dye the (cotton/bicomponent polyester filaments) blend fabric, a single-bath dyeing process was also used (Fig. 5).At the start of this process, the alkali was added to adjust pH at 11.The two classes of dyes (reactive and disperse) were then introduced followed by the electrolyte and the carrier.In this case, the polyester part and the cotton part was dyed at 100 °C at the same time in the same bath.After 40 min, samples underwent several hot and cold rinses.

Color measurement
All colorimetric measurements were performed using a Spectraflash 600 Plus type spectrocolorimeter (Datacolor International, USA) with the following measuring conditions: spectra from 400 to 700 nm at 10 nm intervals, illuminant D65, and 10° standard observer.In order to assure maximum opacity, each sample was presented at four layers; and to reduce errors in reflectance measurements, three color measurements were made per sample in multiple locations.
The Kubelka-Munk theory linking the color strength (K/S) to the reflectance R is presented by the following formula 37 : where K, S, and R are respectively the absorption coefficient, the light scattering coefficient and the reflectance of the dyed sample.R 0 is the reflectance of the undyed sample.

Description of the ant colony algorithm
Ant colony algorithm is an artificial intelligence technique that dates back to the 1990s 38 .It has been used in various fields such as vehicle routing 39 , graph coloring 40 bioinformatics problems 41 , etc.This technique is based on the attitude of ants during their search for food.Indeed, during this search, ants cross random paths while leaving behind a chemical substance called pheromones.Thanks to this substance, the other ants will be guided towards the source of food.The amount of pheromones smelled depends on the quality and quantity of food found.This indirect communication method is very effective and allows ants to find the shortest path to food.In the literature, Chaouch et al. 32,33 were the first authors to introduce ant colony optimization (ACO) for color formulation.They proposed an algorithm of color matching allowing to minimize the color deviations between the standard colors and colors obtained by the proposed recipes.This algorithm was developed for dyeing cotton samples using reactive and direct dyes.We therefore applied this artificial intelligence technique to formulate the color recipes of our new (cotton/bicomponent (PET/PTT) filaments) blend fabric.Indeed, after dyeing the bicomponent filaments with disperse dyes, we used the ant colony algorithm to predict best reactive dye recipe to match the color obtained with disperse dyes (considered as standard or target color).
The developed algorithm assumes: • First, the food source is the desired standard color (obtained by disperse dyes); • Second, the paths explored by ants searching represent the various shades of available reactive dyes used in mixtures; • Third, the shortest path, lied the food to the ant nest, corresponds to the best reactive recipe that optimizes color deviations between the obtained color (reproduced by this best reactive recipe) and the standard color (obtained by disperse dyes).
In our case, the objective is to obtain the same color for the two components of the fabric, i.e. the bicomponent filaments and the cotton fibers.The objective function of the algorithm is then the minimization of the CMC(2:1) color deviations [ΔE CMC (2:1) ] between colors obtained on bicomponent filaments dyed with disperse dyes and cotton fibers dyed with reactive dyes. 1. Adding disperse dyes and carrier.

2.
Dragging the fabric into the bath.

5.
Filling the bath with reactive dyes.

Adding alkali
and salt.

7.
Dyeing the cotton part at 60°C.

9.
Washing of the final fabric.To match the color obtained by disperse dyes, considered as standard color, the developed algorithm works as follows: each ant selects a concentration value between 0 and 4% for each dye from the available reactive dyes.For the first iteration, this choice is made randomly, but for subsequent iterations, it is based on defined probabilities.The reactive color recipe formed by the chosen concentrations represents a path or solution.When this recipe is applied to dye cotton fibers, it produces a color that may be more or less similar to the standard color.The most appropriate recipe of reactive dyes is the one that minimizes the shade deviations between the proposed color and the standard one.To ensure successful color formulation, the ACO algorithm must propose the best reactive dyeing recipe that results in a standard color with a [ΔE CMC(2:1) ] deviation that does not exceed 1.If multiple recipes are possible, we select the recipe that minimizes the [ΔE CMC(2:1) ] deviation.
At each iteration t, the choice of the concentrations is done randomly, based on the probability value P ij : where: P ij (t) is the probability value to select the concentration index j of the succeeding dyestuff afterward choosing the concentration index i of the present dyestuff; τ ij is the quantity of pheromones deposed between the concentration index i of the present dyestuff and the concentration index j of the succeeding dyestuff; is the visibility value between concentrations index i and j; N k i is the concentrations range of dyestuffs not yet chosen at the instant t; α and β are the variables supervising the relative importance between the rate of pheromones and visibility, respectively.
The pheromone matrix is updated locally as follows: where: ρ is the evaporation rate of pheromones; is the quantity of pheromones, called local pheromone trace, deposed by the different ants after their passageways at the iteration index t; C local is a positive constant fixed at the beginning of the algorithm.
After each iteration, the global update of the pheromone matrix aims to provide a greater quantity of pheromones to the best solution; it is applied to the best path, followed by the ant index k', using the following formula: where: is the global trace pheromone adding to the best path (followed by ant index k') in order to promote the best recipe found during the iteration index t; C global is a positive constant fixed at the beginning of the algorithm.
The algorithm procedure is composed by four principal steps (Fig. 6): • Step 1: setting of algorithm parameters and pheromone trails; • Step 2: construction of ant solutions (proposed recipes); • Step 3: updating of the matrix of pheromones; • Step 4: repeating steps number 2 and 3 until the end conditions are reached (i.e.all ants are chosen and the total number of iterations is reached).
(2) For the dyeing of our blend fabric (cotton/bicomponent polyester filaments), the algorithm predicts the best recipe among all available reactive dyes for dyeing cotton fibers, to achieve the same shade as that of the bicomponent polyester filaments.Then, depending on the range of dyes chosen for each component, we will opt for the appropriate process (one-bath/one-phase, one-bath/two-phase or two-bath/two-phase dyeing process).

Mechanical properties of studied fabrics
To highlight the excellent mechanical properties of our fabric (F3) made from a blend of bicomponent filaments (cotton / (PET/PTT)), a comparative study was carried out with two conventional fabrics: fabric (F1) made from 100% cotton and fabric (F2) based on a cotton/PET blend.The mechanical properties of these three fabrics are presented in Table 3.By observing the obtained results, it can be concluded that the fabric (F1) is much more stiffer than fabrics (F2) and (F3) whose weft yarns are in classic polyester (100% PET) and in bicomponent filaments (60% PET, 40% PTT), respectively.These obtained results are due to the fact that polyester threads (1) Theoretical value of color differences ∆E CMC(2:1) between color obtained using the proposed recipe by ant k and target color; (2) Local updating of pheromone values using equation 3; (3) Global updating of pheromone values using equation 4.

Set iniƟalizaƟon of algorithm parameters and pheromone trails
For each iteraƟon iter For each ant k ConstrucƟon of ant soluƟon (proposed recipe) CalculaƟng the color difference (1) Local updaƟng of matrix of pheromones (2) All ants have parƟcipated ?
SelecƟon of the best proposed recipe for iteraƟon iter Global updaƟng of matrix of pheromones (3) The total number of iteraƟons is reached?
Displaying the best proposed recipe throughout all iteraƟons  are much more resistant than cotton fibers.In addition, the fabric (F3) has an elongation percentage equal to 50.71%.This is a very high value compared to the two others fabrics.These excellent mechanical performances showed that geometry shape of filaments has a great effect on their elastic recovery.The bicomponent filaments have a high value of recovery, thanks to the arrangement side by side of the two polymers PET and PTT.This good elasticity enables the blended fabric (cotton/bicomponent filaments (60% PET, 40% PTT)) to adapt to the wearer's body, to be soft and comfortable.

Thermal comfort properties of studied fabrics
According to the AATCC TEST METHOD 195 (2011), the ability to evacuate sweat of studied fabrics, in particular the fabric made of a cotton/bicomponent polyester filaments blend, was evaluated.Table 4 illustrates results of this analysis.From obtained results, it can be seen that humidification time (sec), absorption rate (%.s), maximum moisture diffusion radius (mm), and moisture diffusion rate (mm/s) values of our fabric are all good.More importantly, the percentage of moisture transport capacity (%) values are excellent and the overall moisture management capability (OMMC) value is also good.It can be concluded that the manufacture of this fabric, on the one hand, remedies all the problems caused by the use of elastane filaments and, on the other, produces a fabric with good, even excellent, thermal comfort properties.This may encourage the use of denim fabrics that offer the user both good elasticity and elastic recovery, as well as good thermal comfort properties.
In addition, a comparative study between the different fabrics developed was carried out.Figure 7 shows that the fabric containing bicomponent polyester filaments offers the best performance, followed by the 100% cotton fabric and the cotton/PET blended fabric.Indeed, the contact surface is larger than that of conventional  www.nature.com/scientificreports/fibers with a rounded cross-section; therefore, the moisture will diffuse more easily and more quickly by capillary action.This confirms the great potential for the use of bicomponent (PET/PTT) filaments in various textile articles, in particular denim articles mixed with cotton.
The big challenge is to dye these innovative fabrics correctly, and above all to guarantee the same shades for the two materials used: cotton and bicomponent filaments (PET/PTT).

Analysis of dyeing performances
In order to obtain the same color on the different components of the fabric, a dye recipe prediction algorithm was developed and applied.This algorithm, based on ant colony optimization technique, must predict and propose the most appropriate recipe of reactive dyes in order to match the shade obtained by disperse dyes.The shade used for disperse dyes is 1.2% of each one.So, the ant colony algorithm was applied to determine the equivalent recipe to dye the cotton part and obtain the same shade as that of the polyester part.
The predicted recipes are presented in Table 5.These proposed recipes were used for the three processes (two-bath/two-phase, one-bath/two-phase and one-bath/one-phase) for dyeing the cotton/bicomponent filament blend.The (K/S) values obtained as well as the CIELab colorimetric coordinates of the dyed cotton/bicomponent filament (60% PET, 40% PTT) blend fabrics are given in Table 6.
By observing obtained results, it is clear that (K/S) values and CIELab coordinates of the samples dyed using the three different processes are very close.These results confirm the effectiveness of the developed ant colony algorithm which enables us to find the combination of reactive dyes needed to obtain the same shade as that obtained with the disperse dyes without having to make any corrections.In addition, the use of this algorithm offers the possibility to remedy wastage during the use of dyes and to reduce the quantity of water used during color corrections.
It should be noted that dyeing using the first two processes (two baths/two phases and one bath/two phases) presents the best values of color yield (K/S) with almost similar results (color differences ΔE CMC(2:1) < < 1).Indeed, if the first involves dyeing the polyester part and then emptying the dye pots before proceeding to dye the cotton, the latter involves keeping the same dye bath after dyeing the polyester part and then incorporating all the products required for reactive dyeing.It can therefore be concluded that the disperse and reactive dyes used in this study are compatible and during their use in both processes, no degradation of either dye was observed.The levelness of dyed fabrics is also good.For the third dyeing process, one-bath/one-phase, it presents less significant results; We can observe (ΔE CMC(2:1) ) color differences greater than 1 in shades 1, 3 and 4.This is due to the strongly pH value (basic pH of 11) of reactive dyeing.Indeed, several previous studies have shown that disperse dyes do not tolerate high values of basic pH, and in such cases, color deviations would be possible 35,36 .Furthermore, we observed that the use of p-vanillin did not cause problems in the dyeing of the reactive part even when using the two processes, one bath/two phases and one bath/one phase, where the dyebath was not emptied or changed during the dyeing of the blend fabric (cotton/bicomponent (PET/PTT) filament).In this way, the bicomponent (PET/PTT) filaments were dyed using a clean and economical process in terms of temperature (100 °C) and the dyeing process for cotton/polyester blend fabrics can also be economical in terms of water consumption by keeping the same dye bath and therefore using a one-bath/two-phases process.
These excellent dyeing results could encourage the manufacture of articles containing bicomponent (PET, PTT) filaments and their incorporation into denim fabrics to give the wearer the desired elasticity and comfort.They also allow the use of an economical and ecological dyeing process.

Conclusion
This paper contributed to the development of a new fabric made of (cotton/ bicomponent polyester filament) blend.A comparative study between the mechanical and comfort thermal properties of this new fabric and those made of 100% cotton and (cotton/PET) blend has confirmed the interest of the developed fabric.This encourages the manufacture of articles containing bicomponent (PET, PTT) filaments and their incorporation into denim fabrics in order to give the wearer the desired elasticity and the desired comfort.
Moreover, this study proposed a suitable process for dyeing this kind of fabrics and evaluated its performance.Faithful to our principles of green chemistry, the one-bath/two-phases process seems to be the most appropriate process for dyeing (cotton/bicomponent (PET, PTT) filament) blend fabric.
In addition, the use of the ant colony algorithm, developed in this study, has been very effective in predicting the right dye recipes and in formulating colors without having to make multiple corrections and while minimizing the amount of dyes and water.Obtained results proved that this algorithm is a very powerful tool in the prediction of dye recipes and the formulation of shades for blend fabrics.

Figure 6 .
Figure 6.Flow chart of the ant colony algorithm.

H u m idFigure 7 .
Figure 7. Thermal comfort properties of studied fabrics.

Table 1 .
Main characteristics of studied fabrics.In this study, our blend fabrics (cotton/bicomponent polyester filaments) were dyed using reactive and disperse dyes.The cellulosic part was dyed using three reactive dyes, namely: C.I. Reactive Red 238, C.I. Reactive Yellow 145 and C.I. Reactive Blue 235.However, the dyeing of the polyester part was carried out using four disperse dyes, namely: C.I. disperse Red 60, C.I. disperse Yellow 211, C.I. disperse Red 167.1 and C.I. Disperse Blue 179.1.

Table 2 .
Main characteristics of studied dyes.