An Improved Immune Algorithm for Solving Path Optimization Problem in Deep Immune Learning of Gene Network

In order to overcome some defects of the traditional immune algorithm, the immune algorithm was improved for solving a path optimization problem in deep immune learning of a gene network. Firstly, the diversity of the solution population was enhanced in the evolution process by improving the memory cell processing method. Moreover, effective gene information was dynamically extracted from the genes of the excellent antibodies to make good vaccines in the process of immune evolution. Worse antibodies were optimized by vaccinating these antibodies, and the convergence of the immune algorithm to the optimal solution was improved. Finally, the feasibility of the improved immune algorithm was verified in the experimental simulation for solving the classic NP problem in deep immune learning of the gene network.


Introduction
The biological immune system is a complex distributed information-processing/ learning system with good inherent advantages such as diversity, adaptability, immune tolerance, and immune memory. Inspired by the biological immune system, intelligent optimization algorithms simulate the complex information processing mechanisms of immune system, such as identification, learning, memory and etc. The robustness of the immune algorithm is better in solving the distributed complex problems, with better intelligence and better convergence to the global optimal solution in the solution-searching procedure [1]. Immune al-gorithms have been used in many fields such as machine learning, intelligent control, intrusion detection, and function optimization.
In the deep immune learning of gene network, there is a similar NP problem like the traveling salesman problem (TSP). Many intelligent algorithms such as genetic algorithm [2], particle swarm algorithm [2], neural network, immune algorithm, ant colony algorithm were used to solve the traveling salesman problem [3]. Wang Lei et al. designed an immune genetic algorithm for solving TSP problems by adding immune operators such as immune vaccine and immune selection into the genetic algorithm [4]. A method for extracting vaccines from best antibodies among the father antibodies was studied [4] [5]. The shortest path between the city and its nearest neighbor was utilized as a vaccine [6] [7]. In order to improve the immature convergence of the genetic algorithm, the improved vaccination strategy was designed to improve the global search efficiency [7]. The dynamic vaccine extraction strategy was adopted to improve the immune algorithm for solving the TSP problem [8].
In the traditional immune algorithm, the objective function for solving the problem was regarded as the antigen of foreign invasion, and the antibody generated in the immune response was regarded as the solution of the problem [9] [10] [11] [12]. Therefore, the evolution & maturation mechanism of different affinity antibodies is the process of searching the optimal solution of the objective function with the following steps, as shown in Figure 1.
Step 1: Antigen production: A description of the objective function and constraints of the optimization problem.
Step 2: Initial antibody production: The initial antibody population was generated randomly.
Step 3: Fitness calculation of the antibodies: calculate the affinity or fitness of each solution in the solution group, and provide a basis for the generation of memory cells in the future.  Step 4: Memory cell production: sort according to the degree of affinity, select individuals with higher affinity to form a new group, and take the first few antibodies to form a memory.
Step 5: Judgment of termination conditions: Determine whether the termination condition is met (find the optimal solution or the maximum number of iterations is reached), then the algorithm ends; otherwise, continue.
Step 6: Immune Gene Manipulation: Evolutionary updates of antibodies using crossover and mutation operators.
Step 7: Immune selection operation: The antibody after the presence of the gene is preferentially selected, and the antibody with high affinity is retained.
Step 8: Antibody group updating: A new antibody is randomly generated to form a new antibody group with a high affinity antibody in the original antibody group, and the process returns to step 3.

Improvement of Memory Cells
In the past, one or several antibodies with the highest affinities were used as memory cells by a traditional immune algorithm. This method often retained a relatively similar antibody population, which made many important immune information lost and might decrease the diversity of memory cells. However, the diversity might determine the future evolutionary direction of the antibody population and was used to avoid the precocity of the local optimum. Therefore, it is necessary to improve the immune algorithm to save enough immune information and ensure the diversity of memory cell information. Thus, the traditional immune algorithm was improved to keep certain distances among memorized antibodies and select the antibodies with high affinities (not only the highest ones) as the memory cells.
The theory of information entropy or the Euclid distance between two antibody coding strings were commonly used as the antibody similarity judgment methods. However, these methods only judged the genes with the same gene positions in an antibody, and couldn't represent the relative positional relationship of the gene arrangement. Therefore, the traditional methods were not good at judging the similarity among the antibody-solutions of the path optimization problem. In the improved immune algorithm, in consideration of the relative position, it was judged whether or not the antibodies were similar according to whether or not the length of the same gene fragment between the antibodies exceeded the threshold.

Vaccine Improvement with Vaccine Dynamic Extraction and Vaccination Strategy
With the real number coding, the dynamic vaccine extraction and vaccination strategy were proposed, in order to form a vaccine library by dynamically extracting excellent gene fragments as vaccines in a memory cell bank of excellent antibodies. Then, in the process of immune gene manipulation, the vaccine was vaccinated with a certain probability and combined with the cross mutation procedure to update the antibodies with poor affinities. In a better way, this improved strategy retained the excellent genes and expanded the search space of the algorithm to increase the search ability of the algorithm, while maintaining the diversity of the algorithm and avoiding the possibility that the algorithm falls into any local optimum.
Vaccines were utilized to activate the production of useful antibodies, which were useful in eliminating viruses and defending against invasions into the body in time. The extraction of the vaccine in the traditional immune algorithm was based on the basic feature extraction from the prior knowledge of the target problem and the valid information extraction from the genes of the best individuals in the process of population evolution. The acquisition of the vaccine ensured that the antibody retained excellent characteristics during the mutation process, so the proportion of the antibody genes were effectively optimized and the antibodies evolved rapidly.
In the improved immune algorithm, m antibodies (m < N, N represents the number of memory antibodies in the memory antibody group) were randomly selected from the memory antibody group M(t), and the common gene fragment of m antibodies was recorded as one vaccine in the vaccine library V(t), which retained the excellent gene fragment of the memory antibody. With the evolution of the population, dynamic updating of the vaccine library for vaccine extraction better preserved the excellent antibody gene and accelerated the convergence speed of the immune algorithm.
In the traditional immune algorithm, the vaccination operation was before the cross-variation operation, and the partial antibodies were randomly vaccinated. However, when the vaccine immunization operation was insufficient, the loss of diversity was accelerated and the premature convergence of the traditional immune algorithm occurred. Moreover, the traditional crossover operator randomly selected the intersection position, and this operation might destroy the structures of other excellent genes, after a large number of crossover operations. This operation might generate a large number of infeasible offspring individuals, which resulted in the premature convergence or redundant iteration of the traditional immune algorithm. In the improved immune algorithm, unsuitable antibodies were vaccinated by the probability-based crossover operation to optimize the antibody population. This improved crossover operation better retained the excellent genes and accelerated the optimal-solution searching of the immune algorithm. By combining the mutation operation, the diversity of the improved immune algorithm was guaranteed, and the prematurity of the local optimum was prevented in the searching procedure of the improved immune algorithm.
In the traditional immune algorithm, the vaccination operation was performed by random injection, which was not conducive to the optimization of antibodies, because the location of random injections might easily destroy the sequences of the original antibodies. Since each vaccine itself already contained the location information, the location information was injected by the improved immune algorithm at the time of vaccination, so that the positions of the injected vaccines were more reasonable and useful.

Improved Immune Algorithm for Solving Path
Optimization Problem in Deep Immune Learning of Gene Network

Problem Representation
Like the traveling salesman problem, the shortest path optimization problem in the deep immune learning of gene network was represented in Figure 2. Given n relative nodes in the gene network graph, the shortest path was found to generate new pathway for reactivating the immune response against such non-self as tumors, as described mathematically below.

Algorithm Design and Implementation
In order to evaluate the merits of individuals, the affinity was calculated below. threshold, which was defined as 80% of the length of the antibody, the antibodies A and B were regarded as similar, and the antibody B wasn't recorded as a memory cell. Otherwise, the antibody B was saved as a memory cell. Furthermore, the antibody C with the third highest affinity in the antibody group was compared with the remaining memory antibodies to determine whether there was a same gene fragment exceeding the threshold. If there was not any same gene fragment exceeding the threshold, the memory antibody group was added.
By analogy, a memory antibody population M(t) of N memory antibodies was generated.
In the improved immune algorithm, the two parts of the antibody population were processed by two steps of immunological manipulation.
1) The partial neighborhood search strategy was used for the high affinity anterior NP/4 antibodies in the optimization.
If a large number of random cross-mutation operations were performed on antibodies with high affinity, the orders of the excellent genes in these antibodies would be destroyed, which lead to the premature convergence or redundant iteration of the algorithm and then failed in finding the optimal solution. The local neighborhood search strategy was useful for better preserving the good genes, which was helpful to further accelerate the convergence of the improved immune algorithm and shorten the running time of searching the optimal solution. This operation was designed to generate a new local domain progeny individual by adopting a right neighbor gene exchange method for each gene in the antibody. For example, the antibody S = (1, 6, 5, 4, 2, 3) exchanged gene 1 with its right domain gene to generate a new individual S' = (6,1,5,4,2,3).Therefore, the local neighborhood searching operation generated some local neighborhood progeny individuals, and selected the neighbor individuals with the greatest fitness to compare with the matrix. Afterwards, the higher affinity was used to update the matrix.
2) The proposed dynamic vaccine strategy was employed for 3NP/4 antibodies with worse affinity in the antibody population.
In the cloned antibody, the vaccine was optimized by the probability of Pv to optimize the antibody. And the search space was expanded by a random multiple-point two-point crossover operation to ensure the diversity of the population and to find better antibodies. The vaccination was performed according to the position of the first gene of the vaccine in the original antibody, and the part of the original antibody that conflicted with the vaccine was deleted. The specific operation flow chart is shown in Figure 3.
The immune selection operation was designed according to the natural selection mechanism, by retaining excellent antibodies and optimizing the population. In the improved immune algorithm, two parts of the immune gene operations were compared with each other.

Experimental Results and Analysis
In order to test the effectiveness of the proposed algorithm, 31 nodes were used in the experiments of the algorithm verification. The improved immune algorithm (IIA) was compared with the general immune algorithm (GIA) and the shortest path vaccine based immune algorithm (SPV-IA). In the Matlab-based simulations, the population size was set with n = 200 in the three algorithms, and the number of iterations was set with gen = 1000. After each algorithm was run for 10 times, the results were compared in Table 1. The most satisfactory path diagrams of the three algorithms after running 10 times are shown in Figures 4-6.
In Table 1, the most satisfactory value of the improved immune algorithm was 15,398.3952, which was obviously superior to those of both the algorithms GIA and SPV-IA. The average value of the optimal solutions of the improved immune algorithm was the smallest, so the improved immune algorithm performed more smoothly than the others. Moreover, the improved immune algorithm had less population dispersion and better convergence to the optimal solution for solving the classic NP problem in deep immune learning of the gene network.

Conclusion
To overcome the shortcomings of traditional immune algorithms for solving the classic NP problem in deep immune learning of the gene network, the treatment of memory cells and the strategies for dynamic vaccine extraction & vaccination were improved in the new immune algorithm. The improved immune algorithm achieved good results in solving the classical NP problem in deep immune learning of gene networks, in comparison with the other algorithms GIA and SPV-IA.