Left ventricular hypertrophy recognition method and system based on projection matrix area feature selection

Through the feature selection method based on the area of ​​projection matrix, the problem of low left ventricular hypertrophy detection accuracy and high feature selection cost is solved, high accuracy and efficient feature selection are achieved, and the recognition rate of left ventricular hypertrophy detection is improved.

CN117668611BActive Publication Date: 2024-10-18LUDONG UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311600649.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-28
Publication Date
2024-10-18
Estimated Expiration
2043-11-28

AI Technical Summary

Technical Problem

The existing technology has low accuracy when detecting left ventricular hypertrophy. The traditional 12-lead electrocardiogram data information recognition accuracy is not high, and the feature selection method has problems with local optimal solutions and high computational costs.

Method used

Using a method based on the area feature selection of the projection matrix, through the projection-type non-monotonic line search method of mixed descent directions and mixed steps on the Stiefel manifold, the least squares algorithm with orthogonal constraints is solved to obtain the prediction label to the real label The projection matrix W with the smallest vertical distance is used to select the optimal feature subset and used in the CNN-LSTM model for training.

Benefits of technology

The accuracy of left ventricular hypertrophy detection is improved to 81%, training time is saved, a higher recognition rate is obtained, and the feature selection process is interpretable and traceable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117668611B_ABST
    Figure CN117668611B_ABST
Patent Text Reader

Abstract

The present invention belongs to the technical field of medical data recognition, and discloses a left ventricular hypertrophy recognition method and system based on projection matrix area feature selection. The method adopts a projection type non-monotone line search method with mixed descending direction and mixed step length on Stiefel manifold, solves the objective function of the least squares algorithm with orthogonal constraints, obtains the projection matrix W that minimizes the vertical distance from the predicted label to the real label, draws the projection matrix W into a polygonal image, displays each feature information contained in the projection matrix W in a graphical language, calculates the area of ​​the projection matrix through a feature selection method PMA based on the projection matrix area, and evaluates each feature information feature; the present invention obtains an optimal feature subset, and the screened feature subset is put into the classification model for training, which can not only save training time but also obtain a higher recognition rate than the original data training.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of medical data recognition, and in particular relates to a left ventricular hypertrophy recognition method and system based on projection matrix area feature selection. Background Art

[0002] Left ventricular hypertrophy is generally a compensatory manifestation of certain diseases, which is common in hypertensive heart disease, congestive heart failure, etc. These diseases have a certain mortality rate. If they are discovered early and preventive measures are taken in time, the occurrence of fatalities can be reduced. Therefore, detecting whether a patient has left ventricular hypertrophy is of great significance for the prevention of heart disease. At present, the most commonly used method for detecting left ventricular hypertrophy in medicine is echocardiography. Its detection criteria include Cornell voltage and Sokolow-Lyon voltage. However, these two criteria mainly focus on the amplitude of the QRS complex and ignore other electrocardiographic characteristics of left ventricular hypertrophy. Therefore, the judgment results are not very accurate (Cornell voltage AUC: 0.57, sensitivity 48%, specificity 72%; Sokolow-Lyon voltage AUC: 0.51, sensitivity 14%, specificity 96%). In addition, the criteria for judging the condition of left ventricular hypertrophy based on electrocardiogram are very complicated, which will greatly affect the efficiency and accuracy of diagnosis due to personal reasons. Therefore, a more scientific and more accurate judgment method is urgently needed.

[0003] With the development of science and technology, deep learning and machine learning are increasingly integrated with practice. Deep learning can also be applied to the diagnosis of medical diseases. These technologies can assist doctors in making judgments about the patient's condition. For example, convolutional neural networks help extract features from ECG data, and long-term and short-term neural networks help explain the correlation between data. Therefore, it is feasible to apply deep learning to the diagnosis of left ventricular hypertrophy. Among them, the existing technology uses a fusion of CNN and LSTM networks to detect left ventricular hypertrophy. The data of 12 leads are divided into (5000, 12) ECG segments and put into the fusion model of CNN and LSTM for training. The results show that the accuracy, specificity and sensitivity have been improved compared with the detection methods of Cornell and Sokolow-Lyon, with a sensitivity of 68% and a specificity of 57%.

[0004] In the prior art, feature selection includes many methods, which can be divided into three categories: embedded, packaged, and filtered. Filtering: The advantage is that it is convenient and fast. It only needs to evaluate the features in the feature matrix directly according to certain rules. The rules can come from information theory and graph theory, such as IG, mRMR, CC, and TRC. However, the disadvantage of the filtering method is that it is too simple and does not rely on the learning algorithm. Therefore, the selected feature subset may be a local optimal solution. Package: In order to solve the problem that the filtering method is prone to local optimality, it is proposed to generate different feature subsets and use the learning algorithm that maximizes or minimizes the objective function to directly evaluate the feature subset, so that the global optimal feature subset can be found. However, the disadvantage is also very obvious. The number of feature subsets increases exponentially with the increase of features. Therefore, when there are many features, the calculation cost will be very high. Embedded: In order to find a better way, the embedded method compromises the filtering and packaging methods, adds the minimization and maximization objective function learning algorithms, but evaluates the features instead of feature subsets, so that the calculation cost can be reduced, and the features can be evaluated more accurately, thereby forming the optimal feature subset.

[0005] At present, the mainstream feature selection methods are embedded and filtered. The filtering methods IG, CC, chi-square verification, etc. are very simple and fast to evaluate features, but due to the lack of learning algorithms, the selected features are not globally optimal. Therefore, this paper studies the embedded feature selection method. There are many learning algorithms that can be selected for this method. Among them, the least squares model is more commonly used. Its objective function is to find a projection matrix W (projecting feature X to the space of label Y) so that the difference between the predicted result Yt and the actual result Y is small enough. In a physical sense, it is to make the vertical distance between the predicted result Yt and the actual result Y small enough. Most of the projection matrices W in the least squares model do not have constraints, which makes it impossible to obtain more feature information in the process of optimizing the learning algorithm, and the selected features are not optimal. Since the size of the projection matrix is ​​related to the number of features and the number of samples, the projection matrix is ​​often not a square matrix. The orthogonal constraint problem of non-square matrices is a Stiefel manifold problem, which is also a non-convex optimization problem, which is easy to lead to local optimality.

[0006] Through the above analysis, the problems and defects of the existing technology are as follows: left ventricular hypertrophy refers to myocardial fibrosis exceeding the normal ventricular wall muscle thickness. Left ventricular hypertrophy itself is not a disease, but it is often a precursor to heart disease. Therefore, detecting whether there is left ventricular hypertrophy is very meaningful for the prevention of heart disease. The traditional method of observing 12-lead electrocardiogram has low accuracy in data information recognition. Summary of the invention

[0007] In order to overcome the problems existing in the related art, the disclosed embodiments of the present invention provide a method and system for identifying left ventricular hypertrophy based on projection matrix area feature selection.

[0008] The technical solution is as follows: A left ventricular hypertrophy identification method based on projection matrix area feature selection, comprising:

[0009] S1, filtering and downsampling the acquired raw ECG data, obtaining the R peak position and preprocessing the heart beat interception;

[0010] S2, based on the preprocessed ECG data, a projection-type non-monotone line search method with mixed descent direction and mixed step size on the Stiefel manifold is used to solve the objective function of the least squares algorithm with orthogonal constraints, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label. The projection matrix W is drawn into a polygonal image, and the various feature information contained in the projection matrix W is displayed in a graphical language. The feature selection method PMA based on the area of ​​the projection matrix calculates the area of ​​the projection matrix, and evaluates the features of each feature information, selects the optimal feature subset, and traces back to mark the specific position of the optimal feature subset in the ECG signal;

[0011] S3, based on the evaluation information, obtains the ECG feature locations with high scores, composes a new ECG data set and puts it into the classifier model for training, extracts the features in the data space and time dimensions, and serially connects the features in the data space and time dimensions and applies them to the detection and identification of left ventricular hypertrophy.

[0012] Another object of the present invention is to provide a left ventricular hypertrophy recognition system based on projection matrix area feature selection, the system is implemented by the left ventricular hypertrophy recognition method based on projection matrix area feature selection, the system comprises:

[0013] ECG data preprocessing module, which filters and downsamples the acquired raw ECG data, obtains the R peak position and preprocesses the heart beat interception;

[0014] Based on the projection matrix area feature selection module, based on the preprocessed ECG data, a projection-type non-monotone line search method with mixed descent direction and mixed step size on the Stiefel manifold is used to solve the objective function of the least squares algorithm with orthogonal constraints, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label. The projection matrix W is drawn into a polygonal image, and the various feature information contained in the projection matrix W is displayed in a graphical language. The feature selection method PMA based on the projection matrix area calculates the area of ​​the projection matrix, and evaluates the characteristics of each feature information, selects the optimal feature subset, and traces back to mark the specific position of the optimal feature subset in the ECG signal;

[0015] The classifier model recognition module obtains the ECG feature locations with high scores based on the evaluation information, composes a new ECG data set and puts it into the classifier model for training, extracts the features in the data space and time dimensions, and serially connects the features in the data space and time dimensions for application in the detection and recognition of left ventricular hypertrophy.

[0016] Combining all the above technical solutions, the advantages and positive effects of the present invention are as follows: the present invention uses the proposed projection matrix area feature selection method to evaluate the ECG features, selects the optimal feature subset to form the original training data set. The CNN-LSTM fusion model is used to train the original data set, thereby obtaining the diagnosis result of left ventricular hypertrophy.

[0017] The present invention obtained real data of 1,863 patients from hospitals, including 931 patients without left ventricular hypertrophy and 932 patients with left ventricular hypertrophy, and performed a five-fold cross-validation on the processed data, with an accuracy rate of 81%.

[0018] Compared with the prior art, the present invention does not use all ECG data information, but uses the proposed projection matrix area feature selection method to select orthogonal constraints in the projection matrix W, first selects the ECG feature positions that can better highlight the condition of left ventricular hypertrophy, and then forms a new data set and puts it into the CNN-LSTM model for training. The purpose of feature selection of ECG data is to remove redundant features, features with poor effects and noise, so as to obtain an optimal feature subset, and the selected feature subset is put into the classification model for training, which can not only save training time but also obtain a higher recognition rate than the original data training. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings herein are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description, serve to explain the principles of the present disclosure;

[0020] Figure 1 is a flow chart of a method for identifying left ventricular hypertrophy based on projection matrix area feature selection provided by an embodiment of the present invention;

[0021] Figure 2 is a process diagram of ECG data preprocessing provided by an embodiment of the present invention;

[0022] Figure 3 is an original electrocardiogram waveform diagram provided by an embodiment of the present invention;

[0023] Figure 4 is a waveform diagram of a filtered ECG signal provided by an embodiment of the present invention;

[0024] Figure 5 This is a waveform diagram of an electrocardiogram signal after 10 times downsampling provided by an embodiment of the present invention;

[0025] Figure 6 The embodiment of the present invention provides a method for selecting a patient to test an R peak acquisition diagram;

[0026] Figure 7 is a representation diagram of a 2-class polygon provided by an embodiment of the present invention;

[0027] Figure 8 It is a representation diagram of 3-classification polygons provided by an embodiment of the present invention;

[0028] Fig. 9 It is a representation diagram of 4-classification polygons provided by an embodiment of the present invention;

[0029] Fig.10 It is a representation diagram of 7-classification polygons provided by an embodiment of the present invention;

[0030] Fig.11 is an iterative decline curve graph provided by an embodiment of the present invention;

[0031] Fig.12 It is a feature 0 map of the central electrical data set of a random group 2 of polygonal images provided by an embodiment of the present invention;

[0032] Fig.13 It is a characteristic diagram 7 of the central electrical data set of the random group 2 polygonal images provided by the embodiment of the present invention;

[0033] Fig.14 It is a graph 23 of the central electrical data set feature of a random group 2 of polygonal images provided by an embodiment of the present invention;

[0034] Fig.15 is a position information diagram of the optimal feature subset on the electrocardiogram provided by an embodiment of the present invention;

[0035] Fig.16 It is an AUC comparison diagram of the left ventricular hypertrophy detection method provided by the embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of the present invention, so the present invention is not limited by the specific implementation disclosed below.

[0037] The innovative points of the left ventricular hypertrophy identification method and system based on projection matrix area feature selection provided by the embodiment of the present invention are: the present invention adopts a projection-type non-monotone line search method with mixed descending direction and mixed step length on the Stiefel manifold to solve the objective function of the least squares algorithm with orthogonal constraints, which can solve the situation where the objective function reaches the local optimum and does not decrease, and obtains the projection matrix W that minimizes the vertical distance from the predicted label to the true label; innovatively draws the projection matrix W into a polygonal image, displays the feature information contained in W in a graphical language, and evaluates each feature;

[0038] The present invention adopts a projection-type non-monotone line search method to solve the Stiefel manifold problem existing in the objective function, and obtains the projection matrix W that minimizes the numerical distance between the predicted result and the true result. Innovatively, a mixed descent direction and a mixed descent step size are adopted in the projection-type non-monotone line search method. There are many possible descent directions of the objective function, as long as they are satisfied on the tangent space of the Stiefel manifold, but not all possible directions will make the objective function always descend. The use of a single descent direction and step size may cause the objective function to enter a local convergence or non-convergence situation, so how to find an accurate and effective descent direction is a very important issue. The present invention adopts a mixed descent direction and a mixed descent step size, and reduces the occurrence of local convergence and non-descent of the objective function by means of multivariate linear combinations, and can expand the search range of the descent direction.

[0039] This method is applied to the field of identifying left ventricular hypertrophy, assisting doctors in marking the location of the most effective features for identifying left ventricular hypertrophy. This location is where the difference between left ventricular hypertrophy signals and non-left ventricular hypertrophy signals is the greatest, that is, the location that can best characterize the characteristics of left ventricular hypertrophy signals. The discovery of this location can improve doctors' work efficiency in the future and make feature selection algorithms more explainable and traceable in the field of ECG-assisted identification.

[0040] The optimal feature subset selected by this method was put into a classification model consisting of a 2-layer CNN and a 2-layer LSTM. The average recognition rate was 80.9%, the sensitivity Se was 80.5%, and the specificity Sp was 81.3%, which was better than other classification recognition models.

[0041] Embodiment 1, as Figure 1 As shown, the left ventricular hypertrophy identification method based on projection matrix area feature selection provided by the embodiment of the present invention includes a data preprocessing method, how PMA performs feature selection and a CNN-LSTM model framework; specifically, the following steps are included:

[0042] S1, filtering and downsampling the acquired raw ECG data, obtaining the R peak position and preprocessing the heart beat interception;

[0043] S2, based on the preprocessed ECG data, a projection-type non-monotone line search method with mixed descent direction and mixed step size on the Stiefel manifold is used to solve the objective function of the least squares algorithm with orthogonal constraints, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label. The projection matrix W is drawn into a polygonal image, and the various feature information contained in the projection matrix W is displayed in a graphical language. The feature selection method PMA based on the area of ​​the projection matrix calculates the area of ​​the projection matrix, and evaluates the features of each feature information, selects the optimal feature subset, and traces back to mark the specific position of the optimal feature subset in the ECG signal;

[0044] S3, based on the evaluation information, obtains the ECG feature locations with high scores, composes a new ECG data set and puts it into the classifier model for training, extracts the features in the data space and time dimensions, and serially connects the features in the data space and time dimensions and applies them to the detection and identification of left ventricular hypertrophy.

[0045] Data preprocessing: The data set used for training comes from hospital clinical ECG data, a total of 755,864 heartbeat data. After obtaining the original ECG data with a sampling rate of 1000HZ, it is necessary to filter, obtain the R peak position and preprocess the heartbeat interception. Figure 2 The process of ECG data preprocessing is shown below, which specifically includes:

[0046] S1.1, filtering and downsampling. The original ECG data may contain noises such as baseline drift, power frequency interference, and myoelectric interference. The presence of noise will greatly affect the accuracy of the experiment, so the ECG data needs to be filtered first. The present invention filters through a 4th-order Butterworth bandpass filter that can filter out ECG signals below 250HZ and above 2000HZ. Butterworth is a low-pass filter with a maximum flat amplitude response. The parameters required for the Butterworth filter include the order of the filter and the cutoff frequency at -3dB. Figure 3 and Figure 4 The original ECG signal waveform and the filtered ECG signal waveform are shown respectively. It can be clearly seen that the filtered ECG signal is smoother and has more obvious features. Downsampling helps to eliminate redundancy in the signal. Removing some redundancy helps to reduce the data size and improve the network learning efficiency. Figure 5 The ECG signal waveform after 10 times downsampling is shown in the figure.

[0047] S1.2, obtain the R peak position. Use the Pan-Tompkins algorithm to identify the QRS complex in the ECG signal. The algorithm includes: The ECG signal is filtered through three filters: a bandpass filter, a differential filter, and a square filter. The bandpass filter removes the noise in the ECG signal twice to obtain a smoother waveform. The main function of the differential filter is to enhance the The slope of the wave will wave and The square filter converts all amplitudes into positive values ​​to avoid the peak pointing downward. The results of using the Pan-Tompkins algorithm to detect some data of a patient are as follows: Figure 6 Select a patient to test the R peak to obtain the following figure. The dots are the heart beats marked by the Pan-Tompkins algorithm. Peak position.

[0048] S1.3, heart beat interception. The original ECG data is filtered, downsampled, and the R peak position of the ECG data is obtained. The position difference between the peaks, find the maximum Peak spacing and minimum Peak spacing .according to The position of the peak in the array, get Peak ECG data, then ECG data form a new ECG segment. The same operation is performed on the peak positions to construct a new data set. Finally, this algorithm is applied to 377,932 heartbeat segments with left ventricular hypertrophy and 377,932 normal heartbeat segments.

[0049] In step S2 of the embodiment of the present invention, the least squares model objective function is performed, the objective function is iterated until convergence, and polygonal evaluation features are used.

[0050] S2.1, Objective function: Least squares model with orthogonal constraints.

[0051] The general formula of the least squares method is:

[0052] ,

[0053] In the formula, represents the projection matrix, where represents the number of samples, represents the number of categories, Indicates the number of features. represents the bias vector. Representation Matrix The transpose of . Represents the bias matrix, in which each row of the bias matrix has the same elements, where . represents the data matrix, represents the label matrix. The objective function in formula (1) is to find a suitable and Make the vertical distance between the true value and the predicted value as small as possible.

[0054] The objective function used in the present invention is based on the least squares method with orthogonal constraints added, as shown in formula (2):

[0055] ,

[0056] In the formula, is the projection matrix; is the set of real numbers, For the Frobenius paradigm, ; for The identity matrix of order.

[0057] S2.2, iterative optimization, including:

[0058] S2.2.1, simplify the objective function.

[0059] Find the value of formula (2) The partial derivative of It is represented by known symbols; among them,

[0060] ,

[0061] From the above formula, we can know that:

[0062] ,

[0063] Substituting this formula into formula (2), the objective function is simplified to formula (3).

[0064] ,

[0065] In the formula, is the common factor that can be extracted from the objective function, , is the identity matrix of order n, for , for , is the transpose of the matrix.

[0066] S2.2.2, use the projection type non-monotone line search method to solve the objective function formula (3) with orthogonal constraints;

[0067] The present invention introduces a projection-type non-monotonic line search method to solve the projection matrix with orthogonal constraints. .

[0068] Projection non-monotone line search method: Starting from a point on the Stiefel manifold, the point becomes a point on the Stiefel manifold after adding the orthogonal constraint to the projection matrix W. Initialize a Make ,exist Find a direction in the tangent space as the search direction ,exist Choose the appropriate step size in the direction , keep iterating, and after the step length is completed, reproject the points obtained by the iteration back to the manifold. By finding the descending direction, the appropriate step length, and reprojecting the points back to the manifold, it includes:

[0069] Step 1, search direction. For orthogonal constraints Both sides ask about The derivative of , we get the tangent space at the point on the Stiefel manifold.

[0070] ,

[0071] In the formula, To cut the space, is a Stiefel manifold, is the projection matrix, for The direction in the tangent space, and express Dimensions; is the set of real numbers, for The direction in the tangent space, for The transpose of is the number of features, is the number of categories, For the matrix The transpose of

[0072] The premise for searching the descending direction is exist In the tangent space, the descending direction should satisfy formula (4).

[0073] The present invention innovatively proposes to use a linear combination of three descending directions to form a new descending direction:

[0074] (5)

[0075] in, For the mixing direction, They are The three directions in the tangent space are all related to the gradient of the objective function. is the weight in the descending direction, satisfying the condition ,and ; The objective function is about The partial derivative matrix of for The identity matrix of order, is a point on the Stiefel manifold (where is the projection matrix in the objective function. Due to the addition of orthogonal constraints, the projection matrix becomes a point on the Stiefel manifold); for The transpose of for The transpose of

[0076] The role of this technology: In order to prevent the gradient from descending to local convergence and expand the search range of the descent direction, a mixed descent direction is used. They are The three directions in the tangent space are linearly combined to reconstruct the mixed descent direction, which effectively solves the problem that a single descent direction easily converges to a local area.

[0077] Proof direction In the projection matrix On the tangent space:

[0078] ,

[0079] Satisfies formula (4), so In the projection matrix On the tangent space:

[0080] ,

[0081] Satisfies formula (4), so In the projection matrix On the tangent space:

[0082] ,

[0083] Satisfies formula (4), so In the projection matrix On the tangent space:

[0084] In the formula, is a vector space, and we can obtain The linear combination of ; is the definition of Stiefel manifold, is the number of features, is the number of categories;

[0085] This proves the direction of the mixture exist The tangent space meets the prerequisite requirement of finding the descending direction.

[0086] Step 2, reduce the step size. Use the Barzilai-Borwein method:

[0087] ,

[0088] in, is the Barzilai-Borwein method, where is the number of iterations of the objective function, is the calculation formula for the descending step length when the iteration round is an even number, The calculation formula for the descending step length when the iteration round is an odd number is start; For the Frobenius paradigm, , To obtain The absolute value of For two iterations changes, , is a point on the Stiefel manifold, which is the projection matrix After adding the orthogonal constraint, it becomes a point on the Stiefel manifold. For two iterations The gradient change, , , is the objective function, is the gradient of the function, The number of iterations is Second time Location, The number of iterations is Second time Location, The number of iterations is hour The gradient of The number of iterations is hour The gradient of For function The gradient of is the partial derivative matrix, is the partial derivative matrix The transpose of

[0089] Step 3: Projection mapping back to the Stiefel manifold. Search direction of the point and step length ,use and Determine the next point Position on the Stefel manifold.

[0090] First, the present invention innovatively proposes that it is necessary to obtain Position in tangent space:

[0091] ,

[0092] In the formula, for The position in the tangent space, The number of iterations is The step size determined by Barzilai-Borwein is The number of iterations is The step size determined by Barzilai-Borwein is The number of iterations is The search direction when

[0093] Effect of this technology: In the process of optimizing the Stiefel manifold, local convergence and the problem of the objective function not decreasing are easy to occur. The present invention adopts a mixed descent direction (formula (5)) and a mixed descent step size (formula (7)) to reduce the occurrence of this problem.

[0094] Project the position on the tangent space back onto the Stiefel manifold:

[0095] ,

[0096] in, and Representation Matrix The dimension of and From The singular value SVD decomposition of the matrix Decompose into The identity matrix , The diagonal matrix , The identity matrix ; For the front Behavior , the rest of the rows are all 0; for The position in the tangent space, For the general The position on the tangent space is projected back onto the Stiefel manifold;

[0097] Algorithm 1 describes the specific process of updating W by the projection-based non-monotone line search method. The classic projection-based non-monotone line search method is as follows:

[0098] 1) Take the initial point ;

[0099] 2) Initialization: Parameters ;

[0100] 3) while ;

[0101] 4) While ;

[0102] 5) ;

[0103] 6) End;

[0104] 7) Calculation ;

[0105] 8) Choose step size : ;

[0106] 9) Update step size : , finally ;

[0107] 10) end;

[0108] 11) Output .

[0109] S2.3, construct polygonal evaluation features.

[0110] express Project to The projection matrix on The dimension is . A row of represents the weight that a feature plays for each category equation.

[0111] The invention proposes innovatively:

[0112] ,

[0113] ,

[0114] ,

[0115] In the formula, For the first sample Features, For each feature in the category equation The weight in For the first feature The weights played in the equations for each category, is the class equation , i.e. the predicted label For Category The probability equation for is the offset of the straight line;

[0116] In the process of optimizing the Stiefel manifold, it is easy to have problems of local convergence and non-decreasing objective function. The combination of formula (7) and formula (10) can reduce the occurrence of this problem. Formula (10) is the matrix A for solving the first sample prediction label The process of matrix Depend on Class equations. Represents the predicted label For Category The probability of, the greater the probability, the more likely the prediction label The more likely it is to belong to the category . .

[0117] Category Equation 0 ( ) is shown in formula (11):

[0118] ,

[0119] in, It represents the first sample Features, Represents each feature in the category equation The weight in Indicates that the first feature is The weights played in the equations for each category, Indicates the offset of the straight line.

[0120] The function of this technology: First, the present invention disassembles the process of least squares method prediction label, and restores the specific process of predicting label by matrix operation, as shown in formula (10). Secondly, the present invention proposes the concept of category equation, which converts the projection matrix The elements in are assigned to the corresponding class equations so that the projection matrix The role played in predicting labels is expressed in a more intuitive form, enhancing the projection matrix The interpretability of feature information can better evaluate the importance of features.

[0121] When the projection matrix Converges to the optimum, indicating that the projection matrix The parameters in are the optimal parameters that minimize the vertical distance from the calculated predicted label to the true label. The present invention uses the form of polygon area to express the weight of each feature in this process to achieve the effect of feature evaluation. The following describes how to represent polygons and calculate polygon areas.

[0122] In the embodiment of the present invention, the polygon is represented as follows: In order to conveniently calculate the area of ​​the polygon by integration, the convergent projection matrix is ​​first Perform quadrant processing to obtain a new projection matrix , .Will Each row of points in the draws a polygon, totaling polygons, each corresponding to a feature, used to represent The weight that a feature plays in the classification equation. Figure 7-Figure 10 The representations of different classified polygons are shown below.

[0123] Figure 7-Figure 10 middle, The axis indicates that the data set has categories, namely , The axis represents the feature with label 1 in The weights in the class equations, for The maximum value of the axis.

[0124] Calculating the area of ​​a polygon involves first finding a straight line between every two points:

[0125] Then, The point in axis, The figure surrounded by the axis is used as a feature Characteristic evaluation; Evaluation calculation formula:

[0126] ,

[0127] In the formula, , is the number of features, is the number of categories, is the slope of the straight line, is the offset of the straight line; For the The feature evaluation value of the feature, is the category label, is the differential symbol; each feature obtains a feature evaluation value , The larger the value, the higher the feature evaluation; Sort and get an overall evaluation of the features, including:

[0128] Take different Run the projection non-monotone line search algorithm until convergence, and calculate the descent curve of each iteration and axis, The area enclosed by the axis is obtained when the area is the smallest. value;

[0129] Get The projection matrix when the assignment is optimal , draw the polygon corresponding to each feature, calculate the area of ​​each polygon and sort them to obtain the feature evaluation results.

[0130] S2.4, PMA (a new feature selection method proposed in this invention is based on the projection matrix area feature selection method PMA (Projection Matrix Area Feature Selection).

[0131] S2.4.1 The invention proposes an innovative approach, taking different Run the projection-type nonmonotonic line search algorithm until convergence. Calculate the descent curve for each iteration (such as Fig.11 )and axis, The area enclosed by the axis. The smaller the area, the fewer times the iterations converge and the steeper the slope. value.

[0132] ,

[0133] in, , for All possible values, is the number of rounds taken by the projection-type nonmonotone line search algorithm to converge, represents the slope of the straight line, Indicates the offset of the straight line; S2.4.2, obtain The projection matrix when the assignment is optimal Draw the polygon corresponding to each feature, calculate the area of ​​each polygon and sort them to obtain the feature evaluation results.

[0134] In the embodiment of the present invention, the present invention originally proposes the overall process of PMA (Projection Matrix Area Feature Selection method based on projection matrix area), which is as follows:

[0135] Step 1. Input: Dataset , label set ;

[0136] Step 2, Output: Projection Matrix ;

[0137] Step 3, Initialization: Satisfy constraints ;

[0138] Step 4. Repeat Second-rate;

[0139] Step 5: Use Algorithm 1 to update W until convergence, and keep the converged W after each round. ;

[0140] Step 6: Get Established parameters And the optimal projection matrix W under this parameter;

[0141] Step 7: Draw the polygon of each feature according to the optimal W, calculate the area and sort it;

[0142] Step 8. Calculate ;

[0143] Step 9: Obtain feature evaluation results according to Sort by size, The larger the value, the higher the weight.

[0144] In step S3 of the embodiment of the present invention, the advantage of the convolutional neural network is that it can automatically extract effective features from the data without manual extraction, thereby avoiding the loss of effective information due to artificial reasons. The advantage of the long short-term memory network is that it can discover the interdependence between data in time series data. CNN and LSTM can extract features in the spatial and temporal dimensions of the data respectively. The serial connection of the two is applied to the detection of left ventricular hypertrophy, which helps to more accurately extract the features of the electrocardiogram data, thereby realizing the classification of whether or not the patient suffers from left ventricular hypertrophy. Therefore, the present invention adopts a model structure that integrates CNN and LSTM.

[0145] In the present invention, the main components of the CNN-LSTM model include a CNN part and a LSTM part.

[0146] Model input: After data preprocessing, the ECG data of 1863 patients become a matrix of (755864, 1, 104). The PMA feature selection method is used to evaluate these data, and a matrix of (755864, 1, 64) is obtained, which is put into the CNN+LSTM model (where 755864 represents the number of all ECG segments, 1 represents a group of 64-dimensional ECG segments, and 64 represents the optimal number of ECG features after feature selection). Batch training is set, and it is more reasonable to calculate the gradient value in one batch for update. The commonly used batch settings are 128 and 256. The present invention sets 256 data as one batch for parameter update.

[0147] CNN part: The convolutional neural network consists of two one-dimensional convolutional layers and one maximum pooling layer. The convolution kernel size of the one-dimensional convolutional layer is 64, and the activation function is ReLu, which is used to automatically extract the 64-dimensional features in the ECG data. The maximum pooling layer is used to simplify the complexity of the network and extract the main features.

[0148] LSTM part: The data processed by CNN is input into the LSTM part. The LSTM part consists of two bidirectional LSTMs. The hidden nodes of LSTM1 and LSTM2 are 128 and 64 respectively. The data with time series memory is obtained through the processing of two LSTMs.

[0149] After passing through the LSTM layer, the data is converted into 128-dimensional feature data. The 128-dimensional data is input into the Flatten layer to reduce it from 3-dimensional space to 2-dimensional space. The reduced data is input into the fully connected layer with Softmax as the activation function for classification.

[0150] It can be seen from the above embodiments that left ventricular hypertrophy can be considered as an early change of heart failure, which will lead to heart failure in the late stage. Left ventricular hypertrophy is often secondary to hypertension or valvular disease, and the more common cause is myocardial changes caused by hypertension. If left ventricular hypertrophy can be effectively identified, early warning of heart failure can be given, so the identification of left ventricular hypertrophy has important application value.

[0151] The present invention also proposes a new feature selection method based on the projection matrix area feature selection method PMA (Projection Matrix Area Feature Selection). The projection matrix W of the objective function contains a lot of feature information. The previous embedded feature selection method did not intuitively represent the feature information. The present invention innovatively uses polygonal images to intuitively represent the feature information in W, and realizes the evaluation of features by calculating the area of ​​the projection matrix, selects the optimal feature subset, and can trace back to mark the specific location of the optimal feature subset in the ECG signal.

[0152] This method is applied to the field of identifying left ventricular hypertrophy, assisting doctors in marking the location of the most effective features for identifying left ventricular hypertrophy. This location is where the difference between left ventricular hypertrophy signals and non-left ventricular hypertrophy signals is the greatest (that is, the location that can best characterize the characteristics of left ventricular hypertrophy signals). The discovery of this location can improve doctors' work efficiency in the future and make feature selection algorithms more explainable and traceable in the field of ECG-assisted identification.

[0153] The optimal feature subset selected by this method was put into a classification model consisting of a 2-layer CNN and a 2-layer LSTM. The average recognition rate was 80.9%, the sensitivity Se was 80.5%, and the specificity Sp was 81.3%, which was better than other classification recognition models.

[0154] Embodiment 2, the embodiment of the present invention provides a left ventricular hypertrophy identification system based on projection matrix area feature selection, the system comprising:

[0155] ECG data preprocessing module, used to filter and downsample the acquired original ECG data, obtain the R peak position and preprocess the heart beat interception;

[0156] The projection matrix area feature selection module is used to solve the objective function of the least squares algorithm with orthogonal constraints based on the preprocessed ECG data, using the projection-type non-monotone line search method on the Stiefel manifold, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label; the projection matrix W is drawn into a polygonal image to display the evaluation information of each feature;

[0157] The classifier model recognition module is used to obtain the ECG feature locations with high scores based on the evaluation information, compose a new ECG data set and put it into the classifier model for training, extract the features in the data space and time dimensions respectively, and serially connect the features in the data space and time dimensions for application in the detection and recognition of left ventricular hypertrophy.

[0158] To further illustrate the effects of the embodiments of the present invention, the following experiments are performed:

[0159] First, multiple data sets are used to verify the effectiveness of the PMA feature selection algorithm. Second, the PMA method is applied to select the optimal feature subset for left ventricular hypertrophy. Third, the selected optimal feature subset is used with the CNN-LSTM model to identify left ventricular hypertrophy.

[0160] In order to verify the accuracy and effectiveness of the newly proposed PMA feature selection method, four public datasets were selected as data for demonstration experiments. The detailed information of the datasets is shown in Table 1.

[0161] Table 1 Dataset:

[0162] ;

[0163] Proof experiment: (1) Experimental purpose: Test whether the PMA feature selection method is accurate in feature evaluation. (2) Classifier training: SVM method with linear kernel function (SVM (Linear)). (3) Specific steps of the experiment: First, use the PMA feature selection method to evaluate the features in the four data sets and arrange them in order from high to low scores. Delete the last feature in order and retain the features with high scores (the number of selected features can be seen in Tables 3-6) to form a new data set, of which 70% of the data is used for training and 30% of the data is used for testing. The training and test data are standardized using variance and mean. Repeat the above experiment to test the results under all preset feature numbers. (4) Feature sorting: Taking the Segment data set as an example, based on the PMA feature selection algorithm, 19 features are evaluated, and the evaluation sorting is shown in Table 2.

[0164] Table 2 Feature evaluation ranking table of Segment dataset:

[0165] ;

[0166] (5) According to the feature evaluation results in Table 2, the last features are deleted in turn, and the features with high scores are retained (that is, all features are used for the first time, and the features with poor evaluation results are deleted from the last one in the second time, and so on), and the SVM (Linear) classification model is trained. The final experimental results are shown in Table 3;

[0167] Table 3 Segment data set, after removing the worst features one by one, the experimental results of the SVM (Linear) classification model:

[0168] ;

[0169] Using the same method, the PMA algorithm was tested on three other public datasets. The experimental results are shown in Tables 4 to 6.

[0170] Table 4 Experimental results - Chess:

[0171] ;

[0172] Table 5 Experimental results - Uspst:

[0173] ;

[0174] Table 6 Experimental results - Corel_5k:

[0175] ;

[0176] (6) Experimental conclusion: It can be seen intuitively from Tables 3 to 6 that in the four public data sets, based on the PMA algorithm, the number of features corresponding to the highest recognition rate has been greatly reduced compared to the original number of features. This proves the accuracy and effectiveness of the PMA feature selection method.

[0177] In the four public datasets, as the number of features decreases, the recognition rate experiences a trend of first increasing and then decreasing. (1) In the Segment dataset, when 8 optimal features are selected from 19 original features, the recognition rate reaches the highest, and the number of features is reduced by nearly 60%, which is better than the FSOR feature selection algorithm. (2) In the Chess dataset, when 12 optimal features are selected from 36 original features, the recognition rate reaches the highest, and the number of features is reduced by nearly 67%. (3) In the Uspst dataset, when 125 optimal features are selected from 256 original features, the recognition rate reaches the highest, and the number of features is reduced by nearly 51%. (4) In the Corel_5k dataset, when 280 optimal features are selected from 423 original features, the recognition rate reaches the highest, and the number of features is reduced by nearly 34%.

[0178] By selecting the optimal features, the recognition rate of the data set is increased and the dimension reduction of the features is achieved. The performance is better than the FSOR feature selection algorithm. By comparing the performance with the FSOP algorithm, it is proved that our PMA feature selection method has more advantages both in the effectiveness of feature evaluation and in the recognition rate.

[0179] Experiment: The PMA method is used to select the optimal feature subset for left ventricular hypertrophy; the PMA feature selection method is used to evaluate the ECG data features, arrange the ECG data features in descending order of scores, and use the selected features as the input features of the CNN-LSTM model.

[0180] (1) Feature evaluation of ECG data using the PMA method. The ECG dataset used in the present invention contains 755,864 ECG segments. In order to improve the computational efficiency of feature evaluation, 10,000 ECG segments (including 5,000 ECG segments without left ventricular hypertrophy and 5,000 ECG segments with left ventricular hypertrophy) are randomly selected from the 755,864 ECG segments and feature evaluated using PMA. Four random selections were performed and numbered as random group 1, random group 2, random group 3, and random group 4. Table 7 shows the evaluation results of the PMA method using random group 2 as an example. The evaluation results are evaluated in order from large to small. The projection matrix area of ​​feature 0 of the ECG dataset in random group 2 is shown in the figure. Fig.12 As shown, the projection matrix area of ​​feature 7 of the random 2 sets of central electrocardiogram data sets is as follows Fig.13 As shown, the projection matrix area of ​​the feature 23 of the random 2 sets of central electrocardiogram data sets is Fig.14As shown; the feature evaluation results are as follows (ranked by projection matrix area), see Table 7.

[0181] Table 7. Evaluation results of two random groups of features in the left ventricular hypertrophy dataset:

[0182] Feature Location Projection Matrix Area Feature Location Projection Matrix Area Feature Location Projection Matrix Area Feature Location Projection Matrix Area 72 2.607706921708693 85 2.3029269526097 22 2.190230271632111 18 2.10660331343031 73 2.6023413452160833 26 2.2871509875295484 36 2.189855131103097 48 2.0950153604820083 71 2.5900569494446324 67 2.281816858936782 17 2.189114100141421 103 2.094239372107754 74 2.5781537566824215 33 2.280537822360123 92 2.1869026704257717 5 2.0890964299524324 70 2.5548382193116836 88 2.265661718667169 38 2.1865793294038776 50 2.082132165857037 75 2.5297189697524427 40 2.26076784426255 91 2.1856762632618802 54 2.077869218224241 44 2.5093284856040015 78 2.252948845572246 66 2.1812957278830654 4 2.0714266373897683 45 2.5008245184294977 11 2.2467694676483667 21 2.177480389899818 98 2.064232975226595 69 2.4823700684477146 89 2.2459010218649857 0 2.1744055866846166 19 2.063756691033407 76 2.460419802582828 25 2.243460625527298 53 2.1735578061057064 62 2.0634820049315072 43 2.4572295200486076 12 2.2408018296079946 1 2.1710083150677275 9 2.0485024359388966 46 2.4324775835818686 95 2.2370857764040757 52 2.1652467220556324 8 2.0473154775867566 31 2.3994916222886244 82 2.233528537067173 59 2.1607489987323505 63 2.0466894827816575 30 2.3860994130793705 90 2.230615383989218 2 2.159981577197221 57 2.043419895954584 42 2.3790907258723903 34 2.2279284669942947 14 2.159070875362829 65 2.037861697563003 77 2.3678751974391776 24 2.226246866883458 13 2.1539421205677707 100 2.0376580353897404 68 2.3677214908003634 16 2.2247179341777863 51 2.140433265574238 101 2.031988486084402 32 2.3609695323035327 23 2.2164986594116876 60 2.139253875263991 102 2.020381739791554 29 2.346663671736648 96 2.2142930404335073 58 2.1341655874696555 55 2.0196797129735664 86 2.342635615594375 39 2.211977989271237 20 2.1336879667693953 99 2.019609898696061 87 2.3359999118050894 93 2.2087819345703408 81 2.1310400702221464 64 2.0194787805512178 28 2.322179937413551 47 2.2050709608713315 97 2.1309425773952237 6 2.018003269915667 27 2.315934925708066 94 2.2023713429890943 61 2.1130266990233095 80 2.013874688286142 84 2.308474405624312 15 2.2016472510715874 10 2.1112267716194193 7 2.012316694111995 83 2.307856754192092 37 2.2004378469118917 3 2.111224020853435 49 1.9888749922092566 41 2.3058352388069063 35 2.1942108089717096 79 2.107068285690162 56 1.9882972234532112

[0183] (2) The randomly selected data are put into the CNN-LSTM classifier for training. According to the feature evaluation results of random groups 1, 2, 3, and 4, the last features are deleted in turn, and the features with high scores are retained (that is, all features are used for the first time, and the features with poor evaluation results are deleted from the last in the second time, and so on), until the feature subset with the highest recognition rate is found, and these feature subsets are put into the CNN-LSTM classifier for training. The final recognition rates of each group are shown in Tables 8, 9, 10, and 11;

[0184] Table 8 Random Group 1:

[0185] ;

[0186] Table 9 Random Group 2:

[0187] ;

[0188] Table 10 Random Group 3:

[0189] ;

[0190] Table 11 Random Group 4:

[0191] ;

[0192] From Tables 8 to 11, we can intuitively see that the change trend of the recognition rate of the ECG dataset is also that it first increases and then decreases in the process of gradually reducing the number of features. This proves that the PMA feature selection method is also effective for the ECG dataset. In addition, it can be observed that the four random experiments all reached the maximum recognition rate when the number of features was 64, and the results of feature evaluation were also similar.

[0193] At this point in the experiment, 64 features with the highest recognition rate were selected through PMA. The next step will be to use the entire data set for training to obtain the final recognition result.

[0194] The optimal feature subset selected and the CNN-LSTM model were used to identify left ventricular hypertrophy. According to the results in Tables 8 to 11, the recognition rate was the best when the number of features was 64 in the four random experiments. We selected the top 64 features according to the PMA feature selection method, and the location of the optimal feature subset on the electrocardiogram is as follows: Fig.15 As shown, Fig.15The assistant doctor marked the position of the most effective feature for identifying left ventricular hypertrophy, which is the position where the difference between the left ventricular hypertrophy signal and the non-left ventricular hypertrophy signal is the largest (that is, the position that can best characterize the characteristics of the left ventricular hypertrophy signal). The discovery of this position can improve the doctor's work efficiency in the future, making the AI-assisted identification more explainable when the PMA feature selection algorithm is applied to the identification of left ventricular hypertrophy. Currently, there is no other feature evaluation method that can retroactively mark the position of the optimal feature in the ECG signal. A new ECG data set (755864, 1, 64) was formed and put into the classifier model for training. 80% of the data was used as a training set, and 20% of the data was used as a test set for five-fold cross validation. The experimental results of the five-fold cross validation are shown in Table 12;

[0195] The following three formulas are used to calculate the accuracy (Ac), sensitivity (Se), and specificity (Sp) to evaluate the model:

[0196] ,

[0197] ,

[0198] ,

[0199] The accuracy Ac, sensitivity Se, and specificity Sp of the CNN-LSTM classifier are calculated by formula (14), formula (15), and formula (16).

[0200] Table 12 Experimental results of five-fold cross validation:

[0201] ;

[0202] The CNN+LSTM model of the present invention for detecting left ventricular hypertrophy is compared with some existing methods for detecting left ventricular hypertrophy. Fig.16 The comparison of AUC of left ventricular hypertrophy detection methods is shown;

[0203] Table 13 Comparison of left ventricular hypertrophy detection methods:

[0204] ;

[0205] The above experimental results show that: the present invention proposes a new feature selection method PMA, and proves its accuracy and effectiveness through 4 public data sets. Using the PMA feature selection method, the present invention evaluates the ECG features and selects the best 64 ECG features to form a new feature subset. Putting it into the CNN-LSTM model, the results show that the recognition rate, sensitivity and specificity have been greatly improved.

[0206] The left ventricular hypertrophy recognition algorithm based on projection matrix area feature selection not only selects the optimal features to reduce the number of features, but also helps doctors find the location of effective features for identifying left ventricular hypertrophy and improves the recognition rate of left ventricular hypertrophy.

[0207] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any modifications, equivalent substitutions and improvements made by any technician familiar with the technical field within the technical scope disclosed by the present invention and within the spirit and principles of the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for identifying left ventricular hypertrophy based on projection matrix area feature selection, characterized in that: The method comprises the following steps: S1, filtering and downsampling the acquired raw ECG data, obtaining the R peak position and preprocessing the heart beat interception; S2, based on the preprocessed ECG data, a projection-type non-monotone line search method with mixed descent direction and mixed step size on the Stiefel manifold is used to solve the objective function of the least squares algorithm with orthogonal constraints, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label. The projection matrix W is drawn into a polygonal image, and the various feature information contained in the projection matrix W is displayed in a graphical language. The feature selection method PMA based on the area of ​​the projection matrix calculates the area of ​​the projection matrix, and evaluates the features of each feature information, selects the optimal feature subset, and traces back to mark the specific position of the optimal feature subset in the ECG signal; S3, based on the evaluation information, obtain the ECG feature positions with high scores, form a new ECG data set and put it into the classifier model for training, extract the features in the data space and time dimensions, and serially connect the features in the data space and time dimensions and apply them to the detection and recognition of left ventricular hypertrophy; Step S2 specifically includes: S2.1, objective function: least squares model with orthogonal constraints; The general formula of the least squares method is: In the formula, For the Frobenius paradigm, W∈R d×k represents the projection matrix, where n represents the number of samples, k represents the number of categories, and d represents the number of features; b∈R k×1 represents the deviation vector, R is a real number set; W T ∈R k×d represents the transpose of the matrix W; Represents the bias matrix. Each row of the bias matrix has the same elements, where 1 n =(1,1,1…1) T ∈R n×1 ; X∈R d×n Represents the data matrix, Y∈R k×n represents the label matrix; the objective function in formula (1) is to find the appropriate W and b so that the vertical distance between the true value and the predicted value is as small as possible; The objective function used in the present invention is based on the least squares method with orthogonal constraints added, as shown in formula (2): In the formula, I k is the identity matrix of order k; S2.2, iterative optimization, including: S2.2.1, simplified objective function; Find the partial derivative of formula (2) with respect to b, and represent b with a known symbol; where, From the above formula, we know: Substituting this formula into formula (2), the objective function is simplified to formula (3); In the formula, H is the common factor extracted from the objective function, I n is the identity matrix of order n, 1 n is (1, 1, 1…1) T ∈R n×1 , is (1, 1, 1…1)∈R 1×n , T is the transpose of the matrix; S2.2.2, using the projection-type non-monotone line search method to solve the objective function formula (3) with orthogonal constraints; The present invention introduces a projection-type non-monotone line search method to solve the projection matrix W with orthogonal constraints; Projection non-monotone line search method: Starting from a point on the Stiefel manifold, the point is a point on the Stiefel manifold after adding orthogonal constraints to the projection matrix W. Initialize a W such that W T W=I k , find a direction in the tangent space of W as the search direction F, select a suitable step length dt in the direction of F, and iterate all the time. After the step length is completed, reproject the points obtained by the iteration back to the manifold; by finding the descending direction, the suitable step length, and reprojecting the points back to the manifold, specifically including: Step 1: Search direction for orthogonal constraint W T W=I k Take the derivatives of both sides with respect to W to obtain the tangent space at the point on the Stiefel manifold; T W St(d,k)={Z∈R d×k :W T Z+z T W=0}(4) Where, T W is the tangent space, St(d, k) is the Stiefel manifold, W is the projection matrix, Z is the direction in the tangent space of W, d and k represent the dimensions of W; R is the set of real numbers, Z is the direction in the tangent space of W, and Z T is the transpose of Z, d is the number of features, k is the number of categories, W T is the transpose of matrix W; The premise for searching the descent direction is that F is in the tangent space of W, so the descent direction should satisfy formula (4); The new descent direction is formed by linear combination of three descent directions: Among them, F is the mixed direction, F1, F2, and F3 are three directions on the W tangent space, all of which are related to the gradient of the objective function. Among them, α, β, and γ are the weights of the descending direction, satisfying the conditions α+β+γ=1, and α≥0.01, β≥0.01, and γ≥0.01; G is the partial derivative matrix of the objective function with respect to W, I d is the identity matrix of order d, W is a point on the Stiefel manifold; G T is the transpose of G, W T is the transpose of W; Prove that the direction F is in the tangent space of the projection matrix W: W T Fl+F1 T W=W T G-W T WG T W+G T W-W T GW T W=0 Formula (4) is satisfied, so F1 is in the tangent space of the projection matrix W; W T F2+F2 T W=W T G-W T WW T G+G T W-G T WW T W=0 Formula (4) is satisfied, so F2 is in the tangent space of the projection matrix W; Formula (4) is satisfied, so F3 is in the tangent space of the projection matrix W; Where, T W St(d, k) is a vector space, obtaining linear combinations of F1, F2, F3∈T W St(d,k),F∈T W St(d,k); St(d,k)={W∈R d×k |W T W=I k } is the definition of Stiefel manifold, d is the number of features, k is the number of categories; That is, it is proved that the mixed direction F is on the tangent space of W, which meets the prerequisite requirement of finding the descending direction; Step 2, decrease the step size; use the Barzilai-Borwein method: in, is the Barzilai-Borwein method, where m is the number of iterations of the objective function, is the calculation formula for the descending step length when the iteration round is an even number, The calculation formula for the descending step length when the iteration round is an odd number, starting from m = 0; For the Frobenius paradigm, |A| is the absolute value of A; S m is the change of W between two iterations, S m =W m+1 -W m , W is a point on the Stiefel manifold. This point is the projection matrix W after adding the orthogonal constraint, which becomes a point on the Stiefel manifold. m is the two iterations f(W m ) gradient change, f is the objective function, is the gradient of the function, W m+1 is the position of W when the number of iterations is m+1, W m is the position of W when the number of iterations is m, When the number of iterations is m+1, f(W m+1 ), When the number of iterations is m, f(W m ), is the gradient of function f(W), G is the partial derivative matrix, G T is the transpose of the partial derivative matrix G; Step 3: Project the map back onto the Stiefel manifold. m The search direction F and step length dt of the point, use F and dt to determine the next point W m+l Position on the Stefel manifold; Need to get W m+1 Position in tangent space: In the formula, W m+1 The position on the tangent space, dt m is the step size determined by Barzilai-Borwein when the number of iterations is m, dt m+1 is the step size determined by Barzilai-Borwein when the number of iterations is m+1, and F is the search direction when the number of iterations is m+1; Project the position on the tangent space back onto the Stiefel manifold: Among them, d and k represent the dimensions of matrix W, U and V T From The singular value SVD decomposition of the matrix Decomposed into d×d identity matrix I, d×k diagonal matrix ∑, k×k identity matrix V T ;I d,k I is the first k rows k , the rest of the rows are all 0; W m+1 The position in the tangent space, To W m+1 The position on the tangent space is projected back onto the Stiefel manifold; Algorithm 1 describes the specific process of updating W by the projection-based non-monotone line search method. The classic projection-based non-monotone line search method is as follows: 1) Take the initial point W stW T W=I k 2) Initialization: parameter dt>0,0 <dt min <dt max ,ρ,ε,μ,δ∈(0,1), P0=1,m=0, C0=f(W0) 3)while 4)While 5) dt = δdt 6)End 7) Calculation 8) Select the step size dt: 9) Update step size dt: dt = max(min(dt, dt max ), dt min ), and finally let m <m+1 10)end 11) Output W m ; S2.3, construct polygonal evaluation features; W represents the projection matrix of X onto Y, and the dimension of W is d×k; a row of W represents the weight of a feature for each category equation; W T X+b=Y Where W 00 -W 0d For each feature in the category equation Y 00 The weight in W 00 -W k0 is the weight of the first feature in the k-category equation, Y 00 -Y k0 is the category equation 0-k, that is, the probability equation for predicting label Y to be category k; b is the bias of the straight line; In the process of optimizing the Stiefel manifold, local convergence and the problem of non-decreasing objective function are prone to occur. The combination of formula (7)-formula (10) is used to reduce the occurrence of this problem. Formula (10) is the process of solving the first sample prediction label Y. The matrix A is composed of k category equations. The category equation Y k0 Indicates the probability that the predicted label Y is of category k. The greater the probability, the more likely the predicted label Y belongs to category k, k = 1, 2, 3, etc.; Category Equation Y 00 As shown in formula (11): Y 00 =W 00 X 00 +b+W 01 X 10 +b+…+W 0d X d0 +b(11) S2.4, the new feature selection method proposed in the present invention is based on the projection matrix area feature selection method PMA; S2.4.1 Take different α, β, and γ values ​​and run the projection type non-monotone line search algorithm until convergence. Calculate the area enclosed by the descending curve of each iteration and the x-axis and y-axis. The smaller the area, the fewer times the iterations descend to convergence and the steeper the descending slope. Obtain the values ​​of a, β, and γ with the smallest area. Where i = 0, 1, 2…s-1, s is all the values ​​of α, β, γ, c is the number of rounds taken by the projection type non-monotone line search algorithm to converge, a represents the slope of the line, and b represents the bias of the line; S2.4.

2. Obtain the projection matrix W when α, β, and γ are assigned the optimal values, draw the polygon corresponding to each feature, calculate the area of ​​each polygon and sort them, so as to obtain the feature evaluation result.

2. A left ventricular hypertrophy recognition system based on projection matrix area feature selection, the system is implemented by the left ventricular hypertrophy recognition method based on projection matrix area feature selection according to claim 1, characterized in that: The system includes: ECG data preprocessing module, which filters and downsamples the acquired raw ECG data, obtains the R peak position and preprocesses the heart beat interception; Based on the projection matrix area feature selection module, based on the preprocessed ECG data, a projection-type non-monotone line search method with mixed descent direction and mixed step size on the Stiefel manifold is used to solve the objective function of the least squares algorithm with orthogonal constraints, and obtain the projection matrix W that minimizes the vertical distance from the predicted label to the true label. The projection matrix W is drawn into a polygonal image, and the various feature information contained in the projection matrix W is displayed in a graphical language. The feature selection method PMA based on the projection matrix area calculates the area of ​​the projection matrix, and evaluates the characteristics of each feature information, selects the optimal feature subset, and traces back to mark the specific position of the optimal feature subset in the ECG signal; The classifier model recognition module obtains the ECG feature locations with high scores based on the evaluation information, composes a new ECG data set and puts it into the classifier model for training, extracts the features in the data space and time dimensions, and serially connects the features in the data space and time dimensions for application in the detection and recognition of left ventricular hypertrophy.

Citation Information

Patent Citations

  • Left ventricular hypertrophy detection method and system based on deep learning early stop mechanism

    CN114519370A

  • Manifold regularization width learning method and system based on relaxation labeling

    CN116188941A