Inferensys

Glossary

Enrichment Factor (EF)

A metric that quantifies the performance of a virtual screening campaign by measuring how many more active compounds are found in a selected top fraction of a ranked database compared to a random selection.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
METRIC

What is Enrichment Factor (EF)?

The Enrichment Factor (EF) is a key performance indicator in virtual screening that measures the concentration of active compounds in a selected top fraction of a ranked database relative to a random selection.

The Enrichment Factor (EF) is a metric that quantifies a virtual screening model's ability to prioritize active compounds. It is calculated as the ratio of the true positive rate in a selected top fraction (e.g., 1% or 5%) of a ranked library to the hit rate expected from a purely random selection. An EF greater than 1 indicates that the model performs better than random chance, effectively enriching the top-ranked subset with bioactive molecules.

EF is highly dependent on the chosen cutoff percentage and the overall prevalence of actives in the screening database. While intuitive, it is often used alongside complementary metrics like the Area Under the Receiver Operating Characteristic Curve (AUC-ROC) and Boltzmann-Enhanced Discrimination of ROC (BEDROC) to provide a more robust assessment of early recognition performance, as EF alone does not account for the rank order of actives within the selected fraction.

PERFORMANCE METRICS

Key Characteristics of Enrichment Factor

The Enrichment Factor (EF) is a critical metric for evaluating the early recognition performance of a virtual screening campaign. It quantifies how effectively a computational model prioritizes true active compounds over inactive decoys in the top-ranked fraction of a screened database.

01

Mathematical Definition

EF is calculated as the ratio of the true positive rate in a selected top fraction to the random selection rate.

  • Formula: EF_x% = (Hits_selected / N_selected) / (Hits_total / N_total)
  • x%: The top fraction of the ranked database (e.g., 1%, 5%)
  • Interpretation: An EF of 10 at 1% means actives are found at 10x the random rate
  • Maximum Value: Capped at (1 / x%), so EF_1% max is 100
02

Early Recognition Emphasis

Unlike ROC AUC, EF is heavily weighted toward early enrichment, making it ideal for hit discovery where only the top-ranked compounds are tested.

  • Top-heavy metric: Rewards models that push actives to the very top ranks
  • Practical relevance: Matches real-world screening where only 0.1-1% of a library is physically tested
  • Complementary to AUC: A model can have excellent AUC but poor early enrichment
  • ROC AUC blind spot: AUC averages performance across all thresholds, diluting early recognition signals
03

Fraction-Dependent Interpretation

EF values are intrinsically tied to the chosen top fraction, and comparing EF across different fractions requires careful normalization.

  • EF_1%: Most stringent, evaluates the model's ability to concentrate actives in the top 1%
  • EF_5%: Balances stringency with statistical stability
  • EF_10%: Useful for larger hit-picking campaigns
  • Best practice: Report EF at multiple fractions (1%, 5%, 10%) for a complete performance profile
04

Statistical Considerations

EF is highly sensitive to the ratio of actives to decoys in the screening database, requiring careful benchmark construction.

  • Decoy bias: Unrealistic decoys inflate EF artificially
  • Directory of Useful Decoys (DUD-E): Standard benchmark with property-matched decoys
  • Maximum Unbiased Validation (MUV): Designed to avoid analogue bias in enrichment studies
  • LIT-PCBA: Curated benchmark using only experimentally confirmed inactive compounds for realistic assessment
05

BEDROC Integration

The Boltzmann-Enhanced Discrimination of ROC (BEDROC) metric extends EF by assigning exponentially decreasing weight to lower ranks.

  • α parameter: Controls the steepness of the exponential weighting (α = 20 approximates EF_1%)
  • Continuous metric: Unlike EF, BEDROC is not fraction-dependent
  • Range: 0 to 1, where 1 indicates perfect early ranking
  • Advantage: Provides a single, tunable metric that captures early enrichment without arbitrary fraction cutoffs
06

Practical Benchmarking

EF is evaluated against random selection as a baseline, with higher values indicating superior model performance.

  • Random baseline: EF = 1 at any fraction
  • Good performance: EF_1% > 10 typically indicates useful early enrichment
  • Excellent performance: EF_1% > 30 suggests strong predictive power
  • Context matters: EF must be interpreted alongside hit diversity and scaffold coverage to avoid over-optimizing for a single chemotype
PERFORMANCE METRICS

Enrichment Factor vs. Related Metrics

Comparison of Enrichment Factor with other key metrics used to evaluate virtual screening campaigns.

FeatureEnrichment Factor (EF)ROC AUCBoltzmann-Enhanced Discrimination of ROC (BEDROC)Precision at Top k

Primary Focus

Early recognition of actives in a top fraction

Overall ranking quality across the entire list

Early recognition weighted by exponential decay

Purity of the top-ranked subset

Sensitivity to Early Actives

Sensitivity to Late Actives

Dependence on Active/Decoy Ratio

Typical Threshold

Top 1% or 5%

Entire ranked list

α=20 (top 8%) or α=160.9 (top 1%)

Top 10, 50, or 100 compounds

Random Performance Baseline

1.0 (no enrichment)

0.5

0.0

Varies with dataset ratio

Interpretability for Chemists

High: 'X-fold more actives found'

Moderate: abstract probability

Low: requires understanding of exponential weighting

High: 'Y% of top picks are active'

Best Use Case

Hit triage for limited assay capacity

Comparing global model performance

Prioritizing very early actives for resource-constrained validation

Selecting a fixed number of compounds for purchase

METRIC INTERPRETATION

Frequently Asked Questions

Clear answers to the most common questions about calculating, interpreting, and optimizing the Enrichment Factor in AI-driven virtual screening campaigns.

The Enrichment Factor (EF) is a metric that quantifies how many more active compounds are found in a selected top fraction of a ranked database compared to a random selection. It is calculated as:

EF_x% = (Actives_selected / N_selected) / (Actives_total / N_total)

  • Actives_selected is the number of true active compounds found in the top x% of the ranked list
  • N_selected is the total number of compounds in that top fraction
  • Actives_total is the total number of actives in the entire screened database
  • N_total is the total number of compounds in the database

An EF₁% of 10 means that actives are found at 10 times the random rate in the top 1% of the ranked library, indicating a highly performant model. The metric is most commonly reported at 1%, 5%, and 10% thresholds to assess early recognition performance.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.