Abstract
This study proposes an ensemble differential evolution online sequential extreme learning machine (DE-OSELM) for textile image illumination correction based on the rotation forest framework. The DE-OSELM solves the inaccuracy and long training time problems associated with traditional illumination correction algorithms. First, the Grey–Edge framework is used to extract the low-dimensional and efficient image features as online sequential extreme learning machine (OSELM) input vectors to improve the training and learning speed of the OSELM. Since the input weight and hidden-layer bias of OSELMs are randomly obtained, the OSELM algorithm has poor prediction accuracy and low robustness. To overcome this shortcoming, a differential evolution algorithm that has the advantages of good global search ability and robustness is used to optimize the input weight and hidden-layer bias of the DE-OSELM. To further improve the generalization ability and robustness of the illumination correction model, the rotation forest algorithm is used as the ensemble framework, and the DE-OSELM is used as the base learner to replace the regression tree algorithm in the original rotation forest algorithm. Then, the obtained multiple different DE-OSELM learners are aggregated to establish the prediction model. The experimental results show that compared with the textile color correction algorithm based on the support vector regression and extreme learning machine algorithms, the ensemble illumination correction method achieves high prediction accuracy, strong robustness, and good generalization ability.
Keywords
With the development of artificial intelligence, computer vision, and image processing,1,2 the color-difference detection of textiles based on computer vision has become an important research topic in the textile printing and dyeing industry. Therefore, in the color-difference detection system, 3 to remove the influence of scene illumination, we must establish an accurate and effective illumination correction model as a pretreatment step of the color-difference detection system.
Different light sources result in different colors on the same object surface, and the illumination correction of a textile image is a very important part of the color-difference detection system. The illumination correction of the image is also called the color constant calculation or illumination estimation. The purpose of color constancy is to eliminate the influence of the illumination of the scene so that a computer can have the same color constancy as the human visual system. 4 For an image taken under an unknown illumination, the first step is to estimate the illumination value of the image. Then, according to the estimated value of illumination, the image is corrected to the standard illumination; therefore, regardless of the image illumination, the same color will appear. Color constancy refers to the genre of techniques that aim to recognize the color of objects invariant of the color of the light source. Generally, it can be divided into a color constant calculation in single-illumination scenes or in multiple-illumination scenes. 5 The study of color constant calculation in single-illumination scenes is to assume that the illumination is evenly distributed throughout the scene; that is, there is only one illumination in the entire scene. In past decades, there has been significant progress in color constancy algorithms that can be roughly divided into two major approaches: unsupervised and supervised. 6
Literature review
The unsupervised color constancy algorithm is used to estimate the color of an image using the color feature of the image itself without relying on other prior knowledge. Unsupervised color constancy algorithms mainly include the max-RGB algorithm, 7 the Grey–World algorithm, 8 and the shades of grey (SoG) algorithm. 9 Weijer et al. 10 considered the color derivative distribution in the opposing color space (opponent color space) image and proposed a Grey–Edge hypothesis: the average of the reflectance differences in a scene is achromatic. Based on the Grey–Edge hypothesis, Weijer et al. 10 proposed a unified framework for color constancy that included max-RGB, Grey–World, and SoG algorithms and extended the color constancy calculation to the higher-order derivative space of the image. In addition, Celik and Yetgin 11 proposed a color constancy algorithm called the Grey Wavelet that achieved good results by unifying the Grey–World and Grey–Edge color constancy algorithms. In general, the unsupervised color constancy algorithm has the advantage that the algorithm is simple and easy to calculate; however, its shortcoming is that the performance of the algorithm is heavily dependent on specific assumptions. For example, the max-RGB algorithm requires that the surface of the object have a white area in the scene. The Grey–World algorithm requires that the corrected image has a rich color. However, in the practical application of illumination correction, these conditions are often difficult to meet and are great limitations.
The supervised color constancy algorithm predicts image color under an unknown illumination by learning which colors will appear under various light conditions. From the current experimental effects of various color constancy algorithms, supervised color constancy algorithms are generally superior to unsupervised algorithms. Supervised methods establish the relationships between the image color distribution and the illumination color values through learning methods, including Bayesian color constancy, 12 back propagation (BP), 13 and others.14,15 Among them, the color constancy algorithm proposed by Xiong and Funt 14 based on support vector regression (SVR) is superior to other methods. However, the SVR method also has shortcomings; first, the SVR-based color constancy method independently calculates each chrominance component of an illumination so that each component may be optimal, but the estimation of the optimal entire chrominance vector cannot be guaranteed. Second, the learning speed of SVR is relatively slow. In view of these shortcomings, Li et al. 15 introduced a new fast-learning algorithm, the extreme learning machine (ELM) color constancy algorithm, based on a single hidden-layer feedforward neural network. Experiments on a variety of different image data sets show that the ELM-based color constancy algorithm performs better than the SVR algorithm.
However, the traditional ELM method is a batch method. First, the learning parameters need to be selected; then, when new data arrives, the used data and the new data must be retrained. In many industrial applications, it is very common that training data can only be obtained one-by-one or by chunk (a block of data). Thus, Liang et al. 16 proposed an online sequential extreme learning machine (OSELM) learning algorithm. Compared to an ELM, an OSELM can learn data one-by-one or chunk-by-chunk with a fixed or varying chunk size. It is not only 10 times faster than the SVM method, but is also applied to multiple areas, such as data fitting and classification 17 and prediction. 18 However, compared with the original ELM algorithm,19,20 the OSELM usually suffers from ill-posed problems because of the random determination of the input weights and hidden biases, which lead to unstable performance and affect the robustness of the illumination correction. To optimize the two parameters in the OSELM algorithm (input weight and hidden-layer bias), an optimization algorithm is introduced. There are many optimization algorithms, but some algorithms have long solution times, such as the particle swarm optimization (PSO) algorithm. 21 Genetic algorithms have very complex programming and unstable parameters. 22 The differential evolution (DE) algorithm, a heuristic global optimization algorithm widely used in recent years, has a simple structure, fast speed, and high efficiency. 23 Bazi et al. 24 proposed the use of the DE algorithm to select the input weight and hidden-layer bias of an ELM, and the effectiveness of the algorithm was verified by a large number of experiments. Therefore, this study uses the DE algorithm to optimize the input weights and hidden-layer bias of the OSELM to obtain a differential evolution online sequential extreme learning machine (DE-OSELM) model with good predictive performance.
Since the single OSELM model still suffers from poor robustness, researchers have integrated ELMs to achieve better robustness and generalization. The idea of ensemble learning was initially used to solve the classification problem, and as research on ensemble learning deepened, it was gradually used to solve the problem of regression. In 2009, Lan et al. 25 proposed an ensemble of online sequential extreme learning machine (EOS-ELM). The ensemble system used the OSELM as the member classifier and learned the data set one-by-one or group-by-group, where the number of samples can be fixed or not fixed. The experimental results showed that the EOS-ELM was faster than other sequential learning algorithms and had a good generalization performance on many standard regression, classification, and timing prediction problems. Although the experimental results of the EOS-ELM for three different types of problems were good, this method did not deal with the original sample set during construction of the ensemble classifier system; therefore, the difference between the base classifiers did not improve. The rotation forest (RF) algorithm 26 is an ensemble algorithm developed on the basis of random forests. Its main characteristic is the disjoint segmentation and data set transformation of the feature set, and a decision tree is used as the base classifier to establish the ensemble classification model. The algorithm randomly separates the attribute set of the sample and transforms the attribute subset by means of linear transformation to increase the difference between subsets. It then uses the transformed subset of attributes to select the sample to train different classifiers. The RF algorithm not only provides an integrated classification algorithm but also provides an ensemble learning framework that can be used for classification and regression.27,28
In this study, we use the RF algorithm as the ensemble framework and adopt the optimized OSELM to replace the regression tree algorithm in the original RF algorithm as the base learner. A new textile illumination correction ensemble DE-OSELM model based on the RF framework was established. The main contributions of this work are as follows.
The low-dimensional and efficient image features extracted by the Grey–Edge framework as the input vector of the OSELM improve the training and learning speed of the OSELM. Since the input weight and hidden bias of the OSELM are randomly selected, this leads to poor prediction accuracy and poor robustness. To overcome the shortcomings of the OSELM, this study uses the DE algorithm to optimize the OSELM input weight and hidden bias and to improve the prediction accuracy of the OSELM. In this study, the RF algorithm is used as the ensemble framework, and we adopt the optimized OSELM to replace the regression tree algorithm in the original RF algorithm as the base learner. In addition, the RF algorithm is used to integrate the different base learners (DE-OSELMs) to build a robust ensemble RF-DE-OSELM illumination correction model that enhances the generalization ability and robustness of the model.
The remainder of this paper is organized as follows. The third section provides a brief overview of the Grey–Edge algorithm, OSELM, DE algorithm, and RF algorithm. In the fourth section, the developmental steps of the hybrid prediction model and the model's application on the RF-DE-OSELM are described. A detailed description of the experiment is provided in the firth section, and the sixth section draws conclusions.
Preliminaries
In this section, in the process of establishing the textile illumination correction RF-DE-OSELM model, the Grey–Edge algorithm, OSELM, DE algorithm, and RF algorithm are utilized. The following is a brief introduction to the mathematical theory needed in the modeling process.
Grey–Edge algorithm
Most of the existing supervised color constancy algorithms use two-dimensional (2D) or three-dimensional (3D) binarized image chromaticity histograms as input vectors for learning algorithms. Although this binarized chromaticity histogram feature is widely used and achieves good results, its greatest drawback is that the feature dimension is too high. This high input vector will inevitably lead to a significant reduction in learning speed. To improve the efficiency of the algorithm, we abandon this inefficient and high-dimensional feature according to Li et al. 15 and use an unsupervised color constant algorithm to propose an efficient low-dimensional feature as the input vector.
Recently, Weijer et al.
10
proposed a new color constancy algorithm based on the Grey–Edge assumption that extended the low-level-image feature-based method to incorporate derivative information. Based on the introduction of a Minkowski norm and Gaussian filter, this algorithm presented a unified framework that generated various unsupervised color constancy algorithms. The framework is defined as
In this study, the Grey–Edge algorithm was used as the framework to generate the low-dimensional color feature used as the input data for the OSELM. Thus, its advantages are fully utilized while avoiding the problem of parameter selection.
Online sequential extreme learning machine
Compared with the ELM, the OSELM uses a sequential learning strategy instead of a batch learning strategy. The learning process of the OSELM output weight for the single hidden-layer neural network is divided into two parts: the initial stage is to obtain the output weight β through a small number of samples, and the second stage is the online learning process where the output weight β of the single hidden-layer feedforward neural network learned at the initial stage is updated by using a single sample or sample data block. In the initial stage, when there are
According to the generalized inverse method, we can calculate
According to the generalized inverse method, the value of
For online learning, we need to denote
It can be seen that
Thus, a recursive formula for online learning can be obtained
Calculate the output weight
Let
The learning process can be continuous by letting k = k + 1.
The above process is the principle of the OSELM algorithm. First, the output weight
The working principle of the OSELM can be divided into two stages
16
: initialization and sequential learning. In the initialization phase,
From the derivation of the OSELM, we can see that when the rank of
Differential evolution
DE, like other evolutionary algorithms, is a stochastic model for simulating biological evolution. It is achieved by repeated iterations whereby individuals adapting to the environment are preserved. However, compared with the evolutionary algorithm, DE preserves the population-based global search strategy that reduces the complexity of genetic operation by using real-number coding and simple mutation based on difference and a one-to-one competitive survival strategy. At the same time, it can dynamically track the current search situation to adjust its search strategy because of its unique memory ability. It has a strong global convergence ability and robustness and does not need to use the characteristic information of the problem, which is suitable for solving optimization problems in complex environments that cannot be solved by the conventional mathematical programming method.
The DE algorithm 24 is mainly used to solve the global optimization ability of continuous variables. The main working steps are basically the same as other evolutionary algorithms, including mutation, crossover, and selection. The basic idea of the algorithm is to start with a randomly generated initial population and use the difference vector of two individuals randomly selected from the population as the random variation source of the third individual and then divide the difference vector according to certain rules, and the third individuals are summed to produce mutated individuals, called mutations. Then, the mutated individuals are mixed with a predetermined target individual to generate an experimental individual called a cross. If the fitness value of the experimental individual is owing to the fitness value of the target individual, the experimental individual replaces the target individual in the next generation; otherwise, the individual is saved and is called the selection. In each evolutionary process, each individual vector is taken as the target individual once. During the iterative calculation, the algorithm retains the optimal individual and eliminates the poor individual, thus guiding the search process approximate to the global optimal solution.
Rotation forest
The RF algorithm 26 is an ensemble learning algorithm based on principal component analysis (PCA). The algorithm uses PCA to transform the original training set to construct the base classifier and generate the training subset for each classifier. The RF strategy mainly deals with the original sample characteristics of the ensemble classifier and increases the difference between the individuals of the ensemble classifier by adopting the feature extraction transformation to obtain the new samples needed for the ensemble and to guarantee the accuracy of classification. The strategy operates as follows.
The initial sample set
The RF strategy is proposed for two aspects: the diversity between ensemble classifiers and the accuracy of ensemble classifiers. Researches have shown that if the number of integrated classifiers chosen is 15–25, better classification performance is obtained but the computation time increases. Therefore, the training samples of each ensemble classifier were constructed using the RF strategy, and the ensemble running time was effectively shortened by reducing the number of integrated individuals, while the accuracy of integrated classification was ensured.
Proposed method
Data representation
Since illumination correction is more concerned with the chrominance information of an image (the direction information of the RGB vector) rather than the image luminance information (the mode of the RGB vector), the chrominance information of the image is used. Converting RGB color space to r-g chromaticity space is an important role in eliminating the effect of light intensity on color. The RGB space of an image can be converted to r-g space by
In this study, we set
Therefore, the input vector of the base learner OSELM is made up of
In addition, the output vector is composed of the illumination chromaticity information
Parameter optimization for the OSELM based on the DE algorithm
Compared with the traditional ELM, the OSELM has a greater advantage in adding data by doing so one-by-one or chunk-by-chunk. It avoids the problem of retraining historical data; thus, it can save training time. However, the accuracy of the algorithm is not ideal and needs to be improved, because the parameters, such as input weight and bias, are randomly selected. To optimize these two parameters in the OSELM algorithm, an optimization algorithm the OSELM based on a DE algorithm is introduced in this study. The DE algorithm has the advantages of simple structure, fast speed, and high efficiency.
The general flowchart of the DE-OSELM algorithm is shown in Figure 1. The specific steps of the DE-OSELM illumination correction model are as follows.
Online sequential extreme learning machine (OSELM) process optimized by the differential evolution (DE) algorithm.
Assume a training sample set
Hybrid forecasting model based on the RF-DE-OSELM
The idea of ensemble learning was used to solve the problem of classification, and recently it has gradually been used to solve the problem of regression. The RF algorithm is an algorithm for training ensemble classifiers based on the PCA, proposed by Rodriguez et al. 26 Zhang et al. 27 extended the RF ensemble classification algorithm to solve the regression problem and adopted the regression tree as the base learning algorithm. However, as for the learning process of the regression tree, the complexity of the learner results led to over-fitting problems. In addition, the OSELM has better self-adaptability; therefore, it has greater advantages in solving over-fitting problems. However, the generalization ability of a single OSELM algorithm in textile image illumination estimation is poor. In this study, we propose a new ensemble algorithm, an ensemble DE-OSELM algorithm based on the RF algorithm.
The RF-DE-OSELM algorithm first uses the original RF algorithm to deal with the training set of each learner to improve the diversity of each. Then, the DE-optimized OSELM model is used instead of the regression tree as the base learner to solve the over-fitting problem of the original algorithm and improve the prediction accuracy. Finally, the outputs of the base learners are combined with the average method to obtain the final illumination estimation model. The use of the average method also prevents the learning process from over-fitting so as to improve the prediction effect of the algorithm and enhance its generalization ability. The main flow of the RF-DE-OSELM algorithm is shown in Figure 2. The implementation process of the illumination correction model based on the RF-DE-OSELM can be described as follows.
Ensemble rotation forest differential evolution online sequential extreme learning machine (RF-DE-OSELM) framework. PCA: principal component analysis.

Experiments
Experimental conditions
In this study, a SONY SSC-DC398BP high-resolution industrial camera with an SSV0358GNB industrial lens was used to capture fabric images; the distance between the lens and the cloth surface was 0.7 m. It is important for different industries to choose the correct light source for color-difference measurement because of the different characteristics of various light sources. The material of this study was cotton and polyester finished fabric, so we selected the most commonly used lighting sources in the textile industry—D65, A, D50, and D55. We collected 500 polyester and cotton solid-color finished-fabric dyeing images with the industrial camera. All image sets were randomly assigned; 450 were used as a training image set, and the remaining 50 images as a test set. All tests were processed on a computer with the Windows 7 operating system (OS); the hardware configuration included an Intel core i3 processor clocked at 2.3 GHz with 4-Gb memory. In this study, the corresponding algorithms were developed on the PC using MATLAB R2012b simulation optimization and then transplanted to the digital signal processing system to achieve miniaturization and the convenience of a color-difference detection system. A schematic diagram of the acquisition process is given in Figure 3. The libsvm toolbox provided by Chang and Lin
30
was used for the SVR algorithm.
Block diagram of the acquisition process.
Measurement criteria
In this section, we evaluate and analyze the illumination estimation algorithm mainly using the chromaticity error and angle error to judge the performance of each algorithm. In this case, the chromaticity error and the angle error
15
were used to measure the difference between the real illumination and the predicted illumination. We calculated the root mean square error (RMSE), the maximum (MAX) error, and the median (MED) error of each algorithm as the evaluation index for each model.
Chromaticity error Chromaticity error is an important performance evaluation index of the lighting correction algorithm. The color Angle error The illumination chromaticity is essentially a 3D vector, and for the illumination estimation algorithm, we are concerned with the accuracy of the illumination estimation and not the light intensity. Therefore, for an image, only the error measurement of illumination estimation needs to be calculated by the algorithm. The estimated illumination chromaticity is
The closer the two illumination chromaticities, the smaller the angle difference, which means that the estimated illumination chromaticity is closer to the illumination chromaticity of the true scene; when
Parameter setting
To verify the performance of the RF-DE-OSELM illumination estimation model, comparative tests of prediction error and stability were performed with the single OSELM, DE-OSELM, and RF-OSELM models and the SVR and ELM traditional illumination estimation models. The parameters of these models were set as follows.
ELM illumination estimation model: the number of hidden-layer nodes (L) was 100 by cross-validation, and the Gaussian radial basis function (RBF)
SVR illumination estimation model: RBF was selected as the kernel function, as used by Xiong and Funt. 14
OSELM illumination estimation model: the number of hidden-layer nodes was 5, 10, 15, 20, and 25; the number of training data in the initialization phase
DE-OSELM illumination estimation model: the number of hidden-layer nodes was 5, 10, 15, 20, and 25; the range of input weight of the hidden layer was [−1,1], the range of bias of the hidden layer was [0,1], the number of training data in the initialization phase
RF-OSELM illumination estimation model: the number of hidden-layer nodes was 5, 10, 15, 20, and 25; the number of training data in the initialization phase
RF-DE-OSELM illumination estimation model: the number of hidden-layer nodes was 5, 10, 15, 20, and 25; the number of training data in the initialization phase
Simulation results and discussion
In this section, the performance of the proposed method is verified by comparing it to other illumination correction models. To verify the performance of the RF-DE-OSELM, 50 experiments were repeated on the textile image data set. The error of each experiment was derived from equations (26) and (27). All experiments were carried out on 500 polyester dyeing fabric images. The average values of RMSE, MAX error, and MED error of the 50 experiments were taken as the evaluation indexes of the performance of the various illumination correction algorithms.
For the problem of optimizing OSELM parameters, when grid research is used to select the parameters, the parameters can only grow in an exponential form of the grid width, which has poor regulation and is greatly influenced by human factors. At present, the most commonly used intelligent optimization algorithms are the DE algorithm and the PSO algorithm. Therefore, we first compare the DE algorithm and the PSO algorithm for OSELM parameter optimization. Figures 4 and 5 show the process of optimizing the parameters of the training set using the PSO and DE algorithms.
Parameter optimization curve of OSELM for particle swarm optimization (PSO). MSE: Mean Square Error. Parameter optimization curve of OSELM for differential evolution (DE). MSE: Mean Square Error.

Figures 4 and 5 describe the precision transformation process of the prediction accuracy of the PSO-OSELM and DE-OSELM on the image data set with the number of iterations. As can be seen from Figure 4, the convergence rate of the PSO algorithm is very slow during the iteration, and the algorithm converges to the optimal solution at the 95th iteration. From Figure 5, we can see that the DE algorithm converges rapidly from the start and converges to the optimal solution at the 60th iteration, and the prediction accuracy remains unchanged until the algorithm stops.
Comparing Figures 5 and 4, we can see that when optimizing the OSELM parameters, the performance of the DE model is better than that of the PSO model. DE not only allows the OSELM to obtain a higher solution on the data set but also converges faster than PSO. This is mainly because the realization mechanism of the PSO algorithm lacks variation ability; it only uses the global optimal particle and individual optimal particle to change the velocity of each particle. The particles gradually approach the optimal solution; therefore, it is easy to converge to the local optimal solution, resulting in poor prediction accuracy. The DE model preserves the global search strategy of the population. It can effectively avoid the population falling into the local optimal solution, which allows the OSELM to obtain better parameters and improves the prediction accuracy of the model. Moreover, the DE adopted differential mutation operation, and one-to-one competitive survival strategy reduced the complexity of the genetic operation and greatly reduced the algorithm running time. Therefore, the DE algorithm is used to optimize the OSELM parameters and make full use of its optimization process, which is simple and easy to control; the iterative speed of convergence is fast, and the efficiency of searching the global optimal solution is high. The optimal parameters of the OSELM are obtained through optimization.
Rotation forest online sequential extreme learning machine (RF-OSELM) model selection for the fabric image set
RMSE: root mean square error.
It can be observed from Table 1 that as the size of ensemble increases, the estimation error of each algorithm is reduced, implying that the overall trend of the prediction accuracy increased. However, it is not true that the larger the integration scale, the better the integration scale, because a large scale of integration leads to a significant increase in training time and the accuracy will reach a certain threshold. Therefore, the integration scale of the RF-DE-OSELM illumination estimation model should not be too large; otherwise, it will increase the number of calculations and reduce the training speed. Therefore, to balance the model accuracy and training time, we used six OSELMs in the RF-OSELMs and RF-DE-OSELMs in our experiments.
Comparison of online sequential extreme learning machine (OSELM), differential evolution online sequential extreme learning machine (DE-OSELM), rotation forest online sequential extreme learning machine (RF-OSELM), and rotation forest differential evolution online sequential extreme learning machine (RF-DE-OSELM) for Sigmoid hidden nodes
RMSE: root mean square error.
Comparison of online sequential extreme learning machine (OSELM), differential evolution online sequential extreme learning machine (DE-OSELM), rotation forest online sequential extreme learning machine (RF-OSELM), and rotation forest differential evolution online sequential extreme learning machine (RF-DE-OSELM) for radial basis function (RBF) hidden nodes
RMSE: root mean square error.
From the experimental results, the illumination estimation error and SD of the OSELM algorithm were greater than those of other algorithms, regardless of the use of the Sigmoid or RBF activation functions. The DE-OSELM algorithm had fewer errors than the OSELM algorithm, but its SD was still relatively large, indicating that the algorithm performance was still not stable enough. Compared with the OSELM and DE-OSELM algorithms, the mean error and SD of the RF-OSELM and RF-DE-OSELM algorithms were significantly decreased, and the performance of the algorithm was greatly improved. Among them, the RF-DE-OSELM achieved the optimal illumination estimation results on different hidden nodes and different activation functions.
From the experimental results of Tables 2 and 3, we can see that the OSELM algorithm achieved the optimal illumination estimation result when the number of hidden nodes was 10. Since the OSELM input layer weight and hidden-layer bias are randomly accessed, the accuracy of the OSELM algorithm is not high and not stable enough, and the difference between the results of the illumination estimation are relatively large. It can be observed from Tables 2 and 3 that the SD of the single OSELM algorithm was greater than that of the RF-OSELM and the RF-DE-OSELM, showing that the single OSELM model is unstable. In the OSELM, we only need to adjust the hidden-layer node number parameter; therefore, the number of hidden-layer nodes has a great influence on the performance of the OSELM algorithm. Increasing the number of hidden nodes can improve the performance of the OSELM algorithm, but the number of hidden nodes cannot be too large.
Compared with the OSELM algorithm, the illumination estimation error of the DE-OSELM algorithm was reduced. As can be seen from Tables 2 and 3, the DE-OSELM algorithm achieved the optimal illumination estimation result at L = 10. However, the SD of the algorithm was very large and the stability was not high, and the DE optimization algorithm did not improve the stability of the OSELM algorithm. This is mainly because the DE algorithm randomly initializes the population at each iteration of the input layer weight and the hidden-layer bias is not the same, resulting in instability.
In the RF-OSELM algorithm, a total of six different OSELMs were integrated. As can be seen from Tables 2 and 3, the OSELM algorithm with the RF algorithm not only reduced the error of illumination estimation but also improved the stability of the algorithm. Taking the Sigmoid activation function as an example, compared with the minimum mean error (0.0524) of the OSELM algorithm and the minimum mean error (0.0519) of the DE-OSELM algorithm, the minimum mean error (0.0318) of the RF-OSELM algorithm was reduced by 39.3% and 38.7%, respectively. This is mainly because the RF algorithm effectively improved the performance of the unstable learning algorithm. It differentiates the basic learner OSELM by randomly dividing the sample attribute set and then using the feature transformation strategy. Therefore, it obtained a good integration effect and improved the generalization ability of the learning algorithm.
In the RF-DE-OSELM algorithm, the RF algorithm was used to integrate six DE-OSELMs. From Tables 2 and 3, we can see that the RF-DE-OSELM algorithm proposed in this study achieved the best illumination estimation results in both the Sigmoid and the RBF activation functions. Taking the activation function Sigmoid as an example, compared with the minimum mean error (0.0524) of the OSELM algorithm and the minimum mean error (0.0519) of the DE-OSELM algorithm, the minimum mean (0.0223) of the proposed algorithm was reduced by about 57.4% and 57.1%, respectively. In addition, the SD of the RF-DE-OSELM algorithm was smaller than that of the OSELM and DE-OSELM for different numbers of hidden nodes. The performance of this algorithm was slightly better than that of the RF-OSELM algorithm. The precision and diversity of the base learner are two factors that affect the integrated performance of RF algorithms. In this study, we mainly optimized the OSELM by DE to improve the prediction accuracy of the base learner. However, since the optimized DE-OSELM was unstable, we used the RF algorithm to integrate the optimized DE-OSELM to improve the accuracy of the illumination prediction by increasing the diversity of the base learner.
Performance comparison of several algorithms on the fabric image set
ELM: extreme learning machine; SVR: support vector regression; 2D: two-dimensional; 3D: three-dimensional; OSELM: online sequential extreme learning machine; DE-OSELM: differential evolution online sequential extreme learning machine; RF-OSELM: rotation forest online sequential extreme learning machine; RF-DE-OSELM: rotation forest differential evolution online sequential extreme learning machine; RF: rotation forest; RBF: radial basis function; RMSE: root mean square error.
As shown in Table 4, the training time (35.3104 s) of the proposed RF-DE-OSELM method was between that of the SVR (2D) (264.84 s), SVR (3D) (318.9284 s), and ELM (0.458 s); however, the prediction error was the smallest, but the best light estimation result was obtained. Compared to the traditional SVR and ELM algorithms, the RF-DE-OSELM method reduced the mean square error of illumination angle by 10.3% and 7.8%, respectively. The RF algorithm trains each base learner with different sub-sample data, so the differences between the base learners greatly increase, contributing to the improvement of the accuracy of integration. The prediction accuracy of the proposed algorithm is still better than that of the original RF algorithm, which is predicted by the regression tree, the learner of which is too complicated, resulting in over-fitting problems. However, the OSELM has better adaptability, so it has a great advantage in solving the problem of over-fitting. Experimental results show that the DE-optimized OSELM used in this study achieved very good results.
Performance of color constancy algorithms on SFU data set containing 321 images
Note: results of max-RGB, Grey–World, SoG, Grey–Edge, BP, SVR (2D), SVR (3D), and ELM algorithms are taken from Xiong and Funt 14 and Li et al. 15
RMSE: root mean square error; SoG: shades of grey; BP: back propagation; SVR: support vector regression; 2D: two-dimensional; 3D: three-dimensional; ELM: extreme learning machine; RF-DE-OSELM: rotation forest differential evolution online sequential extreme learning machine; OSELM: online sequential extreme learning machine.
In the experiment of image illumination correction, the color constant algorithm was used to estimate the illumination value of the scene. Then, based on the estimated illumination value, the original image was corrected to the standard illumination using the Von Kries model. To test the results more intuitively, some examples of textile image illumination correction results are shown in Figure 6 along with examples of unsupervised color constancy algorithms. Figure 6(a) shows corrected textile images based on the max-RGB method. Figure 6(b) shows corrected textile images based on the Grey–World method. Figure 6(c) shows corrected textile images based on the SoG method. Figure 6(d) shows corrected textile images based on the Grey–Edge method. Figure 6(e) shows corrected textile images based on the proposed method. Figure 6(f) shows the results of the SVR method. Figure 6(g) shows some example results of the ELM-based color constancy algorithm. Figure 6(h) shows images that are to be corrected. Figure 6(i) shows some target textile images. The first to fourth lines are the images corrected by the unsupervised illumination correction algorithm. The fifth to seventh lines are the images corrected by the supervised illumination correction algorithm. The image in the eighth column is the image to be corrected collected under a D55 light source, and the image in the ninth column is the standard image collected under the standard D65 light source. As can be seen from the figure, the results of the correction of the image by the supervised illumination correction algorithm were generally better than those of the unsupervised illumination correction. In the supervised illumination correction algorithm, the correction result of the RF-DE-OSELM was very close to that of standard illumination. According to the above analysis and the color correction examples shown in Figure 6, it can be concluded that the proposed illumination correction method is the most robust and accurate method.
Color constancy example results of textile image set: (a) max-RGB; (b) Grey–World; (c) shades of grey; (d) Grey–Edge; (e) our proposed method; (f) support vector regression; (g) extreme learning machine; (h) input image; and (i) target image.
Conclusions
An improved DE-OSELM illumination correction model based on the RF algorithm was proposed because of the low accuracy and poor stability of the traditional OSELM-based illumination correction algorithm. Furthermore, a new, efficient, and low-dimensional color-feature extraction method based on the Grey–Edge framework was adopted to replace the traditional high-dimensional binary chromaticity histogram used to represent the input data of the RF-DE-OSELM to improve the training and learning speed. In our method, the DE algorithm was adopted to optimize the input weights and hidden biases of the single hidden-layer feedforward neural network to increase the prediction accuracy of the OSELM base learner. The RF algorithm greatly increases the difference between the base learners and improves the ensemble accuracy. Therefore, we used the RF algorithm as the ensemble framework and adopted the optimized OSELM as the base learner to replace the regression tree algorithm in the original RF. The average value of outputs of each DE-OSELM in the ensemble system was used as the final illumination chromaticity estimation results. The experimental results show that the proposed model has high prediction accuracy, strong generalization ability, and good robustness compared with traditional unsupervised and supervised algorithms (ELM and SVR algorithms). It effectively solves the problem of textile illumination estimation and achieves the purpose of the preprocessing step in the follow-up color-difference detection system.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work is supported by NSFC-Zhejiang Joint Fund for the Integration of Industrialization and Informatization (No.U1609205), Zhejiang Provincial Natural Science Foundation of China (No. LY18F030018) and Zhejiang Top Priority Discipline of Textile Science and Engineering.
