Feature data selection method and system, electronic equipment and storage medium

By improving the gray wolf optimization algorithm, increasing population diversity and introducing chaotic perturbations, combined with the segmented probability selection transfer function and locally developed quadratic interpolation technology, the problem of local optimization and computational volume of gray wolf algorithm in feature selection is solved. , improves classification accuracy and convergence speed, and realizes efficient feature subset selection.

CN119004062APending Publication Date: 2024-11-22JIANGNAN UNIV
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202411456839.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-18
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

When searching for the best feature subset, the traditional gray wolf algorithm is prone to fall into the local optimal, the exploration ability is weak, and the calculation amount is large, resulting in low classification accuracy and time-consuming problems.

Method used

By improving the gray wolf optimization algorithm, increasing population diversity, introducing chaotic perturbation and segmented probability selection transfer functions, combining locally developed quadratic interpolation technology, position update and binary selection are performed to avoid local optimal and key features Information omission.

Benefits of technology

It effectively solves the local optimal problem of the gray wolf algorithm in the exploration stage, improves the classification accuracy and the convergence speed of the algorithm, and can accurately select the optimal feature subset of the data set within a finite time, reducing the data set dimension.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004062A_ABST
    Figure CN119004062A_ABST
Patent Text Reader

Abstract

The invention relates to a feature data selection method and system, electronic equipment and a storage medium, and relates to the technical field of feature data selection.The method comprises the steps that a data set is acquired; a plurality of features are selected from a data set through a grey wolf optimization algorithm to form an optimal feature subset, feature data selection is completed, and the method comprises the steps that the fitness of each grey wolf on the data set is calculated, grey wolf grades are divided according to the fitness, and three first wolves # imgabs0 #, # imgabs1 #, # imgabs2 # and common wolves # imgabs3 # are obtained; according to the positions of the three first wolves # imgabs4 #, # imgabs5 # and # imgabs6 #, the positions of the common wolves # imgabs7 # are updated, binarization selection is carried out on the common wolves # imgabs8 # after the positions are updated, a feature subset corresponding to the common wolves # imgabs9 # is obtained, and the position of the first wolves # imgabs12 # is updated according to the feature subsets corresponding to the common wolves # imgabs10 # and the common wolves # imgabs11 # after the positions are updated; and the grading and position updating process is cycled until the maximum number of iterations is reached, a position vector corresponding to the first wolf # imgabs13 # is returned, binarization selection is carried out on the position vector, and an optimal feature subset is obtained. According to the method, the optimal feature data can be effectively screened out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of feature data selection, and in particular to a feature data selection method, system, electronic device and storage medium. Background Art

[0002] The high dimensionality of large datasets can seriously affect the process of data mining. Therefore, feature selection becomes an essential preprocessing stage to reduce the dimensionality of the dataset by selecting the most critical features while improving classification accuracy. For existing feature data selection methods, how to find the best feature subset within a reasonable time faces great challenges.

[0003] There are many feature selection methods that can help select the best feature subsets, which can be roughly divided into three categories: filtering, wrapping, and embedded. The filtering method evaluates each feature, independently of any learning algorithm, and sorts or filters the features according to a certain evaluation metric. The embedded method performs feature selection while the algorithm is training, embeds its process into the model construction process, and its selection results often depend on the specific model. The wrapping method evaluates the feature subset, uses a specific learning algorithm to train the model, and selects the feature subset based on the model performance to decide which features should be retained or removed. It is closer to the actual application scenario and suitable for classification problems. The wrapping method is more accurate than other feature data selection methods such as filtering methods, but it is also more computationally intensive because it requires repeated training of the model to evaluate the performance of each feature subset. This places high demands on the global search ability and convergence of the algorithm.

[0004] The wrapper method selects the optimal feature subset by training and testing a specific algorithm to evaluate the effectiveness of different feature subsets. Although this method can improve the accuracy of feature selection, the computational cost is very high when there are a large number of features. Specifically, metaheuristic algorithms are very suitable for solving large-scale, high-dimensional, and nonlinear problems due to their randomness and heuristic nature, so they are also used to search for the best feature subset in feature selection. However, most metaheuristic algorithms still have the problems of large computational complexity and long time consumption for high-dimensional optimization problems; some metaheuristic algorithms, such as the traditional gray wolf algorithm, can quickly converge to the optimal solution, but have the disadvantages of insufficient population diversity, easy to fall into local optimality, and weak exploration ability.

[0005] In summary, traditional methods (such as the Gray Wolf Algorithm) are prone to fall into local optimality when searching for the best feature subset and have weak exploration capabilities; feature data selection methods have low classification accuracy due to the influence of noise redundancy; and high data dimensions lead to large computational complexity and long time consumption. Summary of the invention

[0006] To this end, the technical problem to be solved by the present invention is to overcome the problems in the prior art, such as the Grey Wolf Algorithm, which is prone to fall into local optimality when searching for the best feature subset, has weak exploration ability, low classification accuracy, and large amount of calculation.

[0007] In order to solve the above technical problems, the present invention provides a feature data selection method, comprising:

[0008] Step S1: Obtain a data set;

[0009] Step S2: Selecting a number of features from the data set to form an optimal feature subset by using the Grey Wolf Optimization Algorithm to complete feature data selection, the method comprising:

[0010] Step S21: Calculate the fitness of each gray wolf in the data set, and classify the gray wolves according to the fitness to obtain three alpha wolves. , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ;

[0011] Step S22: According to the three alpha wolves , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain ordinary wolves The corresponding feature subset is based on the common wolf after the position update and common wolf The corresponding feature subset is used to update the alpha wolf location;

[0012] Step S23: loop through the process of step S21-step S22 until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is selected and binarized. According to the result of the binarization selection, all the selected features are extracted to obtain the optimal feature subset.

[0013] In one embodiment of the present invention, in step S22, according to the three wolf leaders , , The position of the common wolf To update the location, the formula is:

[0014] ;

[0015] ;

[0016] ;

[0017] in, The alpha wolf , and The distance between the prey and , , The alpha wolf , and The position vector of is the historical optimal position vector of individuals in the gray wolf population, Represents the current iteration number, It is Iteration Normal Wolf The position vector of the individual, , , The alpha wolf , , Common wolf after the influence of individual historical optimal position The position that needs to be adjusted, A common wolf The updated position vector of the individual; About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf , and Vector of coefficients for the convergence rate.

[0018] In one embodiment of the present invention, the alpha wolf The random coefficient vector About the Alpha Wolf The random coefficient vector About the Alpha Wolf The random coefficient vector All meet the following requirements:

[0019] ;

[0020] in, represent Any one of is the first random number in [0,1];

[0021] About the Alpha Wolf , and Coefficient vector of convergence rate satisfy:

[0022] ;

[0023] in, represent Any one of is the convergence factor, is the second random number in [0,1].

[0024] In one embodiment of the present invention, the convergence factor The chaotic perturbation formula is:

[0025] ;

[0026] ;

[0027] in, It is The convergence factor of the iteration, It is The value of the chaotic perturbation at the iteration, It is The value of the chaotic perturbation at the iteration, is the maximum number of iterations, is a preset threshold.

[0028] In one embodiment of the present invention, the common wolf after the position update in step S22 Perform binary selection to obtain ordinary wolves The corresponding feature subset methods include:

[0029] When the number of iterations Less than or equal to the preset threshold When, among them,

[0030] exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0031] exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0032] When the number of iterations Greater than a preset threshold When, among them,

[0033] exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0034] exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0035] in, The updated position of the gray wolf corresponds to the gray wolf and represents the position vector of the gray wolf. Features, is the position vector of the gray wolf after binary selection. Features, is the third random in [0,1].

[0036] In one embodiment of the present invention, in step S22, the common wolf after the position update and common wolf Update the leader with the corresponding feature subset The location methods include:

[0037] Fitting Wolf and two randomly selected common gray wolves The updated position is used to generate candidate solutions, and the formula is:

[0038] ;

[0039] in, is a candidate solution and represents the new gray wolf position vector obtained by fitting. The value of the dimension, and is the updated position vector of two randomly selected gray wolves Features, It's a wolf The position vector Features, Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. It's the wolf. After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated;

[0040] According to the candidate solutions Achieve Alpha Wolf location updates.

[0041] In one embodiment of the present invention, the candidate solution obtained according to Achieve Alpha Wolf The location update methods include:

[0042] Calculate candidate solutions Fitness ,like , then use the candidate solution Replace the wolf of , to update the position of the leader wolf; if , and satisfies , then keep the candidate solution Otherwise, the candidate solution is not retained. ,in, is the fourth random number in [0,1].

[0043] In order to solve the above technical problems, the present invention provides a feature data selection system for implementing the above feature data selection method, comprising:

[0044] Acquisition module: used to obtain data sets;

[0045] Data selection module: selects several features from the data set to form an optimal feature subset through the gray wolf optimization algorithm to complete feature data selection, including;

[0046] Division unit: used to calculate the fitness of each gray wolf in the data set, and divide the gray wolves into three levels according to the fitness. , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ;

[0047] Update unit: According to the three wolf leaders , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain ordinary wolves The corresponding feature subset is based on the common wolf after the position update and common wolf The corresponding feature subset is used to update the alpha wolf location;

[0048] Data selection unit: used to loop the process of dividing units and updating units until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is binarized and selected to obtain the feature data in the optimal feature subset.

[0049] To solve the above technical problems, the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above feature data selection method when executing the computer program.

[0050] In order to solve the above technical problem, the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the feature data selection method as described above are implemented.

[0051] The above technical solution of the present invention has the following advantages compared with the prior art:

[0052] The present invention is effective for common wolf The method of performing location updates helps increase population diversity and explore a wider location area;

[0053] The characteristic data selection method of the present invention performs chaotic perturbation on the convergence factor of the gray wolf optimization algorithm, which can effectively solve the problem of falling into local optimality caused by insufficient exploration of the gray wolf optimization algorithm in the exploration stage;

[0054] The feature data selection method of the present invention improves the transfer function of the gray wolf optimization algorithm and proposes a new segmented probability selection transfer function for binary selection, which can avoid the omission of key feature information while adding more information functions and improve classification accuracy.

[0055] The feature data selection method of the present invention improves the local convergence ability of the algorithm by integrating the local developed secondary interpolation technology through population diversity, and accelerates the convergence speed while maintaining population diversity;

[0056] The method of the present invention can accurately implement feature selection within a limited time, select the optimal feature subset in the data set, and then reduce the dimension of the data set. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to make the contents of the present invention more clearly understood, the present invention is further described in detail below based on specific embodiments of the present invention in conjunction with the accompanying drawings.

[0058] Figure 1 is a flow chart of the overall method in an embodiment of the present invention;

[0059] Figure 2 is a flow chart of a method for implementing feature data selection by using an improved grey wolf optimization algorithm in an embodiment of the present invention;

[0060] Figure 3 is a comparison chart of the average classification accuracy of the present invention and other different methods on all data sets;

[0061] Figure 4 It is a comparison chart of the average fitness of the present invention and other different methods on all data sets. DETAILED DESCRIPTION

[0062] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0063] Embodiment 1

[0064] Reference Figure 1 and Figure 2 As shown, the present invention relates to a feature data selection method, comprising:

[0065] Step S1: Obtain a data set;

[0066] Step S2: Selecting a number of features from the data set to form an optimal feature subset by using the gray wolf optimization algorithm (each feature subset selection scheme can be regarded as a gray wolf in the gray wolf optimization algorithm) to complete feature data selection, the method includes:

[0067] Step S21: Calculate the fitness of each gray wolf in the data set, and classify the gray wolves according to the fitness to obtain three alpha wolves. , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ;

[0068] Step S22: According to the three alpha wolves , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain ordinary wolves The corresponding feature subset is based on the common wolf after the position update and common wolf The corresponding feature subset is used to update the alpha wolf location;

[0069] Step S23: loop through the process of step S21-step S22 until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is selected and binarized. According to the result of the binarization selection, all the selected features are extracted to obtain the optimal feature subset.

[0070] It should be noted that, in this embodiment, the improvement of the Grey Wolf Optimization Algorithm can be achieved through the process of step S21 to step S23.

[0071] The following is a detailed introduction to this embodiment:

[0072] The common wolf The method of performing location updating can help increase population diversity and explore a wider location area. Specifically, in step S22 of this embodiment, according to the three alpha wolves , , The position of the common wolf To update the location, the formula is:

[0073] (1);

[0074] (2);

[0075] (3);

[0076] in, The alpha wolf , and The distance between the prey and , , The alpha wolf , and The position vector of is the historical optimal position vector of individuals in the gray wolf population, Represents the current iteration number, It is Iteration Normal Wolf The position vector of the individual, , , The alpha wolf , , Common wolf after the influence of individual historical optimal position The position that needs to be adjusted, It is Iteration Normal Wolf The position vector of the individual, i.e. the average wolf The updated position vector of the individual; About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf , and Vector of coefficients for the convergence rate.

[0077] Furthermore, in this embodiment, regarding the head wolf The random coefficient vector About the Alpha Wolf The random coefficient vector About the Alpha Wolf The random coefficient vector All satisfy the following formula:

[0078] (4);

[0079] in, represent Any one of is the first random number in [0,1].

[0080] Further, about the alpha wolf , and Coefficient vector of convergence rate Satisfies the following formula:

[0081] (5);

[0082] in, represent Any one of is the convergence factor, is the second random number in [0,1].

[0083] Furthermore, in order to solve the problem of falling into local optimum caused by insufficient exploration of the gray wolf optimization algorithm, this embodiment performs chaotic perturbation on the convergence factor in the exploration stage. The formula for chaotic perturbation is:

[0084] (6);

[0085] (7);

[0086] in, It is The convergence factor of the iteration, It is The value of the chaotic perturbation at the iteration, It is The value of the chaotic perturbation at the iteration, is the maximum number of iterations, is a preset threshold.

[0087] Furthermore, since the problem of feature selection comes from selecting or not selecting (i.e., 0 or 1) the most beneficial features to maximize the classification accuracy, the transfer function plays a key role in the feature data selection of the gray wolf optimization algorithm, which is used to map the continuous values ​​in the feature space to the binary space, thereby realizing the discretization of the features. In order to improve the efficiency of the algorithm, this embodiment designs a new type of segmented probability selection transfer function. Specifically, in step S22 of this embodiment, the position of the common wolf after the update is selected. Perform binary selection to obtain the common wolf The corresponding feature subset (i.e., whether to select certain feature data in the data set to form a feature subset) method includes:

[0088] Case 1: When the number of iterations Less than or equal to the preset threshold When, among them,

[0089] (1) In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0090] (2) In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features.

[0091] Case 2: When the number of iterations Greater than a preset threshold When, among them,

[0092] (1) In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0093] (2) In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features

[0094] in, The updated position of the gray wolf (corresponding to the above formula (3)) corresponds to the gray wolf’s position vector Features, is the position vector of the gray wolf after binary selection. Features, is the third random number in [0,1].

[0095] It should be noted that the data set of this embodiment is a high-dimensional data set, and the dimensionality of the data set can be reduced by binarizing and selecting key features while removing useless features.

[0096] Furthermore, when faced with a high-dimensional data set consisting of a large number of feature variables, the large scale of the search space and the dependence on the alpha wolf make the algorithm prone to inefficient iteration in local areas, resulting in the algorithm convergence accuracy being too low and falling into a local optimum. Therefore, this embodiment proposes a secondary interpolation technology that integrates group diversity and local development. By fitting the alpha wolf and two randomly selected ordinary wolves The position of the wolf is used to generate candidate solutions and realize the wolf leader The position of the common wolf is updated to help improve the convergence accuracy of the algorithm; at the same time, the inferior individuals are retained probabilistically to maintain the diversity of the search space and avoid falling into the local optimal solution. and common wolf The corresponding feature subset is used to update the alpha wolf Location, methods include:

[0097] Fitting Wolf and two randomly selected common gray wolves The updated position is used to generate candidate solutions to achieve the alpha wolf The position update formula is:

[0098] (8);

[0099] in, is a candidate solution and represents the new gray wolf position vector obtained by fitting. The value of the dimension, and is the updated position vector of two randomly selected gray wolves features (corresponding to the above formula (3)), It's a wolf The position vector Features, Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. It's the wolf. After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated.

[0100] According to the candidate solutions Achieve Alpha Wolf location updates.

[0101] Specifically, the candidate solution obtained according to Achieve Alpha Wolf The location update methods include:

[0102] Calculate candidate solutions Fitness ,like , then use the candidate solution Replace the wolf of , to update the position of the leader wolf; if , then the candidate solution is retained probabilistically :Specifically, in In case, if , then keep the candidate solution Otherwise, the candidate solution is not retained. ,in, is the fourth random number in [0,1].

[0103] In step S23 of this embodiment, the process of steps S21 to S22 is repeated until the maximum number of iterations (i.e. ) and return to the leader The corresponding position vector is selected using the new piecewise probability transfer function. Binarization selection is performed to obtain the optimal feature subset. It should be noted that due to the alpha wolf has the highest rank and therefore corresponds to the optimal feature subset.

[0104] The experimental comparison of this embodiment is as follows:

[0105] In this embodiment, the performance of the feature data selection method of this embodiment is first tested on 32 different data sets. The data sets are from the UCI machine learning repository. Each data set has a different number of samples, number of features and categories, and comes from a different field.

[0106] The feature data selection method proposed in this invention is compared with 10 other advanced feature selection methods, which are: binary bat optimization algorithm (BA), binary crow search algorithm (BCSA), binary gray wolf optimization algorithm (bGWO), binary whale optimization algorithm (bWOA), discrete particle swarm optimization algorithm (DPSO), flower pollination algorithm (FA), multiverse optimization algorithm (MVO), particle swarm optimization algorithm (PSO), time inertia weighted particle swarm optimization algorithm (NLPSO), two-stage mutation gray wolf optimization algorithm (TMGWO). All methods are independently run 20 times on each data set using random seeds, the maximum number of iterations is 30, and the number of search agents (i.e., gray wolves) is 5.

[0107] according to Figure 3 and Figure 4It can be seen that the feature selection method of the present invention has a higher classification accuracy and a lower average fitness (the lower the average fitness, the better the effect). Specifically, the feature data selection method of this embodiment is better than the original Grey Wolf Optimization Algorithm GWO on 31 of the 32 data sets, and in comparison with the other 10 advanced algorithms, the feature data selection method of this embodiment still obtains the lowest fitness and the highest classification accuracy on 29 data sets. This shows that the feature data selection method of this embodiment not only has a good feature selection effect, but also has excellent stability.

[0108] Embodiment 2

[0109] This embodiment provides a feature data selection system, which is used to implement the feature data selection method described in Embodiment 1, including:

[0110] Acquisition module: used to obtain data sets;

[0111] Data selection module: selects several features from the data set to form an optimal feature subset through the gray wolf optimization algorithm to complete feature data selection, including;

[0112] Division unit: used to calculate the fitness of each gray wolf in the data set, and divide the gray wolves into three levels according to the fitness. , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ;

[0113] Update unit: According to the three wolf leaders , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain the common wolf The corresponding feature subset is based on the common wolf after the position update and common wolf Update the leader with the corresponding feature subset location;

[0114] Data selection unit: used to loop the process of dividing units and updating units until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is binarized and selected to obtain the feature data in the optimal feature subset.

[0115] Embodiment 3

[0116] This embodiment provides an electronic device, 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 steps of the feature data selection method described in the first embodiment are implemented.

[0117] Embodiment 4

[0118] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the feature data selection method described in the first embodiment are implemented.

[0119] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes. The schemes in the embodiments of the present application may be implemented in various computer languages, for example, object-oriented programming language Java and literal scripting language JavaScript, etc.

[0120] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0121] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0122] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0123] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0124] Obviously, the above embodiments are merely examples for clear explanation and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. The obvious changes or modifications derived from these are still within the protection scope of the invention.

Claims

1. A feature data selection method, characterized in that: include: Step S1: Obtain a data set; Step S2: Selecting several features from the data set to form the optimal features through the gray wolf optimization algorithm Subset, Complete feature data selection, methods include: Step S21: Calculate the fitness of each gray wolf in the data set, and classify the gray wolves according to the fitness to obtain three alpha wolves. , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ; Step S22: According to the three alpha wolves , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain ordinary wolves The corresponding feature subset is based on the common wolf after the position update and common wolf The corresponding feature subset is used to update the alpha wolf location; In step S22, according to the three wolf leaders , , The position of the common wolf To update the location, the formula is: ; ; ; in, The alpha wolf , and The distance between the prey and , , The alpha wolf , and The position vector of is the historical optimal position vector of individuals in the gray wolf population, Represents the current iteration number, It is Iteration Normal Wolf The position vector of the individual, , , The alpha wolf , , Common wolf after the influence of individual historical optimal position The position that needs to be adjusted, A common wolf The updated position vector of the individual; About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf , and Coefficient vector of convergence rate; Step S23: loop through the process of step S21-step S22 until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is selected and binarized. According to the result of the binarization selection, all the selected features are extracted to obtain the optimal feature subset.

2. The feature data selection method according to claim 1, characterized in that: About the Alpha Wolf The random coefficient vector About the Alpha Wolf The random coefficient vector About the Alpha Wolf The random coefficient vector All meet the following requirements: ; in, represent Any one of is the first random number in [0,1]; About the Alpha Wolf , and Coefficient vector of convergence rate satisfy: ; in, represent Any one of is the convergence factor, is the second random number in [0,1].

3. The feature data selection method according to claim 1, characterized in that: The convergence factor The chaotic perturbation formula is: ; ; in, It is The convergence factor of the iteration, It is The value of the chaotic perturbation at the iteration, It is The value of the chaotic perturbation at the iteration, is the maximum number of iterations, is a preset threshold.

4. The feature data selection method according to claim 1, characterized in that: In step S22, the common wolf after the position is updated Perform binary selection to obtain ordinary wolves The corresponding feature subset methods include: When the number of iterations Less than or equal to the preset threshold When, among them, exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features When the number of iterations Greater than a preset threshold When, among them, exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features exist In this case, if it satisfies ,but , which means selecting the first characteristics; if not met ,but , indicating that the first Features in, The updated position of the gray wolf corresponds to the gray wolf and represents the position vector of the gray wolf. Features, is the position vector of the gray wolf after binary selection. Features, is the third random number in [0,1].

5. The feature data selection method according to claim 4, characterized in that: In step S22, the common wolf and common wolf Update the leader with the corresponding feature subset The location methods include: Fitting Wolf and two randomly selected common gray wolves The updated position is used to generate candidate solutions, and the formula is: ; in, is a candidate solution and represents the new gray wolf position vector obtained by fitting. The value of the dimension, and is the updated position vector of two randomly selected gray wolves Features, It's a wolf The position vector Features, Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. Yes After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated. It's the wolf. After binary selection, the corresponding feature subset is obtained and the fitness of its feature subset is calculated; According to the candidate solutions Achieve Alpha Wolf location updates.

6. The feature data selection method according to claim 5, characterized in that: The candidate solution obtained according to Achieve Alpha Wolf The location update methods include: Calculate candidate solutions Fitness ,like , then use the candidate solution Replace the wolf of , to update the position of the leader wolf; if , and satisfies , then keep the candidate solution Otherwise, the candidate solution is not retained. ,in, is the fourth random number in [0,1].

7. A feature data selection system, used to implement the feature data selection method according to any one of claims 1 to 6, characterized in that: include: Acquisition module: used to obtain data sets; Data selection module: selects several features from the data set to form an optimal feature subset through the gray wolf optimization algorithm to complete feature data selection, including; Division unit: used to calculate the fitness of each gray wolf in the data set, and divide the gray wolf levels according to the fitness to obtain three alpha wolves , , and common wolf Among them, the alpha wolf is higher than the ordinary wolf. The level is higher than the alpha wolf , Alpha Wolf The level is higher than the alpha wolf ; Update unit: According to the three wolf leaders , , The position of the common wolf Update the position of the common wolf after the position update Perform binary selection to obtain the common wolf The corresponding feature subset is based on the common wolf after the position update and common wolf The corresponding feature subset is used to update the alpha wolf location; The updating unit is based on the three wolf leaders , , The position of the common wolf To update the location, the formula is: ; ; ; in, The alpha wolf , and The distance between the prey and , , The alpha wolf , and The position vector of is the historical optimal position vector of individuals in the gray wolf population, Represents the current iteration number, It is Iteration Normal Wolf The position vector of the individual, , , The alpha wolf , , Common wolf after the influence of individual historical optimal position The position that needs to be adjusted, A common wolf The updated position vector of the individual; About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf The random coefficient vector of About the alpha wolf , and Coefficient vector of convergence rate; Data selection unit: used to loop the process of dividing units and updating units until the maximum number of iterations is reached, and then return to the leader The corresponding position vector is binarized and selected to obtain the feature data in the optimal feature subset.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the feature data selection method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the feature data selection method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Fixed asset full-life-cycle intelligent dynamic management system based on data management

    CN120494988A

  • A data-governed, intelligent, dynamic management system for the entire lifecycle of fixed assets.

    CN120494988B

  • An improved grey wolf optimization-based near-infrared spectroscopy antioxidant activity detection method

    CN122903854A