
Conversational LLM-Based Decision Support for Defect Classification in AFM Images
Author(s) -
Angona Biswas,
Jaydeep Rade,
Nabila Masud,
Md Hasibul Hasan Hasib,
Aditya Balu,
Juntao Zhang,
Soumik Sarkar,
Adarsh Krishnamurthy,
Juan Ren,
Anwesha Sarkar
Publication year - 2025
Publication title -
ieee open journal of instrumentation and measurement
Language(s) - English
Resource type - Magazines
eISSN - 2768-7236
DOI - 10.1109/ojim.2025.3592284
Subject(s) - components, circuits, devices and systems
Atomic Force Microscopy (AFM) has emerged as a powerful tool for nanoscale imaging and quantitative characterization of organic (e.g., live cells, proteins, DNA, lipid bilayers) and inorganic (e.g., silicon wafers, polymers) specimens. However, image artifacts in AFM height and peak force error images directly affect the precision of nanomechanical measurements. Experimentalists face considerable challenges in obtaining high-quality AFM images due to the requirement of specialized expertise and constant manual monitoring. Another challenge is the lack of high-quality AFM datasets to train machine learning models for automated defect detection. In this work, we propose a two-step AI framework that combines a vision-based deep learning (DL) model for classifying AFM image defects with a Large Language Models (LLMs)-based conversational assistant that provides real-time corrective guidance in natural language, making it particularly valuable for non-AFM experts aiming to obtain high-quality images. We curated an annotated AFM defect dataset spanning organic and inorganic samples to train the defect detection model. Our defect classification model achieves 91.43% overall accuracy, with a recall of 93% for tip contamination and 60% not-tracking defects. We further develop an intuitive user interface that enables seamless interaction with the DL model and integrates an LLM-based guidance feature to support users in understanding defects and improving future experiments. We then evaluate the performance of multiple state-of-the-art LLMs on AFM-related queries, offering users flexibility in LLM selection based on their specific needs. LLM evaluations and the benchmark questions are available at: https://github.com/idealab-isu/AFM-LLM-Defect-Guidance
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom