Abstract

This paper proposes an artificial immune network based on cloud model (AINet-CM) for complex function optimization problems. Three key immune operators—cloning, mutation, and suppression—are redesigned with the help of the cloud model. To be specific, an increasing half cloud-based cloning operator is used to adjust the dynamic clone multipliers of antibodies, an asymmetrical cloud-based mutation operator is used to control the adaptive evolution of antibodies, and a normal similarity cloud-based suppressor is used to keep the diversity of the antibody population. To quicken the searching convergence, a dynamic searching step length strategy is adopted. For comparative study, a series of numerical simulations are arranged between AINet-CM and the other three artificial immune systems, that is, opt-aiNet, IA-AIS, and AAIS-2S. Furthermore, two industrial applications—finite impulse response (FIR) filter design and proportional-integral-differential (PID) controller tuning—are investigated and the results demonstrate the potential searching capability and practical value of the proposed AINet-CM algorithm.

1. Introduction

Biological immune system (BIS), as one of the most complex body systems, plays a significant important role in protecting our bodies from the invasion of a large variety of external bacteria, viruses, and other pathogenic organisms. Inspired by BIS, artificial immune system (AIS) has been developed as an efficient optimization method, which has great computational potentials in solving scientific computing and engineering application problems [1, 2].

The variations of AIS mainly consist of four branches of theories/models: clone selection theory [3], negative selection theory [4], danger theory [5], and artificial immune network [6]. Specifically speaking, artificial immune network is widely used in a great number of applications, such as data analysis [7], function optimization [8], signal and image processing [9], process control [10], and Internet of Things [11]. De Castro and Timmis developed an earlier version of artificial immune network. Then, it was modified and called opt-aiNet [8], which is able to maintain stable local optima solutions in solving multimodal function optimization. Inspired by omni-optimization and immune evolution, omni-aiNet [12] was proposed with dynamical population size and low redundancy. By absorbing the elitist-learning strategy of particle swarm optimization (PSO), aiNet-EL [13] is able to discriminate the elitist antibodies and the other common antibodies during the mutation operation. By redesigning three major operators, the affinity-based cloning, the affinity-based mutation, and the concentration-based suppressor, IA-AIS [14] has more adaptability to field problems. Guided by elitist antibodies, AAIS-2S [15] divides the antibodies into two subpopulations: an elitist swarm with self-learning and a common swarm with elitist-learning. These achievements suggest that artificial immune network is becoming an active and hot research field.

Cloud model [16] is a conversion model with certainty between a qualitative concept and a quantitative number expression. Up to date, cloud model has been applied in many fields [17, 18] due to its randomness and stability. For example, in intelligent computation, several cloud model-based algorithms—the cloud-based adaptive genetic algorithm (CAGA) [19], asymmetrical cloud model-based genetic algorithm (ACGA) [20], and particle swarm optimization with normal cloud model (CPSO) [21]—have been developed. It is clearly shown that the combination of the cloud model and evolutionary algorithms is of interest to researchers and engineers.

The article [22] proposes an artificial immune network based on the cloud model (AINet-CM), where the cloud models are used to evaluate the candidate antibodies. Different cloud models are embedded into three major immune operators—clone, mutation, and suppression—to enhance the algorithmic convergence. As an extensive study of [22], this paper will systematically investigate the cloud-based operators of AINet-CM and examine the convergence and accuracy of AINet-CM by evaluating unimodal or multimodal functions whose dimension is 2D, 10D, and 30D. In addition, two kinds of typical applied experiments—band-pass FIR filter designing and industrial PID controller optimization—are arranged to demonstrate the effectiveness and high-performance of AINet-CM.

The remainder of this paper is organized as follows. Section 2 reviews the principles of three artificial immune network family members and a cloud model. Section 3 describes the technical details of the proposed AINet-CM algorithm. Section 4 makes some comparisons in solution accuracy and convergence speed between the proposed AINet-CM algorithm and the other three artificial immune networks by a series of numerical simulations. Section 5 describes and explains the experimental results obtained by four immune algorithms from FIR band-pass filter designing and PID controller parameter tuning. Finally, the conclusions are made in Section 6.

2. Reviews of Artificial Immune Network and Cloud Model

2.1. The Opt-aiNet Optimization

In opt-aiNet [8], all the antibodies experience five phases: clone, mutation, selection, suppression, and recruitment. At each generation, each individual parent antibody is cloned for a fixed number and all the cloned offspring but the parent one must go through mutation operator. In this case, the mutated antibody with the highest fitness is selected to enter the next generation. If the average affinity among the current population is not significantly different from that among the previous population, the suppression process will be activated. If the Euclidean distance between any two antibodies is less than a threshold value , the antibody with lower affinity will be suppressed or abandoned. And then, a certain percentage of randomly generated antibodies are recruited. The iterative process is repeated until the stopping criterion is met. Many researches demonstrated that the opt-aiNet is good at exploration but weak in exploitation for accurate solutions.

2.2. The IA-AIS Optimization

To improve the adaptability of parameters in opt-aiNet, an improved adaptive AIS (IA-AIS) algorithm [14] is proposed. In IA-AIS, the cloning operator depends on the affinity measure. In other words, the number of cloned antibodies is nonlinearly determined by the normalized affinity. And a controlled Gaussian mutation operator is able to make the mutation level decrease sharply as the affinity increases. Moreover, a concentration-based suppressor can adjust dynamically the suppression threshold, because this threshold is proportional to the similarity of antibodies. However, IA-AIS pays little attention to the improvement in solution accuracy during the iterative process.

2.3. The AAIS-2S Optimization

In PSO, it is well known that the particle always learns from the best particle. Inspired by this elitist-learning strategy of PSO, AAIS-2S [15] separates the population into two subgroups: an elitist swarm (ES) and a common swarm (CS), where ES is able to go through self-learning mutation while CS is required to learn from the best antibody in ES. Meanwhile, a swarm updating mechanism is added to make those better antibodies in CS upgrade into ES. In addition, the searching step length is adjusted dynamically according to the Euclidean distance measure between antibodies. As a result, AAIS-2S can obtain the global optima quickly but has a potential risk in getting trapped into the local optimum.

2.4. The Cloud Model

The cloud model is a transforming model between qualitative concepts and their quantitative expressions. Assume that is defined as a quantitative universe expressed by numerical value and is defined as a qualitative concept in . When the quantitative value means a specific random realization of , the certainty degree of related to qualitative concept can be expressed as . Then, is a random number with the stable tendency:

The distribution of in the universe is called cloud in term, and each is called a cloud drop [16]. A simple normal cloud is illustrated in Figure 1. Known from the definition above and Figure 1, it is obvious that the mapping from to interval is equivalent to the one-point to multipoint transition with certainty by integrating fuzzy degree and randomness.

For a specific cloud, its characteristics can be measured by three parameters, that is, expectation (), entropy (), and hyperentropy (), where denotes the expectation value of the distribution of the cloud drops in the universe and is the typical swatch among the cloud. is a measure of the coverage of the qualitative concept within the universe, which determines the range of the cloud. is the entropy of , which is decided by both randomness and fuzzification. Therefore, a cloud model can be built by these three parameters (). Figure 1 illustrates a normal cloud with the numerical characteristics value ().

3. The Proposed Artificial Immune Network Based on Cloud Model (AINet-CM)

With the help of the cloud model, it is possible that artificial immune network escapes from getting trapped into the local optimum by using the diversity and the stability of cloud model measure. Thus, it is advantageous for the candidate antibodies to evolve approximately to the global optimum. The technical details of the proposed artificial immune network based on cloud model (AINet-CM) optimization are described as follows.

3.1. Cloning Operator

Suppose that antibodies with real number coding have been randomly generated in the initialization phase. Then, the antibody in the population at the generation can be defined as . Generally speaking, in this cloning phase, the greater the parent antibody’s affinity is, the more the cloning offspring antibodies are. It is clear that the cloned multiplier is positively related to the parent antibody’s affinity.

To make sure that the antibodies with higher affinity should have larger clone multiplier, an increasing half cloud shown in Figure 2 is introduced. The characteristics of this cloud can be obtained bywhere and represent the maximum and minimum normalized affinity in the interval at the generation, respectively, and and are controlling parameters. While generating the increasing half cloud, should be equal to the maximum affinity value, which guarantees that the clone multiplier is larger for the antibodies with higher affinity. In addition, —which is controlled by parameter —decides the range of the increasing half cloud. If is too small, the cloud will look narrow and most clone multipliers will be limited to the lower boundary. On the contrary, if is too large, the cloud will be wide and most clone multipliers will be close to the upper boundary. Based on the “” rule [16], is chosen in this paper. —another characteristic controlled by the parameter —decides the dispersion of the cloud. To be specific, too great will lose the stable tendency of cloud model to some extent, while too small will partly lose the randomness. According to the paper [20], the best range for equals . So, we choose to evaluate in this paper.

PROCEDURE  IHC_based_cloning_operator()
Update cloud parameters as
;
;
;
FOR    :  
;
;
;
Determine    by Eq.  (3);
END FOR
END PROCEDURE

After the increasing half cloud is formed, the certainty degree of individual antibody can be obtained. Then, in the proposed AINet-CM algorithm, an increasing half cloud-based cloning operator (IHC-based cloning operator) is used to determine the clone multiplier for each antibody individual. In (3), and are the upper and the lower bounds of the clone multiplier, respectively, and represents the certainty degree of the antibody at the generation. For the sake of clarity, Pseudocode 1 shows pseudocode of IHC-based cloning operator and Figure 2 illustrates an increasing half cloud for and .

3.2. Mutation Operator

To direct the mutation process, an asymmetrical cloud-based mutation operator (AC-based mutation operator) is well designed, which uses an asymmetrical cloud shown in Figure 3. The asymmetrical cloud consists of the left half and right half clouds, and their numerical characteristics can be marked as () and (), respectively. The expectation of the asymmetrical cloud denotes the mutation bit of the antibody at the generation. The entropy represents the range of the searching step length for the antibody at the generation, and its left half and right half parts are marked as and , respectively. Their expressions are given aswhere and represent the lower bound and upper bounds of mutation scale, respectively. According to the “” rule, (4) guarantees that the mutated antibody always lies within its range of domain. In addition, is the controlled coefficient of searching step length, which can be obtained bywhere is a controlled parameter in , represents the affinity of , denotes the minimum coefficient of the searching step length, and is the initialized value in . From (5), the searching step length will decrease if has no improvement in affinity after mutation. However, both and have to be greater than or equal to .

PROCEDURE  AC_based_mutation_operator()
Update cloud parameters as
;
Decide    and    by Eq. (4)
;
;
;
Generate  ;
IF    THEN
;
ELSE
;
END IF
END PROCEDURE

Moreover, and —the left half part and right half part of hyperentropy—are determined by where and are the controlling parameters. To keep the stability and the randomness, and should not be too large or too small. According to the paper [20], the best range for and is , so is adopted in this paper.

According to the generated asymmetrical cloud, a mutation certainty degree is used to decide the mutated result of antibody. In the AC-based mutation operator, the searching step length adjustment mechanism can improve the solution accuracy, which is determined by the numerical characteristics of the asymmetrical cloud. The pseudocode of the AC-based mutation operator is shown in Pseudocode 2 and its corresponding asymmetrical cloud is depicted in Figure 3. After the mutation process, the antibody with the highest affinity is selected to enter the next generation.

3.3. Suppression Operator

Once the average affinity at the current generation is not significantly different from the previous one, a normal similarity cloud-based suppression operator (NSC-based suppression operator) will be activated. In the suppression phase, a normal similarity cloud shown in Figure 4 and Pseudocode 3 is determined by the Euclidean distance between the and antibodies. According to the backward cloud generator [16], the numerical characteristics of the normal similarity cloud can be expressed as

PROCEDURE  NSC_based_suppression_operator()
Update cloud parameters as
;
;
;
;
Generate  ;
Generate threshold    according to
;
END PROCEDURE

In this normal similarity cloud, is the sample average which lies in the center of the cloud, is derived from and denotes the range of the , and represents the dispersion of . According to the generated normal similarity cloud, a suppression certainty degree is used to determine the threshold . The pseudocode of NSC-based suppression operator is shown in Pseudocode 3 and its corresponding normal similarity cloud in suppression operator is illustrated in Figure 4.

For any couple of antibodies whose Euclidean distance is less than a threshold , the worse one in affinity will be suppressed or removed. After the suppression process, the number of the antibodies will decrease significantly. Thus, a number of randomly generated antibodies are recruited to keep the scale and the diversity of antibodies. Repeat the above iterative process until the termination condition is satisfied.

3.4. The Algorithmic Flowchart

The flowchart of the proposed AINet-CM algorithm is shown in Figure 5. Observed from Figure 5, the technical procedure of AINet-CM includes the following:(1)Initializing the antibody population and parameter setting.(2)Executing the increasing half cloud-based cloning operator.(3)Executing the asymmetrical cloud-based mutation operator.(4)Selecting the candidate antibodies with the highest affinity.(5)Executing the normal similarity cloud-based suppression operator.(6)While the stop criterion is met, the procedure is finished; otherwise turn to Step (2).

4. Numerical Simulations and Results

In this section, a series of numerical simulations are executed to examine the performance of the proposed AINet-CM algorithm. Comparisons are made among the proposed AINet-CM algorithms, opt-aiNet, IA-AIS, and AAIS-2S in solution accuracy and the convergence speed.

4.1. Benchmark Functions

For the sake of numerical evaluations, five benchmark functions are selected from CEC2005 [23] and listed as follows.(1) Shifted Sphere Function: unimodal(2) Shifted Schwefel’s Problem 1.2: unimodal(3) Shifted Rosenbrock’s Function: multimodal(4) Shifted Rastrigin’s Function: multimodal(5) Schwefel’s Problem 2.13: multimodal

4.2. Parameter Settings

In the numerical simulations, the initialized population size of the four algorithms is set to 100, the maximum generation is 1000 for 2D or 5000 for 10D and 30D, and all the simulations are repeated for 50 trials. For the sake of clarity, all the parameters of four algorithms are listed in Table 1.

4.3. Simulation Results and Analyses
4.3.1. Performance Analyses in Solution Accuracy

The simulation results optimized by four algorithms in 2D, 10D, and 30D are presented in Tables 24, respectively. The resulting error indices derived from 50 replications consist of the best, the worst, the average, and the standard deviation (std) of the error. The best results among these algorithms are marked in bold.

For 2D optimization, as shown in Table 2, the proposed AINet-CM algorithm can capture the global optimum of each benchmark function except for in every trial. For instance, in optimizing functions , , , and , AINet-CM is always capable of finding their desired optima for every replication. As a result, the four statistical error indices are all equal to be 0. On the other hand, the other three algorithms except AAIS-2S almost do not reach the desired optima of these functions. The only exception is that AAIS-2S can get the desired optimum of . For another instance, in optimizing function , AINet-CM obtains the worst error , which is greater than by IA-AIS, but the average and std of the error obtained by AINet-CM are much smaller.

For 10D optimization, as shown in Table 3, the proposed AINet-CM algorithm almost performs the best in all four statistical indices among four algorithms, whatever the optimized function is. For example, in optimizing functions , , , and , AINet-CM is always able to reach less index value in error than the other three algorithms. Specifically speaking, in optimizing and , AINet-CM actually reaches their desired optima, that is, the best of error 0. For another example, in optimization function , AINet-CM gets and IA-AIS does in terms of the worst error. Seen from Table 3, it is clear that AINet-CM loses to IA-AIS only in the worst error, but AINet-CM defeats IA-AIS in the other error indices.

For 30D optimization, as shown in Table 4, AINet-CM outperforms other algorithms except for . To be specific, in optimizing , , , and , AINet-CM obtains the smallest index value in the best, worst, average, and std of error among four compared algorithms. Specially in optimizing , AINet-CM gets relatively high-accuracy solution because it has the best error of , the worst error of , the average error of , and the std of error of . As an exception, in optimizing , AINet-CM performs worse in the worst error, the average error, and the std error than opt-aiNet, but the best error captured by AINet-CM is better than that by other algorithms.

Seen from these results, it is obvious that the searching step length adjustment mechanism increases the solution accuracy of AIS. The improvements in the average error and the std of error prove that this mechanism is able to efficiently and dynamically adjust the searching range in order to guarantee the antibodies’ evolution in affinity even when the error is rather small. However, according to the worst error in optimizing 10D function and the results in 30D function , it is similar to other algorithms that AINet-CM still has small potential risk in getting trapped into some local optima.

4.3.2. Performance Analyses in Convergence Speed

Figures 68 present the average convergence processes for the five benchmark functions. It is clear that the proposed AINet-CM algorithm has much faster convergence speed than the other three algorithms in optimizing 2D, 10D, and 30D benchmark functions in most situations.

For 2D optimization, as shown in Figures 6(a)6(e), the proposed AINet-CM algorithm can obtain the optima easily within only 100 generations in optimizing functions , , , and . For function , although the AINet-CM algorithm cannot get the optima within 1000 generations, it still has much faster convergence speed than the other algorithms. For 10D optimization, as shown in Figures 7(a)7(e), it is obvious that the proposed AINet-CM algorithm outperforms the other three algorithms in optimizing functions , , , and . Especially for function , AINet-CM is a little slower convergence speed than IA-AIS and AAIS-2S in the earlier phase. However, after 2200 generations, AINet-CM still keeps faster speed than the other three algorithms. This is because that a tradeoff is made between the solution accuracy and the convergence speed. For 30D optimization, as shown in Figures 8(a)8(e), the proposed AINet-CM algorithm has better convergence speed in optimizing functions , , , and . Especially for function , seen from Figure 8(e), AINet-CM can get the best optima, although AINet-CM has a slower average convergence speed than opt-aiNet.

Observed from the convergence curves in Figures 68, the convergence speed of AINet-CM is improved significantly due to usage of cloud model measure. The results indicate that the diversity and stability of cloud model increase the probability of antibodies to evolve towards the global optimum and further decrease the risk in falling into the local optima.

5. Applications in FIR Filter Design and PID Parameter Tuning

5.1. Application in Designing FIR Filter

Finite impulse response (FIR) filter is known as a nonrecursive filter that the response due to an impulse input will decay within finite time [24]. Due to the lack of feedback and the symmetrical characteristics about the center tap position, FIR filter can be guaranteed to have strict linear phase at all frequencies. In addition, FIR filter has many desirable characteristics such as stability, robustness, and digital implementation. Therefore, FIR filter has broad applications in communications, image processing, pattern recognition, and so forth.

The transform of an -point FIR filter is characterized bywhere is the impulse response and is finite, that is, . So the frequency response of the FIR filter can be calculated aswhere and is the Fourier transform complex vector and the frequency is sampled in with points. Hence, the optimal filter design method is employed to minimize a particular error. The least squared error can be obtained bywhere represents the magnitude response of the ideal filter and represents the filter to be designed. To design a FIR filter is focused on determining the set of to minimize the least squared error.

In this application, an ideal band-pass FIR filter is to be designed in which the frequency response is expected asMoreover, is set to be 100. The proposed AINet-CM algorithm is compared with opt-aiNet, IA-AIS, and AAIS-2S in searching the least square error, and the maximum of generation is 1000.

The simulation results reached by four algorithms with and are presented in Tables 5-6, respectively. The results include the best, worst, average, and standard deviation (std) of the error, and the best results are typed in bold. Seen from Tables 5-6, the results obtained by AINet-CM are smaller than the other three algorithms. To be specific, with , AINet-CM harvests the best error of 3.436117, the worst error of 3.438717, the average error of 3.436537, and the std of error of . With , AINet-CM reaches the best error of 1.122552, the worst error of 1.122616, the average error of 1.122571, and the std of error of . In particular, whatever equals 10 or 30, the std of error obtained by AINet-CM is always the smallest, which means the most consistent solution among replications. It is clear that AINet-CM is capable of capturing better solutions than opt-aiNet, IA-AIS, and AAIS-2S.

Figure 9 illustrates the frequency responses by using the best solutions in Tables 5-6. Seen from Figure 9(a) when equals 10, the amplitude responses produced by four algorithms are similar in the pass band, while the frequency responses produced by opt-aiNet and AINet-CM outperform the other algorithms in the stop band because there exist smaller amplitudes in the figure. Observed from Figure 9(b) when equals 30, all the algorithms except IA-AIS produce similar frequency responses to the ideal one in the pass band. However, AINet-CM produces much smaller amplitude response (in red) than the other three algorithms in the stop band. Hence, it would be concluded that the band-pass filter designed by AINet-CM is superior to the other three algorithms.

5.2. Application in Tuning PID Controller Parameters

The proportional-integral-derivative (PID) controllers are the most popular controllers in the process industries [25]. Although PID controllers are characteristic of effectiveness, strong robustness, and simple implementation, they are poorly tuned. Therefore, parameter tuning is crucial to PID controller design. The closed-loop diagram of the PID control system is illustrated in Figure 10.

In Figure 10, , , , and are the reference input, the error input, the controller output, and the system output (also the feedback variable), respectively, is the transfer function of PID controller and is the controlled object transfer function, and , , and are the proportional, integral, and derivative parameters of the PID controller, respectively. So the transfer function is expressed as

In this application, the object transfer function is modeled as

Activated by a step pulse stimulus, the parameters , , and of PID controller are required to be tuned to meet the desired performance criteria of the entire control system. In this paper, two indices, the integral of absolute magnitude of the error (IAE) and the integral of time-weight absolute error (ITAE), are selected as the performance criteria. They are mathematically expressed bywhere is the negative feedback control system error. In addition, the size of initialized population is 80 and the maximum number of generation is 100 in the simulations.

Tables 7-8 present the simulation results optimized by the four algorithms. Seen from these tables, the IAE value and the ITAE value optimized by AINet-CM are and , respectively, which are smaller than those by the other three algorithms. It means that AINet-CM obtains better PID parameters than the other algorithms.

For the sake of clear observations, Figure 11 shows the step response curves corresponding to four algorithms, which are marked in different colors such as pink (opt-aiNet), green (IA-AIS), blue (AAIS-2S) and red (AINet-CM). Compared to the other three algorithms, seen from Figure 11, the proposed AINet-CM algorithm has smaller overshoot or less settle time in both IAE and ITAE measures. Specifically speaking, PID controller obtains a better ideal step response curve which is tuned by AINet-CM when ITAE is used. To be specific, in Figure 11(a), AINet-CM harvests the least settle time of 5.5 seconds even if its overshoot and rise time are not the smallest. In Figure 11(b), the proposed AINet-CM algorithm obtains the overshoot of 10% and the settle time of 6 seconds while the other algorithms get larger overshoot and settle time. These results indicate that the proposed AINet-CM algorithm is more capable of finding the optimal parameters in PID controller tuning.

6. Conclusion

In this paper, an artificial immune network based on cloud model (AINet-CM) is proposed for complex optimization problems. By introducing the cloud model, the proposed AINet-CM algorithm is formed by redesigning three immune operators, that is, the increasing half cloud-based cloning operator, the asymmetrical cloud-based mutation operator, and the normal similarity cloud-based suppression operator. A series of numerical simulations are executed, and the resulting data indicate that the proposed AINet-CM algorithm has much less error in solution accuracy and much faster convergence speed in most situations by comparison with opt-aiNet, IA-AIS, and AAIS-2S in optimizing 2D, 10D, and 30D functions. Further, the simulation results in FIR filter design show that the proposed AINet-CM algorithm provides an efficient and superior approach for digital filter design. The simulation results in tuning PID parameters prove that PID controller optimized by AINet-CM is superior to those by opt-aiNet, IA-AIS, and AAIS-2S.

Conflicts of Interest

The authors declare that there are no conflicts of interest regarding the publication of this paper.

Acknowledgments

This work is partially supported by the National Science Foundation of China (no. 61471122) and the Science and Technology Program of Huizhou (nos. 2013B020015006 and 2014B020004025). Also, it is funded by the Priority Academic Program Development (PAPD) of Jiangsu Higher Education Institutions, Jiangsu Collaborative Innovation Center on Atmospheric Environment and Equipment Technology (CICAEET).