QSAR

Research
Introduced by
Corwin Hansch
Year
1964
Type
Regression-based predictive modeling pipeline
Family
Quantitative structure-activity relationship

What does it do?

Quantitative Structure-Activity Relationship (QSAR) modeling predicts biological activity from molecular structure by fitting a statistical or machine learning model between numerical molecular descriptors and measured activity.

Introduced by Hansch and Fujita in 1964, it estimates activity for compounds that have not yet been tested, which can help decide which analogues to make and test next.

The intuition behind the method

QSAR assumes that a compound's measured activity depends on its structure, and that the relevant structural properties can be summarised as numbers (descriptors) such as size, lipophilicity, flexibility or electronic character. A model is trained on compounds whose activities are known, learning how changes in descriptor values accompany changes in activity. It is then applied to new structures, and its usefulness depends on those structures resembling the training compounds in both descriptor values and chemistry. The approach is an empirical correlation: it can reproduce patterns in the data without establishing the mechanism behind them.

History

Hansch and Fujita's 1964 rho-sigma-pi analysis is the origin of the quantitative approach described here, correlating biological activity with chemical structure. Early QSAR studies relied on descriptors calculated by hand and simple regression models. Later work added many more descriptors and nonlinear machine learning methods, and validation strategies such as Y-scrambling and external test sets were emphasised as essential for predictive use (Tropsha et al., 2003).

When to use it

Choose QSAR when you have structurally related compounds with measured activities against the same target or endpoint and want to estimate activities for further candidates before testing them. It suits lead optimisation, where the question is which substituents or structural changes are likely to raise potency. Do not use a QSAR model for compounds far from the training set in structure or descriptor space, for series whose activities come from different assays or mechanisms, or when the dataset is too small to hold out a meaningful test set. In those cases, predictions should not be used to rank or select compounds without further checks.

Limitations and considerations

  • Predictive accuracy depends on how many compounds were measured and how well the descriptors capture the features that drive activity; poorly covered chemical space gives poor predictions.
  • Models are usually specific to one chemical series or endpoint and rarely transfer to other series without refitting.
  • When training compounds act through different mechanisms, a single descriptor-activity relationship averages over them and may fit none of them well.
  • Descriptors summarise molecular properties but do not directly represent three-dimensional binding geometry, so effects that depend on specific contacts with a target may be missed.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Gives numerical activity estimates that can rank candidate structures before synthesis or testing.
  • With linear models, the fitted coefficients indicate which descriptors are associated with activity within the training set, conditional on the other selected descriptors. They are sensitive to correlation among descriptors and do not establish causation (see pitfalls).
  • Once trained, predicting a new structure requires only its descriptor calculation, so large virtual sets can be screened quickly.

Applications

  • Drug discovery: predicting potency of new inhibitors before synthesis, accelerating lead optimization
  • ADMET prediction: forecasting absorption, distribution, metabolism, and toxicity to improve drug-like properties; simple descriptor rules, such as those for oral bioavailability (Veber et al., 2002), are useful alongside such models but are not QSAR models in themselves
  • Toxicology: screening compounds for potential carcinogenicity or environmental toxicity
  • Agrochemical design: predicting herbicide or insecticide potency for novel structures
  • Cosmetic and chemical safety: assessing skin irritation or sensitization potential

How it works

How it works

1

Assemble compounds with measured activities from a consistent assay or endpoint. Mixing results from different assay conditions or endpoints makes the activity values difficult to model.

2

Compute descriptors for every compound (physicochemical, topological and, where used, quantum mechanical) and standardise them so that descriptors on different scales can be compared within the model.

3

Examine correlations between descriptors, remove redundant ones, and select a subset that relates to activity. If this selection uses the full dataset before validation, later performance estimates will be optimistic.

4

Fit a regression or classification model (for example linear regression, support vector machines, random forests or neural networks) that relates the selected descriptors to activity on the training set. Linear models are easier to interpret; nonlinear models can fit the training data more closely and need closer attention to overfitting.

5

Validate the model in this order, following Tropsha et al. (2003). First run Y-scrambling, randomising the activity values, to confirm that the model does not reflect chance correlation. Then apply multiple leave-many-out cross-validation. Then evaluate the model on an external test set created by a rational division of the data. Check the applicability domain for each query compound and flag any compound outside it. Judge the model on external-set metrics, such as R2 and RMSE on the test set, rather than on its fit to the training data. Use the model to predict activity only for query compounds that fall within the applicability domain.

Common pitfalls

  • Applying a model to compounds outside its applicability domain without flagging them; the uncertainty of such predictions is unknown. Tropsha et al. (2003) stress establishing the domain of applicability in chemical space and cite algorithms for this purpose. A practical check is a descriptor-space distance or leverage measure computed against the training set, and flagged compounds need manual review.
  • Reporting fit to the training data as if it were predictive performance. Tropsha et al. (2003) note that models with high fitted accuracy can fail rigorous validation, so Y-scrambling and held-out testing are needed.
  • Selecting descriptors on the whole dataset and then evaluating on that same data, which inflates apparent accuracy.
  • Reading descriptor associations as causal. A descriptor that correlates with activity across a series may be a proxy for another property in that set.

Frequently asked questions

What is the applicability domain of a QSAR model?

The applicability domain is the region of chemical space defined by the training compounds, described by their structures and descriptor values. Predictions are considered reliable only for query compounds that fall within it. One practical check is a descriptor-space distance or leverage measure computed against the training set. Query compounds outside the domain have high prediction uncertainty and should be flagged for manual review. Tropsha et al. (2003) stress that establishing this domain is essential for predictive use.

How many training compounds do I need for a reliable QSAR model?

There is no fixed minimum that guarantees a usable model. The required size depends on the number of descriptors, the structural diversity of the compounds and the noise in the activity data. Simple linear models with few descriptors tolerate small datasets better than nonlinear models. A large descriptor count relative to the number of compounds raises the risk of overfitting, which is the central concern when tuning flexible models, since they can overemphasise patterns that do not reproduce. Hold out an external test set or use repeated cross-validation, and treat a model with a high descriptor-to-compound ratio with particular caution (Applied Predictive Modeling, Chapter 4).

Can QSAR models predict off-target effects or toxicity?

Yes, QSAR can be built for any quantifiable endpoint, including toxicological ones. Toxicity often involves several mechanisms, so a single model may fit poorly; separate models for different pathways, or consensus predictions across several models, are often used to improve confidence.

Related methods

Sources

  1. Hansch, C. & Fujita, T. (1964). Rho-sigma-pi analysis. A method for the correlation of biological activity and chemical structure. Journal of the American Chemical Society, 86(8), 1616-1626.

    Open DOI reference
  2. Tropsha, A., Gramatica, P., & Gombar, V. K. (2003). The importance of being earnest: validation is the absolute essential for successful application and interpretation of QSPR models. QSAR & Combinatorial Science, 22(1), 69-77.

    Open DOI reference
  3. Veber, D. F., Johnson, S. R., Cheng, H. Y., Smith, B. R., Ward, K. W., & Kopple, K. D. (2002). Molecular properties that influence the oral bioavailability of drug candidates. Journal of Medicinal Chemistry, 45(12), 2615-2623.

    Open DOI reference
  4. Applied Predictive Modeling, p. 73