Robust and Democratic s‑SNOM Data Analysis and Modeling in Quasar.
Analyze & explore related research in Conceptio
Connect this record directly into your research workflow or AI agent. Explore citations across open repositories, query full text, and export structured proof bundles.
Robust and Democratic s‑SNOM Data Analysis and Modeling in Quasar - PMC Skip to main content An official website of the United States government Here's how you know Here's how you know Search Log in Primary site navigation Search Log in Search PMC Full-Text Archive Search in PMC Journal List User Guide As a library, NLM provides access to scientific literature. Inclusion in an NLM database does not imply endorsement of, or agreement with, the contents by NLM or the National Institutes of Health. Learn more: PMC Disclaimer | PMC Copyright Notice ACS Omega . 2026 May 27;11(22):32971–32980. doi: 10.1021/acsomega.6c02534 Robust and Democratic s‑SNOM Data Analysis and Modeling in Quasar Gergely Németh †, ‡, * , Marko Toplak § , Stuart Read ∥ , Raul de Oliveira Freitas ⊥ , Ferenc Borondics †, * Author information Article notes Copyright and License information † SOLEIL Synchrotron, L’Orme des Merisiers, RD128, Saint Aubin 91190, France ‡ Wigner Research Centre for Physics, 29-33 Konkoly-Thege str. Budapest 1121, Hungary § Faculty of Computer and Information Science, University of Ljubljana, Večna pot 113, SI-1000 Ljubljana, Slovenia ∥ Canadian Light Source, Inc., 44 Innovation Boulevard, Saskatoon, Saskatchewan S7N 2 V3, Canada ⊥ Brazilian Synchrotron Light Laboratory, Brazilian Center for Research in Energy and Materials, Campinas, SP 13083-970, Brazil * E-mail: gergely.nemeth@synchrotron-soleil.fr ;. * E-mail: ferenc.borondics@synchrotron-soleil.fr . Received 2026 Mar 6; Accepted 2026 May 21; Revised 2026 Apr 30; Collection date 2026 Jun 9. © 2026 The Authors. Published by American Chemical Society This article is licensed under CC-BY 4.0 PMC Copyright notice PMCID: PMC13261438 PMID: 42294150 Abstract Near-field optics is a blooming field of physics with multiple techniques that contribute to help understand novel and complex optical phenomena. Among them, scattering-type scanning near-field optical microscopy (s-SNOM) is a well-established method, which was largely enabled by the advent of high-brightness tunable or broadband infrared sources. Thus, today, besides imaging, spectroscopy, and hyperspectral measurements are easily available at the nanoscale. Such instrumental capabilities and the commercialization of s-SNOM instruments made experiments on low-energy phenomena accessible to a large number of laboratories. However, an important outstanding issue is the lack of data analysis tools. Underlying phenomena are complex and require flexible, experiment-specific workflows, numerical modeling, or the use of artificial intelligence. While expert research groups develop specific, in-house processing codes, adapting, exchanging, and reproducing data analysis workflows even within those laboratories can be challenging. Therefore, the need for software that allows easy data processing and interpretation is clear. Here, we introduce the first open-source software suite based on visual programming that democratizes s-SNOM data analysis, unlocks the potential of machine learning for newcomers to the field, and empowers experts to develop and collaborate more efficiently, benefiting the whole near-field community. 1. Introduction Infrared (IR) spectroscopy and spectromicroscopy are essential tools for material characterization, understanding optical properties, structure determination, and various phenomena across biology, chemistry and physics. The technique holds a long and rich history, therefore vast commercial and open-source databases and data analysis software exist. Scattering-type scanning near-field optical microscopy (s-SNOM) is a newer technique compared to far-field infrared spectroscopy that capitalizes on the ability of atomic force microscopes (AFMs) to probe material-light interaction in the near-field. IR s-SNOM instruments are commercialized today by several companies but none of them provide a comprehensive, flexible, and open-source data analysis tool. Experimentally, IR s-SNOM is an established technique widely used across many subfields of physics, chemistry, and biology. − Many advanced use cases of IR s-SNOM are examples in low-dimensional material research and nanophotonics, often using custom-built setups including cryogenic temperature and/or magnetic field. − With the commercialization of IR s-SNOM imaging and spectroscopy (a.k.a. nano-FTIR), the method also found applications in nanoscale analytical research. For example, in polymer science to identify nanoplastics, − in material science to explore the effect of nanocorrosion, or nanoscale changes in oxide layers. , Recently, the possibility to retrieve nanoscale label-free chemical information, elevated IR s-SNOM into the forefront of biological research. It enabled studies of single protein strands, lipid bilayers, biominerals, and even living cells. − This broad scientific landscape shows that the IR s-SNOM technique is extremely versatile. With this wide scope, it is inefficient for various users to repeatedly reimplement or reconsider the fundamental aspects of data processing. This applies to both expert groups from nanophotonics and especially users aiming for nanoanalytics, where s-SNOM is but one tool among the multiple techniques in a complex study. Still, there are no freely available, easy-to-use, and versatile tools for data analysis. Below, we introduce a software package based on the principles of visual programming, a paradigm that has existed for multiple decades in programming and instrument control, for solving the complex task of s-SNOM data analysis. Visual programming enables the rapid development of problem-specific workflows for custom instruments or data analysis in scientific laboratories or industrial settings. Thus, users avoid complex coding tasks and replace them with intuitive, visual interactions to build workflows by connecting components representing data, calculations, or visualizations. The visual programming approach facilitates data processing and makes the implementation and comprehension of complex workflows more accessible to scientists without the need for a programming background. These ideas found their way to data analysis and education, where the flexibility of workflows is paramount and the focus of the problem is at a higher level than writing computer code. Therefore, providing a reusable, configurable component on a canvas enables the implementation and sharing of quick and efficient data analysis. Modern s-SNOM instruments can operate in imaging (fast spatial scanning) or spectroscopy (fast collection along an energy axis) modes and consequently acquire single images, image stacks, or various types of spectroscopy data sets (see Figure ). Today, there is no software that can handle all these data types and, at the same time, provide specific correction methods in an open-source, user-friendly package. For s-SNOM imaging, researchers default to using scanning probe microscopy software like Gwyddion, which, although having powerful general functionality, might be incapable of processing complex-valued data, lack s-SNOM -specific functions, or batch processing. Such limitations often prevent complex studies, such as performing proper multispectral laser imaging data analysis, or the data processing slows down to the manual processing level. With the automation of both measurement and data processing, valuable insight could be developed to complex data, but these are missing from studies even today. Some limitations can be addressed by creating custom code and processing workflows, but UI-dependent functionalities are cumbersome to implement and quickly become unsustainable for elaborate processing workflows. 1. Open in a new tab Data collection schemes in modern s-SNOM instruments. Color brightness represents signal intensity, stars mark measurement positions. For clarity, we omitted spectra on the 3D hyperspectral data set. A different bottleneck appears for analyzing broadband spectroscopy data sets from nano-FTIR measurements. Currently available codes are missing simple functionality such as visual correlation of imaging data and spectra, or slicing and processing of hyperspectral data sets, and performing spectrum and image processing at the same time. To solve these problems, we released the orange-snom add-on for Quasar, an open-source data analysis software that extends the Orange data mining platform , with spectroscopy-specific data processing tools. Orange-spectroscopy , the main add-on of Quasar, contains a variety of visual components (widgets) implementing the most important data analysis tools for spectroscopy and spectromicroscopy. Building on Orange, it brings together spectroscopy data with multivariate data analysis and machine learning. With the new extension, we provide s-SNOM and nano-FTIR-specific widgets and functionality to enable end-to-end data processing in the same environment for nanospectroscopy data using visual workflows, and bring machine learning to the nanoscale with the ease of a few clicks instead of tedious coding. Importantly, Quasar also helps avoid unintentional mistakes in the implementation of workflows, as the components are built in a way that provides a structure and methodology for correct, scientifically and logically consistent data analysis. Below, we will provide several case studies that solve some of the most common data analysis problems for s-SNOM data sets, which can also help expert users to get started with building more complicated workflows. 2. Results and Discussion In this section, we showcase examples covering data loading, manipulation, and plotting as well as complex processing. Since the functionalities mainly rely on the methods implemented on a stand-alone pySNOM package, the GUI-independent part of processing can be done with Python scripting. To demonstrate this, Jupyter notebooks and the data sets of all case studies, implementing the same functionality, are shared in a GitHub repository. Upon installation, a requirements file is followed to handle the correct package and dependence versions. For the workflows below, we used pySNOM 0.3.0 and snompy 0.1.9. In the development, we also made sure that the workflows remain compatible with newer releases. Note that the aim of the case studies presented below is to introduce and discuss several s-SNOM specific workflows. If the reader would like to familiarize themselves with the working principles of Quasar or Orange in detail, we refer to previous publications, , Web sites, and online tutorials. All data sets used in the following studies were measured with a commercial near-field microscope (IR neaSCOPE+, Attocube GmbH, Haar, Germany) in imaging s-SNOM or nano-FTIR mode. In the s-SNOM imaging mode, the microscope works in pseudoheterodyne detection mode using a tunable monochromatic infrared quantum cascade laser (MIRcat QCL, Daylight Solutions, San Diego, CA, USA). This source consists of four laser chips covering the 920–1740 cm –1 spectral range. In the case of broadband nano-FTIR measurements, we utilize the infrared light for a bending magnet device at the SMIS beamline of SOLEIL synchrotron. In both measurement modes, HgCdTe detectors are used (Infrared Associates and Kolmar technologies). Detailed image and spectrum acquisition parameters can be found in the corresponding sections. 2.1. Case Study 1Basic Data Exploration In an s-SNOM experiment, visual camera images, both optical and mechanical signals, and various spectroscopy data (see Figure ) are collected at the same time. As the technique is strongly geared toward spatial representation of the sample through these various signals, it is essential to enable a visual correlative exploration of the data set. Below we show a basic example of loading and displaying a nano-FTIR measurement, including the map image and the spectra. The basic building blocks of a Quasar workflow are widgets that implement a specific operation on the data. Widgets pass data to each other through channels that are represented by the connecting line between them. Whenever the data changes in one of the widgets via a parameter change, the new data flows through the entire workflow, which creates an easy, intuitive way of working. A workflow is shown on the top-left part of Figure . It implements a solution for the correlative display and visual inspection of images and nano-FTIR spectra at specific points. Here, we use data containing multiple point spectra, white-light, and AFM images, which were used during the measurement to select locations. The File widget loads imaging data, while the corresponding spectroscopy data sets are loaded by Multifile . 2. Open in a new tab Top-left: workflow for simple data exploration and display. Multifile is used to load nano-FTIR spectra, while the File widget loads an AFM image that is passed to Preprocess image to correct the plane level. (a) The Add Image Overlay widget allows the customization of the overlay image, including color map and scaling, and combines the image with the spectroscopy data set. (b) In Hyperspectra , the “ As Scatter Plot ” option depicts the locations of the spectra on top of the overlay image and allows the selection of single or multiple points. Subsequently, they are combined into a single data set by the Add Image Overlay widget ( Figure a). The user can customize the look of the overlay image by changing the colors or the display limits. The generated image is added to the “ Visible image ” attribute of the data table containing the spectra. Finally, we can display the combined data together in Hyperspectra ( Figure b) with the image on top showing positions of single point spectra and the spectra themselves on the bottom panel. Enabling the “ Show visible image ” option displays the overlay data, and using the “ As Scatter Plot ” option for the image values allows one to showcase and interactively view spectra from different locations. Importantly, selections on either the top (image) or bottom (spectra) panel can be performed and propagated to further data analysis. This workflow is also suitable for displaying slices or integrals of hyperspectral cubes on top of an AFM map, but Hyperspectra can be used alone for data exploration. 2.2. Case Study 2Interferogram Processing One of the challenges in nano-FTIR spectroscopy data processing comes from the asymmetric arrangement of the interferometer. In conventional FTIR interferometers, the setup consists of a fixed and a moving mirror, which provide the two beams for the interference, and the sample is located outside of the interferometer. However, in broadband IR s-SNOM instruments, the tip is located in the fixed mirror arm, resulting in an asymmetric arrangement. As a consequence, the measured interferogram shows a dispersive shape on the positive optical path difference side caused by the sample’s refractive index dispersion. These interferograms are heavily asymmetric and offset from the center point of the interferometer’s scanning range to maximize spectral resolution and decrease artifacts, and they require different processing from the conventional measurements, as detailed in the literature. In Quasar, we implemented the spectrum calculation for asymmetric complex interferograms, including asymmetric apodization and phase spectra corrections. We introduced the new functionality in the Interferogram to Spectrum widget of the orange-spectrosopy add-on. As shown in Figure , after loading both sample and reference interferograms with the File widget, we use Select Rows to choose the “ O2 ” channel for further processing. The Interferogram to Spectrum widget automatically recognizes that the datatable contains both amplitude and phase spectra provided from the experimental files. As shown in Figure a, the “ ComplexFFT ” option is selected by default for this format. We have several apodization functions to choose from. All are compatible with asymmetric apodization. After the widget finds the zero path difference (ZPD) point of the interferogram using the chosen method from “ ZPD search ”, it applies the apodization both to the left (negative path difference) and the right (positive path difference) side of the interferogram. Since the ZPD point is not in the center, the apodization window becomes naturally asymmetric. In case of loading amplitude and phase separately, the user has to connect the amplitude data to the “ Interferogram ” and phase data to the “ Phases ” inputs. 3. Open in a new tab Top-left: workflow for interferogram processing. (a) The Interferogram to Spectrum widgets process the complex interferograms. (b) Spectral signal-to-noise ratio is computed by the SNR widget and plotted in a Spectra widget, here labeled as “ SNR spectrum ”. (c) The hyperspectral linescan normalized by the reference spectra is presented by the Spectral series widget, where the hyperbolic-phonon branches of the h-BN flake (orange rectangles) are clearly visualized. Additionally, the Interferogram to Spectrum widget provides both the amplitude and phase spectra for the given data set. Both spectra are important in nanoFTIR spectroscopy, as amplitude represents local reflection and phase is related to the local absorption of the sample at the nanoscale. To showcase the use of the Interferogram to Spectrum widget for hyperspectral data, we use interferogram data from a hyperspectral linescan measurement on a hexagonal boron nitride (hBN) flake exfoliated onto a SiO 2 substrate. The line was set up perpendicular to the edge of the hBN flake. During the linescan, the tip approaches the edge of the flake, and it finishes on the SiO 2 substrate while measuring a new interferogram every 20 nm. Measurements were done at the SMIS beamline of SOLEIL synchrotron, using synchrotron IR radiation as the light source. The spectral line scan consists of 100 points. At each point, we recorded 5 spectra with the acquisition parameters of 90 nm tapping amplitude, 490 μm scan distance. We sample the interferogram at 1024 points with 20.1 ms integration time per point. The widget requires both amplitude and phase interferograms, which are readily available in the recorded files. Choosing the “ ComplexFFT ” option, the calculation uses the entire complex-valued interferogram for Fourier transformation. The user also has the usual option to choose from different apodization functions and define zero filling. The apodization function is positioned regarding the option in the ZPD search section. By default, the widget uses the step size in the data to calculate the frequency axis, but the user can override it manually. Another advantage of our custom processing is that commercial software from manufacturers typically outputs averaged spectra across multiple runs. However, the Interferogram to Spectrum widget provides all the individual spectra at each point. The spectra can then be averaged by coordinate with the help of the SNR widget, but, as the name suggests, it can also be used to calculate spectral signal-to-noise ratio, providing important information about data quality, and to identify measurement points with poor stability. The spectral signal-to-noise for the reference measurement is presented in Figure b. Since the same widget can also be used to calculate the averages for each position, we use it to obtain the average spectra for each point along the linescan and the reference measurement. Preprocess Spectra widget is then used to apply the reference, add a linear baseline correction and cut the spectra for the desired spectral range. At the end, the Spectral Series widget displays the consecutive spectra as a 2D map, where the two axes are the spatial position along the line (horizontal) and frequency axis of the spectra (vertical). In Figure c shows highly pronounced spectral signatures at 1360–1610 cm –1 and 760–825 cm –1 region belonging to upper and lower phonon Restrahlen bands of the hBN crystal, respectively. In the upper band, different branches of the hyperbolic phonon modes are clearly visible toward the edge of the flake (marked by the dashed line). The third spectral feature, in between the hBN phonon bands, is the contribution from the SiO 2 substrate. When the tip reaches the off-flake points, the SiO 2 peak is greatly enhanced, and the hBN signatures vanish. From the spacing of the hBN phonon branches, the wavelengths of the surface polariton can be measured to retrieve the dispersion relation of the slab polariton mode. , 2.3. Case Study 3Multispectral Image Processing Here, we present a complex workflow to showcase the capabilities of Quasar for advanced s-SNOM data processing. We use a set of single-wavelength s-SNOM images and assemble them into a multispectral data set for further processing. The data set consists of 47 s-SNOM images of human blood-derived extracellular vesicles (EVs) drop-casted on a gold substrate. The images were taken in the 1505–1735 cm –1 spectral region with 5 cm –1 steps. We chose an area with a few individual vesicles. Each scan was 7.500 × 2.925 μm with 300 × 117 pixel resolution. The integration time per pixel was set to 7 ms, the tapping amplitude was 85 nm, and the laser power was maintained at 1 mW for all the wavelengths. Human samples were collected upon informed consent. The task here is to create a multispectral data set from single-wavelength images to analyze the spectra of individual vesicles. After tuning to a new wavelength for a new s-SNOM image acquisition, the AFM stage suffers several microns of random drift. This results in the shift of the object in the area of measurement, requiring image realignment as part of the processing. As the first step, we aim to correct the drift by calculating the normalized cross-correlation between the consecutive images and cropping them to the size of the overlapping area using the Align Stack widget. As shown in Figure , the widget has two inputs: optionally (as here), the user can supply a data set of reference images. The widget is able to calculate the translations from a reference image set and apply the corrections to the images connected to the “ data ” input. Here, we used this option because the optical images have spectrally varying contrast, which can lead to failed or inaccurate image registration. The AFM mechanical amplitude images (M1A) are more suitable as a reference because they show the same contrast of the objects regardless of the wavelength of the s-SNOM measurement. Since they are measured simultaneously with the optical channels, they match pixel-perfectly. In Figure a, the Align Stack widget window shows both horizontal and vertical drift shifts for each image (frame). 4. Open in a new tab Example workflow for multispectral image processing (a) and subsequent machine learning analysis (b). In the blue frame, four widgets are highlighted: Align Stack corrects image drifts of measurements at different wavelengths and shows applied shifts in X and Y directions. Preprocess image Basic removes measurement artifacts in the aligned stack using line leveling and plane subtraction. The Hyperspectra widgets are used to show the integrated spectral image of the data set and a spectrum from a vesicle before and after the drift correction. Subsequently, in part (b), the orange frame, the data is baseline corrected in Preprocess spectra , cropped by Hyperspectra to the region marked by the red rectangle in (a), and analyzed with the t-SNE widget. A manual selection of two visually separated groups and their average spectra are plotted in Hyperspectra tSNE. Box Plot shows statistical parameters at 1660 cm –1 for the two groups and runs a two-tailed t test to compare the distribution means. At each wavenumber, the laser alignment was adjusted and the optical path optimized to maximize the optical signal. As a consequence, the raw pixel intensity values cannot be used to construct the spectrum; a reference is required to normalize the data. Thus, as a second step, we need to correct and normalize the images. In an ideal case, the substrate has a flat spectral response, which can be used for normalization. To obtain a meaningful spectrum, each image must be referenced to the substrate signal. Furthermore, any AFM instabilities and scanning artifacts have to be removed from each image. This usually involves line leveling and plane fitting, which are commonly used in AFM image processing. However, because the information from the measurements is complex-valued, amplitude and phase images have to be treated differently. Besides common scanning-probe image correction, s-SNOM -specific artifacts need to be corrected as well. The two most important corrections are on-pixel normalization and negative phase subtraction. , Both are implemented in Quasar and accessible through the Preprocess Image widget, which works similarly to Preprocess spectra . A sequence of corrections can be created that are applied in an ordered sequence from top to bottom of the list. Here, we applied line leveling and a polynomial background fit ( Preprocess imageBasic ). This way, all the values are normalized to the substrate level. In the second Preprocess image widget ( Preprocess imageReference ), we selected a reference image at 1500 cm –1 using the Select Column widget to correct the negative phase contrast artifact often present in near-field images. In Figure , we show the full multispectral data analysis workflow where we combined the newly implemented s-SNOM specific corrections with the existing AI features from Orange. Part (a) of the figure highlights the most important steps of s-SNOM data preprocessing as well as its effect via integrated images of the raw and corrected data. The initial data shows a shifted pattern, resulting in uninterpretable spectra that appear like noise ( Figure abottom left). The processed data set reveals the correct phase contrast of the vesicles and gives reliable multispectral information. As a consequence, one can clearly identify that some of the vesicles are protein-rich, and some are empty, even by simply looking at the image created from the integrated values of the Amide I peak at 1660 cm –1 ( Figure abottom right). The Hyperspectra Full correction shows the borders of integration to create the image. Low values in the image (blue) mean the integrated peak is missing from the spectrum; these vesicles (marked by green circles) do not contain proteins. In Figure b, we go one step further in demonstrating the capability of the new tools combined with machine learning tools. The data set is cropped, baseline corrected and subsequently sent to a t-SNE analysis widget, an unsupervised algorithm to discover structure and reduce the size of multidimensional data sets. The result clearly shows at least two groups that separate from the main point cloud. After manual selection, they are shown in Hyperspectra tSNE . The large (unselected - green) group represents the substrate and the inside of some vesicle, as apparent from the group selection image in the HyperSpectra tSNE widget. The corresponding vesicles are also indicated in (a) by the green circles. HyperSpectra tSNE widget also features the average spectrum of all the spectra categorized in each group. The red point cloud selected (G2 group) in the tSNE widget corresponds to the edges of the vesicles. At the edges of small, well-defined objects, s-SNOM measurements often show artifacts, as evident in the averaged, very noisy spectra of this group. The most separated group (blue selection, G1 group) clearly shows the EVs that are rich in protein. (also marked in (a) by the blue circle). Finally, we also calculated a box-plot representation of the identified clusters and analyzed the results via a t test. The Box Plot shows the phase value statistics of G1 and G2 at 1660 cm –1 (at the Amide I peak), demonstrating that only the G1 group presents contrast higher than the substrate value and the average noise. The workflow enables automated identification of subpopulations in a vesicle mixture, which is an ongoing research topic in biology. This case study shows how Quasar unlocks the possibility to use AI tools in the analysis of s-SNOM data sets, which was unavailable until now in a user-friendly way. 2.4. Case Study 4Model Fitting Quasar and orange-snom aim to address another common problem in s-SNOM data analysis, the difficulty of interpreting a nano-FTIR spectrum and drawing conclusions about the local refractive index. Due to the nature of the interaction, the results do not always resemble a simple reflectance or absorption spectrum. To solve this, simulations are needed and numerous models have been developed in the past few years to describe and model the near-field interaction between the tip and the sample, and describe the image contrast and/or spectra. ,− One of the most successful models so far is the so-called Finite Dipole Model (FDM), which simplifies the system to a conducting prolate spheroid and a half-infinite space and treats scattering as a quasi-electrostatic problem. In addition, to understand the experimental results, one has to take into account the experiment and its parameters, such as AFM tip tapping and higher-order demodulation. Additionally, an improved successor of the model can calculate the s-SNOM signal even for layered systems. The implementation of the FDM model can be challenging for the dynamically growing user community of s-SNOM. Recently, snompy , a new Python package was developed at the University of Manchester with the proper implementation of the existing FDM models. Building on the snompy package, we developed a widget for modeling and fitting material parameters using the FDM model. We showcase the usage of the SNOM model widget. As seen on Figure , the widget consists of a model builder and a fit inspector part. In the fit inspector (right panel), the data are shown as blue curves, while the fitted model is shown in solid red. The view is split into amplitude (top graph) and phase (bottom graph), allowing one to simultaneously monitor the fit results for the complex data set. The user can build their layered system using different dielectric permittivity terms in the model builder (left panel). Each layer is separated by an interface placeholder that describes the thickness of the following layer. After a separator, multiple permittivity terms can be added to create the desired spectral behavior. Finally, the “ Reference ” indicator has to be placed to separate the sample terms from those of the reference. 5. Open in a new tab Example workflow for s-SNOM signal modeling. Preprocess spectra and Select Rows widgets were used to cut spectra and apply basic corrections on amplitude (O2A) and phase (O2P) data before model fitting. (a) Overview of the SNOM Model widget. The left side consists of a model builder part and a parameter panel. The right side shows the raw data (blue) with the fitted spectrum (red). In our demo case, we fit the complex second-harmonic s-SNOM spectrum of PET (amplitude top panel, phase bottom panel). (b) Data Table presents the fitted parameters of the Lorentzian permittivity term. The red rectangles highlight the fitted oscillator parameters as ν = 1724.48 cm –1 , γ = 19.15 cm –1 , A = ν p = 27918 cm –2 and a constant term which is ϵ ∞ = 1.83. Here, we present a model fitting of the nano-FTIR spectra of polyethylene terephthalate (PET). For the sake of clarity of the presentation, we only fit the carbonyl peak of the PET spectra. The sample was simply a piece of PET from a magnetic tape. The spectrum was measured at the SMIS beamline of the SOLEIL synchrotron. The final spectrum is the average of 16 spectra with the acquisition parameters of 80 nm tapping amplitude, 490 μm scan distance, 1024 sampling points and 20.1 ms integration time per pixel. To normalize the spectra, reference measurements were carried out on an undoped Si substrate with the same experimental parameters. After loading the data, we apply basic processing by the Preprocess Spectra widget to cut the spectrum and only keep the desired spectral region. The Select Rows helps us separate the optical amplitude (O2A) and phase (O2P) channels. We apply a basic linear baseline correction to the phase spectra to remove measurement artifacts. Amplitude and phase spectra are then separately fed to the inputs of the SNOM Model widget. As shown in Figure , the simple model comprises a “ Static Permittivity ” term representing air and a “ Lorentzian Permittivity ” and an additional “ Static Permittivity ” term describing the infrared response of the PET. The extra “ Static Permittivity ” is used as ϵ ∞ representing the response of all the other oscillators outside of the spectral range. An “ Interface ” indicator is used to separate the two domains. The initial parameters of the Lorentzian term are roughly set by hand, including upper and lower bounds of the allowed parameter set. After the reference indicator, we build a similar model consisting of a static permittivity for the air, an interface separator, and a second static permittivity for the Si with ϵ = 11.7. The FDM model also requires several model parameters to be set, regarding the tip geometry and experimental conditions. In our example, we use standard parameters that work well with the standard platinum-coated Arrow NCPt tips from Nanoworld, which we used during our measurements. Our parameter set for the model is shown in the FDM Parameters section of the SNOM Model widget in Figure a. Since the negative phase offset of the experimental phase spectrum is usually removed during preprocessing, the “ Phase offset ” option can be used to offset correct the model spectrum as well. With the parameters and the boundaries set, the widget automatically performs a fitting using both amplitude and phase data. The optimized parameters are then sent to the “ Fit Parameters ” output of the FDM model widget. They can be examined using a Data Table widget. As shown in Figure b the model fitting correctly identifies the oscillator properties for the carbonyl peak of PET being ν = 1724.48 cm –1 , γ = 19.15 cm –1 , A = ν p = 27918 cm –2 . The fitted parameters align well with literature data. We note that the exact peak parameters, such as position and damping, depend on the type and degree of oxidation (aging) of PET, the average molecular weight, cross-linking, additives, etc. − Additionally, the phase peaks in nano-FTIR tend to be blue-shifted compared to far-field FTIR absorption spectra. − 3. Conclusion We have presented here a novel and unique possibility for s-SNOM data analysis by extending the orange-spectroscopy toolbox with new processing algorithms suited for s-SNOM data analysis and also introduced orange-snom , in the Orange visual programming environment, that is now packaged with other spectroscopy tools in Quasar allowing for a simple installation. We demonstrated how to solve common data processing and interpretation problems with Quasar workflows. Orange-snom also serves as a graphical interface to snompy , a Python module developed for the modeling of s-SNOM data. We have prepared a GitHub repository to show how the underlying Python modules, pySNOM , and snompy , enable those who prefer to write line-scripts or are in need of more complex data analysis by implementing all the above examples in IPython notebooks. In the repository, we also present a standalone application built with Quasar widgets in a customized canvas, enabling the construction of specific, rigid applications in a standalone context. Finally, we emphasize that the real opportunity orange-snom unlocks in Quasar, which we highlighted in the multispectral case study, is that the s-SNOM specific part of any given workflow can be merely the start of a more involved data analysis scheme that can benefit from the power of machine learning methods available in Orange and other previously implemented spectroscopy tools from various Quasar add-ons. Acknowledgments The authors are grateful to J. Mihály for providing the EV sample and to J. Harrison for the PET films. All data, data processing workflows, examples, and source codes are freely available in GitHub repositories. , Quasar can be installed via a single installer for all major platforms available from the project’s website. Alternatively, the orange-spectroscopy and orange-snom packages discussed above can be installed as add-ons to the Orange machine learning suite manually. #. G.N. and M.T. contributed equally to this work. G.N. conducted s-SNOM experiments, data analysis, and contributed to the implementation of all components. M.T. revised and contributed code for the project and integrated it into Quasar. S.R. developed the SNOM model widget, R.dO.F. provided s-SNOM data and contributed to the source code, F.B. conceived and supervised the project and provided funding. All authors participated in project discussions and the writing of the manuscript. G.N. and F.B. acknowledge funding from the UltraSNOM (ANR-23-CE42–0030, DFG Project-ID529998081 “Ultrasensing in the nearfield: polariton enhanced molecular fingerprinting” ), an ANR/DFG binational grant. M.T. acknowledges funding from the Slovenian Research and Innovation Agency (P2–0209), G.N. acknowledges the support by the National Research, Development and Innovation Office of Hungary - NKFIH, project No. OTKA K 143153. The authors declare no competing financial interest. Footnotes 1 Automatic data flow can be disabled in various ways, like deleting or disabling the data connection between widgets, or preventing the automatic processing of the full data set, and can be useful when working with large amounts of data. 2 In all case studies, the File widgets use the same reader called “NeaSPEC (*.nea *.txt *.gsf)” in the drop-down menu, and have to be manually set to reproduce the workflows for the current version of Quasar. References Hillenbrand R., Abate Y., Liu M., Chen X., Basov D. N.. Visible-to-THz near-field nanoscopy. Nat. Rev. Mater. 2025;10:285–310. doi: 10.1038/s41578-024-00761-3. [ DOI ] [ Google Scholar ] Chen X., Hu D., Mescall R., You G., Basov D. N., Dai Q., Liu M.. Modern scattering-type scanning near-field optical microscopy for advanced material research. Adv. Mater. 2019;31:e1804774. doi: 10.1002/adma.201804774. [ DOI ] [ PubMed ] [ Google Scholar ] Bechtel H. A., Muller E. A., Olmon R. L., Martin M. C., Raschke M. B.. Ultrabroadband infrared nanospectroscopic imaging. Proc. Natl. Acad. Sci. U.S.A. 2014;111:7191–7196. doi: 10.1073/pnas.1400502111. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Németh G., Otsuka K., Datz D., Pekker A., Maruyama S., Borondics F., Kamarás K.. Direct Visualization of Ultrastrong Coupling between Luttinger-Liquid Plasmons and Phonon Polaritons. Nano Lett. 2022;22:3495–3502. doi: 10.1021/acs.nanolett.1c04807. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Tsesses S., Ostrovsky E., Cohen K., Gjonaj B., Lindner N. H., Bartal G.. Optical skyrmion lattice in evanescent electromagnetic fields. Science. 2018;361:993–996. doi: 10.1126/science.aau0227. [ DOI ] [ PubMed ] [ Google Scholar ] Sarriugarte P., Schnell M., Chuvilin A., Hillenbrand R.. Polarization-resolved near-field characterization of nanoscale infrared modes in transmission lines fabricated by gallium and helium ion beam milling. ACS Photonics. 2014;1:604–611. doi: 10.1021/ph500081k. [ DOI ] [ Google Scholar ] Takele W. M., Habteyes T. G.. Spatial variations in hydrogen bonding interaction within polymer blends revealed by infrared nanoimaging. Anal. Chem. 2024;96:17049–17053. doi: 10.1021/acs.analchem.4c03436. [ DOI ] [ PubMed ] [ Google Scholar ] Meyns M., Primpke S., Gerdts G.. Library based identification and characterisation of polymers with nano-FTIR and IR-sSNOM imaging. Anal. Methods. 2019;11:5195–5202. doi: 10.1039/C9AY01193E. [ DOI ] [ Google Scholar ] Meyns M., Dietz F., Weinhold C.-S., Züge H., Finckh S., Gerdts G.. Multi-feature round silicon membrane filters enable fractionation and analysis of small micro- and nanoplastics with Raman spectroscopy and nano-FTIR. Anal. Methods. 2023;15:606–617. doi: 10.1039/D2AY01036D. [ DOI ] [ PubMed ] [ Google Scholar ] Johnson C. M., Böhmler M.. Nano-FTIR microscopy and spectroscopy studies of atmospheric corrosion with a spatial resolution of 20nm. Corros. Sci. 2016;108:60–65. doi: 10.1016/j.corsci.2016.02.037. [ DOI ] [ Google Scholar ] Paolone A., Bazzan M., Favaro G., Borondics F., Nemeth G., Capitani F., Swaraj S., Belkhou R., Flammini R., Teillon J., Michel C., Hofman D., Granata M.. Argon release, crystallization, morphological and optical changes of ion-beam sputtered Ta2O5 thin films during thermal treatments. Heliyon. 2025;11:e42009. doi: 10.1016/j.heliyon.2025.e42009. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Shchedrina N., Németh G., Borondics F., Ollier N., Lancry M.. Nano-FTIR spectroscopy reveals SiO2 densification within fs-laser induced nanogratings. Nanoscale Adv. 2024;6:5164–5170. doi: 10.1039/D4NA00409D. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Nishida J., Otomo A., Koitaya T., Shiotari A., Minato T., Iino R., Kumagai T.. Sub-tip-radius near-field interactions in nano-FTIR vibrational spectroscopy on single proteins. Nano Lett. 2024;24:836–843. doi: 10.1021/acs.nanolett.3c03479. [ DOI ] [ PubMed ] [ Google Scholar ] Dauphin Y., Lo C., Németh G., Sandt C., Cuif J.-P.. Structure versus composition: a comparative study across scales. Faraday Discuss. 2025;261:461–483. doi: 10.1039/D5FD00012B. [ DOI ] [ PubMed ] [ Google Scholar ] Kaltenecker K. J., Gölz T., Bau E., Keilmann F.. Infrared-spectroscopic, dynamic near-field microscopy of living cells and nanoparticles in water. Sci. Rep. 2021;11:21860. doi: 10.1038/s41598-021-01425-w. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Kuhail M. A., Farooq S., Hammad R., Bahja M.. Characterizing Visual Programming Approaches for End-User Developers: A Systematic Review. IEEE Access. 2021;9:14181–14202. doi: 10.1109/ACCESS.2021.3051043. [ DOI ] [ Google Scholar ] Nečas D., Klapetek P.. Gwyddion: an open-source software for SPM data analysis. Open Phys. 2012;10:181–188. doi: 10.2478/s11534-011-0096-2. [ DOI ] [ Google Scholar ] Toplak M., Read S. T., Sandt C., Borondics F.. Quasar: Easy machine learning for biospectroscopy. Cells. 2021;10:2300. doi: 10.3390/cells10092300. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Demšar J., Curk T., Erjavec A.. et al. Orange: data mining toolbox in python. J. Mach. Learn. Res. 2013;14:2349–2353. [ Google Scholar ] Toplak M., Birarda G., Read S., Sandt C., Rosendahl S. M., Vaccari L., Demšar J., Borondics F.. Infrared orange: Connecting hyperspectral data with machine learning. Synchrotron Radiat. News. 2017;30:40–45. doi: 10.1080/08940886.2017.1338424. [ DOI ] [ Google Scholar ] Toplak, M. ; Read, S. ; Borondics, G. . Quasars/pySNOM. 2025. 10.5281/zenodo.18034757. [ DOI ] Nemeth, G. ; Borondics, F. . Jupyter notebooks and Example workflow for orange-snom 2025. https://github.com/smis-soleil/orange-snom-paper . Quasar website 2025. https://quasar.codes/ . Spectral Orange tutorials 2025. https://bit.ly/spectral-orange-tutorial . Cvitkovic A., Ocelic N., Hillenbrand R.. Analytical model for quantitative prediction of material contrasts in scattering-type near-field optical microscopy. Opt. Express. 2007;15:8550–8565. doi: 10.1364/OE.15.008550. [ DOI ] [ PubMed ] [ Google Scholar ] Németh G., Bechtel H. A., Borondics F.. Origins and consequences of asymmetric nano-FTIR interferograms. Opt. Express. 2024;32:15280–15294. doi: 10.1364/OE.520793. [ DOI ] [ PubMed ] [ Google Scholar ] Dai S., Fei Z., Ma Q.. et al. Tunable Phonon Polaritons in Atomically Thin van der Waals Crystals of Boron Nitride. Science. 2014;343:1125–1129. doi: 10.1126/science.1246833. [ DOI ] [ PubMed ] [ Google Scholar ] Li P., Dolado I., Alfaro-Mozaz F. J., Nikitin A. Y., Casanova F., Hueso L. E., Vélez S., Hillenbrand R.. Optical Nanoimaging of Hyperbolic Surface Polaritons at the Edges of van der Waals Materials. Nano Lett. 2017;17:228–235. doi: 10.1021/acs.nanolett.6b03920. [ DOI ] [ PubMed ] [ Google Scholar ] Szentirmai V., Wacha A., Németh C., Kitka D., Rácz A., Héberger K., Mihály J., Varga Z.. Reagent-free total protein quantification of intact extracellular vesicles by attenuated total reflection Fourier transform infrared (ATR-FTIR) spectroscopy. Anal. Bioanal. Chem. 2020;412:4619–4628. doi: 10.1007/s00216-020-02711-8. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Niehues I., Mester L., Vicentini E., Wigger D., Schnell M., Hillenbrand R.. Identification of weak molecular absorption in single-wavelength s-SNOM images. Opt. Express. 2023;31:7012–7022. doi: 10.1364/OE.483804. [ DOI ] [ PubMed ] [ Google Scholar ] Mester L., Govyadinov A. A., Hillenbrand R.. High-fidelity nano-FTIR spectroscopy by on-pixel normalization of signal harmonics. Nanophotonics. 2022;11(2):377–390. doi: 10.1515/nanoph-2021-0565. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Hinton, G. E. ; Roweis, S. . Stochastic Neighbor Embedding. Advances in Neural Information Processing Systems. 2002. Chen X., Xu S., Shabani S., Zhao Y., Fu M., Millis A. J., Fogler M. M., Pasupathy A. N., Liu M., Basov D. N.. Machine Learning for Optical Scanning Probe Nanoscopy. Adv. Mater. 2023;35:2109171. doi: 10.1002/adma.202109171. [ DOI ] [ PubMed ] [ Google Scholar ] Chen X., Yao Z., Sun Z., Stanciu S. G., Basov D. N., Hillenbrand R., Liu M.. Rapid simulations of hyperspectral near-field images of three-dimensional heterogeneous surfaces - part II. Opt. Express. 2022;30:11228–11242. doi: 10.1364/OE.452949. [ DOI ] [ PubMed ] [ Google Scholar ] Hauer B., Engelhardt A. P., Taubner T.. Quasi-analytical model for scattering infrared near-field microscopy on layered systems. Opt. Express. 2012;20:13173–13188. doi: 10.1364/OE.20.013173. [ DOI ] [ PubMed ] [ Google Scholar ] Datz D., Németh G., Rátkai L., Pekker A., Kamarás K.. Generalized Mie theory for full-wave numerical calculations of scattering near-field optical microscopy with arbitrary geometries. Phys. Status Solidi RRL. 2023;18(4):2300370. doi: 10.1002/pssr.202300370. [ DOI ] [ Google Scholar ] Vincent, T. ; Liu, X. ; Johnson, D. ; Mester, L. ; Huang, N. ; Kazakova, O. ; Hillenbrand, R. ; Boland, J. L. . Snompy: A package for modelling scattering-type scanning near-field optical microscopy. 2024, arXiv:2405.20948. arXiv.org e-Print archive. https://arxiv.org/abs/2405.20948 . Smith B.. Infrared Spectroscopy of Polymers, VIII: Polyesters and the Rule of Three. Spectroscopy. 2022;37(10):25–28. doi: 10.56530/spectroscopy.ta9383e3. [ DOI ] [ Google Scholar ] Rostampour S., Cook R., Jhang S.-S., Li Y., Fan C., Sung L.-P.. Changes in the chemical composition of polyethylene terephthalate under UV radiation in various environmental conditions. Polymers. 2024;16:2249. doi: 10.3390/polym16162249. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Miyake A.. The infrared spectrum of polyethylene terephthalate. I The effect of crystallization. J. Polym. Sci. 1959;38:479–495. doi: 10.1002/pol.1959.1203813419. [ DOI ] [ Google Scholar ] Andrady A. L.. The plastic in microplastics: A review. Mar. Pollut. Bull. 2017;119:12–22. doi: 10.1016/j.marpolbul.2017.01.082. [ DOI ] [ PubMed ] [ Google Scholar ] Robledo I. P., Maciel-Escudero C., Schnell M., Mester L., Aizpurua J., Hillenbrand R.. Theoretical Description of Infrared Near-Field Spectroscopy of In- and Out-of-Plane Molecular Vibrations in Thin Layers. ACS Photonics. 2025;12:3782–3793. doi: 10.1021/acsphotonics.5c00798. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Mastel S., Govyadinov A. A., de Oliveira T. V. A. G., Amenabar I., Hillenbrand R.. Nanoscale-resolved chemical identification of thin organic films using infrared near-field spectroscopy and standard Fourier transform infrared references. Appl. Phys. Lett. 2015;106:023113. doi: 10.1063/1.4905507. [ DOI ] [ Google Scholar ] Mester L., Govyadinov A. A., Chen S., Goikoetxea M., Hillenbrand R.. Subsurface chemical nanoidentification by nano-FTIR spectroscopy. Nat. Commun. 2020;11:3359. doi: 10.1038/s41467-020-17034-6. [ DOI ] [ PMC free article ] [ PubMed ] [ Google Scholar ] Quasars GitHub Organization 2025, https://github.com/Quasars . Orange Website 2025, https://orangedatamining.com/ . Associated Data This section collects any data citations, data availability statements, or supplementary materials included in this article. Data Availability Statement All data, data processing workflows, examples, and source codes are freely available in GitHub repositories. , Quasar can be installed via a single installer for all major platforms available from the project’s website. Alternatively, the orange-spectroscopy and orange-snom packages discussed above can be installed as add-ons to the Orange machine learning suite manually. Articles from ACS Omega are provided here courtesy of American Chemical Society ACTIONS View on publisher site PDF (6.6 MB) Cite Collections Permalink RESOURCES Similar articles Cited by other articles Links to NCBI Databases Follow NCBI NCBI on X (formerly known as Twitter) NCBI on Facebook NCBI on LinkedIn NCBI on GitHub NCBI RSS feed Connect with NLM NLM on X (formerly known as Twitter) NLM on Facebook NLM on YouTube National Library of Medicine 8600 Rockville Pike Bethesda, MD 20894 Web Policies FOIA HHS Vulnerability Disclosure Help Accessibility Careers NLM NIH HHS USA.gov Back to Top
Related documents
- The Dark Energy Survey: Cosmology Results with ∼1500 New High-redshift Type Ia Supernovae Using the Full 5 yr Data Set#1165858
- $f(T,\mathcal{L}_m)$ Cosmology Embedded in a Viscous Barotropic Fluid#986942
- The Cluster Completeness Correction Calculator (c-4): a neural-network framework and pilot application to the LEGUS survey of NGC 628.#358231
- Estimation of the First-Order Autoregressive Model with Contaminated Exponential White Noise#274318
- A Systematic Trend in the Observed vs. Predicted Radii of Transiting Brown Dwarfs#684557
Retrieved via Conceptio: every document is proof-bundled with source, license, and retrieval metadata.
Read the Docs → · View CLI source on GitHub · Conceptio Open Knowledge Archive