Modelling and Simulation in Engineering

Modelling and Simulation in Engineering / 2010 / Article

Research Article | Open Access

Volume 2010 |Article ID 487678 |

Rocco Furferi, Monica Carfagni, "Colour Mixing Modelling and Simulation: Optimization of Colour Recipe for Carded Fibres", Modelling and Simulation in Engineering, vol. 2010, Article ID 487678, 9 pages, 2010.

Colour Mixing Modelling and Simulation: Optimization of Colour Recipe for Carded Fibres

Academic Editor: Petr Musilek
Received12 Feb 2010
Revised08 Oct 2010
Accepted28 Oct 2010
Published22 Dec 2010


Colour matching between carded and finished fibres is an important challenge for textile industry. The straightforward approach for mixing together some differently coloured fibres in order to obtain a blend of a desired colour is to perform a trial and error approach starting from a given colour recipe and optimizing it with several attempts. Unfortunately, dyeing process so as the carding procedure may result in a carded fibre whose colour is different from the desired one. As a consequence textile companies have to modify the original recipe in order to reduce the gap between the colour of the final product and the desired one. The present work describes a model able to simulate the colour mixing of fibres in order to assess the best recipe. The model consists in two modules: a “prediction module” predicts the colour of a blend obtained by mixing together several fibres; an “optimization module” is used to optimize the final recipe. The devised system has been tested for optimizing the recipe of a set of 200 blends. The mean error in predicting the blend colour is about 15% with a variance of 0.165. The time for optimizing the recipe is reduced by 92%.

1. Background

The production of a carded fibre is often performed by mixing together a series of differently coloured fibres according to a formula known as “recipe”. A recipe is a list of percentages of raw materials that have to be mixed together so as to obtain a carded fibre with a desired colour. The raw material is mixed by using a machine called “carder.” By means of this machine, the textile companies produce a carded fibre (also called “blend”) whose colour has to be compared with the one provided by a customer. The main problem is that different dye processes may lead to different reproduction of the colour. Accordingly, the use of a recipe for mixing the raw material does not guarantee that the colour of the blend is strictly “close” to the desired colour. This means that the colorimetric distance between a reference and the blend, measured by means of the CMC distance [1, 2] under different standard illuminants [3], may result too greatly. As widely known, the CMC tolerancing system has been developed by the Colour Measurement Committee of the Society of Dyers and Colourists in Great Britain and may be defined as a modification of CIELAB [4] which provides better agreement between visual assessment and instrumentally measured colour difference. The colour distance supplied by the CMC tolerancing system, called CMC distance DECMC, is expressed by the following equation: where(i), , and are, respectively, the differences in terms of , , and [5, 6] between the two samples(ii), , and are the semi-axis of an ellipsoid representing the volume of acceptable colour.

In textile field, usually, and . Formulas for evaluating , and are provided in [7].

When the CMC distance exceeds a threshold value, usually set equal to 0.8 [8], the colourists have to change the original formula order to reduce the colorimetric distance between the obtained blend and the desired one. This phase is performed by means of a trial and error technique; in detail, the textile technicians perform a carding of the fibres according to their own recipe in order to obtain a blend. The blend is then measured by means of a spectrophotometer that provides the value of light reflectance in the visible wavelength range (400–700 nm), with a step of 10 nm. The resulting spectrum is obtained using a scattered light measurement in SCE (Specular Component Excluded) mode. The scan is made with a neutral white background using an 8 deg angle between the light source and the fabric. Usually a zero calibration is used to compensate for the effects of stray light due to the changing flare characteristics of the optical system. The spectrophotometer output usually consists of a 31 elements vector representing the reflectance values versus the wavelength for an examined carded fabric. From the reflectance value, it is straightforward to assess the , , and values according to widely known formulas [7]. Finally, using (1) the CMC colour difference between the obtained blend and the desired one is evaluated. If such colour distance is less than 0.8 the used recipe the colourists consider the adopted recipe as a good one. Otherwise, the colourists have to test different recipes in an empirical way; this requires to perform a new carding and a subsequent colour measurement, within an iterative process (Figure 1). The carding process lasts about 40 minutes; so if the first attempt in producing a blend is unsatisfactory, at least another forty minutes are necessary to get a new blend (with a total time of at least 80 minutes).

At the state-of-the-art, a number of approaches have been described for partially solving this crucial problem. Generally they are based on the Kubelka-Munk theory [9, 10] that is widely used for describing the colour properties of a fabric. These approaches have been adopted for predicting the spectral reflectance for a mixture of components (colorants) that have been characterized by absorption and scattering coefficients. Several studies, related to the tristimulus-matching algorithm based on the Stearns-Noechel model [11] (and its implementations [1214]), allow a consistent prediction of the formula for matching a given colour standard by blending predyed fibres with CMC colour differences less than 0.8. A colour-matching system based on Friele’s theory has been developed in [15]. Artificial Neural Networks (ANNs) have been also used for mapping between colorant concentrations and spectral reflectance [16, 17].

The main aim of the present work is to describe a model for the automatic optimization of a recipe used for obtaining a desired (provided by a customer) blend. The model, given the spectral reflectances of the desired blend and a first attempt recipe, allows the automatic detection of the best possible recipe in order to minimize the colour distance between the obtained blend and the desired one.

The assessment of a suitable recipe for obtaining a desired blend is, on the basis of the research provided by the literature, promising for a limited number of fibres while in most cases a particular colour may be obtained mixing together more than 10 differently coloured fibres. As a consequence, the (excellent) results obtained by the theoretical approaches proposed in literature may result not suitable in the industrial practice. In order to overcome these limitations so as to find the optimal recipe of a blend composed by any number of fibres, important information is used in the present work: the first attempt recipe. Since the companies that produce blends starting from differently coloured fibres always uses a first attempt recipe based on their own expertise, this important information can be used prior to the determination of the best possible one. In detail such a recipe, as described in the next section, is used for determining a transfer function between the spectral responses of the fibres composing the blend and the spectrophotometric response of the blend obtained by mixing such fibres. The knowledge of this transfer function allows the prediction of the spectral responses of any blend obtained by mixing the fibres with any recipe. On the basis of the prediction of the spectrophotometric response of the blend, it is possible to optimize the recipe in order to minimize the CMC colour distance between the desired blend and the one obtained using such an optimal recipe. Therefore, the devised model consists of two main modules as depicted in Figure 2. The first module, called “prediction module,” is composed by an ANN-based software able to predict the spectrophotometric response of any blend obtained by mixing any number of fibres, once known a first attempt recipe. The second module, called “optimization module”, consists of a software tool able to identify the best recipe in order to minimize the CMC colour distance between the reference and the predicted blend.

The model receives the following data, as input:(i)the spectrophotometric response of all the fibres composing a particular blend,(ii)the spectrophotometric response of the desired blend (the so called “reference”),(iii)a first attempt recipe.

The output of the model is the best possible recipe for obtaining a blend whose CMC colour distance is minimized.

The use of the model allows a drastic change in the process as described in Figure 2. The textile technicians have to process the fibres with the carder only once so as to obtain a first blend. This operation lasts about 40 minutes. The spectrophotometric response of the blend and of the raw materials composing it is then automatically processed by the devised software that provides the best possible recipe. The main advantage that the present approach encloses is that the whole process is performed by means of a software tool that carries out a reliable result in less than 30 s. As a consequence the recipe optimization is performed in just over 40 minutes with a huge saving of time. In other words, the proposed method allows a strong reduction of the time to produce a carded fibre of a desired colour and promises a reliable recipe optimization.

The development of the automatic optimization model is based on the following tasks:(i)development of the prediction module, able to predict the spectral response of a blend on the basis of the reflectance factors of the fibres composing it and of the first attempt recipe(ii)development of the optimization module, able to find the best possible recipe for obtaining a blend whose colour, expressed into the CMC tolerancing system, is the closest possible to the desired one.

2. Development of the Prediction Module

Let be the spectral reflectance factors of the th of the components composing a carded fibre: . Let, then, be the percentage of each component (wool, cotton, linen, or other fibres) composing the carded fibre. As widely known in literature a weighted average spectrum can be defined as follows [2]: In (2), indicates the wavelength, varying in the range (400–700 nm). The size of vectors and is 1 × 31.

The vector is called “recipe.”

Now, let be the spectral reflectance factors of the carded fibre obtained by mixing the components according to a given recipe.

The general relationship between and is, in general, a nonlinear function such as: Accordingly, once the transfer function known, it is possible to evaluate the spectral reflectance factors of a carded cloth given the parameters and the vectors .

The “prediction module” aims to determine for any recipe the spectrophotometric response of a blend. In other words, such a module has to determine the transfer function for any recipe.

The main problem is that the function may be assessed only by means of an extensive experimental campaign (Figure 3).

In several works, the Stearns and Noechel approach [7] was used for determining the value of the transfer function according to the following formula: As mentioned in the background section, it is important to emphasize that the proposed method is considerably different from the Stearns and Noechel approach, that is one of the most interesting and valid methods applied for predicting a transformed reflectance spectrum. The Stearns-Noechel-based approach estimates the spectrophotometric response of a blend obtained by mixing differently coloured once known an empiric constant M. More in detail Stearns and Noechel proposed an empirical additive formula for function : where is an empirical constant found to be 0.15 for fine wool blends. Some authors proposed some different values for constant depending upon the materials composing the blend [10]. This constant has been determined by means of several experimental tests. However this equation gives reliable results only for blends composed by maximum 5-6 differently coloured fibres. The approach described in the present work allows the estimation of the transformed spectra without the use of an empiric constant . More in detail the function is determined by using an ANN. The approach is suitable for blends composed by more than 15 components. Obviously the devised model has also a limitation with respect to the literature approaches. While the Stearns-Noechel based theory is a general assessment for predicting the obtainable spectrophotometric response of a blend (basing upon the knowledge of constant ) the proposed approach is a local assessment for predicting the spectrum of a blend obtained by any small variation of a recipe once a first attempt recipe is known.

Instead of calculating the function , the functional link between input and output is obtained by means of an ANN software. First, a database capable of representing several dyes used for creating a blend has been created. More in detail 300 differently coloured blends have been collected. These data are available thanks to an extensive experimental campaign conducted in 2009 by the colourists working in the company New Mill S.p.A. of Prato, Italy. Each blend is composed by a certain number of raw materials each one characterized by a different spectrophotometric response . The chosen blends are selected from the company catalogue. Each blend colour is, often, characterized by a spectrophotometric response . For the th () blend, it is possible to evaluate the weighted average spectrum ) according to (2). Then, these collected weighted average spectra are used as training set for an ANN. In detail the training data are represented by a matrix which elements are the 300 vectors ).

Therefore, the matrix is made of 600 columns (number of tests performed) and 31 rows (values of reflectance in the range 400–700 nm with a step of 10 nm) The target data consists in a Matrix composed by the spectrophotometric response of the carded fibres obtained by mixing the raw materials according to the original recipe. The ANN has been devised by using the Matlab Neural Network Toolbox and is characterized by the following parameters (Figure 4):(i)three layers: input, hidden, and output layer,(ii)hidden layer made of logistic neurons followed by an output layer of linear neurons,(iii)thirty-one input, h hidden, and 31 output units. The number of input units depends upon the number of components composing the recipe. The number of hidden units was varied from 15 to 30 with a step of 3 units, monitoring the performance of response using the training data. Depending upon the number of raw materials composing the fibres the number of hidden unit that allows the optimal response varies in the range 18–21.

The ANN is trained using a back-propagation algorithm with momentum [18]. The algorithm requires two parameters: the learning rate and momentum term. The momentum term was fixed at 0.74, and the learning rate was fixed at 0.1. The network was trained 5 times starting each time with a randomly chosen set of weights. As widely known, during the training, the weights and the biases of the network are iteratively adjusted to minimise the network error function. The network error used in this work is the mean square error (MSE) correspondent to the training set elements. This error is monitored during the training process and will normally decrease during the training. However, when the network becomes excessively specialised in reproducing the training data, the early stopping error will typically begin to rise. When the early stopping error increases for a specified number of iterations, the training is stopped, and the weights and biases at the minimum early stopping error are returned.

Once trained the ANN accepts any vector as input and computes instantly the correspondent Neural Network output vector . This means that the ANN is able to perform a nonlinear spectral transformation with the aim of predicting the spectrophotometric response of a carded fibre obtained by mixing a series of raw materials. The ANN has been tested with more than 600 test, performed into New Mill Lab. In Table 1, the results of 40 tests are listed. For the entire set of 600 tests the main value of CMC colour distance between the predicted spectral factors and the real one is 0.53 with a variance of 0.06. In order to understand the provided approach, an example is provided below. Suppose you have to predict the spectrophotometer response of a blend obtained by mixing together 10 fibres (according to a recipe) whose spectrophotometric response is the one showed in Figure 5(a).

TestCMC Difference between predicted spectral factors and real onesTestCMC Difference between predicted spectral factors and real ones



The ANN receives, in input, the 31 values of the spectrophotometric response and gives, in output, a predicted spectrophotometric response . This response is a prediction of the real colour (in terms of spectrophotometric response) of a blend. The prediction may be considered reliable if the CMC colour distance between and is less than 0.8. In Figure 5b, the comparison between the two vectors and is provided. In the example, the CMC distance is equal to 0.32.

3. Development of the Optimization Module

As described above, the ANN based module (prediction) is able to forecast, in a reliable way, the spectrophotometric response of a blend obtained by modifying a recipe, given the reflectance factors of its components and a first attempt blend. This predicted spectral response, performed by means of an ANN instantly (200 ms), may be compared (using CMC colour distance) with the spectrophotometric response of the customer provided one. Accordingly, the colourist may perform a trial and error search of the best recipe that allows the minimum value of CMC distance.

The main idea of the optimization module is to find the values of the recipe that, on the basis of the output provided by the optimization module, allows reaching the minimum value for the CMC distance between the spectral factors predicted by the ANN and the reference ones. The optimization process is structured as follows.

Given:(i)the spectrophotometric responses of the fibres composing a blend,(ii)the spectrophotometric response of the reference blend,(iii)the original recipe vector .

Find the value of that minimize the objective function given by the Euclidean difference between and where is the prediction obtained with prediction module Subject to the following constraints (optimization problem bounds): This optimization problem can be solved using one of the optimization algorithm [19] developed into the Optimization Toolbox implemented into Matlab environment. In this work, a genetic algorithm (GA) has been used for minimizing the objective function. The GA [20] is composed by a randomly generated population of 50 double vectors with a Proportional Fitness scaling function and using a “Roulette” selection. The number of generations chosen as stopping criteria has been set equal to 500. The result of the GA optimization is obvious to fine the parameters that minimize the objective function, that is, to find the best recipe for matching the reference spectral response with the predicted one.

4. Graphical User Interface

In order to help the colourists in finding the optimal recipe a Graphical User Interface (GUI) has been developed into Matlab environment. The GUI, showed in Figure 6, allows the user to set the original recipe and to evaluate with a single button press to obtain a prediction of the blend colour or the optimal recipe. In the example provided in Figure 6, the optimal recipe allows to reduce the CMC distance from the value 0.282 to the value 0.197. Moreover, the algorithm has been implemented for several standard illuminants such as D65, A, TL84, and F2. The C-L, L-H, and C-H ellipses are also plotted in the GUI.

5. Results and Conclusions

In the present work, a model for optimizing the recipe, used for creating a coloured blend is proposed. It consists in the combination of two modules; the first is able to simulate the colour mixing so as to give a reliable prediction of the spectral factors of the blend, and the second is able to optimize the recipe in order to minimize the CMC distance between a reference and the new blend. The system is currently running into the New Mill Lab and allows the technicians to state the best recipe in about 40 minutes. In order to state the performance of the system, an efficiency parameter has been defined. This parameter is given by the following relationship: where(i)(ii) is the CMC distance between the reference spectral factors and the spectral response of the blend realized with the optimized recipe ,(iii) is the CMC distance between the reference spectral factors and the spectral response of the blend realized with the trial and error technique ,(iiii) is the ratio between the time (in minutes) spent to find the optimal recipe with the trial and error method and the time spent to find the optimal recipe by means of the automatic optimizing model.

The efficiency parameter tends to 0 if the difference between the colour prediction allowed by the proposed method and the “classical” assessment is high. The parameter may assume values greater than one when the automatic prediction is better (or similar) to the one obtained in the classical method but the time spent for finding the optimal recipe is lower. The greater is the efficiency parameter , the better is the optimization of the recipe. Time is considered by the technicians an important challenge for producing the blends; accordingly the efficiency parameter encloses the term in its formulation. The validation of the devised model has been carried out by simulating a set of 90 blends. In Table 2 some of the results of the software performance are listed. The mean error in prediction the colour distance,that is, the mean value of is equal to 0.14 (that corresponds to a percentage of 14%) with a variance of 0.16. The time for optimizing the recipe is reduced, averagely, by 90%. The mean value of the efficiency parameter is about 1.67.

DE (automatic)DE (trial)Time (automatic) (min)Time (trial) (min) (%)Reduction of process time (%)Efficiency


Mean value14%90.2%1.67
Standard Dev.0.160.670.74

The mean value of for all the 200 blends is equal to 14.6 with a variance of 0.165. The time for optimizing the recipe is reduced, averagely, by 92%, and the mean value of the efficiency parameter is about 1.64. This validation demonstrates that the proposed approach is suitable for a reliable, fast, and practical recipe optimization for carded fibres. For these reasons, the developed system is actually running into the laboratory of an important textile company located in Prato (Italy).


  1. Y.-K. Lee and J. M. Powers, “Comparison of the metrics between the CIELAB and the DIN99 uniform color spaces using dental resin composite material values,” Color Research and Application, vol. 31, no. 3, pp. 168–173, 2006. View at: Publisher Site | Google Scholar
  2. G. Bartolini and P. Brachi, Dalla Fibra al Tessuto: Il Controllo Qualità, Giunti Editore, Firenze, Italy, 2002.
  3. K. León, D. Mery, F. Pedreschi, and J. León, “Color measurement in Lab units from RGB digital images,” Food Research International, vol. 39, no. 10, pp. 1084–1091, 2006. View at: Publisher Site | Google Scholar
  4. H. Mangine, K. Jakes, and C. Noel, “A preliminary comparison of CIE color differences to textile color acceptability using average observers,” Color Research and Application, vol. 30, no. 4, pp. 288–294, 2005. View at: Publisher Site | Google Scholar
  5. AATCC 173 CMC: Calculation of Small Color Differences for Acceptability.
  6. R. Furferi and M. Carfagni, “The colorimetric measurement of mélange woollen yarns: a new optical tool,” Journal of Engineering and Applied Sciences, vol. 5, pp. 877–881, 2007. View at: Google Scholar
  7. D. Heggie, R. H. Wardman, and M. R. Luo, “A comparison of the colour differences computed using the CIE94, CMC(l:c) and BFD(l:c) formulae,” Journal of the Society of Dyers and Colourists, vol. 112, no. 10, pp. 264–269, 1996. View at: Google Scholar
  8. A. Moussa, D. Dupont, D. Steen, and X. Zeng, “Colour change as a result of textile transformations,” Coloration Technology, vol. 124, no. 4, pp. 234–242, 2008. View at: Publisher Site | Google Scholar
  9. D. A. Burlone, “Effect of fiber translucency on the color of blends of precolored fibers,” Textile Research Journal, vol. 60, no. 3, pp. 162–167, 1990. View at: Google Scholar
  10. S. H. Amirshahi and M. T. Pailthorpe, “An algorithm for optimizing color prediction in blends,” Textile Research Journal, vol. 65, no. 11, pp. 632–637, 1995. View at: Google Scholar
  11. E. I. Steams and F. Noechel, “Spectrophotometric prediction of color wool blends,” American Dyestuff Reporter, vol. 33, no. 9, pp. 177–180, 1944. View at: Google Scholar
  12. L. I. Rong and G. U. Feng, “Tristimulus algorithm of colour matching for precoloured fibre blends based on the Stearns-Noechel model,” Coloration Technology, vol. 122, no. 2, pp. 74–81, 2006. View at: Publisher Site | Google Scholar
  13. B. Thompson and M. J. Hammersley, “Prediction of the colour of scoured-wool blends,” Journal of the Textile Institute, vol. 69, no. 1, pp. 1–7, 1978. View at: Google Scholar
  14. S. Z. Kazmi, P. L. Grady, G. N. Mock, and G. L. Hodge, “On-line color monitoring in continuous textile dyeing,” ISA Transactions, vol. 35, no. 1, pp. 33–43, 1996. View at: Google Scholar
  15. B. Philips-Invernizzi, D. Dupont, and C. Cazé, “Formulation of colored fiber blends from Friele's theoretical model,” Color Research and Application, vol. 27, no. 3, pp. 191–198, 2002. View at: Publisher Site | Google Scholar
  16. S. Westland, L. Iovine, and J. M. Bishop, “Kubelka-munk or neural networks for computer colorant formulation?” in Proceedings of The 9th Congress of the International Colour Association, vol. 4421 of Proceedings of SPIE, Rochester, NY, USA, June 2001. View at: Publisher Site | Google Scholar
  17. J. M. Bishop, M. J. Bushnell, and S. Westland, “Application of neural networks to computer recipe prediction,” Color Research and Application, vol. 16, no. 1, pp. 3–9, 1991. View at: Google Scholar
  18. V. V. Phansalkar and P. S. Sastry, “Analysis of the back-propagation algorithm with momentum,” IEEE Transactions on Neural Networks, vol. 5, no. 3, pp. 505–506, 1994. View at: Publisher Site | Google Scholar
  19. R. Fletcher, Practical Methods of Optimisation, John Wiley & Sons, New York, NY, USA, 1986.
  20. D. E. Goldberg, Genetic Algorithms in Search, Optimization and Machine Learning, Addison-Wesley, Reading, Mass, USA, 1989.

Copyright © 2010 Rocco Furferi and Monica Carfagni. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

More related articles

 PDF Download Citation Citation
 Download other formatsMore
 Order printed copiesOrder

Related articles