Epilepsy drug resistance prediction method and apparatus, and electronic device and storage medium
By acquiring MRI and CT features, constructing and learning feature matrices, and dynamically learning feature maps, combined with the graph convolution module, the problem of inability to accurately predict drug resistance in early epilepsy patients in the existing technology is solved, and the prediction accuracy and reliability are improved. Interpretive, assisting clinical diagnosis.
Patent Information
- Application Number
- PCT/CN2023/141661
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2023-12-25
- Publication Date
- 2024-10-24
AI Technical Summary
Existing technology cannot accurately predict epilepsy drug resistance in patients with early-stage epilepsy, resulting in treatment difficulties and increased patient risk of death, and deep learning methods fail to effectively consider the structural information of the data, resulting in low prediction accuracy.
By acquiring MRI and CT features, constructing and learning feature matrices, dynamically learning feature maps, adjusting the degree of contribution between features, combining graph convolution modules for prediction, fusing data from computed tomography and magnetic resonance imaging modalities, and integrating features information for semi-supervised classification.
It improves the accuracy of epilepsy drug resistance prediction, enhances the interpretability and generalizability of the prediction model, can effectively identify drug resistance in early epilepsy patients, reduces doctor labor costs, and assists clinical diagnosis.
Smart Images

Figure CN2023141661_24102024_PF_FP_ABST
Abstract
Description
Method, device, electronic device and storage medium for predicting epilepsy drug resistance Technical Field
[0001] The present invention relates to the technical field of computer-aided diagnosis, and in particular to a method, device, electronic device and storage medium for predicting epilepsy drug resistance. Background Art
[0002] Tuberous sclerosis complex (TSC) is an autosomal dominant genetic disease caused by mutations in the TSC1 or TSC2 genes. Epilepsy is the most common and challenging symptom in TSC patients (also considered epilepsy patients), affecting approximately 85% of epilepsy patients, and nearly two-thirds of these epilepsy patients will have their first epileptic seizure around the age of one. However, 60% of epilepsy patients are inherently resistant to epilepsy drugs. Currently, doctors can only use trial and error to try different epilepsy drugs to treat epilepsy. It is impossible to detect whether an epilepsy patient has epilepsy drug resistance in a short period of time. Ensuring whether an epilepsy patient has epilepsy drug resistance requires expensive and time-consuming work, and this situation may increase the risk of death in epilepsy patients. Therefore, it is important to identify epilepsy patients with epilepsy drug resistance early.
[0003] Currently, deep learning methods have made significant contributions to the early identification of epilepsy patients with drug-resistant epilepsy. However, most deep learning methods do not consider the structural information of the data, which can easily cause overfitting during training, thereby affecting the accuracy of predicting epilepsy drug resistance.
[0004] Therefore, there is an urgent need for a prediction method that can accurately predict epilepsy drug resistance in early-stage epilepsy patients. Technical issues
[0005] The embodiments of the present invention provide a method, device, electronic device, and storage medium for predicting epilepsy drug resistance to solve the problem in the related art that the epilepsy drug resistance of early-stage epilepsy patients cannot be accurately predicted. Technical Solutions
[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0007] According to one aspect of the present invention, a method for predicting epilepsy drug resistance includes obtaining MRI features and CT features of a patient to obtain a first feature matrix of the patient; constructing and learning a second feature matrix based on the first feature matrix, screening each feature in the first feature matrix to obtain a second feature matrix of the patient; the second feature matrix is used to indicate the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; dynamically learning a feature graph based on the first and second feature matrices, adjusting the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient, and obtaining a feature relationship graph; and predicting the epilepsy drug resistance of the patient based on the feature relationship graph to obtain a prediction result for the patient.
[0008] According to one aspect of the present invention, a device for predicting epilepsy drug resistance includes a data acquisition module for acquiring MRI features and CT features of a patient to obtain a first feature matrix of the patient; a feature graph learning module for constructing and learning a second feature matrix based on the first feature matrix, screening each feature in the first feature matrix to obtain a second feature matrix of the patient; the second feature matrix is used to indicate the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; a dynamic graph learning module for dynamically learning the feature graph based on the first and second feature matrices, adjusting the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient, and obtaining a feature relationship graph; and a graph convolution module for predicting the epilepsy drug resistance of the patient based on the feature relationship graph to obtain a prediction result for the patient.
[0009] In an exemplary embodiment, the data acquisition module is further configured to preprocess the MRI features and the CT features respectively; and perform feature splicing on the preprocessed MRI features and CT features to obtain the first feature matrix.
[0010] In an exemplary embodiment, the feature graph learning module is further used to obtain a first element of the first feature matrix based on the correlation between each feature in the first feature matrix and the prediction of epilepsy drug resistance; obtain a second element of the first feature matrix based on the correlation between each feature in the first feature matrix and epilepsy drug resistance; obtain a feature graph based on the first element and the second element of the first feature matrix; each node in the feature graph represents each feature in the first feature matrix, and the path between each node represents the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; and calculate the second feature matrix of the patient from the feature graph.
[0011] In an exemplary embodiment, the dynamic graph learning module is further used to fuse the first feature matrix and the second feature matrix to obtain a feature matrix; based on the feature matrix, extract the contribution of each feature in the feature matrix to the prediction of the patient's epilepsy drug resistance to obtain a corresponding adjacency graph; calculate the similarity between each node in the adjacency graph, adjust the adjacency graph according to the similarity, and obtain a feature relationship graph; each node in the feature relationship graph represents each feature in the feature matrix, and the path between each node represents the similarity between each feature in the feature matrix.
[0012] In an exemplary embodiment, the graph convolution module is further used to perform feature propagation on the feature relationship graph to aggregate the features represented by each node, and update the path of the feature relationship graph based on each node after feature aggregation; predict the category to which each node in the feature relationship graph after the updated path belongs to obtain a prediction result for the patient.
[0013] In an exemplary embodiment, the prediction result is obtained by calling a prediction model; the prediction model is a trained machine learning model that has the ability to predict epilepsy drug resistance based on the patient's MRI features and CT features.
[0014] In an exemplary embodiment, the device is also used to obtain a training set and a test set, wherein the training set includes MRI features and CT features of multiple samples; the MRI features and CT features of the current sample in the training set are feature spliced, and the features are input into the machine learning model for training to obtain a loss value; if the loss value meets the convergence condition, the prediction model is obtained; otherwise, the model parameters of the machine learning model are updated, and the MRI features and CT features of the next sample are obtained for feature splicing, and the machine learning model after the updated model parameters is input to continue training until the loss value meets the convergence condition.
[0015] According to one aspect of the present application, an electronic device includes at least one processor and at least one memory, wherein the memory stores program instructions or codes; the program instructions or codes are loaded and executed by the processor, so that the electronic device implements the above-mentioned method for predicting epilepsy drug resistance.
[0016] According to one aspect of the present application, a storage medium stores program instructions or codes thereon, wherein the program instructions or codes are loaded and executed by a processor to implement the above-mentioned method for predicting epilepsy drug resistance.
[0017] According to one aspect of the present application, a computer program product includes program instructions or codes, the program instructions or codes are stored in a storage medium, and a processor of an electronic device reads the program instructions or codes from the storage medium, loads and executes the program instructions or codes, so that the electronic device implements the above-mentioned method for predicting epilepsy drug resistance. Beneficial effects
[0018] The beneficial effects of the technical solution provided by this application are:
[0019] In the above technical solution, the present invention solves the problem that the related technology cannot accurately predict the epilepsy drug resistance of early epilepsy patients.
[0020] Specifically, the present invention first obtains the patient's MRI features and CT features to obtain the patient's first feature matrix, constructs and learns the second feature matrix based on the first feature matrix, obtains a second feature matrix for indicating the weight of each feature, learns the similarity between the features according to the first feature matrix and the second feature matrix, obtains a feature relationship graph, predicts the patient's epilepsy drug resistance according to the feature relationship graph, and obtains the patient's prediction result. In the above process, the present invention fuses the two modalities of computed tomography (CT) modality and magnetic resonance imaging (MRI) modality, considers the structural information of the patient's feature data through a deep learning method, and dynamically learns the feature graph based on the first feature matrix and the second feature matrix to capture the interaction between the features, thereby fully integrating the patient's feature information, and using the integrated feature data for semi-supervised classification. By learning the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, the similarity between the features is learned, and the relationship between the features is dynamically adjusted to improve the accuracy of the prediction, thereby effectively solving the problem that the related art cannot accurately predict the epilepsy drug resistance of early epilepsy patients.
[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0023] FIG1 is a schematic diagram of an implementation environment according to the present application;
[0024] FIG2 is a flow chart of a method for predicting epilepsy drug resistance according to an exemplary embodiment;
[0025] FIG3 is a flow chart of step 230 in one embodiment of the embodiment corresponding to FIG2 ;
[0026] FIG4 is a flow chart of step 250 in one embodiment of the embodiment corresponding to FIG2 ;
[0027] FIG5 is a schematic diagram of the structure of the prediction model in the embodiment corresponding to FIG2;
[0028] FIG6 is a schematic diagram of a specific implementation of a method for predicting epilepsy drug resistance in an application scenario;
[0029] FIG7 is a block diagram of a device for predicting epilepsy drug resistance according to an exemplary embodiment;
[0030] FIG8 is a schematic structural diagram of a server according to an exemplary embodiment;
[0031] Fig. 9 is a block diagram of an electronic device according to an exemplary embodiment.
[0032] The above-mentioned drawings have shown clear embodiments of the present invention, which will be described in more detail below. These drawings and textual descriptions are not intended to limit the scope of the present invention in any way, but rather to illustrate the concept of the present invention for those skilled in the art by referring to specific embodiments. Best Mode for Carrying Out the Invention
[0033] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0034] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0035] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0036] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0037] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0038] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0039] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0040] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0041] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0042] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0043] [Corrected 03.01.2024 in accordance with Article 26] Deleted
[0044] The following describes in detail embodiments of the present application, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limiting the present application.
[0045] It will be understood by those skilled in the art that, unless expressly stated otherwise, the singular forms "a", "an", "said" and "the" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any units and all combinations of one or more associated listed items.
[0046] The following is an introduction and explanation of several terms involved in this application:
[0047] MRI features: Patient characteristic information contained in magnetic resonance imaging (MRI).
[0048] CT features: Patient characteristic information contained in computed tomography (CT) scans.
[0049] Drug resistance: also known as drug resistance, refers to the tolerance of microorganisms, parasites and tumor cells to the effects of chemotherapy drugs. Once drug resistance occurs, the chemotherapy effect of the drug is significantly reduced. Drug resistance can be divided into acquired resistance and natural resistance according to its cause.
[0050] As mentioned earlier, deep learning methods have made significant contributions to the prediction of patient drug resistance. Graph Convolutional Networks (GCNs) in deep learning are powerful tools for integrating diverse information and have great potential in the medical field. However, many GCNs for node classification use the entire dataset to construct a large-scale, fixed graph topology, which can easily lead to overfitting when training datasets with small sample sizes and imbalanced positive and negative samples. Furthermore, GCN algorithms require greater interpretability, and the lack of interpretability in existing related technologies limits their application in real-world scenarios.
[0051] Existing techniques also fail to consider the structural information of the data, assuming that the underlying graph is known and fixed. This assumption is fundamentally incorrect, as the graph can be noisy or even completely unknown. Furthermore, the sample features contain many redundant and noisy features, making it difficult for existing techniques to process this type of data. This can easily lead to overfitting of the model and inability to produce results that are interpretable for clinical diagnosis. This impacts the model's generalizability and interpretability, as well as clinicians' judgment, and poses challenges for accurately predicting drug resistance in epilepsy patients.
[0052] As can be seen from the above, the related technology still has the defect of not being able to accurately predict the epilepsy drug resistance of early epilepsy patients.
[0053] To this end, the method for predicting epilepsy drug resistance provided in the present application can effectively improve the accuracy of epilepsy drug resistance prediction. Accordingly, the method for predicting epilepsy drug resistance is suitable for a device for predicting epilepsy drug resistance, and the device for predicting epilepsy drug resistance can be deployed in an electronic device configured with a von Neumann architecture, for example, the electronic device can be a desktop computer, a laptop computer, a server, etc.
[0054] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0055] FIG1 is a schematic diagram of an implementation environment involved in a method for predicting epilepsy drug resistance, wherein the implementation environment includes a collection terminal 110 and a server terminal 130 .
[0056] Specifically, the acquisition end 110 acquires MRI features and CT features. The acquisition end 110 may be any electronic device having a medical image acquisition function and is not limited here.
[0057] The acquisition terminal 110 and the server terminal 130 may establish a communication connection via a wired or wireless method to achieve data transmission between the two. For example, the transmitted data may be MRI features and CT features.
[0058] The server end 130 can also be considered as a cloud, cloud platform, platform end, service end, etc. The server end 130 can be a single server, a server cluster composed of multiple servers, or a cloud computing center composed of multiple servers, so as to better provide background services to the mass data collection end 110. For example, the background service includes an epilepsy drug resistance prediction service.
[0059] With the interaction between the acquisition terminal 110 and the server terminal 130, in an application scenario, taking the example of the server terminal 130 providing an epilepsy drug resistance prediction service, after the acquisition terminal 110 obtains MRI features and CT features, it sends the MRI features and CT features to the server terminal 130. Then, the server terminal 130 can receive the MRI features and CT features sent by the acquisition terminal 110 and provide an epilepsy drug resistance prediction service based on the MRI features and CT features. Specifically, after the server terminal 130 obtains the MRI features and CT features, it can obtain a first feature matrix for the patient. Based on the first feature matrix, a second feature matrix is constructed and learned to obtain a second feature matrix for indicating the weights of each feature. Based on the first feature matrix and the second feature matrix, the similarity between features is learned to obtain a feature relationship graph. Based on the feature relationship graph, the patient's epilepsy drug resistance is predicted to obtain a prediction result for the patient.
[0060] Please refer to Figure 2. An embodiment of the present application provides a method for predicting epilepsy drug resistance. The method is applicable to an electronic device, which can be the server 130 in the implementation environment shown in Figure 1, or a desktop computer, laptop computer, server, etc.
[0061] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.
[0062] As shown in FIG2 , the method may include the following steps:
[0063] Step 210: Acquire the patient's MRI features and CT features to obtain the patient's first feature matrix.
[0064] Among them, neuroimaging methods such as computed tomography (CT) and magnetic resonance imaging (MRI) have achieved direct measurement of brain function and structure. MRI has obvious advantages in spatial resolution and radiation-free, and has played an important role in the study of epilepsy drug resistance. Among them, the patient's MRI features and CT features can be obtained by shooting and collecting through the acquisition end, and the acquisition end can be any electronic device with medical image acquisition function. Specifically, MRI images are acquired by MRI scanners, and the patient's pathological parameters displayed in the MRI images are MRI features. Similarly, CT images are acquired by CT scanners, and the patient's pathological parameters reflected in the CT images are CT features. In other words, MRI features / CT features are used to accurately describe the patient's pathological parameters in digital form.
[0065] In one possible implementation, an embodiment of the present invention first preprocesses the MRI features and the CT features, and then performs feature concatenation on the preprocessed MRI features and CT features to obtain a first feature matrix X. The first feature matrix is used to describe the correspondence between patients and features. For example, different columns of the first feature matrix represent different patients, and each row in the same column represents different pathological parameters of the same patient.
[0066] Specifically, preprocessing of MRI features and CT features includes removing features irrelevant to the prediction of epilepsy drug resistance, such as serial number, name, gender, date of birth, examination date, etc.; filling missing values, such as filling in the median when the patient's age of onset is missing; using deviation normalization to map feature values to the range [0, 1], etc., which are not limited here.
[0067] In this preprocessing manner, the embodiment of the present invention cleans the collected feature data, removes redundant and noisy features to a certain extent, reduces the risk of model overfitting, and helps to improve the accuracy of drug resistance prediction.
[0068] Step 230 : constructing and learning a second feature matrix based on the first feature matrix, screening each feature in the first feature matrix, and obtaining a second feature matrix of the patient.
[0069] The second feature matrix is used to indicate the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance.
[0070] In a possible implementation, the second feature matrix is obtained by screening each feature in the first feature matrix.
[0071] Specifically, as shown in FIG3 , step 230 may include the following steps:
[0072] Step 231 : obtaining a first element of the first feature matrix based on the correlation between each feature in the first feature matrix and the epilepsy drug resistance prediction.
[0073] Here, correlation refers to whether each feature in the first feature matrix is correlated with the prediction of epilepsy drug resistance. It can also be understood that correlation refers to whether the pathological parameters of the patient represented by each feature are correlated with the prediction of epilepsy drug resistance. For example, assuming that each feature in the first feature matrix is used to represent the structural parameters of the brain and the bone parameters, then correlation refers to whether the structural parameters of the brain are correlated with the prediction of epilepsy drug resistance. Correlation can also refer to whether the bone parameters are correlated with the prediction of epilepsy drug resistance, and so on. Based on this, the first factor is used to screen each feature in the first feature matrix and eliminate redundant features that are not related to the prediction of epilepsy drug resistance.
[0074] Step 233: Based on the correlation between each feature in the first feature matrix and epilepsy drug resistance, obtain the second element of the first feature matrix.
[0075] The correlation refers to the degree of correlation between each feature in the first feature matrix and the prediction of epilepsy drug resistance, and the second element is used to quantitatively describe the correlation between each feature in the first feature matrix and the prediction of epilepsy drug resistance.
[0076] Step 235 : Obtain a feature map based on the first element and the second element of the first feature matrix.
[0077] Each node in the feature graph represents each feature in the first feature matrix, and the paths between the nodes represent the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance.
[0078] Specifically, the first element and the second element are combined together through linear weighting to obtain the contribution degree of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, and a feature graph is obtained according to the contribution degree.
[0079] Step 237: Calculate the second feature matrix of the patient from the feature map.
[0080] Based on the above approach, by calculating the first and second elements of the first feature matrix, the correlation and degree of correlation between each feature and epilepsy drug resistance are calculated from multiple perspectives, thereby accurately and objectively obtaining the contribution of each feature to the prediction of epilepsy drug resistance in patients, laying a solid foundation for subsequent interactive learning between features and prediction of drug resistance. Furthermore, the embodiment of the present invention utilizes the convergence of the geometric power series of the matrix to efficiently calculate the second feature matrix C, and by encoding and allocating the contribution of each feature to the prediction of epilepsy drug resistance, the efficiency and accuracy of the entire prediction process are greatly improved.
[0081] Step 250 : Dynamically learning the feature graph based on the first feature matrix and the second feature matrix, adjusting the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance to obtain a feature relationship graph.
[0082] In this embodiment, dynamic feature graph learning refers to adjusting the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, thereby learning the optimal contribution of each feature to the prediction of the patient's epilepsy drug resistance, so as to better predict the patient's epilepsy drug resistance.
[0083] Specifically, as shown in FIG4 , step 250 may include the following steps:
[0084] Step 251: The first feature matrix and the second feature matrix are fused to obtain a feature matrix.
[0085] Specifically, each node in the feature relationship graph represents each feature in the feature matrix, and the path between each node represents the similarity between the nodes at both ends.
[0086] Step 253: Based on the feature matrix, extract the contribution of each feature of the feature matrix to the prediction of epilepsy drug resistance to obtain a corresponding adjacency graph.
[0087] Step 255 , calculate the similarity between the nodes in the adjacency graph, adjust the adjacency graph according to the similarity, and obtain a feature relationship graph.
[0088] Among them, each node of the feature relationship graph represents each feature in the feature matrix, and the path between each node represents the similarity between each feature in the feature matrix.
[0089] Specifically, the similarity between the nodes in the adjacency graph is calculated by a distance measurement algorithm, and the paths between the nodes in the adjacency graph are adjusted according to the similarity, thereby obtaining a feature relationship graph.
[0090] In one possible implementation, the distance metric algorithm includes but is not limited to Euclidean distance, Hamming distance, Manhattan distance, etc., which are not limited here. Of course, the similarity calculation method is not limited to the distance metric algorithm, and can also be cosine similarity, Jaccard coefficient, Pearson correlation coefficient, etc.
[0091] The specific calculation formula is as follows:
[0092] .
[0093] in, represents the learnable parameters, represents the Euclidean distance between nodes in the feature matrix, Represents the similarity between each element of the feature matrix.
[0094] In this way, by constructing a graph adjacency matrix and calculating the similarity between each feature, a feature relationship graph is obtained that can intuitively and accurately reflect the relationship between each feature, which facilitates the subsequent propagation and learning of the features represented by each node in the feature relationship graph, thereby improving the accuracy and efficiency of epilepsy drug resistance prediction.
[0095] Step 270 : predicting the patient's epilepsy drug resistance based on the characteristic relationship graph to obtain a prediction result for the patient.
[0096] Among them, the patient's prediction results are used to indicate whether the patient has epilepsy drug resistance.
[0097] In one possible implementation, an embodiment of the present invention first performs feature propagation on the feature relationship graph to aggregate the features represented by each node, updates the path of the feature relationship graph based on each node after feature aggregation, and then predicts the category to which each node in the feature relationship graph after the updated path belongs to obtain the patient's prediction result.
[0098] Among them, the embodiment of the present invention propagates the features represented by each node in the feature relationship graph through nonlinear transformation and layer-by-layer training of the feature relationship graph to aggregate the information of each feature, and then obtains the path between each node in the feature relationship graph after sufficient data learning. Finally, based on the feature relationship graph after the updated path, the epilepsy drug resistance is predicted, thereby accurately and efficiently obtaining the final prediction result for the patient.
[0099] From the above, it can be seen that the embodiment of the present invention fuses the two modalities of computed tomography (CT) and magnetic resonance imaging (MRI), considers the structural information of the patient's feature data through a deep learning method, and dynamically learns the feature graph based on the first feature matrix and the second feature matrix to capture the interaction between the features, thereby fully integrating the patient's feature information, and using the integrated feature data for semi-supervised classification. By learning the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, the similarity between the features is learned, and the relationship between the features is dynamically adjusted to improve the accuracy of the prediction, thereby effectively solving the problem in the related art that the epilepsy drug resistance of early epilepsy patients cannot be accurately predicted.
[0100] In one exemplary embodiment, the epilepsy drug resistance prediction method provided by the present invention is implemented using a prediction model. This prediction model is a trained machine learning model capable of predicting epilepsy drug resistance based on a patient's MRI and CT features. Figure 5 shows a schematic diagram of the prediction model structure in one embodiment. In Figure 5, the prediction model includes a feature graph construction module, a feature graph learning module, a dual-graph fusion module, a dynamic graph learning module, a graph convolution module, and an output layer.
[0101] The following is a detailed description of the training process of the prediction model in conjunction with the structure of the prediction model in FIG5 :
[0102] As shown in FIG5 , in an exemplary embodiment, the training process of the prediction model may include the following steps:
[0103] Step S1: Obtain training set and test set.
[0104] Among them, both the training set and the test set include MRI features and CT features of multiple samples.
[0105] In step S2, the MRI features and CT features of multiple samples in the training set are concatenated and input into the machine learning model for training to obtain the loss value.
[0106] Specifically, the loss function uses the cross entropy loss function, and the calculation formula is as follows:
[0107] .
[0108] in, Indicates the The true output value of the sample, and Indicates the The predicted output value for each sample.
[0109] Furthermore, in order to learn more accurate feature relationships during model training, the inventors introduced an implicit regularization mechanism by adding parameters Limit the deviation from the previous step during training.
[0110] The specific formula is as follows:
[0111] .
[0112] Among them, t represents the current convolution calculation in the graph convolution process, t-1 represents the previous convolution calculation in the graph convolution process, X represents the first feature matrix, C represents the second feature matrix, and H represents the feature matrix.
[0113] In one possible implementation, the specific parameters of model training are set as follows: dropout rate is 0.1, regularization is , learning rate is 0.005, epochs is 50, and hyperparameter k is 5, for In order to eliminate random errors, the inventors randomly split the training set and repeated the training 20 times, and took the average of the 20 training results as the final result.
[0114] Step S3: If the loss value meets the convergence condition, the prediction model is obtained.
[0115] In step S4, if the loss value does not meet the convergence conditions, the model parameters of the machine learning model are updated, and the MRI features and CT features of the next sample are obtained for feature splicing, and the features are input into the machine learning model to continue training until the loss value meets the convergence conditions.
[0116] After the model is trained, the MRI features and CT features of each sample in the test set are spliced and input into the prediction model for testing to evaluate the training effect of the prediction model.
[0117] In addition, considering the lack of interpretability in existing related technologies, the inventors introduced an interpretability mechanism in the present invention. Specifically, the relevance score of each feature is obtained based on the second feature matrix C. The higher the score, the more important the feature is, that is, the greater the contribution of the feature to the prediction of epilepsy drug resistance of the patient. The calculation formula is as follows:
[0118] .
[0119] Among them, e is a natural constant, Indicates the Features, represents the relevance score of the i-th feature.
[0120] Based on the above operation, the present invention can obtain the first 20 The 20 most important eigenvalues that play a role in prediction are obtained, and the eigenvalues correspond to the brain areas on CT or MRI, which greatly improves the clinical interpretability of the prediction results of epilepsy drug resistance method.
[0121] Continuing to refer to FIG5 , the process of predicting epilepsy drug resistance is described in detail as follows:
[0122] In the first step, the MRI features and CT features of multiple samples are spliced and input into the feature map construction module to construct a first feature matrix X corresponding to the samples and features, and the corresponding feature map S is obtained according to the first feature matrix X.
[0123] In the second step, the feature map S is input into the feature map learning module, and the features in the first feature matrix X are screened through feature map learning to obtain a second feature matrix C containing the contribution of each feature to the prediction of epilepsy drug resistance.
[0124] Specifically, the first element indicating the correlation of each feature with respect to the prediction of epilepsy drug resistance is first calculated, and then the first element indicating the degree of correlation of each feature with respect to the prediction of epilepsy drug resistance is calculated. The second feature matrix C of the patient is calculated based on the first element and the second element of the first feature matrix.
[0125] The calculation formula for the first element of the first characteristic matrix X is as follows:
[0126] .
[0127] in, and Respectively represent The first sample The mean and standard deviation of the features, Indicates the The Fisher criterion of features is used to filter redundant features.
[0128] The calculation formula for the second element of the first characteristic matrix X is as follows:
[0129] .
[0130] in, represents the joint probability distribution, Indicates the Class features, Represents the class label of the features carried by the samples in the training set, Indicates the Features belong to features The probability of Indicates the Features belong to the class label The probability of Indicates the The mutual information of the features is used to quantitatively measure the correlation between each feature and epilepsy drug resistance.
[0131] The specific calculation formula for the patient's second characteristic matrix C is calculated based on the first element and the second element of the first characteristic matrix as follows:
[0132] .
[0133] in, is a weighting coefficient, Indicates the The first element of the characteristic, Representation characteristics Contribution to the prediction of epilepsy drug resistance, Represents the second characteristic matrix Rank The contribution of the features represented by the column elements to the prediction of epilepsy drug resistance, and represents the parameters of the geometric power series calculation of the matrix, Represents the score of each feature in the second feature matrix.
[0134] In the third step, the first feature matrix X and the second feature matrix C are input into the dual-image fusion module for feature fusion to obtain the feature matrix H.
[0135] The specific calculation formula is as follows:
[0136] .
[0137] Where X represents the first characteristic matrix, C represents the second characteristic matrix, and H represents the characteristic matrix.
[0138] The fourth step is to input the feature matrix H into the dynamic graph learning module to obtain the adjacency graph A. The similarity between each node in the adjacency graph A is calculated by the K-nearest neighbor algorithm. The paths between each node in the adjacency graph are simplified according to the similarity, and then the feature relationship graph is obtained. .
[0139] Among them, the feature relationship diagram The path represents the similarity between features. The existence of a path between nodes indicates that the nodes at both ends of the path are similar, and the absence of a path indicates that the nodes at both ends of the path are dissimilar.
[0140] Step 5: The feature relationship diagram The input graph convolution module aggregates the features of each node neighborhood through feature propagation, and obtains the output matrix H after performing layer-by-layer graph convolution.
[0141] Specifically, the formula for feature propagation on the feature relationship graph is as follows:
[0142] .
[0143] in, Indicates the The feature matrix H of the layer, Indicates the The learnable matrix C of the layer, Represents a feature relationship diagram, Representing feature relationship graph The degree matrix of represents the activation function, Represents the output matrix.
[0144] In the sixth step, the output matrix H is used in the output layer through the activation function to predict the patient's epilepsy drug resistance and obtain the patient's prediction result Y.
[0145] The calculation formula for the prediction result is as follows:
[0146] .
[0147] in, represents the activation function, Indicates the first Row and Elements of the column, Indicates the first Rank The predicted results of the column elements.
[0148] After the training is completed, a prediction model is obtained that has been trained and has the ability to predict epilepsy drug resistance based on the patient's MAI characteristics and CT characteristics, overcoming the problem in related technologies that cannot accurately predict epilepsy drug resistance in early epilepsy patients.
[0149] Figure 6 is a schematic diagram of a specific implementation of a method for predicting epilepsy drug resistance in an application scenario. In this application scenario, CT data and MRI data are collected from a patient. The collected CT and MRI images are preprocessed and feature extracted. The extracted CT and MRI features are then concatenated and input into a model to predict the patient's epilepsy drug resistance, resulting in a prediction result.
[0150] In this application scenario, an embodiment of the present invention fuses the two modalities of computed tomography (CT) and magnetic resonance imaging (MRI), considers the structural information of the patient's feature data through a deep learning method, and captures the interaction between the features through dynamic learning of feature graphs based on the first feature matrix and the second feature matrix, thereby fully integrating the patient's feature information. The integrated feature data is used for semi-supervised classification, and the similarity between the features is learned by learning the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, thereby dynamically adjusting the relationship between the features to improve the accuracy of the prediction, thereby effectively solving the problem in the related art that the epilepsy drug resistance of early epilepsy patients cannot be accurately predicted.
[0151] The following are embodiments of the device of the present application, which can be used to implement the method for predicting epilepsy drug resistance involved in the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiment of the method for predicting epilepsy drug resistance involved in the present application.
[0152] Please refer to FIG. 7 . An embodiment of the present application provides a device 700 for predicting epilepsy drug resistance, including but not limited to: a data acquisition module 710 , a feature graph learning module 730 , a dynamic graph learning module 750 , and a graph convolution module 770 .
[0153] The data acquisition module 710 is used to acquire the MRI features and CT features of the patient to obtain the first feature matrix of the patient.
[0154] The feature map learning module 730 is used to construct and learn the second feature matrix based on the first feature matrix, screen each feature in the first feature matrix, and obtain the second feature matrix of the patient.
[0155] The dynamic graph learning module 750 is used to dynamically learn the feature graph based on the first feature matrix and the second feature matrix, adjust the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, and obtain a feature relationship graph.
[0156] The graph convolution module 770 is used to predict the patient's epilepsy drug resistance based on the feature relationship graph to obtain the patient's prediction result.
[0157] In an exemplary embodiment, the data acquisition module 710 is further configured to preprocess the MRI features and the CT features respectively; and perform feature concatenation on the preprocessed MRI features and CT features to obtain the first feature matrix.
[0158] In an exemplary embodiment, the feature graph learning module 730 is further configured to obtain a first element of the first feature matrix based on the correlation between each feature in the first feature matrix and the prediction of epilepsy drug resistance; obtain a second element of the first feature matrix based on the correlation between each feature in the first feature matrix and epilepsy drug resistance; obtain a feature graph based on the first element and the second element of the first feature matrix; each node in the feature graph represents each feature in the first feature matrix, and the paths between each node represent the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; and obtain a second feature matrix of the patient by calculating the feature graph.
[0159] In an exemplary embodiment, the dynamic graph learning module 750 is further configured to fuse the first feature matrix and the second feature matrix to obtain a feature matrix; based on the feature matrix, extract the contribution of each feature in the feature matrix to the prediction of the patient's epilepsy drug resistance to obtain a corresponding adjacency graph; calculate the similarity between each node in the adjacency graph, and adjust the adjacency graph based on the similarity to obtain a feature relationship graph; each node in the feature relationship graph represents each feature in the feature matrix, and the paths between each node represent the similarity between each feature in the feature matrix.
[0160] In an exemplary embodiment, the graph convolution module 770 is further used to perform feature propagation aggregation on the feature relationship graph to obtain the features represented by each node, and update the path of the feature relationship graph based on each node after feature aggregation; predict the category to which each node in the feature relationship graph after the updated path belongs to obtain a prediction result for the patient.
[0161] In an exemplary embodiment, the prediction result is obtained by calling a prediction model; the prediction model is a trained machine learning model that has the ability to predict epilepsy drug resistance based on the patient's MRI features and CT features.
[0162] In an exemplary embodiment, the device 700 is also used to obtain a training set and a test set, wherein the training set includes MRI features and CT features of multiple samples; the MRI features and CT features of the current sample in the training set are feature spliced, and the features are input into the machine learning model for training to obtain a loss value; if the loss value meets the convergence condition, the prediction model is obtained; otherwise, the model parameters of the machine learning model are updated, and the MRI features and CT features of the next sample are obtained for feature splicing, and the machine learning model after the updated model parameters is input to continue training until the loss value meets the convergence condition.
[0163] It should be noted that the device for predicting epilepsy drug resistance provided in the above embodiment only uses the division of the above functional modules as an example to illustrate the prediction of epilepsy drug resistance. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device for predicting epilepsy drug resistance will be divided into different functional modules to complete all or part of the functions described above.
[0164] In addition, the device for predicting epilepsy drug resistance provided in the above embodiment and the method for predicting epilepsy drug resistance are of the same concept, wherein the specific manner in which each module performs operations has been described in detail in the method embodiment and will not be repeated here.
[0165] Fig. 8 shows a schematic diagram of the structure of a server according to an exemplary embodiment. The server is applicable to the server end 130 in the implementation environment shown in Fig. 1 .
[0166] It should be noted that the server is only an example adapted for the present application and should not be considered to provide any limitation on the scope of use of the present application. The server should not be interpreted as needing to rely on or necessarily having one or more components in the exemplary server 2000 shown in FIG8 .
[0167] The hardware structure of the server 2000 may vary greatly due to different configurations or performances. As shown in FIG8 , the server 2000 includes a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .
[0168] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the server 2000 .
[0169] The interface 230 includes at least one wired or wireless network interface for interacting with external devices, such as the interaction between the terminal 100 and the server 200 in the implementation environment shown in FIG1 .
[0170] Of course, in other examples adapted by this application, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, as shown in FIG11 , which is not specifically limited here.
[0171] The memory 250 serves as a carrier for resource storage and can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon include an operating system 251, application 253 and data 255, etc. The storage method can be temporary storage or permanent storage.
[0172] Among them, the operating system 251 is used to manage and control the various hardware devices and application programs 253 on the server 200 to enable the central processing unit 270 to calculate and process the massive data 255 in the memory 250. It can be Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0173] Application 253 is a computer program that performs at least one specific task based on operating system 251. It may include at least one module (not shown in FIG8 ), each of which may include a computer program for server 2000. For example, a device for predicting epilepsy drug resistance may be considered an application 253 deployed on server 2000.
[0174] The data 255 may be MRI features and CT features stored on a disk, etc., stored in the memory 250 .
[0175] The central processing unit 270 may include one or more processors and is configured to communicate with the memory 250 via at least one communication bus to read computer programs stored in the memory 250, thereby performing operations and processing on the massive amount of data 255 in the memory 250. For example, the method for predicting epilepsy drug resistance may be implemented by the central processing unit 270 reading a series of computer programs stored in the memory 250.
[0176] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.
[0177] Please refer to Figure 9. An electronic device 4000 is provided in an embodiment of the present application. The electronic device 4000 may include: (needs to be adaptively modified according to the specific circumstances of the present application) a desktop computer, a laptop computer, a server, etc.
[0178] In FIG. 9 , the electronic device 4000 includes at least one processor 4001 , at least one communication bus 4002 , and at least one memory 4003 .
[0179] The processor 4001 and the memory 4003 are connected, for example, via a communication bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0180] Processor 4001 can be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the present disclosure. Processor 4001 can also be a combination that implements computing functions, such as a combination of one or more microprocessors, or a combination of a DSP and a microprocessor.
[0181] Communication bus 4002 may include a path for transmitting information between the aforementioned components. Communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, for example. Communication bus 4002 may be divided into an address bus, a data bus, a control bus, and so on. For ease of illustration, FIG9 shows only a single thick line, but this does not indicate that there is only one bus or only one type of bus.
[0182] The memory 4003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0183] The memory 4003 stores a computer program, and the processor 4001 reads the computer program stored in the memory 4003 through the communication bus 4002 .
[0184] When the computer program is executed by the processor 4001 , the method for predicting epilepsy drug resistance in the above-mentioned embodiments is implemented.
[0185] In addition, an embodiment of the present application provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for predicting epilepsy drug resistance in the above-mentioned embodiments is implemented.
[0186] In an embodiment of the present application, a computer program product is provided, comprising a computer program stored in a storage medium. A processor of a computer device reads the computer program from the storage medium and executes the computer program, causing the computer device to perform the method for predicting epilepsy drug resistance described in each of the above embodiments.
[0187] Compared with the related art, the present invention has the following beneficial effects:
[0188] 1. The present invention proposes a method for predicting epilepsy drug resistance. The present invention fuses two modalities, computed tomography (CT) and magnetic resonance imaging (MRI), and considers the structural information of patient feature data through a deep learning method. Dynamic learning of feature maps based on a first feature matrix and a second feature matrix is used to capture the interaction between each feature, thereby fully integrating the patient's feature information. The integrated feature data is used for semi-supervised classification. The similarity between features is learned by learning the contribution of each feature in the first feature matrix to the prediction of the patient's epilepsy drug resistance, and the relationship between features is dynamically adjusted to improve the accuracy of the prediction, thereby effectively solving the problem of the inability to accurately predict epilepsy drug resistance in early-stage epilepsy patients in the related art.
[0189] 2. The present invention provides more clinical interpretability for disease prediction, thereby improving the generalizability, interpretability and judgment of the prediction model and clinicians, and contributing to the prediction and classification of epilepsy drug treatment outcomes in epilepsy patients.
[0190] 3. This invention can dynamically adjust the graph structure of GCN to better detect the drug resistance of epilepsy patients in the early stage by learning the optimal underlying graph between samples. At the same time, it can explain the diagnosis results through interpretable feature learning, which is of great significance to improving diagnostic efficiency, diagnostic accuracy and evaluation standardization.
[0191] 4. This paper proposes a novel dynamic GCN architecture, an end-to-end structure for early prediction of epilepsy drug treatment outcomes in epilepsy patients. It can accurately diagnose epilepsy drug resistance in epilepsy patients at an early stage. This GCN architecture combines interpretable feature graph learning and dynamic graph learning. It can automatically select features and adjust the similarity and dissimilarity relationships between all subjects through the network to learn the optimal underlying graph structure between samples, thereby improving diagnostic accuracy. Simply input the dataset into the pre-trained GCN network to achieve automatic early prediction of epilepsy drug resistance.
[0192] 5. The present invention can automatically select optimal features and performs well on data with small sample size, high dimensionality, imbalance, significant cross-class overlap, and noise (such as epilepsy patient datasets). The model can screen out the n brain regions corresponding to the top n most important features for diagnosing epilepsy drug treatment outcomes in epilepsy patients to achieve brain region interpretability. It is also useful for interpreting neuroimaging data used for diagnosing other diseases.
[0193] 6. The present invention solves the problem of small samples in medical data. Deep learning methods often require a large number of data samples to support model training. The model proposed in the present invention is suitable for small samples and can also solve the problem of imbalance between positive and negative samples. It is a robust model.
[0194] 7. This invention reduces the labor costs of doctors. Doctors only need to collect MRI and CT data from patients, pre-process the data through software, and then input the trained graph convolutional neural network. This can quickly predict the outcome of epilepsy drug treatment for epilepsy patients and assist doctors in diagnosis.
[0195] It should be understood that although the steps in the flowcharts of the accompanying drawings are shown in sequence as indicated by the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the flowcharts of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0196] The above content is only a preferred exemplary embodiment of the present invention and is not intended to limit the implementation scheme of the present invention. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main concept and spirit of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection required by the claims.
Claims
1. A method for predicting epilepsy drug resistance, characterized in that: The method comprises: Acquire MRI features and CT features of the patient to obtain a first feature matrix of the patient; constructing and learning a second feature matrix based on the first feature matrix, screening each feature in the first feature matrix, and obtaining a second feature matrix of the patient; the second feature matrix is used to indicate the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; According to the dynamic learning of the feature graphs performed on the first feature matrix and the second feature matrix, the contribution of each feature in the first feature matrix to the prediction of the epilepsy drug resistance of the patient is adjusted to obtain a feature relationship graph; The epilepsy drug resistance of the patient is predicted according to the characteristic relationship diagram to obtain a prediction result of the patient.
2. The method according to claim 1, characterized in that The step of acquiring the MRI features and CT features of the patient to obtain a first feature matrix of the patient includes: Preprocessing the MRI features and the CT features respectively; The preprocessed MRI features and CT features are concatenated to obtain the first feature matrix.
3. The method according to claim 1, characterized in that The constructing and learning of the second feature matrix based on the first feature matrix, screening each feature in the first feature matrix, and obtaining the second feature matrix of the patient includes: Based on the correlation between each feature in the first feature matrix and the prediction of epilepsy drug resistance, obtaining a first element of the first feature matrix; Based on the correlation between each feature in the first feature matrix and epilepsy drug resistance, obtaining a second element of the first feature matrix; A feature graph is obtained according to the first element and the second element of the first feature matrix; each node in the feature graph represents each feature in the first feature matrix, and the path between each node represents the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; A second feature matrix of the patient is calculated from the feature map.
4. The method according to claim 1, characterized in that The dynamic learning of the feature graph based on the first feature matrix and the second feature matrix adjusts the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient to obtain a feature relationship graph, including: Merging the first feature matrix and the second feature matrix to obtain a feature matrix; Based on the feature matrix, extract the contribution of each feature in the feature matrix to the prediction of epilepsy drug resistance of the patient to obtain a corresponding adjacency graph; The similarity between each node in the adjacency graph is calculated, and the adjacency graph is adjusted according to the similarity to obtain a feature relationship graph; each node in the feature relationship graph represents each feature in the feature matrix, and the path between each node represents the similarity between each feature in the feature matrix.
5. The method according to claim 1, characterized in that The step of predicting the epilepsy drug resistance of the patient according to the characteristic relationship diagram to obtain the prediction result of the patient includes: Performing feature propagation aggregation on the feature relationship graph to obtain features represented by each node, and updating the path of the feature relationship graph based on each node after feature aggregation; The category to which each node in the feature relationship graph after the path is updated is predicted to obtain a prediction result for the patient.
6. The method according to any one of claims 1 to 5, characterized in that: The prediction result is obtained by calling a prediction model; the prediction model is a trained machine learning model that has the ability to predict epilepsy drug resistance based on the MRI features and CT features of the patient.
7. The method according to claim 6, characterized in that The training process of the prediction model includes: Obtaining a training set and a test set, wherein the training set includes MRI features and CT features of multiple samples; Perform feature splicing on the MRI features and CT features of a current sample in the training set, and input the features into the machine learning model for training to obtain a loss value; If the loss value satisfies the convergence condition, the prediction model is obtained; Otherwise, the model parameters of the machine learning model are updated, and the MRI features and CT features of the next sample are obtained for feature splicing, and the machine learning model after the updated model parameters is input to continue training until the loss value meets the convergence condition.
8. A device for predicting epilepsy drug resistance, characterized in that: The device comprises: A data acquisition module, used to acquire MRI features and CT features of a patient to obtain a first feature matrix of the patient; A feature map learning module, used for constructing and learning a second feature matrix based on the first feature matrix, screening each feature in the first feature matrix, and obtaining a second feature matrix of the patient; the second feature matrix is used to indicate the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient; a dynamic graph learning module, configured to dynamically learn the feature graph according to the first feature matrix and the second feature matrix, adjust the contribution of each feature in the first feature matrix to the prediction of epilepsy drug resistance of the patient, and obtain a feature relationship graph; A graph convolution module is used to predict the epilepsy drug resistance of the patient according to the feature relationship graph to obtain a prediction result of the patient.
9. An electronic device, characterized in that: include: at least one processor and at least one memory, wherein: The memory stores program instructions or codes; The program instructions or codes are loaded and executed by the processor, so that the electronic device implements the method for predicting epilepsy drug resistance according to any one of claims 1 to 7.
10. A storage medium having program instructions or codes stored thereon, characterized in that: The program instructions or codes are loaded and executed by a processor to implement the method for predicting epilepsy drug resistance according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for predicting drug susceptibility state and storage medium
CN112768089A
Antibacterial drug resistance prediction method fusing improved CNN and LSTM
CN114068038A
Epilepsy drug resistance prediction method and device, electronic equipment and storage medium
CN116884564A
Cited By
Multi-dimensional collaborative weighting system and method for switching operation risk evaluation indexes
CN119918976A
Primary drug resistance prediction system and method
CN121366733A
