A sparse bidirectional Spark method for feature selection of schizophrenia medical record images
Through the sparse bidirectional K nearest neighbor Spark method, combined with sparse constraints and bidirectional neighbor strategies, the noise and outlier problems in imbalanced data processing are solved, and the prediction performance and computing efficiency of schizophrenia are improved.
Patent Information
- Application Number
- CN202310386424.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-04-11
AI Technical Summary
When the existing nearest neighbor-based algorithm handles unbalanced data, it cannot effectively handle data with different distributions, resulting in noisy data and outliers being included in the granular model, which increases the uncertainty of the granularity and makes it difficult to accurately predict schizophrenia.
The sparse bidirectional K nearest neighbor Spark method is used to determine the optimal K value of each sample through the sparse constraint function. In the granulation process, a bidirectional neighbor strategy is used, combined with heuristic feature selection and dynamic optimization strategies, to construct a Spark-based rough set. Model that selects important brain regions for predicting schizophrenia.
It effectively solves the problem of inconsistent data distribution, improves the prediction performance of schizophrenia, reduces the interference of noisy data, and improves computational efficiency and accuracy of feature selection.
Smart Images

Figure CN116486067B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical information intelligent diagnosis, and in particular to a sparse bidirectional Spark method for feature selection of schizophrenia medical record images. Background Art
[0002] The identification of brain diseases is a hot topic in medical image analysis, and the identification of brain images has an important impact on the prediction of brain diseases. With the development of resting-state magnetic resonance imaging technology, many researchers have begun to pay attention to the functional connectivity between brain regions. A large number of studies have found that many mental illnesses are related to the functional connectivity of the patient's brain. These connections provide potential biomarkers for the clinical diagnosis of brain diseases. Schizophrenia is a common mental illness. By processing the information of the brain functional network matrix, biological information for predicting schizophrenia can be obtained, thereby improving the prediction performance of schizophrenia. Feature selection is an effective preprocessing method that removes features that are not helpful for classification and improves the generalization ability of classification.
[0003] Currently, there is no reliable diagnostic technology for diagnosing mental illness, and the high incidence of schizophrenia has become a focus of world health attention. Due to the large number of patients and the amount of data that needs to be processed, a new method is urgently needed to effectively extract brain regions that are helpful for predicting schizophrenia from a large amount of data. Feature selection can effectively help doctors analyze patients at high risk of schizophrenia, providing a new direction for the improvement of medical image analysis. Summary of the invention
[0004] Aiming at the technical problems that the traditional nearest neighbor algorithm cannot process data with different distributions, and the one-way granularity construction method will cause some noise data and outliers to be included in the granularity model, increasing the uncertainty of granularity, a sparse bidirectional K nearest neighbor Spark method for feature selection of schizophrenia medical record images is proposed. First, the optimal K value of each sample is obtained based on the sparse constraint function; second, the bidirectional mutual neighbor strategy is adopted in the granularization process. Third, the dynamic optimization strategy is applied to improve the performance of the feature selection algorithm. Finally, the proposed feature selection method is used to select brain regions to improve the prediction performance.
[0005] The inventive concept of the present invention is as follows: first, on the main node, read the large-scale schizophrenia medical record image data, pre-process and divide it, and broadcast the data subset to the corresponding child node. On the child node, the connection between samples is characterized by the sparse constraint model of Spark parallelization, and the optimal K neighbors of the sample (K is the number of neighbors) are obtained. Then, a two-way mutual neighbor strategy is introduced in the granulation process to construct a Spark rough set model based on sparse bidirectional. On the child node, the heuristic feature selection method and the dynamic optimization strategy are combined to select important brain regions for predicting schizophrenia. The beneficial effects of the present invention are as follows: the method solves the problem of inconsistent sample distribution in the data set, helps to predict schizophrenia, and provides a new direction for the improvement of medical image analysis.
[0006] The present invention is achieved by the following measures: a sparse bidirectional Spark method for feature selection of schizophrenia medical record images, comprising the following steps:
[0007] S1: On the master node Master, read the large-scale resting-state functional magnetic resonance imaging (RS-fMRI) schizophrenia medical record image dataset, store the imbalanced RS-fMRI data in the distributed files of the database, and perform data preprocessing and partitioning operations. After data preprocessing, the RS-fMRI images are divided into several brain regions using an anatomical automatic labeling template. In the brain network, each brain region represents an independent node. The average voxel time series of each node is extracted separately, and the regions with high similarity are clustered together. The clustering coefficient of each region is calculated, and the coefficient is converted into a set of one-dimensional feature vectors. These coefficients are used to represent the topological structure of the brain network, establish a brain functional connection network between brain regions, and define the node time series matrix.
[0008] The schizophrenia medical record image is converted into a four-tuple decision information system S = (U, C ∪ D, V, f), where U = {x 1 ,x 2 ,……,x n} represents the patient object set of schizophrenia medical record images in the dataset, m represents the number of patients with schizophrenia medical records, x m represents the mth sample; C = {a 1 ,a 2 ,…,a n} represents a non-empty finite set of schizophrenia pathological attributes, n represents the number of schizophrenia pathological attributes, a n represents the nth attribute; D = {d 1 ,d 2 ,……,d N} represents a non-empty finite set of schizophrenia medical record decision categories, N represents the number of schizophrenia medical record decision categories, d N represents the Nth decision category, and V = ∪ a∈C∪D V a , V a is all possible data values of the data object under the attribute a of the data set, and f:U×C∪D→V represents an information function, which assigns an information value to each schizophrenia medical record image, that is, x∈U,f(x,a)∈V a ;
[0009] S2: In the Spark framework, establish the master node Master and the slave node Slave i Read the schizophrenia medical record dataset and divide the dataset S into M schizophrenia data subsets {S 1 ,S 2 ,……,S M}, where S M represents the Mth data subset, and the sum of the data subsets is equal to the data set, and the intersection of any data subsets is empty, and broadcasts it to the corresponding child nodes. i On the left-one-out method, list the medical record image samples x i , x i Represents the i-th schizophrenia medical record image sample. The image sample x is calculated using the Spark parallelized sparse constraint model. i and other samples (x 1 ,x 2 ,……,x i-1 ,x i+1 ,……,x j ), x j Represents the jth data set, where j<n. When as many elements as possible in the row are 0, the constraint can be minimized, that is, the matrix has as many all-zero rows as possible, and the weight matrix W is obtained. The element size reflects the compactness of the sample. The optimal K neighbors of the sample are obtained by the number of non-zero elements, and the K value is obtained to construct a sparse K nearest neighbor granularity model based on Spark parallelization. Using the optimal K neighbors of all samples, a relationship matrix is generated to represent the distance relationship between each sample;
[0010] S3: In the slave node i The bidirectional mutual neighbor strategy is introduced in the paper. The overlapping area of mutual neighbor information of medical record image samples x and y is used to judge that when samples x and y belong to each other's nearest neighbor granularity, sample y is selected as the nearest neighbor of sample x, and a Spark rough set model based on sparse bidirectional is obtained. B represents a subset of a non-empty finite set of schizophrenia pathological features, and the sparse bidirectional nearest neighbor is defined as follows:
[0011] SMK B (x i )={K B (x i )|x i ∈K B (x j )∩x j ∈K B (x i )} (12)
[0012] Among them, the best neighbor of x with respect to feature subset B is x i represents the i-th sample in the schizophrenia medical record image data subset, x j represents the jth sample in the schizophrenia medical record image data subset, K B (x j ) represents the sample x j K neighbors under feature subset B, K B (x i ) represents the sample x i K neighbors under feature subset B;
[0013] S4: Combine the heuristic feature selection method and dynamic optimization strategy to select the sub-node Slave i The granularity-based model uses conditional entropy to evaluate the uncertainty of the model and finds the attribute with the maximum attribute importance SIG (a i ,B,D) corresponding attributes, where a i Represents the i-th attribute and adds it to the attribute set B. If attribute a i If there is redundancy, the next attribute with the largest attribute importance is calculated. Comparative dependency γ B (D) and γ C (D), delete the redundant attributes in attribute set B, γ B (D) represents the dependency of attribute subset B on decision class D, γ C (D) represents the dependency of conditional attribute C on decision class D. Using the dependency relationship to evaluate the approximate region, we can obtain the reduced subset set of pathological attributes calculated by each child node {R 1 ,R 2 ,……,R M}, where M represents the number of child nodes, R M represents the attribute subset obtained by the Mth child node. Feature selection is performed on the data based on the sparse bidirectional Spark parallel model, thereby selecting important brain regions for predicting schizophrenia;
[0014] As a further optimization solution of the sparse bidirectional Spark method for feature selection of schizophrenia medical record images provided by the present invention, the specific steps of step S3 are as follows:
[0015] Step S3.1: In the child node Slaver i On the left-one-out method, list the sample x i , add an L1 regularization and calculate the image sample x through the sparse constraint model parallelized by Spark i and other samples (x 1 ,x 2 ,……,x i-1 ,x i+1 ,……,x j ), the sparse constraint function is as follows:
[0016]
[0017] in is the square of the Frobenius norm, F is the way the norm is selected, T is the transpose transformation of the matrix, ||·|| 1 is the 1-norm, rho is the tuning parameter of the 1-norm, ranging from 0 to 1, W is the reconstruction weight matrix of the data set, X T Represents the transposed matrix of the dataset;
[0018] Step S3.2: Use the 1 norm to generate row sparsity in the sparse constraint function. When as many elements as possible in a row are 0 (even all-zero rows), the constraint can be minimized, that is, the matrix has as many all-zero rows as possible. The objective function is used to continuously adjust the parameters to obtain the reconstruction weight matrix W, and the sample x is obtained through the corresponding columns of the matrix. i The size of the elements in the reconstruction vector P is used to reflect the compactness of the sample. The number of non-zero elements is the optimal K value of the image sample. A sparse K nearest neighbor granularity model based on Spark parallelization is constructed.
[0019] Step S3.3: In the child node Slaver i In the above, the mutual information strategy is added to the sparse K nearest neighbor granularity model based on Spark parallelization. The overlapping area of the mutual neighbor information of sample x and sample y is used to judge that when sample x and sample y belong to each other's neighbor granularity, sample y is selected as the nearest neighbor of sample x, and the Spark model based on sparse bidirectional K nearest neighbors is obtained.
[0020] For samples x and y,
[0021] x∈K x (y)∩y∈K y(x) (14) Then sample y is included in the sparse bidirectional Spark parallel feature selection model of sample x. The samples in the model that meet the strategy are selected to construct a sparse bidirectional Spark rough set model;
[0022] Step S3.4: Based on the optimal K value and bidirectional neighbor strategy obtained by the sparse constraint function, a Spark rough set model based on sparse bidirectional is designed. x in feature subset B i Sparse bidirectional neighbors SMK B (x i ), whose upper and lower approximations are defined as
[0023]
[0024]
[0025] Step S3.5: Calculate the positive domain, negative domain and boundary domain of D with respect to B, which are defined as
[0026]
[0027]
[0028]
[0029] As a further optimization solution of the sparse bidirectional Spark method for feature selection of schizophrenia medical record images provided by the present invention, the specific steps of step S4 are as follows:
[0030] Step S4.1: Combining the heuristic feature selection method with the dynamic optimization strategy, the granularity-based model uses conditional entropy to evaluate the uncertainty of the model. i In the example, we initialize the attribute set B and set Calculate the attribute importance SIG(a i ,B,D), and select the largest attribute importance and the corresponding feature a i , the calculation formula of the conditional neighborhood entropy of attribute set B with respect to decision attribute D is as follows:
[0031]
[0032] The calculation formula for attribute importance is as follows:
[0033] SIG(a,B,D)=CE B (D)-CE B∪{a} (D) (21)
[0034] Among them, CE B∪{a}(D) represents the conditional neighborhood entropy of the decision attribute D after attribute set B is added with attribute a. i ,B,D)>0, then the corresponding feature a i Add to the selected attribute set B, B = B∪{a i};
[0035] Step S4.2: At the slave node i According to the definition of limited reduction, the dependence of the updated feature subset B on the decision feature D is calculated. B (D), determine if the calculation result satisfies γ B (D)≥γ C (D), then γ B (D) Assign to γ C (D), continue to calculate the next feature a i , feature a i The dependency with respect to feature subset B can be described as:
[0036] γ B (D)=|MKPos B (D)| / |U| (22)
[0037] Step S4.3: At the child node Slave i In the above example, if γ is satisfied, B (D)≤γ C (D) and SIG(a i ,B,D)<0, then feature a i Redundancy requires that feature a in attribute set B i Remove, B = B-{a i}. Until all attributes are compared;
[0038] Step S4.4: If there is more than one feature a in attribute set B and γ B (D)≥γ C (D), we need to verify whether there is feature redundancy. Calculate γ B-e (D) If γ B-e (D)≥γ C (D), then remove feature e from attribute set B; construct a candidate attribute set, and add its attributes to the attribute reduction set Red in sequence. Finally, the master node Master adds the child node Slave i The attribute reduction subsets obtained are intersected to obtain the attribute reduction set R, which is then unitized using the feature selection algorithm to obtain the selected brain region.
[0039] Compared with the prior art, the present invention has the following beneficial effects:
[0040] 1. Due to the large amount of data and the need for the algorithm to traverse multiple times to obtain the optimal result, it will consume a lot of time and be inefficient. The use of a distributed parallel algorithm can improve the computational efficiency. The optimal K neighbors of each sample are obtained by the number of related samples, where the correlation between samples is learned through the Spark parallelized sparse constraint model. The Spark parallelized sparse K nearest neighbor granularity is constructed based on the optimal K value of each sample. The size of the granular model can be accurately characterized by the volume of related samples. The norm is used to generate row sparsity and eliminate the interference of noise data.
[0041] 2. Due to the differences in sample distribution in the data space, the traditional K-nearest neighbor uniform K value cannot well characterize the granularity, and the classification accuracy is heavily dependent on the value of the number of neighbors K. The sparse mutual K nearest neighbor information particles are processed based on the bidirectional mutual neighbor strategy. The bidirectional mutual neighbor strategy takes into account the differences in data distribution and improves the performance of the particle.
[0042] 3. The classic heuristic feature selection method is improved by a dynamic optimization strategy for non-monotonic problems. The feature significance function of this model increases with the number of features but is not monotonic. When the feature significance measure is not monotonic, the classic heuristic feature selection may be invalid, and the performance of the feature selection algorithm is continuously improved, avoiding the performance degradation caused by non-monotonicity. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings are used to further explain the specific steps of the present invention and constitute a part of the specification.
[0044] Figure 1 This is an overall framework diagram of a sparse bidirectional Spark method for feature selection of schizophrenia medical record images according to the present invention.
[0045] Figure 2 The figure is a detailed processing flow chart of a sparse bidirectional Spark method for feature selection of schizophrenia medical record images according to the present invention.
[0046] Figure 3 The present invention is a data processing flow chart under the Spark framework of a sparse bidirectional Spark method for feature selection of schizophrenia medical record images. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments. Of course, the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.
[0048] Example 1
[0049] See also Figures 1 to 3The present invention provides a technical solution, which is a sparse bidirectional Spark method for feature selection of schizophrenia medical record images, comprising the following steps:
[0050] S1: On the master node Master, read the large-scale resting-state functional magnetic resonance imaging (RS-fMRI) schizophrenia medical record image dataset, store the imbalanced RS-fMRI data in the distributed files of the database, and perform data preprocessing and partitioning operations. After data preprocessing, the RS-fMRI images are divided into several brain regions using an anatomical automatic labeling template. In the brain network, each brain region represents an independent node. The average voxel time series of each node is extracted separately, and the regions with high similarity are clustered together. The clustering coefficient of each region is calculated, and the coefficient is converted into a set of one-dimensional feature vectors. These coefficients are used to represent the topological structure of the brain network, establish a brain functional connection network between brain regions, and define the node time series matrix.
[0051] The schizophrenia medical record image is converted into a four-tuple decision information system S = (U, C ∪ D, V, f), where U = {x 1 ,x 2 ,……,x n} represents the patient object set of schizophrenia medical record images in the dataset, m represents the number of patients with schizophrenia medical records, x m represents the mth sample; C = {a 1 ,a 2 ,...,a n} represents a non-empty finite set of schizophrenia pathological attributes, n represents the number of schizophrenia pathological attributes, a n represents the nth attribute; D = {d 1 ,d 2 ,……,d N} represents a non-empty finite set of schizophrenia medical record decision categories, N represents the number of schizophrenia medical record decision categories, d N represents the Nth decision category, and V = ∪ a∈C∪D V a , V a is all possible data values of the data object under the attribute a of the data set, and f:U×C∪D→V represents an information function, which assigns an information value to each schizophrenia medical record image, that is, x∈U,f(x,a)∈V a ;
[0052] S2: In the Spark framework, establish the master node Master and the slave node Slave iRead the schizophrenia medical record dataset and divide the dataset S into M schizophrenia data subsets {S 1 ,S 2 ,……,S M}, where S M Represents the Mth data subset, and satisfies that the sum of the data subsets is equal to the data set, satisfies that the intersection of any data subsets is empty, and broadcasts it to the corresponding child nodes.
[0053] In the child node Slaver i On the above, we get a data subset S M As shown below:
[0054] <![CDATA[a 1 ]]> <![CDATA[a 2 ]]> <![CDATA[a 3 ]]> <![CDATA[a 4 ]]> <![CDATA[a 5 ]]> d <![CDATA[x 1 ]]> 0.8710 5.7630 3.3120 2.2210 5.2200 1 <![CDATA[x 2 ]]> 0.8811 5.5540 3.3330 1.0180 4.9560 1 <![CDATA[x 3 ]]> 0.8590 6.5490 3.6700 3.6910 6.4980 2 <![CDATA[x 4 ]]> 0.8989 6.5730 4.0330 5.7800 6.2310 2 <![CDATA[x 5 ]]> 0.8883 5.2360 3.2320 8.3150 5.0560 3 <![CDATA[x 6 ]]> 0.8521 5.1750 2.8360 3.5980 5.0440 3 <![CDATA[x 7 ]]> 0.8684 5.2430 2.9740 5.6370 5.0630 3
[0055] In the child node Slaver i On the left-one-out method, list the medical record image samples x i , x i Represents the i-th schizophrenia medical record image sample. The image sample x is calculated using the Spark parallelized sparse constraint model. 1 and other samples (x 2 ,x 3 ,x 4 ,x 5 ,x 6 ,x 7 ). When as many elements as possible in a row are 0, the constraint can be minimized, that is, the matrix has as many zero rows as possible, and the weight matrix W is obtained.
[0056]
[0057] The element size reflects the compactness of the sample. The optimal K neighbors of the sample are obtained by the number of non-zero elements. The K value is 4, and a sparse K nearest neighbor granularity model based on Spark parallelization is constructed. The optimal K neighbors of all samples are used to generate a relationship matrix to represent the distance relationship between each sample. Therefore, the sparse neighborhood set obtained by correlation is {x 1 ,x 2 ,x 3 ,x 4 ,x 5};
[0058] S3: In the slave node i The bidirectional mutual neighbor strategy is introduced in the paper. The overlapping area of mutual neighbor information of medical record image samples x and y is used to judge that when samples x and y belong to each other's nearest neighbor granularity, sample y is selected as the nearest neighbor of sample x, and a Spark rough set model based on sparse bidirectional is obtained. B represents a subset of a non-empty finite set of schizophrenia pathological features, and the sparse bidirectional nearest neighbor is defined as follows:
[0059] SMK B (x i )={K B (x i )|x i ∈K B (x j )∩x j ∈K B (x i )} (23) Where, the optimal neighbor of x with respect to feature subset B is x i represents the i-th sample in the schizophrenia medical record image data subset, x j represents the jth sample in the schizophrenia medical record image data subset, K B (x j ) represents the sample x j K neighbors under feature subset B, K B (x i ) represents the sample x i K neighbors under feature subset B;
[0060] S4: Combine the heuristic feature selection method and dynamic optimization strategy to select the sub-node Slave i The granularity-based model uses conditional entropy to evaluate the uncertainty of the model and finds the attribute with the maximum attribute importance SIG (a i ,B,D) corresponding attributes, where a i Represents the i-th attribute and adds it to the attribute set B. If attribute a i If there is redundancy, the next attribute with the largest attribute importance is calculated. Comparative dependency γ B (D) and γ C (D), delete the redundant attributes in attribute set B, γ B (D) represents the dependency of attribute subset B on decision class D, γ C (D) represents the dependency of conditional attribute C on decision class D. Using the dependency relationship to evaluate the approximate region, we can obtain the reduced subset set of pathological attributes calculated by each child node {R 1 ,R 2 ,……,R M}, where M represents the number of child nodes, R M Represents the attribute subset obtained by the Mth child node;
[0061] The specific steps of step S3 are as follows:
[0062] Step S3.1: In the child node Slaveri On the left-one-out method, list the sample x i , add an L1 regularization and calculate the image sample x through the sparse constraint model parallelized by Spark i and other samples (x 1 ,x 2 ,……,x i-1 ,x i+1 ,……,x j ), the sparse constraint function is as follows:
[0063]
[0064] in is the square of the Frobenius norm, F is the way the norm is selected, T is the transpose transformation of the matrix, ||·|| 1 is the 1-norm, rho is the tuning parameter of the 1-norm, rho=0.01, W is the reconstruction weight matrix of the data set, X T Represents the transposed matrix of the dataset;
[0065] The weight matrix W of all samples in this data subset is as follows
[0066]
[0067] Step S3.2: Use the 1-norm to generate row sparsity in the sparse constraint function. The constraint can only be minimized when as many elements as possible in the row are not positive, that is, the matrix should have as many zero rows as possible. The reconstruction weight matrix W is obtained by adjusting the parameters of the objective function, and the sample x is obtained through the corresponding columns of the matrix. i The size of the elements in the reconstruction vector P is used to reflect the compactness of the sample. The number of non-zero elements is the optimal K value of the image sample. A sparse K nearest neighbor granularity model based on Spark parallelization is constructed.
[0068] Step S3.3: In the child node Slaver i In the above, the mutual information strategy is added to the sparse K nearest neighbor granularity model based on Spark parallelization. The overlapping area of the mutual neighbor information of sample x and sample y is used to judge that when sample x and sample y belong to each other's neighbor granularity, sample y is selected as the nearest neighbor of sample x, and the Spark model based on sparse bidirectional K nearest neighbors is obtained.
[0069] For samples x and y,
[0070] x∈K x (y)∩y∈K y(x) (25) Then sample y is included in the sparse bidirectional Spark parallel feature selection model of sample x. The samples in the model that meet the strategy are selected to construct a sparse bidirectional Spark rough set model;
[0071] After adding the mutual information strategy, the sparse bidirectional neighborhood of each sample is as follows:
[0072] sample Sparse Bidirectional Neighborhood Samples <![CDATA[x 1 ]]> <![CDATA[x 2 x 3 x 4 ]]> <![CDATA[x 2 ]]> <![CDATA[x 1 x 3 ]]> <![CDATA[x 3 ]]> <![CDATA[x 1 x 2 x 4 x 6 ]]> <![CDATA[x 4 ]]> <![CDATA[x 1 x 3 x 5 x 7 ]]> <![CDATA[x 5 ]]> <![CDATA[x 4 x 7 ]]> <![CDATA[x 6 ]]> <![CDATA[x 3 ]]> <![CDATA[x 7 ]]> <![CDATA[x 4 x 5 ]]>
[0073] Step S3.4: Based on the optimal K value and bidirectional mutual information strategy obtained by the sparse constraint function, a Spark rough set model based on sparse bidirectional is designed. x in feature subset B i Sparse bidirectional neighbors SMK B (x i ), whose upper and lower approximations are defined as
[0074]
[0075]
[0076] Step S3.5: Calculate the positive domain, negative domain and boundary domain of D with respect to B, which are defined as
[0077]
[0078]
[0079]
[0080] The specific steps of step S4 are as follows:
[0081] Step S4.1: Combining the heuristic feature selection method with the dynamic optimization strategy, the granularity-based model uses conditional entropy to evaluate the uncertainty of the model. i In the example, we initialize the attribute set B and set Calculate the attribute importance SIG(a i ,B,D), and select the largest attribute importance and the corresponding i-th attribute a i , the calculation formula of the conditional neighborhood entropy of attribute set B with respect to decision attribute D is as follows:
[0082]
[0083] The calculation formula for attribute importance is as follows:
[0084] SIG(a,B,D)=CE B (D)-CE B∪{a} (D) (32)
[0085] Among them, CE B∪{a} (D) represents the conditional neighborhood entropy of the decision attribute D after attribute set B is added with attribute a.
[0086] If SIG(a i ,B,D)>0, then the corresponding feature a i Add to the selected attribute set B, B = B∪{a i};
[0087] Step S4.2: On the slave node i According to the definition of limited reduction, the dependence of the updated feature subset B on the decision feature D is calculated. B (D), determine if the calculation result satisfies γ B (D)≥γ C (D), then γ B (D) Assign to γ C (D), continue to calculate the next feature a i , feature a i The dependency with respect to feature subset B can be described as:
[0088] γ B (D)=|MKPos B (D)| / |U| (33)
[0089] Step S4.3: In the slave node i In the above example, if γ is satisfied, B (D)≤γ C (D) and SIG(a i ,B,D)<0, then feature a i Redundancy requires that feature a in attribute set B i Remove, B = B-{a i}. Until all attributes are compared;
[0090] Step S4.4: If there is more than one feature a in attribute set B and γ B (D)≥γ C (D), we need to verify whether there is feature redundancy. Calculate γ B-e (D) If γ B-e (D)≥γ C (D), then remove feature e from attribute set B; construct a candidate attribute set, and add its attributes to the attribute reduction set Red in sequence. Finally, the master node Master adds the child node Slave iThe attribute reduction subsets obtained are intersected to obtain the attribute reduction set R, and the feature selection algorithm is used for unitization to obtain the selected brain region.
[0091] The traditional K-nearest neighbor algorithm is used to process imbalanced data and cannot process data with different distributions. The one-way granularity construction method will cause some noise data and outliers to be included in the granularity model, increasing the uncertainty of the granularity. A sparse bidirectional K-nearest neighbor Spark method for feature selection of schizophrenia medical record images is proposed. First, the optimal K value for each sample is obtained based on the sparse constraint function; second, the bidirectional mutual neighbor strategy is adopted in the granularization process. Third, the dynamic optimization strategy is used to improve the performance of the feature selection algorithm. Finally, the proposed feature selection method is used to select brain regions to improve the prediction performance.
Claims
1. A sparse bidirectional Spark method for feature selection of schizophrenia medical record images, It is characterized in that The following steps are involved: S1: On the master node Master, read a large-scale resting-state functional magnetic resonance imaging dataset of schizophrenia medical records, store the imbalanced RS-fMRI data in the distributed files of the database, and perform data preprocessing and partitioning operations. After data preprocessing, the RS-fMRI images are divided into several brain regions using the anatomical automatic labeling template. In the brain network, each brain region represents an independent node. The average voxel time series of each node is extracted respectively, and the regions with high similarity are clustered together. The clustering coefficient of each region is calculated, and the coefficient is converted into a set of one-dimensional feature vectors. These coefficients are used to represent the topological structure of the brain network, establish a brain functional connection network between brain regions, and define the node time series matrix; The schizophrenia medical record image is converted into a four-tuple decision information system S = (U, C ∪ D, V, f), where U = {x 1 ,x 2 ,……,x n } represents the patient object set of schizophrenia medical record images in the dataset, m represents the number of patients with schizophrenia medical records, x m represents the mth sample; C = {a 1 ,a 2 ,…,a n } represents a non-empty finite set of schizophrenia pathological attributes, n represents the number of schizophrenia pathological attributes, a n represents the nth attribute; D = {d 1 ,d 2 ,……,d N } represents a non-empty finite set of schizophrenia medical record decision categories, N represents the number of schizophrenia medical record decision categories, d N represents the Nth decision category, and V = ∪ a∈C∪D V a , V a is all possible data values of the data object under the attribute a of the data set, and f:U×C∪D→V represents an information function, which assigns an information value to each schizophrenia medical record image, that is, x∈U,f(x,a)∈V a ; S2: In the Spark framework, establish the master node Master and the slave node Slave i The communication between them reads the dataset of schizophrenia medical records and divides the dataset S into M schizophrenia data subsets {S 1 ,S 2 ,……,S M }, where S M Represents the Mth data subset, and satisfies the condition that the sum of the data subsets is equal to the data set, and the intersection of any data subsets is empty, and broadcasts it to the corresponding child nodes. i On the left-one-out method, list the medical record image samples x i , x i represents the i-th schizophrenia medical record image sample, and the image sample x is calculated through the Spark parallel sparse constraint model i and other samples (x 1 ,x 2 ,……,x i-1 ,x i+1 ,……,x j ), x j Represents the jth data set, where j < n. When as many elements as possible in the row are 0, the constraint can be minimized, that is, the matrix has as many all-zero rows as possible. The weight matrix W is obtained. The element size reflects the compactness of the sample. The optimal K neighbors of the sample are obtained through the number of non-zero elements. The K value is obtained, and a sparse K nearest neighbor granularity model based on Spark parallelization is constructed. The optimal K neighbors of all samples are used to generate a relationship matrix to represent the distance relationship between each sample. S3: In the slave node i The bidirectional mutual neighbor strategy is introduced in the paper. The mutual neighbor information overlap area of the medical record image sample x and sample y is used to judge. When sample x and sample y belong to each other's nearest neighbor granularity, sample y is selected as the nearest neighbor of sample x. The Spark rough set model based on sparse bidirectional is obtained. Let B represents a subset of a non-empty finite set of schizophrenia pathological features, and the sparse bidirectional nearest neighbor is defined as follows: SMK B (x i )={K B (x i )|x i ∈K B (x j )∩x j ∈K B (x i )} (1) Among them, the best neighbor of x with respect to feature subset B is x i represents the i-th sample in the schizophrenia medical record image data subset, x j represents the jth sample in the schizophrenia medical record image data subset, K B (x j ) represents the sample x j K neighbors under feature subset B, K B (x i ) represents the sample x i K neighbors under feature subset B; The specific steps of step S3 are as follows: Step S3.1: In the child node Slaver i On the left-one-out method, list the sample x i , add an L1 regularization and calculate the image sample x through the sparse constraint model parallelized by Spark i and other samples (x 1 ,x 2 ,……,x i-1 ,x i+1 ,……,x j ), the sparse constraint function is as follows; in is the square of the Frobenius norm, F is the way the norm is selected, T is the transpose transformation of the matrix, ||·|| 1 is the 1-norm, rho is the tuning parameter of the 1-norm, ranging from 0 to 1, W is the reconstruction weight matrix of the data set, X T Represents the transposed matrix of the dataset; Step S3.2: Use the 1-norm to generate row sparsity in the sparse constraint function. The more zero elements there are in a row, the smaller the constraint is. When all elements in a row are 0, the constraint can achieve the minimum value, that is, the matrix has as many zero rows as possible. The parameters are continuously adjusted through the objective function to obtain the reconstruction weight matrix W, and the sample x is obtained through the corresponding columns of the matrix. i The reconstruction vector P of the image is constructed, and the size of the elements in the reconstruction vector P is used to reflect the compactness of the sample. The number of non-zero elements is the optimal K value of the image sample, and a sparse K nearest neighbor granularity model based on Spark parallelization is constructed. Step S3.3: In the child node Slaver i In the above, the mutual information strategy is added to the sparse K nearest neighbor granularity model based on Spark parallelization. The overlapping area of the mutual neighbor information of sample x and sample y is used to judge that when sample x and sample y belong to each other's neighbor granularity, sample y is selected as the nearest neighbor of sample x. The Spark model based on sparse bidirectional K nearest neighbor is obtained. For sample x and sample y that satisfy x∈K x (y)∩y∈K y (x)(3) Then sample y is included in the sparse bidirectional Spark parallel feature selection model of sample x. The samples that meet the strategy in the model are selected to construct a sparse bidirectional Spark rough set model. K x (y) represents the K neighbors of sample y, K y (x) represents the K neighbors of sample x; Step S3.4: Based on the optimal K value and bidirectional neighbor strategy obtained by the sparse constraint function, a Spark rough set model based on sparse bidirectional is designed. Given an information system S, x in feature subset B i Sparse bidirectional neighbors SMK B (x i ), whose upper and lower approximations are defined as Step S3.5: Calculate the positive domain, negative domain and boundary domain of D with respect to B, which are defined as S4: Combine the heuristic feature selection method and dynamic optimization strategy to select the sub-node Slave i The granularity-based model uses conditional entropy to evaluate the uncertainty of the model and finds the attribute with the maximum attribute importance SIG (a i ,B,D) corresponding attributes, where a i Represents the i-th attribute and adds it to the attribute set B. If attribute a i If there is redundancy, continue to calculate the next attribute with the largest attribute importance and compare the dependency γ B (D) and γ C (D), delete the redundant attributes in attribute set B, γ B (D) represents the dependency of attribute subset B on decision class D, γ C (D) represents the dependency of conditional attribute C on decision class D. The dependency relationship is used to evaluate the approximate region and obtain the reduced subset set of pathological attributes calculated by each child node {R 1 ,R 2 ,……,R M }, where M represents the number of child nodes, R M It represents the attribute subset obtained by the Mth child node. The data is feature selected based on the sparse bidirectional Spark parallel model, thereby selecting the important brain regions for predicting schizophrenia; The specific steps of step S4 are as follows: Step S4.1: Combining the heuristic feature selection method with the dynamic optimization strategy, the granularity-based model uses conditional entropy to evaluate the uncertainty of the model. i In the example, we initialize the attribute set B and set Calculate the attribute importance SIG(a i ,B,D), and select the largest attribute importance and the corresponding feature a i , the calculation formula of the conditional neighborhood entropy of attribute set B with respect to decision attribute D is as follows: The calculation formula for attribute importance is as follows: SIG(a,B,D)=CE B (D)-EC B∪{a} (D) (10) Among them, CE B∪{a} (D) represents the conditional neighborhood entropy of the decision attribute D after attribute set B is added with attribute a. If SIG(a i ,B,D)>0, then the corresponding feature a i Add to the selected attribute set B, B = B∪{a i }; Step S4.2: At the child node Slave i According to the definition of limited reduction, the dependence of the updated feature subset B on the decision feature D is calculated. B (D), determine if the calculation result satisfies γ B (D)≥γ C (D), then γ B (D) Assign to γ C (D), continue to calculate the next feature a i , feature a i The dependency with respect to feature subset B can be described as: γ B (D)=|MKPos B (D)| / |U| (11) Step S4.3: At the child node Slave i In the above example, if γ is satisfied, B (D)≤γ C (D) and SIG(a i ,B,D)<0, then feature a i Redundancy requires feature a in attribute set B to be i Remove, B = B-{a i }, until all attributes are compared; Step S4.4: If there is more than one feature a in attribute set B and γ B (D)≥γ C (D), we need to verify whether there is feature redundancy. Calculate γ B-e (D), if γ B-e (D)≥γ C (D), then remove feature e from attribute set B; construct a candidate attribute set, and add its attributes to the attribute reduction set Red in sequence; finally, in the master node Master, add the child node Slave i The attribute reduction subsets obtained are intersected to obtain the attribute reduction set R, which is then unitized using the feature selection algorithm to obtain the selected brain region.
Citation Information
Patent Citations
Higher level brain glioma survival period prediction method based on sparse representation framework and higher level brain glioma survival period prediction system based on sparse representation framework
CN108319969A
Big data processing method based on granularity calculation in cloud environment
CN110969253A
