MolBasis
descriptor-defecthydrogen-bond-donormelting-pointcorrectionsqspr5 min read

How a hydrogen-bond donor descriptor defect inflated a result

hb_donor_mass was broken twice. Version 1 counted aromatic π surface as donor, and the production path always returns zero. What that did to a fit.

Updated November 28, 2026

hb_donor_mass is meant to be the cavity surface that acts as a hydrogen-bond donor. It has been reported broken twice. Version 1 counted aromatic π surface as donor surface, and a melting-point figure built on it was inflated. In the production code path the function is called without the SMILES it needs, so the value is always zero. This guide explains both defects, why the first one produced a correlation that looked real, and how such defects get caught.

What the descriptor should measure

A hydrogen-bond donor is a hydrogen attached to oxygen, nitrogen or another electronegative atom. In a continuum calculation such a hydrogen is electron-poor and the cavity surface above it carries negative screening charge. A surface-based donor descriptor sums the area of those segments. Phenol should have a positive value from its hydroxyl. Benzene should have zero. Alkanes should have zero. A diol should have roughly twice the value of a mono-ol with the same exposure.

This is the donor counterpart of hb_acceptor_mass, whose own history is in the guide on the acceptor surface descriptor. The two together were meant to describe hydrogen-bonding capacity, which matters for aqueous solubility, for the Hansen δh parameter and for melting point.

Defect one, aromatic π surface counted as donor

Version 1 of the descriptor classified aromatic π surface as donor surface. The surface above a benzene ring face is electron-rich and is not a donor by any chemical definition. Whatever the rule in the code did, its effect was that every aromatic ring added to hb_donor_mass. Benzene, which should score zero, scored well above phenol's hydroxyl contribution. A molecule's donor value then measured mostly its aromatic surface and only secondarily its hydroxyl and amine hydrogens.

The record does not require a reader to know the mechanism. It requires knowing the consequence. The descriptor was mislabelled. It was an aromaticity descriptor wearing a hydrogen-bonding name.

Why a mislabelled descriptor inflates a melting-point figure

Melting point depends on how well molecules pack in a crystal. Flat aromatic molecules stack. Rigid molecules lose little entropy on freezing. Both raise the melting point. A descriptor that counts aromatic surface therefore correlates with melting point, and a search over descriptors will find and select it. The correlation is real. Its label is wrong.

Two things go wrong at once. The reported figure is attributed to hydrogen bonding, so the interpretation is false. And the figure itself is inflated relative to what a correct donor descriptor achieves, because the correct one no longer carries the aromaticity signal. When the defect was fixed, the melting-point result fell. The findings page records a melting-point figure that a descriptor defect had inflated. The melting-point kernel page shows the current result, its held-out r and the number of molecules behind it. The guide on how a descriptor defect inflated a correlation tells the detection story from the audit side.

A correlation found by search is only as honest as the column it was found in.

Defect two, always zero in production

The second defect is simpler and worse. The production code path calls the donor function without the SMILES string the function needs to locate donor hydrogens. With no SMILES, the function finds no donors, and the field is written as zero for every molecule.

A column of zeros has zero variance. z-scoring divides by the standard deviation, so the standardised column is undefined or, with a guard, also zero. A ridge solve on such a column returns a coefficient that means nothing. A search that scores every descriptor and exponent should see no gain from the column and skip it. If the column is still present in a fit, that fit has one term fewer than it claims, and any statement about hydrogen-bond donors in its interpretation is empty.

The practical consequence for a reader is that no kernel on the site can carry donor information from this descriptor. Any hydrogen-bonding signal must come from hb_acceptor_mass, from sigma_skewness or from sigma_variance.

How such defects get caught

Both defects are visible from the distribution of the column, without any reference to the target.

  1. Check for constants. A column whose standard deviation is zero is broken or useless. This catches defect two in one line.
  2. Check known molecules. Benzene and hexane must have a donor value of zero. Phenol, methanol and aniline must not. A file where benzene exceeds phenol has defect one.
  3. Check ordering. Ethylene glycol should exceed ethanol. Resorcinol should exceed phenol.
  4. Check against a cheap independent count. RDKit's Lipinski donor count is an integer, and the surface descriptor should rise with it. A correlation near zero between the two says the surface descriptor is not measuring donors.

A permutation test does not catch defect one, because the correlation with melting point is genuine. Only a chemical sanity check does. That is the argument for descriptor-level validation in addition to model-level validation, which the guide on reporting a QSPR result honestly places on its checklist.

What to do with the affected fits

The honest sequence is to fix the descriptor, rerun the search on the same scaffold split, publish the new figure as the current one and record the old figure as a correction. The site has done this qualitatively. The melting-point kernel page states what it rests on now. The findings page states what was wrong before. No number from the inflated result is repeated in these guides.

Key points

  • hb_donor_mass was broken twice, first by counting aromatic π surface as donor, then by always returning zero in production.
  • The first defect inflated a melting-point figure because aromatic surface correlates with melting point for packing reasons.
  • A correlation found by search can be real and still mislabelled.
  • A constant column carries no information, and a fit that includes it has one term fewer than it claims.
  • Chemical sanity checks on benzene, phenol and a diol catch both defects without any target data.

Questions people ask

What was wrong with hb_donor_mass?
It has been reported broken twice. Version 1 counted aromatic π surface as hydrogen-bond donor surface, so benzene rings inflated a descriptor that should have been zero for them. In the production code path the function is called without the SMILES it needs, so the value is always zero.
How can a broken descriptor inflate a correlation?
A descriptor that measures the wrong thing can still correlate with the target for the wrong reason. Aromatic surface tracks planarity and stacking, which raise melting points, so a donor descriptor that secretly counted aromatic surface correlated with melting point as an aromaticity term, not as a hydrogen-bonding term.
What happens when a descriptor is always zero?
It has zero variance, so z-scoring divides by zero and any coefficient on it is meaningless. A search that includes such a column should reject it outright. If the column is not rejected, the fit silently has one fewer real descriptor than it claims.
Where are the corrections recorded?
The findings page lists a melting-point figure that a descriptor defect had inflated, together with the other corrections. The melting-point kernel page shows the current figure and the number of molecules it rests on.

Further reading

In practice: The docs page lists the nine descriptors as they are stored, including the bohr² areas under an Ų name and the donor descriptor that the production code returns as zero. The files themselves come from mfsig.

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.