Feature Engineering
Turning raw molecular measurements into a numeric matrix a model can learn from: choosing units, transforms, aggregations, and which of the millions of candidate variables survive.
Feature engineering is the step where raw files become a matrix: rows are observations, columns are numbers with defined units and a defined reference, and every column exists because you decided it should. In molecular data this is most of the modeling work. A VCF with 4.5 million variants, a transcript quantification with 60,000 rows, and a proteomics panel with 3,000 analytes are not features. They are raw measurements at different scales, with different noise structures, on different sample sets.
How it works
Three broad model families take these matrices: supervised (predict a label), unsupervised (find structure without labels), and reinforcement learning (learn from sequential feedback). Almost everything in personal omics is the first two. Feature engineering feeds both.
The pipeline has four moves, in order:
- Normalize. Counts become CPM, TPM, or DESeq2 median-of-ratios size factors. Proteomics NPX or intensity values get log2’d and median-centered per run. CGM gets resampled to a fixed grid (5-minute, linear interpolation for gaps under 20 minutes, drop longer gaps rather than filling them).
- Transform.
log1pon counts,rank-inverse-normalon skewed biomarkers,arcsinhwhen zeros matter and you want a shrinkage-friendly scale. - Aggregate. This is where biology enters. Transcript-level TPM summed to gene level with
tximport(txOut=FALSE). Gene-level expression collapsed to pathway scores with GSVA or ssGSEA, taking 20,000 columns to ~50 Hallmark scores. Variants collapsed to gene-level burden (count of rare, high-impact alleles per gene) or to a polygenic score (a weighted sum over effect sizes, which is feature engineering with published weights). - Select. Filter by variance, then by a supervised criterion inside cross-validation. Benchmarks on metabolomics classification show the choice of selection and extraction method changes downstream accuracy substantially, and no single method dominates across datasets.1 SVM-RFE is a reasonable default on multi-omics when sample count is small and you want a ranked list.2
Feature extraction differs from selection: extraction builds new coordinates (PCA, autoencoder bottleneck, embeddings from a pretrained model), selection keeps a subset of the originals.3 Extraction usually wins on accuracy and loses on interpretability. Genomic language models push this further: DNA sequence goes in, a learned embedding comes out, and that embedding replaces hand-built features like GC content and motif counts.4 They work for tasks like predicting enhancer activity and allele-specific effects directly from sequence.5 Foundation-model embeddings across modalities have improved drug response prediction in IBD over hand-built multi-omics features.6
In your own data
Feature engineering is not ETL. ETL moves bytes and enforces schemas. Feature engineering makes modeling decisions that leak information if you get the ordering wrong. Nor is it EDA: exploratory analysis is how you find out that your CGM has a 40-hour sensor gap, feature engineering is what you do about it.
Where it shows up in your files:
variants.vcf.gz→ annotate with VEP or SnpEff, filter toPASS,GQ >= 20,DP >= 10. Gene-level burden only over variants with a defined impact class. Population frequency thresholds matter more than people expect. Variant interpretation from a raw VCF remains the rate-limiting step in germline diagnosis, and it belongs with a clinical geneticist, not a script.7quant.sf(salmon) →tximport→ DESeq2vst(). Usevst, not raw TPM, when you plan to compute correlations or distances across timepoints.- Proteomics NPX matrices → check the LOD column. Values below LOD are censored, not zero. Imputing them with zero after log-transform creates a bimodal column that a tree model will happily split on and learn nothing real.
- CGM CSV → engineered features are the useful part: time-in-range, MAGE, CONGA-1, postprandial AUC over 120 minutes from a timestamped meal log. Raw 5-minute values as 288 columns per day is almost never the right representation.
The mistake that costs the most: selecting features on the full dataset, then cross-validating. Selection must happen inside each training fold. Do it outside and your held-out AUC will be inflated, sometimes by 0.15 or more, and you will not find out until new data arrives.
Limitations
Engineered features encode assumptions. Pathway scores assume the pathway database applies to you. Polygenic scores assume the discovery cohort resembles you, and they transfer poorly across ancestries. Omics prognostic models show measurable performance disparities across ethnic groups traceable to the feature and training pipeline.8 Feature choice also constrains what the model can ever say: a model over pathway scores cannot implicate a single gene. Interpretability methods like SHAP attribute to whatever columns you built, so the attributions are only as meaningful as the aggregation.9 And with n=1 longitudinal data, most supervised setups are underpowered. Unsupervised structure and within-person change over time are the use cases.10
Any feature that looks clinically meaningful needs a clinician to interpret.
Woolf Software builds longitudinal molecular profiles of individuals: whole-genome sequencing, RNA sequencing, proteomics, blood biomarkers, and continuous glucose data, integrated into one model of you. Build your profile.
With one person's genome, transcriptome, proteome, labs, and CGM stream, you have far more candidate features than observations, so most of the work is deciding what to collapse, what to normalize against, and what to throw away before any model sees it.
Related Terms
References
- Justine Labory, Evariste Njomgue-Fotso, Silvia Bottini. Benchmarking feature selection and feature extraction methods to improve the performances of machine-learning algorithms for patient classification using metabolomics biomedical data . Computational and Structural Biotechnology Journal, 2024. DOI
- Nuraina Syaza Azman, Azurah A Samah, Ji Tong Lin, et al.. Support Vector Machine – Recursive Feature Elimination for Feature Selection on Multi-omics Lung Cancer Data . Progress In Microbes & Molecular Biology, 2023. DOI
- Muskan Syed, Anushka Gupta, Priyanka Narad, et al.. Feature Extraction and Selection Methods and Bioinformatics Approach on Omics Data to Identify Molecular Signatures for Specific Diseases . Feature Selection and Feature Extraction on Omics Data, 2026. DOI
- Gonzalo Benegas, Chengzhong Ye, Carlos Albors, et al.. Genomic language models: opportunities and challenges . Trends in Genetics, 2025. DOI
- R Sathian, P Dutta, F Ay, et al.. Genomic language model for predicting enhancers and their allele-specific activity in the human genome . Bioinformatics, 2026. DOI
- Laura-Jayne Gardiner, Jennifer Kelly, Ashley Evans, et al.. Multi-omics feature engineering driven by biomedical foundation models improves drug response prediction for inflammatory bowel disease patients . Scientific Reports, 2026. DOI
- Sonam Dukda, Manoharan Kumar, Andrew Calcino, et al.. Increasing pathogenic germline variant diagnosis rates in precision medicine: current best practices and future opportunities . Human Genomics, 2025. DOI
- Teena Sharma, Nishchal K. Verma, Yan Cui. Omics-Based Cancer Prognosis Across Ethnic Groups: From Feature Engineering to Disparity Detection and Mitigation . IEEE Transactions on Artificial Intelligence, 2026. DOI
- David S. Watson. Interpretable machine learning for genomics . Human Genetics, 2021. DOI
- Michael K. K. Leung, Andrew Delong, Babak Alipanahi, et al.. Machine Learning in Genomic Medicine: A Review of Computational Problems and Data Sets . Proceedings of the IEEE, 2016. DOI