Genome prediction method and device based on genotype-environment interaction heterogeneous graph
The prediction method based on the heterogeneous graph of the interaction between genotype and environment solves the problem of low phenotypic prediction accuracy in the existing technology. The relationship between crop varieties and the environment is taken into account through heterogeneous graph processing, which improves the prediction accuracy.
Patent Information
- Application Number
- CN202410925622.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Existing phenotype prediction methods based on genetic data ignore the complex interaction between genotype and environment, resulting in low prediction accuracy.
A prediction method based on the heterogeneous graph of the interaction between genotype and environment is adopted. By obtaining the genotype data and environmental data of crop varieties, a heterogeneous graph is generated, and the trained heterogeneous graph prediction model is used for processing, taking into account crop varieties and environment. The genetic relationship and similarity between them are used to predict phenotypic data.
It improves the accuracy of phenotypic prediction, fully considers the relationship between genotype and environment, and enhances the accuracy of prediction.
Smart Images

Figure CN118471327B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of bioinformatics, and in particular to a genome prediction method and device based on a genotype-environment interaction heterogeneous graph. Background Art
[0002] Genotypic data includes multi-omics data (such as genomics, transcriptomics, proteomics and metabolomics data). Genotypic data-based genomic prediction technology predicts and selects the phenotype of the breeding population based on the association between genotypic data and phenotype. This method can shorten the breeding cycle and improve breeding efficiency.
[0003] Existing phenotypic prediction methods based on genetic data are usually based on linear models, which ignore the complex interaction between genotype and environment, resulting in low prediction accuracy. Summary of the invention
[0004] The present invention provides a genome prediction method and device based on a genotype-environment interaction heterogeneous graph, which is used to solve the defect of low phenotype prediction accuracy in the prior art and achieve the effect of improving the phenotype prediction accuracy.
[0005] The present invention provides a genome prediction method based on a genotype-environment interaction heterogeneous graph, comprising:
[0006] Acquiring genotype data of the crop variety to be predicted, and generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted;
[0007] Acquire environmental data of a target environment, and generate environmental characteristics of the target environment based on the environmental data of the target environment;
[0008] Generate a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, the heterogeneous graph includes a first node and a second node, each of the first nodes corresponds to the genotype characteristics of a crop variety, each of the second nodes corresponds to the environmental characteristics of an environment, the connecting edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connecting edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connecting edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node;
[0009] The heterogeneous graph is input into a trained heterogeneous graph prediction model to obtain predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple groups of training data, and each group of training data includes genotype data of a sample crop variety and a phenotypic data label of the sample crop variety in a sample environment.
[0010] According to a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention, the genotype characteristics of the crop variety to be predicted are generated based on the genotype data of the crop variety to be predicted, including:
[0011] Generate a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, wherein each node of the variety association graph corresponds to the genotype data of one crop variety, and the connecting edges between the nodes correspond to the similarity between the genotype data of the crop varieties;
[0012] The variety association graph is input into a trained first graph processing model, and the genotype data of the first target node and other nodes in the variety association graph are aggregated by the first graph processing model to obtain a first aggregation result, and the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, wherein the first target node is a node corresponding to the crop variety to be predicted;
[0013] The generating the environmental characteristics of the target environment based on the environmental data of the target environment includes:
[0014] Generate an environment association graph based on the target environment and the environment data of multiple environments, where each node of the environment association graph corresponds to a type of environment data, and the connecting edges between the nodes correspond to the similarity between the environment data;
[0015] The environment association graph is input into a trained second graph processing model, and the environment data of the second target node and other nodes in the environment association graph are aggregated by the second graph processing model to obtain a second aggregation result, and the environment characteristics of the target environment are obtained based on the second aggregation result, where the second target node is a node corresponding to the target environment;
[0016] The first graph processing model, the second graph processing model and the heterogeneous graph prediction model are jointly trained based on the multiple sets of training data.
[0017] According to a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention, the method generates a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, comprising:
[0018] Acquiring a first similarity between the genotype data of the crop variety to be predicted and the genotype data of each other crop variety;
[0019] Determining neighboring crop varieties among the other crop varieties based on the respective first similarities;
[0020] Generating the variety association map based on the genotype data of the crop variety to be predicted and the neighboring crop varieties;
[0021] The generating an environment association graph based on the environment data of the target environment and multiple environments includes:
[0022] Acquire a second similarity between the environment data of the target environment and the environment data of each other environment;
[0023] determining a neighboring environment in each of the other environments based on each of the second similarities;
[0024] The environment association map is generated based on the environment data of the target environment and the neighboring environment.
[0025] According to a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention, the genotype data includes a plurality of genomic mono-omics data; the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, including:
[0026] Obtaining the first aggregation result corresponding to each of the genomic mono-omics data, and splicing each of the first aggregation results to obtain the genotype characteristics of the crop variety to be predicted;
[0027] The environmental data includes a plurality of environmental mono-omics data; the environmental characteristics of the target environment obtained based on the second aggregation result include:
[0028] The second aggregation result corresponding to each of the environmental mono-omics data is obtained, and each of the second aggregation results is spliced to obtain the environmental characteristics of the target environment.
[0029] According to a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention, the heterogeneous graph prediction model includes a node feature aggregation module and a phenotype prediction module; the heterogeneous graph is input into a trained heterogeneous graph prediction model, and the predicted phenotype data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model is obtained, including:
[0030] The heterogeneous graph is input into the node feature aggregation module, and the features of the target first node and the neighboring nodes in the heterogeneous graph are aggregated by the node feature aggregation module to obtain a first aggregated feature, and the features of the target second node and the neighboring nodes are aggregated to obtain a second aggregated feature, wherein the target first node is a node corresponding to the crop variety to be predicted, and the target second node is a node corresponding to the target environment;
[0031] The first aggregate feature and the second aggregate feature are input into the phenotype prediction module, and the predicted phenotype data of the crop variety to be predicted under the target environment output by the phenotype prediction module are obtained.
[0032] According to a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention, the heterogeneous graph is input into the node feature aggregation module, and the features of the target first node and the neighboring nodes in the heterogeneous graph are aggregated by the node feature aggregation module to obtain a first aggregated feature, and the features of the target second node and the neighboring nodes are aggregated to obtain a second aggregated feature, including:
[0033] The target first node and the target second node are respectively used as nodes to be aggregated, and the following operations are performed to aggregate the features of the nodes to be aggregated and the neighboring nodes:
[0034] Aggregating the features of the node to be aggregated and each first neighbor node based on a graph attention mechanism to obtain a first type of feature, where the first neighbor node is the first node among the neighbor nodes of the node to be aggregated;
[0035] Based on the graph attention mechanism, the features of the node to be aggregated and each second neighbor node are aggregated to obtain a second type of feature; the second neighbor node is the second node in the neighbor node of the node to be aggregated;
[0036] The first type of features and the second type of features are concatenated.
[0037] The present invention also provides a crop variety environmental phenotype prediction device, comprising:
[0038] A first feature generation module, used for acquiring genotype data of the crop variety to be predicted, and generating genotype features of the crop variety to be predicted based on the genotype data of the crop variety to be predicted;
[0039] A second feature generation module, used to obtain environmental data of a target environment, and generate environmental features of the target environment based on the environmental data of the target environment;
[0040] A heterogeneous graph construction module, for generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, wherein the heterogeneous graph includes a first node and a second node, each of the first nodes corresponds to the genotype characteristics of a crop variety, each of the second nodes corresponds to the environmental characteristics of an environment, the connecting edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connecting edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connecting edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node;
[0041] A prediction module is used to input the heterogeneous graph into a trained heterogeneous graph prediction model to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple groups of training data, and each group of training data includes genotype data of a sample crop variety and a phenotypic data label of the sample crop variety in a sample environment.
[0042] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a genome prediction method based on a genotype-environment interaction heterogeneous graph as described above is implemented.
[0043] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a genome prediction method based on a genotype-environment interaction heterogeneous graph as described in any one of the above.
[0044] The present invention also provides a computer program product, comprising a computer program, which, when executed by a processor, implements any of the above-mentioned genome prediction methods based on a heterogeneous graph of genotype-environment interactions.
[0045] The genome prediction method and device based on the genotype-environment interaction heterogeneous graph provided by the present invention extract genotype characteristics from the genotype data of the crop variety to be predicted, extract environmental characteristics from the environmental data of the target environment, and then generate a heterogeneous graph based on the relationship between different crops and different environments and the known phenotypic data of the crops in the environment. The heterogeneous graph is processed using a trained heterogeneous graph prediction model to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment. When predicting phenotypic data, the present invention fully considers the relationship between the genotype of the crop variety and the environment, and can achieve the effect of improving the accuracy of phenotypic prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 It is a schematic flow chart of a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention;
[0048] Figure 2 It is a schematic diagram of a heterogeneous graph generation process in a genome prediction method based on a genotype-environment interaction heterogeneous graph provided by the present invention;
[0049] Figure 3 It is a schematic diagram of the processing process of a heterogeneous graph prediction model in a genome prediction method based on a heterogeneous graph of genotype and environment interaction provided by the present invention;
[0050] Figure 4 It is a schematic diagram of the structure of the crop variety environmental phenotype prediction device provided by the present invention;
[0051] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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 are within the scope of protection of the present invention.
[0053] Combine the following Figure 1 The genome prediction method based on the genotype-environment interaction heterogeneous graph provided by the present invention is described, such as Figure 1 As shown, the method comprises the steps of:
[0054] S110, acquiring genotype data of the crop variety to be predicted, and generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted;
[0055] S120, acquiring environmental data of a target environment, and generating environmental characteristics of the target environment based on the environmental data of the target environment;
[0056] S130, generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment;
[0057] S140, inputting the heterogeneous graph into the trained heterogeneous graph prediction model, and obtaining the predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model.
[0058] The heterogeneous graph includes a first node and a second node, each first node corresponds to the genotype characteristics of a crop variety, each second node corresponds to the environmental characteristics of an environment, the connection edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connection edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connection edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node. The heterogeneous graph prediction model is obtained by training based on multiple sets of training data, each set of training data includes the genotype data of the sample crop variety and the phenotypic data labels of the sample crop variety in the sample environment.
[0059] The method provided by the present invention extracts genotypic features from the genotypic data of the crop variety to be predicted, extracts environmental features from the environmental data of the target environment, and then generates a heterogeneous graph based on the relationship between different crops and different environments and the known phenotypic data of the crops in the environment, and uses the trained heterogeneous graph prediction model to process the heterogeneous graph to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment. In this way, when predicting the phenotypic data, the relationship between the genotype of the crop variety and the environment is fully considered, and the effect of improving the accuracy of phenotypic prediction can be achieved.
[0060] The genotype data of a crop variety may include only one gene mono-omics data, such as genotype data, or may include multiple gene mono-omics data, such as genotype data, transcriptome data, and metabolome data. The environmental data of the environment may include only one environmental factor data, such as meteorological environmental data, or may include multiple environmental factor data, such as meteorological environmental data, soil data, etc. Furthermore, the meteorological environmental data may also include indicators such as accumulated temperature, rainfall, and sunshine duration, and the soil environmental data may also include indicators such as soil pH and organic matter.
[0061] Before generating the genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted and generating the environmental characteristics of the target environment based on the environmental data of the target environment, the original genotype data and environmental data may be preprocessed, including data alignment processing and normalization processing. Specifically, the preprocessing process may include:
[0062] 1. The physical positions of the same genome data markers are aligned. The genome data after alignment is shown in Table 1.
[0063] Table 1
[0064]
[0065] 2. Unify the physical positions of the transcriptome data markers and align them. The processed transcriptome data are shown in Table 2.
[0066] Table 2
[0067]
[0068] 3. The metabolite indicators of the metabolome data were unified and aligned. The processed metabolome data are shown in Table 3.
[0069] Table 3
[0070]
[0071] 4. Unify the meteorological and soil environmental data indicators and units. The processed environmental data are shown in Table 4.
[0072] Table 4
[0073]
[0074] 5. Normalize the aligned data. Normalization methods include but are not limited to Z-Score normalization, Max-Min normalization, standard deviation normalization, etc. Taking the Z-Score normalization method as an example, the normalization process can be expressed as: ;in It is one of the indicators of variety genome, transcriptome, metabolome, phenotypic data, meteorological and soil environmental data. is the mean value of the data set, is the standard deviation.
[0075] Generating the genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted, and generating the environmental characteristics of the target environment based on the environmental data of the target environment, can be directly using the genotype data of the crop variety to be predicted as the genotype characteristics, and using the environmental data of the target environment as the environmental characteristics. The method provided by the present invention, in order to mine the potential correlation relationship of multi-omics data so that the extracted genotype characteristics and environmental characteristics can provide more information for subsequent phenotypic prediction based on the genotype characteristics and environmental characteristics, is to aggregate the genotype data of the crop variety through a graph neural network to obtain the genotype characteristics, and aggregate the environmental data of the environment to obtain the environmental characteristics. Specifically, generating the genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted includes:
[0076] Generate a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, each node of the variety association graph corresponds to the genotype data of one crop variety, and the connection edges between the nodes correspond to the similarity between the genotype data of the crop varieties;
[0077] The variety association graph is input into the trained first graph processing model, and the genotype data of the first target node and other nodes in the variety association graph are aggregated by the first graph processing model to obtain a first aggregation result, and the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, and the first target node is the node corresponding to the crop variety to be predicted;
[0078] Generate the environmental characteristics of the target environment based on the environmental data of the target environment, including:
[0079] Generate an environment association graph based on the target environment and the environment data of multiple environments, where each node of the environment association graph corresponds to a type of environment data, and the connecting edges between the nodes correspond to the similarity between the environment data;
[0080] The environment association graph is input into the trained second graph processing model, and the environment data of the second target node and other nodes in the environment association graph are aggregated by the second graph processing model to obtain a second aggregation result, and the environment characteristics of the target environment are obtained based on the second aggregation result, and the second target node is a node corresponding to the target environment;
[0081] Among them, the first graph processing model, the second graph processing model and the heterogeneous graph prediction model are jointly trained based on multiple groups of training data.
[0082] Wherein, a variety association map is generated based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, including:
[0083] Obtaining a first similarity between the genotype data of the crop variety to be predicted and the genotype data of each other crop variety;
[0084] determining a neighboring crop variety among each other crop variety based on each first similarity;
[0085] Generate a variety association map based on the genotype data of the crop variety to be predicted and its neighboring crop varieties;
[0086] Generate an environment association graph based on the target environment and environmental data of multiple environments, including:
[0087] obtaining a second similarity between the environment data of the target environment and the environment data of each other environment;
[0088] determining a neighboring environment in each other environment based on each second similarity;
[0089] Generate an environmental association map based on the environmental data of the target environment and neighboring environments.
[0090] The first similarity can be determined based on the cosine distance between genotype data, and the second similarity can be determined based on the cosine distance between link data. The cosine distance calculation formula between A data and B data is: .
[0091] Calculate the mean of the cosine distance between the genotype data of each pair of varieties, and select the N varieties with the smallest distance from the varieties whose cosine distance to the crop variety to be predicted is less than the mean as the neighboring varieties of the crop variety to be predicted. The crop variety to be predicted and the neighboring varieties can form a variety association map. Similarly, calculate the mean of the cosine distance between the environmental data of each pair of environments, and select the M varieties with the smallest distance from the environment whose cosine distance to the target environment is less than the mean as the neighboring environment of the target environment. The target environment and the neighboring environment can form an environmental association map. It can be understood that when generating a variety association map / environmental association map, it is calculated based on a genotype data / environmental data. That is, when the genotype data includes multiple gene mono-omics data, a variety association map can be generated for each gene mono-omics data. When the environmental data includes data of multiple environmental factors, an environmental association map can be generated for each environmental factor data.
[0092] Aggregating the genotype data of the first target node and other nodes in the variety association graph to obtain a first aggregation result, and aggregating the genotype data of the second target node and other nodes in the environment association graph to obtain a second aggregation result can be achieved through a graph attention mechanism. Figure 2As shown, it can be understood that for each type of genomic data, a variety association map can be generated, and further a first aggregation result can be obtained. Similarly, for each type of environmental data, an environmental association map can be generated, and further a second aggregation result can be obtained. The genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, including:
[0093] Obtain the first aggregation result corresponding to each gene mono-omics data, and splice each first aggregation result to obtain the genotype characteristics of the crop variety to be predicted;
[0094] The environmental data includes multiple environmental mono-omics data; the environmental characteristics of the target environment are obtained based on the second aggregation result, including:
[0095] The second aggregation results corresponding to each environmental single-omics data are obtained, and each second aggregation result is spliced to obtain the environmental characteristics of the target environment.
[0096] Based on the method of obtaining the genotype characteristics of the crop variety to be predicted and the environmental characteristics of the target environment, the genotype characteristics of other crop varieties and the environmental characteristics of other environments can be obtained accordingly. Based on the genotype characteristics and environmental characteristics, a heterogeneous graph is constructed.
[0097] like Figure 2 As shown in FIG. 5 , the heterogeneous graph includes two types of nodes: a first node V and a second node E. The first node corresponds to a crop variety, and the second node corresponds to an environment. The edge characteristics of the connecting edges between the first nodes in the heterogeneous graph reflect the kinship between the crop varieties, which can be represented by genetic distance. The edge characteristics of the edges between the second nodes reflect the similarity between environments, which can be represented by the cosine distance between environmental data or environmental characteristics. The edge characteristics of the connecting edges between the first node and the second node reflect the phenotypic data of the crop variety in the environment. The phenotypic data can be data of trait indicators such as per mu yield or quality. For the phenotypic data of multiple varieties, the indicators and units of the phenotypic data are unified in advance, as shown in Table 5.
[0098] Table 5
[0099]
[0100] For each node in the heterogeneous graph, there are two types of features: genetic type and environmental type. For the nodes corresponding to the crop varieties, the genetic type features in the initial node features are the genotype features of the crop varieties, and the environmental type features are 0 values. For the nodes corresponding to the environment, the genetic type features in the initial node features are 0 values, and the environmental type features are the environmental features.
[0101] By constructing a heterogeneous graph and performing phenotypic prediction based on the heterogeneous graph, we can use the genetic relationship between multiple varieties, the similarity relationship between multiple environments, and the interaction relationship between genotype and environment to perform phenotypic prediction and improve prediction accuracy.
[0102] like Figure 3 As shown in FIG. 1 , the heterogeneous graph prediction model includes a node feature aggregation module and a phenotype prediction module. The heterogeneous graph with the initial node features and edge features added is input into the heterogeneous graph prediction model to obtain the predicted phenotype data of the crop variety to be predicted under the target environment output by the heterogeneous graph prediction model, which specifically includes:
[0103] The heterogeneous graph is input into the node feature aggregation module, and the features of the target first node and the neighboring nodes in the heterogeneous graph are aggregated by the node feature aggregation module to obtain the first aggregated feature, and the features of the target second node are aggregated with the features of the neighboring nodes to obtain the second aggregated feature, the target first node is the node corresponding to the crop variety to be predicted, and the target second node is the node corresponding to the target environment;
[0104] The first aggregate feature and the second aggregate feature are input into the phenotype prediction module to obtain the predicted phenotype data of the crop variety to be predicted under the target environment output by the phenotype prediction module.
[0105] Nodes in a heterogeneous graph are divided into two types: homogeneous nodes and heterogeneous nodes. Homogeneous nodes are nodes of the same type. For example, the homogeneous node of the target first node is a node corresponding to the genotype, and the heterogeneous node is a node corresponding to the environment. The homogeneous node of the target second node is a node corresponding to the environment, and the heterogeneous node is a node corresponding to the genotype. The method provided by the present invention inputs the heterogeneous graph into a node feature aggregation module, and aggregates the features of the target first node and the neighboring nodes in the heterogeneous graph through the node feature aggregation module to obtain a first aggregated feature, and aggregates the features of the target second node and the neighboring nodes to obtain a second aggregated feature. The intrinsic relationship between the genotype and the environment can be fully explored, and the accuracy of phenotypic data prediction of the crop variety to be predicted in the target environment can be improved.
[0106] The process of obtaining the first aggregate feature and the second aggregate feature specifically includes:
[0107] The target first node and the target second node are respectively used as nodes to be aggregated, and the following operations are performed to aggregate the features of the nodes to be aggregated and the neighboring nodes:
[0108] Based on the graph attention mechanism, the features of the node to be aggregated and each first neighbor node are aggregated to obtain a first type of feature, where the first neighbor node is the first node among the neighbor nodes of the node to be aggregated;
[0109] Based on the graph attention mechanism, the features of the node to be aggregated and each second neighbor node are aggregated to obtain a second type of feature; the second neighbor node is the second node among the neighbor nodes of the node to be aggregated;
[0110] The first type of features and the second type of features are concatenated.
[0111] For the nodes to be aggregated , based on the graph attention mechanism, aggregates the features of neighbor nodes one by one and uses the activation function Transformed, the weight of each neighbor node in the attention mechanism is , the aggregation of neighbor node features is performed according to different types and placed in the corresponding type position. That is, for the target first node (corresponding to genotype), the genotype features (i.e., genotype features) of its homogeneous neighbor node features are aggregated to obtain the first type of features, and the environmental type features (i.e., environmental features) of its heterogeneous neighbor node features are aggregated to obtain the second type of features.
[0112] The formula of the graph attention mechanism can be expressed as: ;in is the activation function, Representation Node of Type characteristics, For Node The neighbor nodes of , Representative Node of Type Feature Pair Node The importance of . Represents a graph attention operation. Node to be aggregated The first type of characteristics or the second type of characteristics (depending on In one possible implementation, in order to optimize the stability of the model, for the node , a multi-head attention mechanism is used to aggregate the features of neighbor nodes to obtain the node of New features of type ,Right now , K is the number of heads of the multi-head attention mechanism, Node to be aggregated The first type of characteristics or the second type of characteristics (depending on corresponds to the genetic type or the environmental type).
[0113] For nodes The first and second type features of the node are further aggregated to obtain Aggregation features, when the node When it is the first target node, its aggregation feature is the first aggregation feature. When it is the target second node, its aggregation feature is the second aggregation feature.
[0114] Aggregating the first type of features and the second type can be done by weighted aggregation, which can be expressed as follows: ,in is the comprehensive weight of each feature type, Yes The result of normalization is: ; , V is the total number of nodes, is the convolution matrix parameter, is the bias term.
[0115] Based on the first aggregate feature and the second aggregate feature, the phenotype prediction module maps the features into one-dimensional predicted phenotype data. Figure 3 As shown, the phenotype prediction module may include a fully connected layer FC.
[0116] In one embodiment of the method provided by the present invention, when the first graph processing model and the second graph processing model are used to extract genotype features and environmental features, the heterogeneous graph prediction model is trained together with the first graph processing model and the second graph processing model. When the first graph processing model and the second graph processing model are not used to extract genotype features and environmental features, the heterogeneous graph prediction model can be trained alone, and the training loss can be obtained by calculating the mean square error between the prediction result and the label.
[0117] After obtaining the predicted phenotypic data of the crop variety to be predicted in the target environment, the breeding value can be calculated based on the predicted phenotypic data or compared with the designated control variety to select the superior variety.
[0118] The crop variety environmental phenotype prediction device provided by the present invention is described below. The crop variety environmental phenotype prediction device described below and the genome prediction method based on the genotype and environment interaction heterogeneous graph described above can be referred to each other. Figure 4 As shown, the crop variety environmental phenotype prediction device provided by the present invention comprises:
[0119] A first feature generation module 410 is used to obtain genotype data of the crop variety to be predicted, and generate genotype features of the crop variety to be predicted based on the genotype data of the crop variety to be predicted;
[0120] A second feature generation module 420 is used to obtain environmental data of a target environment and generate environmental features of the target environment based on the environmental data of the target environment;
[0121] A heterogeneous graph construction module 430 is used to generate a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety, the environmental characteristics of the target environment and at least one other environment, and the phenotypic data, wherein the heterogeneous graph includes a first node and a second node, each first node corresponds to the genotype characteristics of a crop variety, each second node corresponds to the environmental characteristics of an environment, the connection edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connection edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connection edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node;
[0122] The prediction module 440 is used to input the heterogeneous graph into the trained heterogeneous graph prediction model to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple groups of training data, and each group of training data includes the genotype data of the sample crop variety and the phenotypic data label of the sample crop variety in the sample environment.
[0123] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute a genome prediction method based on a heterogeneous graph of genotype and environment interactions, the method comprising: obtaining genotype data of a crop variety to be predicted, generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted; obtaining environmental data of a target environment, generating environmental characteristics of the target environment based on the environmental data of the target environment; generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, the heterogeneous graph comprising a first node and a second node, each first node corresponding to a genotype characteristic of a crop variety, and each second node corresponding to a genotype characteristic of a crop variety. Corresponding to the environmental characteristics of an environment, the connection edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connection edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connection edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node; the heterogeneous graph is input into the trained heterogeneous graph prediction model to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple groups of training data, and each group of training data includes the genotype data of the sample crop variety and the phenotypic data label of the sample crop variety in the sample environment.
[0124] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0125] On the other hand, the present invention also provides a computer program product, which includes a computer program, and the computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the genome prediction method based on the genotype-environment interaction heterogeneous graph provided by the above-mentioned methods, and the method includes: obtaining genotype data of the crop variety to be predicted, and generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted; obtaining environmental data of the target environment, and generating environmental characteristics of the target environment based on the environmental data of the target environment; generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, and the heterogeneous graph includes a first node and second nodes, each first node corresponds to the genotype characteristics of a crop variety, each second node corresponds to the environmental characteristics of an environment, the connecting edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connecting edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connecting edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node; the heterogeneous graph is input into the trained heterogeneous graph prediction model to obtain the predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple groups of training data, and each group of training data includes the genotype data of the sample crop variety and the phenotypic data label of the sample crop variety in the sample environment.
[0126] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the genome prediction method based on the genotype-environment interaction heterogeneous graph provided by the above-mentioned methods, the method comprising: obtaining genotype data of the crop variety to be predicted, and generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted; obtaining environmental data of the target environment, and generating environmental characteristics of the target environment based on the environmental data of the target environment; generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, the heterogeneous graph comprising a first node and a second node, each first node corresponding to a The method comprises the following steps: a) inputting a heterogeneous graph into a trained heterogeneous graph prediction model to obtain predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple sets of training data, and each set of training data includes the genotype data of the sample crop variety and the phenotypic data labels of the sample crop variety in the sample environment.
[0127] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0128] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A genome prediction method based on a heterogeneous graph of genotype-environment interactions, characterized in that: include: Acquiring genotype data of the crop variety to be predicted, and generating genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted; Acquire environmental data of a target environment, and generate environmental characteristics of the target environment based on the environmental data of the target environment; Generate a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, the heterogeneous graph includes a first node and a second node, each of the first nodes corresponds to the genotype characteristics of a crop variety, each of the second nodes corresponds to the environmental characteristics of an environment, the connecting edges between the first nodes reflect the kinship between the crop varieties corresponding to the first nodes, the connecting edges between the second nodes reflect the similarity between the environments corresponding to the second nodes, and the connecting edges between the first node and the second node reflect the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node; Inputting the heterogeneous graph into a trained heterogeneous graph prediction model, and obtaining predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple sets of training data, each set of training data includes genotype data of a sample crop variety and a phenotypic data label of the sample crop variety in a sample environment; The step of generating the genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted comprises: Generate a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, wherein each node of the variety association graph corresponds to the genotype data of one crop variety, and the connecting edges between the nodes correspond to the similarity between the genotype data of the crop varieties; The variety association graph is input into a trained first graph processing model, and the genotype data of the first target node and other nodes in the variety association graph are aggregated by the first graph processing model to obtain a first aggregation result, and the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, wherein the first target node is a node corresponding to the crop variety to be predicted; The generating the environmental characteristics of the target environment based on the environmental data of the target environment includes: Generate an environment association graph based on the target environment and the environment data of multiple environments, where each node of the environment association graph corresponds to a type of environment data, and the connecting edges between the nodes correspond to the similarity between the environment data; The environment association graph is input into a trained second graph processing model, and the environment data of the second target node and other nodes in the environment association graph are aggregated by the second graph processing model to obtain a second aggregation result, and the environment characteristics of the target environment are obtained based on the second aggregation result, where the second target node is a node corresponding to the target environment; The first graph processing model, the second graph processing model and the heterogeneous graph prediction model are jointly trained based on the multiple sets of training data; The generating of a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties comprises: Acquiring a first similarity between the genotype data of the crop variety to be predicted and the genotype data of each other crop variety; Determining neighboring crop varieties among the other crop varieties based on the respective first similarities; Generating the variety association map based on the genotype data of the crop variety to be predicted and the neighboring crop varieties; The generating an environment association graph based on the environment data of the target environment and multiple environments includes: Acquire a second similarity between the environment data of the target environment and the environment data of each other environment; determining a neighboring environment in each of the other environments based on each of the second similarities; The environment association map is generated based on the environment data of the target environment and the neighboring environment.
2. The genome prediction method based on the genotype-environment interaction heterogeneous graph according to claim 1, characterized in that: The genotype data includes a plurality of genomic data; the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, including: Obtaining the first aggregation result corresponding to each of the genomic mono-omics data, and splicing each of the first aggregation results to obtain the genotype characteristics of the crop variety to be predicted; The environmental data includes a plurality of environmental mono-omics data; the environmental characteristics of the target environment obtained based on the second aggregation result include: The second aggregation result corresponding to each of the environmental mono-omics data is obtained, and each of the second aggregation results is spliced to obtain the environmental characteristics of the target environment.
3. The genome prediction method based on the genotype-environment interaction heterogeneous graph according to claim 1, characterized in that: The heterogeneous graph prediction model includes a node feature aggregation module and a phenotype prediction module; the step of inputting the heterogeneous graph into the trained heterogeneous graph prediction model and obtaining the predicted phenotype data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model includes: The heterogeneous graph is input into the node feature aggregation module, and the features of the target first node and the neighboring nodes in the heterogeneous graph are aggregated by the node feature aggregation module to obtain a first aggregated feature, and the features of the target second node and the neighboring nodes are aggregated to obtain a second aggregated feature, wherein the target first node is a node corresponding to the crop variety to be predicted, and the target second node is a node corresponding to the target environment; The first aggregate feature and the second aggregate feature are input into the phenotype prediction module, and the predicted phenotype data of the crop variety to be predicted under the target environment output by the phenotype prediction module are obtained.
4. The genome prediction method based on the genotype-environment interaction heterogeneous graph according to claim 3, characterized in that: The step of inputting the heterogeneous graph into the node feature aggregation module, aggregating the features of the target first node and the neighboring nodes in the heterogeneous graph through the node feature aggregation module to obtain a first aggregated feature, and aggregating the features of the target second node and the neighboring nodes to obtain a second aggregated feature, includes: The target first node and the target second node are respectively used as nodes to be aggregated, and the following operations are performed to aggregate the features of the nodes to be aggregated and the neighboring nodes: Aggregating the features of the node to be aggregated and each first neighbor node based on a graph attention mechanism to obtain a first type of feature, where the first neighbor node is the first node among the neighbor nodes of the node to be aggregated; Based on the graph attention mechanism, the features of the node to be aggregated and each second neighbor node are aggregated to obtain a second type of feature; the second neighbor node is the second node in the neighbor node of the node to be aggregated; The first type of features and the second type of features are concatenated.
5. A crop variety environmental phenotype prediction device, characterized in that: include: A first feature generation module, used for acquiring genotype data of the crop variety to be predicted, and generating genotype features of the crop variety to be predicted based on the genotype data of the crop variety to be predicted; A second feature generation module, used to obtain environmental data of a target environment, and generate environmental features of the target environment based on the environmental data of the target environment; A heterogeneous graph construction module, for generating a heterogeneous graph based on the genotype characteristics of the crop variety to be predicted and at least one other crop variety and the environmental characteristics and phenotypic data of the target environment and at least one other environment, the heterogeneous graph comprising a first node and a second node, each of the first nodes corresponding to the genotype characteristics of a crop variety, each of the second nodes corresponding to the environmental characteristics of an environment, the connecting edges between the first nodes reflecting the kinship between the crop varieties corresponding to the first nodes, the connecting edges between the second nodes reflecting the similarity between the environments corresponding to the second nodes, and the connecting edges between the first node and the second node reflecting the phenotypic data of the crop variety corresponding to the first node in the environment corresponding to the second node; A prediction module, used for inputting the heterogeneous graph into a trained heterogeneous graph prediction model, and obtaining predicted phenotypic data of the crop variety to be predicted in the target environment output by the heterogeneous graph prediction model, wherein the heterogeneous graph prediction model is trained based on multiple sets of training data, each set of training data includes genotype data of a sample crop variety and a phenotypic data label of the sample crop variety in a sample environment; The step of generating the genotype characteristics of the crop variety to be predicted based on the genotype data of the crop variety to be predicted comprises: Generate a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties, wherein each node of the variety association graph corresponds to the genotype data of one crop variety, and the connecting edges between the nodes correspond to the similarity between the genotype data of the crop varieties; The variety association graph is input into a trained first graph processing model, and the genotype data of the first target node and other nodes in the variety association graph are aggregated by the first graph processing model to obtain a first aggregation result, and the genotype characteristics of the crop variety to be predicted are obtained based on the first aggregation result, wherein the first target node is a node corresponding to the crop variety to be predicted; The generating the environmental characteristics of the target environment based on the environmental data of the target environment includes: Generate an environment association graph based on the target environment and the environment data of multiple environments, where each node of the environment association graph corresponds to a type of environment data, and the connecting edges between the nodes correspond to the similarity between the environment data; The environment association graph is input into a trained second graph processing model, and the environment data of the second target node and other nodes in the environment association graph are aggregated by the second graph processing model to obtain a second aggregation result, and the environment characteristics of the target environment are obtained based on the second aggregation result, where the second target node is a node corresponding to the target environment; The first graph processing model, the second graph processing model and the heterogeneous graph prediction model are jointly trained based on the multiple sets of training data; The generating of a variety association graph based on the genotype data of the crop variety to be predicted and the genotype data of multiple crop varieties comprises: Acquiring a first similarity between the genotype data of the crop variety to be predicted and the genotype data of each other crop variety; Determining neighboring crop varieties among the other crop varieties based on the respective first similarities; Generating the variety association map based on the genotype data of the crop variety to be predicted and the neighboring crop varieties; The generating an environment association graph based on the environment data of the target environment and multiple environments includes: Acquire a second similarity between the environment data of the target environment and the environment data of each other environment; determining a neighboring environment in each of the other environments based on each of the second similarities; The environment association map is generated based on the environment data of the target environment and the neighboring environment.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the genome prediction method based on the genotype-environment interaction heterogeneous graph as described in any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for genome prediction based on a genotype-environment interaction heterogeneous graph as claimed in any one of claims 1 to 4 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for genome prediction based on a genotype-environment interaction heterogeneous graph as claimed in any one of claims 1 to 4 is implemented.
