Optimized classification method and device for imbalanced data in the field of disease prediction
By calculating the differential equilibrium representation coefficient and Euclidean distance of medical data samples, and using generative adversarial networks to enhance majority class samples, the problem of class imbalance in the disease prediction model is solved, and the model's recognition ability of minority classes and classification accuracy of majority classes are improved. , which enhances the generalization ability of the model.
Patent Information
- Application Number
- CN202410606518.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-05-16
AI Technical Summary
The existing technology has a class imbalance problem in the disease prediction model, which affects the model performance. Moreover, the existing method fails to fully consider the internal structure and distribution characteristics of the data, and may introduce noisy data, affecting the generalization ability and prediction performance of the model. .
By preprocessing medical data samples, calculate the basic feature difference equilibrium representation coefficients of majority class and minority class samples, divide majority class samples into subsets and use generative adversarial networks to enhance them, merge them with minority class samples, and calculate the difference between samples Euclidean distance is used to construct an optimization goal to update the prediction model parameters and improve the model's recognition ability of minority classes and the classification accuracy of majority classes.
It effectively improves the prediction model's ability to identify minority classes, reduces the impact of data imbalance on model precision and accuracy, enhances the model's generalization ability, and learns deep features through deep neural networks to improve feature tightness and separation. .
Smart Images

Figure 00000000_0000
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data analysis and prediction, and in particular to an optimization classification method and device for imbalanced data in the field of disease prediction. Background Art
[0002] In the current medical and health field, with the rapid development of big data technology and its widespread application in clinical medicine, massive amounts of medical data are collected and analyzed, and are widely used in medical image processing, natural language processing, and disease prediction through relevant models.
[0003] For example, Chinese patent application: CN117690578A discloses a training method for a disease prediction model and a disease prediction system, the method comprising: obtaining a medical data set, which includes multiple medical data, each medical data corresponds to one or more symptoms, and some medical data corresponds to one or more diseases; taking each medical data as a medical data node, each symptom as a symptom node, and each disease as a disease node, and constructing a heterogeneous graph based on the medical data set; constructing an initial disease prediction model based on a graph neural network, and taking the heterogeneous graph as input and whether there is an edge between each medical data node and each disease node as output, using the heterogeneous graph to perform multiple rounds of iterative training on the initial disease prediction model until convergence, and updating the disease prediction model parameters based on the contrast loss during each round of training. The method of the invention can improve the performance of the disease prediction model, thereby better assisting doctors in disease diagnosis.
[0004] However, the prior art still has the following problems:
[0005] After massive amounts of medical data are collected, these data often have significant class imbalance problems, that is, the sample size of certain diseases is much smaller than the number of normal samples or other disease samples. This unbalanced data distribution seriously affects the performance of disease prediction models.
[0006] Existing methods for dealing with the common class imbalance problem in medical data processing can be divided into two aspects. At the data level, the strategy of sampling the minority class and undersampling the majority class is widely adopted, aiming to achieve class balance by adjusting the proportion of each class in the data set. In addition, improvements at the algorithm level, such as cost-sensitive learning and ensemble learning methods, improve the recognition accuracy of the minority class by assigning different costs to errors of different categories or combining the prediction results of multiple models. These methods have alleviated the negative impact of imbalanced data to some extent and enhanced the model's ability to recognize minority class samples. However, such methods often fail to fully consider the internal structure and distribution characteristics of the data, ignore the inherent differences between the minority class and the majority class, and sometimes even introduce noise data, which in turn affects the generalization ability and prediction performance of the model. Summary of the invention
[0007] To this end, the present invention provides an optimized classification method for unbalanced data in the field of disease prediction, so as to overcome the problem in the prior art that in clinical data analysis, the sample size of medical data is far less than that of normal samples, resulting in highly unbalanced data, affecting the accuracy and reliability of the data prediction model.
[0008] To achieve the above object, the present invention provides an optimized classification method for imbalanced data in the field of disease prediction, which comprises:
[0009] Step S1, preprocessing the collected medical data samples and then storing them, wherein the preprocessing includes data cleaning, missing value processing and data standardization;
[0010] Step S2, respectively determining the basic features corresponding to the majority class samples and the minority class samples in the medical data samples, calculating the discrete difference balanced characterization coefficient based on the difference between the basic features corresponding to the majority class samples and the basic features corresponding to the minority class samples, and determining whether the medical data samples meet the predetermined classification criteria based on the discrete difference balanced characterization coefficient, wherein the basic features include the number of samples and the proportion of the same features between the samples;
[0011] Step S3, dividing the majority class samples into several subsets and enhancing them based on the generative adversarial network, and merging the obtained enhanced subsets with the minority class samples to obtain several balanced subsets;
[0012] Step S4, determining the deep features of the samples in each of the balanced subsets to calculate the Euclidean distance between the samples, and determining the intra-class compactness and inter-class separation based on the Euclidean distance between the samples to construct an optimization target for the prediction model;
[0013] Step S5, continuously updating the network parameters by minimizing the optimization target until the prediction model converges.
[0014] Furthermore, in step S1, the acquired medical data samples include a number of symptom records of different categories of diseases, and a single category of medical data samples corresponds to a symptom record of a single category of disease.
[0015] Furthermore, in step S2, determining the proportion of the same features between samples includes:
[0016] Identify the overlapping symptom records in the majority class and minority class medical data samples;
[0017] The ratio of the number of overlapping symptom records to the total number of symptom records in the two types of medical data samples is taken as the proportion of the same features between samples.
[0018] Furthermore, in step S2, the discrete difference equalization characterization coefficient is calculated according to formula (1):
[0019] ,
[0020] In formula (1), E represents the discrete difference equilibrium representation coefficient, Ne represents the number of minority class samples, Nm represents the number of majority class samples, N0 represents the preset equilibrium ratio standard threshold, Pi represents the average ratio of the same features between the i-th minority class sample and each majority class sample, P0 represents the preset ratio standard threshold, represents the balance ratio weight coefficient, Represents the proportional weight coefficient.
[0021] Furthermore, in step S2, determining whether the predetermined classification standard is met includes:
[0022] The discrete difference equalization characterization coefficient is compared with a preset discrete difference equalization characterization coefficient comparison threshold,
[0023] If the discrete difference balanced characterization coefficient is greater than or equal to a preset discrete difference balanced characterization coefficient comparison threshold, it is determined that the predetermined classification standard is not met;
[0024] If the discrete difference balanced characterization coefficient is less than a preset discrete difference balanced characterization coefficient, it is determined that the predetermined classification standard is met.
[0025] Furthermore, in step S4, for each sample in the balanced subset, a deep feature is obtained by a deep neural network, wherein the deep feature output by the deep neural network is expressed according to formula (2):
[0026] ,
[0027] In formula (2), represents the deep features of the m-th layer of the neural network, represents the activation function, is the weight matrix of the m-th layer neural network, is the bias vector of the mth layer neural network, Represents the bias vector of the m-1th layer of the neural network.
[0028] Furthermore, in step S4, the Euclidean distance between samples is calculated according to formula (3):
[0029] ,
[0030] In formula (3), represents the Euclidean distance between samples, represents the first data point of the input, represents the second data point of the input, Indicates the deep features of the first data point corresponding to the mth layer of the neural network, Indicates the deep features of the m-th layer of the neural network corresponding to the second data point.
[0031] Furthermore, in step S4, the optimization objective is expressed by formula (4):
[0032] ,
[0033] In formula (4), represents the intra-class compactness of the k-th balanced subset, represents the inter-class separation of the kth balanced subset, R represents the decorrelation constraint, v represents the number of balanced subsets, represents the first regularization term, F represents the F norm of the matrix, represents the second regularization term, M represents the number of neurons in the hidden layer of a single-layer neural network, α represents the free parameter of intra-class compactness of the balance, β represents the free parameter of inter-class separability, represents the first regularization parameter, γ represents the second regularization parameter, Represents the Euclidean distance between samples in the kth balanced subset.
[0034] Furthermore, in step S3, the number of medical data samples in the subset obtained by segmentation is equal to the number of minority class samples.
[0035] Furthermore, a device for applying an optimized classification method for imbalanced data in the field of disease prediction is provided, comprising:
[0036] one or more processors;
[0037] Memory;
[0038] and one or more programs,
[0039] The one or more programs are configured to be executed by one or more processors to perform an optimized classification method for imbalanced data in the field of disease prediction.
[0040] Compared with the prior art, the present invention divides medical data samples into majority class samples and minority class samples, determines whether they meet the classification criteria by calculating the discrete difference balanced representation coefficient, and classifies the majority class samples, merges the obtained subset with the minority class samples to construct a balanced subset, calculates the Euclidean distance between samples based on the sample characteristics in the balanced subset, and constructs an optimization target for the prediction model. Through the above steps, the prediction model's recognition ability for the minority class is enhanced, while the classification accuracy for the majority class is improved, reducing the impact of data imbalance in medical data samples on the precision and accuracy of the prediction model.
[0041] In particular, the present invention calculates the discrete difference balanced representation coefficient for the basic characteristics of majority class samples and minority class samples. In actual situations, the proportion of the same characteristics between samples can characterize the data representation of a single sample. For minority class samples, if the corresponding disease symptoms have a high degree of overlap with the disease symptoms of other diseases, their data representation is poor, especially when the number of minority class samples is small, the above situation will be aggravated. Therefore, by calculating the discrete difference cyclic representation coefficient, the poor data representation of minority class samples is characterized, and the impact on subsequent steps is considered to determine whether the predetermined classification criteria are met. Only the majority class samples that meet the predetermined classification criteria are processed, thereby improving the classification accuracy of the majority class and reducing the impact of data imbalance in medical data samples on the precision and accuracy of the prediction model.
[0042] In particular, the present invention merges the subsets enhanced by GAN with the original minority class samples to form multiple balanced subsets. These balanced subsets are not only balanced in quantity, but also closer to the original data set in data distribution, providing a better foundation for subsequent deep learning and feature extraction.
[0043] In particular, the present invention performs feature learning on each balanced subset through a deep neural network. The goal of deep learning is to learn deep feature representation so that samples of the same category are closer in the feature space and samples of different categories are more dispersed.
[0044] In particular, the present invention improves the recognition ability of the prediction model for minority class samples and reduces the correlation between features of different subsets. The present invention introduces cost-sensitive factors and decorrelation constraints in multi-source data extraction. The cost-sensitive factors aim to increase the importance of minority class samples by adjusting the weights in the loss function; the decorrelation constraints enhance the generalization ability of the prediction model by reducing the correlation between features. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A schematic diagram of the steps of an optimized classification method for imbalanced data in the field of disease prediction according to an embodiment of the invention;
[0046] Figure 2 A logic block diagram of an embodiment of the invention for determining whether a medical data sample meets a predetermined classification standard;
[0047] Figure 3 A schematic diagram of balanced subset conversion according to an embodiment of the invention;
[0048] In the figure, 1: majority class samples, 2: minority class samples. DETAILED DESCRIPTION
[0049] In order to make the objects and advantages of the present invention more clearly understood, the present invention is further described below in conjunction with embodiments; it should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0050] The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the protection scope of the present invention.
[0051] See also Figures 1 to 3 As shown, Figure 1 This is a schematic diagram of the steps of an optimized classification method for imbalanced data in the field of disease prediction in an embodiment of the invention. Figure 2 This is a logic block diagram of an embodiment of the invention for determining whether a medical data sample meets a predetermined classification standard. Figure 3 A schematic diagram of balanced subset conversion according to an embodiment of the invention;
[0052] The optimized classification method for imbalanced data in the field of disease prediction of the present invention includes:
[0053] Step S1, preprocessing the collected medical data samples and then storing them, wherein the preprocessing includes data cleaning, missing value processing and data standardization;
[0054] Step S2, respectively determining the basic features corresponding to the majority class sample 1 and the basic features corresponding to the minority class sample 2 in the medical data sample, calculating the discrete difference balanced characterization coefficient based on the difference between the basic features corresponding to the majority class sample 1 and the minority class sample 2, and determining whether the medical data sample meets the predetermined classification standard based on the discrete difference balanced characterization coefficient, wherein the basic features include the number of samples and the proportion of the same features between the samples;
[0055] Step S3, dividing the majority class sample 1 into several subsets and enhancing them based on the generative adversarial network, and merging the obtained enhanced subsets with the minority class sample 2 to obtain several balanced subsets;
[0056] Step S4, determining the deep features of the samples in each of the balanced subsets to calculate the Euclidean distance between the samples, and determining the intra-class compactness and inter-class separation based on the Euclidean distance between the samples to construct an optimization target for the prediction model;
[0057] Step S5, continuously updating the network parameters by minimizing the optimization target until the prediction model converges.
[0058] Specifically, the present invention does not limit the specific method of obtaining medical data samples. For example, the case database can be accessed with access rights, and the corresponding symptoms of various diseases can be extracted and stored. This will not be repeated.
[0059] Specifically, the present invention does not specifically limit the process of preprocessing medical data. Data cleaning is the process of removing inconsistencies, duplications and noise from a data set. Missing value processing refers to a method for processing missing data in a data set, including filling and deletion. Data standardization is a unified data format or description method, which are all existing technologies and will not be repeated here.
[0060] Specifically, the prediction model can be constructed by itself or an existing open source prediction model can be used. It only needs to realize the corresponding prediction function. In form, a prediction model with a neural network architecture can be used. This is an existing technology and will not be elaborated here.
[0061] Specifically, the division of majority class samples 1 and minority class samples 2 can be based on the number of single-class medical data samples. For example, the number of medical data samples corresponding to a single class of diseases is counted. If the number of medical data samples corresponding to this class of diseases exceeds a predetermined threshold, they are divided into majority class samples 1. This will not be repeated.
[0062] Specifically, in step S1, the acquired medical data samples include a number of symptom records of different types of diseases, and a single type of medical data sample corresponds to a symptom record of a single type of disease.
[0063] Specifically, in step S2, determining the proportion of the same features between samples includes:
[0064] Identify the overlapping symptom records in the majority class and minority class medical data samples;
[0065] The ratio of the number of overlapping symptom records to the total number of symptom records in the two types of medical data samples is taken as the proportion of the same features between samples.
[0066] Specifically, in step S2, the discrete difference equalization characterization coefficient is calculated according to formula (1):
[0067] ,
[0068] In formula (1), E represents the discrete difference equilibrium representation coefficient, Ne represents the number of minority class samples, Nm represents the number of majority class samples, N0 represents the preset equilibrium ratio standard threshold, Pi represents the average ratio of the same features between the i-th minority class sample and each majority class sample, P0 represents the preset ratio standard threshold, represents the balance ratio weight coefficient, Represents the proportional weight coefficient.
[0069] Specifically, in this embodiment, in order to reflect the situation where there are more majority class samples 1, the balance ratio standard threshold is selected in the interval [200, 300];
[0070] In order to reflect the situation where there are many identical features between samples and the data representation is poor, the ratio standard threshold is selected in the interval [0.4, 0.6].
[0071] The balance ratio weight coefficient is 0.65, and the proportional weight coefficient is 0.35.
[0072] Specifically, in step S2, determining whether the predetermined classification criteria are met includes:
[0073] The discrete difference equalization characterization coefficient is compared with a preset discrete difference equalization characterization coefficient comparison threshold,
[0074] If the discrete difference balanced characterization coefficient is greater than or equal to a preset discrete difference balanced characterization coefficient comparison threshold, it is determined that the predetermined classification standard is not met;
[0075] If the discrete difference balanced characterization coefficient is less than a preset discrete difference balanced characterization coefficient, it is determined that the predetermined classification standard is met.
[0076] Specifically, the discrete difference equalization characterization coefficient comparison threshold is selected within the interval [1.15, 1.3].
[0077] The present invention calculates the discrete difference balanced representation coefficient for the basic characteristics of the majority class samples 1 and the minority class samples 2. In actual situations, the proportion of the same characteristics between samples can characterize the data representation of a single sample. For the minority class samples 2, if the corresponding disease symptoms have a high degree of overlap with the disease symptoms of other diseases, then the data representation is poor, especially when the number of minority class samples 2 is small, which will aggravate the above situation. Therefore, by calculating the discrete difference cyclic representation coefficient, the poor data representation of the minority class samples 2 is characterized, and the impact on subsequent steps is considered to determine whether the predetermined classification criteria are met. Only the majority class samples 1 that meet the predetermined classification criteria are processed, thereby improving the classification accuracy of the majority class and reducing the impact of data imbalance in medical data samples on the accuracy and precision of the prediction model.
[0078] Specifically, in the process of enhancement based on the generative adversarial network, the generator is responsible for generating new samples, and the discriminator is used to determine whether the samples come from the original majority class samples 1, and set the objective function. Usually, the objective function defines the competition rules between the discriminator and the generator. Through continuous training, the generator can generate data that is closer and closer to the real sample distribution, which will not be repeated here.
[0079] The present invention merges the subset enhanced by GAN with the original minority class sample 2 to form multiple balanced subsets. These balanced subsets are not only balanced in quantity, but also closer to the original data set in data distribution, providing a better foundation for subsequent deep learning and feature extraction.
[0080] Specifically, in step S4, for each sample in the balanced subset, a deep feature is obtained through a deep neural network, wherein the deep feature output by the deep neural network is expressed according to formula (2):
[0081] ,
[0082] In formula (2), represents the deep features of the m-th layer of the neural network, represents the activation function, is the weight matrix of the m-th layer neural network, is the bias vector of the mth layer neural network, Represents the bias vector of the m-1th layer of the neural network.
[0083] The present invention performs feature learning on each balanced subset through a deep neural network. The goal of deep learning is to learn deep feature representation so that samples of the same category are closer in the feature space and samples of different categories are more dispersed.
[0084] Specifically, in step S4, the Euclidean distance between samples is calculated according to formula (3). In step S4, the Euclidean distance between samples is calculated according to formula (3).
[0085] ,
[0086] In formula (3), represents the Euclidean distance between samples, represents the first data point of the input, represents the second data point of the input, Indicates the deep features of the first data point corresponding to the mth layer of the neural network, Indicates the deep features of the m-th layer of the neural network corresponding to the second data point.
[0087] Specifically, in step S4, the optimization objective is expressed by formula (4):
[0088] ,
[0089] In formula (4), represents the intra-class compactness of the k-th balanced subset, represents the inter-class separation of the kth balanced subset, R represents the decorrelation constraint, v represents the number of balanced subsets, represents the first regularization term, F represents the F norm of the matrix, represents the second regularization term, M represents the number of neurons in the hidden layer of a single-layer neural network, α represents the free parameter of intra-class compactness of the balance, β represents the free parameter of inter-class separability, represents the first regularization parameter, γ represents the second regularization parameter, Represents the Euclidean distance between samples in the kth balanced subset.
[0090] Specifically, the decorrelation constraint R aims to reduce the correlation between features in different subsets, thereby improving the diversity and discriminability of features learned by the model.
[0091] In this embodiment, the decorrelation constraint term R is expressed by formula (5):
[0092] ,
[0093] in, represents the feature matrix of the last layer of the i-th balanced subset in the neural network, Represents the feature matrix of the jth balanced subset in the last layer of the network.
[0094] The present invention improves the recognition ability of the prediction model for minority class samples 2 and reduces the correlation between features of different subsets. The present invention introduces cost-sensitive factors and decorrelation constraints in multi-source data extraction. The cost-sensitive factors aim to increase the importance of minority class samples 2 by adjusting the weights in the loss function; the decorrelation constraints enhance the generalization ability of the prediction model by reducing the correlation between features.
[0095] Specifically, in step S3, the number of medical data samples in the subset obtained by segmentation is equal to the number of minority class samples 2.
[0096] Specifically, a device for applying an optimized classification method for imbalanced data in the field of disease prediction is provided, which includes:
[0097] one or more processors;
[0098] Memory;
[0099] and one or more programs,
[0100] The one or more programs are configured to be executed by one or more processors to perform an optimized classification method for imbalanced data in the field of disease prediction.
[0101] If the optimization classification method for imbalanced data in the field of disease prediction of the present invention is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention, and the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0102] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. An optimization classification method for imbalanced data in the field of disease prediction, characterized in that: include: Step S1, preprocessing the collected medical data samples and then storing them, wherein the preprocessing includes data cleaning, missing value processing and data standardization; Step S2, respectively determining the basic features corresponding to the majority class samples and the minority class samples in the medical data samples, calculating the discrete difference balanced characterization coefficient based on the difference between the basic features corresponding to the majority class samples and the basic features corresponding to the minority class samples, and determining whether the medical data samples meet the predetermined classification criteria based on the discrete difference balanced characterization coefficient, wherein the basic features include the number of samples and the proportion of the same features between the samples; Step S3, dividing the majority class samples into subsets and enhancing them based on the generative adversarial network, and merging the obtained enhanced subsets with the minority class samples to obtain a balanced subset; Step S4, determining the deep features of the samples in each of the balanced subsets to calculate the Euclidean distance between the samples, and determining the intra-class compactness and inter-class separation based on the Euclidean distance between the samples to construct an optimization target for the prediction model; Step S5, continuously updating the network parameters by minimizing the optimization target until the prediction model converges; In step S2, the discrete difference equalization characterization coefficient is calculated according to formula (1): , In formula (1), E represents the discrete difference equilibrium representation coefficient, Ne represents the number of minority class samples, Nm represents the number of majority class samples, N0 represents the preset equilibrium ratio standard threshold, Pi represents the average ratio of the same features between the i-th minority class sample and each majority class sample, P0 represents the preset ratio standard threshold, represents the balance ratio weight coefficient, represents the proportional weight coefficient; In step S4, the Euclidean distance between samples is calculated according to formula (3): , In formula (3), represents the Euclidean distance between samples, represents the first data point of the input, represents the second data point of the input, Indicates the deep features of the first data point corresponding to the mth layer of the neural network, Indicates the deep features of the m-th layer of the neural network corresponding to the second data point; In step S4, the optimization objective is expressed by formula (4): , In formula (4), represents the intra-class compactness of the k-th balanced subset, represents the inter-class separation of the kth balanced subset, R represents the decorrelation constraint, v represents the number of balanced subsets, represents the first regularization term, F represents the F norm of the matrix, represents the second regularization term, M represents the number of neurons in the hidden layer of a single-layer neural network, α represents the free parameter of intra-class compactness of the balance, β represents the free parameter of inter-class separability, represents the first regularization parameter, γ represents the second regularization parameter, represents the Euclidean distance between samples in the kth balanced subset, is the weight matrix of the m-th layer neural network, is the bias vector of the m-th layer neural network.
2. The optimized classification method for imbalanced data in the field of disease prediction according to claim 1, characterized in that: In step S1, the acquired medical data samples include symptom records of different types of diseases, and a single type of medical data sample corresponds to a symptom record of a single type of disease.
3. The optimized classification method for imbalanced data in the field of disease prediction according to claim 1, characterized in that: In step S2, determining the proportion of the same features between samples includes: Identify the overlapping symptom records in the majority class and minority class medical data samples; The ratio of the number of overlapping symptom records to the total number of symptom records in the two types of medical data samples is taken as the proportion of the same features between samples.
4. The optimized classification method for imbalanced data in the field of disease prediction according to claim 1, characterized in that: In step S2, determining whether the predetermined classification standard is met includes: The discrete difference equalization characterization coefficient is compared with a preset discrete difference equalization characterization coefficient comparison threshold, If the discrete difference balanced characterization coefficient is greater than or equal to a preset discrete difference balanced characterization coefficient comparison threshold, it is determined that the predetermined classification standard is not met; If the discrete difference balanced characterization coefficient is less than a preset discrete difference balanced characterization coefficient, it is determined that the predetermined classification standard is met.
5. The optimized classification method for imbalanced data in the field of disease prediction according to claim 1, characterized in that: In step S4, for each sample in the balanced subset, a deep feature is obtained through a deep neural network, wherein the deep feature output by the deep neural network is expressed according to formula (2): , In formula (2), represents the deep features of the m-th layer of the neural network, represents the activation function, is the weight matrix of the m-th layer neural network, is the bias vector of the mth layer neural network, Represents the bias vector of the m-1th layer of the neural network.
6. The optimized classification method for imbalanced data in the field of disease prediction according to claim 1, characterized in that: In step S3, the number of medical data samples in the subset obtained by segmentation is equal to the number of minority class samples.
7. A device for applying the optimized classification method for imbalanced data in the field of disease prediction according to any one of claims 1 to 6, characterized in that: include: one or more processors; Memory; and one or more programs, The one or more programs are configured to be executed by one or more processors to execute the optimized classification method for imbalanced data in the field of disease prediction as described in any one of claims 1-6.
