A method and system for association analysis of crop target traits
By screening candidate genetic loci and constructing associated feature data, the target trait prediction model is trained with sparse constraints, which solves the problem of data processing scale and effective information extraction in existing technologies and improves the accuracy of crop target trait prediction.
Patent Information
- Application Number
- CN202611669249.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
Existing technologies in crop breeding struggle to balance the scale of data processing with the extraction of effective correlation information, resulting in insufficient accuracy in the prediction of target traits.
By screening candidate genetic loci, we construct association feature data including single locus effect features and inter-locus interaction effect features, and train the target trait prediction model with sparse constraints to determine the target association features and the trained target trait prediction model.
It improves the accuracy of crop target trait association analysis, reduces the impact of information with low association with target traits on model training, and enhances the utilization of effective association information in genotype detection data.
Smart Images

Figure CN123158577A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of agricultural technology, and more specifically to a method and system for correlation analysis of crop target traits. Background Technology
[0002] In crop breeding, accurate prediction of target traits helps in screening crop samples with the potential for those traits from a crop population. With the development of genotyping technology, genotype detection data of crop samples at multiple genetic loci can be obtained, and combined with corresponding phenotypic measurement data of the target trait, the relationship between genotype detection data and the target trait can be analyzed. Currently, statistical analysis methods or data-driven models are typically used to process genotype detection data and phenotypic measurement data to predict the target trait of crop samples.
[0003] However, crop genotype detection data typically exhibits high dimensionality, a large number of genetic loci, and complex relationships between different genetic loci and target traits. Existing target trait prediction methods struggle to balance data processing scale with the extraction of effective association information when handling such data. Furthermore, information with low correlation to the target trait may hinder the prediction model's learning of effective information, making it difficult for the model to fully represent the association between genotype detection data and the target trait, thus affecting the accuracy of the target trait prediction results. Summary of the Invention
[0004] The main objective of this invention is to provide a method and system for crop target trait association analysis. By acquiring reference genotype data and target trait phenotypic measurement data from multiple reference crop samples, candidate genetic loci are screened from multiple genetic loci. Based on the genotype values corresponding to the candidate genetic loci, association feature data including single-locus effect characteristics and inter-locus interaction effect characteristics are constructed. The target trait prediction model is trained with sparse constraints based on the association feature data and phenotypic measurement data to determine the target association features and the trained target trait prediction model. Finally, the corresponding target trait prediction data is determined using the genotype data of the crop sample to be predicted. This reduces the impact of information with low association with the target trait on model training and improves the model's utilization of effective association information from genotype detection data, thereby improving the accuracy of crop target trait association analysis.
[0005] To achieve the above objectives, the embodiments of this application provide the following technical solutions: According to a first aspect of the embodiments of this application, a method for correlation analysis of crop target traits is provided, including: The reference genotype data of multiple reference crop samples, the phenotypic measurement data of the target trait of each reference crop sample, and the genotype data to be predicted of the crop sample to be predicted are obtained. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. Based on the reference genotype data and the phenotypic measurement data, candidate genetic loci are screened from the plurality of genetic loci, and the genotype values corresponding to the candidate genetic loci are extracted from the reference genotype data to obtain candidate locus data; Based on the candidate site data, associated feature data is constructed, which includes single site effect features and inter-site interaction effect features. Based on the associated feature data and the phenotypic measurement data, the target trait prediction model is trained with sparse constraints, and the target associated features and the trained target trait prediction model are determined based on the sparse constraint training results. Based on the genotype data to be predicted and the target association features, the target trait prediction data corresponding to the crop sample to be predicted is determined using the trained target trait prediction model.
[0006] Optionally, the step of screening candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data, includes: Based on the reference genotype data and the phenotypic measurement data, locus evaluation processing is performed on the multiple genetic loci to obtain locus evaluation data corresponding to each of the multiple genetic loci. The locus evaluation data is used to characterize the candidate priority of the corresponding genetic locus being selected as a candidate genetic locus. The number of candidate sites is determined based on the number of the multiple genetic loci and the preset upper limit for the number of candidate sites; The multiple genetic loci are ranked from high to low according to the candidate priority represented by the locus evaluation data; Based on the sorting results, select the genetic loci that are ranked first and whose number is equal to the number of candidate loci to obtain the candidate genetic loci; The candidate genetic locus data is obtained by extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data.
[0007] Optionally, the step of performing locus evaluation processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the plurality of genetic loci includes: Principal component analysis was performed on the reference genotype data to obtain population structure characteristic data that characterizes the differences in genetic structure among the multiple reference crop samples; The population structure characteristic data and the genotype values corresponding to each genetic locus in the current reference genetic locus set are determined as correction variables; the reference genetic locus set is used to record the genetic loci used as correction variables in the iterative association analysis process; Under the constraints of the correction variables, the association between the genotype values corresponding to the multiple genetic loci and the phenotypic measurement data is examined one by one to obtain the association significance data corresponding to the multiple genetic loci respectively; The genetic loci are divided into regions according to their genomic distribution locations; Based on the association significance data, the genetic locus with the highest association significance is selected from each region to obtain the reference genetic locus; The reference genetic locus set is updated using the reference genetic locus; Based on the updated reference genetic locus set, the association test and reference genetic locus set update are repeated until the reference genetic locus sets obtained in two adjacent iterations are the same or the number of iterations reaches the preset number. The last obtained association significance data is subjected to multiple tests for correction, and the multiple genetic loci are sorted according to the association significance corresponding to the corrected association significance data. The locus evaluation data is determined based on the sorting results.
[0008] Optionally, the step of performing locus evaluation processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the plurality of genetic loci includes: The genotype values corresponding to each genetic locus in the multiple reference crop samples are extracted from the reference genotype data to obtain the locus feature vector corresponding to each genetic locus. Following the same reference crop sample arrangement order, the locus feature vectors corresponding to the multiple genetic loci are combined to obtain locus feature data; Using the locus feature data as feature selection input and the phenotypic measurement data as feature selection target, feature selection processing is performed on the multiple genetic loci to obtain locus importance data corresponding to each genetic locus. The multiple genetic loci are sorted according to the locus importance represented by the locus importance data, and the locus evaluation data is generated based on the sorting results.
[0009] Optionally, constructing associated feature data based on the candidate site data includes: The genotype values corresponding to each candidate genetic locus in the multiple reference crop samples are extracted from the candidate locus data to obtain the candidate locus feature vector corresponding to each candidate genetic locus. The candidate site feature vectors corresponding to each candidate genetic site are determined as the additive effect features of the corresponding candidate genetic site; Each genotype value in the feature vector of each candidate locus is multiplied by itself to obtain the dominant effect feature of the corresponding candidate genetic locus. For any two different candidate genetic loci, the candidate locus feature vectors corresponding to the two different candidate genetic loci are multiplied element by element according to the same reference crop sample arrangement order to obtain the inter-locus interaction effect features corresponding to the two different candidate genetic loci. The additive effect features, the dominant effect features, and the inter-site interaction effect features are combined according to the same reference crop sample arrangement order to obtain the association feature data; Establish the correspondence between each associated feature in the associated feature data and the corresponding candidate genetic loci and effect type to obtain associated feature mapping data. The effect types include additive effects, dominant effects and inter-locus interaction effects.
[0010] Optionally, before training the target trait prediction model with sparse constraints, the method further includes: Trainable contribution parameters are set for each associated feature in the associated feature data, and a correspondence between each associated feature and its corresponding contribution parameter is established to obtain a set of contribution parameters. Multiply the associated feature value of each associated feature by the corresponding contribution parameter to obtain the feature processing relationship of the feature contribution value of each associated feature; Based on the aforementioned feature processing relationship and feature readout relationship, a feature readout structure is constructed that takes the associated feature data as input and outputs target trait prediction data; the feature readout relationship is obtained by summarizing multiple feature contribution values to generate target trait prediction data; The contribution parameter set is set as the trainable parameters and sparse constraint objects of the feature readout structure to obtain the target trait prediction model.
[0011] Optionally, the step of training the target trait prediction model with sparse constraints based on the associated feature data and the phenotypic measurement data includes: The associated feature data is converted into training input data in tensor form, and the training input data is loaded into the graphics processor; The training input data is input into the target trait prediction model, and the associated feature values in the training input data are weighted and combined according to the contribution parameter set to obtain the training prediction data corresponding to each reference crop sample. Determine the difference between the training prediction data and the corresponding phenotypic measurement data for each reference crop sample; The average of the squares of multiple differences is used to obtain the phenotypic fitting error data. The absolute value of each contribution parameter in the set of contribution parameters is determined, and the absolute values of multiple contribution parameters are summarized to obtain sparse constraint data; The sparse constraint data is weighted according to the preset sparse constraint weights, and the weighted sparse constraint data is added to the phenotypic fitting error data to obtain the model training loss data. The graphics processor iteratively adjusts the set of contribution parameters using gradient descent in the direction that reduces the training loss data of the model. Stop iterative adjustment when the preset number of iterations is reached, and obtain the post-training contribution parameters; The post-training contribution parameters are configured in the target trait prediction model to obtain a sparse training model.
[0012] Optionally, the step of determining the target association features and the trained target trait prediction model based on the sparse constraint training results includes: The absolute values of each post-training contribution parameter are determined to obtain the contribution intensity data corresponding to each associated feature; Determine the maximum contribution intensity data from multiple contribution intensity data; Multiply the maximum contribution intensity data by a preset screening ratio to obtain the contribution intensity screening threshold; Set the post-training contribution parameter of the associated feature whose contribution intensity data is less than the contribution intensity screening threshold to zero; The association features whose post-training contribution parameters are not zero are determined as the target association features, and the post-training contribution parameters corresponding to the target association features are determined as the target contribution parameters. Remove the input feature terms and contribution parameters corresponding to the associated features with zero contribution parameters after training from the feature readout structure of the sparse training model, and retain the input feature terms corresponding to the target associated features and the target contribution parameters to obtain the target trait prediction model after training.
[0013] Optionally, determining the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association features using the trained target trait prediction model includes: The candidate genetic loci and effect types corresponding to the target associated feature are found from the associated feature mapping data to obtain the target feature configuration data; Candidate genetic loci are configured according to the target features, and the genotype values of the corresponding candidate genetic loci are extracted from the genotype data to be predicted to obtain the data of the genotypes to be predicted. For target association features with additive effects, the genotype values of the corresponding candidate genetic loci in the data of the sites to be predicted are determined as additive predictable feature values; For a target association feature with a dominant effect type, the genotype value of the corresponding candidate genetic locus in the data of the site to be predicted is multiplied by itself to obtain the dominant predictable feature value. For the target association feature whose effect type is inter-site interaction effect, the genotype values of the two corresponding candidate genetic loci in the data of the site to be predicted are multiplied to obtain the interaction prediction feature value. According to the input order of the target association features in the post-trained target trait prediction model, the feature values to be predicted corresponding to the target association features are combined to obtain the association feature data to be predicted. The predicted associated feature data is input into the trained target trait prediction model, and the trained target trait prediction model performs a weighted combination of the predicted associated feature data according to the target contribution parameter to obtain the target trait prediction data corresponding to the crop sample to be predicted.
[0014] According to a second aspect of the embodiments of this application, a crop target trait association analysis system is provided, the system comprising: The data acquisition module is used to acquire reference genotype data of multiple reference crop samples, target trait phenotypic measurement data of each reference crop sample, and genotype data to be predicted of the crop sample to be predicted. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. The candidate locus determination module is used to screen candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extract the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data. The association feature construction module is used to construct association feature data based on the candidate site data, wherein the association feature data includes single site effect features and inter-site interaction effect features. The model training module is used to perform sparse constraint training on the target trait prediction model based on the associated feature data and the phenotypic measurement data, and to determine the target associated features and the trained target trait prediction model based on the sparse constraint training results. The target trait prediction module is used to determine the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association features, using the trained target trait prediction model.
[0015] In summary, this application provides a method and system for crop target trait association analysis. The method involves acquiring reference genotype data of multiple reference crop samples, phenotypic measurement data of the target trait for each reference crop sample, and genotype data of the crop sample to be predicted. Based on the reference genotype data and the phenotypic measurement data, candidate genetic loci are screened from the multiple genetic loci, and the genotype values corresponding to the candidate genetic loci are extracted from the reference genotype data to obtain candidate locus data. Association feature data is constructed based on the candidate locus data, including single locus effect features and inter-locus interaction effect features. Based on the association feature data and the phenotypic measurement data, a target trait prediction model is trained with sparse constraints, and the target association features and the trained target trait prediction model are determined based on the sparse constraint training results. Based on the genotype data to be predicted and the target association features, the trained target trait prediction model is used to determine the target trait prediction data corresponding to the crop sample to be predicted. By acquiring reference genotype data and target trait phenotypic measurement data from multiple reference crop samples, candidate genetic loci are screened from multiple genetic loci. Based on the genotype values corresponding to the candidate genetic loci, association feature data including single-locus effect characteristics and inter-locus interaction effect characteristics are constructed. The target trait prediction model is then trained with sparse constraints based on the association feature data and phenotypic measurement data to determine the target association features and the trained target trait prediction model. Finally, the corresponding target trait prediction data is determined using the genotype data of the crop samples to be predicted. This approach reduces the impact of information with low association with the target trait on model training and improves the model's utilization of effective association information from genotype detection data, thereby improving the accuracy of crop target trait association analysis. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0017] The structures, proportions, sizes, etc. illustrated in this specification are only for the purpose of assisting those skilled in the art in understanding and reading the content disclosed herein, and are not intended to limit the conditions under which the present invention can be implemented. Therefore, they have no substantial technical significance. Any modifications to the structure, changes in the proportions, or adjustments to the size, without affecting the effects and objectives that the present invention can produce, should still fall within the scope of the technical content disclosed in the present invention.
[0018] Figure 1 A flowchart of the crop target trait association analysis method provided in the embodiments of this application; Figure 2 A schematic diagram of the overall system architecture provided for embodiments of this application; Figure 3 A general flowchart of the method provided in the embodiments of this application; Figure 4 A schematic diagram of the structure of the association feature construction and target trait prediction model provided in the embodiments of this application; Figure 5 A schematic diagram illustrating the training, sparse constraints, and feature pruning process of the target trait prediction model provided in this application embodiment; Figure 6 A schematic diagram illustrating the candidate genetic locus screening scheme and its comparison process provided in the embodiments of this application; Figure 7 This is a schematic diagram illustrating example results provided in the embodiments of this application; Figure 8 A schematic diagram of a crop target trait association analysis system provided in an embodiment of this application; Figure 9 This paper shows a structural diagram of an electronic device provided in an embodiment of this application; Figure 10 A diagram of a computer-readable storage medium provided in an embodiment of this application is shown.
[0019] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.
[0021] It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative positional relationship and movement of each component in a certain specific posture (as shown in the figure). If the specific posture changes, the directional indication will also change accordingly.
[0022] Furthermore, in this invention, descriptions involving "first," "second," etc., are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0023] In this invention, unless otherwise explicitly specified and limited, the terms "connection," "fixed," etc., should be interpreted broadly. For example, "fixed" can mean a fixed connection, a detachable connection, or an integral part; it can mean a mechanical connection or an electrical connection; it can mean a direct connection or an indirect connection through an intermediate medium; it can mean the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0024] Furthermore, the technical solutions of the various embodiments of the present invention can be combined with each other, but only if they are based on the ability of those skilled in the art to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such combination of technical solutions does not exist and is not within the scope of protection claimed by the present invention.
[0025] Figure 1 This application illustrates a crop target trait association analysis method provided by an embodiment, comprising: Step 101: Obtain reference genotype data of multiple reference crop samples, phenotypic measurement data of target traits of each reference crop sample, and genotype data to be predicted of the crop sample to be predicted. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. Step 102: Based on the reference genotype data and the phenotypic measurement data, candidate genetic loci are screened from the plurality of genetic loci, and the genotype values corresponding to the candidate genetic loci are extracted from the reference genotype data to obtain candidate locus data; Step 103: Construct association feature data based on the candidate site data, the association feature data including single site effect features and inter-site interaction effect features; Step 104: Based on the associated feature data and the phenotypic measurement data, perform sparse constraint training on the target trait prediction model, and determine the target associated features and the trained target trait prediction model based on the sparse constraint training results; Step 105: Based on the genotype data to be predicted and the target association features, use the trained target trait prediction model to determine the target trait prediction data corresponding to the crop sample to be predicted.
[0026] This application provides a method for crop target trait association analysis, which analyzes the association between different genetic loci and combinations of genetic loci and the target trait based on the genotype detection results and target trait phenotypic measurement results of a reference crop sample, and uses the analysis results to predict the target trait of the crop sample to be predicted. By using the genotype values of the reference crop sample and the crop sample to be predicted at the same genetic loci as the processing basis, it can be ensured that the model training stage and the target trait prediction stage use consistent data meanings and locus correspondences.
[0027] In step 101, reference genotype data for multiple reference crop samples, phenotypic measurement data of the target trait for each reference crop sample, and genotype data to be predicted for the crop sample to be predicted are acquired. The reference genotype data can be organized according to the correspondence between reference crop samples and genetic loci, with each genotype value representing the genotype detection result of a reference crop sample at a specific genetic locus. The phenotypic measurement data corresponds one-to-one with the reference crop samples and represents the actual performance of the reference crop samples in the target trait. The genotype data to be predicted uses the same genetic locus range and genotype value representation as the reference genotype data, thus providing a data foundation for subsequent target trait prediction using the trained target trait prediction model.
[0028] In steps 102 and 103, candidate genetic loci with a high degree of correlation with the target trait are first screened from multiple genetic loci based on the association between reference genotype data and phenotypic measurement data, and the genotype values corresponding to the candidate genetic loci are extracted to obtain candidate locus data. By screening candidate genetic loci first, the number of genetic loci involved in subsequent feature construction and model training can be reduced, and the interference of genetic loci with a low degree of correlation on the model training process can be reduced. Subsequently, associated feature data is constructed based on the candidate locus data. The associated feature data includes not only single-locus effect features used to characterize the relationship between a single candidate genetic locus and the target trait, but also inter-locus interaction effect features used to characterize the combined effects of different candidate genetic loci, thereby providing the target trait prediction model with input data that can reflect different forms of genetic action.
[0029] In steps 104 and 105, the target trait prediction model is trained with sparse constraints based on the associated feature data and phenotypic measurement data. This allows the target trait prediction model to learn the correspondence between associated features and target traits while reducing the role of associated features with lower contribution levels in the model. The target associated features and the trained target trait prediction model are then determined based on the sparse constraint training results. Further, based on the target associated features, prediction feature data corresponding to the training stage is generated from the genotype data to be predicted. The trained target trait prediction model is then used to determine the target trait prediction data for the crop samples to be predicted. Thus, by controlling the scale of the model input, the utilization of single-site effects and inter-site interaction effects can be comprehensively utilized to improve the utilization of target trait association information and provide data support for the target trait analysis of the crop samples to be predicted.
[0030] In one possible implementation, step 101, the step of acquiring reference genotype data of multiple reference crop samples and predicted genotype data of the crop sample to be predicted, includes: acquiring the original genotype detection results of the multiple reference crop samples and the crop sample to be predicted at the multiple genetic loci respectively; performing allele dose encoding on the original genotype detection results to obtain the genotype value of each crop sample at each genetic locus; arranging the genotype values corresponding to the multiple reference crop samples according to the arrangement of the rows corresponding to the multiple reference crop samples and the columns corresponding to the multiple genetic loci respectively, to obtain a reference genotype matrix, and determining the reference genotype matrix as the reference genotype data; arranging the genotype values corresponding to the crop sample to be predicted according to the arrangement order of the multiple genetic loci in the reference genotype matrix, to obtain a predicted genotype vector, and determining the predicted genotype vector as the predicted genotype data.
[0031] In one possible implementation, in step 101, the original genotype detection results of multiple reference crop samples and the crop sample to be predicted at multiple genetic loci are obtained, and the original genotype detection results are encoded with allele doses to convert different genotype detection results into genotype values that can be numerically processed. Allele doses are used to characterize the number of target alleles at the corresponding genetic loci in the crop sample, thereby enabling a unified data representation method for the genotype detection results of different crop samples.
[0032] For multiple reference crop samples, the genotype values of each reference crop sample at each genetic locus are arranged in a row for each reference crop sample and a column for each genetic locus, resulting in a reference genotype matrix. This matrix serves as the reference genotype data. Each row in the reference genotype matrix represents the genotype detection results of a single reference crop sample at multiple genetic loci, while each column represents the genotype detection results of multiple reference crop samples at the same genetic locus. Organizing the reference genotype data in matrix form maintains the correspondence between reference crop samples, genetic loci, and genotype values, providing structured input data for subsequent candidate genetic locus screening and associated feature construction.
[0033] For a crop sample to be predicted, the genotype values corresponding to multiple genetic loci are arranged according to the column order of the reference genotype matrix to obtain a vector of genotypes to be predicted. This vector is then used as the genotype data to be predicted. By ensuring that the order of genetic loci in the genotype vector is consistent with the order of genetic loci in the reference genotype matrix, data misalignment caused by inconsistencies in the correspondence between genetic loci during the training and prediction phases can be avoided. This ensures that when extracting genotype values corresponding to candidate genetic loci from the genotype data to be predicted, the input features used by the target trait prediction model are consistent.
[0034] In one possible implementation, step 102, the step of screening candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data, includes: performing locus evaluation processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the plurality of genetic loci, wherein the locus evaluation data is used to characterize the candidate priority of the corresponding genetic locus being selected as a candidate genetic locus; determining the number of candidate loci according to the number of the plurality of genetic loci and a preset upper limit for the number of candidate loci; sorting the plurality of genetic loci from high to low according to the candidate priority characterized by the locus evaluation data; selecting the genetic locus that ranks first and whose number is equal to the number of candidate loci according to the sorting result to obtain the candidate genetic loci; and extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain the candidate locus data.
[0035] In one possible implementation, the step of performing locus evaluation processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the plurality of genetic loci includes: performing principal component analysis on the reference genotype data to obtain population structure feature data used to characterize the genetic structure differences among the plurality of reference crop samples; determining the population structure feature data and the genotype values corresponding to each genetic locus in the current reference genetic locus set as correction variables; the reference genetic locus set is used to record the genetic loci used as correction variables in the iterative association analysis process; under the constraint of the correction variables, examining the association relationship between the genotype values corresponding to the plurality of genetic loci and the phenotypic measurement data one by one to obtain the locus evaluation data corresponding to each of the plurality of genetic loci. The association significance data corresponding to each locus is obtained; the multiple genetic loci are divided into regions according to their genomic distribution; based on the association significance data, the genetic locus with the highest association significance in each region is selected to obtain a reference genetic locus; the reference genetic locus set is updated using the reference genetic locus; based on the updated reference genetic locus set, the association test and reference genetic locus set update are repeated until the reference genetic locus sets obtained in two adjacent iterations are the same or the number of iterations reaches a preset number; multiple tests are performed on the association significance data obtained in the last iteration to correct it, and the multiple genetic loci are sorted according to the association significance corresponding to the corrected association significance data, and the locus evaluation data is determined based on the sorting results.
[0036] In one possible implementation, in step 102, multiple genetic loci are first evaluated based on reference genotype data and phenotypic measurement data to obtain locus evaluation data for each genetic locus. The locus evaluation data is used to uniformly characterize the candidate priority of each genetic locus as a candidate genetic locus. The number of candidate loci is determined based on the total number of genetic loci and a preset upper limit for the number of candidate loci; this number can be set to no more than the smaller of the total number of genetic loci and the upper limit for the number of candidate loci. Subsequently, the multiple genetic loci are sorted from highest to lowest candidate priority, and the genetic loci ranked first and whose number equals the number of candidate loci are selected from the sorting results to obtain candidate genetic loci. Finally, the genotype values corresponding to the candidate genetic loci for each reference crop sample are extracted from the reference genotype data and arranged according to the correspondence between the reference crop samples and the candidate genetic loci to obtain candidate locus data. By limiting the number of genetic loci participating in subsequent processing, the impact of genetic loci with low correlation on subsequent feature construction and model training can be reduced, and the number of inter-locus interaction effect features can be controlled.
[0037] One possible approach to locus evaluation is to use iterative association analysis to determine the significance of the association between each genetic locus and the target trait. First, principal component analysis is performed on the reference genotype data to extract population structure characteristics that reflect the differences in genetic structure among multiple reference crop samples. These population structure characteristics are used to correct for population structure differences among different reference crop samples during the genetic locus association test, thereby reducing the interference of population structure differences on the test results. Initially, the reference genetic locus set can be empty; in subsequent iterations, the reference genetic locus set is used to record the genetic loci selected as correction variables.
[0038] In each iterative association analysis, population structure characteristics and genotype values corresponding to each locus in the current reference genetic locus set are used as correction variables. Under the constraints of these correction variables, the association between genotype values and phenotypic measurements of multiple genetic loci is examined one by one to obtain the association significance data for each genetic locus. Multiple genetic loci are divided into regions according to their distribution in the genome, and the genetic locus with the highest association significance is selected from each region based on the association significance data to obtain the reference genetic locus for this iteration. The reference genetic locus set is updated using the selected reference genetic locus, and the association test and reference genetic locus set update are re-performed based on the updated reference genetic locus set. By iteratively updating the reference genetic locus set, subsequent association tests can be corrected using genetic loci with high association with the target trait.
[0039] Iterative association analysis stops when the reference genetic loci sets obtained in two consecutive iterations are the same, or when the number of iterations reaches a preset number. Multiple validation corrections are performed on the association significance data obtained in the last iteration to reduce the possibility of accidental significant results when performing association tests on a large number of genetic loci separately. Based on the representation of the corrected association significance data, multiple genetic loci are ranked according to a unified candidate priority direction, and locus evaluation data corresponding to each genetic locus is determined based on the ranking results, thus providing a basis for the selection of subsequent candidate genetic loci.
[0040] In one possible implementation, the step of performing multiple tests to correct the last obtained association significance data includes: obtaining a preset overall significance level and the number of genetic loci participating in the association test; dividing the preset overall significance level equally according to the number of genetic loci to obtain an association significance screening threshold; comparing the association significance data corresponding to each genetic locus with the association significance screening threshold to obtain a significance screening result corresponding to each genetic locus; and generating the locus evaluation data based on the significance screening results and the association significance data.
[0041] In one possible implementation, the step of performing locus evaluation processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the plurality of genetic loci includes: extracting the genotype values corresponding to each genetic locus in the plurality of reference crop samples from the reference genotype data to obtain locus feature vectors corresponding to each genetic locus; combining the locus feature vectors corresponding to the plurality of genetic loci in the same arrangement order of the reference crop samples to obtain locus feature data; performing feature selection processing on the plurality of genetic loci using the locus feature data as feature selection input and the phenotypic measurement data as feature selection target to obtain locus importance data corresponding to each genetic locus; sorting the plurality of genetic loci according to the locus importance represented by the locus importance data, and generating the locus evaluation data based on the sorting results.
[0042] In one possible implementation, feature selection can be used to evaluate multiple genetic loci. First, the genotype values corresponding to each genetic locus in multiple reference crop samples are extracted from the reference genotype data. Then, following a uniform arrangement of the reference crop samples, the multiple genotype values corresponding to the same genetic locus are arranged to obtain the locus feature vector for each genetic locus. The same position in each feature vector corresponds to the same reference crop sample, thus maintaining the sample correspondence between the genotype values of the genetic locus and the phenotypic measurement data.
[0043] Following the same arrangement order of reference crop samples, the locus feature vectors corresponding to multiple genetic loci are combined to obtain locus feature data. Locus feature data can be organized in a matrix form consisting of reference crop samples and genetic loci, where each reference crop sample corresponds to a set of locus feature values, and each genetic locus corresponds to a locus feature vector. Phenotypic measurement data is organized according to the same arrangement order of reference crop samples to ensure that the phenotypic measurement results of each reference crop sample in the locus feature data match the corresponding target trait phenotypic measurement results.
[0044] Locus feature data is used as input for feature selection, and phenotypic measurement data is used as the target for feature selection. Feature selection is performed on multiple genetic loci. Feature selection is used to analyze the contribution of the locus feature vectors corresponding to each genetic locus to the phenotypic measurement results of the target trait, and based on this, locus importance data for each genetic locus is obtained. Locus importance data can be represented in a data format that can distinguish the contribution of different genetic loci, such as importance score, inclusion frequency, or importance ranking position. The specific representation format can be determined according to the feature selection method used.
[0045] Multiple genetic loci are ranked according to their importance as represented by locus importance data, and locus evaluation data is generated for each locus based on the ranking results. This allows the locus evaluation data to represent the ranking relationship of different genetic loci using a uniform candidate priority. Subsequently, genetic loci ranked higher in the locus evaluation data can be selected as candidate genetic loci. By using feature selection for locus evaluation, genetic loci with high predictive contributions to the target trait can be screened from reference genotype data without being limited to specific association testing methods. This provides a foundation of candidate loci for subsequent association feature construction and target trait prediction model training.
[0046] In one possible implementation, the step of using the locus feature data as feature selection input and the phenotypic measurement data as feature selection target to perform feature selection processing on the multiple genetic loci to obtain locus importance data corresponding to each genetic locus includes: performing multiple independent autoencoder training operations based on the locus feature data to obtain multiple trained autoencoders; using each trained autoencoder to perform feature importance analysis on the multiple genetic loci to obtain multiple sets of locus selection results; counting the number of times each genetic locus is selected in the multiple sets of locus selection results to obtain locus voting data corresponding to each genetic locus; and sorting the multiple genetic loci according to the number of times they are selected as represented by the locus voting data to obtain locus importance data corresponding to each genetic locus.
[0047] In one possible implementation, before performing site evaluation processing on the plurality of genetic loci, the method further includes: acquiring site screening method configuration data; when the site screening method configuration data characterization adopts an association analysis method, performing association analysis on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain the site evaluation data; when the site screening method configuration data characterization adopts a feature selection method, performing feature selection processing on the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data to obtain the site evaluation data; and performing sorting and selection of the candidate genetic loci based on the site evaluation data.
[0048] In one possible implementation, in step 103, constructing association feature data based on the candidate site data includes: extracting the genotype values corresponding to each candidate genetic site in the plurality of reference crop samples from the candidate site data to obtain candidate site feature vectors corresponding to each candidate genetic site; determining the candidate site feature vectors corresponding to each candidate genetic site as additive effect features of the corresponding candidate genetic site; multiplying each genotype value in each candidate site feature vector by itself to obtain dominant effect features of the corresponding candidate genetic site; for any two different candidate genetic sites, multiplying the candidate site feature vectors corresponding to the two different candidate genetic sites element-wise according to the same arrangement order of reference crop samples to obtain inter-site interaction effect features corresponding to the two different candidate genetic sites; combining the additive effect features, the dominant effect features, and the inter-site interaction effect features according to the same arrangement order of reference crop samples to obtain the association feature data; establishing the correspondence between each association feature in the association feature data and the corresponding candidate genetic site and effect type to obtain association feature mapping data, wherein the effect types include additive effects, dominant effects, and inter-site interaction effects.
[0049] In one possible implementation, before training the target trait prediction model with sparse constraints, the method further includes constructing the target trait prediction model. The step of constructing the target trait prediction model includes: setting trainable contribution parameters for each associated feature in the associated feature data, and establishing a correspondence between each associated feature and its corresponding contribution parameter to obtain a set of contribution parameters; multiplying the associated feature value of each associated feature with its corresponding contribution parameter to obtain a feature processing relationship for the feature contribution value corresponding to each associated feature; constructing a feature readout structure based on the feature processing relationship and the feature readout relationship, which takes the associated feature data as input and outputs target trait prediction data; the feature readout relationship is obtained by summarizing multiple feature contribution values to generate target trait prediction data; and setting the set of contribution parameters as the trainable parameters and sparse constraint objects of the feature readout structure to obtain the target trait prediction model.
[0050] In one possible implementation, in step 103, the genotype values corresponding to each candidate genetic locus in multiple reference crop samples are extracted from the candidate locus data and arranged according to a uniform arrangement order of the reference crop samples to obtain the candidate locus feature vector corresponding to each candidate genetic locus. Each element in the candidate locus feature vector corresponds to the genotype value of a reference crop sample at the corresponding candidate genetic locus. The same reference crop sample arrangement order is used for each candidate locus feature vector, thereby ensuring the consistency of the sample correspondence between different candidate genetic loci and between candidate genetic loci and phenotypic measurement data.
[0051] The feature vectors corresponding to each candidate genetic locus are directly used as the additive effect features of the corresponding candidate genetic locus to characterize the linear interaction between the genotype value and the target trait of a single candidate genetic locus. Each genotype value in the feature vector of each candidate genetic locus is multiplied by itself to obtain the dominant effect feature of the corresponding candidate genetic locus, thus characterizing the non-linear interaction of a single candidate genetic locus. For any two different candidate genetic loci, following the same reference crop sample arrangement, the feature vectors corresponding to the two candidate genetic loci are multiplied element-wise, so that the two multiplied genotype values correspond to the same reference crop sample, yielding the inter-locus interaction effect features corresponding to the two candidate genetic loci.
[0052] Following the same reference crop sample arrangement order, additive effect features, dominant effect features, and inter-locus interaction effect features are combined to obtain association feature data. Each set of association feature values in the association feature data corresponds to a reference crop sample and can simultaneously reflect the interaction between a single candidate genetic locus and different combinations of candidate genetic loci with the target trait. Furthermore, the correspondence between each association feature and its corresponding candidate genetic locus and effect type is established, resulting in association feature mapping data. Association feature mapping data is used to record the source of each association feature, enabling subsequent determination of the candidate genetic loci involved in the target association feature and the corresponding additive, dominant, or inter-locus interaction effects based on the model training results.
[0053] Before training the target trait prediction model with sparse constraints, trainable contribution parameters are set for each associated feature in the associated feature data, and a correspondence between each associated feature and its corresponding contribution parameter is established, resulting in a set of contribution parameters. Each associated feature value is multiplied by its corresponding contribution parameter to obtain the feature contribution value for each associated feature, and a feature readout relationship is established to summarize multiple feature contribution values to generate the target trait prediction data. Based on the feature processing relationship and the feature readout relationship, a feature readout structure is constructed that takes the associated feature data as input and outputs the target trait prediction data. The set of contribution parameters is set as the trainable parameters and sparse constraint object of the feature readout structure, resulting in the target trait prediction model. By training and sparsely constraining the contribution parameters, the target trait prediction model can reduce the influence of associated features with low contribution levels in the prediction results while fitting phenotypic measurement data.
[0054] In one possible implementation, in step 104, the sparse constraint training of the target trait prediction model based on the associated feature data and the phenotypic measurement data includes: converting the associated feature data into training input data in tensor form and loading the training input data into a graphics processor; inputting the training input data into the target trait prediction model, and weighting and combining each associated feature value in the training input data according to the contribution parameter set to obtain training prediction data corresponding to each reference crop sample; determining the difference between the training prediction data corresponding to each reference crop sample and the corresponding phenotypic measurement data; and averaging the squares of multiple differences to obtain... The process involves: obtaining phenotypic fitting error data; determining the absolute value of each contribution parameter in the contribution parameter set; summing the absolute values of multiple contribution parameters to obtain sparse constraint data; weighting the sparse constraint data according to preset sparse constraint weights; adding the weighted sparse constraint data to the phenotypic fitting error data to obtain model training loss data; iteratively adjusting the contribution parameter set using gradient descent in the direction that reduces the model training loss data using the graphics processor; stopping the iterative adjustment when the number of iterations reaches the preset number of training iterations to obtain post-trained contribution parameters; and configuring the post-trained contribution parameters in the target trait prediction model to obtain a sparse training model.
[0055] In one possible implementation, step 104, determining the target association features and the post-trained target trait prediction model based on the sparse constraint training results, includes: determining the absolute value of each post-training contribution parameter to obtain contribution intensity data corresponding to each association feature; determining the maximum contribution intensity data from multiple contribution intensity data; multiplying the maximum contribution intensity data by a preset screening ratio to obtain a contribution intensity screening threshold; setting the post-training contribution parameters corresponding to association features whose contribution intensity data is less than the contribution intensity screening threshold to zero; determining the association features with non-zero post-training contribution parameters as the target association features, and determining the post-training contribution parameters corresponding to the target association features as target contribution parameters; removing the input feature terms and contribution parameters corresponding to the association features with zero post-training contribution parameters from the feature readout structure of the sparse training model, and retaining the input feature terms and target contribution parameters corresponding to the target association features to obtain the post-trained target trait prediction model.
[0056] In one possible implementation, in step 104, the associated feature data is first converted into training input data in tensor form, and then the training input data is loaded into the graphics processor. After the training input data is input into the target trait prediction model, the multiple associated feature values corresponding to each reference crop sample are weighted and combined according to the contribution parameter set to obtain the training prediction data corresponding to each reference crop sample. By organizing the training input data in tensor form, the data corresponding to multiple reference crop samples and multiple associated features can be processed in parallel in the graphics processor, improving the processing efficiency of associated feature value calculation and contribution parameter update during model training.
[0057] For each reference crop sample, the difference between the training prediction data and the corresponding phenotypic measurement data is determined, and the squares of multiple differences are averaged to obtain phenotypic fitting error data. This phenotypic fitting error data characterizes the degree of deviation between the training prediction data output by the target trait prediction model and the actual phenotypic measurement results. Simultaneously, the absolute value of each contributing parameter in the contributing parameter set is determined, and the absolute values of multiple contributing parameters are summarized to obtain sparse constraint data. This sparsity constraint data is used to limit the overall size of multiple contributing parameters in the model, so that the contributing parameters corresponding to the associated features that contribute less to the prediction of the target trait gradually decrease during training.
[0058] The sparse constraint data is weighted according to preset sparse constraint weights, and then added to the phenotypic fitting error data to obtain the model training loss data. Using a graphics processing unit (GPU), the contribution parameter set is iteratively adjusted using gradient descent in the direction that reduces the model training loss data. This allows the target trait prediction model to reduce phenotypic prediction error while sparsifying associated features. The iterative adjustment stops when the preset number of iterations is reached, yielding the post-trained contribution parameters. These post-trained contribution parameters are then configured in the target trait prediction model to obtain the sparsely trained model.
[0059] Furthermore, the absolute values of each post-training contribution parameter are determined to obtain the contribution intensity data corresponding to each associated feature, and the maximum contribution intensity data is determined from multiple contribution intensity data. The maximum contribution intensity data is multiplied by a preset screening ratio to obtain the contribution intensity screening threshold. The contribution intensity screening threshold varies with the overall numerical range of the post-training contribution parameters, providing a unified relative judgment basis for associated feature screening across models corresponding to different data scales and target traits. The post-training contribution parameters corresponding to associated features with contribution intensity data less than the contribution intensity screening threshold are set to zero, and associated features with post-training contribution parameters not equal to zero are identified as target associated features, with the post-training contribution parameters corresponding to the target associated features being identified as target contribution parameters.
[0060] The input feature terms and contribution parameters corresponding to the associated features with zero contribution parameters after training are removed from the feature readout structure of the sparse training model, while the input feature terms and target contribution parameters corresponding to the target associated features are retained, resulting in the trained target trait prediction model. After this processing, the trained target trait prediction model retains only the associated features and corresponding parameters that contribute significantly to the prediction of the target trait. This reduces the impact of associated features with low contribution levels on subsequent prediction processes and decreases the number of associated features that need to be processed in the prediction stage, providing a model foundation for determining the target trait prediction data of the crop samples to be predicted based on the target associated features.
[0061] In one possible implementation, in step 105, determining the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association feature using the trained target trait prediction model includes: searching for candidate genetic loci and effect types corresponding to the target association feature from the association feature mapping data to obtain target feature configuration data; extracting the genotype values of the corresponding candidate genetic loci from the genotype data to be predicted according to the candidate genetic loci recorded in the target feature configuration data to obtain the predicted locus data; for target association features with additive effects, determining the genotype values of the corresponding candidate genetic loci in the predicted locus data as additive predicted feature values; for target association features with dominant effects, determining the genotype values of the corresponding candidate genetic loci in the predicted locus data as additive predicted feature values; and for target association features with dominant effects, determining the genotype values of the candidate genetic loci in the predicted locus data as additive predicted feature values. The genotype value of the candidate genetic locus in the data of the site to be predicted is multiplied by itself to obtain the dominant predictable feature value. For the target association feature whose effect type is inter-locus interaction effect, the genotype values of the two candidate genetic loci in the data of the site to be predicted are multiplied to obtain the interaction predictable feature value. According to the input order of the target association feature in the post-trained target trait prediction model, the predictable feature values corresponding to the target association feature are combined to obtain the predictable association feature data. The predictable association feature data is input into the post-trained target trait prediction model, and the post-trained target trait prediction model performs a weighted combination of the predictable association feature data according to the target contribution parameter to obtain the target trait prediction data corresponding to the crop sample to be predicted.
[0062] In one possible implementation, in step 105, candidate genetic loci and effect types corresponding to each target associated feature are first determined based on the associated feature mapping data, resulting in target feature configuration data. The target feature configuration data records the genetic loci required to generate each target associated feature and the corresponding feature processing method. By querying the associated feature mapping data, the genetic loci and effect types used in the prediction stage can be consistent with those used in the model training stage, avoiding the impact of inconsistent feature sources or meanings on the prediction results.
[0063] Candidate genetic loci are configured according to the target feature data records. Genotype values for the corresponding candidate genetic loci are extracted from the genotype data to be predicted, yielding the data for the predicted loci. For target association features with additive effects, the genotype values of the corresponding candidate genetic loci are directly determined as the additive predicted feature values. For target association features with dominant effects, the genotype value of the corresponding candidate genetic locus is multiplied by itself to obtain the dominant predicted feature value. For target association features with inter-locus interaction effects, the genotype values of the two corresponding candidate genetic loci are multiplied to obtain the interaction predicted feature value.
[0064] Based on the input order of each target association feature in the trained target trait prediction model, the corresponding additive, dominant, and interactive predictable feature values are arranged and combined to obtain the predictable association feature data. Each predictable feature value in the predictable association feature data corresponds one-to-one with the target association features in the trained target trait prediction model, thus ensuring that the input feature type, input feature order, and feature processing method in the prediction stage remain consistent with those in the model training stage.
[0065] The data of the associated features to be predicted are input into the trained target trait prediction model. The trained model then weights and combines the feature values to be predicted in the data of the associated features according to the target contribution parameters corresponding to each target associated feature, thus obtaining the target trait prediction data corresponding to the crop sample to be predicted. By generating and processing only the feature values to be predicted corresponding to the target associated features, the number of features that need to be processed in the prediction stage can be reduced, and the target trait prediction can be completed by utilizing the single-site effect and inter-site interaction effect determined in the training stage.
[0066] In one possible implementation, after obtaining the target association feature and the target contribution parameter, the method further includes: determining the candidate genetic loci and effect type corresponding to each target association feature based on the association feature mapping data; combining the candidate genetic loci, effect type, and target contribution parameter corresponding to each target association feature to obtain multiple association expression term data; sorting the multiple association expression term data according to the absolute value of the target contribution parameter from largest to smallest; and combining the multiple association expression term data according to the sorting result to obtain a target trait association expression, wherein the target trait association expression is used to characterize the weighted relationship between the target association feature and the target trait prediction data.
[0067] After obtaining the target association features and target contribution parameters, candidate genetic loci and effect types corresponding to each target association feature are determined based on the association feature mapping data. The candidate genetic loci, effect types, and target contribution parameters are then combined to obtain multiple association expression term data. Each association expression term data is used to record the source of a target association feature and its contribution relationship in the target trait prediction process. The multiple association expression term data are sorted from largest to smallest according to the absolute value of the target contribution parameter, and then combined according to the sorting results to obtain the target trait association expression. The target trait association expression can represent the weighting relationship of each target association feature to the target trait prediction data in a relatively intuitive form, facilitating the identification of genetic loci and combinations of genetic loci that contribute significantly to the target trait prediction results.
[0068] In one possible implementation, after obtaining the association expression for the target trait, the method further includes: identifying candidate genetic loci involved in the target association feature as target association loci; determining the genetic effect type corresponding to each target association locus based on the effect type corresponding to each target association feature; determining the direction of action of the corresponding genetic effect based on the positive or negative relationship of the target contribution parameters corresponding to each target association feature; determining the intensity of action of the corresponding genetic effect based on the absolute value of the target contribution parameters corresponding to each target association feature; and combining the target association locus, the genetic effect type, the direction of action, and the intensity of action to obtain the association analysis result for the target trait. The genetic effect types include additive effects, dominant effects, and inter-locus interaction effects.
[0069] Furthermore, candidate genetic loci involved in the target association features are identified as target association loci, and the corresponding genetic effect types are determined based on the effect types corresponding to each target association feature. For additive and dominant effect features, the genetic effect type corresponding to a single target association locus can be determined; for inter-locus interaction effect features, the interaction relationship between two corresponding target association loci can be determined. The direction of action of the corresponding genetic effect is determined based on the positive or negative relationship of the target contribution parameter, and the intensity of action of the corresponding genetic effect is determined based on the absolute value of the target contribution parameter. The target association loci, genetic effect type, direction of action, and intensity of action are combined to obtain the target trait association analysis results. Thus, not only can the target trait prediction data of the crop sample to be predicted be obtained, but the genetic loci involved in the prediction of the target trait and the interaction relationships between genetic loci can also be further determined.
[0070] In one possible implementation, the method further includes evaluating the prediction performance of the trained target trait prediction model. The evaluation steps include: dividing the plurality of reference crop samples into training crop samples and test crop samples; performing sparse constraint training on the target trait prediction model based on reference genotype data and phenotypic measurement data corresponding to the training crop samples to obtain the trained target trait prediction model; generating test association feature data based on the genotype data corresponding to the test crop samples and the target association feature; inputting the test association feature data into the trained target trait prediction model to obtain test prediction data corresponding to the test crop samples; determining the correlation between the test prediction data and the phenotypic measurement data corresponding to the test crop samples to obtain first prediction performance data; constructing a comparative prediction model based on additive effect features corresponding to the same candidate genetic loci, and using the comparative prediction model to determine the comparative prediction data corresponding to the test crop samples; determining the correlation between the comparative prediction data and the phenotypic measurement data corresponding to the test crop samples to obtain second prediction performance data; and comparing the first prediction performance data and the second prediction performance data to obtain prediction gain data corresponding to non-additive effect features.
[0071] The predictive performance of the trained target trait prediction model can also be evaluated. Multiple reference crop samples are divided into training and test crop samples. Candidate genetic loci screening, association feature construction, and model training are performed only based on the reference genotype and phenotypic measurement data corresponding to the training crop samples. This yields the target association features and the trained target trait prediction model, avoiding the participation of test crop sample data in model training and feature selection. Test association feature data is generated based on the genotype data and target association features corresponding to the test crop samples. This test association feature data is input into the trained target trait prediction model to obtain test prediction data. The Pearson correlation coefficient between the test prediction data and the phenotypic measurement data corresponding to the test crop samples is determined, and this Pearson correlation coefficient is used as the first prediction performance data. The first prediction performance data is used to characterize the effectiveness of the trained target trait prediction model in predicting target traits for crop samples that were not used in the training.
[0072] In one possible implementation, the step of determining the correlation between the test prediction data and the phenotypic measurement data corresponding to the test crop sample to obtain the first prediction performance data includes: determining the Pearson correlation coefficient between the test prediction data and the phenotypic measurement data corresponding to the test crop sample; and determining the Pearson correlation coefficient as the first prediction performance data. In one possible implementation, the step of determining the correlation between the comparative prediction data and the phenotypic measurement data corresponding to the test crop sample to obtain the second prediction performance data includes: determining the Pearson correlation coefficient between the comparative prediction data and the phenotypic measurement data corresponding to the test crop sample, and determining the Pearson correlation coefficient as the second prediction performance data.
[0073] In one possible implementation, the method further includes: performing site evaluation processing on the plurality of genetic loci using association analysis to obtain a first candidate genetic locus, and obtaining a first post-training target trait prediction model based on the first candidate genetic locus; performing site evaluation processing on the plurality of genetic loci using feature selection to obtain a second candidate genetic locus, and obtaining a second post-training target trait prediction model based on the second candidate genetic locus; evaluating the prediction performance of the first post-training target trait prediction model and the second post-training target trait prediction model using the same test crop samples to obtain first scheme evaluation data and second scheme evaluation data; and comparing the first scheme evaluation data and the second scheme evaluation data to obtain candidate locus screening method comparison data.
[0074] To evaluate the contributions of dominant effect characteristics and locus interaction effects to prediction results, a comparative prediction model can be constructed based on additive effect characteristics corresponding to the same candidate genetic loci. This model is then used to determine the comparative prediction data for the test crop samples. The Pearson correlation coefficient between the comparative prediction data and the phenotypic measurement data corresponding to the test crop samples is determined, and this coefficient is used as the second prediction performance data. The first and second prediction performance data are compared to obtain the prediction gain data corresponding to the non-additive effect characteristics. Alternatively, association analysis and feature selection methods can be used to determine the first and second candidate genetic loci, respectively. These models are then trained to obtain a first and a second post-training prediction model for the target trait. The two models are evaluated using the same test crop samples to obtain comparative data on candidate locus selection methods, thus providing data support for selecting appropriate candidate genetic locus selection methods for different target traits.
[0075] In one possible implementation, the association feature data further includes higher-order locus interaction effect features. The construction steps of the higher-order locus interaction effect features include: selecting at least three different candidate genetic loci from the candidate genetic loci; extracting the genotype values corresponding to the at least three different candidate genetic loci for each reference crop sample according to the correspondence between the multiple reference crop samples; multiplying the genotype values corresponding to the at least three different candidate genetic loci for each reference crop sample to obtain the higher-order interaction feature value of the corresponding reference crop sample; combining the higher-order interaction feature values corresponding to the multiple reference crop samples to obtain the higher-order locus interaction effect features; establishing the correspondence between the higher-order locus interaction effect features and the candidate genetic loci involved, and adding the higher-order locus interaction effect features to the association feature data.
[0076] Association feature data can also include higher-order locus interaction effect features. At least three different candidate genetic loci can be selected from the candidate genetic loci, and the genotype values corresponding to each reference crop sample at the selected candidate genetic loci are extracted according to the correspondence between multiple reference crop samples. For each reference crop sample, the genotype values corresponding to at least three different candidate genetic loci are multiplied to obtain the higher-order interaction feature value of the corresponding reference crop sample. Then, the higher-order interaction feature values corresponding to multiple reference crop samples are combined according to a uniform sample arrangement order to obtain the higher-order locus interaction effect feature. The correspondence between the higher-order locus interaction effect feature and the involved candidate genetic loci is established, and the higher-order locus interaction effect feature is added to the association feature data, enabling the target trait prediction model to further characterize the association between the combined action of three or more genetic loci and the target trait.
[0077] The method provided in the embodiments of this application will be further described below with reference to the accompanying drawings.
[0078] Figure 2 The overall system architecture provided in the embodiments of this application is shown. Figure 3 The overall flow of the method provided in the embodiments of this application is shown. Figure 4 The structure of the associated feature construction and target trait prediction model is shown. Figure 5 The training, sparsity constraints, and feature pruning processes of the target trait prediction model are illustrated. Figure 6 Two candidate genetic locus screening schemes and their comparison process are shown. Figure 7 Example results are shown, including the prediction effect of the target trait, cross-crop prediction results, and the genetic effects corresponding to the target associated traits.
[0079] It should be noted that, Figures 2 to 7The descriptions of neural symbol modeling, L1 sparse readout, GPU gradient training, and key gene output in the text are used to illustrate a specific implementation of the technical solution of this application. Neural symbol modeling corresponds to the construction of associated features and the construction of the target trait prediction model; key gene output corresponds to determining the target associated loci and genetic effects based on the target associated features; when establishing the annotation correspondence between genetic loci and genes in advance, candidate genes corresponding to the target associated loci can be further determined. The specific parameters and experimental results below are only used to illustrate the implementation method of the technical solution of this application and do not constitute a limitation on the scope of protection of this application.
[0080] like Figure 2 As shown in the embodiments of this application, the crop target trait association analysis system uses a core control class as the system's processing and scheduling center. The core control class is used to receive data provided by the genotype data input module and the phenotypic data input module, and sequentially schedules the locus pre-reduction module, the neural symbol modeling module, the GPU training and expression reading module, and the key gene output module, and stores and retrieves the intermediate data and output results generated by each module.
[0081] The genotype data input module and phenotype data input module provide input data to the core control class. The core control class passes the corresponding data to the site pre-reduction module and the neural symbol modeling module, and calls the next processing stage based on the output results obtained from the previous processing stage. After the model is built, the core control class calls the GPU training and expression reading module to complete the model training and expression reading, and provides the read expression and its associated feature information to the key gene output module.
[0082] The genotype data input module is used to load reference genotype data from multiple reference crop samples and genotype data to be predicted from the crop samples to be predicted. Reference genotype data can be organized as a genotype matrix consisting of samples and single nucleotide polymorphism (SNP) loci. Each row in the genotype matrix corresponds to a reference crop sample, each column corresponds to a genetic locus, and each matrix element is the allele dose encoding value of the corresponding reference crop sample at the corresponding genetic locus. The sample multiplied by the SNP matrix is used to represent the aforementioned reference genotype matrix.
[0083] The phenotypic data input module is used to load the target trait phenotypic measurement data corresponding to each reference crop sample. The arrangement order of the reference crop samples in the phenotypic measurement data is consistent with the row arrangement order in the reference genotype matrix, so that the genotype value of each reference crop sample can accurately match the corresponding target trait phenotypic measurement result. The genotype data input module and the phenotypic data input module can together constitute the data acquisition module in the embodiments of this application.
[0084] The locus pre-reduction module is used to screen multiple genetic loci based on reference genotype data and phenotypic measurement data, reducing the original large set of genetic loci to a limited set of candidate genetic loci. The locus pre-reduction module supports FarmCPU association analysis and feature selection methods. The locus pre-reduction module may include... Figure 6 The FarmCPU correlation analysis unit and feature selection unit are shown.
[0085] The neural symbol modeling module is used to construct additive effect features, dominant effect features, and inter-locus interaction effect features based on the genotype values corresponding to candidate genetic loci, and to build a target trait prediction model based on these association features. Additive, dominant, and epistatic effects correspond to... Figure 4 The additive operator unit, dominant operator unit, and epistatic interaction operator unit are shown. The neural symbolic modeling module is also used to establish the correspondence between each associated feature and candidate genetic loci and effect type, forming associated feature mapping data.
[0086] The GPU training and expression readout module converts the associated feature data generated by the neural symbolic modeling module into tensor form and trains the target trait prediction model on the graphics processor using gradient descent. This module also performs sparse pruning on the trained contribution parameters, retaining highly contributing associated features, and generates target trait association expressions based on the retained features and corresponding contribution parameters. The interpretable symbolic expression located below the core control class represents the intermediate analysis results generated by the GPU training and expression readout module. This expression consists of a small number of additive expression terms, dominant expression terms, and inter-site interaction expression terms, reflecting the weighted relationship between the target associated site and its corresponding genetic effect and the target trait.
[0087] The key gene output module is used to determine the target associated loci involved in the target associated feature based on the non-zero associated expression terms in the target trait association expression, and to determine the type, direction, and relative contribution intensity of the genetic effect based on the type of associated expression terms and contribution parameters. When an annotation correspondence between genetic loci and genes exists, the key gene output module can further determine candidate genes corresponding to the target associated loci.
[0088] The target trait prediction function in this embodiment can be executed by the core control class calling the trained target trait prediction model, or it can be integrated into the GPU training and expression reading module. The core control class generates the target association feature data from the genotype data to be predicted based on the target association features, and inputs the target association feature data into the trained target trait prediction model to obtain the target trait prediction data corresponding to the crop sample to be predicted.
[0089] The candidate genetic loci, candidate locus data, association feature data, association feature mapping data, contribution parameters, target association features, target contribution parameters, target trait association expressions, and target trait association analysis results generated by each functional module can all be stored as class variables of the core control class. These class variables can be explicitly read and directly scheduled by the core control class as input data for subsequent functional modules, thereby enabling chained processing between functional modules.
[0090] In a specific software implementation, the core control class can be implemented as the NeuroSymbolicGeneMiner control class. This control class can receive genotype data path, phenotypic measurement data path, result output path, and graphics processor identifier, and can also receive runtime parameters such as candidate locus selection method, upper limit of the number of candidate loci, sparse constraint weights, and training iterations. The control class can sequentially call the locus reduction method, model construction method, model training method, expression reading method, and association analysis result export method.
[0091] Figure 3 This illustrates the overall process starting from the input of reference genotype data, target trait phenotypic measurement data, and genotype data to be predicted, and sequentially proceeding through locus pre-reduction, symbolic operator basis construction, L1 sparse readout structure construction, GPU gradient training, sparse pruning, readout of the target trait association expression, determination of the target association locus and corresponding genetic effect, and determination of the target trait prediction data. The crop target trait association analysis method provided in this application embodiment may include steps 101 to 105.
[0092] In step 101, reference genotype data and target trait phenotypic measurement data for multiple reference crop samples are acquired. The reference genotype data can be organized using a genotype matrix consisting of samples and genetic loci, where each row corresponds to a reference crop sample, each column corresponds to a single nucleotide polymorphism (SNP) genetic locus, and each element in the matrix is the allele dose coding value for the corresponding reference crop sample at the corresponding genetic locus. The target trait phenotypic measurement data are organized according to the same arrangement order as the reference crop samples, ensuring that each row in the genotype matrix corresponds to the target trait phenotypic measurement results of the corresponding reference crop sample. In the target trait prediction stage, the genotype data to be predicted for the crop samples to be predicted are also acquired. The genotype data to be predicted uses the same genetic locus range, arrangement order, and genotype coding method as the reference genotype data.
[0093] Since reference genotype data may include tens of thousands to hundreds of thousands of genetic loci, directly constructing single-locus effect features and inter-locus interaction effect features based on all genetic loci would result in a large number of association features. Therefore, we first evaluate and rank multiple genetic loci based on reference genotype data and phenotypic measurement data, and then select a limited number of candidate genetic loci from these multiple genetic loci, compressing the high-dimensional whole-genome genetic locus data into a small number of candidate genetic locus data.
[0094] like Figure 3 As shown, locus pre-reduction can be performed using either FarmCPU association analysis or feature selection; one of these methods should be chosen. When using FarmCPU association analysis, candidate loci are determined based on the significance of the association between each genetic locus and the target trait. When using feature selection, candidate loci are determined based on the predictive contribution of each genetic locus to the target trait. Regardless of the method used, genetic loci are ranked according to their respective locus evaluation data, and the highest-ranking loci, whose number does not exceed the upper limit for the number of candidate loci, are selected to obtain the candidate genetic loci. The upper limit for the number of candidate loci is used to ensure that the number of inter-locus interaction effect features constructed subsequently is within a manageable range.
[0095] Figure 3 The symbolic operator base construction box in the text corresponds to step 103. Additive effect features, dominant effect features, and inter-locus interaction effect features are constructed based on the genotype values corresponding to candidate genetic loci. For any candidate genetic locus i, the genotype value g_i corresponding to candidate genetic locus i is itself used as an additive effect feature to characterize the additive relationship between candidate genetic locus i and the target trait; g_i is obtained by multiplying the genotype value corresponding to candidate genetic locus i by itself. 2 and g_i 2 As a dominant effect feature, it is used to characterize the dominant relationship between candidate genetic locus i and target trait; for any two different candidate genetic loci i and j, the genotype values corresponding to the two candidate genetic loci of the same reference crop sample are multiplied to obtain g_i·g_j, and g_i·g_j is used as the inter-locus interaction effect feature to characterize the association between the joint action of the two candidate genetic loci and the target trait.
[0096] The additive effect features, dominant effect features, and inter-site interaction effect features mentioned above are combined according to the same reference crop sample arrangement order to obtain association feature data. The symbolic operator basis is composed of the above three types of association features. The correspondence between each association feature and the corresponding candidate genetic loci and effect type is established to obtain association feature mapping data, so as to identify the source and effect type of the target association feature based on the model training results.
[0097] Furthermore, a trainable contribution parameter is set for each associated feature in the associated feature data, and the corresponding associated feature values are weighted using the contribution parameter. The weighted results of multiple associated features are summarized to form an L1 sparse readout structure. Figure 3 The L1 sparse readout structure shown is used to establish a weighted combination relationship for all associated features in the symbolic operator basis and output the prediction results of the target trait corresponding to the reference crop sample. An L1 sparsity constraint is applied to the contribution parameters in the L1 sparse readout structure so that the contribution parameters corresponding to associated features with lower contribution levels approach zero during training.
[0098] Figure 3 The processing boxes containing GPU gradient training and sparse pruning correspond to the main processing steps in step 104. The associated feature data is converted into training input data in tensor form and loaded into the graphics processor. The training input data is weighted and combined using the target trait prediction model to obtain the training prediction data corresponding to each reference crop sample, and the phenotypic fitting error is determined based on the difference between the training prediction data and the corresponding phenotypic measurement data.
[0099] Simultaneously, the summation of the absolute values of each contribution parameter yields the L1 sparse constraint data. The phenotypic fitting error is then added to the L1 sparse constraint data weighted by the preset sparse constraint weights to obtain the model training loss data. Using a graphics processor, the contribution parameters corresponding to each associated feature are iteratively adjusted using gradient descent in the direction that reduces the model training loss data.
[0100] L1 sparsity constraints gradually shrink the contribution parameters of features with low correlation to the target trait to zero or near zero. Training stops after a preset number of iterations, yielding the post-trained contribution parameters and the sparse trained model. Subsequently, sparse pruning is performed on the post-trained contribution parameters. The contribution parameters of features whose absolute values are below the contribution strength screening threshold are set to zero, and the corresponding input feature terms are removed from the feature readout structure. Only features with significantly non-zero contribution parameters are retained, and these retained features are identified as the target correlation features.
[0101] In one specific implementation, the contribution intensity screening threshold can be determined based on the maximum absolute value among all the contribution parameters after training. For example, 5% of the absolute value of the maximum contribution parameter can be set as the contribution intensity screening threshold, and associated features with contribution parameter absolute values less than this threshold are removed. Sparse pruning means removing associated features with low contribution levels and retaining a small number of target associated features that have a high contribution to the prediction of the target trait.
[0102] Reading the interpretable mathematical expression means generating a target trait association expression based on the association feature mapping data after determining the target association features and target contribution parameters. The target trait association expression can be expressed as: Predicted data for the target trait ≈ c1·g_a + c2·g_b 2 +c3·g_c·g_d+… Where g_a represents the genotype value of the crop sample to be treated at candidate genetic locus a, and c1·g_a represents the additive expression term at candidate genetic locus a; g_b represents the genotype value of the crop sample to be treated at candidate genetic locus b, and g_b 2 c2·g_b represents the dominant effect characteristic corresponding to candidate genetic locus b. 2 c represents the dominant expression term corresponding to candidate genetic locus b; g_c and g_d represent the genotype values of the crop sample to be treated at candidate genetic locus c and candidate genetic locus d, respectively; g_c·g_d represents the interaction effect characteristics between candidate genetic locus c and candidate genetic locus d; and c3·g_c·g_d represents the interaction expression term corresponding to the two candidate genetic loci.
[0103] c1, c2, and c3 represent the target contribution parameters corresponding to the respective target association features. The target contribution parameters characterize the contribution relationship of the corresponding target association feature in the target trait prediction model. Under the current genotype encoding method, association feature construction method, and feature scale, the positive or negative relationship of the target contribution parameters can be used to characterize the direction of the corresponding target association feature's effect in the current model, and the absolute value of the target contribution parameters can be used to characterize the relative contribution strength of the corresponding target association feature in the current model. The ellipsis indicates that the target trait association expression may also include other additive expression terms, dominant expression terms, or inter-site interaction expression terms; the actual number of expression terms is determined by the number of target association features retained after sparse pruning.
[0104] Key genes were identified and additive, dominant, and epistatic effects were analyzed using bounding boxes. Target associated loci and genetic effect types were determined based on the target trait association expression. For additive expression terms, candidate genetic loci involved in the additive expression term were identified as target associated loci with additive effects; for dominant expression terms, candidate genetic loci involved in the dominant expression term were identified as target associated loci with dominant effects; for inter-locus interaction expression terms, the two candidate genetic loci involved in the interaction expression term were identified as target associated loci with inter-locus interaction relationships.
[0105] Key genes first correspond to the target association sites involved in the non-zero association terms in the target trait association expression. When establishing the annotation correspondence between genetic loci and genes in advance, candidate genes can be further identified based on the target association sites, and these candidate genes can be output as part of the target trait association analysis results.
[0106] The output box displays the target trait association expression, the target associated locus, and the corresponding genetic effect. For the crop sample to be predicted, additive, dominant, and interactive predictable feature values can be constructed from the genotype data to be predicted, according to the candidate genetic loci, effect type, and input order defined by the target trait association expression. These predictable feature values are then input into the trained target trait prediction model to obtain the target trait prediction data corresponding to the crop sample to be predicted.
[0107] thus, Figure 3 The diagram illustrates the overall process from inputting reference genotype data, target trait phenotypic measurement data, and genotype data to be predicted, through sequential steps including candidate genetic locus screening, additive effect feature construction, dominant effect feature construction, inter-locus interaction effect feature construction, L1 sparse readout structure construction, GPU gradient training, contribution parameter sparsification, feature pruning, target trait association expression readout, target association locus determination, genetic effect analysis, and target trait prediction data determination.
[0108] Figure 4 The schematic diagram of the model for constructing associated features and predicting target traits shows that the doses of candidate sites enter the additive operator unit, the dominant operator unit, and the superordinate interaction operator unit, respectively. The model structure is then used to weight and combine each associated feature and its corresponding contribution parameter through an L1 sparse readout layer to output the phenotypic prediction results.
[0109] The input to the neural symbolic regression model is a limited number of candidate genetic loci doses. The candidate loci dose boxes indicate candidate genetic loci g1, g2, to gd, where d represents the number of candidate genetic loci. Genotype values for each candidate genetic locus are extracted from the candidate locus data across multiple reference crop samples, resulting in a candidate locus feature vector. All candidate locus feature vectors are arranged in the same reference crop sample order.
[0110] The additive operator unit receives the candidate locus feature vector corresponding to each candidate genetic locus and uses the genotype value of the candidate genetic locus itself as the additive effect feature. For candidate genetic locus i, the additive effect feature is the corresponding genotype value g_i.
[0111] The dominant operator unit multiplies the genotype value of each candidate genetic locus by itself to obtain the dominant effect trait. For candidate genetic locus i, the dominant effect trait is the square of the genotype value g_i.
[0112] The epistatic interaction operator unit multiplies the genotype values of the same reference crop sample at the two candidate genetic loci for any two different candidate genetic loci, obtaining the inter-locus interaction effect feature. For candidate genetic loci i and candidate genetic loci j, the inter-locus interaction effect feature is the product of g_i and g_j.
[0113] Additive effect features, dominant effect features, and inter-locus interaction effect features are combined to obtain association feature data. A correspondence is established between each association feature and its corresponding candidate genetic loci and effect type to obtain association feature mapping data.
[0114] When the number of candidate genetic loci is d, there are d additive effect traits and d dominant effect traits, and the number of inter-locus interaction effect traits is determined by the number of pairwise combinations of the d candidate genetic loci. Therefore, by restricting d, the number of inter-locus interaction effect traits and all associated traits can be controlled.
[0115] The L1 sparse readout layer receives all associated features output by the additive operator unit, the explicit operator unit, and the superordinate interaction operator unit. A corresponding trainable contribution parameter is set for each associated feature, and the associated feature value is multiplied by the corresponding contribution parameter to obtain the feature contribution value.
[0116] The L1 sparse readout layer aggregates the contribution values of multiple features and outputs phenotypic prediction data. The summation symbol represents a linear weighted combination of the feature contribution values corresponding to each associated feature, where f_k represents the k-th associated feature and c_k represents the contribution parameter corresponding to the k-th associated feature.
[0117] Most of the contribution parameters in the L1 sparse readout layer shrink to zero under the sparsity constraint, so that the model ultimately retains only a small number of associated features that contribute highly to the target trait.
[0118] In other embodiments, at least three different candidate genetic loci can be selected from the candidate genetic loci, and the genotype values of the same reference crop sample at the candidate genetic loci can be combined to obtain higher-order locus interaction effect features. These higher-order locus interaction effect features can be input into the L1 sparse readout layer as part of the associated feature data.
[0119] Figure 5This diagram illustrates the training, sparsity constraint, and feature pruning processes of the target trait prediction model. It shows the tensor quantization of associated feature data, GPU gradient training, L1 sparsity constraint, sparse pruning, interpretable expression readout, and the determination of target associated loci and corresponding genetic effects. Additive effect features, dominant effect features, and locus interaction effect features are combined into a symbolic term matrix according to the order of the reference crop samples, and this symbolic term matrix is then converted into tensor form of training input data. The bounding box of the symbolic term matrix represents the tensor quantized associated feature data described above.
[0120] The training input data is loaded into the graphics processor, and the contribution parameters in the L1 sparse readout layer are trained by the GPU gradient training unit. In one specific embodiment, the training input data can be loaded into the graphics processor identified as cuda:0.
[0121] The training input data is fed into the target trait prediction model, and the L1 sparse readout layer performs a weighted combination of the associated feature values corresponding to each reference crop sample to obtain the training prediction data corresponding to each reference crop sample.
[0122] The difference between the training prediction data and the corresponding phenotypic measurement data is determined, and the squares of multiple differences are averaged to obtain the phenotypic fitting error data. The fitted MSE is used to represent the phenotypic fitting error data.
[0123] The absolute values of each contribution parameter are determined, and the absolute values of multiple contribution parameters are summarized to obtain L1 sparse constraint data. The L1 sparse constraint data is then weighted according to preset sparse constraint weights, and the weighted L1 sparse constraint data is added to the phenotypic fitting error data to obtain the model training loss data.
[0124] The GPU gradient training unit iteratively adjusts the contribution parameters using gradient descent in the direction that reduces the model's training loss data. The L1 sparsity constraint causes the contribution parameters of associated features with lower contribution levels to gradually shrink towards zero. Figure 5 The L1 constraint box in the diagram illustrates the process by which the contribution parameter of a low-contribution associated feature shrinks towards zero.
[0125] Training stops when the preset number of iterations is reached, and the post-training contribution parameters are obtained. These parameters are then configured in the target trait prediction model to obtain a sparse training model. In one specific embodiment, the sparse constraint weight can be set to 0.01, and the number of training iterations can be set to 3000.
[0126] Sparse pruning units are used to further filter associated features after model training is complete. The absolute value of each post-training contribution parameter is determined, and the maximum value is selected from multiple absolute values. This maximum value is then multiplied by a preset filtering ratio to obtain the contribution strength filtering threshold.
[0127] Post-training contribution parameters whose absolute values are less than the contribution strength screening threshold are set to zero, and association features with post-training contribution parameters that are not zero are identified as target association features. Figure 5 In the embodiment shown, the preset screening ratio is 5%, that is, removing associated features whose absolute value of contribution parameter after training is less than 5% of the absolute value of the maximum contribution parameter.
[0128] Remove the input feature terms and contribution parameters corresponding to the associated features with zero contribution parameters after training from the feature readout structure of the sparse training model, and retain the target associated features and the corresponding target contribution parameters to obtain the target trait prediction model after training.
[0129] The interpretable expression readout unit generates multiple association expressions based on the target association features, association feature mapping data, and target contribution parameters. These association expressions are then sorted from largest to smallest absolute value of the target contribution parameters, and combined according to the sorting results to obtain the target trait association expression.
[0130] The target trait association expression includes additive expression terms, dominant expression terms, and inter-locus interaction expression terms. In the expression, g_a represents the additive trait corresponding to candidate locus a, the square of g_b represents the dominant trait corresponding to candidate locus b, the product of g_c and g_d represents the interaction trait between candidate locus c and candidate locus d, and c1, c2, and c3 represent the target contribution parameters of the corresponding association expression terms. Figure 5 The processing box for determining target associated loci and their corresponding additive, dominant, and inter-locie interaction effects represents the processing results for determining target associated loci and their corresponding genetic effects based on the target trait association expression. For the crop sample to be predicted, candidate genetic loci and effect types corresponding to each target associated feature are found from the association feature mapping data to obtain target feature configuration data.
[0131] Based on the target feature configuration data, the genotype values of the corresponding candidate genetic loci are extracted from the genotype data to be predicted. For additive effect types, the corresponding genotype value is directly used as the additive predictable feature value. For dominant effect types, the corresponding genotype value is multiplied by itself to obtain the dominant predictable feature value. For inter-locus interaction effect types, the genotype values of the corresponding two candidate genetic loci are multiplied to obtain the interaction predictable feature value.
[0132] Based on the input order of the target association features in the trained target trait prediction model, the corresponding feature values to be predicted are arranged to obtain the target association feature data. The target association feature data is then input into the trained target trait prediction model and weighted according to the target contribution parameters to obtain the target trait prediction data corresponding to the crop sample to be predicted.
[0133] Based on the candidate genetic loci corresponding to each associated expression term in the target trait association expression, the target associated locus is determined. The genetic effect type of the corresponding target associated locus is determined based on the additive effect type, dominant effect type, or inter-locus interaction effect type to which the associated expression term belongs.
[0134] Under the current allele dose encoding method, association feature construction method, and feature scale, the direction of the corresponding association feature in the current model can be determined according to the positive and negative relationship of the target contribution parameter, and the relative contribution intensity of the corresponding association feature in the current model can be determined according to the absolute value of the target contribution parameter.
[0135] When the target association feature is an inter-site interaction effect feature, the corresponding target trait association analysis results include the two target associated sites and the interaction relationship between the two target associated sites. When the target association feature is an additive effect feature or a dominant effect feature, the corresponding target trait association analysis results include a single target associated site and its corresponding effect type.
[0136] When there is an annotation correspondence between genetic loci and genes, candidate genes can also be determined based on the target associated loci.
[0137] Figure 2 The key gene output module in, and Figure 3 and Figure 5 The process of determining the target associated loci and their corresponding genetic effects is based on the candidate genetic loci involved in the target associated features; when there is an annotation correspondence between genetic loci and genes, candidate genes corresponding to the target associated loci can be further output.
[0138] See Figure 6 This is a schematic diagram of candidate genetic locus screening schemes and their comparison process, showing the first scheme of screening candidate genetic loci using FarmCPU association analysis, the second scheme of screening candidate genetic loci using feature selection, and the comparison relationship between FarmCPU benchmark results.
[0139] The first approach uses FarmCPU association analysis to rank genetic loci based on association significance and screen candidate loci. Based on these candidate loci, additive effect features, dominant effect features, and inter-loci interaction effect features are constructed, and sparse constraint training is performed to obtain the first trained target trait prediction model. The second approach uses feature selection to rank genetic loci based on loci importance and screen candidate loci. Based on these candidate loci, association features of the same type are constructed, and sparse constraint training is performed to obtain the second trained target trait prediction model.
[0140] FarmCPU benchmark results were constructed using additive effects corresponding to significant genetic loci in FarmCPU. The same test crop samples were used to evaluate the first post-training target trait prediction model, the second post-training target trait prediction model, and the FarmCPU benchmark results.
[0141] The comparison can include the predictive performance of the test set, the target associated sites identified by each scheme, and the differences in the composition of additive effects, dominant effects, and inter-site interaction effects.
[0142] On a specific rice dataset, the first approach, which uses FarmCPU significant genetic loci as candidate genetic loci, outperforms the second approach, which uses feature-selected important genetic loci as candidate genetic loci. These results represent experimental results for this specific dataset and target trait only, and are not intended to limit the general applicability of different locus selection methods.
[0143] Figure 7 The schematic diagram of example results provided in the embodiments of this application shows the prediction results under the same candidate genetic loci conditions, example results of different crops, distribution of target associated loci, and target contribution parameters of different genetic effects.
[0144] Subfigure a shows a comparison of the linear model using only additive effect features and the target trait prediction model of this application under the same FarmCPU significant genetic loci conditions.
[0145] In a dataset of rice heading days, the number of samples is approximately four thousand, and the mean cross-environmental phenotype of each crop sample is used as the phenotypic measurement data corresponding to the heading days. FarmCPU was used to identify significant genetic loci, and the 15 genetic loci with the highest significance were selected as candidate genetic loci.
[0146] Crop samples were divided into training and test crop samples at an 8:2 ratio. Based on the same 15 candidate genetic loci, a linear model using only additive effect features and a target trait prediction model using additive effect features, dominant effect features, and inter-locus interaction effect features were constructed. The Pearson correlation coefficient of the linear model using only additive effect features on the test crop samples was 0.611, while the Pearson correlation coefficient of the target trait prediction model of this application was 0.686, representing a relative improvement of approximately 12.3%. Subfigure a shows the two prediction results as a bar chart.
[0147] Subfigure b shows the prediction results of the method of this application on different crops and different target traits. In soybean flowering time data, the prediction correlation coefficient of the additive linear model is 0.598, while the prediction correlation coefficient of the model of this application is 0.672. In rice heading days data, the prediction correlation coefficient of the additive linear model is 0.611, while the prediction correlation coefficient of the model of this application is 0.686. In maize plant height data, the prediction correlation coefficient of the additive linear model is 0.564, while the prediction correlation coefficient of the model of this application is 0.631. In wheat heading time data, the prediction correlation coefficient of the additive linear model is 0.583, while the prediction correlation coefficient of the model of this application is 0.649.
[0148] The experimental results above demonstrate that, under the given experimental data and parameter settings, further constructing dominant effect features and inter-locus interaction effect features based on the same candidate genetic loci can achieve higher test set prediction correlation coefficients than using only additive effect features. These values are specific experimental results and should not be used to limit prediction performance on other crops or other datasets.
[0149] Subplot c uses the order of genetic loci in the genome as the x-axis and the significance of associations corresponding to the genetic loci as the y-axis, showing the distribution of associations of genetic loci across the entire genome. Target association loci identified by the target trait prediction model of this application are marked with circles in the figure, representing the genetic loci involved in the target association features retained after sparse pruning.
[0150] Subgraph d shows the target contribution parameters corresponding to different association terms in the target trait association expression. The direction of the horizontal bars indicates the direction of the corresponding association feature's effect in the current model, and the length of the horizontal bars indicates the relative contribution intensity of the corresponding association feature in the current model.
[0151] In subgraph d, different filling patterns represent additive effect characteristics, dominant effect characteristics, and inter-locus interaction effect characteristics, respectively. This allows for a visual representation of the composition, direction of action, and relative contribution intensity of different types of genetic effects in the target trait association expression.
[0152] In one possible implementation, the system described above can be packaged into a standalone software package. The package includes a core control class, a genotype data input module, a phenotypic data input module, a locus pre-reduction module, a neural symbolic modeling module, a GPU training and expression reading module, and a key gene output module.
[0153] The software package may also include dependency declaration files and can be installed on different computers using standard software package management methods. Model training can be performed on a computer equipped with a graphics processor. After training, the target trait prediction model can be used to perform predictions on the training device or loaded onto other computing devices to perform predictions.
[0154] In one specific embodiment, the number of candidate genetic loci can be set to 15, the number of principal components of the population structure can be set to 5, the sparse constraint weight can be set to 0.01, the number of training iterations can be set to 3000, and the preset screening ratio corresponding to sparse pruning can be set to 5%. The above parameters can be adjusted according to the number of reference crop samples, the number of genetic loci, the type of target trait, and computing resources.
[0155] Candidate genetic loci screening methods are not limited to FarmCPU association analysis and autoencoder feature selection. Other data processing methods that can determine the priority of candidate genetic loci based on reference genotype data and phenotypic measurement data can also be used.
[0156] Association feature data are not limited to additive effect features, dominant effect features, and interaction effect features between two genetic loci. They may also include higher-order interaction effect features corresponding to at least three genetic loci, or other nonlinear association features constructed based on the genotype values of candidate genetic loci.
[0157] The sparsity constraint method is not limited to L1 sparsity constraint, and the feature readout structure is not limited to linear readout structure. As long as the target association features can be determined based on reference genotype data and phenotypic measurement data, and the target association features and the trained target trait prediction model can be used to obtain the target trait prediction data of the crop sample to be predicted, any specific implementation method of this application can be used.
[0158] In summary, this application provides a method for crop target trait association analysis. The method involves acquiring reference genotype data of multiple reference crop samples, phenotypic measurement data of the target trait for each reference crop sample, and genotype data of the crop sample to be predicted. Based on the reference genotype data and the phenotypic measurement data, candidate genetic loci are screened from the multiple genetic loci, and the genotype values corresponding to the candidate genetic loci are extracted from the reference genotype data to obtain candidate locus data. Association feature data is constructed based on the candidate locus data, including single locus effect features and inter-locus interaction effect features. Based on the association feature data and the phenotypic measurement data, a target trait prediction model is trained with sparse constraints, and the target association features and the trained target trait prediction model are determined based on the sparse constraint training results. Based on the genotype data to be predicted and the target association features, the trained target trait prediction model is used to determine the target trait prediction data corresponding to the crop sample to be predicted. By acquiring reference genotype data and target trait phenotypic measurement data from multiple reference crop samples, candidate genetic loci are screened from multiple genetic loci. Based on the genotype values corresponding to the candidate genetic loci, association feature data including single-locus effect characteristics and inter-locus interaction effect characteristics are constructed. The target trait prediction model is then trained with sparse constraints based on the association feature data and phenotypic measurement data to determine the target association features and the trained target trait prediction model. Finally, the corresponding target trait prediction data is determined using the genotype data of the crop samples to be predicted. This approach reduces the impact of information with low association with the target trait on model training and improves the model's utilization of effective association information from genotype detection data, thereby improving the accuracy of crop target trait association analysis.
[0159] Based on the same technical concept, embodiments of this application also provide a crop target trait association analysis system, such as... Figure 8 As shown, the system includes: The data acquisition module 801 is used to acquire reference genotype data of multiple reference crop samples, target trait phenotypic measurement data of each reference crop sample, and genotype data to be predicted of the crop sample to be predicted. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. The candidate locus determination module 802 is used to screen candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extract the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data. The association feature construction module 803 is used to construct association feature data based on the candidate site data, wherein the association feature data includes single site effect features and inter-site interaction effect features. The model training module 804 is used to perform sparse constraint training on the target trait prediction model based on the associated feature data and the phenotypic measurement data, and to determine the target associated features and the trained target trait prediction model based on the sparse constraint training results. The target trait prediction module 805 is used to determine the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association features, using the trained target trait prediction model.
[0160] This application also provides an electronic device corresponding to the method provided in the foregoing embodiments. Please refer to... Figure 9 The diagram illustrates an electronic device provided by some embodiments of this application. The electronic device 20 may include: a processor 200, a memory 201, a bus 202, and a communication interface 203, wherein the processor 200, the communication interface 203, and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can run on the processor 200, and when the processor 200 runs the computer program, it executes the method provided by any of the foregoing embodiments of this application.
[0161] The memory 201 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one physical port (which can be wired or wireless), such as the Internet, wide area network, local area network, or metropolitan area network.
[0162] Bus 202 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs. After receiving an execution instruction, the processor 200 executes the program. The method disclosed in any of the foregoing embodiments of this application can be applied to the processor 200, or implemented by the processor 200.
[0163] The processor 200 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of the processor 200 or by instructions in software form. The processor 200 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 201. The processor 200 reads the information in memory 201 and, in conjunction with its hardware, completes the steps of the above method.
[0164] The electronic devices and methods provided in the embodiments of this application are based on the same inventive concept and have the same beneficial effects as the methods they employ, operate, or implement.
[0165] This application also provides a computer-readable storage medium corresponding to the method provided in the foregoing embodiments. Please refer to... Figure 10 The computer-readable storage medium shown is an optical disc 30, on which a computer program (i.e., a program product) is stored, which, when run by a processor, executes the methods provided in any of the foregoing embodiments.
[0166] The above description is only a preferred embodiment of the present invention and does not limit the patent scope of the present invention. All equivalent structural transformations made under the concept of the present invention using the contents of the present invention specification and drawings, or direct / indirect applications in other related technical fields, are included within the patent protection scope of the present invention.
Claims
1. A method for correlation analysis of target traits in crops, characterized in that, include: The reference genotype data of multiple reference crop samples, the phenotypic measurement data of the target trait of each reference crop sample, and the genotype data to be predicted of the crop sample to be predicted are obtained. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. Based on the reference genotype data and the phenotypic measurement data, candidate genetic loci are screened from the plurality of genetic loci, and the genotype values corresponding to the candidate genetic loci are extracted from the reference genotype data to obtain candidate locus data; Based on the candidate site data, associated feature data is constructed, which includes single site effect features and inter-site interaction effect features. Based on the associated feature data and the phenotypic measurement data, the target trait prediction model is trained with sparse constraints, and the target associated features and the trained target trait prediction model are determined based on the sparse constraint training results. Based on the genotype data to be predicted and the target association features, the target trait prediction data corresponding to the crop sample to be predicted is determined using the trained target trait prediction model; The step of screening candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data includes: Based on the reference genotype data and the phenotypic measurement data, locus evaluation processing is performed on the multiple genetic loci to obtain locus evaluation data corresponding to each of the multiple genetic loci. The locus evaluation data is used to characterize the candidate priority of the corresponding genetic locus being selected as a candidate genetic locus. The number of candidate sites is determined based on the number of the multiple genetic loci and the preset upper limit for the number of candidate sites; The multiple genetic loci are ranked from high to low according to the candidate priority represented by the locus evaluation data; Based on the sorting results, select the genetic loci that are ranked first and whose number is equal to the number of candidate loci to obtain the candidate genetic loci; The candidate genetic locus data is obtained by extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data. The process of performing locus evaluation processing on the multiple genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the multiple genetic loci includes: Principal component analysis was performed on the reference genotype data to obtain population structure characteristic data that characterizes the differences in genetic structure among the multiple reference crop samples; The population structure characteristic data and the genotype values corresponding to each genetic locus in the current reference genetic locus set are determined as correction variables; the reference genetic locus set is used to record the genetic loci used as correction variables in the iterative association analysis process; Under the constraints of the correction variables, the association between the genotype values corresponding to the multiple genetic loci and the phenotypic measurement data is examined one by one to obtain the association significance data corresponding to the multiple genetic loci respectively; The genetic loci are divided into regions according to their genomic distribution locations; Based on the association significance data, the genetic locus with the highest association significance is selected from each region to obtain the reference genetic locus; The reference genetic locus set is updated using the reference genetic locus; Based on the updated reference genetic locus set, the association test and reference genetic locus set update are repeated until the reference genetic locus sets obtained in two adjacent iterations are the same or the number of iterations reaches the preset number. The last obtained association significance data is subjected to multiple tests for correction, and the multiple genetic loci are sorted according to the association significance corresponding to the corrected association significance data. The locus evaluation data is determined based on the sorting results.
2. The method as described in claim 1, characterized in that, The construction of associated feature data based on the candidate site data includes: The genotype values corresponding to each candidate genetic locus in the multiple reference crop samples are extracted from the candidate locus data to obtain the candidate locus feature vector corresponding to each candidate genetic locus. The candidate site feature vectors corresponding to each candidate genetic site are determined as the additive effect features of the corresponding candidate genetic site; Each genotype value in the feature vector of each candidate locus is multiplied by itself to obtain the dominant effect feature of the corresponding candidate genetic locus. For any two different candidate genetic loci, the candidate locus feature vectors corresponding to the two different candidate genetic loci are multiplied element by element according to the same reference crop sample arrangement order to obtain the inter-locus interaction effect features corresponding to the two different candidate genetic loci. The additive effect features, the dominant effect features, and the inter-site interaction effect features are combined according to the same reference crop sample arrangement order to obtain the association feature data; Establish the correspondence between each associated feature in the associated feature data and the corresponding candidate genetic loci and effect type to obtain associated feature mapping data. The effect types include additive effects, dominant effects and inter-locus interaction effects.
3. The method as described in claim 2, characterized in that, Before training the target trait prediction model with sparse constraints, the method further includes: Trainable contribution parameters are set for each associated feature in the associated feature data, and a correspondence between each associated feature and its corresponding contribution parameter is established to obtain a set of contribution parameters. Multiply the associated feature value of each associated feature by the corresponding contribution parameter to obtain the feature processing relationship of the feature contribution value of each associated feature; Based on the aforementioned feature processing relationship and feature readout relationship, a feature readout structure is constructed that takes the associated feature data as input and outputs target trait prediction data; the feature readout relationship is obtained by summarizing multiple feature contribution values to generate target trait prediction data; The contribution parameter set is set as the trainable parameters and sparse constraint objects of the feature readout structure to obtain the target trait prediction model.
4. The method as described in claim 3, characterized in that, The step of training the target trait prediction model with sparse constraints based on the associated feature data and the phenotypic measurement data includes: The associated feature data is converted into training input data in tensor form, and the training input data is loaded into the graphics processor; The training input data is input into the target trait prediction model, and the associated feature values in the training input data are weighted and combined according to the contribution parameter set to obtain the training prediction data corresponding to each reference crop sample. Determine the difference between the training prediction data and the corresponding phenotypic measurement data for each reference crop sample; The average of the squares of multiple differences is used to obtain the phenotypic fitting error data. The absolute value of each contribution parameter in the set of contribution parameters is determined, and the absolute values of multiple contribution parameters are summarized to obtain sparse constraint data; The sparse constraint data is weighted according to the preset sparse constraint weights, and the weighted sparse constraint data is added to the phenotypic fitting error data to obtain the model training loss data. The graphics processor iteratively adjusts the set of contribution parameters using gradient descent in the direction that reduces the training loss data of the model. Stop iterative adjustment when the preset number of iterations is reached, and obtain the post-training contribution parameters; The post-training contribution parameters are configured in the target trait prediction model to obtain a sparse training model.
5. The method as described in claim 4, characterized in that, The target association features and post-trained target trait prediction model determined based on sparse constraint training results include: The absolute values of each post-training contribution parameter are determined to obtain the contribution intensity data corresponding to each associated feature; Determine the maximum contribution intensity data from multiple contribution intensity data; Multiply the maximum contribution intensity data by a preset screening ratio to obtain the contribution intensity screening threshold; Set the post-training contribution parameter of the associated feature whose contribution intensity data is less than the contribution intensity screening threshold to zero; The association features whose post-training contribution parameters are not zero are determined as the target association features, and the post-training contribution parameters corresponding to the target association features are determined as the target contribution parameters. Remove the input feature terms and contribution parameters corresponding to the associated features with zero contribution parameters after training from the feature readout structure of the sparse training model, and retain the input feature terms corresponding to the target associated features and the target contribution parameters to obtain the target trait prediction model after training.
6. The method as described in claim 5, characterized in that, The step of determining the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association features using the trained target trait prediction model includes: The candidate genetic loci and effect types corresponding to the target associated feature are found from the associated feature mapping data to obtain the target feature configuration data; Candidate genetic loci are configured according to the target features, and the genotype values of the corresponding candidate genetic loci are extracted from the genotype data to be predicted to obtain the data of the genotypes to be predicted. For target association features with additive effects, the genotype values of the corresponding candidate genetic loci in the data of the sites to be predicted are determined as additive predictable feature values; For a target association feature with a dominant effect type, the genotype value of the corresponding candidate genetic locus in the data of the site to be predicted is multiplied by itself to obtain the dominant predictable feature value. For the target association feature whose effect type is inter-site interaction effect, the genotype values of the two corresponding candidate genetic loci in the data of the site to be predicted are multiplied to obtain the interaction prediction feature value. According to the input order of the target association features in the post-trained target trait prediction model, the feature values to be predicted corresponding to the target association features are combined to obtain the association feature data to be predicted. The predicted associated feature data is input into the trained target trait prediction model, and the trained target trait prediction model performs a weighted combination of the predicted associated feature data according to the target contribution parameter to obtain the target trait prediction data corresponding to the crop sample to be predicted.
7. A crop target trait association analysis system, characterized in that, The system includes: The data acquisition module is used to acquire reference genotype data of multiple reference crop samples, target trait phenotypic measurement data of each reference crop sample, and genotype data to be predicted of the crop sample to be predicted. The reference genotype data includes the genotype values of each reference crop sample at multiple genetic loci, and the genotype data to be predicted includes the genotype values of the crop sample to be predicted at the multiple genetic loci. The candidate locus determination module is used to screen candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extract the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data. The association feature construction module is used to construct association feature data based on the candidate site data, wherein the association feature data includes single site effect features and inter-site interaction effect features. The model training module is used to perform sparse constraint training on the target trait prediction model based on the associated feature data and the phenotypic measurement data, and to determine the target associated features and the trained target trait prediction model based on the sparse constraint training results. The target trait prediction module is used to determine the target trait prediction data corresponding to the crop sample to be predicted based on the genotype data to be predicted and the target association features, using the trained target trait prediction model. The step of screening candidate genetic loci from the plurality of genetic loci based on the reference genotype data and the phenotypic measurement data, and extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data to obtain candidate locus data includes: Based on the reference genotype data and the phenotypic measurement data, locus evaluation processing is performed on the multiple genetic loci to obtain locus evaluation data corresponding to each of the multiple genetic loci. The locus evaluation data is used to characterize the candidate priority of the corresponding genetic locus being selected as a candidate genetic locus. The number of candidate sites is determined based on the number of the multiple genetic loci and the preset upper limit for the number of candidate sites; The multiple genetic loci are ranked from high to low according to the candidate priority represented by the locus evaluation data; Based on the sorting results, select the genetic loci that are ranked first and whose number is equal to the number of candidate loci to obtain the candidate genetic loci; The candidate genetic locus data is obtained by extracting the genotype values corresponding to the candidate genetic loci from the reference genotype data. The process of performing locus evaluation processing on the multiple genetic loci based on the reference genotype data and the phenotypic measurement data to obtain locus evaluation data corresponding to each of the multiple genetic loci includes: Principal component analysis was performed on the reference genotype data to obtain population structure characteristic data that characterizes the differences in genetic structure among the multiple reference crop samples; The population structure characteristic data and the genotype values corresponding to each genetic locus in the current reference genetic locus set are determined as correction variables; the reference genetic locus set is used to record the genetic loci used as correction variables in the iterative association analysis process; Under the constraints of the correction variables, the association between the genotype values corresponding to the multiple genetic loci and the phenotypic measurement data is examined one by one to obtain the association significance data corresponding to the multiple genetic loci respectively; The genetic loci are divided into regions according to their genomic distribution locations; Based on the association significance data, the genetic locus with the highest association significance is selected from each region to obtain the reference genetic locus; The reference genetic locus set is updated using the reference genetic locus; Based on the updated reference genetic locus set, the association test and reference genetic locus set update are repeated until the reference genetic locus sets obtained in two adjacent iterations are the same or the number of iterations reaches the preset number. The last obtained association significance data is subjected to multiple tests for correction, and the multiple genetic loci are sorted according to the association significance corresponding to the corrected association significance data. The locus evaluation data is determined based on the sorting results.
