A method and device for identifying depression gene expression profile based on diffusion model
By using a diffusion model-based method, combined with a conditional variational autoencoder and a denoising diffusion probability model, the depression gene expression profile is analyzed, which solves the problem of traditional methods ignoring the complexity of gene expression data and achieves more accurate gene expression profile identification. and disease severity prediction, improving the accuracy and reliability of analysis.
Patent Information
- Application Number
- CN202410650428.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-24
AI Technical Summary
Traditional methods ignore the complexity and dynamics of gene expression data in the analysis of depression gene expression profiles, making it difficult to accurately identify and classify gene expression profiles related to depression.
Using a diffusion model-based method, conditional variational autoencoders (CVAE) and denoising diffusion probability models (DDPM) were used, combined with graph convolutional networks (GCN) and multi-task learning frameworks, to construct gene expression maps and perform data screening and cleaning. and feature extraction to achieve potential representation of gene expression profiles and prediction of disease severity.
This method can more accurately capture the complex interactions between genes, improve the sensitivity of the model to sample-specific information, enhance generalization capabilities, improve the accuracy and reliability of analysis, and support personalized medicine and disease diagnosis.
Smart Images

Figure CN118230826B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of gene expression spectrum recognition and classification, and in particular to a method and device for recognizing depression gene expression spectrum based on a diffusion model. Background Art
[0002] In the fields of bioinformatics and systems biology, the analysis of gene expression profiles has become a key means to understand the mechanisms of complex diseases. Depression, as a common mental illness, has an incomplete understanding of its pathogenesis, but more and more studies have shown that specific gene expression changes are closely related to the development of depression.
[0003] With the development of deep learning technology, methods based on denoising diffusion probability models (DDPMs) have brought innovations to multiple fields, including image generation, speech synthesis, and bioinformatics. In depression research, the analysis of gene expression profiles is particularly critical because they can reveal the molecular mechanisms and potential biomarkers of the disease. Using DDPMs can not only generate gene expression profiles similar to real data, but also reveal gene expression patterns unique to depression by learning the intrinsic distribution of the data.
[0004] Therefore, accurate identification and classification of gene expression profiles associated with depression is of great significance for a deep understanding of the disease mechanism, development of new treatments, and early diagnosis. Traditional methods rely on statistical analysis and identification of biomarkers, but these methods often ignore the inherent complexity and dynamics of gene expression data. Summary of the invention
[0005] In view of the above problems, the present disclosure provides a method and device for identifying depression gene expression profiles based on a diffusion model.
[0006] In a first aspect, a method for identifying a depression gene expression profile based on a diffusion model, the method comprising:
[0007] Collect gene expression data, perform data screening and cleansing, and obtain corrected data;
[0008] Construct a gene expression graph based on the corrected data. In the graph, nodes represent genes and edges represent the interaction strength between genes. The gene expression graph is represented in matrix form to obtain a feature matrix.
[0009] According to the feature matrix, the conditional variational autoencoder CVAE is used to obtain the potential representation of gene expression data;
[0010] Establish a multi-task learning framework, use the DDPM model and classification tasks to share the underlying feature representation layer, perform denoising and classification separately on the top layer, and adjust the weights of the relative importance of the tasks by minimizing the combined loss function;
[0011] The multi-task learning framework is trained based on the latent representation of gene expression data to obtain a trained multi-task learning framework, which is used for gene expression profile classification and disease severity prediction.
[0012] Specifically, the classification decoder structure of the classification task is as follows:
[0013] Input layer: Receives data represented by shared features from the diffusion model, which contains the latent features of the gene expression data processed by the diffusion model.
[0014] Hidden layers: can contain multiple fully connected layers, each of which uses a nonlinear activation function (such as ReLU) to increase the expressive power of the model. The purpose of these layers is to further process and refine the features used for classification.
[0015] Output layer: The last layer is a fully connected layer with the number of nodes equal to the number of categories of the target classification. The output layer usually uses a softmax activation function, which converts the output into a probability distribution, where the probability of each category represents the possibility that the input data belongs to that category.
[0016] The regression decoder structure of the DDPM model is as follows:
[0017] Input layer: Also receives the shared feature representation from the diffusion model.
[0018] Hidden layer: may contain multiple fully connected layers, using activation functions such as ReLU to increase the nonlinearity and processing power of the network.
[0019] Output layer: A fully connected layer of a single neuron that does not use an activation function (or uses a linear activation function) and directly outputs the predicted value, which is suitable for continuous numerical predictions.
[0020] When used, the gene expression data of depression patients is directly input into the trained multi-task learning framework to obtain the classification output of the patient's disease, such as different types of depression, as well as the regression prediction output of the severity of the disease.
[0021] Furthermore, gene expression data is collected, including:
[0022] Gene expression data were collected from depression patients and healthy controls, and the required gene expression data were organized into a unified format, where each row represents a sample and each column represents the expression level of a gene.
[0023] Further, data screening includes:
[0024] Data cleaning is used to remove low-quality data and samples whose quality control indicators are below the threshold;
[0025] Normalization processing is used to normalize gene expression and eliminate differences between different experimental conditions and batches. Normalization methods include Z-score normalization and Quantile normalization;
[0026] Interpolation of missing values: For missing gene expression levels, the k-nearest neighbor interpolation method is used to predict missing values based on the expression levels of similar samples.
[0027] Furthermore, data screening also includes:
[0028] Genes with low variability were eliminated, and the coefficient of variation CV of each gene was calculated and the threshold was set for screening.
[0029] Furthermore, data screening also includes:
[0030] Batch effect correction: Combat algorithm was used to correct data from different batches to reduce the impact of differences in experimental conditions on data analysis.
[0031] Furthermore, a gene expression graph is constructed based on the corrected data, including:
[0032] Construct gene expression maps based on gene expression data and interactions between genes, including co-expression and protein-protein interactions.
[0033] Furthermore, the gene expression graph is represented in matrix form to obtain a feature matrix, including:
[0034] The gene expression graph is represented in matrix form to obtain the initial feature matrix;
[0035] For the initial feature matrix, the spatial feature representation of genes is learned by applying the graph convolutional network GCN. The GCN layer is used to extract the local spatial features between genes to obtain several matrices, which are stacked to obtain the feature matrix.
[0036] Furthermore, based on the feature matrix, a conditional variational autoencoder CVAE is used to obtain the potential representation of gene expression data, including:
[0037] Based on the feature matrix and patient condition factors, the potential data distribution is obtained, and a personalized feature representation is generated for each sample; wherein the patient condition factors include the patient's clinical information and / or lifestyle.
[0038] Specifically, CVAE uses the gene space feature matrix learned by GCN and other patient condition factors to learn the potential data distribution under a given condition. In this scenario, the condition is the patient's clinical information, lifestyle, or other related factors.
[0039] Furthermore, in the DDPM model, the noise adding process includes:
[0040] The potential gene data is forward-noised and a condition-dependent adjustment mechanism is introduced to enable the denoising process to be adaptively adjusted according to external condition information, as follows:
[0041] x0 represents the original gene expression vector, and the noise data x is generated by the noise addition process t , where t represents the time step of adding noise, and the mathematical model of ADNM is expressed as:
[0042]
[0043] in, represents the noise drawn from a standard normal distribution, Represents the noise level coefficient that is dynamically adjusted according to the characteristics of gene g and external conditions C.
[0044] Furthermore, the DDPM model,denoising process includes:
[0045] A U-Net type structure is used for denoising to capture global dependencies. An adaptive hierarchical attention mechanism ALA is introduced between upsampling and downsampling to adapt to the complexity of gene expression data. ALA captures gene expression features and dependencies at different levels, and adjusts attention allocation at different levels through an adaptive weight allocation module. A feature extraction layer is introduced to capture the intrinsic structure and complex relationships of the data.
[0046] Furthermore, the multi-task learning framework is used for training, including:
[0047] In a multi-task framework, after each training cycle or a certain number of iterations, the performance of the model on each task is evaluated using loss and accuracy metrics;
[0048] Based on the performance evaluation results, the learning difficulty and progress of the tasks are analyzed, and the task weights are dynamically adjusted to promote balanced progress of the model on various tasks.
[0049] In a second aspect, a device for identifying depression gene expression profiles based on a diffusion model includes: a data processing unit, a feature processing unit, a model building unit, and an application unit;
[0050] A data processing unit, used to collect gene expression data and perform data screening to obtain corrected data;
[0051] A feature processing unit is used to construct a gene expression graph based on the corrected data. In the graph, nodes represent genes and edges represent the interaction strength between genes. The gene expression graph is represented in a matrix form to obtain a feature matrix.
[0052] The feature processing unit is also used to obtain the potential representation of the gene expression data using a conditional variational autoencoder (CVAE) according to the feature matrix;
[0053] The model building unit is used to establish a multi-task learning framework. The DDPM model and the classification task share the underlying feature representation layer, and perform denoising and classification on the top layer respectively. The weights of the relative importance of the tasks are adjusted by minimizing the combined loss function.
[0054] The model building unit is further used to train the multi-task learning framework according to the potential representation of the gene expression data to obtain the trained multi-task learning framework;
[0055] Application unit for gene expression profile classification and disease severity prediction via a trained multi-task learning framework.
[0056] In a third aspect, an electronic device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0057] a memory storing a computer program;
[0058] The processor is used to implement the above-mentioned method for identifying depression gene expression spectrum based on diffusion model when executing the computer program stored in the memory.
[0059] In a fourth aspect, a computer-readable storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for identifying a depression gene expression spectrum based on a diffusion model.
[0060] The present disclosure has at least the following beneficial effects:
[0061] The present disclosure constructs a graph based on gene expression data and gene interactions (such as co-expression and protein-protein interactions). This method can intuitively capture and represent the complex interactions between genes. This method can not only provide an intuitive representation of gene expression data, but also learn the spatial feature representation of genes through a graph convolutional network (GCN), thereby revealing the hidden structural and functional patterns in the gene network. This is crucial for understanding complex biological processes and disease mechanisms.
[0062] The present disclosure uses a conditional variational autoencoder (CVAE) to learn the potential distribution of data under given conditions and generate personalized feature representations for each sample. This personalized feature representation can better capture the subtle differences between samples and improve the model's sensitivity to sample-specific information. This is particularly valuable for disease diagnosis and personalized medicine because it can identify and utilize gene expression patterns that are highly specific to disease states or treatment responses.
[0063] The present disclosure uses a diffusion model to add noise and denoise potential features. The method can learn the deep features of gene expression and capture subtle differences between samples. This deep learning not only improves the quality of feature representation, but also enhances the generalization ability of the model, enabling it to perform well on new and unseen data. In addition, this ability of the diffusion model also means that the method can more effectively handle noise and uncertainty in the data, improving the accuracy and reliability of the analysis.
[0064] Other features and advantages of the present disclosure will be described in the following description, and partly become apparent from the description, or be understood by implementing the present disclosure. The purpose and other advantages of the present disclosure can be realized and obtained by the structures indicated in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0066] Figure 1 This is a flow chart of the identification method according to an embodiment of the present disclosure;
[0067] Figure 2 This is a schematic diagram of the principle of the identification method according to an embodiment of the present disclosure;
[0068] Figure 3 This is a schematic diagram of the structure of the identification device according to an embodiment of the present disclosure;
[0069] Figure 4 A schematic diagram of the electronic device structure. DETAILED DESCRIPTION
[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0071] like Figure 1 As shown, a method for identifying depression gene expression profile based on a diffusion model, the method comprising:
[0072] S101, collecting gene expression data, and performing data screening and cleaning to obtain corrected data;
[0073] S102, constructing a gene expression graph based on the corrected data, in which nodes represent genes and edges represent the interaction strength between genes, and the gene expression graph is represented in a matrix form to obtain a feature matrix;
[0074] S103, according to the feature matrix, a conditional variational autoencoder CVAE is used to obtain the potential representation of the gene expression data;
[0075] S104, establish a multi-task learning framework, use the DDPM model and classification tasks to share the underlying feature representation layer, perform denoising and classification on the top layer respectively, and adjust the weights of the relative importance of the tasks by minimizing the combined loss function;
[0076] S105, training the multi-task learning framework based on the latent representation of the gene expression data to obtain a trained multi-task learning framework, and using it for gene expression profile classification and disease severity prediction.
[0077] The specific implementation is as follows:
[0078] Collect gene expression data from selected depression patients and healthy controls. Ensure the reliability of the data source and the representativeness of the samples. Organize the required gene expression data sets into a unified format. The data contains the expression levels of genes, each row represents a sample, and each column represents a gene.
[0079] Data cleaning: Remove low-quality data and screen out samples whose quality control indicators (such as sequencing depth and sample integrity) are below the threshold and eliminate them.
[0080] Normalization: In order to eliminate differences between different experimental conditions and batches, gene expression needs to be normalized, including but not limited to Z-score normalization or Quantile normalization.
[0081] Interpolation of missing values: For missing gene expression levels, k-nearest neighbor interpolation is used, that is, missing values are predicted based on the expression levels of similar samples.
[0082] Eliminate low-variability genes: Low-variability genes have small expression changes between different samples and are less capable of distinguishing different states, so they can be eliminated. Calculate the coefficient of variation (CV) of each gene and set a threshold for screening. The coefficient of variation (CV) calculation formula is: . is the standard deviation of the data set, is the mean of the data set.
[0083] Batch effect correction: Use algorithms such as Combat to correct data from different batches to reduce the impact of differences in experimental conditions on data analysis.
[0084] like Figure 2 As shown in the figure, after data preprocessing, in order to make better use of gene data, first, a gene expression graph is constructed based on gene expression data and interactions between genes (such as co-expression, protein-protein interaction). In this graph, nodes represent genes and edges represent the strength of interactions between genes. Based on this graph, a graph convolutional network (GCN) is used to learn the spatial feature representation of genes. The GCN layer is used to extract local spatial features between genes. By stacking multiple GCN layers, the model can capture high-order interactions between genes. The way each GCN layer updates node features can be expressed by the following formula:
[0085]
[0086] in, It is The node features of the layer (for the 0th layer, it is the gene expression matrix), is the normalized adjacency matrix, is the weight matrix of this layer, is the activation function. The diffusion model will be used to add noise and denoise these image matrices later.
[0087] Before entering the diffusion model for noise addition, in order to further unify the paradigm of genetic data and consider the heterogeneity among patients with depression, a conditional variational autoencoder (CVAE) is used. CVAE can learn the potential distribution of data under given conditions and generate personalized feature representations for each sample. CVAE uses the genetic spatial features learned by GCN and other conditional factors of the patient to learn the potential data distribution under a given condition. In the scenario disclosed in this disclosure, the condition can be the patient's clinical information, lifestyle, or other related factors.
[0088]
[0089] in, is the gene graph expression data obtained by GCN, is a conditional variable, is the latent space variable, and are the parameters of the encoder and decoder, respectively. In this way, the subsequent diffusion model will not only learn the deep features of gene expression, but also capture the subtle differences between samples. After obtaining the latent representation, which is represented by compressed image features, the gene data of the latent representation needs to be forward denoised. Considering the complexity of gene expression data, a static or single-mode denoising process may not be able to fully capture all the necessary biological variability and data characteristics. In the context of gene expression data, the expression level of genes is affected by a variety of biological factors, such as the activity of transcription factors, DNA methylation status, and signaling between cells. These factors cause gene expression levels to show high variability and dynamics in different individuals, different cell types, and even at different time points in the same cell. The design of ADNM aims to capture this complexity by introducing a data-driven adaptive adjustment mechanism in the denoising process of the model to achieve a fine simulation of the natural variability of gene expression. Specifically, according to the identified gene expression characteristics, a dynamic denoising strategy is designed so that the denoising process can adaptively reflect these characteristics. For example, for genes with high expression levels and low variability, the noise addition strategy may tend to keep the noise level low to simulate their stable expression patterns in biological systems.
[0090] Considering that the gene expression pattern of patients with depression may be affected by many factors, including disease status, treatment history, lifestyle habits, etc., a condition-dependent adjustment mechanism is introduced so that the noise addition process can be adaptively adjusted according to these external condition information. Specifically, let x0 represent the original gene expression vector, and generate the noise data x through the noise addition process. t , where t represents the time step of adding noise. The mathematical model of ADNM can be expressed as:
[0091]
[0092] in, represents the noise drawn from a standard normal distribution, It is a noise level coefficient that is dynamically adjusted according to the characteristics of gene g and external conditions C. It can ensure that the noise addition process is closely related to the biological characteristics of the gene and the individual conditions of the patient.
[0093] The U-Net type structure is used in the denoising model. In order to enable the model to capture global dependencies, and considering that gene expression data has different expression patterns at different biological levels (such as single genes, genomes, and biological processes), an adaptive hierarchical attention mechanism (ALA) is introduced between upsampling and downsampling in the denoising model. The ALA mechanism innovates the design of the self-attention mechanism by introducing a hierarchical structure and an adaptive learning module, making it more suitable for analyzing the complexity of gene expression data. In the hierarchical structure of ALA, each layer is responsible for capturing gene expression features and dependencies at different levels. Specifically, by decomposing the self-attention mechanism into multiple levels, each level focuses on feature learning at different granularities. For example, the bottom layer may focus on capturing the direct interaction of a single gene or gene pair, while the upper layer focuses on the entire genome or complex patterns across multiple genomes. In order to enable the model to adaptively adjust the attention allocation at different levels according to the characteristics of the data, an adaptive weight allocation module is introduced. This module dynamically adjusts the weight of each layer in a data-driven manner to optimize the information fusion process; and adopts a gating mechanism and attention weight learning. The output of each layer not only depends on its own processing results, but also is adjusted by an adaptive weight, which is automatically learned and determined by the network based on the current data characteristics. The formula is as follows: in, is the attention output of layer l, are the query, key, and value matrices of the lth layer, respectively. is the dimension of the key vector of layer l. The output of each layer is further fused through the adaptive weight module:
[0094]
[0095] Among them, O is the final output, and α1 is the weight of the lth layer obtained through adaptive learning. Since the denoising process of the diffusion model is essentially a process of learning data distribution, each denoising step requires predicting the state of the data after the noise is removed. In this process, special feature extraction layers can be designed, which can capture the intrinsic structure and complex relationships of the data during the denoising process. These feature extraction layers are usually located in the middle layer of the denoising model and can convert the original data or noisy data into a higher-level abstract representation. Assume that the feature representation extracted from the diffusion is , where d is the dimension of the feature. The goal is to use these features to train a classifier , classifying gene expression data into different categories (e.g., depression vs. non-depression, or different subtypes of depression). In a multi-task learning framework, the DDPM model and the classification task can share some underlying feature representation layers, while performing denoising and classification separately at the top layer. This is achieved by minimizing the combined loss:
[0096]
[0097] in, is the denoising loss of DDPM, is the loss of the classification task (e.g., cross-extraction loss), and λ1 and λ2 are weights for adjusting the relative importance of the two tasks.
[0098] After obtaining the features, a multi-task framework is used according to the complexity of the problem. For a binary classification problem, a simple SVM can be used. It can be expressed as:
[0099]
[0100] Among them, f i It is The feature vector of samples, y i is the corresponding class label (+1 or -1), w and b define the classification hyperplane, is the slack variable and C is the regularization parameter.
[0101] At the same time, the model can handle multiple related tasks at the same time (such as classification of gene expression profiles, prediction of disease severity, etc.). This design allows the model to use information from other tasks to optimize its performance while learning one task. Specifically, the feature representation obtained according to the diffusion model is input into multiple decoders downstream. Different decoders are used for different regression or classification tasks and supervised by loss functions. The loss function of the multi-task decoder is as follows:
[0102]
[0103] in is a hyperparameter of importance.
[0104] After each training cycle or a certain number of iterations on a multi-task framework, evaluate the performance of the model on each task. This can be done using loss values, accuracy, or other relevant evaluation metrics. The purpose of performance evaluation is to determine how well the model has mastered each task in its current state of training. Based on the results of the performance evaluation, analyze the learning difficulty and progress of each task. A task is considered "hard" if the model's performance on that task improves slowly or has a high loss value; conversely, if the model shows rapid improvement on a task, then the task may be relatively "easy". Dynamically adjust task weights based on the difficulty and progress of the task. The strategy for weight adjustment is to increase the focus on difficult tasks (i.e., increase the weight of difficult tasks) while reducing the focus on easy tasks (i.e., reduce the weight of easy tasks). This adjustment is intended to drive the model to achieve balanced progress on all tasks. The adjusted task weights are applied to the model training process and then repeated in the next evaluation cycle. This feedback loop ensures the adaptability of model training and can be optimized based on the real-time performance of the model and the relative difficulty of the task.
[0105] The diffusion model multi-task framework uses the Admw optimizer and the cosine annealing algorithm for the learning rate. During the training process, different data enhancement techniques are applied to increase the diversity of training data, thereby improving the robustness of the model on real-world data. During the training process, the performance of the validation set, such as accuracy or loss, is monitored, and training is terminated early when performance no longer improves. This helps avoid overfitting and saves training resources.
[0106] The present disclosure uses deep learning technology to quickly and efficiently process and analyze large-scale gene expression data, speed up the identification and classification of patients with depression, and thus improve the efficiency of diagnosis. The deep learning model has high accuracy in processing complex data, and can learn complex patterns and rules from massive data, so as to more accurately identify individuals with depression and effectively classify them. It also has a highly automated processing process, which reduces the need for manual intervention. It automatically learns features and rules during training, making the entire identification and classification process more automated and intelligent. Due to the scalability of the deep learning model, the present disclosure can also be applied to gene expression data sets of different sizes and types. Whether it is a small study or a large clinical trial, similar methods can be used to perform personalized identification and classification based on individual gene expression data and clinical characteristics, so as to provide customized diagnosis and treatment plans based on the characteristics of different individuals, thereby improving the treatment effect.
[0107] like Figure 3 As shown, a device for identifying depression gene expression profile based on diffusion model includes: a data processing unit 301, a feature processing unit 302, a model building unit 303 and an application unit 304;
[0108] The data processing unit 301 is used to collect gene expression data and perform data screening to obtain corrected data;
[0109] A feature processing unit 302 is used to construct a gene expression graph based on the corrected data, in which nodes represent genes and edges represent the interaction strength between genes, and the gene expression graph is represented in a matrix form to obtain a feature matrix;
[0110] The feature processing unit 302 is further used to obtain a potential representation of the gene expression data using a conditional variational autoencoder CVAE according to the feature matrix;
[0111] The model building unit 303 is used to establish a multi-task learning framework, using the DDPM model and the classification task to share the underlying feature representation layer, performing denoising and classification at the top layer respectively, and adjusting the weights of the relative importance of the tasks by minimizing the combined loss function;
[0112] The model building unit 303 is further used to train the multi-task learning framework based on the potential representation of the gene expression data to obtain a trained multi-task learning framework;
[0113] The application unit 304 is used to perform gene expression profile classification and disease severity prediction through the trained multi-task learning framework.
[0114] In specific implementation, a gene expression graph is constructed based on gene expression data and interactions between genes (such as co-expression, protein-protein interaction). In this graph, nodes represent genes and edges represent the strength of interactions between genes. Based on this graph, a graph convolutional network (GCN) is used to learn the spatial feature representation of genes. Conditional variational autoencoder (CVAE) can learn the potential distribution of data under given conditions and generate personalized feature representations for each sample. Using a diffusion model to add noise and denoise to the potential features, the deep features of gene expression can be learned, and subtle differences between samples can be captured.
[0115] like Figure 4 As shown, the present disclosure provides an electronic device, including a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402 and the memory 403 communicate with each other through the communication bus 404;
[0116] Memory 403, storing computer programs;
[0117] The processor 401 is configured to implement the above method when executing the computer program stored in the memory 403 .
[0118] The present disclosure provides a computer-readable storage medium storing a computer program, wherein the computer program implements the above method when executed by a processor.
[0119] The computer-readable storage medium may be included in the device / apparatus described in the above embodiment; or it may exist independently without being assembled into the device / apparatus. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0120] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.
[0121] Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure.
Claims
1. A method for identifying depression gene expression profiles based on a diffusion model, characterized in that: The method comprises: Collect gene expression data, perform data screening and cleansing, and obtain corrected data; Construct a gene expression graph based on the corrected data. In the graph, nodes represent genes and edges represent the interaction strength between genes. The gene expression graph is represented in matrix form to obtain a feature matrix. According to the feature matrix, the conditional variational autoencoder CVAE is used to obtain the potential representation of gene expression data; Establish a multi-task learning framework, use the DDPM model and classification tasks to share the underlying feature representation layer, perform denoising and classification separately on the top layer, and adjust the weights of the relative importance of the tasks by minimizing the combined loss function; The multi-task learning framework is trained based on the latent representation of gene expression data to obtain a trained multi-task learning framework, which is used for gene expression profile classification and disease severity prediction; Construct gene expression graphs based on corrected data, including: Construct gene expression graphs based on gene expression data and interactions between genes, including co-expression and protein-protein interactions; According to the feature matrix, the conditional variational autoencoder CVAE is used to obtain the potential representation of gene expression data, including: Based on the feature matrix and patient condition factors, the potential data distribution is obtained, and a personalized feature representation is generated for each sample; wherein the patient condition factors include the patient's clinical information and / or lifestyle; DDPM model, the noise adding process includes: The potential gene data is forward-noised and a condition-dependent adjustment mechanism is introduced to enable the denoising process to be adaptively adjusted according to external condition information, as follows: x0 represents the original gene expression vector, and the noise data x is generated by the noise addition process t , where t represents the time step of adding noise, and the mathematical model of ADNM is expressed as: ; in, represents the noise drawn from a standard normal distribution, represents the noise level coefficient that is dynamically adjusted according to the characteristics of the gene g and the external conditions C; DDPM model, the denoising process includes: A U-Net type structure is used for denoising to capture global dependencies. An adaptive hierarchical attention mechanism ALA is introduced between upsampling and downsampling to adapt to the complexity of gene expression data. ALA captures gene expression features and dependencies at different levels, and adjusts attention allocation at different levels through an adaptive weight allocation module. A feature extraction layer is introduced to capture the intrinsic structure and complex relationships of the data.
2. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: Collect gene expression data, including: Gene expression data were collected from depression patients and healthy controls, and the required gene expression data were organized into a unified format, where each row represents a sample and each column represents the expression level of a gene.
3. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: Data cleaning, including: Data cleaning is used to remove low-quality data and samples whose quality control indicators are below the threshold; Normalization processing is used to normalize gene expression and eliminate differences between different experimental conditions and batches. Normalization methods include Z-score normalization and Quantile normalization; Interpolation of missing values: For missing gene expression levels, the k-nearest neighbor interpolation method is used to predict missing values based on the expression levels of similar samples.
4. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: Data cleaning also includes: Genes with low variability were eliminated, and the coefficient of variation CV of each gene was calculated and the threshold was set for screening.
5. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: Data screening also includes: Batch effect correction: Combat algorithm was used to correct data from different batches to reduce the impact of differences in experimental conditions on data analysis.
6. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: The gene expression graph is represented in matrix form to obtain a feature matrix, including: The gene expression graph is represented in matrix form to obtain the initial feature matrix; For the initial feature matrix, the spatial feature representation of genes is learned by applying the graph convolutional network GCN. The GCN layer is used to extract the local spatial features between genes to obtain several matrices, which are stacked to obtain the feature matrix.
7. The method for identifying depression gene expression profile based on diffusion model according to claim 1, characterized in that: Multi-task learning framework for training, including: In a multi-task framework, after each training cycle or a certain number of iterations, the performance of the model on each task is evaluated using loss and accuracy metrics; Based on the performance evaluation results, the learning difficulty and progress of the tasks are analyzed, and the task weights are dynamically adjusted to promote balanced progress of the model on various tasks.
8. A device for identifying depression gene expression profiles based on a diffusion model, characterized in that: include: Data processing unit, feature processing unit, model building unit and application unit; A data processing unit, used to collect gene expression data and perform data screening to obtain corrected data; A feature processing unit is used to construct a gene expression graph based on the corrected data. In the graph, nodes represent genes and edges represent the interaction strength between genes. The gene expression graph is represented in a matrix form to obtain a feature matrix. The feature processing unit is also used to obtain the potential representation of the gene expression data using a conditional variational autoencoder (CVAE) according to the feature matrix; The model building unit is used to establish a multi-task learning framework. The DDPM model and the classification task share the underlying feature representation layer, and perform denoising and classification on the top layer respectively. The weights of the relative importance of the tasks are adjusted by minimizing the combined loss function. The model building unit is further used to train the multi-task learning framework according to the potential representation of the gene expression data to obtain the trained multi-task learning framework; Application unit for gene expression profile classification and disease severity prediction through a trained multi-task learning framework; Construct gene expression graphs based on corrected data, including: Construct gene expression graphs based on gene expression data and interactions between genes, including co-expression and protein-protein interactions; According to the feature matrix, the conditional variational autoencoder CVAE is used to obtain the potential representation of gene expression data, including: Based on the feature matrix and patient condition factors, the potential data distribution is obtained, and a personalized feature representation is generated for each sample; wherein the patient condition factors include the patient's clinical information and / or lifestyle; DDPM model, the noise adding process includes: The potential gene data is forward-noised and a condition-dependent adjustment mechanism is introduced to enable the denoising process to be adaptively adjusted according to external condition information, as follows: x0 represents the original gene expression vector, and the noise data x is generated by the noise addition process t , where t represents the time step of adding noise, and the mathematical model of ADNM is expressed as: ; in, represents the noise drawn from a standard normal distribution, represents the noise level coefficient that is dynamically adjusted according to the characteristics of the gene g and the external conditions C; DDPM model, the denoising process includes: A U-Net type structure is used for denoising to capture global dependencies. An adaptive hierarchical attention mechanism ALA is introduced between upsampling and downsampling to adapt to the complexity of gene expression data. ALA captures gene expression features and dependencies at different levels, and adjusts attention allocation at different levels through an adaptive weight allocation module. A feature extraction layer is introduced to capture the intrinsic structure and complex relationships of the data.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; a memory storing a computer program; The processor is used to implement the method for identifying depression gene expression profile based on diffusion model according to any one of claims 1 to 7 when executing the computer program stored in the memory.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for identifying depression gene expression profiles based on a diffusion model according to any one of claims 1 to 7 is implemented.
