Data-driven discovery of molecular photoswitches with multioutput Gaussian processes

Ryan‐Rhys Griffiths, Jake L. Greenfield, Aditya R. Thawani, Arian R. Jamasb, Henry B. Moss, Anthony Bourached, Penelope Jones, William McCorkindale, Alexander A. Aldrick, Matthew J. Fuchter, Alpha A. Lee

Abstract

Photoswitchable molecules display two or more isomeric forms that may be accessed using light. Separating the electronic absorption bands of these isomers is key to selectively addressing a specific isomer and achieving high photostationary states whilst overall red-shifting the absorption bands serves to limit material damage due to UV-exposure and increases penetration depth in photopharmacological applications. Engineering these properties into a system through synthetic design however, remains a challenge. Here, we present a data-driven discovery pipeline for molecular photoswitches underpinned by dataset curation and multitask learning with Gaussian processes. In the prediction of electronic transition wavelengths, we demonstrate that a multioutput Gaussian process (MOGP) trained using labels from four photoswitch transition wavelengths yields the strongest predictive performance relative to single-task models as well as operationally outperforming time-dependent density functional theory (TD-DFT) in terms of the wall-clock time for prediction. We validate our proposed approach experimentally by screening a library of commercially available photoswitchable molecules. Through this screen, we identified several motifs that displayed separated electronic absorption bands of their isomers, exhibited red-shifted absorptions, and are suited for information transfer and photopharmacological applications.

The Challenge of Designing Molecular Photoswitches

Molecular photoswitches, such as azobenzenes, are molecules that flip between two structural forms (isomers) when exposed to specific wavelengths of light. This behavior is vital for applications ranging from "smart" drugs that activate only under light to high-density data storage.

The reversible isomerization of azobenzene between E and Z forms, showing changes in geometry, length, and dipole moment.

However, designing the "perfect" switch is difficult. Ideally, a switch should absorb visible or red light (rather than damaging UV light) to improve tissue penetration in medical uses and have clearly separated absorption bands for its two isomers ($E$ and $Z$). Currently, chemists rely on human intuition or Time-Dependent Density Functional Theory (TD-DFT) simulations. Intuition often fails as molecules become complex, and TD-DFT is computationally grueling, often requiring hundreds of CPU days to screen even a small batch of molecules.

Methods: Multioutput Gaussian Processes

The researchers moved away from pure physics simulations toward a multitask machine learning approach using Multioutput Gaussian Processes (MOGP). Unlike standard models that predict one value at a time, MOGP performs multitask learning by predicting four different transition wavelengths simultaneously (the $\pi-\pi^*$ and $n-\pi^*$ transitions for both the $E$ and $Z$ isomers). This allows the model to learn the underlying physical correlations between the isomers.

To represent the molecules, the team used a hybrid representation called "fragprints," which combines standard Morgan fingerprints with RDKit fragments. This approach, paired with a Tanimoto kernel, allows the model to capture both local atom environments and specific functional groups effectively.

Mean Absolute Error (MAE) for different molecular representations across the four prediction tasks, showing the superior performance of Fragprints.

Key Insights and Results

The MOGP model demonstrated significant multitask synergy, effectively sharing information across tasks to improve generalization. In a head-to-head test, the MOGP significantly outperformed a panel of 14 human experts, who struggled as molecular complexity increased.

The model's efficiency is its greatest strength: it provides predictions in seconds, whereas equivalent TD-DFT calculations for benchmark sets took nearly 400 CPU days. Despite this speed, it achieved a Mean Absolute Error (MAE) of approximately 15 nm, comparable to high-level quantum chemistry calculations. To validate the approach, the team screened 7,265 commercially available molecules and purchased 11 "leads." Experimentally, 10 out of 11 molecules met at least one target criterion (red-shifted absorption or >40 nm band separation), and 6 met both.

Limitations and Future Work

While successful, the current model focuses on absorption wavelengths. Predicting thermal half-life—how long a switch stays in one state before flipping back—is the next frontier, though experimental data for this property is currently sparse. Future iterations could also explicitly model solvent effects to improve precision. The curated "Photoswitch Dataset" of 405 molecules provides a strong foundation for the continued data-driven exploration of photoswitchable chemical space.

Summary updated

BibTeX
@inproceedings{griffiths2022data,
  author = {Ryan‐Rhys Griffiths and Jake L. Greenfield and Aditya R. Thawani and Arian R. Jamasb and Henry B. Moss and Anthony Bourached and Penelope Jones and William McCorkindale and Alexander A. Aldrick and Matthew J. Fuchter and Alpha A. Lee},
  title = {{Data-driven discovery of molecular photoswitches with multioutput Gaussian processes}},
  booktitle = {Chemical},
  year = {2022},
  doi = {10.1039/d2sc04306h},
}
Figure