Machine learning models outperform deep learning models, provide interpretation and facilitate feature selection for soybean trait prediction

Mitchell Gill, Robyn Anderson, Haifei Hu, Mohammed Bennamoun, Jakob Petereit, Babu Valliyodan, Henry T. Nguyen, Jacqueline Batley, Philipp E. Bayer, David EdwardsBMC 2022

Abstract

Recent growth in crop genomic and trait data have opened opportunities for the application of novel approaches to accelerate crop improvement. Machine learning and deep learning are at the forefront of prediction-based data analysis. However, few approaches for genotype to phenotype prediction compare machine learning with deep learning and further interpret the models that support the predictions. This study uses genome wide molecular markers and traits across 1110 soybean individuals to develop accurate prediction models. For 13/14 sets of predictions, XGBoost or random forest outperformed deep learning models in prediction performance. Top ranked SNPs by F-score were identified from XGBoost, and with further investigation found overlap with significantly associated loci identified from GWAS and previous literature. Feature importance rankings were used to reduce marker input by up to 90%, and subsequent models maintained or improved their prediction performance. These findings support interpretable machine learning as an approach for genomic based prediction of traits in soybean and other crops.

Introduction

In the era of agricultural genomics, Genomic Selection (GS) has become a vital tool for crop breeding, aiming to predict phenotypes—such as seed oil content or flower color—from DNA markers like Single Nucleotide Polymorphisms (SNPs). While Deep Learning (DL) has seen massive success in other domains, its application in genomics is often hindered by two major hurdles. First, the "Small $n$, Large $p$" problem: genomic datasets often have millions of features but relatively few samples, making DL models prone to overfitting. Second, the "Black Box" problem: breeders require biological insights into which genes drive traits, which DL models typically obscure. This study, published in BMC Plant Biology, evaluates whether traditional Machine Learning (ML) models can offer superior performance and interpretability compared to DL in soybean trait prediction.

Methodology

The researchers benchmarked four algorithms to compare their effectiveness:

  • Machine Learning (ML): XGBoost (Extreme Gradient Boosting) and Random Forest (RF).
  • Deep Learning (DL): Convolutional Neural Networks (CNN) and Deep Neural Networks (DNN).

The dataset comprised 1,110 diverse soybean accessions from the USDA Soybean Germplasm Collection. Initial genomic data of ~5 million SNPs was filtered to a representative set of ~215,000 for whole-genome modeling. Seven traits were analyzed: four categorical (flower color, pod color, pubescence density, and seed coat color) and three continuous (seed oil percentage, seed protein percentage, and seed weight). The pipeline utilized Bayesian optimization for hyperparameter tuning and stratified k-fold cross-validation. Crucially, XGBoost’s F-score was used to rank SNP importance, facilitating a feature selection process to test if reduced marker sets could maintain or improve accuracy.

Results and Discussion

Performance Comparison

The study found that ML models consistently outperformed DL models in 13 out of 14 test cases. For classification tasks involving categorical traits, XGBoost was significantly more accurate, outperforming DL models by an average of 10.32%.

Accuracy of ML and DL models across four categorical soybean traits.

In regression tasks for continuous traits, Random Forest generally emerged as the top performer. While the margin between ML and DL was narrower for these traits (approximately 0.16% difference in error), the overall trend favored traditional ML architectures for this tabular genomic data.

RMSE % of Mean for ML and DL models across three continuous soybean traits.

Interpretability and Feature Selection

One of the most significant findings was the utility of model interpretability. The SNPs identified as highly important by XGBoost's F-score showed substantial overlap with known loci from Genome-Wide Association Studies (GWAS), validating that the model was capturing genuine biological signals rather than random correlations.

By leveraging these importance rankings, the researchers reduced marker input by up to 90%. For categorical traits, this reduction (retaining only 4–27% of SNPs) actually improved accuracy by 2.42% to 7.70%, likely by removing "genomic noise." However, for complex continuous traits like seed weight, which are influenced by many small-effect genes spread across the genome, feature reduction led to a 5.35% increase in error.

Conclusion

This research demonstrates that for current soybean genomic datasets, "shallow" machine learning models like XGBoost and Random Forest are often superior to deep learning in both predictive power and interpretability. While DL may scale better with significantly larger datasets, the hierarchical decision-tree structure of ML models currently provides a more effective and transparent framework for genomic selection in crop improvement programs.

Summary updated

BibTeX
@inproceedings{gill2022machine,
  author = {Mitchell Gill and Robyn Anderson and Haifei Hu and Mohammed Bennamoun and Jakob Petereit and Babu Valliyodan and Henry T. Nguyen and Jacqueline Batley and Philipp E. Bayer and David Edwards},
  title = {{Machine learning models outperform deep learning models, provide interpretation and facilitate feature selection for soybean trait prediction}},
  booktitle = {BMC},
  year = {2022},
  doi = {10.1186/s12870-022-03559-z},
}
Figure