# A compact encoding of the genome suitable for machine learning prediction of traits and genetic risk scores

**Authors:** Yasaman Fatapour, James P. Brody

PMC · DOI: 10.1186/s13040-025-00459-4 · 2025-06-19

## TL;DR

This paper introduces a compact genotype encoding that enables machine learning to predict traits like gender and race with high accuracy using limited genetic data.

## Contribution

The novel contribution is a chromosome-scale length variation encoding that reduces genotype complexity for effective machine learning predictions.

## Key findings

- The compact genotype encoding achieved high accuracy in classifying gender (AUC = 0.9988) and race (AUCs up to 0.970).
- The method effectively predicted human height using genotype data and age.
- This approach works with fewer predictors than samples, overcoming a typical machine learning limitation in genetics.

## Abstract

Genotype to phenotype prediction is a central problem in biology and medicine. Machine learning is a natural tool to address this problem. However, a person’s genotype is usually represented by a few million single-nucleotide polymorphisms and most datasets only have a few thousand patients. Thus, this problem typically has many more predictors than the number of samples (patients), making it unsuitable for machine learning. The objective of this paper is to examine the efficacy of a compact genotype representation, which employs a limited number of predictors, in predicting a person’s phenotype through the application of machine learning. We characterized a person’s genotype using chromosome-scale length variation, a measure that is computed as the average value of reported log R ratios across a portion of a chromosome. We computed these numbers from data collected by the NIH All of Us program. We used the AutoML function (h2o.ai) in binary classification mode to identify the best models to differentiate between male/female, Black/white, white/Asian, and Black/Asian. We also used the AutoML function in regression mode to predict the height of people based on their age and genotype. Our results showed that we could effectively classify a person, using only information from chromosomes 1–22, as Male/Female (AUC = 0.9988 ± 0.0001), White/Black (AUC = 0.970 ± 0.002), Asian/White (AUC = 0.877 ± 0.002), and Black/Asian (AUC = 0.966 ± 0.002). This approach also effectively predicted height. In conclusion, we have shown that this compact representation of a person’s genotype, along with machine learning, can effectively predict a person’s phenotype.

## Full-text entities

- **Species:** Homo sapiens (human, species) [taxon 9606]

## Figures

5 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12180147/full.md

---
Source: https://tomesphere.com/paper/PMC12180147