A missing value interpolation method for single-cell sequencing data

Reconstructing the network through graph comparison learning combined with the graph comparison learning module and the interpolation module solves the problem of ignoring the global cell graph information in the existing technology, significantly improves the interpolation effect of single-cell transcriptome sequencing data, and improves cell clustering. and accuracy of trajectory reconstruction.

CN118335191BActive Publication Date: 2024-09-13QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410748379.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-13
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing single-cell transcriptome sequencing data interpolation methods ignore global cell map information, resulting in poor interpolation effects and affecting the accuracy of cell clustering and cell trajectory reconstruction.

Method used

Graph comparison learning is used to reconstruct the network. By constructing the original masked gene matrix and cell map, the graph comparison learning module and the interpolation module are combined to reduce the dimension and enhance the cell features to achieve the interpolation of zero values ​​​​in the gene expression matrix.

Benefits of technology

The effect of cell clustering and cell trajectory reconstruction is significantly improved, and the ARI, NMI and JAC indicators are improved compared to existing methods, and the KOR and POS indicators on the Deng data set are also improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118335191B
    Figure CN118335191B
Patent Text Reader

Abstract

The present invention discloses a missing value interpolation method for single-cell sequencing data, and relates to the technical field of single-cell RNA sequencing data sequencing. The present invention comprises the following steps: S1, constructing an original gene expression matrix V, normalizing V and then performing two masking operations respectively, obtaining original masked gene matrices X1 and X2, and then generating cell graphs A1 and A2 based on X1 and X2 respectively; S2, constructing a graph contrast learning reconstruction network, and obtaining an interpolated gene expression matrix #imgabs0#; S3, constructing a total loss of a graph contrast learning reconstruction network; S4, training a graph contrast learning reconstruction network based on the total loss L; S5, obtaining X1, X2, A1 and A2 from single-cell sequencing data according to step S1, and then inputting them into a model, forward propagating once, and obtaining an interpolated gene expression matrix. The interpolated gene expression matrix obtained in the present application has better performance in cell clustering and cell trajectory reconstruction tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of single-cell RNA sequencing data sequencing, and in particular to a missing value interpolation method for single-cell sequencing data. Background Art

[0002] Single-cell transcriptome sequencing is a high-throughput technology for reading and analyzing nucleic acids. This technology enables scientists to study genetic and functional characteristics at the level of individual cells, revealing new levels of cell types and biological states. However, due to deficiencies in sequencing technology, biologically meaningful gene expression values ​​are zero, which destroys the structure and expression of genes, thereby affecting the results of cell clustering and downstream tasks of cell trajectory reconstruction, which play a vital role in the pathogenesis and treatment of human diseases. Therefore, how to improve the interpolation effect of single-cell transcriptome sequencing interpolation methods has always been the focus of researchers.

[0003] Faced with this challenge, researchers have developed a variety of data interpolation methods to interpolate missing values ​​in single-cell transcriptome sequencing data. However, existing interpolation strategies still have limitations. Most interpolation methods rely on the neighborhood information of cells or genes during the learning process, ignoring the global cell map information, and the interpolation effect is poor. Therefore, this application proposes a missing value interpolation method for single-cell sequencing data. Summary of the invention

[0004] In order to make up for the deficiencies of the prior art, the present invention provides a missing value interpolation method for single-cell sequencing data.

[0005] The technical solution of the present invention is:

[0006] A missing value interpolation method for single-cell sequencing data comprises the following steps:

[0007] Step S1, constructing an original gene expression matrix V based on single-cell sequencing data (the single-cell sequencing data is gene data), normalizing the original gene expression matrix V to obtain an original gene normalization matrix G, performing two masking operations on the original gene normalization matrix G to obtain an original masked gene matrix X1 and an original masked gene matrix X2, and then generating a cell map A1 and a cell map A2 based on the original masked gene matrix X1 and the original masked gene matrix X2 respectively;

[0008] Step S2, constructing a graph contrast learning reconstruction network, wherein the graph contrast learning reconstruction network includes a graph contrast learning module and an interpolation module connected in sequence; the graph contrast learning module is used to reduce the dimension and enhance the dimension of the cell features of the original masked gene matrix X1 and the original masked gene matrix X2 to obtain low-dimensional features of enhanced cells, and the interpolation module is used to reconstruct the original normalized gene expression matrix G, thereby interpolating the zero values ​​in the original normalized gene expression matrix G to obtain the interpolated gene expression matrix , the zero values ​​in the original normalized gene expression matrix G in this application are used to interpolate the missing values ​​in the single-cell transcriptome sequencing data;

[0009] S3. Construct the total loss of the graph contrastive learning reconstruction network. The total loss of the graph contrastive learning reconstruction network includes the cross entropy loss L Cross , contrast loss L Contrast and the reconstruction loss L Recontrast ; Among them, the cross entropy loss is used to calculate the loss between the enhanced cell low-dimensional feature Z1 and the original cell type name, so as to strengthen the ability of the graph contrast learning reconstruction network to capture the heterogeneity of cell type features; the contrast loss is used to calculate the loss between the predicted cell low-dimensional feature P1 and the enhanced cell low-dimensional feature Z2, so as to strengthen the representation of the enhanced cell low-dimensional feature Z1; the reconstruction loss is used to calculate the gene expression matrix after interpolation The loss between the original normalized gene expression matrix G is used to reconstruct the original normalized gene expression matrix, thereby achieving interpolation;

[0010] Step S4, training the graph contrastive learning reconstruction network based on the total loss L of the graph contrastive learning reconstruction network to obtain a graph contrastive learning reconstruction network model;

[0011] Step S5, obtain the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 from the single-cell sequencing data according to the steps shown in step S1, and then input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrast learning reconstruction network model obtained in step S4, forward propagate once, and obtain the interpolated gene expression matrix.

[0012] Preferably, step S1 specifically includes the following steps:

[0013] S1-1, obtain cell types and corresponding gene data from the target data set, and then use the Seurat program package to trim the gene data in the target data set to obtain variant characteristic genes, and then screen out a certain number of variant characteristic genes related to the studied cell characteristics. The screened variant characteristic genes and the names of the cell types adapted thereto constitute the original gene expression matrix V;

[0014] S1-2, normalize the original gene expression matrix V to obtain the original gene normalized matrix G, as shown in formula (1):

[0015] (1)

[0016] In formula (1), log 10 ( ) is the logarithm with base 10, V is the original gene expression matrix, and G represents the original gene normalization matrix;

[0017] S1-3, setting a random non-zero element in the original gene normalization matrix G to 0, obtaining the original masked gene matrix X1, and completing the first masking operation; then, setting a random different non-zero element in the original gene normalization matrix G to 0, obtaining the original masked gene matrix X2, and completing the second masking operation; in the first masking operation and the second masking operation in the present application, different non-zero elements are set to 0, therefore, the original masked gene matrix X1 and the original masked gene matrix X2 are different;

[0018] S1-4, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively used to generate cell map A1 and cell map A2 through the KNN algorithm.

[0019] Preferably, in step S1-1, when the target data set is composed of multiple different data sets, after the gene data in the different data sets are trimmed, a consistent number of variant characteristic genes are screened out for the different data sets.

[0020] Preferably, in step S2, the graph contrast learning module includes a first graph convolutional network, a second graph convolutional network, a first fully connected network, a ReLU activation layer and a second fully connected network connected in sequence, wherein the first graph convolutional network and the second graph convolutional network have the same structure, the first graph convolutional network and the second graph convolutional network have different parameter settings, the first graph convolutional network and the second graph convolutional network have the same structure as the existing GCN module, the existing GCN module is the GCN module disclosed in the paper "Imputing single-cell RNA-seq data by combining graph convolutionand autoencoder neural networks", the first fully connected network and the second fully connected network have the same structure, the first fully connected network and the second fully connected network have different parameter settings, the first fully connected network and the second fully connected network have the same structure as the existing MLP module, and the existing MLP module is "Exploring Simple Siamese Representation Learning》; in this application, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively input into the graph comparison learning module to obtain the enhanced cell low-dimensional feature Z1 with a dimension of 512×K and the enhanced cell low-dimensional feature Z2 with a dimension of 512×K.

[0021] Preferably, in step S2, the original masking gene matrix X1 and the original masking gene matrix X2 are respectively input into the graph contrast learning module, and the specific method of obtaining the enhanced cell low-dimensional feature Z1 with a dimension of 512×K and the enhanced cell low-dimensional feature Z2 with a dimension of 512×K is:

[0022] After the original masked gene matrix X1 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X1, reducing the dimension of the original masked gene matrix X1 from 2000×N to 2000×512, where N is the number of cells. The first graph convolutional network does not perform any processing on the cell graph A1, but only calculates the distance weights between cells based on the distances between cells shown in the cell graph A1; the second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix I output by the first graph convolutional network, reducing the dimension of the gene matrix I from 2000×512 to 512×K, where K represents the number of cell categories, and calculates the distances between cells based on the distances between cells shown in the cell graph output by the first graph convolutional network. Distance weight, to obtain enhanced cell low-dimensional features Z1 with a dimension of 512×K; wherein, the cell graph output by the first graph convolutional network is exactly the same as the cell graph A1; the first fully connected network is used to perform a fully connected operation on the enhanced cell low-dimensional features Z1 with a dimension of 512×K output by the second graph convolutional network, to obtain enhanced cell low-dimensional features with a dimension of K×K; the ReLU activation layer is used to perform nonlinear relationship mapping on the enhanced cell low-dimensional features with a dimension of K×K output by the first fully connected network, and output a nonlinear mapped cell low-dimensional feature matrix I; the second fully connected network is used to perform a fully connected operation on the nonlinear mapped cell low-dimensional feature matrix I output by the ReLU activation layer, to obtain a predicted cell low-dimensional feature P1 with a dimension of K×K;

[0023] After the original masked gene matrix X2 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X2, reducing the dimension of the original masked gene matrix X2 from 2000×N to 2000×512. The first graph convolutional network does not perform any processing on the cell map A2, but only calculates the distance weights between cells based on the distances between cells shown in the cell map A2, where N is the number of cells; the second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix II output by the first graph convolutional network, reducing the dimension of the gene matrix II from 2000×512 to 512×K, where K represents the number of cell categories, and calculates the distance weights between cells based on the distances between cells shown in the cell map output by the first graph convolutional network, and obtains the enhanced cell low-dimensional feature Z2 with a dimension of 512×K.

[0024] Preferably, in step S2, the interpolation module includes a fully connected network I, a ReLU activation layer and a fully connected network II connected in sequence, the structures of the fully connected network I and the fully connected network II are the same, the parameter settings of the fully connected network I and the fully connected network II are different, and the structures of the fully connected network I and the fully connected network II are the same as the existing MLP module structure, and the existing MLP module is the MLP module disclosed in "Exploring Simple Siamese Representation Learning".

[0025] Preferably, the input layer of the first fully connected network in the graph contrast learning module is set to K, the hidden layer is set to K, and the output layer is not set, and the input layer of the second fully connected network is set to K, the hidden layer is set to K, and the output layer is set to K.

[0026] Preferably, the input layer of the fully connected network I in the interpolation module is set to K, the hidden layer is set to 512, and the output layer is not set; the input layer of the fully connected network II is set to K, the hidden layer is set to 512, and the output layer is set to 2000.

[0027] Preferably, step S4 comprises the following steps:

[0028] Step S4-1, the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 together constitute a training set;

[0029] Step S4-2: Input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrastive learning reconstruction network at the same time, perform back propagation under the guidance of the total loss L, update and retain the parameters of the graph contrastive learning reconstruction network, and then output the interpolated gene expression matrix of the graph contrastive learning reconstruction network. The graph contrastive learning reconstruction network with updated parameters is forward propagated once for verification, the total loss L is output and retained, and an iterative process is completed. After 500 iterations, the training process of the graph contrastive learning reconstruction network is completed, and the parameters of the graph contrastive learning reconstruction network in the verification process with the smallest total loss L are used as the model parameters of the graph contrastive learning reconstruction network to obtain the graph contrastive learning reconstruction network model.

[0030] Compared with the prior art, the present invention has the following beneficial effects:

[0031] The missing value interpolation method for single-cell sequencing data described in the present application is to normalize the original gene expression matrix V to obtain the original gene normalization matrix G, and then randomly mask the original gene normalization matrix G twice to obtain different original masked gene matrices, namely, the original masked gene matrix matrix X1 and the original masked gene matrix X2, and then generate cell maps A1 and cell maps A2 from the original masked gene matrix X1 and the original masked gene matrix X2 respectively through the KNN algorithm, and then input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrast learning reconstruction network constructed in the present application Training is performed to obtain a graph contrast learning reconstruction network model; the graph contrast learning reconstruction network constructed in the present application includes a graph contrast learning module and an interpolation module, wherein the graph contrast learning module is used to reduce the dimension and enhance the dimension of the cell features of the original masked gene matrix X1 and the original masked gene matrix X2 to obtain low-dimensional features of enhanced cells, and the interpolation module is used to reconstruct the original normalized gene expression matrix G, thereby interpolating the zero values ​​in the original normalized gene expression matrix G to obtain the interpolated gene expression matrix, and the zero values ​​in the original normalized gene expression matrix G in the present application are the missing values ​​in the interpolated single-cell transcriptome sequencing data. The three evaluation indicators of ARI, NMI and JAC obtained by cell clustering after interpolation of the mouse data set by the interpolation method described in the present application reached 0.9008934, 0.8865200 and 0.8632620 respectively, which were 24.5%, 15.3% and 13.25% higher than the three evaluation indicators of ARI, NMI and JAC obtained by cell clustering after interpolation of the mouse data set by the WEDGE interpolation method. The two evaluation indicators of KOR and POS obtained by cell trajectory reconstruction after interpolation of the Deng data set by the interpolation method described in the present application reached 0.79 and 0.93 respectively, which were 8.219% and 2.198% higher than the MAGIC interpolation method. Obviously, the interpolated gene expression matrix obtained by the interpolation method described in the present application can have better performance in both the cell clustering task and the cell trajectory reconstruction task. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 A schematic diagram of the network structure of the image comparison learning reconstruction network in the present invention;

[0033] Figure 2A UMAP visualized scatter plot obtained by performing cell clustering after interpolating a mouse data set using the missing value interpolation method for single-cell sequencing data described in the present invention and nine existing interpolation methods, namely, the ALRA interpolation method, the DrImpute interpolation method, the DeepImpute interpolation method, the MAGIC interpolation method, the SAVER interpolation method, the SCDD interpolation method, the scImpute interpolation method, the scVI interpolation method and the WEDGE interpolation method;

[0034] Figure 3 A visualized cell trajectory reconstruction graph is obtained by reconstructing cell trajectories after interpolating the Deng data set using the missing value interpolation method for single-cell sequencing data of the present invention and nine existing interpolation methods, namely, the ALRA interpolation method, the DrImpute interpolation method, the DeepImpute interpolation method, the MAGIC interpolation method, the SAVER interpolation method, the SCDD interpolation method, the scImpute interpolation method, the scVI interpolation method and the WEDGE interpolation method. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] A missing value interpolation method for single-cell sequencing data, with an overall flow chart as shown below: Figure 1 As shown, the following steps are included:

[0037] Step S1, constructing an original gene expression matrix V based on single-cell sequencing data (the single-cell sequencing data is gene data), normalizing the original gene expression matrix V to obtain an original gene normalization matrix G, performing two masking operations on the original gene normalization matrix G to obtain an original masked gene matrix X1 and an original masked gene matrix X2, and then generating a cell map A1 and a cell map A2 based on the original masked gene matrix X1 and the original masked gene matrix X2 respectively; specifically comprising the following steps:

[0038] S1-1, obtain cell types and corresponding gene data from the target data set, and then use the Seurat program package to trim the gene data in the target data set to obtain variant characteristic genes, and then screen out a certain number of variant characteristic genes related to the characteristics of the studied cells, and the screened variant characteristic genes and the names of the cell types adapted thereto constitute the original gene expression matrix V; wherein, when the target data set is composed of multiple different data sets, after the gene data in different data sets are trimmed, a consistent number of variant characteristic genes are screened out for different data sets;

[0039] Specifically for this embodiment, the target data set of this embodiment is composed of a mouse data set and a Deng data set. In this embodiment, cell types and corresponding gene data are obtained from the mouse data set and the Deng data set respectively; then, the gene data in the mouse data set is clipped using the Seurat program package to obtain variant characteristic genes, and then the first 2000 variant characteristic genes related to the studied cell characteristics are screened out, and the screened variant characteristic genes and the corresponding cell type names constitute the original gene expression matrix V1; the gene data in the Deng data set is clipped using the Seurat program package to obtain variant characteristic genes, and then the first 2000 variant characteristic genes related to the studied cell characteristics are screened out, and the screened variant characteristic genes and the corresponding cell type names constitute the original gene expression matrix V2;

[0040] The mouse dataset used in this application is an existing dataset, which can be obtained from: https: / / zenodo.org / records / 7504311#.Y7ei0naZMuK;

[0041] The Deng dataset used in this application is an existing dataset, which can be obtained from: https: / / zenodo.org / records / 6832477#.Yw9HYBxByHs;

[0042] Among them, in this embodiment, the first columns of the original gene expression matrices V1 and V2 represent the names of the variant characteristic genes, the first rows represent the names of the cell types corresponding to the variant characteristic genes, the elements of the original gene expression matrices V1 and V2 are all gene expression values, the number of rows of the original gene expression matrix V1 is 2001, the number of columns of the original gene expression matrix V1 is 822, the number of rows of the original gene expression matrix V2 is 2001, and the number of columns of the original gene expression matrix V2 is 287; in order to show the style of the original gene expression matrix V1, this application specially provides the first ten rows and the first ten columns of the original gene expression matrix V1, as shown in Table 1;

[0043] Table 1 The first ten rows and columns of the original gene expression matrix V1

[0044]

[0045] S1-2, normalize the original gene expression matrix V to obtain the original gene normalized matrix G, as shown in formula (1):

[0046] (1)

[0047] In formula (1), log 10 ( ) is the logarithm with base 10, V is the original gene expression matrix, and G is the original gene normalization matrix.

[0048] In this embodiment, the original gene expression matrices V1 and V2 are normalized by the method described in formula (1) to obtain the original gene normalized matrix G1 and the original gene normalized matrix G2 respectively.

[0049] S1-3. Set a random non-zero element in the original gene normalization matrix G to 0 to obtain the original masked gene matrix X1, and complete the first masking operation; then, set a random different non-zero element in the original gene normalization matrix G to 0 to obtain the original masked gene matrix X2, and complete the second masking operation; in the first masking operation and the second masking operation in this application, different non-zero elements are set to 0, therefore, the original masked gene matrix X1 and the original masked gene matrix X2 are different.

[0050] S1-4, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively generated into cell graph A1 and cell graph A2 by the KNN algorithm. The cell graph in this application expresses a one-to-many or many-to-many relationship between cells, which is essentially a data structure. The cell graph disclosed in the existing paper "Research on Analysis and Processing of Single Cell RNA Sequencing Data" also expresses a one-to-many or many-to-many relationship between cells, which is essentially a data structure. That is to say, the meaning expressed by the cell graph in this application is the same as the meaning expressed by the cell graph disclosed in the existing paper "Research on Analysis and Processing of Single Cell RNA Sequencing Data".

[0051] Step S2, constructing a graph contrast learning reconstruction network, wherein the graph contrast learning reconstruction network includes a graph contrast learning module and an interpolation module connected in sequence; the graph contrast learning module is used to reduce the dimension and enhance the dimension of the cell features of the original masked gene matrix X1 and the original masked gene matrix X2 to obtain low-dimensional features of enhanced cells, and the interpolation module is used to reconstruct the original normalized gene expression matrix G, thereby interpolating the zero values ​​in the original normalized gene expression matrix G to obtain the interpolated gene expression matrix. In this application, the zero values ​​in the original normalized gene expression matrix G are the missing values ​​in the interpolated single-cell transcriptome sequencing data.

[0052] Among them, the graph contrast learning module includes a first graph convolutional network, a second graph convolutional network, a first fully connected network, a ReLU activation layer and a second fully connected network connected in sequence, wherein the first graph convolutional network and the second graph convolutional network have the same structure, the first graph convolutional network and the second graph convolutional network have different parameter settings, the first graph convolutional network and the second graph convolutional network have the same structure as the existing GCN module, the existing GCN module is the GCN module disclosed in the paper "Imputing single-cell RNA-seq data by combining graph convolution and autoencoder neural networks", the first fully connected network and the second fully connected network have the same structure, the first fully connected network and the second fully connected network have different parameter settings, the first fully connected network and the second fully connected network have the same structure as the existing MLP module, and the existing MLP module is the MLP module disclosed in "Exploring Simple Siamese Representation Learning";

[0053] The structure and working principle of the graph comparison learning module are as follows:

[0054] In this application, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively input into the graph comparison learning module to obtain the enhanced cell low-dimensional feature Z1 with a dimension of 512×K and the enhanced cell low-dimensional feature Z2 with a dimension of 512×K; specifically:

[0055] After the original masked gene matrix X1 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X1, reducing the dimension of the original masked gene matrix X1 from 2000×N to 2000×512, where N is the number of cells. The first graph convolutional network does not perform any processing on the cell graph A1, but only calculates the distance weights between cells based on the distances between cells shown in the cell graph A1; the second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix I output by the first graph convolutional network, reducing the dimension of the gene matrix I from 2000×512 to 512×K, where K represents the number of cell categories, and calculates the distances between cells based on the distances between cells shown in the cell graph output by the first graph convolutional network. Distance weight, to obtain enhanced cell low-dimensional features Z1 with a dimension of 512×K; wherein, the cell graph output by the first graph convolutional network is exactly the same as the cell graph A1; the first fully connected network is used to perform a fully connected operation on the enhanced cell low-dimensional features Z1 with a dimension of 512×K output by the second graph convolutional network, to obtain enhanced cell low-dimensional features with a dimension of K×K; the ReLU activation layer is used to perform nonlinear relationship mapping on the enhanced cell low-dimensional features with a dimension of K×K output by the first fully connected network, and output a nonlinear mapped cell low-dimensional feature matrix I; the second fully connected network is used to perform a fully connected operation on the nonlinear mapped cell low-dimensional feature matrix I output by the ReLU activation layer, to obtain a predicted cell low-dimensional feature P1 with a dimension of K×K;

[0056] After the original masked gene matrix X2 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X2, reducing the dimension of the original masked gene matrix X2 from 2000×N to 2000×512. The first graph convolutional network does not perform any processing on the cell map A2, but only calculates the distance weights between cells according to the distances between cells shown in the cell map A2, where N is the number of cells; the second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix II output by the first graph convolutional network, reducing the dimension of the gene matrix II from 2000×512 to 512×K, where K represents the number of cell categories, and calculates the distance weights between cells according to the distances between cells shown in the cell map output by the first graph convolutional network, and obtains the enhanced cell low-dimensional feature Z2 with a dimension of 512×K;

[0057] The structure and working principle of the interpolation module:

[0058] The interpolation module includes a fully connected network I, a ReLU activation layer and a fully connected network II which are connected in sequence. The structures of the fully connected network I and the fully connected network II are the same, but the parameter settings of the fully connected network I and the fully connected network II are different. The structures of the fully connected network I and the fully connected network II are the same as the existing MLP module structure. The existing MLP module is the MLP module disclosed in "ExploringSimple Siamese Representation Learning".

[0059] In the present application, the first fully connected network in the graph contrast learning module has the same structure as the fully connected network I in the interpolation module, but the parameter settings are different; specifically: the input layer of the first fully connected network in the graph contrast learning module is set to K, the hidden layer is set to K, and the output layer is not set, and the input layer of the second fully connected network is set to K, the hidden layer is set to K, and the output layer is set to K; the input layer of the fully connected network I in the interpolation module is set to K, the hidden layer is set to 512, and the output layer is not set, and the input layer of the fully connected network II is set to K, the hidden layer is set to 512, and the output layer is set to 2000.

[0060] The working principle of the interpolation module is as follows: after the enhanced cell low-dimensional feature Z1 with a dimension of 512×K output by the second graph convolutional network is input into the fully connected network I of the interpolation module, the fully connected network I performs full connection processing on the enhanced cell low-dimensional feature Z1 to obtain an enhanced cell low-dimensional feature with a dimension of K×512; the ReLU activation layer is used to perform nonlinear relationship mapping on the enhanced cell low-dimensional feature with a dimension of K×512 output by the fully connected network I, and output the nonlinear mapped cell low-dimensional feature matrix II; the fully connected network II is used to perform full connection operations on the nonlinear mapped cell low-dimensional feature matrix II output by the ReLU activation layer to obtain an interpolated gene expression matrix with a dimension of 2000×N , where N is the number of cells;

[0061] S3. Construct the total loss of the graph contrastive learning reconstruction network. The total loss of the graph contrastive learning reconstruction network includes the cross entropy loss L Cross , contrast loss L Contrast and the reconstruction loss L Recontrast ; Among them, the cross entropy loss is used to calculate the loss between the enhanced cell low-dimensional feature Z1 and the original cell type name, and the ability of the reconstruction network to capture the heterogeneity of cell type features by strengthening the graph contrast learning to effectively capture the global cell graph information; the contrast loss is used to calculate the loss between the predicted cell low-dimensional feature P1 and the enhanced cell low-dimensional feature Z2 to strengthen the representation of the enhanced cell low-dimensional feature Z1; the reconstruction loss is used to calculate the gene expression matrix after interpolation The loss between the original normalized gene expression matrix G is used to reconstruct the original normalized gene expression matrix, thereby achieving interpolation;

[0062] Among them, the total loss L and the cross entropy loss L of the graph contrast learning reconstruction network Cross , contrast loss L Contrast and the reconstruction loss L Recontrast The relationship is shown in formula (1).

[0063] (1)

[0064] In formula (1), L Contrast represents the contrast loss, L Cross represents the cross entropy loss, L Recontrast represents the reconstruction loss, represents the overall loss;

[0065] In formula (1), the contrast loss L Contrast The calculation formula is shown in formula (2):

[0066] (2)

[0067] In formula (2), D represents the calculation of negative cosine similarity, P1 represents the predicted cell low-dimensional feature P1, Z2 represents the enhanced cell low-dimensional feature Z2, stopgrad( ) represents the gradient truncation operation, and stopgrad(Z2) represents the gradient truncation operation on the enhanced cell low-dimensional feature Z2. Therefore, in this application, stopgrad(Z2) is the same as the enhanced cell low-dimensional feature Z2;

[0068] In formula (2), The calculation formula is shown in formula (3):

[0069] (3)

[0070] In formula (3), D represents the negative cosine similarity, represents L2 norm calculation, P1 represents predicted cell low-dimensional feature P1, and Z2 represents enhanced cell low-dimensional feature Z2;

[0071] In formula (1), the cross entropy loss L Cross The calculation formula is shown in formula (4).

[0072] (4)

[0073] In formula (4), L Cross represents the cross entropy loss, N represents the number of cells, K is the number of cell categories, and y i,c represents an indicator variable. If cell i belongs to category c, then y i,c =1 otherwise yi,c =0, Represents the cross entropy loss function that predicts the probability that cell i belongs to category c based on the enhanced cell low-dimensional feature Z1.

[0074] In formula (1), the reconstruction loss L Recontrast The calculation formula is shown in formula (5).

[0075] (5)

[0076] In formula (5), L Recontrast represents the reconstruction loss, N represents the number of cells, G represents the original normalized gene expression matrix, represents the gene expression matrix after imputation.

[0077] Step S4: training the graph contrastive learning reconstruction network based on the total loss L of the graph contrastive learning reconstruction network to obtain a graph contrastive learning reconstruction network model; the specific steps are as follows:

[0078] Step S4-1, the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 together constitute a training set;

[0079] Step S4-2: Input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrastive learning reconstruction network at the same time, perform back propagation under the guidance of the total loss L, update and retain the parameters of the graph contrastive learning reconstruction network, and then output the interpolated gene expression matrix of the graph contrastive learning reconstruction network. The graph contrastive learning reconstruction network with updated parameters is forward propagated once for verification, the total loss L is output and retained, and an iterative process is completed. After 500 iterations, the training process of the graph contrastive learning reconstruction network is completed, and the parameters of the graph contrastive learning reconstruction network in the verification process with the smallest total loss L are used as the model parameters of the graph contrastive learning reconstruction network to obtain the graph contrastive learning reconstruction network model; wherein the training process of the graph contrastive learning reconstruction network is carried out on the PyTorch development platform, and the training process of the graph contrastive learning reconstruction network is optimized using the Adam optimizer, the initial learning rate is set to 0.001, and the batchsize is set to 1.

[0080] Step S5, obtain the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 from the single-cell sequencing data according to the steps shown in step S1, and then input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrast learning reconstruction network model obtained in step S4, forward propagate once, and obtain the interpolated gene expression matrix.

[0081] test:

[0082] In order to compare the superiority of the missing value interpolation method for single-cell sequencing data described in the present application, the present application uses the mouse data set and the Deng data set to respectively compare the interpolation method described in the present application and the ALRA interpolation method (from the paper "Zero-preserving imputation of single-cell RNA-seq data"), the DrImpute interpolation method (from the paper "DrImpute: imputing dropout events in single cell RNA sequencing data"), the DeepImpute interpolation method (from the paper "DeepImpute: an accurate, fast, and scalable deep neural network method to impute single-cell RNA-seq data"), the MAGIC interpolation method (from the paper "Recovering gene interactions from single-cell data using data diffusion"), the SAVER interpolation method (from the paper "SAVER: gene expression recovery for single-cell RNA sequencing"), the SCDD interpolation method (from the paper "SCDD: a novel single-cell RNA-seq imputation method with diffusion and denoising"), and the scImpute interpolation method (from the paper "An accurate and robust Nine existing imputation methods, including the scImpute imputation method for single-cell RNA-seq data (from the paper "Interpretable dimensionality reduction of single cell transcriptome data with deep generative models"), and the WEDGE imputation method (from the paper "WEDGE: imputation of gene expression values ​​from single-cell RNA-seq datasets using biased matrix decomposition"), use the same testing strategy for imputation testing.Since the above nine existing interpolation methods are also trained based on the mouse data set and the Deng data set, it is fair for this application to use the mouse data set and the Deng data set to test the interpolation method described in this application and the above nine interpolation methods. The interpolation strategy used in this application is: the gene data in the mouse data set and the Deng data set are obtained according to the steps shown in step S1 to obtain the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2, and then the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 are input into the interpolation method described in this application and the model of the above nine interpolation methods, and forward propagated once to obtain the interpolated gene expression matrix; then, the interpolated gene expression matrix is ​​clustered using the Seurat program and tested to analyze the improvement effect of the interpolated gene expression matrix obtained by the interpolation method described in this application on the downstream cell clustering task relative to the interpolated gene expression matrix obtained by the above nine existing interpolation methods. The test results are shown in Table 2 and. Figure 2 shown.

[0083] Table 2 Test results of the improvement effect of the interpolated gene expression matrix obtained by the interpolation method described in this application on the downstream cell clustering task compared with the interpolated gene expression matrix obtained by the above nine existing interpolation methods

[0084]

[0085] Table 2 shows the test results of the interpolated gene expression matrix obtained by the present invention and the above-mentioned nine existing interpolation methods for the single-cell transcriptome sequencing public data set - mouse data set, and then using the Seurat program to perform cell clustering on the interpolated gene expression matrix, wherein the interpolated gene expression matrix obtained by interpolating the mouse data set, and then using the Seurat program to perform cell clustering on the interpolated gene expression matrix, can be briefly described as interpolating the mouse data set and then performing cell clustering. In Table 2, Raw represents the test result of directly performing cell clustering on the original gene expression matrix without interpolation using the Seurat program, and Ours represents the interpolated gene expression matrix obtained by the interpolation method of the present invention for the single-cell transcriptome sequencing public data set - mouse data set.

[0086] ARI is the Adjusted Rand Index, which is a measure that comprehensively considers the similarity and randomness of clustering results. The larger the ARI value, the more similar the clustering results are, and the greater the difference from random classification or completely different situations. ARI is sensitive to the number of clusters and is suitable for evaluation with real labels. NMI is the Normalized Mutual Information, which is an indicator used to measure the similarity between two clustering results. It measures the amount of mutual information between the two clustering results. The higher the NMI value, the better the accuracy of the clustering. NMI is insensitive to the number of clusters, so it does not depend on the cluster labels. It is suitable for evaluating the performance of clustering without real labels. JAC is the Jaccard coefficient, which is a statistical method used to measure the similarity of two clustering results. It measures their similarity by calculating the number of elements in the intersection of two sets divided by the number of elements in the union. The value range of the JAC coefficient is 0 to 1. The closer it is to 1, the more similar the two sets are, and the closer it is to 0, the less similar the two sets are.

[0087] This application evaluates the interpolation method of the present invention and the above-mentioned nine existing interpolation methods based on the three indicators of ARI (Adjusted Rand Index), NMI (Normalized Mutual Information) and JAC (Jaccard Coefficient) on the mouse data set and then performs cell clustering test results after interpolation.

[0088] As can be seen from Table 2, the three evaluation indicators of ARI, NMI and JAC obtained by the interpolation method described in the present application after interpolation of the mouse data set and then cell clustering reached 0.9008934, 0.8865200 and 0.8632620 respectively, which were 24.5%, 15.3% and 13.25% higher than the three evaluation indicators of ARI, NMI and JAC obtained by the WEDGE interpolation method (the highest ARI, NMI and JAC evaluation indicators among the above nine interpolation methods) after interpolation of the mouse data set and then cell clustering. This shows that the interpolated single-cell transcriptome sequencing data (the single-cell transcriptome sequencing data, i.e., the interpolated gene expression matrix) obtained by the interpolation method described in the present application after interpolation of the mouse data set performs better in downstream clustering tasks.

[0089] from Figure 2It can also be seen that the UMAP dimensionality reduction visualization scatter plot obtained by interpolating the mouse data set and then performing cell clustering using the interpolation method described in the present application is better than the UMAP dimensionality reduction visualization scatter plots obtained by interpolating and then performing cell clustering using the above nine existing interpolation methods; specifically, in the UMAP dimensionality reduction visualization scatter plot obtained by interpolating the mouse data set and then performing cell clustering using the interpolation method described in the present invention, the cell outlines are clearer, the cell subpopulations are more compact inside, the distances between the cell subpopulations are more obvious, the original data are better retained while interpolating, and are more consistent with the distribution of cell subpopulations.

[0090] In addition, in order to compare the improvement of the interpolation method described in this application on the downstream cell trajectory reconstruction task, this application specifically interpolates the Deng data set with the interpolation method described in this application and the above nine interpolation methods, and then uses the Monocle 3 program to perform trajectory reconstruction tests. The test results are shown in Tables 3 and Figure 3 As shown:

[0091] Table 3 Test results of trajectory reconstruction test using Monocle 3 program after interpolating the Deng dataset using the interpolation method described in this application and the above nine interpolation methods

[0092]

[0093] Table 3 shows the test results of the interpolation method of the present invention and the above nine existing interpolation methods on the single-cell transcriptome sequencing public data set - Deng data set to obtain the interpolated gene expression matrix, and then use the Monocle 3 program to reconstruct the cell trajectory of the interpolated gene expression matrix, wherein the process of interpolating the Deng data set to obtain the interpolated gene expression matrix and then using the Monocle 3 program to reconstruct the cell trajectory of the interpolated gene expression matrix can be briefly described as interpolating the Deng data set and then reconstructing the cell trajectory. In Table 3, Raw represents the test result of directly using the Monocle 3 program to reconstruct the cell trajectory of the original gene expression matrix without interpolation, and Ours represents the test result of the interpolation method of the present invention on the Deng data set after interpolation and then reconstructing the cell trajectory;

[0094] In Table 3, KOR is Kendall rank correlation, which is used to compare the similarity of two estimated trajectories in the context of cell motion trajectories, and can also be used to evaluate the consistency between the trajectories of different cells. The higher the KOR score, the more similar the relative order of the two trajectories. POS is pseudo-time ordering, which is an indicator used to evaluate the accuracy of pseudo-time ordering in cell motion trajectories. POS estimates the pseudo-time order of cells by analyzing the dynamic changes in gene expression. POS measures the consistency or correlation between the estimated pseudo-time and the actual cell development or state. The higher the POS score, the better the consistency between the estimated pseudo-time and the actual development or state.

[0095] This application evaluates the interpolation method of the present invention and the above-mentioned nine existing interpolation methods based on the two indicators POS (pseudo-time ordering) and KOR (Kendall rank correlation) to interpolate the Deng dataset and then reconstruct the cell trajectory.

[0096] As can be seen from Table 3, the interpolation method described in this application interpolates the Deng dataset and then reconstructs the cell trajectory, and the two evaluation indicators KOR and POS obtained reach 0.79 and 0.93 respectively, which are 8.219% and 2.198% higher than the MAGIC interpolation method (the one with the highest KOR and POS evaluation indicators among the above nine interpolation methods). This shows that the interpolated single-cell transcriptome sequencing data obtained by the interpolation method described in this application after interpolating the Deng dataset performs better in the downstream trajectory inference task.

[0097] In addition, from Figure 3 It can also be seen that the cell trajectory generated by the missing value interpolation method for single-cell sequencing data described in the present invention after interpolating the Deng data set and then reconstructing the cell trajectory is the most clear and reliable, and is most consistent with the actual cell development trajectory. The overall cell development trajectory after interpolation is continuous and uninterrupted.

[0098] In summary, compared with the above nine existing interpolation methods, the interpolated single-cell transcriptome sequencing data obtained by the interpolation of the Deng data set in the present invention (single-cell transcriptome sequencing data, i.e., the interpolated gene expression matrix) can achieve better results in the downstream cell trajectory reconstruction task. This also shows that the interpolated gene expression matrix obtained by the interpolation method described in the present application can perform better in both the cell clustering task and the cell trajectory reconstruction task, which are the two downstream tasks.

Claims

1. A missing value interpolation method for single-cell sequencing data, characterized in that: The steps include: Step S1, constructing an original gene expression matrix V based on single-cell sequencing data, normalizing the original gene expression matrix V to obtain an original gene normalization matrix G, performing two masking operations on the original gene normalization matrix G to obtain an original masked gene matrix X1 and an original masked gene matrix X2, and then generating a cell map A1 and a cell map A2 based on the original masked gene matrix X1 and the original masked gene matrix X2, respectively, wherein the single-cell sequencing data is gene data; Step S1 specifically includes the following steps: S1-1, obtain cell types and corresponding gene data from the target data set, then cut the gene data in the target data set to obtain variant characteristic genes, and then screen out a certain number of variant characteristic genes related to the studied cell characteristics, and the screened variant characteristic genes and the corresponding cell type names constitute the original gene expression matrix V; S1-2, normalize the original gene expression matrix V to obtain the original gene normalized matrix G, as shown in formula (1): (1) In formula (1), log 10 ( ) is the logarithm with base 10, V is the original gene expression matrix, and G represents the original gene normalization matrix; S1-3, setting a random non-zero element in the original gene normalization matrix G to 0, obtaining the original masked gene matrix X1, and completing the first masking operation; then, setting a random different non-zero element in the original gene normalization matrix G to 0, obtaining the original masked gene matrix X2, and completing the second masking operation; in the first masking operation and the second masking operation, different non-zero elements are set to 0, and the original masked gene matrix X1 and the original masked gene matrix X2 are different; S1-4, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively used to generate cell map A1 and cell map A2 by KNN algorithm; Step S2, constructing a graph contrast learning reconstruction network, wherein the graph contrast learning reconstruction network includes a graph contrast learning module and an interpolation module connected in sequence; the graph contrast learning module is used to reduce the dimension and enhance the dimension of the cell features of the original masked gene matrix X1 and the original masked gene matrix X2 to obtain low-dimensional features of enhanced cells, and the interpolation module is used to interpolate the zero values ​​in the original normalized gene expression matrix G to obtain the interpolated gene expression matrix ; In step S2, the graph contrast learning module includes a first graph convolutional network, a second graph convolutional network, a first fully connected network, a ReLU activation layer, and a second fully connected network connected in sequence, wherein the first graph convolutional network and the second graph convolutional network have the same structure, the first graph convolutional network and the second graph convolutional network have different parameter settings, the first graph convolutional network and the second graph convolutional network have the same structure as the existing GCN module, the first fully connected network and the second fully connected network have the same structure, the first fully connected network and the second fully connected network have different parameter settings, and the first fully connected network and the second fully connected network have the same structure as the existing MLP module; the original masked gene matrix X1 and the original masked gene matrix X2 are respectively input into the graph contrast learning module to obtain an enhanced cell low-dimensional feature Z1 with a dimension of 512×K and an enhanced cell low-dimensional feature Z2 with a dimension of 512×K; In step S2, the original masked gene matrix X1 and the original masked gene matrix X2 are respectively input into the graph contrast learning module, and the specific method of obtaining the enhanced cell low-dimensional feature Z1 with a dimension of 512×K and the enhanced cell low-dimensional feature Z2 with a dimension of 512×K is as follows: After the original masked gene matrix X1 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X1, reducing the dimension of the original masked gene matrix X1 from 2000×N to 2000×512, where N is the number of cells. The first graph convolutional network calculates the distance weights between cells based on the distances between cells shown in the cell graph A1. The second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix I output by the first graph convolutional network, reducing the dimension of the gene matrix I from 2000×512 to 512×K, where K represents the number of cell categories. The distance weights between cells are calculated based on the distances between cells shown in the cell graph output by the first graph convolutional network, and the dimension is obtained. The enhanced cell low-dimensional feature Z1 with a dimension of 512×K is obtained; the cell graph output by the first graph convolution network is exactly the same as the cell graph A1; the first fully connected network is used to perform a fully connected operation on the enhanced cell low-dimensional feature Z1 with a dimension of 512×K output by the second graph convolution network, and obtain an enhanced cell low-dimensional feature with a dimension of K×K; the ReLU activation layer is used to perform a nonlinear relationship mapping on the enhanced cell low-dimensional feature with a dimension of K×K output by the first fully connected network, and output a nonlinear mapped cell low-dimensional feature matrix I; the second fully connected network is used to perform a fully connected operation on the nonlinear mapped cell low-dimensional feature matrix I output by the ReLU activation layer, and obtain a predicted cell low-dimensional feature P1 with a dimension of K×K; After the original masked gene matrix X2 is input into the first graph convolutional network, the first graph convolutional network performs a dimensionality reduction operation on the original masked gene matrix X2, reducing the dimension of the original masked gene matrix X2 from 2000×N to 2000×512. The first graph convolutional network calculates the distance weights between cells based on the distances between cells shown in the cell graph A2, where N is the number of cells. The second graph convolutional network is used to perform a dimensionality reduction operation on the gene matrix II output by the first graph convolutional network, reducing the dimension of the gene matrix II from 2000×512 to 512×K, where K represents the number of cell categories. The distance weights between cells are calculated based on the distances between cells shown in the cell graph output by the first graph convolutional network, and the enhanced cell low-dimensional feature Z2 with a dimension of 512×K is obtained. S3. Construct the total loss of the graph contrastive learning reconstruction network. The total loss of the graph contrastive learning reconstruction network includes the cross entropy loss L Cross , contrast loss L Contrast and the reconstruction loss L Recontrast ; Step S4, training the graph contrastive learning reconstruction network based on the total loss L of the graph contrastive learning reconstruction network to obtain a graph contrastive learning reconstruction network model; Step S4 includes the following steps: Step S4-1, the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 together constitute a training set; Step S4-2: Input the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 into the graph contrastive learning reconstruction network at the same time, perform back propagation under the guidance of the total loss L, update and retain the model parameters of the graph contrastive learning reconstruction network, and then output the interpolated gene expression matrix of the graph contrastive learning reconstruction network. The graph contrastive learning reconstruction network after updating the model parameters is forward propagated once for verification, and the total loss L is output and retained to complete an iterative process. After 500 iterations, the training process of the graph contrastive learning reconstruction network is completed, and the parameters of the graph contrastive learning reconstruction network in the verification process with the smallest total loss L are used as the model parameters of the graph contrastive learning reconstruction network to obtain the graph contrastive learning reconstruction network model; Step S5, obtain the original masked gene matrix X1, the original masked gene matrix X2, the cell map A1 and the cell map A2 from the single-cell sequencing data according to the steps shown in step S1, and then input them into the graph contrast learning reconstruction network model obtained in step S4, forward propagate once, and obtain the interpolated gene expression matrix.

2. The missing value interpolation method for single-cell sequencing data according to claim 1, characterized in that: In step S1-1, when the target data set is composed of multiple different data sets, after the gene data in different data sets are trimmed, a consistent number of variant characteristic genes are screened out for different data sets.

3. The missing value interpolation method for single-cell sequencing data according to claim 1, characterized in that: In step S2, the interpolation module includes a fully connected network I, a ReLU activation layer and a fully connected network II which are connected in sequence. The structures of the fully connected network I and the fully connected network II are the same, but the parameter settings of the fully connected network I and the fully connected network II are different. The structures of the fully connected network I and the fully connected network II are the same as the existing MLP module structure.

4. The missing value interpolation method for single-cell sequencing data according to claim 1, characterized in that: In the figure comparison learning module, the input layer of the first fully connected network is set to K, the hidden layer is set to K, and the output layer is not set. The input layer of the second fully connected network is set to K, the hidden layer is set to K, and the output layer is set to K.

5. The missing value interpolation method for single-cell sequencing data according to claim 1, characterized in that: The input layer of the fully connected network I in the interpolation module is set to K, the hidden layer is set to 512, and the output layer is not set. The input layer of the fully connected network II is set to K, the hidden layer is set to 512, and the output layer is set to 2000.