An analysis and processing method for imbalanced medical data sets
Through double sampling and specific algorithm processing, the problem of class imbalance in unbalanced medical data sets is solved, a high-quality balanced data set is generated, the prediction accuracy of the model is improved, and the insufficient prediction ability of rare classes in the existing technology is solved. Real-time monitoring problems.
Patent Information
- Application Number
- CN202410818192.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-24
AI Technical Summary
When existing technology handles unbalanced medical data sets, especially diabetes complications data sets, there is a problem of category imbalance, which causes the machine learning model to focus too much on frequently occurring categories during the training process, resulting in insufficient prediction capabilities for rare categories. , and it is difficult to achieve real-time continuous monitoring and capture the early signals of complications.
The unbalanced medical data set is balanced using the double sampling method. The learning bias of the majority class is reduced through under-sampling and the number of samples in the minority class is increased by over-sampling. A balanced data set is generated by combining fuzzy trigonometric functions and the ELM-ABC method. , improve the quality and accuracy of the data set.
Through the double sampling method and specific algorithm processing, the quantitative difference between the majority class and the minority class is reduced, the quality and accuracy of the medical data set are improved, noise sample points and false positives are reduced, and the classification prediction accuracy of the model is improved.
Smart Images

Figure CN118398233B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data analysis and processing, and specifically relates to an analysis and processing method for unbalanced medical data sets. Background Art
[0002] With the development of the big data wave, society is increasingly relying on data-driven decision-making to improve efficiency and market competitiveness. The medical and health industry has also joined this big data wave, using big data analysis systems to deeply mine and interpret the massive clinical databases accumulated, so as to tailor more accurate and efficient treatment plans for each patient; it can also introduce electronic medical record systems to make patient medical records fully informatized, so as to connect individual medical records with the most suitable medical team through intelligent matching mechanisms, so that patients can receive timely and targeted diagnosis and treatment services; it can also use the cloud computing capabilities of big data technology to achieve cloud-based intelligent management and optimal allocation of medical resources to improve the utilization rate of medical resources; in addition, it can identify the specific needs of different patients through in-depth mining of individual differentiation characteristics to improve personalized medical services.
[0003] At present, the application of big data technology has provided unprecedented possibilities for the prediction of diabetic complications, but there are certain hidden dangers. For example, there is an imbalance in the categories of medical data sets, which is expressed in practice as follows: in the diabetic complication data set, the actual incidence of a certain type of complication (such as diabetic nephropathy) may be much lower than other complications (such as retinopathy or neuropathy). This imbalance will cause the machine learning model to focus too much on frequently occurring categories during the training process, while the learning effect on rare categories (i.e. complications with low incidence) is poor, which can easily lead to insufficient prediction ability or misjudgment of such complications. Secondly, although some models can predict disease risks, how to achieve real-time continuous monitoring and accurately capture the early signals of complications is still a major problem. Diabetic patients may also have other diseases at the same time, and the model needs to be able to comprehensively consider the correlation and interaction between diabetes and its complications. Summary of the invention
[0004] The present invention provides an analysis and processing method for unbalanced medical data sets, which balances the unbalanced medical data sets by adopting a double sampling method, reduces the learning bias of the majority class by removing negative examples by adopting an undersampling processing method, and increases the number of samples of the minority class by adopting an oversampling processing method, thereby achieving the purpose of balancing the data, reducing the difference in the number of majority and minority classes, further balancing the medical data sets, and improving the quality and accuracy of the data sets.
[0005] A method for analyzing and processing an imbalanced medical data set includes the following steps:
[0006] Collect imbalanced medical data sets and standardize each data;
[0007] Construct an SVM model for the standardized imbalanced training data set, identify the support vectors of the minority class and the majority class, and use the EDR method to estimate the data range of the support vectors of the majority class and the minority class respectively;
[0008] Based on the majority class support vector, combined with fuzzy trigonometric function and The method performs undersampling to select the support vectors of the majority class with all values;
[0009] Based on the minority class support vector, the ELM-ABC method is used for oversampling to generate more minority class support vectors;
[0010] The support vectors of the majority class after undersampling and the minority class after sampling are combined into a balanced medical dataset.
[0011] The unbalanced medical dataset is balanced by using a double sampling method, the undersampling method is used to remove negative examples to reduce the learning bias of the majority class, and the oversampling method is used to increase the number of samples of the minority class. The purpose of balancing the data is achieved, the difference in the number of majority and minority classes is reduced, the medical dataset is further balanced, and the quality and accuracy of the dataset are improved.
[0012] Furthermore, the method of collecting unbalanced medical data sets and standardizing each data is Min-Max standardization, that is, its calculation expression is:
[0013] ;
[0014] In the formula, After standardization, In the sample The data vector of input variables is , , is the total number of samples in the imbalanced medical dataset, , is the total number of input variables in each sample; is the original data vector; For the Input variable features; is the maximum value; is the minimum value.
[0015] Furthermore, when the EDR method is used to estimate the data range of the majority class and minority class support vectors, it includes calculating the bottom boundary of the support vector and calculating the top boundary of the support vector:
[0016] Among them, the calculation expression for calculating the bottom boundary of the support vector is:
[0017] ;
[0018] In the formula, Indicates The bottom boundary of the input variable, that is, the minimum range of the data; It means that after SVM model classification and recognition, input variables; represents the sample median; The skewness coefficient representing the median toward the bottom boundary; represents the sample variance; Indicates input variables are less than The number of is a constant, that is ; express The bottom boundary when it is zero;
[0019] The calculation expression for calculating the top boundary of the support vector is:
[0020] ;
[0021] In the formula, Indicates The top boundary of the input variable, that is, the maximum range of the data; The skewness coefficient representing the median toward the top boundary; Indicates input variables greater than The number of express The top border when zero.
[0022] Furthermore, the calculation expression of sample variance is:
[0023] ;
[0024] In the formula, For the samples; is the average value;
[0025] The calculation expression of the sample median is:
[0026] ;
[0027] Skewness coefficient of the median toward the bottom boundary The calculation expression is:
[0028] ;
[0029] Skewness coefficient of the median toward the upper boundary The calculation expression is:
[0030] ;
[0031] In the formula, Represents the parameter for adjusting the skewness coefficient, set to 1.
[0032] Furthermore, based on the majority class support vector, combined with fuzzy trigonometric function and The method performs undersampling to select the support vectors of the majority class with all values, including:
[0033] The MF value of the support vector of the majority class samples is calculated using fuzzy trigonometric functions;
[0034] Based on the calculated MF value, combined with The method performs under-sampling processing and retains the support vectors of the majority class.
[0035] The MF value is calculated by fuzzy trigonometric function and combined with The method performs undersampling to select all the valuable support vectors of the majority class and remove the noise sample points of the majority class.
[0036] Furthermore, in the process of calculating the MF value of the support vector of the majority class sample using the fuzzy trigonometric function, the calculation expression of the MF value is:
[0037] ;
[0038] In the formula, represents the membership function value of the majority class support vector, and ; represents the support vector of the majority class sample; Represents the bottom boundary value of the majority class support vector; Represents the top boundary value of the majority class support vector; Represents the median of the majority class support vector.
[0039] Further, based on the calculated MF value, combined with The method performs undersampling processing, and the process of retaining and selecting the majority class support vector specifically includes the following steps:
[0040] Presets value;
[0041] Based on the calculated MF value, combined with the preset Value calculation gather;
[0042] in, The calculation expression of the set is:
[0043] ;
[0044] In the formula, express gather;
[0045] Calculate the data range of the retained majority class, retain the majority class support vectors in the data range, and remove the majority class support vectors that are not in the data range;
[0046] Among them, the data range of the majority class is retained The calculation expression is:
[0047] ;
[0048] In the formula, Represents the data range of the retained majority class.
[0049] Furthermore, based on the minority class support vector, the ELM-ABC method is used for oversampling processing to generate more minority class support vectors. The specific process includes:
[0050] Randomly generate minority class samples within the data range of the obtained minority class support vector;
[0051] Construct an ELM algorithm model to compare the similarity between randomly generated minority class samples and actual minority class sample data, and predict and generate minority class support vectors;
[0052] The ABC artificial bee colony algorithm is used to automatically optimize and adjust the parameters in the ELM algorithm model, and train and generate optimized minority class support vectors.
[0053] By using the ELM algorithm to oversample minority samples, generate minority samples, and compare the similarity between the randomly generated minority samples and the actual minority sample data, false positives and overfitting can be reduced; at the same time, the ABC artificial bee colony algorithm can automatically find the optimal model parameters, avoid parameter dependence problems, and improve the accuracy of model classification prediction.
[0054] Furthermore, the ELM algorithm model is constructed to compare the similarity between the randomly generated minority class samples and the actual minority class sample data, and the process of predicting and generating the minority class support vector specifically includes the following steps:
[0055] Randomly set input weights in hidden layers and deviation The initial value of
[0056] Calculate the output matrix of the hidden layer ;
[0057] Among them, the output matrix of the hidden layer The formula is:
[0058] ;
[0059] Calculate the minimum output weight ;
[0060] Among them, the minimum output weight The calculation expression is:
[0061] ;
[0062] In the formula, is the target value of the output layer;
[0063] Build the ELM algorithm model and calculate the output vector;
[0064] Among them, the calculation expression of the ELM algorithm model is:
[0065] ;
[0066] In the formula, Represents the output function of the minority class support vector in the ELM algorithm model; Represents the support vector of minority class samples; Represents the output weights connecting the hidden layer and the output layer; Represents the number of hidden neurons in the ELM algorithm; Indicates The input weights of the hidden neurons connecting the input layer and the hidden layer; for deviation; Indicates The output vector of training data, i.e., the predicted value, , is the number of training data; is the sigmoid activation function, that is ,and ;
[0067] When the predicted value is greater than 0.5, the data is considered to be in the positive class, that is, it meets the minority class characteristics, and it is added to the minority class support vector; when the predicted value is not greater than 0.5, the data is considered to be in the negative class, that is, it does not meet the minority class characteristics, and it is discarded.
[0068] Furthermore, the process of automatically optimizing and adjusting the parameters in the ELM algorithm model using the ABC artificial bee colony algorithm specifically includes:
[0069] Get the initialized ELM model parameters;
[0070] Set up three roles: hired bees, observer bees, and scout bees, and perform training updates and iterations to find the optimal parameter combination;
[0071] In the hired bee stage, hired bees search for new solutions in their neighborhood based on the current optimal solution. In the observer bee stage, observer bees observe the search behavior of hired bees and choose to follow an hired bee for in-depth search. In the scout bee stage, when the search falls into a local optimum or the quality of the solution does not improve significantly, the scout bee is triggered to jump out of the local optimum.
[0072] The ELM model is set based on the optimal parameter combination found.
[0073] The beneficial effects of the present invention are:
[0074] The unbalanced medical data set is balanced by using double sampling method, undersampling method is used to remove negative examples to reduce the learning bias of the majority class, and oversampling method is used to increase the number of samples of the minority class, so as to achieve the purpose of balancing the data and reduce the difference in the number of majority and minority classes, further balance the medical data set, and improve the quality and accuracy of the data set. The MF value is calculated by fuzzy trigonometric function, and combined with The method performs undersampling to select all the valuable majority class support vectors and remove the noise sample points of the majority class. By using the ELM algorithm to oversample the minority class samples, generate minority class samples, and compare the similarity between the randomly generated minority class samples and the actual minority class sample data, it can reduce the false positive examples and overfitting phenomena; at the same time, the ABC artificial bee colony algorithm can automatically find the optimal model parameters, avoid parameter dependence problems, and improve the accuracy of model classification prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0075] Figure 1 is a flow chart of the present invention;
[0076] Figure 2 It is a schematic diagram of the double sampling method flow of the present invention;
[0077] Figure 3 Schematic diagram of the process of optimizing the ELM model for the ABC artificial bee colony algorithm. DETAILED DESCRIPTION
[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0079] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects described herein can be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein can be used to implement this device and / or practice this method.
[0080] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples, and a person of ordinary skill in the art can understand the specific meanings of the above terms in this application under specific circumstances.
[0081] Example 1
[0082] Figure 1 The figure shows an analysis and processing method for unbalanced medical data sets, which uses a double sampling method to balance the unbalanced medical data sets, uses an undersampling method to remove negative examples to reduce the learning bias of the majority class, and uses an oversampling method to increase the number of samples of the minority class, so as to achieve the purpose of balancing the data, reduce the difference in the number of majority and minority classes, further balance the medical data sets, and improve the quality and accuracy of the data sets. The specific steps include the following:
[0083] S1: Collect unbalanced medical data sets and standardize each data;
[0084] In this embodiment, the unbalanced medical data set is a diabetes data set, which has a total of samples Each sample includes Input variables and 1 output variable , which can be expressed as: , Indicates The data vector of samples, Indicates The feature labels of samples.
[0085] Among them, the method for standardizing each data in the imbalanced medical data set is Min-Max standardization, that is, its calculation expression is:
[0086] ;
[0087] In the formula, After standardization, In the sample The data vector of input variables is , , is the total number of samples in the imbalanced medical dataset, , is the total number of input variables in each sample; is the original data vector; For the Input variable features; is the maximum value; is the minimum value.
[0088] The Min-Max normalization method can eliminate the impact of different scales of features among multiple input variables. The minimum value of each feature in the data set can be mapped to 0, the maximum value can be mapped to 1, and the intermediate values are proportionally distributed between 0 and 1 based on the original position, which is convenient for model training and comparison.
[0089] S2: Construct an SVM model for the standardized imbalanced training data set, identify the support vectors of the minority class and the majority class respectively, and use the EDR method to estimate the data range of the support vectors of the majority class and the minority class respectively;
[0090] In this embodiment, when the EDR method is used to estimate the data range of the majority class and minority class support vectors respectively, it includes calculating the bottom boundary of the support vector and calculating the top boundary of the support vector:
[0091] That is, the calculation expression for calculating the bottom boundary of the support vector is:
[0092] ;
[0093] In the formula, Indicates The bottom boundary of the input variable, that is, the minimum range of the data; It means that after SVM model classification and recognition, input variables; represents the sample median; The skewness coefficient representing the median toward the bottom boundary; represents the sample variance; Indicates input variables are less than The number of is a constant, that is ; express The bottom boundary when it is zero;
[0094] That is, the calculation expression for calculating the top boundary of the support vector is:
[0095] ;
[0096] In the formula, Indicates The top boundary of the input variable, that is, the maximum range of the data; The skewness coefficient representing the median toward the top boundary; Indicates input variables greater than The number of express The top border when zero.
[0097] The calculation expression of sample variance is:
[0098] ;
[0099] In the formula, For the samples; is the average value;
[0100] The calculation expression of the sample median is:
[0101] ;
[0102] Among them, the skewness coefficient of the median to the bottom boundary The calculation expression is:
[0103] ;
[0104] Among them, the skewness coefficient of the median to the top boundary The calculation expression is:
[0105] ;
[0106] Among them, in the formula, Represents the parameter for adjusting the skewness coefficient, set to 1.
[0107] S3: Based on the majority class support vector, combined with fuzzy trigonometric function and The method performs undersampling to select the support vectors of the majority class with all values;
[0108] S31: Calculate the MF value of the support vector of the majority class sample using fuzzy trigonometric function;
[0109] The calculation expression of MF value is:
[0110] ;
[0111] In the formula, represents the membership function value of the majority class support vector, and ; represents the support vector of the majority class sample; Represents the bottom boundary value of the majority class support vector; Represents the top boundary value of the majority class support vector; Represents the median of the majority class support vector.
[0112] S32: Based on the calculated MF value, The method performs undersampling processing and retains the support vectors of the majority class;
[0113] S321: Preset value;
[0114] In this embodiment, The default value is 0.5.
[0115] S322: Based on the calculated MF value, combined with the preset Value calculation gather;
[0116] in, The calculation expression of the set is:
[0117] ;
[0118] In the formula, express gather;
[0119] S323: Calculate the data range of the retained majority class, retain the majority class support vectors in the data range, and remove the majority class support vectors that are not in the data range;
[0120] Among them, the data range of the majority class is retained The calculation expression is:
[0121] ;
[0122] In the formula, Represents the data range of the retained majority class.
[0123] S4: Based on the minority class support vector, the ELM-ABC method is used for oversampling to generate more minority class support vectors;
[0124] S41: Randomly generate minority class samples within the data range of the obtained minority class support vector;
[0125] S42: Construct an ELM algorithm model to compare the similarity between randomly generated minority class samples and actual minority class sample data, and predict and generate minority class support vectors;
[0126] S421: Randomly set input weights in hidden layers and deviation The initial value of
[0127] S422: Calculate the output matrix of the hidden layer ;
[0128] Among them, the output matrix of the hidden layer The formula is:
[0129] ;
[0130] S423: Calculate the minimum output weight ;
[0131] Among them, the minimum output weight The calculation expression is:
[0132] ;
[0133] In the formula, is the target value of the output layer;
[0134] S424: construct an ELM algorithm model and calculate an output vector;
[0135] Among them, the calculation expression of the ELM algorithm model is:
[0136] ;
[0137] In the formula, Represents the output function of the minority class support vector in the ELM algorithm model; Represents the support vector of minority class samples; Represents the output weights connecting the hidden layer and the output layer; Represents the number of hidden neurons in the ELM algorithm; Indicates The input weights of the hidden neurons connecting the input layer and the hidden layer; for deviation; Indicates The output vector of training data, i.e., the predicted value, , is the number of training data; is the sigmoid activation function, that is ,and ;
[0138] It should be noted that in actual use, activation functions such as sigmoid function, cosine function, tangent function and multiple quadratic function can be selected according to the model's own needs.
[0139] S425: When the predicted value is greater than 0.5, the data is considered to be a positive class, that is, it meets the minority class characteristics, and it is added to the minority class support vector; when the predicted value is not greater than 0.5, the data is considered to be a negative class, that is, it does not meet the minority class characteristics, and it is discarded.
[0140] S43: Use the ABC artificial bee colony algorithm to automatically optimize and adjust the parameters in the ELM algorithm model, and train to generate optimized minority class support vectors;
[0141] Assuming that the solution space is D-dimensional, and the number of employed bees and observer bees is Q, the problem-solving process can be regarded as a search in the D-dimensional search space. The location of each nectar source represents a possible solution to the problem, and the nectar volume of the nectar source corresponds to the fitness of the corresponding solution, that is, one employed bee corresponds to one nectar source. The process of optimizing the ELM model parameters is equivalent to finding the first New nectar source corresponding to hired bees process.
[0142] S431: Obtaining initialized ELM model parameters;
[0143] Among them, the process of initializing the ELM model parameters is to randomly generate the initial position of the honey source in the search space, and the calculation expression for its initialization is:
[0144] ;
[0145] In the formula, Represents the initialization parameters in d-dimensional space; Representation interval Random numbers on ; and Represent the parameters of the upper and lower bounds of the d-dimensional solution space respectively; Q ; .
[0146] S432: Based on the data set to be processed, three roles of employed bees, observer bees, and scout bees are set, and training and updating iterations are performed to find the optimal parameter combination;
[0147] (1) In the hired bee stage, the hired bee searches for nectar sources in its neighborhood according to the current optimal solution, updates its location to find new nectar sources, and records the information of new nectar sources;
[0148] Find the New nectar source corresponding to hired bees The optimization formula of the process is:
[0149] ;
[0150] In the formula, Indicates New nectar source corresponding to hired bees ; represents the acceleration factor, that is , is a random value based on uniform distribution; is a constant, with a value of 1; is a random solution.
[0151] (2) In the observation bee stage, the observation bee observes the search behavior of the employed bees and chooses to follow an employed bee for in-depth search; that is, by calculating the initial fitness value and selecting a value with better fitness to calculate the following probability, the optimal nectar source selection is improved, and the solution vector with the largest following probability value is taken as the final solution.
[0152] Among them, the expression for calculating the fitness value is:
[0153] ;
[0154] In the formula, is the fitness value of the new candidate solution, i.e. The fitness value of each solution corresponds to the richness of the nectar source; is the fitness value to be optimized.
[0155] Among them, the calculation expression of following probability is:
[0156] ;
[0157] In the formula, Indicates The following probability of an observer bee is the probability that the corresponding solution is selected.
[0158] (3) When the employed bees and observer bees have searched the entire search space, if the fitness value of the nectar source has not been improved, that is, the search has fallen into a local optimum or the quality of the solution has not been significantly improved, it will be abandoned. At the same time, the employed bees corresponding to the nectar source are triggered to become scout bees and enter the scout bee stage, jumping out of the local optimum and searching for new solutions.
[0159] S433: Setting the ELM model based on the found optimal parameter combination.
[0160] In this embodiment, if Figure 2The figure shows a flow chart of the ABC artificial bee colony algorithm for optimizing the parameters of the ELM model, which is performed by optimizing the number of neurons in the only hidden layer in the ELM model. After optimization by the ABC artificial bee colony algorithm, the output weights are returned to the ELM model for prediction generation.
[0161] By using the ELM algorithm to oversample minority samples, generate minority samples, and compare the similarity between the randomly generated minority samples and the actual minority sample data, it is possible to reduce false positive examples and overfitting. The unique feedforward neural network architecture of the ELM algorithm itself can be used to simplify the process of finding suitable weights, thereby reducing computational complexity and increasing model training speed. At the same time, the ABC artificial bee colony algorithm can automatically find the optimal model parameters, avoid parameter dependence problems, and improve the accuracy of model classification predictions.
[0162] S5: Combine the support vectors of the majority class after undersampling and the minority class after sampling to form a balanced medical dataset.
[0163] Example 2
[0164] like Figure 3 As shown, this embodiment provides an analysis and processing method for an unbalanced medical data set, which specifically includes the following steps:
[0165] T1: Collecting an unbalanced medical dataset;
[0166] T2: Standardize each data in the imbalanced medical data set;
[0167] T3: Build an SVM model for the standardized imbalanced training data set and identify the support vectors of the minority class and the majority class respectively;
[0168] T4: Double sampling method is used to process the support vectors of the identified minority and majority classes;
[0169] T41: Under-sampling of the majority class support vector;
[0170] T411: Use EDR method to estimate the data range of majority class support vector;
[0171] T412: Use fuzzy trigonometric function to calculate the MF value of the support vector of the majority class sample;
[0172] T413: Based on the calculated MF value, combined The method performs undersampling processing and retains the support vectors of the majority class;
[0173] T42: Oversampling of minority class support vectors;
[0174] T421: Use EDR method to estimate the data range of minority class support vectors;
[0175] T422: Randomly generate minority class samples within the data range of the obtained minority class support vector;
[0176] T423: The ELM algorithm model is constructed to compare the similarity between randomly generated minority class samples and actual minority class sample data, and predict the minority class support vector;
[0177] T424: Use the ABC artificial bee colony algorithm to automatically optimize and adjust the parameters in the ELM algorithm model, and train and generate optimized minority class support vectors;
[0178] T5: Combine the support vectors of the majority class after undersampling and the minority class after sampling into a balanced medical dataset.
[0179] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0180] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.
Claims
1. A method for analyzing and processing unbalanced medical data sets, characterized in that: The steps include: Collect imbalanced medical data sets and standardize each data; Construct an SVM model for the standardized imbalanced training data set, identify the support vectors of the minority class and the majority class respectively, and use the data range estimation EDR method to estimate the data range of the support vectors of the majority class and the minority class respectively; Based on the majority class support vector, combined with fuzzy trigonometric function and The cut-off method performs undersampling to select all valuable support vectors of the majority class; Based on the minority class support vector, the artificial bee colony ABC algorithm is used to optimize the extreme learning machine ELM algorithm for oversampling processing to generate more minority class support vectors; Combine the support vectors of the majority class after undersampling and the minority class after sampling to form a balanced medical data set; When using the EDR method to estimate the data range of the majority class and minority class support vectors respectively, it includes calculating the bottom boundary of the support vector and calculating the top boundary of the support vector: Among them, the calculation expression for calculating the bottom boundary of the support vector is: ; In the formula, Indicates The bottom boundary of the input variable, that is, the minimum range of the data; It means that after SVM model classification and recognition, input variables; represents the sample median; The skewness coefficient representing the median toward the bottom boundary; represents the sample variance; Indicates input variables are less than The number of is a constant, that is ; express The bottom boundary when it is zero; The calculation expression for calculating the top boundary of the support vector is: ; In the formula, Indicates The top boundary of the input variable, that is, the maximum range of the data; The skewness coefficient representing the median toward the top boundary; Indicates input variables greater than The number of express The top border when it is zero; Based on the majority class support vector, combined with fuzzy trigonometric function and The process of undersampling by the cut-off method to select the support vectors of the majority class with all values includes: The membership function MF value of the support vector of the majority class samples is calculated using fuzzy trigonometric functions; Based on the calculated membership function MF value, combined with The cut-off method performs under-sampling processing and retains the support vectors of the majority class; In the process of calculating the MF value of the support vector of the majority class sample using fuzzy trigonometric function, the calculation expression of the MF value is: ; In the formula, represents the membership function value of the majority class support vector, and ; represents the support vector of the majority class sample; Represents the bottom boundary value of the majority class support vector; Represents the top boundary value of the majority class support vector; represents the median of the majority class support vector; Based on the calculated MF value, combined with The method performs undersampling processing, and the process of retaining and selecting the majority class support vector specifically includes the following steps: Presets value; Based on the calculated MF value, combined with the preset Value calculation gather; in, The calculation expression of the set is: ; In the formula, express gather; Calculate the data range of the retained majority class, retain the majority class support vectors in the data range, and remove the majority class support vectors that are not in the data range; Among them, the data range of the majority class retained The calculation expression is: ; In the formula, Represents the data range of the retained majority class.
2. The analysis and processing method for unbalanced medical data sets according to claim 1, characterized in that: The method for collecting unbalanced medical data sets and standardizing each data is Min-Max standardization, that is, its calculation expression is: ; In the formula, After standardization, In the sample The data vector of input variables is , , is the total number of samples in the imbalanced medical dataset, , is the total number of input variables in each sample; is the original data vector; For the Input variable features; is the maximum value; is the minimum value.
3. The analysis and processing method for unbalanced medical data sets according to claim 1, characterized in that: The calculation expression of sample variance is: ; In the formula, For the samples; is the average value; The calculation expression of the sample median is: ; Skewness coefficient of the median toward the bottom boundary The calculation expression is: ; Skewness coefficient of the median toward the upper boundary The calculation expression is: ; In the formula, Represents the parameter for adjusting the skewness coefficient, set to 1.
4. The analysis and processing method for unbalanced medical data sets according to claim 1, characterized in that: Based on the minority class support vector, the ELM-ABC method is used for oversampling to generate more minority class support vectors. Specifically, the process includes: Randomly generate minority class samples within the data range of the obtained minority class support vector; Construct an ELM algorithm model to compare the similarity between randomly generated minority class samples and actual minority class sample data, and predict and generate minority class support vectors; The ABC artificial bee colony algorithm is used to automatically optimize and adjust the parameters in the ELM algorithm model, and train and generate optimized minority class support vectors.
5. The method for analyzing and processing unbalanced medical data sets according to claim 4, characterized in that: The ELM algorithm model is constructed to compare the similarity between randomly generated minority class samples and actual minority class sample data, and the process of predicting and generating minority class support vectors specifically includes the following steps: Randomly set input weights in hidden layers and deviation The initial value of Calculate the output matrix of the hidden layer ; Among them, the output matrix of the hidden layer The formula is: ; Calculate the minimum output weight ; Among them, the minimum output weight The calculation expression is: ; In the formula, is the target value of the output layer; Build the ELM algorithm model and calculate the output vector; Among them, the calculation expression of the ELM algorithm model is: ; In the formula, Represents the output function of the minority class support vector in the ELM algorithm model; Represents the support vector of minority class samples; Represents the output weights connecting the hidden layer and the output layer; Represents the number of hidden neurons in the ELM algorithm; Indicates The input weights of the hidden neurons connecting the input layer and the hidden layer; for deviation; Indicates The output vector of training data, i.e., the predicted value, , is the number of training data; is the sigmoid activation function, that is ,and ; When the predicted value is greater than 0.5, the data is considered to be in the positive class, that is, it meets the minority class characteristics, and it is added to the minority class support vector; when the predicted value is not greater than 0.5, the data is considered to be in the negative class, that is, it does not meet the minority class characteristics, and it is discarded.
6. The method for analyzing and processing unbalanced medical data sets according to claim 4, characterized in that: The process of automatically optimizing and adjusting the parameters in the ELM algorithm model using the ABC artificial bee colony algorithm specifically includes: Get the initialized ELM model parameters; Set up three roles: hired bees, observer bees, and scout bees, and perform training updates and iterations to find the optimal parameter combination; In the hired bee stage, hired bees search for new solutions in their neighborhood based on the current optimal solution. In the observer bee stage, observer bees observe the search behavior of hired bees and choose to follow an hired bee for in-depth search. In the scout bee stage, when the search falls into a local optimum or the quality of the solution does not improve significantly, the scout bee is triggered to jump out of the local optimum. The ELM model is set based on the optimal parameter combination found.
Citation Information
Patent Citations
Roadside air pollution prediction method based on unbalanced correction semi-supervised learning
CN109657858A
Prediction method for unbalanced data set based on isolated forest learning
CN112070125A
Medical picture classification method and system based on deep reinforcement learning, and electronic equipment
CN115761336A
Medical unbalanced data classification method based on biased random forest model
CN116072302A
AUC-maximized high-accuracy classifier for imbalanced datasets
US10970650B1
