Abstract
Computational spectrometers, which rely on reconstruction algorithms to decode spectral information from raw sensor data, are of potential use in portable, in-field spectrometry. However, research on such systems primarily focuses on the front-end encoding devices, and back-end decoding hardware remains limited by severe overheads. Here we report an in situ computational spectrometer implemented on a fully integrated 576-Kb memristor chip. With systematic robustness analysis, we develop memristive regularization and filter embedding strategies to overcome the extreme sensitivity of ill-posed spectral reconstruction, achieving software-equivalent accuracy. System-level benchmarking shows that our hardware takes only 125.0 ns to reconstruct one spectrum consuming 6.7 nJ of energy, which is 26.5 times faster and 162.7 times more energy-efficient than state-of-the-art computational spectrometers. Our work illustrates the potential of memristor-chip-based computational spectrometry and provides approaches for efficiently implementing signal processing algorithms on memristor chips.
This is a preview of subscription content, access via your institution
Access options
Access Nature and 54 other Nature Portfolio journals
Get Nature+, our best-value online-access subscription
$32.99 / 30 days
cancel any time
Subscribe to this journal
Receive 12 digital issues and online access to articles
$119.00 per year
only $9.92 per issue
Buy this article
- Purchase on SpringerLink
- Instant access to the full article PDF.
USD 39.95
Prices may be subject to local taxes which are calculated during checkout






Similar content being viewed by others
Data availability
Source data for Figs. 3–5 are available via GitHub at https://github.com/Tsinghua-LEMON-Lab/Memristor-computational-spectrometer. Additional data are available from the corresponding authors upon reasonable request.
Code availability
Source code is available via GitHub at https://github.com/Tsinghua-LEMON-Lab/Memristor-computational-spectrometer. Additional codes of this study are available from the corresponding authors upon reasonable request.
References
Savage, N. Spectrometers. Nat. Photon. 3, 601–602 (2009).
Crocombe, R. A. Portable spectroscopy. Appl. Spectrosc. 72, 1701–1751 (2018).
Yang, Z., Albrow-Owen, T., Cai, W. & Hasan, T. Miniaturization of optical spectrometers. Science 371, eabe0722 (2021).
Li, A. et al. Advances in cost-effective integrated spectrometers. Light Sci. Appl. 11, 174 (2022).
Yang, Z. et al. Single-nanowire spectrometers. Science 365, 1017–1020 (2019).
Yoon, H. H. et al. Miniaturized spectrometers with a tunable van der Waals junction. Science 378, 296–299 (2022).
He, X. et al. A microsized optical spectrometer based on an organic photodetector with an electrically tunable spectral response. Nat. Electron. 7, 694–704 (2024).
Yuan, S., Naveh, D., Watanabe, K., Taniguchi, T. & Xia, F. A wavelength-scale black phosphorus spectrometer. Nat. Photon. 15, 601–607 (2021).
Bao, J. & Bawendi, M. G. A colloidal quantum dot spectrometer. Nature 523, 67–70 (2015).
Huang, Y. et al. Memristor-based hardware accelerators for artificial intelligence. Nat. Rev. Elec. Eng. 1, 286–299 (2024).
Du, X. et al. A microspectrometer with dual-signal spectral reconstruction. Nat. Electron. 7, 984–990 (2024).
Yao, C. et al. Integrated reconstructive spectrometer with programmable photonic circuits. Nat. Commun. 14, 6376 (2023).
Uddin, M. G. et al. Broadband miniaturized spectrometers with a van der Waals tunnel diode. Nat. Commun. 15, 571 (2024).
Yuan, S. et al. Geometric deep optical sensing. Science 379, eade1220 (2023).
Wu, G. et al. Miniaturized spectrometer with intrinsic long-term image memory. Nat. Commun. 15, 676 (2024).
Wan, W. et al. A compute-in-memory chip based on resistive random-access memory. Nature 608, 504–512 (2022).
Ambrogio, S. et al. An analog-AI chip for energy-efficient speech recognition and transcription. Nature 620, 768–775 (2023).
Zhang, W. et al. Edge learning using a fully integrated neuro-inspired memristor chip. Science 381, 1205–1211 (2023).
Choi, S., Shin, J. H., Lee, J., Sheridan, P. & Lu, W. D. Experimental demonstration of feature extraction and dimensionality reduction using memristor networks. Nano Lett. 17, 3113–3118 (2017).
Sheridan, P. M. et al. Sparse coding with memristor networks. Nat. Nanotechnol. 12, 784–789 (2017).
Sokolov, A. S., Abbas, H., Abbas, Y. & Choi, C. Towards engineering in memristors for emerging memory and neuromorphic computing: a review. J. Semicond. 42, 013101 (2021).
Rao, M. et al. Thousands of conductance levels in memristors integrated on CMOS. Nature 615, 823–829 (2023).
Wang, Z. et al. A dual-domain compute-in-memory system for general neural network inference. Nat. Electron. 8, 276–287 (2025).
Li, C. et al. Analogue signal and image processing with large memristor crossbars. Nat. Electron. 1, 52–59 (2018).
Ielmini, D. & Wong, H. S. P. In-memory computing with resistive switching devices. Nat. Electron. 1, 333–343 (2018).
Sebastian, A., Le Gallo, M., Khaddam-Aljameh, R. & Eleftheriou, E. Memory devices and applications for in-memory computing. Nat. Nanotechnol. 15, 529–544 (2020).
Chen, J., Li, J., Li, Y. & Miao, X. Multiply accumulate operations in memristor crossbar arrays for analog computing. J. Semicond. 42, 013104 (2021).
Faraji-Dana, M. et al. Compact folded metasurface spectrometer. Nat. Commun. 9, 4196 (2018).
Deng, W. et al. Electrically tunable two-dimensional heterojunctions for miniaturized near-infrared spectrometers. Nat. Commun. 13, 4627 (2022).
Redding, B., Liew, S. F., Sarma, R. & Cao, H. Compact spectrometer based on a disordered photonic chip. Nat. Photon. 7, 746–751 (2013).
Liu, S. et al. A 28 nm 576k RRAM-based computing-in-memory macro featuring hybrid programming with area efficiency of 2.82TOPS/mm2. J. Semicond. 46, 062304 (2025).
Zhang, J. et al. A 28 nm 4 Mb embedded RRAM IP with record-high endurance of 107 cycles and 10 years@125 °C retention through reliability-enhanced design–technology co-optimization. In Proc. 2024 IEEE International Electron Devices Meeting 1–4 (IEEE, 2024).
Zhao, H. et al. Implementation of discrete Fourier transform using RRAM arrays with quasi-analog mapping for high-fidelity medical image reconstruction. In Proc. 2021 IEEE International Electron Devices Meeting 12.4.1–12.4.4 (IEEE, 2021).
Zhao, H. et al. Energy-efficient high-fidelity image reconstruction with memristor arrays for medical diagnosis. Nat. Commun. 14, 2276 (2023).
Yasuma, F., Mitsunaga, T., Iso, D. & Nayar, S. K. Generalized assorted pixel camera: postcapture control of resolution, dynamic range, and spectrum. IEEE Trans. Image Process. 19, 2241–2253 (2010).
Yako, M. et al. Video-rate hyperspectral camera based on a CMOS-compatible random array of Fabry–Pérot filters. Nat. Photon. 17, 218–223 (2023).
Lee, J. et al. A tri-band dual-concurrent Wi-Fi 802.11be transceiver achieving −46 dB TX/RX EVM floor at 7.1 GHz for a 4 K-QAM 320 MHz signal. IEEE J. Solid-State Circuits 59, 3966–3979 (2024).
Wang, J.-C. & Kuo, T.-H. A 3 mW 2.7 GS/s 8 b subranging ADC with multiple-reference-reference-embedded comparators. In Proc. 2023 IEEE International Solid-State Circuits Conference 276–278 (IEEE, 2023).
Yao, P. et al. Face classification using electronic synapses. Nat. Commun. 8, 8 (2017).
Jiang, Z. et al. COPS: an efficient and reliability-enhanced programming scheme for analog RRAM and on-chip implementation of denoising diffusion probabilistic model. In Proc. 2023 International Electron Devices Meeting 1–4 (IEEE, 2023).
Qin, Q. et al. Hybrid precoding with a fully-parallel large-scale analog RRAM array for 5G/6G MIMO communication system. In Proc. 2022 International Electron Devices Meeting 33.2.1–33.2.4 (IEEE, 2022).
Qin, Q. et al. A crossbar-wise IR-drop compensation scheme for 5G/6G hybrid precoding with highly-parallel analog RRAM array. In Proc. 2023 Silicon Nanoelectronics Workshop 45–46 (IEEE, 2023).
Junjie, D. et al. High-resolution on-chip Fourier transform spectrometer based on cascaded optical switches. Opt. Lett. 47, 218–221 (2022).
Xi, Y. et al. The impact of thermal enhance layers on the relaxation effect in analog RRAM. IEEE Trans. Electron Devices 69, 4254–4258 (2022).
Kariyappa, S. et al. Noise-resilient DNN: tolerating noise in PCM-based AI accelerators via noise-aware training. IEEE Trans. Electron Devices 68, 4356–4362 (2021).
Rasch, M. J. et al. A flexible and fast PyTorch toolkit for simulating training and inference on analog crossbar arrays. In Proc. 2021 IEEE 3rd International Conference on Artificial Intelligence Circuits and Systems 1–4 (IEEE, 2021).
Rasch, M. J. et al. Hardware-aware training for large-scale and diverse deep learning inference workloads using in-memory computing-based accelerators. Nat. Commun. 14, 5282 (2023).
Yao, P. et al. Fully hardware-implemented memristor convolutional neural network. Nature 577, 641–646 (2020).
Yan, Z. et al. SWIM: selective write-verify for computing-in-memory neural accelerators. In Proc. 59th ACM/IEEE Design Automation Conference 277–282 (Association for Computing Machinery, 2022).
Yan, Z., Hu, X. S. & Shi, Y. U. Universal selective write-verify for computing-in-memory neural accelerators. IEEE Trans. Comput.-Aided Design Integr. Circuits Syst. 43, 1822–1833 (2024).
Macleod, H. A. Thin-Film Optical Filters (CRC, 2010).
Kirkpatrick, S., Gelatt, C. D. & Vecchi, M. P. Optimization by simulated annealing. Science 220, 671–680 (1983).
NVIDIA H100 Tensor Core GPU. NVIDIA https://www.nvidia.com/en-sg/data-center/h100/ (accessed 17 December 2025).
The GFLOPS/W of the various machines in the VMW Research Group. VMW Research Group https://web.eece.maine.edu/~vweaver/group/green_machines.html (accessed 17 December 2025).
Koh, S.-T. et al. A 5-V dynamic class-C paralleled single-stage amplifier with near-zero dead-zone control and current-redistributive rail-to-rail Gm-boosting technique. IEEE J. Solid-State Circuits 56, 3593–3607 (2021).
Mak, K. H. et al. A 0.7 V 24μA hybrid OTA driving 15 nF capacitive load with 1.46 MHz GBW. IEEE J. Solid-State Circuits 50, 2750–2757 (2015).
Brown, C. et al. Neural network-based on-chip spectroscopy using a scalable plasmonic encoder. ACS Nano 15, 6305–6315 (2021).
Jinhui, Z., Xueyu, Z. & Jie, B. Solver-informed neural networks for spectrum reconstruction of colloidal quantum dot spectrometers. Opt. Express 28, 33656–33672 (2020).
Kim, C., Park, D. & Lee, H.-N. Compressive sensing spectroscopy using a residual convolutional neural network. Sensors 20, 594 (2020).
Acknowledgements
This work was supported in part by the Brain Science and Brain-like Intelligence Technology—National Science and Technology Major Project 2022ZD0210200 (J.T.); National Natural Science Foundation of China 92264201 (J.T.), 52061135108 (W.C.), 62025111 (H.W.) and 624B2078 (X.L.); the XPLORER Prize (H.W.); Scientific Research Innovation Capability Support Project for Young Faculty ZYGXQNJSKYCXNLZCXM-E8 (W.C.); and the Center of Nanofabrication, Tsinghua University.
Author information
Authors and Affiliations
Contributions
W.C. and J.T. conceived the idea and supervised the research. L.W., H.Z. and Y. Zhou analysed the algorithms’ robustness and proposed the MRG strategy. H.Z., L.W. and Y. Zhou proposed the FEM strategies and designed the experiments. H.Z., L.W. and Y. Zhou performed the experiments with help from Q.Q., X.L., Y. Zhang, S.L., Y.X., Y.J., Z.L., R.H., Y. Lin, X.F., L.L., T.H., Z.S., Y. Liu, P.Y., B.G., H.Q. and H.W. All authors discussed the results and commented on the paper.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Peer review
Peer review information
Nature Electronics thanks Suhas Kumar, Yiyu Shi and Suin Yi for their contribution to the peer review of this work.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
Supplementary Information (download PDF )
Supplementary Notes 1–13, Figs. 1–31 and Tables 1–6.
Supplementary Video 1 (download MP4 )
Spectral imaging results reconstructed by MICS. This video shows the detailed spectral imaging results reconstructed by MICS. It contains 61 frames of different spectra, with a comparison of the ground truth.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Zhao, H., Wang, L., Zhou, Y. et al. In situ spectral reconstruction based on a memristor chip for energy-efficient computational spectrometry. Nat Electron (2026). https://doi.org/10.1038/s41928-026-01571-x
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41928-026-01571-x


