Molecular standardisation converts a supplied SMILES record into one reproducible molecular graph without silently rewriting chemically meaningful information.
The challenge data provide text representations, but our model consumes atoms, bonds, formal charges, aromaticity, stereochemistry, and other graph properties. Standardisation is therefore the boundary between a dataset record and the chemical object presented to the graph cellular automaton.
Strange Matter Engine will use a conservative, reproducible standardisation policy:
- retain the original supplied SMILES unchanged for provenance;
- parse and chemically sanitise the representation;
- separate disconnected fragments;
- identify the principal organic component;
- remove only recognised simple counterions and solvent fragments;
- preserve formal charges rather than automatically neutralising the molecule;
- preserve specified stereochemistry and isotopes;
- apply one declared aromaticity model consistently;
- generate a canonical isomeric SMILES for identity and duplicate checks;
- record every transformation and warning; and
- quarantine structures that cannot be resolved unambiguously.
The purpose is consistency, not cosmetic simplification.
A SMILES string is a sequence of characters describing a molecular graph. More than one valid string can describe the same graph.
For example, ethanol can be written with different traversal orders:
CCO
OCC
The strings differ, but both describe two carbon atoms and one oxygen atom connected in the same order. Our scientific unit is the molecular graph, not the spelling of the SMILES.
We therefore distinguish:
- original SMILES: the exact dataset text;
- parsed molecular graph: the atoms, bonds, charges, and annotations interpreted from that text; and
- canonical isomeric SMILES: a deterministic serialization generated from the standardised graph.
Parsing translates SMILES grammar into a graph
where
Parsing identifies features such as:
- elements;
- explicit and implicit hydrogens;
- bond types;
- branches;
- ring closures;
- formal charges;
- aromatic atom notation;
- isotopes; and
- tetrahedral or double-bond stereochemistry.
A string can fail to parse because of invalid syntax, unsupported elements, unmatched ring markers, impossible annotations, or truncation. A failed record must receive an explicit status; it must not disappear silently.
Sanitisation checks whether the parsed graph is chemically and internally coherent under the declared cheminformatics model. Typical checks include:
- allowed valence;
- consistency of implicit hydrogen counts;
- ring perception;
- aromaticity assignment;
- conjugation;
- hybridisation; and
- consistency of stereochemical annotations.
Sanitisation is not an experimental proof that a molecule exists or has the supplied biological activity. It establishes that the representation can be interpreted consistently enough to generate graph features.
A sanitisation failure can indicate a malformed record, unusual chemistry outside the chosen model, or an ambiguity requiring review.
In SMILES, a full stop separates disconnected components. A salt may be represented as
[Na+].[O-]C(=O)c1ccccc1
This record contains a sodium cation and an organic carboxylate anion. If every disconnected component became one graph, the sodium would appear as an isolated node with no covalent path to the ligand.
Let the parsed record contain connected components
The standardisation procedure must decide which component represents the modelled compound and what role the others play.
The principal component is normally the covalently connected organic fragment representing the compound of interest. A transparent selection rule can consider:
- presence of carbon;
- number of heavy atoms;
- molecular mass;
- recognised counterion patterns; and
- whether one fragment clearly dominates the record.
For component
Heavy-atom count is useful, but it is not sufficient on its own. A record containing two similarly large organic fragments may represent a co-crystal, mixture, or multi-component compound. Such a case is ambiguous and should be quarantined for review.
The chosen fragment, discarded fragments, selection rule, and reason must all be recorded.
Simple counterions balance charge without usually representing the pharmacologically modelled covalent structure. Examples include sodium, chloride, bromide, and simple protonated or deprotonated salt partners.
Solvent fragments may also appear in structure records, such as water or small crystallisation solvents.
Removal is conservative:
- a fragment is removed only when it matches a declared counterion or solvent rule;
- the removed fragment remains recorded in provenance;
- the charge of the retained component is not artificially changed to compensate; and
- unfamiliar multi-component records are reviewed rather than guessed.
Removing chloride from a protonated amine salt leaves the amine positively charged. Fragment removal and charge neutralisation are different operations.
Formal charge is part of the supplied molecular representation. It affects valence, hydrogen-bonding behaviour, electrostatic interactions, and our fixed atom channels.
For a molecular component, total formal charge is
where
Our initial policy preserves
For example, a protonated amine and its neutral free base differ in:
- formal charge;
- hydrogen count;
- hydrogen-bond donor and acceptor status;
- valence representation; and
- likely interaction with the CYP environment.
Automatic neutralisation could erase this information.
The predominant protonation state of a molecule depends on pH, microscopic pKa values, solvent, and environment. A SMILES record provides one represented state; it does not prove that this is the only state present in an assay.
For the first prototype, we preserve the supplied state. A future protonation-state ensemble would be a separate, explicitly validated model extension.
Tautomers have the same overall molecular formula but differ in proton position and associated bond placement. Keto–enol and some heteroaromatic systems are common examples.
Tautomer choice can alter:
- hydrogen-bond donors and acceptors;
- formal bond orders;
- aromaticity assignments;
- local atom environments; and
- the resulting graph channels.
Aggressive tautomer canonicalisation can merge representations that may behave differently in a biological environment. The initial conservative policy therefore does not silently transform every molecule into a preferred tautomer.
We will canonicalise the represented graph, flag suspected tautomeric duplicates when useful, and test any future tautomer-normalisation policy as a separate design decision.
Aromaticity is not stored as an experimentally measured binary label. It is perceived from bonding and valence using a defined aromaticity model.
The same declared model must be used for:
- sanitising training molecules;
- constructing their atom and bond channels;
- standardising validation folds;
- processing blinded test molecules; and
- reproducing predictions later.
Changing aromaticity perception can change atom hybridisation, bond encoding, ring features, and canonical SMILES. The software version and aromaticity model are therefore part of the scientific provenance.
Stereoisomers can share atom connectivity while differing in spatial arrangement. A chiral CYP active site can distinguish them.
We preserve stereochemistry that is explicitly specified in the supplied SMILES, including:
- tetrahedral chirality;
- double-bond geometry; and
- other supported stereochemical annotations.
We do not invent unspecified stereochemistry. A structure with an undefined stereocentre remains marked as undefined rather than being assigned an arbitrary configuration.
A canonical isomeric SMILES is required because a non-isomeric canonical representation may collapse stereoisomers into the same text identity.
An isotope annotation changes atomic mass and may identify a labelled experimental compound. If an isotope is explicitly specified, it is retained.
For an atom with mass number
We will not replace an explicit isotope with the element's default natural-abundance mass during standardisation. Whether isotope information becomes a model channel is a later feature decision.
Canonicalisation chooses a reproducible atom ordering and SMILES traversal for a given standardised graph. Conceptually,
Canonicalisation helps:
- identify exact duplicate graphs;
- create stable molecule identifiers;
- compare processing runs;
- group all CYP observations for the same molecule; and
- prevent exact-molecule leakage across folds.
Canonical does not mean experimentally correct, neutral, dominant at assay pH, or equivalent across different standardisation toolkits. It means deterministic under a declared method and software version.
Two source records may become identical after counterion removal and canonicalisation. Define a standardised identity key
If
the records belong to the same standardised molecular identity for splitting. All associated CYP measurements must remain in the same cross-validation group.
Duplicate biological measurements are not automatically averaged. Replicates, conflicting labels, confidence intervals, and assay provenance must be examined before defining an aggregation rule.
A record enters quarantine when automated processing cannot make a unique, defensible choice. Examples include:
- parsing or sanitisation failure;
- multiple similarly large organic components;
- unsupported organometallic bonding;
- impossible valence under the declared model;
- contradictory stereochemical annotations;
- no identifiable principal organic component; or
- a transformation that changes more chemistry than the accepted policy permits.
Quarantine means:
- retain the original record;
- record the failure stage and diagnostic;
- exclude it from automatic model fitting temporarily;
- review it scientifically; and
- resolve it only through a documented rule.
This converts hidden data loss into an auditable scientific decision.
For every input molecule, we will retain fields equivalent to:
- source dataset and row identifier;
- original SMILES;
- parsing status;
- sanitisation status;
- number and identities of fragments;
- selected principal component;
- removed counterions or solvents;
- total formal charge before and after fragment selection;
- stereochemistry and isotope warnings;
- canonical isomeric SMILES;
- standardisation status;
- transformation log;
- standardisation-rule version; and
- software and chemistry-toolkit version.
The model-ready graph can therefore be traced back to the supplied challenge record.
Most chemical standardisation rules are fixed before model development and applied identically to all records. Any rule learned from dataset statistics belongs inside the cross-validation boundary.
For example:
- a fixed counterion dictionary is a declared preprocessing rule;
- feature means and standard deviations are fitted inside each training fold;
- data-driven feature selection occurs inside each training fold; and
- decisions made after studying outer-fold errors must not be retroactively presented as untouched validation.
All records mapping to the same standardised identity or scaffold group remain together.
Every arrow produces a recorded status and transformation entry.
Before model training, we will report:
- total input records;
- successful and failed parses;
- sanitisation failures;
- fragment-count distribution;
- removed-fragment frequencies;
- formal-charge distribution;
- stereochemistry and isotope counts;
- exact duplicates before and after standardisation;
- quarantined structures and reasons;
- scaffold-group sizes; and
- examples of every transformation class.
We will also visually inspect representative molecules before and after standardisation. A numerically successful pipeline is acceptable only if the resulting chemistry remains defensible.
- Chemistry defines the molecular properties being preserved.
- Graph Theory explains the graph produced from the standardised structure.
- Hybrid Atom-State Channels explains how graph chemistry becomes fixed channels.
- Grouped Nested Cross-Validation uses canonical identities and scaffolds to prevent leakage.
- Validation and Statistics explains why preprocessing provenance matters.