Next Article in Journal
Effect of Substrates Characteristics on Tribological Behaviors of AlTiN-Based Coated WC–Co Cemented Carbides
Next Article in Special Issue
Enhancing Uptake Capability of Green Carbon Black Recycled from Scrap Tires for Water Purification
Previous Article in Journal
Contact Pressure Distribution and Pressure Correction Methods of Bolted Joints under Mixed-Mode Loading
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Application of ANN Weighted by Optimization Algorithms to Predict the Color Coordinates of Cellulosic Fabric in Dyeing with Binary Mix of Natural Dyes

Department of Textile Engineering, Yazd University, Yazd 8915818411, Iran
*
Author to whom correspondence should be addressed.
Coatings 2022, 12(10), 1519; https://doi.org/10.3390/coatings12101519
Submission received: 13 September 2022 / Revised: 6 October 2022 / Accepted: 7 October 2022 / Published: 10 October 2022

Abstract

:
Cotton is one of the most important fibers used in the textile industry. The dyeing of cotton with synthetic anionic dyes consumes large amounts of salt and alkali, which makes it a challenge for the environment. Furthermore, the relatively high percentage of synthetic dyes remaining in the dyebath is a potential threat for the environment and human health. The application of plant-derived natural dyes has recently been considered as a promising approach to overcome this problem. Optimization of the dyeing process and prediction of the values of the color coordinates of dyed textiles have always been among the most pronounced challenges in the textile industry, especially when a mixture of dyes or mordants is used. In this study, alum was used for mordanting of cotton and two natural dyes—namely, weld and madder—were used for the dyeing. The samples were dyed with various combinations of mordant, weld, and madder for the weight of the fabric and statistical analysis revealed that all three mentioned parameters were effective in determining the color coordinates. To determine the best model to predict the color coordinates of cotton fabrics, the regression method and ANN models weighted with back-propagation (BP) and optimization algorithms, such as the genetic algorithm, particle swarm optimization, gray wolf optimization, FMINCON (a built-in function of MATLAB software) and a combination of particle swarm optimization and FMINCON (PSO-FMIN), were employed and compared based on the mean squared error (MSE). The obtained results revealed that using the PSO-FMIN algorithm for ANN weighting led to higher accuracy in the prediction of color coordinates. The MSEs obtained for ANN outputs and the corresponding actual values reached 2.02, 1.68 and 1.39 for the l*, a* and b* coordinates, which were 44%, 23% and 26% better than the result obtained with BP, respectively.

1. Introduction

The textile industry is responsible for around 17–20% of industrial water pollution around the world. This pollution is mostly produced by dyeing processes that consume large amounts of synthetic dyes. A considerable amount of the consumed dyes remain in the wastewater, leading to several environmental and health problems. Removal of these dyes using various technologies is the approach usually considered in the industry to reduce their effect on the environments [1]. Another approach that has recently attracted a lot of attention is the revival of natural dyes in the textile industry [2,3]. Natural dyes are obtained from plant, animal or fungi origins and are mostly non-toxic. They are considered eco-friendly alternatives to synthetic dyes [4,5]. Some natural dyes impart functional properties, such as antibacterial and anti-odor properties, to the dyed textiles [6].
Besides their important advantages, such as their non-toxic nature (in most cases), environmental friendliness, functionality and biodegradability, natural dyes have several drawbacks, such as low affinity toward the textile fibers and medium to low fastness properties. To overcome these problems, several approaches have been investigated. The use of ultrasonic [7,8] and microwave [9,10,11] energy; mordanting with metal salts [12,13] and biological agents, such as tannin-rich plants, etc. [14,15]; plasma treatment [16,17]; cationization [7]; and pretreatment with chitosan [18] or dendrimer [19] are among the various methods that have shown potential for the improvement of natural dyeing of textile fibers, especially wool and cotton.
Cotton is the most widely used natural fiber in the textile and fashion industry owing to its unique properties, such as absorbency, comfort and soft handle [20,21]. Natural dyeing of cotton is difficult due to the low affinity and weak fastness of the natural dyes in this fiber. Generally, metal salts are applied on cotton to improve the dye-binding and fastness properties. However, some of the commonly used mordants, such as chromium and stannous, are considered toxic and their usage on textiles is restricted. Aluminum salts are considered safe and can be used as mordants in natural dyeing [22].
Another problem in natural dyeing of textiles is the reproduction of the obtained hues, especially when a mixture of colorants or mordants is applied. To ensure the levelness of the hues and the reproducibility of the results, natural dyes require careful extraction and optimization of the dyeing procedure [3]. Artificial intelligence (AI) is one of the emerging soft computing techniques used in recent years for reliable dye formulations, color matching and fault detection in the coloration of textiles with synthetic dyes [23].
Artificial neural networks (ANNs), one of the sub-branches of AI, are one of the best tools for modeling nonlinear engineering systems and, so far, they have been successfully used in many cases in textile engineering, such as for the prediction of the properties of fibrous composites, the handle and comfort of clothing, wastewater treatment, thermal conductivity and the degradation of fibers [24,25,26,27,28,29,30,31,32,33]. They have also been employed in the prediction of the color coordinates of textiles dyed with natural colorants [34,35,36]. In all the mentioned cases, the goal was to predict one or more responses from the study system and, for this purpose, ANN models were used alongside conventional approaches, such as regression or theoretical models, and the reported results prove that ANNs are always more accurate than other models in predicting system responses. Of course, like other models, ANN models have parameters with variations that can change the output accuracy. The number of hidden layers, the number of neurons in each hidden layer and the weights and biases of the neurons can be considered the most important parameters of neural networks. To obtain the highest accuracy with ANNs, the final numbers of hidden layers and the neurons in them are usually determined using a trial and error method or with optimization algorithms, such as the genetic algorithm (GA) [37]. On the other hand, the initial weights and biases of ANNs are selected randomly at first and then, during the training stage of the ANN, their final values are determined by a training algorithm, such as error back-propagation (BP), which is one of the most widely used training algorithms [38]. It is worth mentioning that some researchers have even successfully used optimization algorithms, such as the GA, to determine the initial values of ANN weights and biases in order to further improve ANN performance [34,35,39,40]. This means that they tried to optimize the starting point of BP to obtain higher accuracy with an ANN, and the reported results from comparing the use of BP with random weights and biases show that they were indeed successful.
Now, the question arises whether optimization algorithms can determine the final values of ANN weights and biases directly in such a way that the ANN prediction accuracy becomes acceptable or even better than that obtained using BP. In other words, is it possible to obtain good accuracy for ANNs without using BP? Recently, Hadavandi et al. [41] used different optimization algorithms for this purpose in the prediction of the strength of siro-spun yarns with an ANN and reported promising results, such as that gray wolf optimization (GWO) can produce fairly better results than BP. However, to the best of the authors’ knowledge, there is no published work that encompasses the scope of color coordinate prediction for cotton fabrics dyed with natural colorants and one mordant simultaneously by using an ANN model directly weighted with optimization algorithms. Therefore, in this study, we tried to evaluate the ability of different optimization algorithms in directly determining the final values of ANN weights and biases for the prediction of the color coordinates of cotton fabrics dyed with blends of two natural dyes.

2. Material and Method

2.1. Materials

Yazdbaf Co., Yazd, Iran, provided the cotton fabric used in this study. The fabric had a plain weave with a mass per unit area of 110 g/m2. Non-ionic surfactant (Triton X-100), sodium hydroxide and aluminum potassium sulfate were purchased from Sigma-Aldrich, St. Louis, MO, USA. Two natural dyes—namely, madder (Rubia tinctorum) and weld (Reseda luteola)—were purchased from a local market in Ardakan, Iran.

2.2. Methods

Pretreatment: Before mordanting and dyeing, the cotton fabric was scoured in a bath containing 2 g/L Triton X-100 and 1 g/L NaOH. The liquor-to-goods ratio was 40:1, and the fabric was scoured for 30 min at 60 °C. Finally, the fabric was rinsed with distilled water thoroughly, dried at ambient temperature and cut to the required size.
Mordanting: The affinity of natural dyes toward cellulosic fibers is low compared to protein fibers. Mordanting with metal salts or tannin can improve the adsorption of natural dyes by cotton. Among the various metal salts traditionally used as mordants, alum is considered the safest from the ecological and human friendliness point of view [42]. In the mordanting process, cotton samples were added to baths containing 2, 5 or 10%owf of alum (according to the experimental design) at 40 °C (L:G = 40:1). The temperature was increased to boiling point at a rate of 2 °C/min and kept constant at a boil for 1 h. Finally, the bath was cooled and the samples were rinsed and air-dried.
Dyeing: Among the diverse range of dye-yielding plants traditionally used for natural dyeing in Iran, weld and madder are known as the most important sources for yellow and red colorants, respectively. They are usually used in blends with various concentrations to obtain a wide range of shades on wool and cotton. In this study, the concentration of each dye was varied in the range from 0 to 100%owf and dyeing was performed on non-mordanted and mordanted (2–10%owf) cotton samples. No auxiliary (acid, alkali or salt) was used in the dyeing stage and the dyeing was started at 40 °C. The rate of heating was 2 °C/min until boiling, at which level the samples were kept for 1 h. Finally, the dyed samples were scoured and dried.
Color measurement: A total of 120 samples with varying concentrations of alum, madder and weld were dyed. The colorimetry analyses were performed using a reflectance spectrophotometer (Color Eye 7000A, X-rite, Grand Rapids, MI, USA). The color coordinates (l*, a*, b*) and reflectance of the dyed samples in the range from 400 to 750 nm were measured under illuminant D65 and 10° standard observer. The concentrations of alum, madder and weld were considered as the inputs and the color coordinates of the dyed samples (l*, a*, b*) were considered as the outputs of the ANN.

2.3. ANN

A neural network is basically a data processor, the smallest unit of which is called a neuron. The neurons are located in three layers: input, hidden and output layers. The communication of each neuron with the neurons of the next layer is accomplished through weights and biases. Figure 1 shows a schematic view of an ANN model with two, three and one neurons in the input, hidden and output layers, respectively. The final answer of the network is calculated according to Equation (2).
h j = f ( i = 1 w i j x i + b j )
F i n a l a n s w e r = f ( j = 1 w j k h j + b k )
where xi is the ith input signal; f(x) is the activation function; wij is the associated weight between the ith and jth neurons in the input and hidden layers, respectively; smf wjk is the associated weight between the jth and kth neurons in the hidden and output layers, respectively. Hyperbolic tangent and linear functions are two of the most widely used activation functions.

2.4. GA

The genetic algorithm (GA) is one of the most well-known optimization algorithms and it is used in many engineering applications. In this method, all the parameters that are used in solving the problem are considered as a string called the chromosome. Then, a set of possible chromosomes is created and the problem is evaluated for each one through the objective function; consequently, each chromosome is scored according to its performance. In the next step, GA operators, such as crossover and mutation, are applied to the chromosomes to reproduce a new population of them, which is scored again. This process continues until the stop condition is reached [43].

2.5. PSO

In this method, each set of problem-solving parameters is called a particle. A set of particles is first created randomly and each one is assigned a velocity and scored by the objective function. The particles are then assigned new velocities and re-scored after being moved. This process continues until the stop conditions are met [44].

2.6. GWO

This algorithm has recently been introduced and is inspired by the behavior of gray wolves [45]. The strongest wolf, who is also the leader of the group, is called the alpha wolf and the next positions belong to the beta, delta and omega wolves, respectively. In GWO, alpha, beta and delta wolves estimate the prey’s position; the omega wolves accordingly update their positions, the prey’s position is re-estimated and the omega wolves’ positions are updated again. This cycle continues until the prey’s change in position stops [41]. Finally, the position of the alpha wolf is presented as the best obtained solution.

2.7. FMINCON

Unlike the algorithms mentioned above, which are all nature-inspired, the FMINCON algorithm (FMIN), is a gradient-based mathematical method available as a built-in function in Matlab software [46]. It can be used to minimize a function under certain conditions, such as input values at specified intervals. It starts with an initial guess and, according to the update scheme, it stops at a point where the first-order optimization and other conditions are fulfilled. In this study, the interior-point method was used as an update scheme to approximate the optimization problem based on the Lagrangian method and Karush–Kuhn–Tucker equation [47].

2.8. Weighting ANN

As mentioned in the introduction, this study tried to determine the final values of ANN weights and biases (Equations (1) and (2)) with the mentioned optimization algorithms without using BP. For this purpose, all ANN weights and biases were considered in one vector and, on the other hand, the objective function was defined in such a way that it took that vector and distributed it to the neurons on different layers of the ANN. Then, the mean squared error (MSE), as the output of the objective function, was calculated according to Equation (3) for the ANN outputs (ANN prediction) and the corresponding actual values (the lower the MSE, the better the solution):
M S E = 1 n i = 1 1 ( y i t i ) 2
where yi and ti are the ANN output and corresponding actual value, respectively. It is worth mentioning that, in the objective function, only the ANN structure was used and there was no training step where BP was applied to determine the weights and biases. Therefore, we tried to obtain a vector using the GA, PSO, GWO and FMIN that led to the minimum MSE. In light of the literature, this study used an ANN structure with just one hidden layer, and one to seven neurons in that layer were considered for investigation. Therefore, using three inputs for the ANN model (mordant, weld and madder) and one neuron for the output (a color coordinate), the vector length would range from 6 to 36 elements, respectively. Figure 2 presents a schematic view of the weights and biases vector for the ANN with seven neurons in hidden layer.
The activation functions for the hidden and output layers were the hyperbolic tangent and linear functions, respectively. In addition, to investigate the effects of combining optimization algorithms on the weighting of the ANN, PSO and FMIN were used in hybrid mode so that the end point of the PSO was used as the starting point of FMIN (PSO-FMIN). It should be mentioned that a separate ANN model was considered for each color coordinate, and all the required codes in this study were developed using MATLAB R2016a software.

3. Result and Discussion

In the first step in data interpretation, one-way analysis of variance (ANOVA) can be used to investigate the statistical significance of the relationship between independent and dependent parameters. At a 90% confidence interval, if the P-value is higher than 0.1, it means that the independent parameter statistically affects the dependent one. The results of the ANOVA for all color coordinates are presented in Table 1, Table 2 and Table 3. As can be seen, all p-values were higher than 0.1, so it can be said that the three independent parameters considered were statistically effective in determining the color coordinates and each color coordinate could be modeled based on them.
One of the most common methods for modeling is the linear regression method. An attempt was thus made to model the relationship between dyeing parameters and color coordinates separately using this method. All data were used to determine the regression coefficients presented in Equations (4)–(6), and the MSEs between the regression outputs and corresponding actual values calculated for the l*, a* and b* coordinates were 22.55, 28.70 and 28.59, respectively. It is quite clear that MSE values close to zero are ideal; therefore, the accuracy of the regression method was not acceptable. In other words, the regression equation was not even able to accurately predict the data used to derive its own equation and the relationship between the considered parameters was highly nonlinear, so a more efficient model, such as a neural network, is certainly required.
l r e g = 67.63 0.67 × A 0.17 × M + 0.08 × W
a r e g = 14.88 + 0.52 × A + 0.17 × M 0.08 × W
b r e g = 21.29 + 0.48 × A 0.11 × M + 0.08 × W
As mentioned above, the purpose of this study was to investigate the efficiency of optimization algorithms compared to BP. Thus, at first, a neural network was trained with BP as a benchmark. When using BP, the data are usually divided into three different groups called the training, validation and test sets. The training and validation sets are used only in the training step of the ANN and the test set is used to assess the ANN performance by means of indexes, such as the MSE (the lower the MSE, the higher the accuracy in prediction). In this study, 70% of the data were randomly selected as the training group, 15% as the validation group and 15% as the test group. In the first step, ANN models were weighted by BP (ANN-BP) and, afterward, the same ANN models were weighted using the GA, PSO, GWO, FMIN and PSO-FMIN and referred to as the ANN-GA, ANN-PSO, ANN-GWO, ANN-FMIN, ANN-PSO-FMIN models, respectively. To make the conditions equal for BP and the other optimization algorithms, the same training group was used for the weighting of all the ANNs.
Due to the random initial selection of weights and biases in all optimization algorithms, for each number of neurons in the hidden layer, the MSEs obtained for the ANNs weighted with different optimization algorithms were higher than the MSE of the ANN trained with BP. As a result, the weights and biases obtained for the ANN-BP model were considered as the starting point for the search with the optimization algorithms. Since the operators of optimization algorithms, such as crossover, use random variables, each optimization algorithm was run three times and the best results were considered for these runs. If an optimization algorithm worked successfully, a lower MSE than the MSE of the ANN-BP model should have been obtained. For example, in predicting the l* coordinate, the MSE of the training group for the ANN-BP model with three neurons in the hidden layer was 12.76, while the MSE values for the same ANN weighted with the GA, PSO, GWO, FMIN and PSO-FMIN were 10.17, 6.30, 6.41, 5.51 and 4.11, respectively. Figure 3 demonstrates the reduction in the MSE value for each of the optimization algorithms in successive iterations (at each iteration, the lowest MSE obtained (best answer) is plotted).
The final evaluation of the ANN was determined by the accuracy of the test group prediction, and, in this case, the MSE values of the ANN-BP, ANN-GA, ANN-PSO, ANN-GWO, ANN-FMIN and ANN-PSO-FMIN models for the test group were 3.60, 4.55, 7.02, 7.97, 10.76 and 2.02, respectively. The chart displayed in Figure 4 indicates the applied approach for weighting the ANN with different algorithms. The same approach was applied for each color coordinate and for different number of neurons.
Table 4, Table 5 and Table 6 show the obtained MSE values of ANN models with different numbers of neurons in the hidden layer weighted with various algorithms.
A closer look at Table 4, Table 5 and Table 6 reveals several points. Firstly, as the number of neurons in the hidden layer increased, the BP error decreased first and then increased. The lower MSE values with BP were obtained with the presence of three or four neurons in the hidden layer. Secondly, the use of optimization algorithms did not necessarily reduce the MSE, such as with the ANN with five neurons in the hidden layer when predicting the l* color coordinate (Table 4). Thirdly, considering the positive numbers of the MSE change column, it can be said that the use of optimization algorithms led to more accurate prediction for the training group. However, the presence of negative numbers in the MSE change column for the test group indicates that, in those cases, the final performance of the optimization algorithms was weaker than BP. This was due to the fact that BP has several mechanisms, such as the maximum number of failures in the validation group, to control the training process and determine weights and biases [48], while in the optimization algorithms the goal is only to minimize the amount of the objective function. Fourthly, in predicting all color coordinates, although the performances of optimization algorithms and BP were close to each other, ultimately the performance of the hybrid algorithm PSO-FMIN led to a smaller MSE than other cases. Not only did the prediction accuracy of the test groups increase remarkably (by almost 44%, 23% and 26% for l*, a* and b* coordinates, respectively) compared to the use of BP but the prediction accuracy of the training groups was also higher (by almost 68%, 6.5% and 15% for l*, a* and b* coordinates, respectively). Therefore, the best prediction of l*, a* and b* color coordinates was achieved by the ANN models weighted by PSO-FMIN with three, four and three neurons in the hidden layer, resulting in MSEs of 2.02, 1.68 and 1.39 for the test group, respectively. Figure 5 illustrates the outputs of the best values obtained with the ANNs and corresponding actual values for the test groups.

4. Conclusion

Dyeing of cotton with two natural dyes was investigated as an ecofriendly and sustainable approach for coloration of cellulosic fibers. In this study, 120 samples of cotton fabrics were dyed with various combinations of weld and madder natural dyes after mordanting with different concentrations of alum. In the first step, the statistical analysis revealed that there was a significant relationship between the mordant, weld and madder, as the independent parameters, and all color coordinates. In the next step, the color coordinates of the samples were modeled using linear regression, but the results did not present acceptable accuracy. Hence, an ANN, which is a more powerful model, was applied. To prepare the ANN model to predict the color coordinates, BP and other optimization algorithms were used to determine the final weights and biases of the ANN structure. The results indicated that using only optimization algorithms to set the final weights and biases of the ANN model did not present high accuracy, which can be considered a limitation of the presented method. However, when the final weights and biases of BP were used as the starting point of the search in the optimization algorithms, the prediction accuracy of the color coordinates increased significantly compared to using only BP or optimization algorithms. Finally, it was revealed that using PSO-FMIN in weighting the ANN model with three, four and three neurons in hidden layer led to the highest accuracy in the prediction of l*, a* and b* color coordinates, respectively. In comparison with BP, using PSO-FMIN increased the accuracy of prediction for test groups by at least 20% and by at least 6.5% for training groups, which indicates the flexibility of the ANN model, as well as the combination power of optimization algorithms.
In the future, we intend to collect the color coordinate data of other fabrics, such as polyester, viscose, etc., and, based on the results obtained in this study (weighing the ANN using PSO-FMIN), a comprehensive model to predict the color coordinates before the dyeing process will be presented. Furthermore, we intend to use other artificial intelligence methods, such as fuzzy logic and support vector machines, to predict the color coordinates and compare the outcome with the current results.

Author Contributions

Both authors contributed to the study conception and design. Material preparation and data collection were performed by A.H. Modeling was performed by M.V. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The datasets generated and/or analyzed during the current study are available from the corresponding author on reasonable request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Rafiq, A.; Ikram, M.; Ali, S.; Niaz, F.; Khan, M.; Khan, Q.; Maqbool, M. Photocatalytic degradation of dyes using semiconductor photocatalysts to clean industrial water pollution. J. Ind. Eng. Chem. 2021, 97, 111–128. [Google Scholar] [CrossRef]
  2. Benli, H.; Paşayev, N.; Bahtiyari, M.İ.; Tugay, O. Investigation of the Possibilities of Using Rhapon-ticoides Iconiensis in Wool Dyeing. Text. Leather Rev. 2022, 5, 268–279. [Google Scholar] [CrossRef]
  3. Sk, S.; Mia, R.; Haque, A.; Shamim, A.M. Review on Extraction and Application of Natural Dyes. Text. Leather Rev. 2021, 4, 218–233. [Google Scholar] [CrossRef]
  4. Singh, M.; Vajpayee, M.; Ledwani, L. Eco-friendly surface modification of natural fibres to improve dye uptake using natural dyes and application of natural dyes in fabric finishing: A review. Mater. Today Proc. 2021, 43, 2868–2871. [Google Scholar] [CrossRef]
  5. Manyim, S.; Kiprop, A.K.; Mwasiagi, J.I.; Achisa, C.M.; Odero, M.P. Dyeing of cotton fabric with Euclea divinorum extract using response surface optimization method. Res. J. Text. Appar. 2021, 5, 109–123. [Google Scholar] [CrossRef]
  6. Rani, J.; Singh, S. Antimicrobial Properties of Herbal Dyes of Indian Medicinal Plants. Text. Leather Rev. 2022, 5, 199–222. [Google Scholar] [CrossRef]
  7. Ben Ticha, M.; Meksi, N.; Attia, H.E.; Haddar, W.; Guesmi, A.; Ben Jannet, H.; Mhenni, M.F. Ultrasonic extraction of Parthenocissus quinquefolia colorants: Extract identification by HPLC-MS analysis and cleaner application on the phytodyeing of natural fibres. Dye. Pigment. 2017, 141, 103–111. [Google Scholar] [CrossRef]
  8. Benli, H.; Bahtiyari, M.I. Use of ultrasound in biopreparation and natural dyeing of cotton fabric in a single bath. Cellulose 2015, 22, 867–877. [Google Scholar] [CrossRef]
  9. Buyukakinci, B.Y.; Guzel, E.T.; Karadag, R. Organic Cotton Fabric Dyed with Dyer’s Oak and Bar-berry Dye by Microwave Irradiation and Conventional Methods. Ind. Text. 2021, 72, 30–38. [Google Scholar] [CrossRef]
  10. Kiran, S.; Adeel, S.; Yousaf, M.S.; Habib, N.; Hassan, A.; Qayyum, M.A.; Abdullah, M. Green dyeing of microwave treated silk using coconut coir based tannin natural dye. Ind. Textila 2020, 71, 227–234. [Google Scholar] [CrossRef]
  11. Rehman Ur, F.; Adeel, S.; Haddar, W.; Bibi, R.; Azeem, M.; Mia, R.; Ahmed, B. Micro-wave-Assisted Exploration of Yellow Natural Dyes for Nylon Fabric. Sustainability 2022, 14, 5599. [Google Scholar] [CrossRef]
  12. Ul-Islam, S.; Rather, L.J.; Shabbir, M.; Bukhari, M.N.; Khan, M.A.; Mohammad, F. First Application of Mix Metallic Salt Mordant Combinations to Develop Newer Shades on Wool with Bixa orellana Natural Dye Using Reflectance Spectroscopy. J. Nat. Fibers 2018, 15, 363–372. [Google Scholar] [CrossRef]
  13. Asım, D.; Benli, H.; Şen, Y.; Bahtiyari, M.İ. Dyeing of Cotton with Thyme and Pomegranate Peel. Cellulose 2014, 21, 4671–4680. [Google Scholar]
  14. Amin, N.; Rehman, F.-U.; Adeel, S.; Ahamd, T.; Muneer, M.; Haji, A. Sustainable application of cochineal-based anthraquinone dye for the coloration of bio-mordanted silk fabric. Environ. Sci. Pollut. Res. 2020, 27, 6851–6860. [Google Scholar] [CrossRef]
  15. Baseri, S. Eco-friendly production of anti-UV and antibacterial cotton fabrics via waste products. Cellulose 2020, 27, 10407–10423. [Google Scholar] [CrossRef]
  16. Haji, A.; Naebe, M. Cleaner dyeing of textiles using plasma treatment and natural dyes: A review. J. Clean. Prod. 2020, 265, 121866. [Google Scholar] [CrossRef]
  17. Haji, A. Plasma activation and chitosan attachment on cotton and wool for improvement of dyeability and fastness properties. Pigment Resin Technol. 2020, 49, 483–489. [Google Scholar] [CrossRef]
  18. Haji, A.; Ashraf, S.; Nasiriboroumand, M.; Lievens, C. Environmentally Friendly Surface Treatment of Wool Fiber with Plasma and Chitosan for Improved Coloration with Cochineal and Safflower Natural Dyes. Fibers Polym. 2020, 21, 743–750. [Google Scholar] [CrossRef]
  19. Sajed, T.; Haji, A.; Mehrizi, M.K.; Boroumand, M.N. Modification of wool protein fiber with plasma and dendrimer: Effects on dyeing with cochineal. Int. J. Biol. Macromol. 2018, 107, 642–653. [Google Scholar] [CrossRef]
  20. Ainur, B.; Nurzhan, B.; Gani, Y.; Donyor, N. The improvement of bactericidal properties and change of colour characteristics of knitted materials at using nanosilver and carboxymethyl starch. Ind. Text. 2022, 73, 19–26. [Google Scholar] [CrossRef]
  21. Tripa, S.; Indrie, L.; Zlatev, Z.; Tripa, F. Customized clothes—A sustainable solution for textile waste generated by the clothing industry. Ind. Text. 2022, 73, 275–281. [Google Scholar] [CrossRef]
  22. Rosyida, A.; Masykuri, M. Minimisation of Pollution in the Cotton Fabric Dyeing Process with Natural Dyes by the Selection of Mordant Type. Res. J. Text. Appar. 2022, 26, 41–56. [Google Scholar] [CrossRef]
  23. Sikka, M.P.; Sarkar, A.; Garg, S. Artificial intelligence (AI) in textile industry operational modernization. Res. J. Text. Appar. 2022. ahead of print. [Google Scholar] [CrossRef]
  24. Gulihonenahali Rajkumar, A.; Hemath, M.; Kurki Nagaraja, B.; Neerakallu, S.; Thiagamani, S.M.K.; Asrofi, M. An Artificial Neural Network Prediction on Physical, Mechanical, and Thermal Char-acteristics of Giant Reed Fiber Reinforced Polyethylene Terephthalate Composite. J. Ind. Text. 2022, 51, 769S–803S. [Google Scholar] [CrossRef]
  25. Heydarian, P.; Vadood, M.; Yazdi, A.A.A. Modeling of bending length based on concentrated loading method. Indian J. Fibre Text. Res. 2020, 45, 220–223. [Google Scholar] [CrossRef]
  26. Karasawa, Y.; Uemae, M.; Yoshida, H.; Kamijo, M. Prediction of clothing comfort sensation of an undershirt using artificial neural networks with psychophysiological responses as input data. Text. Res. J. 2021, 92, 330–345. [Google Scholar] [CrossRef]
  27. Li, W.; Wei, Z.; Liu, Z.; Du, Y.; Zheng, J.; Wang, H.; Zhang, S. Qualitative identification of waste textiles based on near-infrared spectroscopy and the back propagation artificial neural network. Text. Res. J. 2021, 91, 2459–2467. [Google Scholar] [CrossRef]
  28. Majumdar, A. Modelling of thermal conductivity of knitted fabrics made of cotton–bamboo yarns using artificial neural network. J. Text. Inst. 2011, 102, 752–762. [Google Scholar] [CrossRef]
  29. Paknejad, S.H.; Vadood, M.; Soltani, P.; Ghane, M. Modeling the sound absorption behavior of carpets using artificial intelligence. J. Text. Inst. 2021, 112, 1763–1771. [Google Scholar] [CrossRef]
  30. Sumesh, K.; Kanthavel, K. Optimizing various parameters influencing mechanical properties of banana/coir natural fiber composites using grey relational analysis and artificial neural network models. J. Ind. Text. 2020, 51, 6705S–6727S. [Google Scholar] [CrossRef]
  31. Monticeli, F.M.; Neves, R.M.; Júnior, H.L.O. Using an artificial neural network (ANN) for prediction of thermal degradation from kinetics parameters of vegetable fibers. Cellulose 2021, 28, 1961–1971. [Google Scholar] [CrossRef]
  32. Jun, L.Y.; Karri, R.R.; Yon, L.S.; Mubarak, N.; Bing, C.H.; Mohammad, K.; Jagadish, P.; Abdullah, E. Modeling and optimization by particle swarm embedded neural network for adsorption of methylene blue by jicama peroxidase immobilized on buckypaper/polyvinyl alcohol membrane. Environ. Res. 2020, 183, 109158. [Google Scholar] [CrossRef] [PubMed]
  33. Picos-Benítez, A.R.; Martínez-Vargas, B.L.; Duron-Torres, S.M.; Brillas, E.; Peralta-Hernández, J.M. The use of artificial intelligence models in the prediction of optimum operational conditions for the treatment of dye wastewaters with similar structural characteristics. Process Saf. Environ. Prot. 2020, 143, 36–44. [Google Scholar] [CrossRef]
  34. Aminoddin, H.; Vadood, M. Environmentally Benign Dyeing of Polyester Fabric with Madder: Modelling by Artificial Neural Network and Fuzzy Logic Optimized by Genetic Algorithm. Fibers Polym. 2021, 22, 3351–3357. [Google Scholar]
  35. Vadood, M.; Haji, A. A hybrid artificial intelligence model to predict the color coordinates of polyester fabric dyed with madder natural dye. Expert Syst. Appl. 2022, 193, 116514. [Google Scholar] [CrossRef]
  36. Haji, A.; Payvandy, P. Application of ANN and ANFIS in prediction of color strength of plasma-treated wool yarns dyed with a natural colorant. Pigment Resin Technol. 2020, 49, 171–180. [Google Scholar] [CrossRef]
  37. Kheirkhah, B.P.; Vadood, M.; Safar, J.M. Modeling the Properties of Core-Compact Spun Yarn Using Artificial Neural Network. J. Text. Polym. 2016, 4, 101–105. [Google Scholar]
  38. Fausett, V. Fundamentals of Neural Networks: Architectures, Algorithms and Applications; Prentice Hall International: Hoboken, NJ, USA, 1994. [Google Scholar]
  39. Vle, N.F.L.; Najlona, E.V.I.; Umetne, Z.U.M. Predicting the Physical Properties of Drawn Nyylon-6 Fibers Using an Artificial-Neural-Network Model. Mater. Tehnol. 2015, 49, 325–332. [Google Scholar]
  40. Moazeni, N.; Vadood, M.; Semnani, D.; Hasani, H. Modeling the compliance of polyurethane nanofiber tubes for artificial common bile duct. Mater. Res. Express 2018, 5, 025004. [Google Scholar] [CrossRef]
  41. Hadavandi, E.; Mostafayi, S.; Soltani, P. A Grey Wolf Optimizer-based neural network coupled with response surface method for modeling the strength of siro-spun yarn in spinning mills. Appl. Soft Comput. 2018, 72, 1–13. [Google Scholar] [CrossRef]
  42. Erdem İşmal, Ö. Greener Natural Dyeing Pathway Using a by-Product of Olive Oil; Prina and Biomordants. Fibers Polym 2017, 18, 773–785. [Google Scholar] [CrossRef]
  43. Chipperfield, A.J.; Fleming, P.J. The Matlab Genetic Algorithm Toolbox. In Proceedings of the IEE Colloquium on Applied Control Techniques Using MATLAB, London, UK, 26 January 1995. [Google Scholar]
  44. Birge, B. Psot-a Particle Swarm Optimization Toolbox for Use with Matlab. In Proceedings of the 2003 IEEE Swarm Intelligence Symposium. SIS’03 (Cat. No. 03EX706), Indianapolis, IN, USA, 26 April 2003. [Google Scholar]
  45. Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef] [Green Version]
  46. Coleman, T.; Branch, M.A.; Grace, A. Optimization Toolbox, 2nd ed.; For Use with Matlab. User’s Guide for Matlab 5; The MathWorks, Inc.: Natick, MA, USA, 1999. [Google Scholar]
  47. Saxén, A.; Bernander, K.B. Parallel Global Optimization Abb’s Metal Process Models Using Matlab. Project Rep. 2014, 1–30. [Google Scholar]
  48. Demuth, H.; Beale, M. Neural Network Toolbox, 4th ed.; The MathWorks Inc.: Natick, MA, USA, 2005. [Google Scholar]
Figure 1. Schematic view of an ANN model with one hidden layer.
Figure 1. Schematic view of an ANN model with one hidden layer.
Coatings 12 01519 g001
Figure 2. Schematic view of a vector containing all weights and biases of an ANN with seven neurons in the hidden layer.
Figure 2. Schematic view of a vector containing all weights and biases of an ANN with seven neurons in the hidden layer.
Coatings 12 01519 g002
Figure 3. Reduction in the MSE of the ANN with three neurons in one hidden layer using different optimization algorithms for the training group.
Figure 3. Reduction in the MSE of the ANN with three neurons in one hidden layer using different optimization algorithms for the training group.
Coatings 12 01519 g003
Figure 4. Proposed approach for weighting the ANN.
Figure 4. Proposed approach for weighting the ANN.
Coatings 12 01519 g004
Figure 5. Outputs of the ANNs weighted by BP and PSO-FMIN algorithms and actual values for the test groups.
Figure 5. Outputs of the ANNs weighted by BP and PSO-FMIN algorithms and actual values for the test groups.
Coatings 12 01519 g005
Table 1. Results of ANOVA for l* color coordinate.
Table 1. Results of ANOVA for l* color coordinate.
SourceDFAdj SSAdj MSF-Valuep-Value
Mordant3.002034.00678.0513.410.00
Error116.005867.0050.58--
Total119.007902.00---
Weld5.005432.001086.5050.160.00
Error114.002469.0021.66--
Total119.007902.00---
Madder5.00660.60132.112.080.07
Error114.007241.1063.52--
Total119.007901.60---
Table 2. Results of ANOVA for a* color coordinate.
Table 2. Results of ANOVA for a* color coordinate.
SourceDFAdj SSAdj MSF-Valuep-Value
Mordant3.001092.00363.895.680.00
Error116.007432.0064.07--
Total119.008524.00---
Weld5.006673.001334.5182.170.00
Error114.001851.0016.24--
Total119.008524.00---
Madder5.00769.50153.912.260.05
Error114.007754.5068.02--
Total119.008524.00---
Table 3. Results of ANOVA for b* color coordinate.
Table 3. Results of ANOVA for b* color coordinate.
SourceDFAdj SSAdj MSF-Valuep-Value
Mordant3.001473.00491.1012.940.00
Error116.004402.0037.95--
Total119.005875.00---
Weld5.001933.00386.6211.180.00
Error114.003942.0034.58--
Total119.005875.00---
Madder5.001103.00220.595.270.00
Error114.004772.0041.86--
Total119.005875.00---
Table 4. Obtained results for the prediction of the l* color coordinate.
Table 4. Obtained results for the prediction of the l* color coordinate.
Number of NeuronsMSE for Training GroupMSE for Test Group* MSE Change (%)
BPGAPSOGWOFMINPSO-FMINBPGAPSOGWOFMINPSO-FMINTraining GroupTest Group
119.2818.7318.6518.5118.1018.106.635.945.815.515.01α5.016.1424.45
218.5816.279.6216.2413.567.675.818.457.058.227.044.45 α58.7323.48
312.7610.176.306.415.514.113.604.557.027.9710.762.02 α67.7843.94
42.602.542.542.592.332.333.473.413.523.39 α3.393.390.182.28
51.911.901.891.911.731.733.633.643.663.63 α3.923.920.000.00
61.941.811.671.881.381.353.323.573.743.52 α4.624.103.52−5.89
72.372.212.122.251.181.154.364.374.794.15 α7.247.665.344.87
α: The lowest MSE obtained by optimization algorithms for the test group. *: Percentage change for the MSE indicated by α (row above) compared to the MSE with BP for the test group and corresponding training group.
Table 5. Obtained results for the prediction of the a* color coordinate.
Table 5. Obtained results for the prediction of the a* color coordinate.
Number of NeuronsMSE for Training GroupMSE for Test Group* MSE Change (%)
BPGAPSOGWOFMINPSO-FMINBPGAPSOGWOFMINPSO-FMINTraining GroupTest Group
117.5216.5016.4416.4616.5016.444.444.89 α5.165.534.89 α5.195.82−10.06
210.6110.5610.5510.5710.5610.493.944.314.314.264.313.77 α1.174.42
34.264.033.794.184.033.394.054.304.293.334.302.26 α20.3844.09
41.591.591.581.591.591.492.182.182.242.182.181.68 α6.4622.80
53.132.972.913.022.342.294.123.663.433.692.792.20 α26.7346.69
63.623.303.143.492.212.1513.6713.2613.6011.833.813.44 α40.5474.87
72.912.812.762.890.710.693.403.27 α3.643.394.524.123.233.70
α: The lowest MSE obtained by optimization algorithms for the test group. *: Percentage change for the MSE indicated by α (row above) compared to the MSE with BP for the test group and corresponding training group.
Table 6. Obtained results for the prediction of the b* color coordinate.
Table 6. Obtained results for the prediction of the b* color coordinate.
Number of NeuronsMSE for Training GroupMSE for Test Group* MSE Change (%)
BPGAPSOGWOFMINPSO-FMINBPGAPSOGWOFMINPSO-FMINTraining GroupTest Group
131.4428.1827.4429.5431.4427.439.6014.1320.3414.37 α20.8520.856.04−49.75
225.2524.9924.6725.0325.2511.3323.4726.2528.0626.5816.48 α17.7348.0129.78
35.484.924.865.125.484.651.871.451.402.011.391.39 α15.0225.81
44.374.214.184.284.373.412.051.421.411.31 α1.871.822.1335.99
52.522.512.492.522.522.105.795.765.715.793.95 α4.7123.3531.72
621.3916.1813.0414.1821.392.0916.8513.5015.9117.835.945.43 α90.2467.76
74.403.713.473.884.401.433.494.334.02 α4.966.805.6121.27−15.25
α: The lowest MSE obtained by optimization algorithms for the test group. *: Percentage change for the MSE indicated by α (row above) compared to the MSE with BP for the test group and corresponding training group.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Vadood, M.; Haji, A. Application of ANN Weighted by Optimization Algorithms to Predict the Color Coordinates of Cellulosic Fabric in Dyeing with Binary Mix of Natural Dyes. Coatings 2022, 12, 1519. https://doi.org/10.3390/coatings12101519

AMA Style

Vadood M, Haji A. Application of ANN Weighted by Optimization Algorithms to Predict the Color Coordinates of Cellulosic Fabric in Dyeing with Binary Mix of Natural Dyes. Coatings. 2022; 12(10):1519. https://doi.org/10.3390/coatings12101519

Chicago/Turabian Style

Vadood, Morteza, and Aminoddin Haji. 2022. "Application of ANN Weighted by Optimization Algorithms to Predict the Color Coordinates of Cellulosic Fabric in Dyeing with Binary Mix of Natural Dyes" Coatings 12, no. 10: 1519. https://doi.org/10.3390/coatings12101519

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop