Data‐Driven Prediction of Ultraviolet–Visible Spectra From Molecular Structure Using Attention‐Based Graph Neural Networks
- 29 September 2026
- journal article
- research article
- Published by Wiley in Molecular Informatics
- Vol. 45 (10) , e70056
Abstract
Predicting UV–vis spectra from molecular structure is an important but relatively underexplored task. In this study, we developed a deep learning approach based on graph neural networks (GNNs) to directly predict UV–vis spectra from SMILES representations. Several GNN architectures were evaluated, among which Attentive Fingerprint achieved the best performance with an R 2 of 0.8630, mean absolute error of 0.0389, root mean squared error of 0.0740, cosine similarity of 0.9589, Pearson correlation coefficient of 0.9521, and distance metric of 1.5758 on the test set. Further analysis showed that the model might be able to capture meaningful structure–property relationship across diverse chemical classes. The model was also evaluated on external datasets, where it maintained good predictive performance, indicating its generalizability. These results demonstrate that attention‐based GNNs provide an effective approach for UV–vis spectrum prediction and may offer useful insights into the molecular regions contributing to model predictions, with potential applications in molecular analysis, high‐throughput screening, and compound design. To facilitate practical use, we deployed the model as an interactive web application ( https://spectra‐prediction.streamlit.app/ ), which enables direct prediction of UV–vis spectra from SMILES inputs.Keywords
This publication has 26 references indexed in Scilit:
- Transformers in drug discovery: fine-tuning ChemBERTa for high-accuracy prediction of solubility, toxicity and binding affinityDrug Discovery Today, 2026
- Leveraging ChemBERTa and machine learning for accurate toxicity prediction of ionic liquidsJournal of the Taiwan Institute of Chemical Engineers, 2025
- Evaluating the anticancer potential of Polygonum multiflorum root-derived stilbenes against H2452 malignant pleural mesothelioma cellsFitoterapia, 2024
- Graph Neural Networks for Molecules2023
- Web Application Development with Streamlit2022
- A compact review of molecular property prediction with graph neural networksDrug Discovery Today: Technologies, 2020
- Experimental methods in chemical engineering: Ultraviolet visible spectroscopy—UV‐VisThe Canadian Journal of Chemical Engineering, 2018
- Assessment of organic pollution of an industrial river by synchronous fluorescence and UV–vis spectroscopy: the Fensch River (NE France)Environmental Monitoring and Assessment, 2017
- Optimizing the synthesis of cobalt aluminate pigment using fractional factorial designCeramics International, 2015
- In situ IR, NMR, EPR, and UV/Vis Spectroscopy: Tools for New Insight into the Mechanisms of Heterogeneous CatalysisAngewandte Chemie International Edition, 2001