Related Experiment Video
Updated: Sep 19, 2025

Measuring Interactions of Globular and Filamentous Proteins by Nuclear Magnetic Resonance Spectroscopy NMR and Microscale Thermophoresis MST
Published on: November 2, 2018
ShimNet: A Neural Network for Postacquisition Improvement of NMR Spectra Distorted by Magnetic-Field Inhomogeneity
Sylwia Jopa1, Marek Bukowicki1,2, Alexandra Shchukina3
1Centre of New Technologies, University of Warsaw, Banacha 2C, 02-097 Warsaw, Poland.
Abstract:
Despite commonly applied corrections, known as shimming, the magnetic field in an NMR spectrometer is never perfectly homogeneous. This undesired effect distorts the lineshapes, degrades the resolution, and lowers the signal-to-noise ratio in the collected spectra. As a remedy, numerical techniques have been developed to correct the spectra after acquisition, with reference deconvolution being the most popular example. However, these methods require a precarious parameter guess from the user, making them inconvenient and prone to errors. In particular, the imperfections of the reference deconvolution manifest themselves as strong oscillations at the spectral baseline. We propose a postacquisition shimming tool named ShimNet based on a convolutional neural network with the attention mechanism. The model learns the distortion characteristics of a given spectrometer from a series of calibration measurements. Once trained, it can correct any spectrum from the same machine in a fully automatic way. It achieves slightly better reconstruction quality than the existing methods and is considerably faster. This makes ShimNet an excellent tool for laboratories performing routine and massive NMR measurements for chemists. As an exemplary application, we demonstrate that the model properly corrects liquid-state spectra of small molecules, such as azarone, styrene, Cresol Red, or sodium butyrate. The open-source Python code is freely available from https://github.com/center4ml/shimnet and as the web service at https://huggingface.co/spaces/NMR-CeNT-UW/ShimNet.
Related Concept Videos
NMR Spectrometers: Resolution and Error Correction
¹H NMR: Interpreting Distorted and Overlapping Signals
As Δν decreases and the signals move closer, the doublets appear increasingly distorted. The intensities of the inner lines increase at the cost of those of the outer lines as the signals are...
Atomic Nuclei: Magnetic Resonance
NMR Spectrometers: Overview
Atomic Nuclei: Nuclear Relaxation Processes
NMR Spectrometers: Radiofrequency Pulses and Pulse Sequences

