Deep learning method for cell type deconvolution and 3D reconstruction
The OptiGraph3D framework solves the problem of insufficient efficiency and accuracy of three-dimensional reconstruction and cell type deconvolution in spatial transcriptomic data through normal distribution transformation and multi-head graph attention algorithm, achieving efficient bioinformatics analysis.
Patent Information
- Application Number
- CN202411008667.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-10-01
Smart Images

Figure CN118737273A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and specifically to a deep learning method for cell type deconvolution and 3D reconstruction. Background Art
[0002] Spatial transcriptomics technology can use spatial coordinate information to perform gene expression profiling at fixed locations in tissue sections. Currently, a variety of spatial transcriptome sequencing technologies are available. For example, the 10X spatial transcriptome Visium technology can achieve a resolution of 30-60 microns, and each sequencing point contains 1-10 cells. Slide-seq and Stereo-seq methods have higher sequencing accuracy. These technologies have been widely used in oncology, cancer, embryonic development, and tissue structure.
[0003] In existing spatial transcriptomics data, each sequencing point usually contains multiple cell types. Therefore, deconvolution analysis of cell types in tissues is a key step in revealing the spatial distribution characteristics of gene expression. In addition, most current methods only analyze a single tissue section, and few methods can consider the comprehensive analysis of multiple consecutive sections. However, for organs and tissues, three-dimensional structure is their main form of existence, and various life activities of tissues and organs are carried out in three-dimensional space. For example, during human embryonic development, the degree of development of the heart is different from that of other visceral organs.
[0004] In the comprehensive analysis of multi-slice spatial transcriptome (ST) datasets, identifying shared and specific spatial domains (i.e., regions that exhibit similar spatial expression patterns) is a key task. Existing methods mainly address these problems by fusing spatial information and gene expression data in the spatial transcriptome data of a single slice. For example, SpaGCN uses a graph convolutional network to integrate tissue images, spatial location information, and gene expression matrices to identify spatial domains, while also considering the comprehensive analysis of two consecutive slice data.
[0005] Although these methods perform well on individual slice results, in terms of 3D reconstruction, it is still necessary to consider the use of high-resolution single-cell data for joint analysis. Many mature deconvolution methods have been successfully applied to the deconvolution task of single-cell RNA sequencing data, but in the deconvolution task of spatial transcriptome data, it is still necessary to fully consider the spatial position, the relationship between neighboring points, and the relationship between cell type and distance.
[0006] In order to improve efficiency and accuracy, some new methods have been proposed. For example, the fast multi-slice alignment algorithm, based on the normal distribution transformation method, calculates the mean of all slice depths and selects slices with spatial coordinates near the mean as pivot elements, thereby minimizing the cumulative error generated by multiple consecutive executions of the alignment algorithm. In addition, the cell type deconvolution method based on the ADMM algorithm takes single-cell RNA and spatial transcriptome data as input, and obtains the cell type ratio matrix of each sequencing point by solving the deconvolution problem.
[0007] In summary, the existing technology has made some progress in spatial transcriptomics data analysis, but there are still challenges in 3D reconstruction and efficient cell type deconvolution analysis. The OptiGraph3D framework proposed in this invention aims to solve these problems and provide a more efficient and accurate cell type deconvolution and 3D reconstruction method.
[0008] Application Contents
[0009] The purpose of this application is to provide a deep learning method for cell type deconvolution and 3D reconstruction that is efficient and accurate, solves the problems of spatial inconsistency processing, low accuracy of cell type prediction and low algorithm efficiency in the prior art, and realizes fast and efficient bioinformatics analysis.
[0010] In order to achieve the above object, the present invention adopts the following technical solutions:
[0011] A deep learning method for cell type deconvolution and 3D reconstruction of the present invention includes using a normal distribution transformation, selecting a middle slice as a fixed pivot, and linearly registering all adjacent slices to the pivot to obtain aligned spatial information;
[0012] Obtain gene information from sequencing sites and reference sequencing information of single-cell RNA;
[0013] Based on the acquired gene information and the reference sequencing information of single-cell RNA, the maximum a posteriori probability is estimated;
[0014] Through elastic net regularization and applying total variation regularization in the column direction, the cell type distribution matrix of each spatial point of the output estimate is solved;
[0015] Construct an adjacency matrix using the aligned spatial information;
[0016] The spatial coordinates of the nodes in the aligned spatial information and the gene expression vectors are concatenated into a feature vector;
[0017] Extract features through multi-head graph attention algorithm;
[0018] The cell type vector in the cell type distribution matrix of each spatial point is used as a supervisory signal for training.
[0019] Further, using the normal distribution transformation, the method of selecting the middle slice as a fixed pivot and linearly registering all adjacent slices to this pivot includes:
[0020] Calculate the mean depth of all slices;
[0021] Select the slice whose spatial coordinates are near the mean as the pivot;
[0022] The slices are aligned one by one with the pivot slice using a normal distribution transformation to obtain the aligned spatial information.
[0023] Further, the method for performing maximum a posteriori probability estimation based on the acquired gene information and the reference sequencing information of the single-cell RNA includes: performing maximum a posteriori probability estimation on the acquired gene information and the reference sequencing information of the single-cell RNA by formula 1:
[0024] Y=βV+e, formula 1;
[0025] Among them, Y∈R g×n is the gene expression matrix obtained from n different spatial sequencing points, β∈R n×K is the cell type distribution matrix of unknown sequencing points, V∈R K×g is the single-cell RNA reference matrix, e is the error term, g is the number of genes, n is the number of sequencing points, K is the number of cell types, and it is assumed that e~N(0,σ 2 ) without loss of generality;
[0026] Formula 2 is used to optimize Formula 1 and select the regularization term item:
[0027]
[0028] in, is the data fidelity term, λ i is the Lagrange multiplier;
[0029] Further, by elastic net regularization and applying total variation regularization in the column direction, the method for solving the cell type distribution matrix of each spatial point of the output estimate includes:
[0030] The sparsity and multicollinearity of Formula 2 were addressed using elastic net regularization;
[0031] In spatial transcriptomics data analysis, total variation regularization is applied in the column direction by Equation 3:
[0032]
[0033] in, Represents the gradient in the column direction;
[0034] The Frobenius norm of the data fidelity term is calculated using Formula 4:
[0035]
[0036] Formula 5 is used to arrange Formula 3 and Formula 4, and auxiliary variables α, γ, ξ are introduced to obtain the augmented Lagrangian function of Formula 2:
[0037]
[0038] An iterative algorithm is used to solve the cell type distribution matrix at each spatial point.
[0039] Further, the method of solving the cell type distribution matrix of each spatial point by the alternating direction multiplier method includes:
[0040] Input gene expression matrix Y, reference matrix V, parameters α, μ;
[0041] Initialize β 0 =0, k=0;
[0042] When it does not converge, use Newton iteration to update β k ;
[0043] Update α using the shrinkage operator k ;
[0044] Update γ using the properties of quadratic functions k ;
[0045] Update ξ using the proximal operator of the TV function k ;
[0046] Update the Lagrange multiplier λ 1 ,λ 2 ,λ 3 ;
[0047] Output the estimated cell type expression matrix β for each spatial point.
[0048] Furthermore, the adjacency matrix is constructed using the aligned spatial information Among them, M kn =∑N k , K is the total number of slices, N k is the number of sequencing points in the kth slice; it is stipulated that when i and j are adjacent in space, A i,j =1, and we get the adjacency matrix A.
[0049] For each node i, the concatenated feature vector is expressed by Formula 6:
[0050] x i =Concat(r i , g i , c i ), formula 6;
[0051] Among them, x i is the node feature, r i is the spatial coordinate of the node in the aligned spatial information, g i is the gene expression vector of the node in the corresponding aligned spatial information, c i is the element used for classification.
[0052] Furthermore, the method of extracting features through the multi-head graph attention algorithm includes:
[0053] In the forward process of the network, the attention coefficient vector v of node I and all its neighbors is calculated by formula 7 and formula 8 ij :
[0054]
[0055] in, is the number of neighbors of node i, σ(·) is the nonlinear activation function;
[0056] Through Formula 9, the attention mechanism is multi-headed, and features are extracted and decomposed in multiple different subspaces:
[0057]
[0058] Furthermore, the method of using the cell type vector in the cell type distribution matrix of each spatial point as a supervisory signal for training includes: inputting the cell type vector in the cell type distribution matrix of each spatial point into Formula 10, and calculating the loss:
[0059]
[0060] Among them, 1≤i≤M kn , c k,n is the cell type vector of the nth sequencing point in the kth slice, for the vector c k,n Do the embed operation.
[0061] An electronic device comprises a processor, wherein the processor is coupled to a memory, wherein the memory has instructions stored therein, and when the instructions are executed by the processor, the device performs actions, wherein the actions include any of the deep learning methods for cell type deconvolution and 3D reconstruction described above.
[0062] A computer program product, characterized in that the computer program product is tangibly stored on a computer-readable medium and includes machine-executable instructions, which, when executed, cause a machine to perform a deep learning method for cell type deconvolution and 3D reconstruction according to any one of the above.
[0063] Compared with the prior art, the beneficial effects of this application are:
[0064] Using the normal distribution transform (NDT), the middle slice is selected as the fixed pivot, and all adjacent slices are linearly registered to this pivot to reduce the cumulative error; the cell type deconvolution problem is modeled as an optimization problem under the maximum a posteriori probability (MAP) framework, elastic net regularization is used to model sparsity and multicollinearity, and total variation regularization is applied in the column direction; the adjacency matrix is constructed using the registered spatial information, and the spatial coordinates of the nodes and the gene expression vectors are concatenated into a feature vector, features are extracted through a multi-head graph attention mechanism, and the cell type deconvolution results are used as supervision signals for training; the application is efficient and accurate, solves the problems of spatial inconsistency processing, low cell type prediction accuracy and low algorithm efficiency in the prior art, and realizes fast and efficient bioinformatics analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions of the implementation methods of the present application, the drawings required for use in the implementation methods will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0066] Figure 1 is a method flow chart of the present application;
[0067] Figure 2 It is a manually annotated diagram of the slice;
[0068] Figure 3 It is the ARI score box plot of the slice and the comparison result with four mainstream algorithms;
[0069] Figure 4 It is the spatial domain recognition results of five methods on slices;
[0070] Figure 5 This is the registration result image based on the NDT algorithm of this application;
[0071] Figure 6 This is the 3D reconstruction result of the slice in this application;
[0072] Figure 7This is a comparison chart of the average circular time of the present application and the prior art. DETAILED DESCRIPTION
[0073] The following describes the embodiments of the present invention by specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.
[0074] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show the layers related to the present invention rather than being drawn according to the number, shape and size of the layers in actual implementation. In actual implementation, the type, quantity and proportion of each layer may be changed arbitrarily, and the layer layout may also be more complicated.
[0075] In the following description, numerous details are discussed to provide a more thorough explanation of embodiments of the present invention; however, it is apparent to one skilled in the art that embodiments of the present invention may be practiced without these specific details.
[0076] See also Figure 1 , a deep learning method for cell type deconvolution and 3D reconstruction, including using normal distribution transformation, selecting the middle slice as a fixed pivot, and linearly registering all adjacent slices to this pivot to obtain aligned spatial information;
[0077] Obtain gene information from sequencing sites and reference sequencing information of single-cell RNA;
[0078] Based on the acquired gene information and the reference sequencing information of single-cell RNA, the maximum a posteriori probability is estimated;
[0079] Through elastic net regularization and applying total variation regularization in the column direction, the cell type distribution matrix of each spatial point of the output estimate is solved;
[0080] Construct an adjacency matrix using the aligned spatial information;
[0081] The spatial coordinates of the nodes in the aligned spatial information and the gene expression vectors are concatenated into a feature vector;
[0082] Extract features through multi-head graph attention algorithm;
[0083] The cell type vector in the cell type distribution matrix of each spatial point is used as a supervisory signal for training.
[0084] Using the normal distribution transform (NDT), the middle slice is selected as the fixed pivot, and all adjacent slices are linearly registered to this pivot to reduce the cumulative error; the cell type deconvolution problem is modeled as an optimization problem under the maximum a posteriori probability (MAP) framework, elastic net regularization is used to model sparsity and multicollinearity, and total variation regularization is applied in the column direction; the adjacency matrix is constructed using the registered spatial information, and the spatial coordinates of the nodes and the gene expression vectors are concatenated into a feature vector, features are extracted through a multi-head graph attention mechanism, and the cell type deconvolution results are used as supervision signals for training; the application is efficient and accurate, solves the problems of spatial inconsistency processing, low cell type prediction accuracy and low algorithm efficiency in the prior art, and realizes fast and efficient bioinformatics analysis.
[0085] Methods that utilize a normal distribution transformation, select the middle slice as a fixed pivot, and linearly register all adjacent slices to this pivot include:
[0086] Calculate the mean depth of all slices;
[0087] Select the slice whose spatial coordinates are near the mean as the pivot;
[0088] The slices are aligned one by one with the pivot slice using a normal distribution transformation to obtain the aligned spatial information.
[0089] Multiple 2D slices obtained from the same tissue have certain spatial inconsistencies because they are obtained from different depths of the tissue. Usually, the slices cannot be directly spliced and used. This application uses an additional alignment process to effectively utilize the spatial information between slices. In addition, due to the large number of slices, the alignment process needs to be performed multiple times, so a fast processing speed is required.
[0090] This application calculates the mean depth of all slices and selects slices whose spatial coordinates are near the mean as pivots; the pivot element minimizes the cumulative error caused by executing the alignment algorithm multiple times in succession, and the effect is significantly improved compared to running from one end of the slice sequence; the slices are aligned one by one with the pivot slice using a normal distribution transformation; this application allows fast calculation within an acceptable accuracy range.
[0091] See also Figure 5 ,The figure shows the registration result based on the NDT algorithm. By selecting slice 151508 as the pivot, the algorithm can handle the rotation and translation well, and from the perspective of human vision, the overall performance is in a suitable state.
[0092] The method for estimating the maximum a posteriori probability based on the acquired gene information and the reference sequencing information of the single-cell RNA includes: estimating the maximum a posteriori probability based on the acquired gene information and the reference sequencing information of the single-cell RNA by formula 1:
[0093] Y=βV+e, formula 1;
[0094] Among them, Y∈R g×n is the gene expression matrix obtained from n different spatial sequencing points, β∈R n×K is the cell type distribution matrix of unknown sequencing points, V∈R K×g is the single-cell RNA reference matrix, e is the error term, g is the number of genes, n is the number of sequencing points, K is the number of cell types, and it is assumed that e~N(0,σ 2 ) without loss of generality;
[0095] Formula 2 is used to optimize Formula 1 and select the regularization term item:
[0096]
[0097] in, is the data fidelity term, λ i is the Lagrange multiplier;
[0098] The cell type deconvolution problem can be viewed as a regularized inverse problem directly solved by Equation 2; similarly, modeling the prediction of cell type proportions using a deep learning estimator as an inference process also involves solving a two-level optimization problem centered on Equation 2; therefore, Equation 2 formally unifies all methods for solving the cell type deconvolution problem.
[0099] Through elastic net regularization and applying total variation regularization in the column direction, the method of solving the cell type distribution matrix of each spatial point of the output estimate includes:
[0100] Elastic-net regularization was used to model sparsity and multicollinearity;
[0101] In spatial transcriptomics data analysis, total variation regularization is applied in the column direction by Equation 3:
[0102]
[0103] in, Represents the gradient in the column direction;
[0104] The Frobenius norm of the data fidelity term is calculated using Formula 4:
[0105]
[0106] Formula 5 is used to arrange Formula 3 and Formula 4, and auxiliary variables α, γ, ξ are introduced to obtain the augmented Lagrangian function of Formula 2:
[0107]
[0108] An iterative algorithm is used to solve the cell type distribution matrix at each spatial point.
[0109] Solving Formula 2 involves multi-structure regularization and requires the introduction of different prior knowledge from the data and biological perspectives to utilize the power of Formula 2; from a biological perspective, considering that for most spatial points, a specific type of cell contributes significantly to a specific point, but there is also a high degree of correlation; therefore, Elastic Net regularization is used to model sparsity and multicollinearity; in spatial transcriptomics data analysis, locality is key because different points with close spatial coordinates tend to have similar cell type ratios, indicating spatial smoothness; total variation regularization is applied in the column direction; the Frobenius norm of the data fidelity term is calculated; the above analysis is organized, and auxiliary variables α, γ, ξ are introduced to obtain the augmented Lagrangian function of Formula 2; an iterative algorithm is used to solve the cell type distribution matrix for each spatial point.
[0110] Methods for solving the cell type distribution matrix at each spatial point by the alternating direction multiplier method include:
[0111] Input gene expression matrix Y, reference matrix V, parameters α, μ;
[0112] Initialize β 0 =0, k=0;
[0113] When it does not converge, use Newton iteration to update β k ;
[0114] Update α using the shrinkage operator k ;
[0115] Update γ using the properties of quadratic functions k ;
[0116] Update ξ using the proximal operator of the TV function k ;
[0117] Update the Lagrange multiplier λ 1 ,λ 2 ,λ 3 ;
[0118] Output the estimated cell type expression matrix β for each spatial point.
[0119] Constructing an adjacency matrix using aligned spatial information Among them, M kn =∑N k , K is the total number of slices, N k is the number of sequencing points in the kth slice; it is stipulated that when i and j are adjacent in space, A i,j =1, and we get the adjacency matrix A.
[0120] For each node i, the concatenated feature vector is expressed by Formula 6:
[0121] x i =Concat(r i , g i , c i ), formula 6;
[0122] Among them, x i is the node feature, r i is the spatial coordinate of the node in the aligned spatial information, g i is the gene expression vector of the node in the corresponding aligned spatial information, c i is the element used for classification.
[0123] Methods for extracting features through multi-head graph attention algorithms include:
[0124] In the forward process of the network, the attention coefficient vector v of node I and all its neighbors is calculated by formula 7 and formula 8 ij :
[0125]
[0126] in, is the number of neighbors of node i, σ(·) is a nonlinear activation function, and the sigmoid function is selected;
[0127] Through Formula 9, the attention mechanism is multi-headed, and features are extracted and decomposed in multiple different subspaces:
[0128]
[0129] Among them, h is set to 8.
[0130] The method of using the cell type vector in the cell type distribution matrix of each spatial point as a supervisory signal for training includes: inputting the cell type vector in the cell type distribution matrix of each spatial point into formula 10, and calculating the loss:
[0131]
[0132] Among them, 1≤i≤M kn , c k,nis the cell type vector of the nth sequencing point in the kth slice, for vector c k,n Do the embed operation.
[0133] See also Figure 6 ,The figure shows 3D reconstruction results of four slices 151507, 151508, 151509, 151510. ,The results show that the same spatial pattern can still ,be identified on different slices, proving the effectiveness of the ,algorithm proposed in this application.,Secondly, the multi-layer results can characterize the spatial ,distribution of neuronal subtypes.
[0134] In order to compare different clustering algorithms, the ARI (adjusted rank index) index is calculated using formula 11:
[0135]
[0136] Where N is the number of sequencing points, N ij Yes Category The sequencing point was classified as C i The number of i , N j Category C i , C j The number of sequencing points in .
[0137] See also Figure 2 , the figure shows the manual annotations of 151507, 151508, 151509, and 151510. Please refer to Figure 3 The figure shows the ARI score box plot of 12 slices and the comparison results with four mainstream algorithms. The higher the ARI, the better the performance. Figure 4 , the figure shows the spatial domain recognition results of five methods on slice 151507, including the ARI score of each method. Obviously, the OptiGraph3D proposed in this application has the best performance. This shows that the OptiGraph3D method proposed in this application considers the importance of spatial information for the integration of multiple ST slices, and can more accurately identify boundaries and capture tissue structural heterogeneity.
[0138] See also Figure 7 ,The figure shows that various algorithms were tested and the average running time was calculated. ,The OptiGraph3D method proposed in this application outperforms all the ,compared methods, proving the high efficiency of the method proposed in this ,application.
[0139] An electronic device comprises a processor, wherein the processor is coupled to a memory, wherein the memory has instructions stored therein, and when the instructions are executed by the processor, the device performs actions, wherein the actions include any of the deep learning methods for cell type deconvolution and 3D reconstruction described above.
[0140] A computer program product, which is tangibly stored on a computer-readable medium and includes machine-executable instructions, which when executed cause a machine to perform a deep learning method for cell type deconvolution and 3D reconstruction according to any one of the above.
[0141] In the above-mentioned embodiments, although the present invention has been described in conjunction with the specific embodiments of the present invention, many replacements, modifications and variations of these embodiments will be apparent to those of ordinary skill in the art based on the foregoing description. The embodiments of the present invention are intended to cover all such replacements, modifications and variations falling within the broad scope of the appended claims.
[0142] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A deep learning method for cell type deconvolution and 3D reconstruction, characterized by: This includes using the normal distribution transformation, selecting the middle slice as a fixed pivot, and linearly registering all adjacent slices to this pivot to obtain aligned spatial information; Obtain gene information from sequencing sites and reference sequencing information of single-cell RNA; Based on the acquired gene information and the reference sequencing information of single-cell RNA, the maximum a posteriori probability is estimated; Through elastic net regularization and applying total variation regularization in the column direction, the cell type distribution matrix of each spatial point of the output estimate is solved; Construct an adjacency matrix using the aligned spatial information; The spatial coordinates of the nodes in the aligned spatial information and the gene expression vectors are concatenated into a feature vector; Extract features through multi-head graph attention algorithm; The cell type vector in the cell type distribution matrix of each spatial point is used as a supervisory signal for training.
2. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 1, characterized in that: Methods that utilize a normal distribution transformation, select the middle slice as a fixed pivot, and linearly register all adjacent slices to this pivot include: Calculate the mean depth of all slices; Select the slice whose spatial coordinates are near the mean as the pivot; The slices are aligned one by one with the pivot slice using a normal distribution transformation to obtain the aligned spatial information.
3. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 1, characterized in that: The method for estimating the maximum a posteriori probability based on the acquired gene information and the reference sequencing information of the single-cell RNA includes: estimating the maximum a posteriori probability based on the acquired gene information and the reference sequencing information of the single-cell RNA by formula 1: Y=βV+e, formula 1; Among them, Y∈R g×n is the gene expression matrix obtained from n different spatial sequencing points, β∈R n×K is the cell type distribution matrix of unknown sequencing points, V∈R K×g is the single-cell RNA reference matrix, e is the error term, g is the number of genes, n is the number of sequencing points, K is the number of cell types, and it is assumed that e~N(0,σ 2 ) without loss of generality; Formula 2 is used to optimize Formula 1 and select the regularization term item: in, is the data fidelity term, λ i is the Lagrange multiplier.
4. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 3, characterized in that: Through elastic net regularization and applying total variation regularization in the column direction, the method of solving the cell type distribution matrix of each spatial point of the output estimate includes: The sparsity and multicollinearity of Formula 2 were addressed using elastic net regularization; In spatial transcriptomics data analysis, total variation regularization is applied in the column direction by Equation 3: in, Represents the gradient in the column direction; The Frobenius norm of the data fidelity term is calculated using Formula 4: Formula 5 is used to arrange Formula 3 and Formula 4, and auxiliary variables α, γ, ξ are introduced to obtain the augmented Lagrangian function of Formula 2: An iterative algorithm is used to solve the cell type distribution matrix at each spatial point.
5. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 4, characterized in that: Methods for solving the cell type distribution matrix at each spatial point by the alternating direction multiplier method include: Input gene expression matrix Y, reference matrix V, parameters α, μ; Initialize β 0 =0, k=0; When it does not converge, use Newton iteration to update β k ; Update α using the shrinkage operator k ; Update γ using the properties of quadratic functions k ; Update the product using the proximal operator of the TV function; Update Lagrange multipliers λ1, λ2, λ3; Output the estimated cell type expression matrix β for each spatial point.
6. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 1, characterized in that: Constructing an adjacency matrix using aligned spatial information Among them, M kn =∑N k , K is the total number of slices, N k is the number of sequencing points in the kth slice; it is stipulated that when i and j are adjacent in space, A i,j =1, and we get the adjacency matrix A. For each node i, the concatenated feature vector is expressed by Formula 6: x i =Concat(r i , g i , c i ), Formula 6; Among them, x i is the node feature, r i is the spatial coordinate of the node in the aligned spatial information, g i is the gene expression vector of the node in the corresponding aligned spatial information, c i is the element used for classification.
7. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 1, characterized in that: Methods for extracting features through multi-head graph attention algorithms include: In the forward process of the network, the attention coefficient vector v of node I and all its neighbors is calculated by formula 7 and formula 8 ij : in, is the number of neighbors of node i, σ(·) is the nonlinear activation function; Through Formula 9, the attention mechanism is multi-headed, and features are extracted and decomposed in multiple different subspaces:
8. A deep learning method for cell type deconvolution and 3D reconstruction according to claim 7, characterized in that: The method of using the cell type vector in the cell type distribution matrix of each spatial point as a supervisory signal for training includes: inputting the cell type vector in the cell type distribution matrix of each spatial point into formula 10, and calculating the loss: Among them, 1≤i≤M kn , c k,n is the cell type vector of the nth sequencing point in the kth slice, for vector c k,n Do the embed operation.
9. An electronic device, characterized in that: The device comprises a processor coupled to a memory having instructions stored therein, wherein the instructions, when executed by the processor, cause the device to perform actions, the actions comprising the deep learning method for cell type deconvolution and 3D reconstruction as described in any one of claims 1 to 8.
10. A computer program product, characterized in that The computer program product is tangibly stored on a computer readable medium and comprises machine executable instructions which, when executed, cause a machine to perform the deep learning method for cell type deconvolution and 3D reconstruction according to any one of claims 1 to 8.
Citation Information
Cited By
Function unit prediction model construction method, prediction method, device and electronic equipment
CN120431990A
