Point element annotation configuration method and system
Through the immune algorithm and progressive ladder learning strategy, combined with the biased uniform crossover and elite retention strategies, the local optimal problem in point feature annotation configuration is solved, and the accuracy and efficiency of annotation configuration are improved, especially in large-scale data Excellent performance under the set.
Patent Information
- Application Number
- CN202410768350.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-08
AI Technical Summary
In the process of point feature annotation configuration, it is easy to fall into local optimality, resulting in poor solution accuracy. The existing metaheuristic algorithm has limited effect when the solution space search is sufficient, and it is difficult to find the ideal annotation location.
The immune algorithm is used for point element annotation configuration. By marking the gene learning values in the positive and negative directions, only the positive genes are assigned mutation weights, combined with the biased uniform crossover and elite retention strategies, and iterative optimization to avoid local Optimal to improve annotation quality.
It effectively avoids invalid genetic interference during the population iteration process, improves the accuracy and efficiency of annotation configuration, especially the global search capability under large-scale data sets, and can find better annotation positions.
Smart Images

Figure CN118747522A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a point element annotation configuration method and system, belonging to the technical field of computer visualization. Background Art
[0002] In visualization, labels are widely used as a kind of visual annotation in maps, scientific illustrations, infographics, and other charts. These labels provide key text descriptions for graphic objects in charts, including but not limited to the name and size of graphic objects. Through these labels, people can understand charts more intuitively and easily and pay attention to important information in them. Usually, labels are placed near or in appropriate positions inside the annotated elements, such as the upper right corner of point elements, the centroid of surface elements, etc. Label configuration can be done manually, and this practice is still widely used when making maps, scientific illustrations, and infographics. However, manual placement of labels is a time-consuming and laborious task, usually accounting for more than 50% of the manual mapping workload. Automatic configuration of labels can effectively shorten the mapping time. Label configuration can be abstracted as a discrete optimization problem, that is, according to mapping conventions and preferences, find the optimal label position for each annotated element within a limited space, while making the labels as strong as possible and without conflict and overlap between annotated elements. Since the 1960s, people have conducted extensive research on the automatic configuration of labels, among which the label configuration of point elements is the most basic problem. In addition, point feature annotation configuration has been proven to be a typical NP-hard problem, and the solution time increases exponentially with the increase of the problem scale. Therefore, it is extremely complex and difficult to determine the ideal annotation location of the feature.
[0003] At present, point feature annotation configuration is mainly solved by metaheuristic algorithms. Metaheuristic algorithms can find the approximate optimal solution to the problem in a limited time through local improvements and interactions between higher-level strategies. Therefore, they have become the mainstream methods for solving point feature annotation configuration, such as simulated annealing, ant colony algorithm, genetic algorithm, etc. Metaheuristic algorithms can be divided into individual-based metaheuristic algorithms and group-based metaheuristic algorithms. Individual-based metaheuristic algorithms include simulated annealing, greedy adaptive randomization, taboo search, etc. In addition, some people try to apply cluster search to simulated annealing to select more promising solutions to improve the quality of annotation configuration. For group-based metaheuristic algorithms, genetic algorithms are the most widely used, and some scholars try to mix multiple metaheuristic algorithms for solution.
[0004] In addition, some scholars use cluster search to divide sub-datasets for solution. Although cluster search can reduce the complexity of algorithm solution and thus improve annotation quality, the improvement effect is limited when the solution space search is relatively sufficient, and there is still the problem of being easily trapped in the local optimal trap. Summary of the invention
[0005] The purpose of the present invention is to provide a point feature annotation configuration method and system to solve the problem of poor solution accuracy caused by being easily trapped in local optimum in the current point feature annotation configuration process.
[0006] The present invention provides a point feature annotation configuration method to solve the above technical problems, and the method comprises the following steps:
[0007] 1) Encode the point feature annotations, use the annotation positions of the point features as the genes of the antibodies, and randomly select candidate positions from the candidate positions of the point features to generate the initial antibody population;
[0008] 2) Perform antibody mutation, crossover and selection immune operations on the initial population to generate a new population, iterate until the termination condition is met, and select the antibody with the lowest affinity as the optimal solution;
[0009] When performing immunization operations on antibodies, genes are marked as positive genes and negative genes according to their learning values, and only positive genes are assigned mutation weights; if the learning value or learning value increment of a gene exceeds the corresponding threshold, it is marked as a negative gene, otherwise it is a positive gene. The learning value of a gene is updated based on the annotation quality corresponding to the new solution generated when the gene position is updated. When it is less than the quality of the optimal solution, the learning value increases, where the annotation quality represents affinity.
[0010] Furthermore, the positive gene is a gene whose learning value is less than or equal to a set threshold; the negative gene is a gene whose learning value is greater than the set threshold.
[0011] Furthermore, the positive gene is a gene whose learning value increment is less than or equal to the set increment; the negative gene is a gene whose learning value increment is greater than the set increment, and the learning value increment refers to the difference between a round of iteration process and the previous Y generations' optimal learning value or the 0th generation learning value.
[0012] Furthermore, a uniform distribution method is used when allocating the mutation selection weights to the forward genes.
[0013] Furthermore, a biased uniform crossover is used during the antibody crossover operation, that is, an elite individual and a non-elite individual are randomly selected as parents, and the crossover process selects the genes of the elite individual with a greater probability.
[0014] Furthermore, the antibody selection operation uses an elite retention strategy. In each iteration process, antibodies that bind well to the antigen, i.e., antibodies with lower excitation, are stored in the memory bank for the next generation, and the dominant antibodies in the antibody group are retained to ensure that they are not lost.
[0015] Furthermore, the incentive degree is composed of affinity and antibody concentration, the affinity is determined by the annotation quality evaluation function, and the antibody concentration is used to indicate the similarity between antibodies.
[0016] Furthermore, the antibody concentration is determined using the Hamming distance calculation formula.
[0017] Furthermore, the point feature annotation adopts an 8-position candidate location model.
[0018] The present invention also provides a point feature annotation configuration system, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the point feature annotation configuration method of the present invention when executing the computer program.
[0019] The beneficial effects of the present invention are as follows: when the present invention uses the immune algorithm to perform point element annotation configuration, it can continuously learn according to the real-time annotation situation in the population iteration operation, divide the gene points into positive genes and negative genes according to the gene learning value, and only allocate mutation weights to the positive genes when performing mutation operations, effectively avoiding the problem of interference from invalid genes in randomly selected points in the population iteration process, preventing the population from falling into local optimality, and effectively improving the configuration accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of the multi-level and multi-directional annotation candidate position model adopted by the present invention;
[0021] Figure 2 It is a flow chart of the point element annotation configuration method of the present invention;
[0022] Figure 3 is a schematic diagram of antibody concentration in an embodiment of the present invention;
[0023] Figure 4 is a schematic diagram of multi-point variation in an embodiment of the present invention;
[0024] Figure 5 It is a schematic diagram of the variation optimization strategy based on progressive step-by-step learning adopted by the present invention;
[0025] Figure 6a It is the average duration diagram of each method for 4000 annotation points in the simulation experiment of the present invention;
[0026] Figure 6b It is the average duration diagram of each method for 10,000 annotation points in the simulation experiment of the present invention;
[0027] Figure 6c It is the average duration diagram of each method for 20,000 annotation points in the simulation experiment of the present invention;
[0028] Figure 6dIt is the average duration diagram of each method combining all data sets in the simulation experiment of the present invention;
[0029] Figure 7a It is a schematic diagram of the improvement of the average annotation quality of 4000 points in the simulation experiment of the present invention;
[0030] Figure 7b It is a schematic diagram of the increase in the average number of annotations of 4000 points in the simulation experiment of the present invention;
[0031] Figure 7c It is a schematic diagram of the improvement of the average annotation quality of 10,000 points in the simulation experiment of the present invention;
[0032] Figure 7d It is a schematic diagram of the increase in the average number of annotations of 10,000 points in the simulation experiment of the present invention;
[0033] Figure 7e It is a schematic diagram of the improvement of the average annotation quality of 20,000 points in the simulation experiment of the present invention;
[0034] Figure 7f It is a schematic diagram of the increase in the average number of annotations of 20,000 points in the simulation experiment of the present invention. DETAILED DESCRIPTION
[0035] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings.
[0036] Embodiment of point feature annotation configuration method
[0037] Point feature annotation configuration is a method of assigning annotations to the vicinity of point features according to specific rules. In order to abstract this problem into a combinatorial optimization problem, it is necessary to consider the candidate locations of annotations and the annotation quality model. The following is a brief description of the candidate locations of annotations and the annotation quality evaluation function.
[0038] The annotation candidate location model is the key to point feature annotation configuration, and directly affects the quality of the final annotation. Annotation candidate models are usually divided into fixed models and sliding models. The sliding model can usually make good use of the annotation blank area, but the sliding strategy will produce a large computational complexity. For the fixed model, the common ones are 4-position and 8-position annotation candidate models. Generally speaking, the more the number of annotation candidate locations, the greater the space utilization of the fixed model. For example, someone has proposed a stacked multi-orientation annotation candidate model. Compared with the traditional 4-position and 8-position models, this model is more in line with map making rules and aesthetics. The number of annotation candidate locations can be determined by adjusting the parameters of radius r and angle θ. Taking into account the annotation quality and time, the present invention adopts an 8-position multi-level multi-orientation candidate location model, such as Figure 1 shown.
[0039] The annotation quality evaluation function also has an important impact on the annotation results. Usually, conflict, priority and relevance are used as the components of the annotation quality evaluation function. The annotation quality evaluation function formula f is as follows. The smaller the evaluation function value, the better the annotation quality.
[0040]
[0041] f(L i )=ω1f conflict (L i )+ω2f priority (L i )+ω3f association (L i )
[0042] Where f(L i ) is the point element p i Notes on L i The quality evaluation function, f conflict (L i ) represents the notation L i The conflict situation, f priority (L i ) is the annotation L i The priority of f association (L i ) represents the symbol L i With point feature p i ω1, ω2, and ω3 represent the weight ratios of conflict, annotation priority, and annotation relevance, respectively, and are usually 0.5, 0.3, and 0.2. The annotation relevance is usually represented by the minimum distance between the annotation and the point element. The absolute mathematical index cannot reflect the visual effect well. For example, if the mathematical difference is 0.01 mm, it is difficult for the human eye to distinguish the visual effect difference, and the ambiguous distance cannot be accurately measured. Therefore, the annotation relevance is not considered in the present invention, and ω3 is set to 0.
[0043]
[0044] where ρ i For the annotation L i The annotation priority, ρ max The maximum value of the annotation priority.
[0045] The present invention encodes the annotations of point elements, uses the annotation positions of point elements as the genes of antibodies, and randomly selects candidate positions from the candidate positions of point elements to generate an initial antibody population; then the initial population is subjected to immune operations of antibody mutation, crossover and selection to generate a new population, and this is iterated until the termination condition is met, from which the antibody with the lowest affinity is selected as the optimal solution; wherein during antibody mutation and crossover operations, the genes are marked as positive genes and negative genes according to their learning values, and only mutation weights are assigned to positive genes; the gene learning value or learning value increment exceeds a certain threshold and is marked as a negative gene, otherwise it is marked as a positive gene, and the gene learning value is updated according to the annotation quality corresponding to the new solution generated when the gene position is updated, and when it is less than the optimal solution quality, the learning value increases. The implementation process of this method is as follows: Figure 2 As shown, the configuration process of the present invention is described in detail below by taking the map point feature annotation configuration as an example.
[0046] 1. Initialize and encode antibodies
[0047] In this embodiment, the number of point elements annotated on the map is n, and real number coding is used to represent antibodies. Let u = {u1, u2, ..., u n} is an antibody corresponding to the real number code, where ui (i = 1, 2, ..., n) is the ith gene of antibody u, that is, the annotation position of the ith point. The size of each gene position is set according to the number of annotation candidate positions m, and the size of each gene position is 0-(m-1). Since the present invention adopts 8-position annotation candidate positions, 0-7 is used for encoding. The smaller the number, the higher the annotation priority of the annotation. Randomly select candidate positions from the eight annotation candidate positions of the point element to generate an initial population, and define N as the size of the population. The marked position can be converted into an antibody population using the above rules. At the same time, the iteration termination condition is given. The iteration termination condition can be a given CPU time, a continuous number of iterations, a solution space search number, etc. In this embodiment, the termination condition is set to reach a specified number of generations, that is, the number of iterations.
[0048] 2. Evaluate the antibodies based on their affinity to establish the objective function.
[0049] In this embodiment, antibodies are evaluated according to their affinity. In the selection operation, an incentive degree is used. The incentive degree is composed of affinity and antibody concentration, and can more reasonably represent the similarity between antibodies.
[0050] Affinity A(X i ) is the degree of recognition of the antibody to the antigen. The present invention uses the annotation mass function f to represent the affinity. Since the present invention takes the minimum affinity as the objective function, the smaller the affinity, the better the recognition degree between the antibody and the antigen. The calculation formula of the affinity is:
[0051]
[0052] The concentration of antibodies is represented by the similarity between them. Usually, the concentration of antibodies is calculated based on the Euclidean distance. However, point feature annotation configuration is a typical discrete problem. The Euclidean distance calculation is not suitable for point feature annotation configuration. According to the characteristics of point feature annotation configuration, such as Figure 3 As shown, the present invention uses the Hamming distance to calculate the similarity based on the annotated position of the antibody genome. The specific calculation formula is as shown in formula (2). The present invention uses the non-similarity between antibodies to represent the antibody concentration. The larger the value, the less similar it is to other antibodies. In the iterative process, antibodies with low similarity tend to be selected, making the population more diverse.
[0053]
[0054] Where D(X i ) is the antibody concentration, N is the population size, n is the number of point elements, H(X i ,X j ) is antibody X i and X j The degree of dissimilarity between genes, X i,k and X j,k Antibody X i and X j The kth dimension of the genome annotation position, x k The k-th dimension is non-similar. In the immune algorithm, the incentive is used to evaluate the quality of the antibody. The antibody concentration is introduced on the basis of affinity (annotation quality evaluation function), and the similarity between the annotation quality evaluation function and the antibody is comprehensively considered. In the subsequent optimization process, the antibody with a better annotation quality evaluation function and a lower degree of similarity with other antibodies tends to be selected, which effectively maintains the diversity of the antibody population. The present invention solves the problem of minimizing the objective function, so the lower its value, the better the quality of the antibody. The specific formula is as follows:
[0055]
[0056] In the formula and β are two excitation coefficients, which are 0.8 and 0.2 respectively. As other implementations, these two coefficients may also be adjusted according to actual conditions. Then, the antibodies are sorted according to the excitation degree.
[0057] 3. Perform immunization operations.
[0058] Immune operations mainly perform antibody mutation, crossover and selection; mutation and crossover operations are mainly to maintain the diversity of the population and prevent premature convergence, and the purpose of selection is to retain better antibodies and reduce the impact of poorer individuals on the process, ultimately achieving the evolution and optimization of the population.
[0059] 1) Mutation operation
[0060] Mutation is a method of generating new antibodies, which involves changing certain positions in the parent individuals to generate new antibodies. Mutation enables the algorithm to have a certain local search capability, while also maintaining the diversity of the population and preventing it from falling into a local optimum. The mutation strategy that can be adopted is proportional multi-point mutation, which strikes a balance between maintaining population diversity and local search. Multi-point mutation randomly selects multiple sites, introduces mutation operations at these sites, and randomly generates an annotated position to replace the annotated position of the original site. Compared with single-point mutation, multi-point mutation can introduce more mutations in one operation, thereby more effectively exploring the solution search space. For example Figure 4 Shown is a schematic diagram of multi-point mutation.
[0061] In the actual annotation process, simply randomly selecting points for mutation update cannot fully utilize the annotation information generated by the iterative process. In order to better utilize the annotation information generated by the iterative process and improve the annotation quality, the present invention introduces a progressive step-by-step learning mechanism to dynamically update the selection weights {c1, c2, c3, ... c n},like Figure 5 As shown in the figure. The selection weight of each point represents the probability of being selected, and is initially set to a uniform distribution, i.e., 1 / n. These weights are adjusted according to the learning during the annotation iteration. In addition, in order to better understand the importance of each point, the concept of learning value is introduced to measure the contribution of each gene to the annotation quality. Initially, the learning value of all genes is {r1, r2, r3, … r n} is set to zero.
[0062] During the annotation process, crossover and mutation will cause some gene positions to be updated. new and the optimal solution f best If the annotation quality of the new solution (the smaller the affinity, the higher the annotation quality) is lower than the optimal solution, the learning value r of the gene is updated accordingly. i will increase, as shown in formula (6), to reflect its ability to improve annotation quality. The larger the value, the smaller the possibility of improvement. As the iteration proceeds, the learning value will be continuously updated, thereby screening out genes that have a smaller improvement on annotation quality, thereby reducing the probability of mutation selecting them.
[0063] r i =ri +1,f new >f best (6)
[0064] In each iteration, according to the size of the learning value obtained after mutation, some genes are marked as positive genes and other genes are marked as negative genes. Specifically, if the learning value is higher than the preset threshold td (td is 1 in this embodiment), it is regarded as a negative gene, otherwise it is regarded as a positive gene. For the points marked as negative genes, their selection weights will be set to zero to reduce the probability of their mutation.
[0065] However, the improvement of annotation quality has a certain timeliness. The learning value updated in the iteration farther away from the current iteration is invalid. The learning value increment Δr of the previous Y iterations should be used. i As the basis for judging whether it is a positive gene, Δr i The calculation formula is shown in formula (7). If the learning value increment is higher than the preset learning threshold s, it is regarded as a negative gene, otherwise it is regarded as a positive gene. However, calculating the learning value increment for each iteration requires constantly recording the learning value of each point for the previous Y iterations, which will bring a large memory overhead. In addition, this method will reduce the randomness of the search and reduce the search space for solutions. Therefore, the present invention proposes a progressive step-by-step mutation learning strategy. Within a round of iterations Y, that is, the initial 0th generation, the learning value is cleared and learning begins. Each subsequent generation of iterations is based on the crossover and mutation from the 0th iteration to the i-th generation. The calculation formula is shown in formula (8), and genes are screened according to the learning value increment. This strategy only needs to record the learning value increment of each gene relative to the initial state (0th generation) until the Yth generation, and the same is true for subsequent generations, such as Figure 5 As shown in the figure. The progressive step-by-step mutation learning strategy has fewer learning generations and fewer screening points in the early stage, which increases the randomness of the algorithm. In the later stage, the number of learning generations increases, which can effectively exclude invalid genes and concentrate more selection opportunities on positive genes, thus improving the efficiency and effect of the algorithm.
[0066] For positive genes, the present invention redistributes the corresponding selection weights evenly to ensure that the sum of the selection weights of all positive genes is 1. This learning-based approach can gradually improve the annotation quality while reducing the interference of negative genes on the annotation process, thereby effectively improving the quality and efficiency of the annotation process.
[0067] Δr i =r i now -r i now-Y (7)
[0068] Δr i =ri now -r i 0 (8)
[0069] Δr i Indicates the learning value increment, is the learning value of the current iteration number in one round of iterations, is the optimal learning value of Y generations before the current iteration in one round of iterations. The number of iterations in one round is Y. is the learning value of the 0th generation within a round of iteration number Y, which is 0.
[0070] 2) Crossover Operation
[0071] In immune algorithms, crossover is an important way to generate new antibodies, which effectively enhances the ability to exchange information between different antibodies. Single-point crossover and multi-point crossover have always been common crossover methods, but their performance is not satisfactory when dealing with point element annotation configuration problems. Therefore, in order to explore the solution space more effectively, the present invention adopts an optimized biased uniform crossover strategy. Uniform crossover refers to the simultaneous selection of each site of two antibodies for crossover operations with a certain probability. Compared with single-point crossover and multi-point crossover, uniform crossover can search the solution space more comprehensively, which helps to produce more advantageous offspring individuals.
[0072] The crossover strategy adopted by the present invention incorporates a biased design, that is, the mode of crossover operation is determined according to the affinity of the elite individuals. Specifically, an elite individual and a non-elite individual are randomly selected as the parent during the uniform crossover process, and the genes of the elite individual are selected with a greater probability during the crossover process. This biased crossover not only improves the crossover efficiency, but also helps to retain the characteristics of excellent individuals, thereby making it more likely to produce excellent offspring individuals.
[0073] 3) Select an operation
[0074] It can be seen from the incentive function that the smaller the incentive of the antibody, the better it binds to the antigen. Usually, the immune algorithm is selected based on roulette. However, when the immune algorithm suppresses high-concentration antibodies, it may suppress antibodies that bind well to the antigen, thereby causing the loss of the optimal solution. In order to solve this problem, the present invention uses an elite retention strategy for selection. In each iteration process, antibodies that bind well to the antigen, that is, antibodies with low incentives, are stored in the memory bank for the next generation, and the dominant antibodies in the antibody group are retained to ensure that they will not be lost. Finally, the new antibodies obtained by crossover and mutation are sorted from small to large according to the incentive. The smaller the incentive, the better the antibody. The new antibodies with smaller incentives are added to the next generation in sequence, and the individuals with larger incentives are discarded.
[0075] 4. Iterate until the termination condition is met.
[0076] The new population is iterated to determine whether it meets the termination condition of the iteration. In this embodiment, the termination condition is set to reach the specified number of generations. If it meets the condition, the algorithm ends. Otherwise, the algorithm continues to search for the best solution and returns to step 3. After the iteration ends, the result corresponding to the population with low affinity is selected as the optimal solution.
[0077] It can be seen that the present invention can continuously learn according to the real-time annotation situation during iteration and finally divide the gene points into positive genes and negative genes, which effectively avoids the problem of random selection of update selection of mutation process points and the interference of invalid genes. In addition, the uniform crossover with bias is used to accelerate the convergence speed of the algorithm, and the elite retention strategy is adopted to prevent the loss of excellent antibodies, thereby further improving the accuracy of the algorithm.
[0078] Embodiment of point feature annotation configuration system
[0079] In another embodiment of the present invention, a point feature annotation configuration system is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the embodiment method of the above-mentioned point feature annotation configuration method is implemented.
[0080] In order to further illustrate the effect of the present invention, a simulation experiment is conducted on the configuration method of the present invention and compared with the existing method.
[0081] This simulation experiment uses crawler technology to randomly obtain 4000, 10000 and 20000 point element data sets from POI data in Kaifeng, Zhengzhou and Beijing, which are D1, D2 and D3 respectively. The size r of the annotation symbol is 5 pixels, the distance from the coordinate point to the annotation is 10 pixels, and the height of the annotation font is 12 pixels. All algorithms in the experiment are implemented in Microsoft Visual Studio with C++ programming. The processor and memory of the computer are Intel (R) Core (TM) i5-85003.0GHz and 8GB respectively. The immune algorithm (IIA) based on progressive ladder learning of the present invention is compared with the ant colony algorithm (ACA), genetic algorithm (GA), particle swarm algorithm, discrete difference genetic algorithm (DDEGA) and traditional immune algorithm (IA). When the search number of the algorithm reaches a certain number of times, the iteration is terminated. The number of iterations of IIA, GA, PSO, DDEGA and IA is set to 4200 generations, and the number of iterations of ACA is 42000 generations. The algorithm parameters used are shown in Table 1:
[0082] Table 1
[0083]
[0084]
[0085] In order to verify the effectiveness of the algorithm proposed in this invention, IIA is compared with ACA, GA, PSO and IA. Experimental comparisons are carried out under the commonly used 8 annotation densities ρ of 5%, 10%, 15%, 20%, 25%, 30%, 35% and 40%. Annotation density refers to the ratio of the sum of the symbol and annotation area in the map to the map sheet area, reflecting the distribution density of elements and annotations. The comparison is mainly from two aspects: the number of annotations and the annotation quality evaluation function. In order to ensure the reliability of the statistical results, each algorithm is independently run 10 times. Table 2-4 is a comparison table of the number of annotations of IIA with ACA, GA, PSO, DDEGA and the original IA under 5%-40% annotation density, and Table 5-7 is a comparison table of the annotation quality evaluation function of IIA with ACA, GA, PSO, DDEGA and the original IA under 5%-40% annotation density. Best represents the optimal value of the 10 running results of each algorithm, and Ave represents the average value of the 10 running results of each algorithm.
[0086] Table 2
[0087]
[0088] Table 3
[0089]
[0090] Table 4
[0091]
[0092] Table 2-4 shows the number of annotations of IA and other algorithms for datasets containing 4000 points, 10000 points and 20000 points at different annotation densities. It is worth noting that compared with ACA, GA, PSO and DDEGA, IA shows the largest average and optimal number of annotations in most cases, indicating that IA has a wide range of application flexibility and can perform well under different types of datasets and annotation densities. Only in some cases of 4000-point datasets, IA is slightly inferior to GA. However, when the point feature scale increases to 10000 and 20000, the advantages of IA begin to emerge, and it is significantly better than other algorithms in various cases. This shows that IA has excellent performance in processing larger-scale data. IA has a strong global search capability, and its unique antibody concentration mechanism makes its population have a higher diversity. Compared with other algorithms, it is more likely to find the global optimal solution and is not easily restricted to the local optimal solution. This makes IA more reliable in solving large-scale complex problems. In addition, the mutation optimization strategy based on progressive step-by-step learning can effectively screen out gene points that contribute more to annotation quality, which can effectively improve annotation quality. At the same time, compared with the original IA, IIA uses biased crossover to effectively improve the algorithm's search ability. In addition, crossover and mutation may cause high-quality antibodies to be destroyed, so an elite retention strategy is introduced. This strategy can prevent the loss of high-quality antibodies, thereby effectively improving the algorithm's search ability.
[0093] Table 5
[0094]
[0095] Table 6
[0096]
[0097] Table 7
[0098]
[0099]
[0100] Table 5-7 shows the annotation quality table of IIA and other algorithms on 4000, 10000 and 20000 point datasets at different annotation densities. The smaller the value of the annotation quality evaluation function, the better the annotation result. In the case of 4000 and 10000 points, the annotation quality evaluation function value of IIA is much smaller than that of ACA, GA and PSO, and better annotation results are achieved. However, in the case of 20000 points, although the annotation quality of IIA is worse than that of ACO, the number of annotations is much higher than that of ACO. For large-scale point feature datasets, it becomes difficult to conduct sufficient search. The pheromone and heuristic information of ACO makes it drop rapidly in the annotation priority score, so the annotation quality of ACO is better than that of IIA. However, if the two continue to iterate, ACO may fall into the local optimum due to the influence of annotation priority, and the annotation quality of IIA may eventually surpass ACO. In addition, in the case of 20000 points and 5% annotation density, the annotation quality result of IIA is worse than that of DDEGA. This is because DDEGA uses a differential formula to calculate the DE part, and when dealing with outliers, it can place them in the position with the best annotation priority, thereby obtaining better results. IIA exhibits excellent global search capabilities when processing large-scale data. Its algorithm structure and optimization mechanism make it more likely to find the global optimal solution in a complex search space and is not easily restricted by local optimality. This enables IIA to search the solution space more comprehensively and accurately, thereby improving the quality of annotation. Secondly, IIA adopts a variation optimization strategy based on progressive step-by-step learning, which can dynamically adjust the selection of gene sites to adapt to different data characteristics and annotation density. This flexibility enables IIA to better cope with data sets of different scales and complexities, which helps to improve the quality of annotation.
[0101] In general, in most cases, the annotation quality of IIA algorithm is worse than other algorithms. Although in some specific cases, the annotation quality of IIA may not be as good as ACO and DDEGA, the number of annotations it provides is significantly more than the latter two. In contrast, ACO and DDEGA focus more on the priority of annotations. Figure 6a , Figure 6b , Figure 6c and Figure 6d The average annotation time of each algorithm under different densities is shown. A careful observation of the results of different data sets shows that the annotation time of IIA is better than ACA in all situations, but worse than DDEGA. Compared with GA and PSO, IIA has a shorter duration in some annotation situations. Considering the comprehensive situation of various data sets and annotation density, IIA, GA and PSO perform similarly in annotation time.
[0102] IIA is compared with its weaker version (IIA-), i.e., IIA without the mutation optimization strategy based on incremental stepwise learning. Figure 7a , Figure 7b , Figure 7c , Figure 7d , Figure 7e and Figure 7f The experimental results of two versions IIA and IIA- compared with the original IA are presented in the figure, where the x-axis represents the annotation density and the y-axis represents the improvement in the average annotation quality or the number of annotations compared with the original IA. It is obvious that under different data sets and annotation densities, IIA performs significantly better than IIA- in terms of both annotation quality and number of annotations, clearly demonstrating the superiority of the mutation optimization strategy based on progressive step-by-step learning. Compared with IIA-, the average annotation quality evaluation function of IIA is reduced by 2.5 to 25, while the average number of annotations is increased by 90 to 885. The reduction in the evaluation function is most significant under the 20,000-point data set, indicating that the strategy has certain robustness and is more effective under large data sets. The performance improvement of IIA compared with IIA- is due to the fact that progressive step-by-step learning can calculate the learning value increment of each gene according to the iterative crossover and mutation, so as to select positive genes and negative genes, and then adjust the selection weight of the mutation gene point. In the case of a small number of initial learning generations, the randomness of the algorithm increases due to the small number of genes screened. As the number of learning generations increases, IIA can dynamically adjust the selection weights of genes in the mutation process, effectively excluding invalid genes, thereby concentrating more selection opportunities on positive genes. This dynamic adjustment mechanism enables IIA to more accurately select favorable genes in subsequent iterations of mutation, further improve annotation quality, and obtain better annotation results.
Claims
1. A point feature annotation configuration method, characterized in that: The method comprises the following steps: 1) Encode the point feature annotations, use the annotation positions of the point features as the genes of the antibodies, and randomly select candidate positions from the candidate positions of the point features to generate the initial antibody population; 2) Perform antibody mutation, crossover and selection immune operations on the initial population to generate a new population, iterate until the termination condition is met, and select the antibody with the lowest affinity as the optimal solution; When performing immunization operations on antibodies, genes are marked as positive genes and negative genes according to their learning values, and only positive genes are assigned mutation weights; if the learning value or learning value increment of a gene exceeds the corresponding threshold, it is marked as a negative gene, otherwise it is a positive gene. The learning value of a gene is updated based on the annotation quality corresponding to the new solution generated when the gene position is updated. When it is less than the quality of the optimal solution, the learning value increases, where the annotation quality represents affinity.
2. The point feature annotation configuration method according to claim 1, characterized in that: The positive gene is a gene whose learning value is less than or equal to the set threshold; the negative gene is a gene whose learning value is greater than the set threshold.
3. The point feature annotation configuration method according to claim 1, characterized in that: The positive gene is a gene whose learning value increment is less than or equal to the set increment; the negative gene is a gene whose learning value increment is greater than the set increment. The learning value increment refers to the difference between the optimal learning value of the previous Y generations or the 0th generation learning value in one round of iteration.
4. The point feature annotation configuration method according to claim 1, characterized in that: When allocating the mutation selection weights for the positive genes, a uniform distribution method is used.
5. The point feature annotation configuration method according to claim 1, characterized in that: During the antibody crossover operation, a biased uniform crossover is used, that is, an elite individual and a non-elite individual are randomly selected as parents, and the crossover process selects the genes of the elite individual with a greater probability.
6. The point feature annotation configuration method according to claim 1, characterized in that: The antibody selection operation uses an elite retention strategy. In each iteration process, antibodies that bind well to the antigen, i.e., antibodies with lower excitation, are stored in the memory bank for the next generation, and the dominant antibodies in the antibody group are retained to ensure that they are not lost.
7. The point feature annotation configuration method according to claim 6, characterized in that: The incentive degree is composed of affinity and antibody concentration. Affinity is determined by an annotation quality evaluation function, and antibody concentration is used to indicate the similarity between antibodies.
8. The point feature annotation configuration method according to claim 7, characterized in that: The antibody concentration is determined using the Hamming distance calculation formula.
9. The point feature annotation configuration method according to any one of claims 1 to 6, characterized in that: Point feature annotation uses an 8-position candidate location model.
10. A point feature annotation configuration system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the point feature annotation configuration method according to any one of claims 1 to 9 is implemented.
