A gene selection method and device

By combining the Harris Eagle optimization algorithm and the wormhole strategy, the gene selection method solves the computational burden and noise problems caused by irrelevant genes in microarray gene expression data, achieves more accurate and efficient gene screening, and significantly reduces detection costs. .

CN118522358BActive Publication Date: 2024-10-18BIG DATA & INFORMATION TECH RES INST OF WENZHOU UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410980492.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-10-18
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing technology cannot effectively screen out the gene features that contribute the most to the category in microarray gene expression data, resulting in overfitting of detection algorithm modeling, long training time, erroneous detection results, and even delayed patient lives.

Method used

A gene selection method that combines the Harris Hawk Optimization Algorithm (HHO) and the wormhole strategy is used to perform binary encoding through the KNN classifier, calculate the fitness value, update the population, and screen out the optimal solution to reduce the computational burden and noise of irrelevant genes.

Benefits of technology

It significantly reduces the cost of testing, improves the accuracy and efficiency of gene screening, simplifies gene expression testing, and can screen genes for features that contribute the most to the category more accurately and efficiently.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118522358B_ABST
    Figure CN118522358B_ABST
Patent Text Reader

Abstract

The present invention provides a gene selection method and device, including extracting a training sample set and a test sample set from a microarray gene expression data set, and initializing a population and a maximum number of iterations; obtaining a current population, and designing a KNN classifier for classification, and binary encoding all characteristic values ​​of each individual obtained by classification; calculating the fitness value of the current population individual based on the binary encoding value to update the optimal solution used in the wormhole strategy; setting the relevant parameters of the Harris Hawk optimization algorithm to iteratively update the population; updating the iteratively updated population in turn through the wormhole strategy to obtain a new population; based on the new population, screening out the next generation of population; if the current number of iterations reaches the maximum number of iterations, then the cycle is terminated and the optimal solution is output, otherwise it continues to iterate until the iterative calculation ends. The implementation of the present invention can more accurately and efficiently screen out the gene features that contribute most to the category from the gene, reducing the detection cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data mining, and in particular to a gene selection method and device. Background Art

[0002] With the rapid development of biomedical and health-related technologies, a large amount of bioinformatics and clinical medical data has also grown rapidly, especially molecular biology experimental data and genetic data, which have grown at an unprecedented rate. Although humans have studied the generation and development of various diseases at the molecular level and discovered a large number of pathogenic genes, people know very little about their occurrence and regulation mechanisms.

[0003] At present, the analysis of microarray gene expression data and protein expression data can be used to grasp the information of physiological activities at the molecular level. However, there are tens of thousands of genes in microarray data, and some of the gene features are irrelevant to the mining task or there is redundancy between the features. In fact, only a few genes are truly relevant to sample classification. These redundant gene features may cause overfitting of the modeling of the detection algorithm and too long training time, resulting in erroneous test results, and even delays and loss of patient life.

[0004] In recent years, researchers in related fields have used different types of machine learning algorithms and statistical methods to analyze microarray data. For example, artificial neural networks and evolutionary algorithms have been used to analyze gene expression data. However, due to the high dimensionality of gene data and the presence of more noise, more and more intelligent algorithms have become more important in microarray data analysis. Mining the minimum gene subset greatly reduces the computational burden and "noise" caused by irrelevant genes, and can even extract simple detection rules, thereby performing accurate detection without the need for any classifiers. It also simplifies gene expression testing, including only a few genes instead of thousands of genes, which can significantly reduce the cost of detection.

[0005] In the prior art, the gene selection methods based on particle swarm algorithm and bat algorithm have achieved quite good classification results. However, in the process of gene screening, the above algorithms cannot realize the mining of the minimum gene subset, resulting in the existence of redundant gene features.

[0006] Therefore, it is necessary to provide a new gene selection method that can more accurately and efficiently screen out the gene features that contribute most to the category from the genes, thereby reducing the detection cost. Summary of the invention

[0007] The technical problem to be solved by the embodiments of the present invention is to provide a gene selection method and device, which can more accurately and efficiently screen out the gene features that contribute most to the category from the genes, thereby reducing the detection cost.

[0008] In order to solve the above technical problems, an embodiment of the present invention provides a gene selection method, which comprises the following steps:

[0009] S1, obtain a microarray gene expression data set, and extract a training sample set and a test sample set from the microarray gene expression data set, and further initialize the population of the training sample set as = ( , …, ) and the maximum number of iterations; where, i =1,2, ... , N;j =1,2, ... , D;t =0; N is the number of training sample individuals; D is the number of dimensions for each training sample; Indicated in t The population obtained in the iteration; Indicated in t Next iteration i The individual j eigenvalues; t Indicates the current iteration number;

[0010] S2, obtaining the current population, and designing a KNN classifier according to the training sample set to classify the individuals in the current population, and further performing binary coding on all feature values ​​of each individual obtained by classifying the current population;

[0011] S3. Based on the binary code values ​​corresponding to the characteristic values ​​of each individual in the current population, the fitness values ​​of the individuals in the current population are calculated, and the fitness values ​​are sorted from small to large to update the optimal solution used in the wormhole strategy;

[0012] S4, setting the relevant parameters of the Harris Hawk optimization algorithm, and using the Harris Hawk optimization algorithm iteration formula to update the population;

[0013] S5, updating the population obtained by the Harris Hawk optimization algorithm through the wormhole strategy in turn to obtain a new population;

[0014] S6. Based on the obtained new population, individuals meeting predetermined conditions are selected to form the next generation population;

[0015] S7. If the current number of iterations does not reach the maximum number of iterations, the current number of iterations is increased by one and the selected next generation population is updated to the current population, and then the process returns to step S2; otherwise, if the current number of iterations reaches the maximum number of iterations, the loop ends and the optimal solution is output.

[0016] Among them, through formula (1) and formula (2), all characteristic values ​​of each individual obtained by the current population classification are binary coded; among them,

[0017] (1);

[0018] (2);

[0019] in, Expressed as t The first species obtained by the classification of the current population in the iteration i The individual j eigenvalues; is a random number between [0, 1]; Expressed as The binary coded value of ; Sig () represents the sigmoid function.

[0020] Among them, the fitness value of the current population individual is calculated by formula (3) and formula (4); among them,

[0021] (3);

[0022] (4);

[0023] in, Indicates the number of The fitness value of each individual; Expressed as classification accuracy; It is represented as the classification accuracy weight, which is a preset fixed value; It is represented as the feature selection weight, which is a preset fixed value; It refers to the number of binary code values ​​1; It refers to the total number of individuals in the current population; Indicates the number of correct classifications in the KNN classifier; Indicates the number of samples misclassified in the KNN classifier.

[0024] The Harris Hawk optimization algorithm iteration formula is as shown in the following formula (5);

[0025] (5);

[0026] in, , , and All are related parameters of the Harris Eagle optimization algorithm, and their values ​​are all random numbers between [0, 1]; Indicated int Individuals randomly generated in the iteration; is produced in t+1 The binary coded value of the individual at the iteration; Indicated in t In the iteration, individuals obtain the binary coded population; Indicates the location of prey; represents the average position of the entire individual; and are the lower and upper bounds of the domain respectively.

[0027] Among them, through formula (6) to formula (9), the population obtained by the Harris Eagle optimization algorithm is updated in turn through the wormhole strategy to obtain a new population; among them,

[0028] (6);

[0029] (7);

[0030] (8);

[0031] (9);

[0032] in, It is the minimum value of WEP, which is a preset fixed value; is the maximum value of WEP, which is a preset fixed value; Indicates the current evaluation times, which is a preset fixed value; is the maximum number of evaluations, which is a preset fixed value; Representatives in t+1 The corresponding individual's j The location of the dimension; Indicated in t The corresponding individual's j The location of the prey in a dimension.

[0033] The step of selecting individuals that meet predetermined conditions based on the obtained new population to form the next generation population specifically includes:

[0034] The obtained population , calculate the fitness value according to formula (3) and formula (4), and sort them from small to large, and filter the top N Individuals with small fitness are selected as the next generation population .

[0035] An embodiment of the present invention further provides a gene selection device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the aforementioned gene selection method when executing the computer program.

[0036] Implementing the embodiments of the present invention has the following beneficial effects:

[0037] Aiming at the characteristics of microarray gene expression data, the present invention combines the wormhole strategy into the Harris Hawk Optimization algorithm (HHO), which greatly reduces the computational burden and "noise" caused by irrelevant genes, and can even extract simple detection rules. At the same time, it simplifies the gene expression test, so that the gene features that contribute most to the category can be screened out more accurately and efficiently, which can significantly reduce the detection cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.

[0039] Figure 1 A flow chart of a gene selection method provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0041] like Figure 1 As shown in the figure, a gene selection method is provided in an embodiment of the present invention, and the method comprises the following steps:

[0042] Step S1: Obtain a microarray gene expression data set, extract a training sample set and a test sample set from the microarray gene expression data set, and further initialize the population of the training sample set as = ( , …, ) and the maximum number of iterations; where, i =1,2, ... , N;j =1,2, ... , D;t =0; N is the number of training sample individuals; D is the number of dimensions for each training sample; Indicated in t The population obtained in the iteration; Indicated int Next iteration i The individual j eigenvalues; t Indicates the current iteration number;

[0043] The specific process is that, first, DNA microarray technology is used to obtain microarray gene expression data to form a corresponding data set. The analysis of microarray gene expression data and protein expression data can be used to grasp the physiological activity information at the molecular level, and has been widely used in the biomedical field. The number of samples in the microarray data set is relatively small, and the number of genes is tens of thousands. The error estimation is greatly affected by the sample. If the error is not properly estimated, the classification method will be improperly applied.

[0044] Secondly, the microarray gene expression data set was divided into 10 parts, one of which was used as the test sample set and the other nine as the training sample set. The final result was averaged after 10 cycles. When solving the accuracy in the classification process, 10-fold cross validation was used to verify the classification results. The advantage of using 10-fold cross validation is that the training sample set and test set of each round can be fixed and valued, and it can reduce errors.

[0045] Finally, the population of the training sample set is initialized as = ( , …, ) and the maximum number of iterations = 1000, which is the current number of iterations t The value range is [0, 1000].

[0046] Step S2, obtaining the current population, and designing a KNN classifier according to the training sample set to classify the individuals in the current population, and further performing binary coding on all feature values ​​of each individual obtained by classifying the current population;

[0047] The specific process is as follows: first, a K-nearest neighbor (KNN) classifier is designed based on the training sample set, and the current population is classified.

[0048] The KNN classification method determines which category the sample to be tested belongs to based on the distance between the test sample and the training sample. Generally, the sample closest to the test sample is selected. K samples. , the sample to be tested is closest to a neighbor sample, and its category is the same as that of this sample; when , according to the majority rule, the sample to be tested and the most recent K The same category in the samples is determined according to the fitness function defined based on the split accuracy in the KNN classifier.

[0049] At this point, the steps of the KNN algorithm are as follows:

[0050] (1) Obtaining distance. When given test data, calculate the distance between it and each object in the training data. The distance function determines which samples in the training set are the samples to be tested. K neighbors, the distance formula of the present invention uses the Euclidean distance, and the specific calculation method is: ;in, Indicates test vectors; Indicates j training vectors; Indicates The test vector k Dimension values; Indicates j The training vector k Dimension values.

[0051] (2) Find adjacent objects: Find the closest object according to the distance training samples as neighbors of the test samples.

[0052] (3) Determine the category: The main categories to which the neighbors belong, find the category with the largest proportion as the category to which the test sample belongs.

[0053] Secondly, all the characteristic values ​​of each individual obtained by the current population classification are binary coded through formula (1) and formula (2); where,

[0054] (1);

[0055] (2);

[0056] in, Expressed as t The first species obtained by the classification of the current population in the iteration i The individual j eigenvalues; is a random number between [0, 1]; Expressed as The binary coded value of ; Sig () represents the sigmoid function.

[0057] Step S3: Based on the binary code values ​​corresponding to the characteristic values ​​of each individual in the current population, the fitness values ​​of the individuals in the current population are calculated, and the individuals are sorted from small to large according to the fitness values, and the optimal solution used in the wormhole strategy is updated;

[0058] The specific process is that gene selection can be regarded as a multi-objective optimization problem, in which two contradictory goals need to be achieved, namely selecting the minimum number of genes and maximizing the classification accuracy. Therefore, we need to set an objective function to normalize these two goals into one function. The specific fitness function is as follows:

[0059] The fitness value of the current population individual is calculated by formula (3) and formula (4); where:

[0060] (3);

[0061] (4);

[0062] in, Indicates the number of The fitness value of each individual; Expressed as classification accuracy; It is represented as the classification accuracy weight, which is a preset fixed value; It is represented as the feature selection weight, which is a preset fixed value; It refers to the number of binary code values ​​1; It refers to the total number of individuals in the current population; Indicates the number of correct classifications in the KNN classifier; Indicates the number of samples misclassified in the KNN classifier.

[0063] Step S4, setting the relevant parameters of the Harris Hawk optimization algorithm, and using the Harris Hawk optimization algorithm iteration formula to update the population;

[0064] The specific process is to set the relevant parameters of the Harris Eagle optimization algorithm. , , and , and use formula (5) to update the new population:

[0065] (5);

[0066] in, , , and All are related parameters of the Harris Eagle optimization algorithm, and their values ​​are all random numbers between [0, 1]; Indicated in t Individuals randomly generated in the iteration; is produced in t+1 The binary coded value of the individual at the iteration; Indicated in t In the iteration, individuals obtain the binary coded population; Indicates the location of prey; represents the average position of the entire individual; and are the lower and upper bounds of the domain respectively.

[0067] Step S5, updating the population obtained by the Harris Hawk optimization algorithm in turn by the wormhole strategy to obtain a new population;

[0068] The specific process is to update the population obtained by the Harris Hawk optimization algorithm through the wormhole strategy in turn through formula (6) to formula (9) to obtain a new population;

[0069] (6);

[0070] (7);

[0071] (8);

[0072] (9);

[0073] in, is the minimum value of WEP, which is a preset fixed value = 0.2; is the maximum value of WEP, which is a preset fixed value = 1; Indicates the current evaluation times, which is a preset fixed value; is the maximum number of evaluations, which is a preset fixed value; Representatives in t+1 The corresponding individual's j The location of the dimension; Indicated in t The corresponding individual's j The location of the prey in a dimension.

[0074] Step S6: Based on the obtained new population, individuals meeting predetermined conditions are selected to form the next generation population;

[0075] The specific process is to obtain the population , calculate the fitness value according to formula (3) and formula (4), and sort them from small to large, and filter the top N Individuals with small fitness are selected as the next generation population .

[0076] Step S7: If the current number of iterations does not reach the maximum number of iterations, the current number of iterations is increased by one and the selected next generation population is updated to the current population, and then the process returns to step S2; otherwise, if the current number of iterations reaches the maximum number of iterations, the loop ends and the optimal solution is output.

[0077] The specific process is to determine the current number of iterations. t< The maximum number of iterations is 1000, then the current number of iterations t= Current iteration number t+1 And after the selected next generation population is updated to the current population, return to step S2; otherwise, if the current number of iterations t>= The maximum number of iterations is 1000, then the loop ends and the optimal solution is output.

[0078] In an embodiment of the present invention, a gene selection device is also provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a gene selection method in an embodiment of the present invention are implemented.

[0079] Implementing the embodiments of the present invention has the following beneficial effects:

[0080] Aiming at the characteristics of microarray gene expression data, the present invention combines the wormhole strategy into the Harris Hawk Optimization algorithm (HHO), which greatly reduces the computational burden and "noise" caused by irrelevant genes, and can even extract simple detection rules. At the same time, it simplifies the gene expression test, so that the gene features that contribute most to the category can be screened out more accurately and efficiently, which can significantly reduce the detection cost.

[0081] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, CD-ROM, etc.

[0082] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A gene selection method, characterized in that: The method comprises the following steps: S1, obtain a microarray gene expression data set, and extract a training sample set and a test sample set from the microarray gene expression data set, and further initialize the population of the training sample set as = ( , …, ) and the maximum number of iterations; where, i =1,2, ... , N;j =1,2, ... , D; N is the number of individuals in the training sample; D is the number of dimensions for each training sample; Indicated in t The population obtained in the iteration; Indicated in t Next iteration i The individual j eigenvalues; t Indicates the current iteration number; S2, obtaining the current population, and designing a KNN classifier according to the training sample set to classify the individuals in the current population, and further performing binary coding on all feature values ​​of each individual obtained by classifying the current population; S3. Based on the binary code values ​​corresponding to the characteristic values ​​of each individual in the current population, the fitness values ​​of the individuals in the current population are calculated, and the fitness values ​​are sorted from small to large to update the optimal solution used in the wormhole strategy; S4, setting the relevant parameters of the Harris Hawk optimization algorithm, and using the Harris Hawk optimization algorithm iteration formula to update the population; S5, updating the population obtained by the Harris Hawk optimization algorithm through the wormhole strategy in turn to obtain a new population; S6. Based on the obtained new population, individuals meeting predetermined conditions are selected to form the next generation population; S7, if the current number of iterations does not reach the maximum number of iterations, then the current number of iterations is increased by one and the selected next generation population is updated to the current population, and then the process returns to step S2; otherwise, if the current number of iterations reaches the maximum number of iterations, then the loop ends and the optimal solution is output; The Harris Hawk optimization algorithm iteration formula is shown in the following formula (5); where: (5); in, , , and All are related parameters of the Harris Eagle optimization algorithm, and their values ​​are all random numbers between [0, 1]; Indicated in t Individuals randomly generated in the iteration; is produced in t+1 The binary coded value of the individual at the iteration; Indicated in t In the iteration, individuals obtain the binary coded population; Indicates the location of prey; represents the average position of the entire individual; and are the lower and upper bounds of the domain, respectively; Through formula (6) to formula (9), the population obtained by the Harris Hawk optimization algorithm is updated in turn through the wormhole strategy to obtain a new population; where, (6); (7); (8); (9); in, It is the minimum value of WEP, which is a preset fixed value; is the maximum value of WEP, which is a preset fixed value; Indicates the current evaluation times, which is a preset fixed value; is the maximum number of evaluations, which is a preset fixed value; Representatives in t+1 The corresponding individual's j The location of the dimension; Indicated in t The corresponding individual's j The location of the prey in dimensions; The step of screening out individuals meeting predetermined conditions based on the obtained new population to form the next generation population specifically includes: The obtained population , calculate the fitness value according to formula (3) and formula (4), and sort them from small to large, and filter the top N Individuals with small fitness are selected as the next generation population .

2. The gene selection method according to claim 1, characterized in that: Through formula (1) and formula (2), all characteristic values ​​of each individual obtained by the current population classification are binary coded; where, (1); (2); in, Expressed as t The first species obtained by the classification of the current population in the iteration i The individual j eigenvalues; is a random number between [0, 1]; Expressed as The binary coded value of ; Sig () represents the sigmoid function.

3. The gene selection method according to claim 2, characterized in that: The fitness value of the current population individual is calculated by formula (3) and formula (4); where: (3); (4); in, Indicates the number of The fitness value of each individual; Expressed as classification accuracy; It is represented as the classification accuracy weight, which is a preset fixed value; It is represented as the feature selection weight, which is a preset fixed value; It refers to the number of binary code values ​​1; It refers to the total number of individuals in the current population; Indicates the number of correct classifications in the KNN classifier; Indicates the number of samples misclassified in the KNN classifier.

4. A gene selection device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the gene selection method according to any one of claims 1 to 3 when executing the computer program.

Citation Information

Patent Citations

  • Gene selection method and device

    CN112215259A

  • Engineering optimization method based on improved multivariate universe optimization algorithm and related equipment

    CN115271023A