Ruibin Mao
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Ruibin Mao has a total of 88 co-authors. Here are the top co-authors by number of shared publications:
- Can Li
Department of Electrical and Electronic Engineering, The University of Hong Kong, Hong Kong SAR, China
17 shared publications - Bo Wen
Department of Electrical and Electronic Engineering, The University of Hong Kong, Hong Kong, China
8 shared publications - Mingrui Jiang
Department of Electrical and Electronic Engineering, The University of Hong Kong, Hong Kong SAR, China
6 shared publications - Zhicheng Xu
The University of Hong Kong, Hong Kong, Hong Kong
5 shared publications Zhiyuan Du
Department of Electrical and Electronic Engineering, The University of Hong Kong, Hong Kong, China
5 shared publications- Xunzhao Yin
College of Information Science and Electronic Engineering, Zhejiang University
4 shared publications
Latest Publications
- 12 June 2026
- Published by Springer Nature in Nature Electronics
- Vol. 9 (7) , 811-824
Fault-free analogue computing with imperfect hardware
- 12 June 2026
- Published by Springer Nature in Nature Electronics
- Vol. 9 (7) , 811-824
Fault-free analogue computing with imperfect hardware
- Open Access
- 24 April 2026
- Published by Springer Nature in Nature Communications
- Vol. 17
Trustworthy tree-based machine learning by MoS2 flash-based analog content-addressable memory with inherent soft boundaries
The rapid advancement of artificial intelligence has raised concerns regarding its trustworthiness, especially in terms of interpretability and robustness. Tree-based models such as Random Forest excel in interpretability and accuracy for tabular data, but scaling them remains computationally expensive due to poor data locality and high data dependence. Previous efforts to accelerate these models with analog content-addressable memory (CAM) have struggled because difficult-to-implement sharp decision boundaries are highly susceptible to device variations, leading to poor hardware performance and vulnerability to adversarial attacks. Here, we present a hardware-software co-design approach using MoS2 flash-based analog CAM with inherent soft boundaries, enabling efficient inference with soft tree-based models. Our fabricated analog CAM arrays achieve 96% accuracy on the Wisconsin Diagnostic Breast Cancer dataset, and our experimentally calibrated model shows only a 0.6% accuracy drop on MNIST under 10% device threshold variation, compared with 45.3% for traditional decision trees.
- 24 April 2026
- Published by Springer Nature in Nature Communications
- Vol. 17
Open AccessTrustworthy tree-based machine learning by MoS2 flash-based analog content-addressable memory with inherent soft boundaries
The rapid advancement of artificial intelligence has raised concerns regarding its trustworthiness, especially in terms of interpretability and robustness. Tree-based models such as Random Forest excel in interpretability and accuracy for tabular data, but scaling them remains computationally expensive due to poor data locality and high data dependence. Previous efforts to accelerate these models with analog content-addressable memory (CAM) have struggled because difficult-to-implement sharp decision boundaries are highly susceptible to device variations, leading to poor hardware performance and vulnerability to adversarial attacks. Here, we present a hardware-software co-design approach using MoS2 flash-based analog CAM with inherent soft boundaries, enabling efficient inference with soft tree-based models. Our fabricated analog CAM arrays achieve 96% accuracy on the Wisconsin Diagnostic Breast Cancer dataset, and our experimentally calibrated model shows only a 0.6% accuracy drop on MNIST under 10% device threshold variation, compared with 45.3% for traditional decision trees.
- 15 December 2025
- Published by Springer Nature in Nature Nanotechnology
- Vol. 21 (2) , 198-206
Sb-contacted MoS2 flash memory for analogue in-memory searches
The explosion of artificial intelligence and edge devices has exposed a critical bottleneck in traditional hardware: the slow data transfer between memory and processing. Content-addressable memories offer a promising solution by processing information directly within the memory, but existing implementations using static random-access memory and, more recently, those using emerging non-volatile memories are constrained by the performance of silicon transistors. Here we introduce an analogue content-addressable memory utilizing atomically thin two-dimensional MoS2 flash memories with semimetal antimony contacts. Our device achieves a high read-out current (60 μA μm−1) and large ON/OFF ratios (>109) in two-dimensional flash memories. These breakthroughs have led to very low energy consumption (under 0.1 fJ per search per cell) and latency (36 ps) during analogue in-memory search operations within our 8 × 16 analogue content-addressable memory array, featuring 256 MoS2 flash memory devices. We have also successfully demonstrated analogue Hamming distance computing for k-nearest neighbour classification, showcasing high accuracy, high energy efficiency and low latency for machine learning applications. This research highlights the transformative potential of two-dimensional materials in overcoming current hardware limitations, enabling more efficient and scalable computing solutions in intelligent edge devices.
- 15 December 2025
- Published by Springer Nature in Nature Nanotechnology
- Vol. 21 (2) , 198-206
Sb-contacted MoS2 flash memory for analogue in-memory searches
The explosion of artificial intelligence and edge devices has exposed a critical bottleneck in traditional hardware: the slow data transfer between memory and processing. Content-addressable memories offer a promising solution by processing information directly within the memory, but existing implementations using static random-access memory and, more recently, those using emerging non-volatile memories are constrained by the performance of silicon transistors. Here we introduce an analogue content-addressable memory utilizing atomically thin two-dimensional MoS2 flash memories with semimetal antimony contacts. Our device achieves a high read-out current (60 μA μm−1) and large ON/OFF ratios (>109) in two-dimensional flash memories. These breakthroughs have led to very low energy consumption (under 0.1 fJ per search per cell) and latency (36 ps) during analogue in-memory search operations within our 8 × 16 analogue content-addressable memory array, featuring 256 MoS2 flash memory devices. We have also successfully demonstrated analogue Hamming distance computing for k-nearest neighbour classification, showcasing high accuracy, high energy efficiency and low latency for machine learning applications. This research highlights the transformative potential of two-dimensional materials in overcoming current hardware limitations, enabling more efficient and scalable computing solutions in intelligent edge devices.
- Open Access
- 6 November 2025
- Published by Springer Nature in Nature Communications
- Vol. 16 (1) , 1-11
Memristor-based adaptive analog-to-digital conversion for efficient and accurate compute-in-memory
Compute-in-memory technology offers promising solutions for neural network acceleration but its potential is severely limited by inflexible and resource-intensive analog-to-digital converters. Here, we present a memristor-based analog-to-digital converter featuring adaptive quantization for diverse output distributions. Our design employs analog content-addressable memory cells with programmable overlapped boundaries to establish optimized quantization thresholds, demonstrating excellent integral and differential non-linearities. Extensive experiments validate the robustness of our approach by achieving 89.55% accuracy on CIFAR-10 (VGG8) at 5-bit adaptive quantized precision and maintaining competitive performance on ImageNet (ResNet18) through a proposed super-resolution strategy under experimental memristor variations. Compared to state-of-the-art designs, our converter achieves a 15.1× improvement in energy efficiency and a 12.9× reduction in area. Furthermore, integrating our converter into CIM systems reduces the energy and area overhead by up to 57.2% and 30.7%, respectively. This work establishes a paradigm for efficient and accurate signal quantization in practical compute-in-memory systems.
- 6 November 2025
- Published by Springer Nature in Nature Communications
- Vol. 16 (1) , 1-11
Open AccessMemristor-based adaptive analog-to-digital conversion for efficient and accurate compute-in-memory
Compute-in-memory technology offers promising solutions for neural network acceleration but its potential is severely limited by inflexible and resource-intensive analog-to-digital converters. Here, we present a memristor-based analog-to-digital converter featuring adaptive quantization for diverse output distributions. Our design employs analog content-addressable memory cells with programmable overlapped boundaries to establish optimized quantization thresholds, demonstrating excellent integral and differential non-linearities. Extensive experiments validate the robustness of our approach by achieving 89.55% accuracy on CIFAR-10 (VGG8) at 5-bit adaptive quantized precision and maintaining competitive performance on ImageNet (ResNet18) through a proposed super-resolution strategy under experimental memristor variations. Compared to state-of-the-art designs, our converter achieves a 15.1× improvement in energy efficiency and a 12.9× reduction in area. Furthermore, integrating our converter into CIM systems reduces the energy and area overhead by up to 57.2% and 30.7%, respectively. This work establishes a paradigm for efficient and accurate signal quantization in practical compute-in-memory systems.
- 12 September 2025
- Published by Springer Nature in Nature Computational Science
- Vol. 5 (10) , 940-951
Real-time raw signal genomic analysis using fully integrated memristor hardware
Advances in third-generation sequencing have enabled portable and real-time genomic sequencing, but real-time data processing remains a bottleneck, hampering on-site genomic analysis. These technologies generate noisy analog signals that traditionally require basecalling and read mapping, both demanding costly data movement on von Neumann hardware. Here, to overcome this, we present a memristor-based hardware–software codesign that processes raw sequencer signals directly in analog memory, combining the two separated steps. By exploiting intrinsic device noise for locality-sensitive hashing and implementing parallel approximate searches in content-addressable memory, we experimentally showcase on-site applications, including infectious disease detection and metagenomic classification on a fully integrated memristor chip. Our experimentally validated analysis confirms the effectiveness of this approach on real-world tasks, achieving a 97.15% F1 score in virus raw signal mapping, with 51× speed-up and 477× energy saving over an application-specific integrated circuit. These results demonstrate that in-memory computing hardware provides a viable solution for integration with portable sequencers, enabling real-time and on-site genomic analysis.
- 12 September 2025
- Published by Springer Nature in Nature Computational Science
- Vol. 5 (10) , 940-951
Real-time raw signal genomic analysis using fully integrated memristor hardware
Advances in third-generation sequencing have enabled portable and real-time genomic sequencing, but real-time data processing remains a bottleneck, hampering on-site genomic analysis. These technologies generate noisy analog signals that traditionally require basecalling and read mapping, both demanding costly data movement on von Neumann hardware. Here, to overcome this, we present a memristor-based hardware–software codesign that processes raw sequencer signals directly in analog memory, combining the two separated steps. By exploiting intrinsic device noise for locality-sensitive hashing and implementing parallel approximate searches in content-addressable memory, we experimentally showcase on-site applications, including infectious disease detection and metagenomic classification on a fully integrated memristor chip. Our experimentally validated analysis confirms the effectiveness of this approach on real-world tasks, achieving a 97.15% F1 score in virus raw signal mapping, with 51× speed-up and 477× energy saving over an application-specific integrated circuit. These results demonstrate that in-memory computing hardware provides a viable solution for integration with portable sequencers, enabling real-time and on-site genomic analysis.
- Open Access
- 4 September 2025
- Published by Springer Nature in Research Square
Fully Integrated Memristive Spiking Neural Network with Analog Neurons for High-Speed Event-Based Data Processing
The demand for edge artificial intelligence to process event-based, complex data calls for hardware beyond conventional digital, von-Neumann architectures. Neuromorphic computing, using spiking neural networks (SNNs) with emerging memristors, is a promising solution, but existing systems often discard temporal information, demonstrate non-competitive accuracy, or rely on neuron designs with large capacitors that limit the scalability and processing speed. Here we experimentally demonstrate a fully integrated memristive SNN with a 128×24 memristor array integrated on a CMOS chip and custom-designed analog neurons, achieving high-speed, energy-efficient event-driven processing of accelerated spatiotemporal spike signals with high computational fidelity. This is achieved through a proportional time-scaling property of the analog neurons, which allows them to use only compact on-chip capacitors and train directly on the spatiotemporal data without special encoding by backpropagation through surrogate gradient, thus overcoming the speed, scalability and accuracy limitations of previous designs. We experimentally validated our hardware using the DVS128 Gesture dataset, accelerating each sample 50,000-fold to a 30 µs duration. The system achieves an experimental accuracy of 93.06% with a measured energy efficiency of 101.05 TSOPS/W. We project significant future efficiency gains by leveraging picosecond-width spikes and advanced fabrication nodes. By decoupling the hardware’s operational timescale from the data’s natural timescale, this work establishes a viable pathway for developing neuromorphic processors capable of high-throughput analysis, critical for rapid-response edge computing applications like high-speed analysis of buffered sensor data or ultra-fast in-sensor machine vision.
- 4 September 2025
- Published by Springer Nature in Research Square
Open AccessFully Integrated Memristive Spiking Neural Network with Analog Neurons for High-Speed Event-Based Data Processing
The demand for edge artificial intelligence to process event-based, complex data calls for hardware beyond conventional digital, von-Neumann architectures. Neuromorphic computing, using spiking neural networks (SNNs) with emerging memristors, is a promising solution, but existing systems often discard temporal information, demonstrate non-competitive accuracy, or rely on neuron designs with large capacitors that limit the scalability and processing speed. Here we experimentally demonstrate a fully integrated memristive SNN with a 128×24 memristor array integrated on a CMOS chip and custom-designed analog neurons, achieving high-speed, energy-efficient event-driven processing of accelerated spatiotemporal spike signals with high computational fidelity. This is achieved through a proportional time-scaling property of the analog neurons, which allows them to use only compact on-chip capacitors and train directly on the spatiotemporal data without special encoding by backpropagation through surrogate gradient, thus overcoming the speed, scalability and accuracy limitations of previous designs. We experimentally validated our hardware using the DVS128 Gesture dataset, accelerating each sample 50,000-fold to a 30 µs duration. The system achieves an experimental accuracy of 93.06% with a measured energy efficiency of 101.05 TSOPS/W. We project significant future efficiency gains by leveraging picosecond-width spikes and advanced fabrication nodes. By decoupling the hardware’s operational timescale from the data’s natural timescale, this work establishes a viable pathway for developing neuromorphic processors capable of high-throughput analysis, critical for rapid-response edge computing applications like high-speed analysis of buffered sensor data or ultra-fast in-sensor machine vision.
- 3 September 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. 45 (4) , 1663-1676
EvaCAM: A Circuit-Level Evaluation Tool for General Content Addressable Memories
Content addressable memories (CAMs) are special-purpose in-memory computing (IMC) units that support parallel searches directly in memory. There is growing interest in CAMs for data-intensive applications such as machine learning, data mining, and bioinformatics, which has led to a rapidly growing CAM design space. CAM cells can be implemented exclusively by CMOS or with various nonvolatile memory (NVM) devices. In addition to traditional binary and ternary CAMs (BCAMs and TCAMs), analog CAM (ACAM) and multibit CAM (MCAM) designs have recently been introduced, which could further improve density and also support unique in-memory distance functions. Furthermore, aside from the widely used exact match function, CAM-based approximate match functions, such as threshold match and best match, have been proposed to further extend the utility of CAMs to new application spaces. As the CAM design space is large, evaluating different CAM design options for a given application is both crucial and challenging. This article presents EvaCAM, a circuit-level modeling and evaluation tool for CAMs. EvaCAM supports TCAM, ACAM, and MCAM designs implemented in either CMOS or NVMs, for both exact and approximate match functions. It also allows for the exploration of different CAM designs under various optimization targets. EvaCAM has been validated against measured data from fabricated chips and detailed SPICE simulations. A comprehensive design space exploration for CAMs is provided to illustrate the impact of various design decisions and to demonstrate the use cases of EvaCAM.
- 3 September 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems
- Vol. 45 (4) , 1663-1676
EvaCAM: A Circuit-Level Evaluation Tool for General Content Addressable Memories
Content addressable memories (CAMs) are special-purpose in-memory computing (IMC) units that support parallel searches directly in memory. There is growing interest in CAMs for data-intensive applications such as machine learning, data mining, and bioinformatics, which has led to a rapidly growing CAM design space. CAM cells can be implemented exclusively by CMOS or with various nonvolatile memory (NVM) devices. In addition to traditional binary and ternary CAMs (BCAMs and TCAMs), analog CAM (ACAM) and multibit CAM (MCAM) designs have recently been introduced, which could further improve density and also support unique in-memory distance functions. Furthermore, aside from the widely used exact match function, CAM-based approximate match functions, such as threshold match and best match, have been proposed to further extend the utility of CAMs to new application spaces. As the CAM design space is large, evaluating different CAM design options for a given application is both crucial and challenging. This article presents EvaCAM, a circuit-level modeling and evaluation tool for CAMs. EvaCAM supports TCAM, ACAM, and MCAM designs implemented in either CMOS or NVMs, for both exact and approximate match functions. It also allows for the exploration of different CAM designs under various optimization targets. EvaCAM has been validated against measured data from fabricated chips and detailed SPICE simulations. A comprehensive design space exploration for CAMs is provided to illustrate the impact of various design decisions and to demonstrate the use cases of EvaCAM.
- Open Access
- 12 June 2025
- Published by Springer Nature in Research Square
Trustworthy Tree-based Machine Learning by MoS2 Flash-based Analog CAM with Inherent Soft Boundaries
The rapid advancement of artificial intelligence has raised concerns regarding its trustworthiness, especially in terms of interpretability and robustness. Tree-based models like Random Forest and XGBoost excel in interpretability and accuracy for tabular data, but scaling them remains computationally expensive due to poor data locality and high data dependence. Previous efforts to accelerate these models with analog content addressable memory (CAM) have struggled, due to the fact that the difficult-to-implement sharp decision boundaries are highly susceptible to device variations, which leads to poor hardware performance and vulnerability to adversarial attacks. This work presents a novel hardware-software co-design approach using MoS 2 Flash-based analog CAM with inherent soft boundaries, enabling efficient inference with soft tree-based models. Our soft tree model inference experiments on MoS 2 analog CAM arrays show this method achieves exceptional robustness against device variation and adversarial attacks while achieving state-of-the-art accuracy. Specifically, our fabricated analog CAM arrays achieve 97% accuracy on the Iris dataset, while our experimentally calibrated model shows only a 0.6% accuracy drop on the MNIST dataset under 10% device threshold variation, compared to a 45.3% drop for traditional decision trees. This work paves the way for specialized hardware that enhances AI’s trustworthiness and efficiency.
- 12 June 2025
- Published by Springer Nature in Research Square
Open AccessTrustworthy Tree-based Machine Learning by MoS2 Flash-based Analog CAM with Inherent Soft Boundaries
The rapid advancement of artificial intelligence has raised concerns regarding its trustworthiness, especially in terms of interpretability and robustness. Tree-based models like Random Forest and XGBoost excel in interpretability and accuracy for tabular data, but scaling them remains computationally expensive due to poor data locality and high data dependence. Previous efforts to accelerate these models with analog content addressable memory (CAM) have struggled, due to the fact that the difficult-to-implement sharp decision boundaries are highly susceptible to device variations, which leads to poor hardware performance and vulnerability to adversarial attacks. This work presents a novel hardware-software co-design approach using MoS 2 Flash-based analog CAM with inherent soft boundaries, enabling efficient inference with soft tree-based models. Our soft tree model inference experiments on MoS 2 analog CAM arrays show this method achieves exceptional robustness against device variation and adversarial attacks while achieving state-of-the-art accuracy. Specifically, our fabricated analog CAM arrays achieve 97% accuracy on the Iris dataset, while our experimentally calibrated model shows only a 0.6% accuracy drop on the MNIST dataset under 10% device threshold variation, compared to a 45.3% drop for traditional decision trees. This work paves the way for specialized hardware that enhances AI’s trustworthiness and efficiency.
- 4 June 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 74 (9) , 2923-2935
High-Performance In-Memory Bayesian Inference With Multi-Bit Ferroelectric FET
Conventional neural network-based machine learning algorithms often encounter difficulties in data-limited scenarios or where interpretability is critical. Conversely, Bayesian inference-based models excel with reliable uncertainty estimates and explainable predictions. Recently, many in-memory computing (IMC) architectures achieve exceptional computing capacity and efficiency for neural network tasks leveraging emerging non-volatile memory (NVM) technologies. However, their application in Bayesian inference remains limited because the operations in Bayesian inference differ substantially from those in neural networks. In this article, we introduce a compact in-memory Bayesian inference engine with high efficiency and performance utilizing a multi-bit ferroelectric field-effect transistor (FeFET). This design encodes a Bayesian model within a compact FeFET-based crossbar by mapping quantized probabilities to discrete FeFET states. Consequently, the crossbar’s outputs naturally represent the output posteriors of the Bayesian model. Our design facilitates efficient Bayesian inference, accommodating various input types and probability precisions, without additional calculation circuitry. As the first FeFET-based in-memory Bayesian inference engine, our design demonstrates a notable storage density of 26.32 Mb/mm2 and a computing efficiency of 581.40 TOPS/W in a representative Bayesian classification task, indicating a 10.7×/43.4× compactness/efficiency improvement compared to the state-of-the-art alternative. Utilizing the proposed Bayesian inference engine, we develop a feature selection system that efficiently addresses a representative NP-hard optimization problem, showcasing our design’s capability and potential to enhance various Bayesian inference-based applications. Test results suggest that our design identifies the essential features, enhancing the model’s performance while reducing its complexity, surpassing the latest implementation in operation speed and algorithm efficiency by 2.9×/2.0×, respectively.
- 4 June 2025
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Computers
- Vol. 74 (9) , 2923-2935
High-Performance In-Memory Bayesian Inference With Multi-Bit Ferroelectric FET
Conventional neural network-based machine learning algorithms often encounter difficulties in data-limited scenarios or where interpretability is critical. Conversely, Bayesian inference-based models excel with reliable uncertainty estimates and explainable predictions. Recently, many in-memory computing (IMC) architectures achieve exceptional computing capacity and efficiency for neural network tasks leveraging emerging non-volatile memory (NVM) technologies. However, their application in Bayesian inference remains limited because the operations in Bayesian inference differ substantially from those in neural networks. In this article, we introduce a compact in-memory Bayesian inference engine with high efficiency and performance utilizing a multi-bit ferroelectric field-effect transistor (FeFET). This design encodes a Bayesian model within a compact FeFET-based crossbar by mapping quantized probabilities to discrete FeFET states. Consequently, the crossbar’s outputs naturally represent the output posteriors of the Bayesian model. Our design facilitates efficient Bayesian inference, accommodating various input types and probability precisions, without additional calculation circuitry. As the first FeFET-based in-memory Bayesian inference engine, our design demonstrates a notable storage density of 26.32 Mb/mm2 and a computing efficiency of 581.40 TOPS/W in a representative Bayesian classification task, indicating a 10.7×/43.4× compactness/efficiency improvement compared to the state-of-the-art alternative. Utilizing the proposed Bayesian inference engine, we develop a feature selection system that efficiently addresses a representative NP-hard optimization problem, showcasing our design’s capability and potential to enhance various Bayesian inference-based applications. Test results suggest that our design identifies the essential features, enhancing the model’s performance while reducing its complexity, surpassing the latest implementation in operation speed and algorithm efficiency by 2.9×/2.0×, respectively.
- Open Access
- 25 April 2025
- Published by Springer Nature in Research Square
Real-time raw signal genomic analysis using fully integrated memristor hardware
Advances in third-generation sequencing have enabled portable and real-time genomic sequencing, but real-time data processing remains a bottleneck, hampering on-site genomic analysis due to prohibitive time and energy costs. These technologies generate a massive amount of noisy analog signals that traditionally require basecalling and digital mapping, both demanding frequent and costly data movement on von Neumann hardware. To overcome these challenges, we present a memristor-based hardware-software co-design that processes raw sequencer signals directly in analog memory, effectively combining the separated basecalling and read mapping steps. Here we demonstrate, for the first time, end-to-end memristor-based genomic analysis in a fully integrated memristor chip. By exploiting intrinsic device noise for locality-sensitive hashing and implementing parallel approximate searches in content-addressable memory, we experimentally showcase on-site applications including infectious disease detection and metagenomic classification. Our experimentally-validated analysis confirms the effectiveness of this approach on real-world tasks, achieving a state-of-the-art 97.15% F1 score in virus raw signal mapping, with 51× speed up and 477× energy saving compared to implementation on a state-of-the-art ASIC. These results demonstrate that memristor-based in-memory computing provides a viable solution for integration with portable sequencers, enabling truly real-time on-site genomic analysis for applications ranging from pathogen surveillance to microbial community profiling.
- 25 April 2025
- Published by Springer Nature in Research Square
Open AccessReal-time raw signal genomic analysis using fully integrated memristor hardware
Advances in third-generation sequencing have enabled portable and real-time genomic sequencing, but real-time data processing remains a bottleneck, hampering on-site genomic analysis due to prohibitive time and energy costs. These technologies generate a massive amount of noisy analog signals that traditionally require basecalling and digital mapping, both demanding frequent and costly data movement on von Neumann hardware. To overcome these challenges, we present a memristor-based hardware-software co-design that processes raw sequencer signals directly in analog memory, effectively combining the separated basecalling and read mapping steps. Here we demonstrate, for the first time, end-to-end memristor-based genomic analysis in a fully integrated memristor chip. By exploiting intrinsic device noise for locality-sensitive hashing and implementing parallel approximate searches in content-addressable memory, we experimentally showcase on-site applications including infectious disease detection and metagenomic classification. Our experimentally-validated analysis confirms the effectiveness of this approach on real-world tasks, achieving a state-of-the-art 97.15% F1 score in virus raw signal mapping, with 51× speed up and 477× energy saving compared to implementation on a state-of-the-art ASIC. These results demonstrate that memristor-based in-memory computing provides a viable solution for integration with portable sequencers, enabling truly real-time on-site genomic analysis for applications ranging from pathogen surveillance to microbial community profiling.