Gating and linear attention mechanism G*E interaction fused genome prediction method
By integrating gating and linear attention mechanisms, the genome prediction method extracts genotype and environmental features, captures complex nonlinear relationships, solves the problem of inaccurate predictions in multi-environment experiments, and achieves accurate phenotypic values of complex traits. Improved accuracy in forecasting and crop breeding.
Patent Information
- Application Number
- CN202410899678.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-07-05
AI Technical Summary
In multi-environment experiments, existing genome prediction technology cannot accurately capture the high-order interactions between environmental factors and between environmental factors and genotypes, as well as dynamically changing environmental characteristics throughout the growth period, resulting in inaccurate predictions.
A genome prediction method that integrates gating and linear attention mechanisms is used to extract genotype and environmental features through the GEFormer model, including gMLP layer, TimeFeatureBlock layer and CrossGatedMLP layer, capture long-distance dependencies and temporal features, and fuse genotype and Environmental features to capture complex non-linear relationships.
It achieves accurate prediction of phenotypic values of complex traits, significantly improves the accuracy and application potential of crop breeding, is suitable for untested environments and hybrid phenotypic prediction, and improves the accuracy of cross-population phenotypic prediction.
Smart Images

Figure CN118866092A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of genome prediction, and specifically relates to a genome prediction method integrating gating and linear attention mechanism G×E interaction. Background Art
[0002] Global climate change has brought great challenges to global food security and sustainable agricultural development. Cultivating new crop varieties that are adapted to different environments is conducive to further alleviating the food shortage caused by biotic and abiotic stresses brought about by climate change. Genomic prediction (GP) is the use of genotype data to predict the field phenotype of crops. In animal and plant breeding research, GP has been used to shorten the breeding cycle and improve the efficiency of field resource utilization; however, in multi-environment experiments (METs), the prediction effect of GP needs to be further improved. Therefore, it is necessary to consider the genotype-environment interaction (GEI) in genomic prediction and construct a genotype-environment-phenotype GP model (G×E) to improve the accuracy of phenotypic prediction.
[0003] Constructing G×E is crucial to capturing the complex nonlinear relationship between genotype and environmental characteristics. In the field of quantitative genetics, some scholars capture the interaction between genotype and environment by constructing genotype-environment covariance. Therefore, if new environmental information is not added to the model, new genotype-environment covariance cannot be captured. In the field of classical machine learning, XGBoost combines genotype and environmental characteristics through a tree structure to mine the potential interaction characteristics of genotype-environment. When the dimension is too large, additional feature extraction engineering is needed to process it. Deep learning methods can flexibly handle features of different dimensions, do not need to assume the distribution relationship of data in advance, and can automatically capture complex nonlinear interaction relationships.
[0004] However, the above-mentioned technologies have technical problems such as inaccurate predictions in multi-environment experiments, inability to capture high-order interactions between environmental factors and between environmental factors and genotypes, and dynamically changing environmental characteristics throughout the entire reproductive period. Summary of the invention
[0005] The technical problem to be solved by the present invention is to provide a genome prediction method integrating gating and linear attention mechanism G×E interaction, which is used to predict the phenotypic values of complex traits.
[0006] The technical solution adopted by the present invention to solve the above technical problems is: a genome prediction method integrating gating and linear attention mechanism G×E interaction, comprising the following steps:
[0007] S0: Build the GEFormer model, including the gMLP layer, TimeFeatureBlock layer, and CrossGatedMLP layer;
[0008] The gMLP layer is used to extract genotype data features from both local and global aspects, thereby capturing the long-range dependencies between SNP sites;
[0009] The TimeFeatureBlock layer is used to fuse the features of different environmental factors within each day through fully dynamic convolution, and uses a linear attention mechanism to extract the temporal characteristics of environmental factors between each day during the crop growth period; the TimeFeatureBlock layer includes an embedding layer, a dynamic convolution layer, and a linear attention layer; the embedding layer includes a value embedding module, a position embedding module, and a time embedding module, which are used to fuse the embedded information of time series and environmental factors;
[0010] The CrossGatedMLP layer is used to fuse and extract genotype features and environmental features, thereby capturing the hidden complex nonlinear relationships between different omics data; the CrossGatedMLP layer includes Hidden MLP and Gate MLP; Hidden MLP includes the GELU activation function, which is used to calculate the hidden representation of the input; Gate MLP includes the Sigmoid activation function, which is used to calculate the gate weight;
[0011] S1: Obtain the whole genome data, environmental data and phenotypic data of breeding materials and perform preprocessing;
[0012] S2: The whole genome data is input into the GEFormer model, and the genotype data features are extracted from both local and global aspects through the gMLP layer to capture the genotype features G* of the long-distance dependency relationship between SNP sites;
[0013] S3: Input the environmental data of the entire growth period into the GEFormer model, extract the environmental features through the TimeFeatureBlock layer, and capture the environmental feature E*;
[0014] S4: The genotype feature G* and the environmental feature E* are fused through the CrossGatedMLP layer to capture the hidden complex nonlinear relationship between different omics data and obtain the fused feature C (6) ;
[0015] S5: Use the fully connected neural network to fused feature C (6) Linear regression was performed to predict the phenotypic value of the breeding material.
[0016] According to the above scheme, in step S1, the specific steps are:
[0017] S11: Obtain the whole genome data of breeding materials and breeding chip data of corresponding species through sequencing;
[0018] Compare whole genome data with breeding chip data to obtain high-quality variant site data;
[0019] The comparison method includes taking the intersection, and the genotype data is the SNP site sequence data G = {g1, g2…g l}, g i ∈{0,1,2};
[0020] S12: For environmental data, collect environmental factor data related to light, temperature, water, air and soil factors from planting time to harvest time at the crop planting site;
[0021] S13: Collect the agronomic traits of the planting environment corresponding to the phenotypic data of each breeding material, including plant height, flowering period and yield.
[0022] Furthermore, in step S2, the specific steps are:
[0023] S21: Input the SNP site sequence G into the gMLP layer and map it to a higher dimensional space through linear transformation to obtain G (1) ;
[0024] S22: G (1) Input GELU activation function and get output G (2) :
[0025]
[0026] Among them, g∈G (1) , μ is the mean of the normal distribution, σ is the standard deviation of the normal distribution;
[0027] S23: The output G of the activation function (2) Input spatial gating unit SGU, get output G (3) ;
[0028] S24: Output G of the spatial gating unit SGU (3) Layer normalization, global average pooling and linear transformation are performed to extract the global information of the feature map and map it to the specified dimension to obtain the genotype feature G*.
[0029] Furthermore, in step S23, the specific steps are:
[0030] S231: G (2) Divided into parts of the same shape, including res and gate; res is used to transmit raw information, and gate is used for gating mechanisms to control the flow of information;
[0031] S232: Let b represent the batch size, h represent the number of heads, d represent the feature dimension, m represent the output feature dimension, N represent the sequence length, n represent the sample sequence length, the projection weight parameter W and the bias bias come from the model parameters; divide the feature dimension of gate into multiple heads to get gate (1) ; Then for gate (1) Perform spatial projection to obtain gate (2) :
[0032]
[0033] Where gate (2) ∈R b×h×m×d , gate (1) ∈R b×h×n×d , W∈R h×m×n , bias∈R 1×h×n×1 ;
[0034] S233: Gate that outputs the spatial projection (2) Multiply it with the corresponding linear transformation output to get G (3) :
[0035] G (3) =res⊙gate (2) .
[0036] Furthermore, in step S3,
[0037] S31: Input date vector D to the embedding layer of TimeFeatureBlock layer (1) and the environmental factor vector E (1) , D (1) ∈R d×3 is the encoded d-day date vector, E (1) ∈R d×e is the environmental factor vector after the e environmental factors are standardized every day; the embedding layer outputs E (4) ;
[0038] S32: E (4) Input the dynamic convolution layer, which captures the comprehensive effects of various environmental factors within a day and outputs E (7) ;
[0039] S33: E (7) Input the linear attention layer, which captures the dependencies of each day’s environmental factors and obtains the environmental feature E*.
[0040] Furthermore, in the step S31, the specific steps are:
[0041] S311: E is embedded in the value module(1) The values in are converted to a low-dimensional representation E (2) :
[0042]
[0043] Among them, E∈R n , E (1) ∈R c’ , n represents the index of the input channel, c represents the number of input channels, and c' represents the number of output channels;
[0044] S312: E (1) The input position embedding module uses sine and cosine functions to encode the position information of the input sequence into a vector form, and obtains a vector E containing the internal position relationship of the sequence. (3) ; The weight calculation process of position embedding is as follows:
[0045]
[0046] Where pos represents the position in the input sequence, i represents the dimension index, d represents the embedding dimension, Pos_Embedding(pos, 2i) and Pos_Embedding(pos, 2i+1) represent the even and odd dimensions of the position pos in the position embedding matrix respectively;
[0047] S313: D (1) Input the time embedding module to get D (2) ; The specific calculation process of time embedding is as follows:
[0048]
[0049] Among them, i represents the time dimension, Embedding i represents the embedding function for the i-th time dimension;
[0050] S314: embed the value into the output E of the module (2) , the output E of the position embedding module (3) and the output D of the temporal embedding module (2) Add together to get E (4) .
[0051] Furthermore, in step S32, the specific steps are:
[0052] S321: Input-based E (4) , different core attentions are obtained through multi-dimensional attention mechanisms, including channel attention A channel , Spatial Attention A spatial , convolution kernel attention A kernel and filter attention Afilter :
[0053] A channel =σ(Conv1d channel (E (4) )),
[0054] A spatial =σ(Conv1d spatial (E (4) )),
[0055] A kernel =softmax(Conv1d kernel (E (4) )),
[0056] A filter =σ(Conv1d filter (E (4) )),
[0057] Among them, σ is the Sigmoid activation function, A channel ∈R b×c×1 , A spatial ∈R b×1×1×1×k , A kernel ∈R b ×n×1×1×1 , A filter ∈R b×c’×1 , E (4) ∈R b×c×1 ; b is the batch size, c is the number of input channels, c' is the number of output channels, k is the convolution kernel size, and n is the number of convolution kernels;
[0058] S322: A channel Applied to E (4) Each channel gets E (5) , for E (5) Perform convolution operation; at the same time, A spatial , A kernel Multiply it with the initial weight weight as the weight of the convolution, and output E (6) ;
[0059] S323: A filter Applied to the feature vector E of the convolution output (6) Get E (7) .
[0060] Furthermore, in step S33, the specific steps are:
[0061] S331: To E (7) Perform linear mapping to obtain query vector Q, key vector K and value vector V;
[0062] S332: According to the total number of keys L K and the total number of queries L Q Calculate the number of randomly sampled keys U_part and the number of sampled queries u; randomly sample U_part keys to get K_sample; calculate the sparsity measure M based on the attention score of the query Q and the sampled key K_sample:
[0063]
[0064] Among them, the constant c represents the scaling factor, L K Indicates the length of the key sequence, L Q Indicates the sequence length of the query; q m ∈Q,q m is the mth query vector; k n ∈K_sample,k n is the nth key vector; d is the dimension of the query vector and key vector, L K is the sequence length of the key;
[0065] S333: According to the sparsity measurement value M, take the query vector Q corresponding to the first u queries reduce , calculate K and Q reduce The attention score is the degree of association between each time step and other time steps; the attention score is applied to the value vector to obtain a representative sequence feature E (8) :
[0066]
[0067] Among them, Q reduce are the top u queries selected based on the sparsity measure M;
[0068] S334: To E (8) Perform linear transformation and integrate the comprehensive information from multiple sources to obtain E (9) ; Through convolution and maximum pooling, E (9) Perform feature extraction to obtain environmental features E*.
[0069] Furthermore, in step S4, the specific steps are:
[0070] S41: Input the genotype feature G* and the environmental feature E* into the CrossGatedMLP layer; calculate the hidden representation G of G* and E* through the Hidden MLP (4) and E (10) ; Calculate the gate weight G of G* and E* through Gate MLP (5) and E (11) ;
[0071] S42: Gating weight G(5) and E (11) Applied to the hidden representation G (4) and E (10) , and get C (1) and C (2) ; Splice C (1) and C (2) Get the fusion feature C (3) :
[0072]
[0073] S43: Multiply G* and E* to get G*×E*; perform feature fusion on G* and G*×E*, E* and G*×E* through the CrossGatedMLP layer to get the fused feature C (4) and C (5) ; Splice C (3) , C (4) and C (5) Get the interaction characteristic C between genotype and environment (6) .
[0074] Furthermore, in step S5, the specific steps are:
[0075] S51: Characterizing genotype-environment interactions (6) Input linear layer, get C through linear mapping (7) ;
[0076] S52: C (7) Input LeakyReLU activation function, output C (8) Nonlinearly fit the input features; let c∈C (7) , the calculation process of the LeakyReLU activation function is as follows:
[0077] LeakyReLU(c)=max(αc,c),
[0078] C (8) Through Dropout, the output of some neurons is randomly set to 0, and C (9) ;
[0079] S53: C is transformed by linear transformation (9) Mapped to a value, which is the predicted phenotype value C output by the model (10) .
[0080] The beneficial effects of the present invention are:
[0081] 1. The genomic prediction method of the present invention, which integrates the interaction of gating and linear attention mechanism G×E, constructs a GEFormer model, including a gMLP layer, a TimeFeatureBlock layer and a CrossGatedMLP layer, and realizes the function of accurately predicting the phenotypic values of complex traits based on genome and environmental group data by extracting features, fusing features and capturing relationships, thereby accelerating the intelligent design breeding of crops and having great application potential in real crop breeding.
[0082] 2. The present invention is suitable for accurately predicting the phenotypic values of untested genotypes in untested environmental modes.
[0083] 3. The present invention can simultaneously use the paternal and maternal inbred line data to predict the phenotype of hybrids, significantly improving the accuracy of predicting the phenotype of hybrids, and is more effective in predicting the phenotypic values of untested genotypes in untested environmental modes.
[0084] 4. The present invention is applicable to cross-group phenotype prediction. GEFormer significantly improves the accuracy of phenotypic prediction between groups with different genetic backgrounds, and has significant effects on predicting the phenotypic values of tested genotypes in untested environmental modes and predicting the phenotypic values of untested genotypes in untested environmental modes. BRIEF DESCRIPTION OF THE DRAWINGS
[0085] Figure 1 is a flow chart of an embodiment of the present invention.
[0086] Figure 2 2 are three experimental setting scheme diagrams of embodiments of the present invention.
[0087] Figure 3 4 is a graph showing the performance evaluation of different methods on three groups of untested genotypes in a test environment according to an embodiment of the present invention.
[0088] Figure 4 4 is a graph showing the performance evaluation of different methods of testing genotypes in an untested environment in three groups according to an embodiment of the present invention.
[0089] Figure 5 4 is a graph showing the performance evaluation of different methods on three groups of untested genotypes in an untested environment according to an embodiment of the present invention.
[0090] Figure 6 It is a performance evaluation diagram of the GEFormer method of an embodiment of the present invention for predicting the PH phenotype of the CUBIC1404 inbred line in an unknown environment.
[0091] Figure 7 It is a result analysis diagram of predicting the EW phenotype of the inbred line CUBIC1404 in an unknown environment using the GEFormer method of an embodiment of the present invention.
[0092] Figure 8 It is a performance analysis diagram of the GEFormer method of an embodiment of the present invention using different inbred lines to predict the phenotype of hybrids.
[0093] Fig. 9 This is a feature visualization result diagram of the EW trait extraction of 6210 populations predicted in the LN region using a model trained with maternal data using the GEFormer method of an embodiment of the present invention.
[0094] Fig.10 This is a feature visualization result diagram of the EW trait extraction of the 6210 population predicted in the LN region using the GEFormer method of an embodiment of the present invention using a model trained by integrating maternal and paternal data.
[0095] Fig.11 It is a performance evaluation diagram of the GEFormer method of an embodiment of the present invention for predicting the DTA and EW phenotypes of the CUBIC1404 inbred line in an unknown environment. DETAILED DESCRIPTION
[0096] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0097] Example 1
[0098] The present invention proposes a genomic prediction model of the interaction between corn genotype and environment based on the fusion of gating mechanism MLP and linear attention mechanism, named GEFormer, which includes gMLP layer, TimeFeatureBlock layer and CrossGatedMLP layer; first, the gMLP layer is used to extract genotype data features from both local and global aspects, and then capture the long-distance dependency between SNP sites; based on the pattern of the actual crop growth environment, the TimeFeatureBlock layer uses the fully dynamic convolution (ODconv) to fuse the features between different environmental factors within each day, and uses the linear attention mechanism to extract the temporal characteristics of environmental factors between each day during the crop growth period; based on the idea of fusing cross-modal features, the CrossGatedMLP layer fuses the extracted genotype features and environmental features, and then captures the complex nonlinear relationship hidden between different omics data. The technical solution provided by the present invention is as follows: Figure 1 shown.
[0099] See also Figure 1 , an embodiment of the present invention comprises the following steps:
[0100] S1, obtain the whole genome data obtained by sequencing, the environmental data of the whole growth period of corn, and the phenotypic data obtained in the field, and perform data preprocessing on the obtained whole genome data, environmental data, and phenotypic data; the specific steps are:
[0101] The whole genome data of the breeding material is obtained by sequencing, and the breeding chip data of the corresponding species is obtained. The whole genome data is compared with the breeding chip data to obtain high-quality variant site data. The comparison method includes taking the intersection, and the genotype data obtained is the SNP site sequence data G with a length of l. l}, g i ∈{0,1,2};
[0102] For environmental data, data on environmental factors related to light, temperature, water, air, and soil are collected from the time of planting to the time of harvesting at the crop planting site;
[0103] For each breeding material, the phenotypic data corresponding to each planting environment are collected, including plant height, flowering period, yield and other agronomic traits;
[0104] S2, in the GEFormer model, the gMLP module is used to extract genotype data features from local and global aspects for the input whole genome data, and then capture the long-distance dependency relationship feature G* between SNP sites; the specific steps are:
[0105] S201, input the SNP site sequence G into the gMLP layer and map it to a higher dimensional space through linear transformation to enhance the feature representation ability of the model to obtain G (1) .
[0106] S202, G (1) Input GELU activation function and get output G (2) The GELU activation function is a smooth nonlinear function that approximates a linear transformation when the input value is small. It saturates when the input value is large, which helps the model to quickly propagate gradients, prevent overfitting, and make the model more stable during gradient calculation and back propagation.
[0107] The implementation of the GELU activation function is as follows:
[0108]
[0109] Among them, g∈G (1) , μ is the mean of the normal distribution, and σ is the standard deviation of the normal distribution.
[0110] S203, the output G of the activation function (2) Enter the spatial gating unit (SGU); the specific steps are:
[0111] First, G. (2) It is divided into two parts of the same shape: res and gate; res is used to transmit raw information, and gate is used as a gating mechanism to control the flow of information;
[0112] Secondly, divide the feature dimension of gate into multiple heads to get gate (1) Then the gate (1) Perform spatial projection and get gate (2) This operation enables the model to capture input data features from different angles. At the same time, different weights are used to weight the gated tensor of each head, allowing the model to learn features more flexibly. The specific implementation is as follows:
[0113]
[0114] Among them, gate (2) ∈R b×h×m×d , gate (1) ∈R b×h×n×d , W∈R h×m×n , bias∈R 1×h×n×1 ; Where b represents the batch size, h represents the number of heads, d represents the feature dimension, m represents the output feature dimension, N represents the sequence length, n represents the sample sequence length, and the projection weight parameter W and bias come from the model parameters;
[0115] Finally, the spatial projection output gate (2) Multiply it with the corresponding linear transformation output to get G (3) . G (3) It preserves long-distance dependencies while retaining important features and weakening the influence of unimportant features. The specific calculation process is:
[0116] G (3) =res⊙gate (2) ;
[0117] S204, output G to SGU (3) Perform layer normalization, global average pooling and linear transformation to extract the global information of the feature map and map it to the specified dimension to obtain the genotype feature G*;
[0118] S3, for the input full growth period environmental data, refer to the model of the real crop growth environment, and capture the temporal characteristics E* of environmental factors through the TimeFeatureBlock module; the specific steps are:
[0119] For the input full-growing period environmental data, the TimeFeatureBlock layer is used to extract environmental features. The input of TimeFeatureBlock is the date vector D (1) and the environmental factor vector E (1) Among them, D (1) ∈R d×3 is the encoded d-day date vector, E (1) ∈R d×eis the normalized tensor of e environmental factors for each day. The TimeFeatureBlock layer contains an embedding layer, a dynamic convolution layer, and a linear attention layer. Specifically:
[0120] S301, the embedding layer consists of three parts: value embedding (value_embedding), position embedding (position_embedding) and time embedding (temporal_embedding), which are used to fuse the embedding information of time series and environmental factors to form a richer semantic representation; the specific steps are:
[0121] First, use value embedding to transform E (1) The values in are converted to a low-dimensional representation E (2) , which helps the model learn the relationship between the values in the input tensor. The specific calculation process of value embedding is as follows:
[0122]
[0123] Among them, E∈R n , E (1) ∈R c’ , n represents the index of the input channel, c represents the number of input channels, and c' represents the number of output channels.
[0124] Secondly, E (1) The input position embedding module uses sine and cosine functions to encode the position information of the input sequence into a vector form. This operation enables the model to better learn the relative position relationship between elements in the sequence and obtain a vector E containing the internal position relationship of the sequence. (3) The weight calculation process of position embedding is as follows:
[0125]
[0126] Among them, pos represents the position in the input sequence, i represents the dimension index, d represents the embedding dimension, Pos_Embedding(pos, 2i) and Pos_Embedding(pos, 2i+1) represent the even dimension and odd dimension of the position pos in the position embedding matrix respectively.
[0127] Then, D (1) Input the time embedding module to get D (2) This module maps time features to a higher dimension, which helps the model better understand time information. The specific calculation process of time embedding is as follows:
[0128]
[0129] Among them, i represents the time dimension, Embedding iRepresents the embedding function for the i-th time dimension.
[0130] Finally, the value is embedded in the output E (2) , the output of the position embedding E (3) and the temporal embedded output D (2) Add together to get E (4) .
[0131] S302, embed the output E of the layer (4) Enter the dynamic convolution layer to capture the comprehensive effects of various environmental factors within each day; the specific steps are:
[0132] First, based on the input E (4) Through the multi-dimensional attention mechanism, different core attentions are obtained, namely channel attention A channel ,Spatial Attention A spatial ,Convolution kernel attention A kernel and filter attention A filter The specific implementation process is as follows:
[0133] A channel =σ(Conv1d channel (E (4) ))
[0134] A spatial =σ(Conv1d spatial (E (4) ))
[0135] A kernel =softmax(Conv1d kernel (E (4) ))
[0136] A filter =σ(Conv1d filter (E (4) ))
[0137] Among them, σ is the Sigmoid activation function, A channel ∈R b×c×1 , A spatial ∈R b×1×1×1×k , A kernel ∈R b ×n×1×1×1 , A filter ∈R b×c’×1 , E (4) ∈R b×c×1 . Among them, b is the batch size, c is the number of input channels, c' is the number of output channels, k is the convolution kernel size, and n is the number of convolution kernels.
[0138] Then, A channel Applied to E(4) Each channel gets E (5) , for E (5) Perform convolution operation. spatial ,A kernel Multiply it with the initial weight weight as the weight of the convolution to get the output E (6) . E (4) Each channel of corresponds to different environmental factors (such as temperature, water, etc.) and time characteristics. Channel attention assigns different weights to these channels, making the model pay more attention to environmental factors with greater influence.
[0139] Finally, A filter Applied to the feature vector E of the convolution output (6) , and get E (7) By adjusting the weights of each filter, more critical environmental features can be extracted when outputting features, further improving the feature representation capability of the model.
[0140] S303, the output E of the dynamic convolution layer (7) Input the linear attention layer to capture the dependencies of each day’s environmental factors; the specific steps are:
[0141] First, for E (7) Perform linear mapping to obtain the query vector Q, key vector K and value vector V.
[0142] Secondly, using the total number of queries L Q , total number of keys L K Calculate the number of randomly sampled keys U_part, the number of sampled queries u, and randomly sample U_part keys to get K_sample. Then, based on the attention scores of the query Q and the sampled key K_sample, calculate the sparsity measurement value M. This value is used to measure the difference between the weight distribution of each query and the uniform distribution. The larger the value, the sparser the attention weight distribution. The specific implementation is as follows:
[0143]
[0144] Among them, the constant c represents the scaling factor, L K Indicates the length of the key sequence, L Q Indicates the sequence length of the query. m ∈Q,q m is the mth query vector. k n ∈K_sample,k n is the nth key vector. d is the dimension of the query vector and key vector, L K is the sequence length of the key.
[0145] Then, according to the sparsity measurement value M, take the query vector Q corresponding to the first u queriesreduce , calculate K and Q reduce The attention score is the degree of association between each time step and other time steps. Finally, the attention score is applied to the value vector to obtain a representative sequence feature E (8) The specific implementation is as follows:
[0146]
[0147] Among them, Q reduce are the top u queries selected based on the sparsity measure M.
[0148] Finally, for E (8) Perform linear transformation and integrate the comprehensive information from multiple sources to obtain E (9) Through convolution and maximum pooling, E (9) Perform feature extraction to obtain environmental features E*.
[0149] S4, based on the idea of fusing cross-modal features, uses CrossGatedMLP to fuse the extracted genotype features G* and environmental features E*, thereby capturing the hidden complex nonlinear relationships between different omics data and obtaining the fused features C (6) ; The specific steps are:
[0150] The CrossGatedMLP module fuses the genotype feature G* and the environmental feature E* by transferring and integrating the information of the two features. This layer consists of two MLPs. The MLP (Hidden MLP) containing the GELU activation function is used to calculate the hidden representation of the input. The other two MLPs (Gate MLP) containing the Sigmoid activation function are used to calculate the gate weights. The details are as follows:
[0151] First, the output G* of the gMLP layer and the output E* of the TimeFeatureBlock layer are input into the CrossGatedMLP layer. The hidden representation G of G* and E* is calculated by Hidden MLP. (4) and E (10) At the same time, the gate weights G of G* and E* are calculated through Gate MLP (5) and E (11) .
[0152] Secondly, the gate weight G (5) and E (11) Applied to the hidden representation G (4) and E (10) , and get C (1) and C (2) Then splice C (1) and C (2) Get the fusion feature C (3)The cross-gating mechanism controls the interaction of input features by adjusting the gating weights. The specific implementation is as follows:
[0153] C (1) =(1-G (5) )×G (4) +E (11) ×E (10)
[0154] C (2) =(1-E (11) )×E (10) +G (5) ×G (4)
[0155] Finally, G*×E* is obtained by multiplying G* and E*. Through CrossGatedMLP, the features of G* and G*×E*, E* and G*×E* are fused respectively to obtain the fused feature C (4) and C (5) . Splicing C (3) ,C (4) and C (5) Get the interaction characteristic C between genotype and environment (6) .
[0156] S5, using a fully connected neural network to fused feature C (6) Perform linear regression to predict the phenotypic value of the material; the specific steps are:
[0157] First, the genotype-environment interaction characteristic C (6) Input linear layer, get C through linear mapping (7) This operation extracts key features while reducing the dimension of the feature vector.
[0158] Then, C (7) Input LeakyReLU activation function. LeakyReLU introduces a non-zero slope, which solves the problem that the gradient of the ReLU activation function is 0 in the negative region, causing the neuron to fail to update. The output of the activation function is C (8) The input features are fitted nonlinearly, which has stronger feature expression ability. The calculation process of the LeakyReLU activation function is as follows (where c∈C (7) ):
[0159] LeakyReLU(c)=max(αc,c)
[0160] The output of the activation function C (8) Through Dropout, some neuron outputs are randomly set to 0, and C (9) This operation weakens the dependency between neurons in the network, prevents overfitting, and improves the generalization ability of the model.
[0161] Finally, C is transformed into (9) Mapped to a value, which is the predicted phenotype value C output by the model (10) .
[0162] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0163] Example 2
[0164] The GEFormer method of the present invention exhibits strong robustness in different experimental settings. Based on four corn data sets, three types of experiments (untested genotypes in untested environments, tested genotypes in untested environments, and untested genotypes in untested environments) were used to verify the accuracy of GEFormer in predicting three important agronomic traits (plant height, flowering period, and yield). The results of the three types of experiments showed that the prediction accuracy of GEFormer was better than the six cutting-edge statistical learning methods and four machine learning methods. The experimental setting technical solution provided by the present invention is as follows Figure 2 shown.
[0165] The experiment of genome prediction was carried out in the corn data (CUBIC1404 inbred line, CUBIC1404*JING724 hybrid, CUBIC1404*ZHENG58 hybrid, CUBIC6210 hybrid, Maize976 hybrid) population, and the superiority of the method of the present invention in the interaction between genotype and environment was explained in detail through relevant experiments.
[0166] The present invention evaluates the predictive performance of untested genotypes in a tested setting. The phenotypic prediction accuracy of GEFormer was compared with four machine learning methods (random forest (RF), gradient boosted decision tree (XGBoost), stacking ensemble model (Stacking) and multilayer perceptron (DL)) and six statistical learning methods (main effect EAD plus GE bias model based on genomic best linear unbiased prediction (EAD+GE(GB)), main effect EAW plus GE reaction norm model based on genomic best linear unbiased prediction (EADW+GW(GB)), main effect EAD plus GE bias model based on Gaussian kernel (EAD+GE(GK)), main effect EAW plus GE reaction norm model based on Gaussian kernel (EADW+GW(GK)), main effect EAD plus GE bias model based on deep kernel (EAD+GE(DK)) and main effect EAW plus GE reaction norm model based on deep kernel (EADW+GW(DK)) in three populations (CUBIC1404 inbred line, CUBIC1404*JING724 hybrid and CUBIC1404*ZHE NG58 hybrid). Figure 3 As shown in Figure 3 As shown in (A, B, C), GEFormer has a higher PH prediction accuracy in most environments than the four machine learning methods and six statistical learning methods. At the same time, GEFormer has the highest average prediction accuracy in both the CUBIC1404 inbred line and the CUBIC1404*JING724 hybrid populations, which are 58.93% and 46.83%, respectively, which are at least 2.20% and 2.87% higher than the comparison methods. In the CUBIC1404*ZHENG58 population, GEFormer has an average prediction accuracy of 53.92%, which is slightly lower than the best method (EAD+GE(GK)) by 0.12%. Figure 3 As shown in (D, E, F), the EW prediction accuracy of GEFormer in all environments of different groups is higher than that of the comparison methods, with an average prediction accuracy of 40.13%, 31.85%, and 41.61%, which is at least 3.57%, 3.99%, and 2.56% higher than that of the comparison methods.
[0167] The present invention evaluates the prediction performance of the test genotype in an untested environment. Using data from three populations, the phenotypic prediction accuracy of GEFormer was compared with that of four machine learning methods and six statistical learning methods for the test genotype in an untested environment. In the prediction of PH and EW in each population, the average prediction accuracy of the three methods, DL, EADW+GW (GB) and EADW+GW (DK), in different environments was lower than that of other methods (such as Figure 4As shown). At the same time, the prediction accuracy of GEFormer and eight methods (RF, XGBoost, Stacking, EAD+GE(GB), EAD+GE(GK), EADW+GW(GK) and EAD+GE(DK)) in different environments is relatively stable. For EW, GEFormer has the highest average prediction accuracy in all three groups, which is at least 0.46%, 2.47% and 0.24% higher than the comparison methods. It can be seen that in the phenotypic prediction of the tested genotypes in the untested environment of the three groups, GEFormer has a higher average prediction accuracy, and the prediction performance in different environments is relatively stable.
[0168] The present invention evaluates the prediction performance of untested genotypes in untested environments. In the phenotypic prediction of the three groups, GEFormer has the highest PH prediction accuracy in each environment, with an average accuracy of 58.87%, 48.12%, and 55.16%, which is at least 1.57%, 2.57%, and 2.14% higher than the comparison method. At the same time, GEFormer has the highest EW prediction accuracy in each environment, with an average prediction accuracy of 36.27%, 26.52%, and 36.68% in the three groups, respectively, which is 2.57% (EAD+GE(GK)), 5.70% (EADW+GW(GK)), and 1.96% (EAD+GE(GK)) higher than the best comparison method.
[0169] The present invention designs a strategy to find the relatively optimal training set environment for predicting the phenotype of an unknown environment with fewer experimental combinations, without exhausting all combinations of known environments. Taking the phenotypic prediction of the JL (Jilin) environment of the CUBIC1404 population as an example, one environment is divided from the four known environments of LN, BJ, HB and HN for model verification, and the remaining three environments are used for training models. Then the four models obtained by training are used to independently predict the phenotype of the JL environment. Select the three training set environments corresponding to the optimal accuracy rate for further analysis. Select one environment from the three environments for model verification, and the remaining two environments are used for model training. Similarly, select the model with the highest prediction accuracy and compare it with the optimal accuracy rate obtained in the previous step. If the optimal accuracy rate of the two environmental training sets is lower than the optimal accuracy rate of the three training set environments, it indicates that the phenotypic trait prediction of the environment requires three training set environments, that is, the best training set environment for predicting the phenotype of the JL environment is found. Otherwise, the training set environment corresponding to the optimal accuracy rate is further analyzed. One of the two environments is used for model verification, and the other environment is used for model training. The prediction accuracy of the two models is evaluated and compared with the optimal accuracy obtained in the previous step until the highest prediction accuracy is obtained, that is, the best training set environment for predicting the JL environmental phenotype is found.
[0170] For the CUBIC1404 inbred line population, the independent prediction accuracy of the training model corresponding to different training set environments was obtained (e.g. Figure 6 and Fig.11 (shown). When the JL, LN, BJ, HB, and HN environments were unknown, the accuracy of the model trained using three environments in predicting PH and EW phenotypes was generally better than that of the model trained using two environments, with the average values of the best prediction accuracy being 77.21% and 52.19%. When the LN and BJ environments were unknown, the model trained using three environments had the highest accuracy in predicting DTA phenotypes. When the JL, HB, and HN environments were unknown, the prediction accuracy of the model trained using two environments was 2.73%, 1.33%, and 1.75% higher than that of the model trained using three environments, respectively, and the difference between the two was not large. Therefore, the model trained using more environmental data can better predict the phenotypes of unknown environments in most cases.
[0171] The method of the present invention is applied to evaluate the optimal prediction model of the unknown environment to recommend stable and high-yield varieties. The overlap between the top 5% of the varieties predicted by GEFormer with the highest yield and the top 5% of the varieties with the highest actual yield is calculated as an indicator for recommending stable and high-yield varieties. First, the overlap between 5% of the lines in the CUBIC inbred line population and the top 5% of the lines with the highest actual yield is selected and the average value of 100 repetitions is compared with the accuracy of GEFormer recommendation. The results are shown in Fig. 7 (AE). When BJ is used as an unknown environment, GEFormer recommends a total of 27 varieties planted in BJ for high yield, with a recommendation accuracy of 38.57%, which is much higher than the random recommendation result of 4.87%. When HB is used as an unknown environment, GEFormer recommends a total of 22 varieties planted in HB for high yield, with a recommendation accuracy of 31.43%, which is much higher than the random recommendation result of 5.51%. When HN was used as an unknown environment, GEFormer recommended 28 varieties for high yield in HN, with a recommendation accuracy of 38.57%, much higher than the random recommendation result of 5.06%. When JL was used as an unknown environment, GEFormer recommended 16 varieties for high yield in JL, with a recommendation accuracy of 22.86%, much higher than the random recommendation result of 5.40%. When LN was used as an unknown environment, GEFormer recommended 22 varieties for high yield in HB, with a recommendation accuracy of 31.43%, much higher than the random recommendation result of 5.51%. Among them, three varieties (MG_739, MG_1000 and MG_1232) had stable high yields in all five regions (such as Figure 7 (F)).
[0172] The method of the present invention was applied to evaluate the predictive ability of inbred lines to predict hybrids. The 6210 hybrid population was obtained by hybridizing 207 materials from the CUBIC1404 inbred population and 30 test materials. The 207 maternal materials, maternal and paternal materials (207+30) were used as training populations, respectively, and the prediction model GEFormer_M3 was trained under untested genotypes in untested environments. The model was then used to predict the three phenotypes (PH, EW and DTA) of the 6210 hybrid population. The results are shown in Figure 2. Figure 8 The average accuracy of PH, EW and DTA were 46.44%, 24.30% and 57.71%, respectively, which were 31.25%, 16.99% and 51.62% higher than the model trained with maternal materials alone. It can be seen that the fusion of maternal and paternal inbred line data can effectively improve the accuracy of hybrid phenotype prediction.
[0173] Furthermore, the high-dimensional features extracted by each module in the GEFormer model were reduced to 2-dimensional plane features through the feature visualization technology t-SNE. By comparing the differences in the correlation between the features captured by the same module after dimensionality reduction and the phenotype, the reason why the GEFormer model trained with maternal and paternal data has a higher prediction accuracy is analyzed. Taking the prediction results of the EW trait of the 6210 population in the LN region as an example, the feature visualization results extracted by the GEFormer_M3 model trained only with maternal data are shown in the figure below. Fig. 9 As shown in the figure, the feature visualization results extracted by the GEFormer_M3 model trained with maternal and paternal data are shown in Fig.10 The colors in the figure represent the correlation between the captured features and the phenotypic values. Fig. 9 (A) and Fig.10 (A) The original SNP data has complex nonlinear characteristics and some clustering phenomena. Fig. 9 (B) and Fig.10 (B) The available environmental factor characteristics are relatively discrete, and there are fewer characteristics related to the phenotype. Fig. 9 (C) and Fig.10 (C) shows the correlation between genotype features and phenotypes after gMLP extraction. GEFormer_M3_M (model trained based on maternal data) captures more features similar to the original SNP data. GEFormer_M3_P (model trained by integrating maternal and paternal data) can capture more complex nonlinear features related to dominant effects or epistasis. Fig. 9 (D) Fig.10(D) represents the correlation between the environmental factor features extracted by TimeFeatureBlock and the phenotype. It can be seen that GEFormer_M3 captures more correlations between environmental factors and temporal features, and learns more features related to phenotypes. GEFormer_M3_P captures more dense environmental factor features than GEFormer_M3_M. Fig. 9 (E) Fig.10 (E) shows the correlation between the genotype features extracted by CrossGatedMLP and the environmental factor features after fusion and the phenotype. Compared with the genotype features and environmental factor features before fusion, more abundant features can be obtained after fusion manipulation. This shows that GEFormer can learn complex nonlinear fusion features. GEFormer_M3_P can capture more complex variation features than GEFormer_M3_M. Fig. 9 (F) Fig.10 (F) indicates that the fused features are further enhanced by MLP to enhance the correlation between the fused features and the phenotype. It can be seen that GEFormer_M3_P captures more complex nonlinear relationships and richer variation characteristics than GEFormer_M3_P. Therefore, the GEFormer model trained based on maternal and paternal data can capture more complex nonlinear characteristics of genotypes, environmental factors, and the interaction between genotypes and the environment, and its prediction accuracy is higher than that of the model trained only using maternal data.
[0174] The method of the present invention is applied to predict the phenotype analysis of hybrids across populations. 100 materials are randomly selected from the Maize976 hybrid population as a test set, and the population after removing 100 test materials from the Maize976 population is recorded as the Maize976* population. The CBUIC1404 inbred population, the Maize976* population and the CUBIC1404+Maize976* population are used to construct GEFormer_M2 and GEFormer_M3 models under the M1 and M2 experimental schemes, respectively. The results of the above model predicting the PH and EW of 100 materials in Maize976 are shown in Table 1.
[0175] Table 1 Experimental results of cross-group prediction of PH and EW
[0176]
[0177]
[0178] Among them, 976* represents the population after removing 100 test materials from the Maize976 population.
[0179] Compared with the CUBIC1404 population, the GEFomer_M2 and GEFomer_M3 models trained with the 976* population showed an average increase of 28.0% and 45.62% in the accuracy of predicting PH phenotypes, and an average increase of 52.11% and 26.21% in the accuracy of predicting EW. Furthermore, the two models trained with CUBIC1404+Maize976* showed the highest accuracy in predicting most phenotypes. This indicates that adding some hybrid materials to the training set of the inbred population can significantly improve the accuracy of predicting the phenotypes of the hybrid population. At the same time, the prediction performance of GEFomer_M2 trained with CUBIC1404+Maize976* was better than that of GEFomer_M3. The average accuracy of the former in predicting PH and EW was 2.04% and 16.72% higher than that of the latter, respectively. This indicates that using data from all materials in the population under different environments can also improve the accuracy of predicting the phenotypes of the hybrid population.
[0180] The above embodiments are only used to illustrate the design ideas and features of the present invention, and their purpose is to enable those skilled in the art to understand the content of the present invention and implement it accordingly. The protection scope of the present invention is not limited to the above embodiments. Therefore, any equivalent changes or modifications made based on the principles and design ideas disclosed by the present invention are within the protection scope of the present invention.
Claims
1. A genome prediction method integrating gating and linear attention mechanism G×E interaction, characterized by: The following steps are involved: S0: Build the GEFormer model, including the gMLP layer, TimeFeatureBlock layer, and CrossGatedMLP layer; The gMLP layer is used to extract genotype data features from both local and global aspects, thereby capturing the long-range dependencies between SNP sites; The TimeFeatureBlock layer is used to fuse the features of different environmental factors within each day through fully dynamic convolution, and uses a linear attention mechanism to extract the temporal characteristics of environmental factors between each day during the crop growth period; the TimeFeatureBlock layer includes an embedding layer, a dynamic convolution layer, and a linear attention layer; the embedding layer includes a value embedding module, a position embedding module, and a time embedding module, which are used to fuse the embedded information of time series and environmental factors; The CrossGatedMLP layer is used to fuse and extract genotype features and environmental features, thereby capturing the hidden complex nonlinear relationships between different omics data; the CrossGatedMLP layer includes Hidden MLP and Gate MLP; Hidden MLP includes the GELU activation function, which is used to calculate the hidden representation of the input; Gate MLP includes a Sigmoid activation function, which is used to calculate the gate weights; S1: Obtain the whole genome data, environmental data and phenotypic data of breeding materials and perform preprocessing; S2: The whole genome data is input into the GEFormer model, and the genotype data features are extracted from both local and global aspects through the gMLP layer to capture the genotype features of the long-distance dependency relationship between SNP sites; S3: Input the environmental data of the entire growth period into the GEFormer model, extract the environmental features through the TimeFeatureBlock layer, and capture the environmental features; S4: The genotype features and environmental features are fused through the CrossGatedMLP layer to capture the hidden complex nonlinear relationships between different omics data and obtain the fused features; S5: Use a fully connected neural network to perform linear regression on the fused features to predict the phenotypic value of the breeding material.
2. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 1, characterized in that: In the step S1, the specific steps are: S11: Obtain the whole genome data of breeding materials and breeding chip data of corresponding species through sequencing; Compare whole genome data with breeding chip data to obtain high-quality variant site data; The comparison method includes taking the intersection, and the genotype data is the SNP site sequence data G = {g1, g2…g l }, g i ∈{0,1,2}; S12: For environmental data, collect environmental factor data related to light, temperature, water, air and soil factors from planting time to harvest time at the crop planting site; S13: Collect the agronomic traits of the planting environment corresponding to the phenotypic data of each breeding material, including plant height, flowering period and yield.
3. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 2, characterized in that: In the step S2, the specific steps are: S21: Input the SNP site sequence G into the gMLP layer and map it to a higher dimensional space through linear transformation to obtain G (1) ; S22: G (1) Input GELU activation function and get output G (2) : Where g∈G (1) , μ is the mean of the normal distribution, σ is the standard deviation of the normal distribution; S23: The output G of the activation function (2) Input spatial gating unit SGU, get output G (3) ; S24: Output G of the spatial gating unit SGU (3) Layer normalization, global average pooling and linear transformation are performed to extract the global information of the feature map and map it to the specified dimension to obtain the genotype feature G*.
4. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 3, characterized in that: In the step S23, the specific steps are: S231: G (2) Divided into parts of the same shape, including res and gate; res is used to transmit raw information, and gate is used for gating mechanisms to control the flow of information; S232: Let b represent the batch size, h represent the number of heads, d represent the feature dimension, m represent the output feature dimension, N represent the sequence length, n represent the sample sequence length, the projection weight parameter W and the bias bias come from the model parameters; divide the feature dimension of gate into multiple heads to get gate (1) ; Then for gate (1) Perform spatial projection to obtain gate (2) : Where gate (2) ∈R b×h×m×d , gate (1) ∈R b×h×n×d , W∈R h×m×n , bias∈R 1×h×n×1 ; S233: Gate that outputs the spatial projection (2) Multiply it with the corresponding linear transformation output to get G (3) : G (3) =res⊙gate (2) 。 5. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 4, characterized in that: In the step S3, S31: Input date vector D to the embedding layer of TimeFeatureBlock layer (1) and the environmental factor vector E (1) , D (1) ∈R d×3 is the encoded d-day date vector, E (1) ∈R d×e is the environmental factor vector after the e environmental factors are standardized every day; the embedding layer outputs E (4) ; S32: E (4) Input the dynamic convolution layer, which captures the comprehensive effects of various environmental factors within a day and outputs E (7) ; S33: E (7) Input the linear attention layer, which captures the dependencies of each day’s environmental factors and obtains the environmental feature E*.
6. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 5, characterized in that: In the step S31, the specific steps are: S311: E is embedded in the value module (1) The values in are converted to a low-dimensional representation E (2) : Among them, E∈R n , E (1) ∈R c’ , n represents the index of the input channel, c represents the number of input channels, and c' represents the number of output channels; S312: E (1) The input position embedding module uses sine and cosine functions to encode the position information of the input sequence into a vector form, and obtains a vector E containing the internal position relationship of the sequence. (3) ; The weight calculation process of position embedding is as follows: Where pos represents the position in the input sequence, i represents the dimension index, d represents the embedding dimension, Pos_Embedding(pos, 2i) and Pos_Embedding(pos, 2i+1) represent the even and odd dimensions of the position pos in the position embedding matrix respectively; S313: D (1) Input the time embedding module to get D (2) ; The specific calculation process of time embedding is as follows: Among them, i represents the time dimension, Embedding i represents the embedding function for the i-th time dimension; S314: embed the value into the output E of the module (2) , the output E of the position embedding module (3) and the output D of the temporal embedding module (2) Add together to get E (4) .
7. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 5, characterized in that: In the step S32, the specific steps are: S321: Input-based E (4) , different core attentions are obtained through multi-dimensional attention mechanisms, including channel attention A channel , Spatial Attention A spatial , convolution kernel attention A kernel and filter attention A filter : TO channel =σ(Conv1d channel (AND (4) )), TO spatial =σ(Conv1d spatial (AND (4) )), THE kernel =softmax(Conv1d kernel (AND (4) )), TO filter =σ(Conv1d filter (AND (4) )), Among them, σ is the Sigmoid activation function, A channel ∈R b×c×1 , A spatial ∈R b×1×1×1×k , A kernel ∈R b×n×1×1×1 , A filter ∈R b×c’×1 , E (4) ∈R b×c×1 ; b is the batch size, c is the number of input channels, c' is the number of output channels, k is the convolution kernel size, and n is the number of convolution kernels; S322: A channel Applied to E (4) Each channel gets E (5) , for E (5) Perform convolution operation; at the same time, A spatial , A kernel Multiply it with the initial weight weight as the weight of the convolution, and output E (6) ; S323: A filter Applied to the feature vector E of the convolution output (6) Get E (7) .
8. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 5, characterized in that: In the step S33, the specific steps are: S331: To E (7) Perform linear mapping to obtain query vector Q, key vector K and value vector V; S332: According to the total number of keys L K and the total number of queries L Q Calculate the number of randomly sampled keys U_part and the number of sampled queries u; randomly sample U_part keys to get K_sample; calculate the sparsity measure M based on the attention score of the query Q and the sampled key K_sample: Among them, the constant c represents the scaling factor, L K Indicates the length of the key sequence, L Q Indicates the sequence length of the query; q m ∈Q,q m is the mth query vector; k n ∈K_sample,k n is the nth key vector; d is the dimension of the query vector and key vector, L K is the sequence length of the key; S333: According to the sparsity measurement value M, take the query vector Q corresponding to the first u queries reduce , calculate K and Q reduce The attention score is the degree of association between each time step and other time steps; the attention score is applied to the value vector to obtain a representative sequence feature E (8) : Among them, Q reduce are the top u queries selected based on the sparsity measure M; S334: To E (8) Perform linear transformation and integrate the comprehensive information from multiple sources to obtain E (9) ; Through convolution and maximum pooling, E (9) Perform feature extraction to obtain environmental features E*.
9. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 8, characterized in that: In the step S4, the specific steps are: S41: Input the genotype feature G* and the environmental feature E* into the CrossGatedMLP layer; calculate the hidden representation G of G* and E* through the Hidden MLP (4) and E (10) ; Calculate the gate weight G of G* and E* through Gate MLP (5) and E (11) ; S42: Gating weight G (5) and E (11) Applied to the hidden representation G (4) and E (10) , and get C (1) and C (2) ; Splice C (1) and C (2) Get the fusion feature C (3) : S43: Multiply G* and E* to get G*×E*; perform feature fusion on G* and G*×E*, E* and G*×E* through the CrossGatedMLP layer to get the fused feature C (4) and C (5) ; Splice C (3) , C (4) and C (5) Get the interaction characteristic C between genotype and environment (6) .
10. The genome prediction method integrating gating and linear attention mechanism G×E interaction according to claim 9, characterized in that: In the step S5, the specific steps are: S51: Characterizing genotype-environment interactions (6) Input linear layer, get C through linear mapping (7) ; S52: C (7) Input LeakyReLU activation function, output C (8) Nonlinearly fit the input features; let c∈C (7) , the calculation process of the LeakyReLU activation function is as follows: LeakyReLU(c)=max(αc,c), C (8) Through Dropout, the output of some neurons is randomly set to 0, and C (9) ; S53: C is transformed by linear transformation (9) Mapped to a value, which is the predicted phenotype value C output by the model (10) .
Citation Information
Patent Citations
Complex character efficient genome prediction method based on deep learning
CN117711484A
Rice phenotype prediction method and system based on whole genome selection
CN118072823A
High-efficiency multi-environment whole genome prediction method and system based on deep learning
CN118098344A
Multivariate Genetic Evaluation Of Maize For Grain Yield And Moisture Content
US20130325355A1
Machine learning driven gene discovery and gene editing in plants
US20220301658A1
Cited By
Genome prediction method and model for corn genotype and environment cross-modal feature fusion
CN119560010A
Method and device for constructing prediction model for predicting plant phenotype
CN120048340A
Model and method for predicting biological traits by integrating genetic background and variation information
CN120108509A
Corn genome prediction method and model based on multiple attention mechanisms and whole-genome characteristics
CN120690275A
Genotype-environment interaction prediction method based on multi-modal attention and mixed experts and application of genotype-environment interaction prediction method
CN121601042A
