
Update: AI and Machine Learning for Spectral Analysis
Key Takeaways
- Multitask transformer models can place correct small-molecule structures within top-15 from routine 1D NMR without formulas, yet simulated-only training collapses on experimental spectra.
- Multimodal NMR+IR and LLM/agentic reasoning frameworks improve elucidation accuracy, but performance varies sharply with benchmark composition and drops on drug-like chemical space.
Artificial intelligence (AI) has moved from a supporting role in molecular spectroscopy to the center of how spectra are interpreted. Between 2023 and 2026, machine learning models began proposing full molecular structures from routine NMR spectra, learning chemistry from millions of unlabeled mass spectra, predicting UV–vis absorption from structure alone, and steering workflows in autonomous laboratories. This review covers those advances, the push for explainable models, and what still limits routine adoption.
Abstract
Machine learning has become one of the most active topics in molecular spectroscopy. This review surveys research published from 2023 through 2026 across five fronts. The first is spectrum-to-structure prediction from one-dimensional NMR, alone or combined with IR data, using multitask transformer models. The second is the arrival of large language models and agent-based systems that reason over spectra. The third is self-supervised learning and public benchmarks for tandem mass spectrometry. The fourth is property prediction and interpretable deep learning for UV–vis absorption and fluorescence. The fifth is explainable AI and the use of spectroscopic data to drive autonomous laboratories. Reported accuracies on simulated spectra are now high, but performance on experimental spectra, transparency, and standardized validation remain the main obstacles to routine use.
Introduction
Spectroscopists have used multivariate statistics for decades. Principal component analysis, partial least squares regression, and related chemometric tools are standard practice and have been for decades. What changed in the past three years is the type of question being asked of the data. Earlier models typically answered narrow questions, such as the concentration of an analyte or the class of a sample. Newer models are being asked open-ended questions, such as which molecule produced a given spectrum or which experiment makes the most sense to run next.
Three developments made that shift possible. The first is large training sets, often built from simulated spectra and then refined with experimental data. The second is model architectures borrowed from natural language processing, especially the transformer. The third is a growing set of methods that explain what a model has learned, which matters because analysts must be able to defend a result.
In a recent survey of chemometrics and AI for spectroscopy, this author identified explainable AI, generative methods, and multimodal deep learning as the main drivers of progress. That survey also pointed to large language models and physics-informed neural networks as the next stage.1 This article follows those threads through the non-vibrational techniques most used for molecular identification: NMR, mass spectrometry (MS), UV–vis absorption, and fluorescence. IR and Raman appear only where they are combined with these methods, because AI for vibrational spectroscopy is treated separately in this series.
From Spectrum to Structure: Machine Learning for NMR Elucidation
Assigning a structure from one-dimensional 1H and 13C NMR spectra is a daily task in synthetic chemistry, yet it has resisted full automation. Traditional computer-assisted structure elucidation relies on rule-based candidate generation and usually requires a known molecular formula. A 2024 study from Stanford University replaced that workflow with a multitask machine learning model trained on routine 1D spectra.2 For molecules with up to 19 heavy (non-hydrogen) atoms, a size range with trillions of possible structures, the model placed the correct molecule among its first 15 predictions 69.6% of the time. It did so without being given the molecular formula, and it narrowed the search space by up to 11 orders of magnitude.2
The same group extended the approach to molecules with up to 40 heavy atoms using a transformer-based multitask architecture.3 On simulated 1H and 13C spectra, top-15 accuracy reached 60.4%, falling to 46.6% when only 1H data were available. The study also exposes the field’s central weakness. A model trained only on simulated spectra scored 0% on experimental test spectra. Fine-tuning on just 50 experimental spectra lifted that figure to 21.5% while preserving performance on simulated data.3 The gap between simulated and measured spectra is now the main barrier to deployment.
Combining spectroscopic methods is another route to higher accuracy. IBM Research showed that IR spectra alone can drive transformer-based structure prediction.4 A follow-up multimodal, multitask language model trained on both NMR and IR data reported top-1 accuracy of up to 96% after fine-tuning on experimental spectra. The authors described this as performance on par with expert human chemists.5 The multimodal model is a preprint, so its figures should be treated as provisional until peer review.
Large Language Models and Spectroscopic Agents
A second wave of work asks whether general-purpose large language models (LLMs) can reason over spectra rather than simply classify them. SpectraLLM, presented at the International Conference on Learning Representations in 2026, processes several spectral modalities together.6 It reported state-of-the-art results on four public benchmark data sets and outperformed single-modality baselines. It also remained robust when only one type of spectrum was available.6
An alternative view treats elucidation as a search problem rather than a modeling problem. In a 2026 workshop paper, an LLM agent proposed candidate structures, checked them with tools, and revised its answer iteratively.7 On one benchmark data set, the best agent configuration reached 71% top-1 accuracy, compared with 67% reported for graduate students. On a data set drawn from chemistry education materials, it reached about 80%. On a harder set of drug-like molecules from AstraZeneca, accuracy fell to roughly 20%.7 That spread is a useful reminder that benchmark choice drives the headline numbers, and that spectra of real-world drug-like compounds remain difficult.
Mass Spectrometry: Benchmarks and Self-Supervised Learning
Tandem mass spectrometry (MS/MS) produces far more spectra than any library can annotate, which makes it a natural target for machine learning. Progress has been slowed by inconsistent evaluation, since different groups trained and tested on different data. MassSpecGym, introduced at the 2024 Conference on Neural Information Processing Systems (NeurIPS), addresses this with what its authors describe as the largest public collection of high-quality labeled MS/MS spectra.8 It defines three standardized tasks: de novo structure generation, retrieval of candidate molecules, and simulation of spectra from structure.8
Members of the same team also showed that useful chemical knowledge can be learned without labels. DreaMS is a transformer pretrained in a self-supervised manner on millions of unannotated tandem mass spectra.9 After fine-tuning, the model predicted spectral similarity, molecular fingerprints, and chemical properties; detected the presence of fluorine; and linked spectra across studies into a searchable network called the DreaMS Atlas. This mirrors the pretraining strategy behind modern language models. It suggests that the large volume of unannotated spectra in public repositories is an asset rather than a backlog.
Electronic Spectroscopy: Predicting and Interpreting UV–vis and Fluorescence Data
For UV–vis spectroscopy, the dominant AI problem is the reverse of elucidation: predicting a spectrum from a structure so that candidate dyes, sensors, or photoactive materials can be screened before synthesis. Researchers at the University of Cambridge combined 34,893 density functional theory calculations with 26,395 experimentally derived peak absorption wavelengths (λmax).10 Their workflow encodes dye and solvent structures as simplified molecular-input line-entry system (SMILES) strings and extracts features with deep residual convolutional neural networks. A Bayesian-optimized gradient boosting machine then makes the final prediction, and the authors reported performance beyond the prior state of the art.10
Small data sets can still be productive when the chemistry is focused. A study of azobenzene photoswitches built separate regression models for absorption at fixed wavelengths across the UV and visible range.11 Trained on only 330 molecule–spectrum pairs, the models predicted both absorbance at those wavelengths and the position and intensity of the absorption maximum. The authors proposed the approach for rapid screening of thousands of candidates without first-principles calculations.11
In fluorescence, deep learning is being applied to excitation–emission matrices (EEMs), which can be treated as images. One study used a convolutional network pretrained on ordinary photographs and adapted it to EEMs of 24 extra virgin olive oils aged at 60 °C for 53 days.12 The model predicted the oxidation indicators K232 and K268 with mean absolute errors of 0.066 and 0.010, comparable to or lower than experimental error. Importantly, interpretation maps tied K232 to chlorophyll bands and K268 to oxidation-product bands.12 That pairing of accuracy with chemically sensible explanations is the theme of the next section.
Explainable AI and Trust
A model that cannot be explained is hard to validate, and in regulated or clinical settings it is hard to use at all. A review of 21 studies applying explainable AI (XAI) to spectroscopic data found that a small group of methods dominates.13 SHapley Additive exPlanations (SHAP) assigns an importance value to each spectral feature. Masking methods inspired by Local Interpretable Model-agnostic Explanations (LIME) test how a prediction changes when spectral regions are hidden. Class activation mapping (CAM), adapted from image analysis and tied to convolutional neural networks, highlights the spectral regions that drove a decision. Gradient-based methods complete the group. SHAP and masking methods were the most common because they work without modifying the original model.13
The review made two practical points. First, most methods highlight individual intensity peaks, and the authors argued that spectral bands should be given greater weight to obtain consistent explanations. Second, most methods were borrowed from image and multivariate analysis, so they must be applied to spectra with caution.13 The authors called for XAI methods adapted specifically for spectroscopy. Until those exist, the most defensible practice is to check that a model’s highlighted regions match known chemistry, as in the olive oil example above.12
Closing the Loop: Spectroscopy in Autonomous Laboratories
The most consequential use of AI-interpreted spectra may be inside the laboratory itself. A 2024 study from the University of Liverpool used mobile robots to operate standard equipment: an automated synthesis platform, a liquid chromatography–mass spectrometry (LC–MS) instrument, and a benchtop NMR spectrometer.14 A heuristic decision-maker combined the orthogonal NMR and MS measurements to decide which reactions had succeeded and to confirm that screening hits were reproducible. It then chose the next experiments without human input. The system was demonstrated on structural diversification chemistry, supramolecular host–guest assembly, and photochemical synthesis.14
The significance for spectroscopists is that instruments become decision points rather than end-of-line checks. That role raises the stakes for every topic in this review. Structure prediction must work on real spectra, models must be explainable enough to audit, and benchmarks must reflect the samples that autonomous systems will actually meet. Shared software platforms for reproducible AI-based chemometrics are one response to that need.1
Summary of Findings
- NMR elucidation: Multitask models identify the correct structure within 15 guesses about 70% of the time for small molecules on simulated spectra.2 Accuracy drops sharply on experimental spectra unless models are fine-tuned on measured data.3
- Multimodal and LLM approaches: Combining NMR with IR produces the highest reported accuracy.4,5 LLMs and LLM-based agents can now reason over spectra, and one agent approaches graduate-student performance on some benchmarks.6,7 Results vary widely with the benchmark used.7
- Mass spectrometry: Standardized benchmarks and self-supervised pretraining on millions of unlabeled spectra are turning public MS/MS repositories into training resources.8,9
- UV–vis and fluorescence: Structure-to-spectrum prediction supports virtual screening of dyes.10,11 Interpretable deep learning on EEMs links predictions to known fluorophores.12
- Explainability and automation: SHAP and LIME-inspired masking methods dominate XAI for spectra, but most methods are borrowed from other fields and need adaptation.13 Autonomous labs already act on NMR and MS data without human input.14
Conclusion
AI in molecular spectroscopy has advanced from predicting a single property to proposing structures and directing experiments. The research from 2023 to 2026 shows consistent patterns across NMR, MS, UV–vis, and fluorescence. Large simulated or unlabeled data sets provide the scale. Transformer architectures provide the flexibility. Small amounts of experimental data, together with checks against known chemistry, provide the credibility.
Three priorities will decide how quickly these tools move into routine use. The first is closing the simulated-to-experimental gap with more curated, openly shared experimental spectra. The second is agreeing on benchmarks that reflect real samples, including complex pharmaceutical and natural-product mixtures. The third is developing explainability methods built for spectra rather than borrowed from image analysis. Progress on all three would give analysts tools whose answers they can both trust and defend.
References
(1) Workman, J., Jr. Recent Research in Chemometrics and AI for Spectroscopy, Part II: Emerging Applications, Explainable AI, and Future Trends. Spectroscopy [Online], November 4, 2025.
(2) Hu, F.; Chen, M. S.; Rotskoff, G. M.; Kanan, M. W.; Markland, T. E. Accurate and Efficient Structure Elucidation from Routine One-Dimensional NMR Spectra Using Multitask Machine Learning. ACS Cent. Sci. 2024, 10 (11), 2162–2170. DOI:
(3) Hu, F.; Tubb, J. M.; Argyropoulos, D.; et al. Pushing the Limits of One-Dimensional NMR Spectroscopy for Automated Structure Elucidation Using Artificial Intelligence. J. Chem. Inf. Model. 2026, 66 (12), 6992–7002. DOI:
(4) Alberts, M.; Laino, T.; Vaucher, A. C. Leveraging Infrared Spectroscopy for Automated Structure Elucidation. Commun. Chem. 2024, 7 (1), 268. DOI:
(5) Alberts, M.; Hartrampf, N.; Laino, T. Automated Structure Elucidation at Human-Level Accuracy via a Multimodal Multitask Language Model. ChemRxiv 2025 (preprint). DOI:
(6) Su, Y.; Chen, J.; Jiang, Z.; et al. SpectraLLM: Uncovering the Ability of LLMs for Molecular Structure Elucidation from Multi-Spectral Data. In Proceedings of the International Conference on Learning Representations (ICLR 2026); 2026.
(7) Espejo Morales, I.; Hinz, D.; Alberts, M.; et al. NMR Elucidation as an Agentic Search Problem, Not a Modeling Problem. arXiv 2026, arXiv:2607.19406 (ICML 2026 AI for Science Workshop). DOI:
(8) Bushuiev, R.; Bushuiev, A.; de Jonge, N. F.; et al. MassSpecGym: A Benchmark for the Discovery and Identification of Molecules. In Advances in Neural Information Processing Systems 37 (NeurIPS 2024), Datasets and Benchmarks Track; Curran Associates, 2024; pp 110010–110027. DOI:
(9) Bushuiev, R.; Bushuiev, A.; Samusevich, R.; et al. Self-Supervised Learning of Molecular Representations from Millions of Tandem Mass Spectra Using DreaMS. Nat. Biotechnol. 2026, 44 (4), 630–640. DOI:
(10) Jung, S. G.; Jung, G.; Cole, J. M. Automatic Prediction of Peak Optical Absorption Wavelengths in Molecules Using Convolutional Neural Networks. J. Chem. Inf. Model. 2024, 64 (5), 1486–1501. DOI:
(11) Stanev, V.; Maehashi, R.; Ohta, Y.; Takeuchi, I. Machine Learning Modeling of the Absorption Properties of Azobenzene Molecules. Artif. Intell. Chem. 2023, 1 (1), 100002. DOI:
(12) Michelucci, U.; Venturini, F. Deep Learning Domain Adaptation to Understand Physico-Chemical Processes from Fluorescence Spectroscopy Small Datasets and Application to the Oxidation of Olive Oil. Sci. Rep. 2024, 14 (1), 22291. DOI:
(13) Contreras, J.; Bocklitz, T. Explainable Artificial Intelligence for Spectroscopy Data: A Review. Pflügers Arch. 2025, 477 (4), 603–615. DOI:
(14) Dai, T.; Vijayakrishnan, S.; Szczypiński, F. T.; et al. Autonomous Mobile Robots for Exploratory Synthetic Chemistry. Nature 2024, 635 (8040), 890–897. DOI:
Related to this article








