Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Microbiol.

Sec. Antimicrobials, Resistance and Chemotherapy

This article is part of the Research TopicNext-Generation Technologies for Antibiotic Susceptibility TestingView all 11 articles

Basecalling-free resistance gene identification using a hybrid transformer in raw nanopore signals

Provisionally accepted
  • 1Department of Biomedical Engineering, Brno University of Technology, Brno University of Technology, Brno, Czechia
  • 2Division of Clinical Microbiology and Immunology, Department of Laboratory Medicine, University Hospital Brno, Brno, Czechia
  • 3Division of Clinical Microbiology and Immunology, Department of Laboratory Medicine, Faculty of Medicine, Masaryk University, Brno, Czechia

The final, formatted version of the article will be published soon.

Nanopore sequencing enables real-time access to raw signal data, which brings new possibilities for rapid genomic diagnostics. However, current workflows still primarily rely on basecalling, a computationally intensive step that slows subsequent analysis and limits real-time use. In addition, most current approaches that work with raw signals focus on simple read-level classification tasks and are not designed to detect and localize specific genes, particularly complex genomic features such as antibiotic resistance genes (ARGs). Here, we show that the hybrid convolutional-transformer model, NanoResFormer, can detect clinically relevant ARGs directly from raw nanopore signals without basecalling. The model captures both local and long-range signal patterns and employs a floating-window strategy to process inputs of varying lengths efficiently. In proof-of-concept experiments, NanoResFormer achieved a sensitivity of 92.6% and a precision of over 93%, with short latency, enabling real-time resistome profiling already during sequencing. The proposed approach, therefore, provides rapid access to crucial information, accelerating decision-making in clinical diagnostics and pathogen surveillance.

Keywords: antimicrobial resistance, Convolutional encoder, floating window approach, Klebsiella pneumoniae, Real-time detection, Self-attention model, Squiggle

Received: 18 Nov 2025; Accepted: 21 Jan 2026.

Copyright: © 2026 Jakubicek, Vorochta, Jakubickova, Bezdicek, Lengerova and Vitkova. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

* Correspondence: Marketa Jakubickova

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.