MolBasis
studentsqsprvalidationesol5 min read

QSPR for students, a first project that teaches validation

A first QSPR project on an open solubility dataset teaches splits, baselines, permutation tests and honest reporting. Here is the plan.

Updated November 28, 2026

A first QSPR project teaches three decisions that every later model report will turn on. Which split to use and to report. Whether the model beats the baseline that predicts the mean. Whether the score survives a permutation test. A student who makes these three decisions on an open dataset in one week has learned the core of validation. This primer gives the plan, the arithmetic and the traps.

Three decisions a first project must make

Pick the ESOL dataset of Delaney. It lists measured aqueous solubility as log S in mol/L for about a thousand small molecules you will recognise, from ethanol and benzene to naphthalene, caffeine and hexane. Delaney also published a four-descriptor linear model, so you have a published rule to compare against. The guide on the ESOL dataset describes the file and its quirks.

Decision one is the split. A random 75/25 split is the first thing everyone does, and its score is almost always too good. Molecules come in series, and a random split tests interpolation within a series. Repeat the project with a scaffold split that holds out whole Bemis-Murcko ring systems, and watch the score fall. The size of that fall is the lesson.

Decision two is the baseline. A model that predicts log S with an MAE of 1.0 sounds fine until you learn that predicting the training mean for every molecule gives 1.4. The lift over the mean is the only number that says the model learned anything.

Decision three is the noise floor. If you tried twenty descriptors and kept the best two, your score includes the luck of the search. A permutation test tells you how good a score the search finds on pure noise.

A plan for one week

  1. Load ESOL with RDKit. Parse each SMILES, drop any that fail, and keep the measured log S.
  2. Compute a handful of RDKit descriptors. Delaney used calculated logP, molecular weight, number of rotatable bonds and aromatic proportion. Add topological polar surface area and the hydrogen-bond donor and acceptor counts.
  3. Make a random 75/25 split with a fixed seed. Fit ridge regression with a small penalty on z-scored descriptors. Record Pearson r, MAE and the calibration slope on the test set.
  4. Make a scaffold split with the same seed and the same fraction, holding out a quarter of the unique scaffolds. Refit and record the same three numbers.
  5. Compute the train-mean baseline MAE on each test set and the lift over it.
  6. Shuffle log S, rerun steps 2 to 4 including the descriptor choice, and repeat two hundred times. Plot the distribution of r and mark your real score.
  7. Write one page that reports both splits, the baseline, the lift and the permutation floor, and names the molecules with the largest errors.

Step 7 is the project. The guide on reporting a QSPR result honestly is the checklist for that page.

The baseline arithmetic, with illustrative numbers

Suppose, for illustration only, that your held-out scaffold split has four molecules with log S of −0.8, −2.5, −3.7 and −5.2, and the training mean is −3.0.

  1. Baseline errors are |−0.8 + 3.0| = 2.2, |−2.5 + 3.0| = 0.5, |−3.7 + 3.0| = 0.7 and |−5.2 + 3.0| = 2.2.
  2. Baseline MAE is (2.2 + 0.5 + 0.7 + 2.2) / 4 = 1.40.
  3. Suppose your model's MAE on the same four molecules is 0.90.
  4. Lift is 1 − 0.90 / 1.40 = 0.36, a 36 percent reduction.

A reduction of 30 percent or more is the lift gate used on this site, as the methodology page describes. Notice how much one molecule weighs in a set of four. Drop the −5.2 molecule and the baseline MAE falls to 1.13. Your lift changes with it. This is why a held-out set of a few dozen molecules gives an unstable figure, and why you should bootstrap the held-out set and report an interval. The real ESOL kernel page on this site states its held-out r and the number of molecules that figure rests on, with its in-sample figure as a secondary value.

What a short equation teaches and what it hides

A short equation is the right first model because every part of it is visible. Two coefficients, two descriptors, one penalty. You can print the equation, plot the two descriptors against log S and see the fit with your own eyes. You can also see it fail. Naphthalene and other flat aromatics sit below the line because the crystal costs energy the descriptors do not see. That is the melting-point problem, and the guide on the general solubility equation is the next thing to read.

The short equation also teaches the search problem in miniature. If you let the fit choose two descriptors from seven and an exponent for each from a grid, you have hundreds of candidates. The best one on the training set is optimistic. Run the permutation test with the search inside the loop and you will see the noise floor rise above zero. The guide on permutation tests and y-scrambling gives the procedure.

What the short equation cannot give you is a method. It is one fit on one dataset, selected by one search and scored on one split. The kernels on this site are the same kind of object, built on nine descriptors from one DFT calculation per molecule rather than on RDKit counts. Their pages report figures from a research record, without coefficients and without an external validation set. The findings page records what went wrong along the way, including a descriptor defect that inflated a melting-point figure and three two-term equations that turned out to be full-data fits. Those are the mistakes your one-page report is designed to avoid.

For a second project, the descriptor files from mfsig are one way to get quantum-chemical inputs.

Key points

  • Report two splits, random and scaffold. The gap between them is the first lesson.
  • Always compute the train-mean baseline MAE and the lift over it. A 30 percent reduction is a reasonable gate.
  • Put the descriptor search inside the permutation loop. The noise floor of a search is not zero.
  • A few dozen held-out molecules give an unstable figure. Bootstrap and report an interval.
  • A short equation is a teaching model, not a method. Say what it is fitted on and how it was scored.

Questions people ask

Which dataset should a student use for a first QSPR project?
The ESOL dataset of Delaney is small, open, well documented and has a published four-descriptor model to compare against. It covers aqueous solubility in log mol/L for around a thousand small organic molecules. The Bradley melting-point set and FreeSolv are good second projects.
What is the train-mean baseline and why report it?
The baseline predicts the training-set mean for every test molecule. Its MAE is the error you get for free. A model earns its place only by the lift over that figure. If the test set has log S from −1 to −5 and the mean is −3, the baseline MAE is already around 1.4 log units, and a model MAE of 1.2 is a small gain.
What does a permutation test or y-scrambling show?
Shuffle the target column so each molecule gets another molecule's value, refit the whole pipeline including any feature selection, and record the score. Repeat a few hundred times. The real score must sit well above the 95th percentile of the shuffled scores, or the model is fitting noise.

Further reading

In practice: Start from the kernel catalogue for the property you need and read its known limits before its correlation. For a molecule's descriptors, the file comes from mfsig; for mixtures and formulation, MolForge's platform continues the work.

See the kernels themselves

Every kernel is shown with its held-out result, the number of molecules it rests on and what it cannot be trusted for.