Skip to main content
Nature Communications logoLink to Nature Communications
. 2026 Apr 10;17:5104. doi: 10.1038/s41467-026-71638-y

Extreme Illuminated Vision Processing with a Graded Alloyed Perovskite In-sensor Computing Network

Zhenye Zhan 1,2,#, Yueheng Lu 1,#, Yongjian Zheng 1, Nana Pang 1, Yujian Zheng 1, Dongxu Lin 3, Huanyong Li 4, Wen Li 4, Jian Chen 5, Tingting Shi 1,✉, Xiaomu Wang 2,6,✉, Weiguang Xie 1,✉
PMCID: PMC13246787  PMID: 41963329

Abstract

In-sensor computing is proposed to reduce energy expenditure and processing latency by unifying sensing and computation within the hardware layer, yet the application under extreme illuminating scenario remains constrained by simultaneously obtaining broadband responsivity, large linear dynamic range and fast response. Here, we report a fully vapor-deposited graded Pb-Sn alloyed perovskite heterojunction photodiode with improved crystal quality. It enables the detection of light from visible to infrared light with a 230 dB linear dynamic range and 33 ns response time. We also develop a wafer-scale imaging processor by integrating the photodiode to a reconfigurable array. With this approach, we demonstrate biomedical detection and spatiotemporal trajectory encoding. The in-sensor processor realizes low-power high-resolution visible to infrared wavelength edge detection, adaptive background suppression under dim light and noise-immune high-speed dynamic imaging. Our results extend the options for in-sensor computing hardware, and thus pave a way toward practical artificial intelligent machine vision.

Subject terms: Sensors and biosensors, Optical materials and structures, Sensors


Zhan et al. report a fully vapor-deposited graded perovskite photodiode for visible-to-IR imaging with 230 dB linear dynamic range and 33 ns response time. Wafer-scale reconfigurable imaging processor is developed for edge detection, adaptive background suppression under dim light, and noise-immune high-speed dynamic imaging.

Introduction

Traditional machine vision systems isolate sensing and processing units, incurring substantial energy consumption and latency from data transfer between image sensors and backend processors. This bottleneck hinders real-time applications in edge computing and artificial intelligence1,2. In-sensor or near-sensor computing addresses this by enabling pixel-level preprocessing before data transmission, necessitating in-situ reconfigurable photoresponsivity3,4. Recent advances leverage novel device architectures, including electrical doping5, ion migration6, ferroelectric effect7, floating-gate mechanism8, to dynamically reconfigure photoresponsivity. These approaches have demonstrated functionalities critical to machine vision, such as object recognition9, motion perception5,10, high-speed data processing11, spectral extraction12, and in-sensor data compression13.

Practical application of in-sensor computing technology in machine vision, particularly for extreme illuminated conditions, however, remains a significant challenge, requiring the operation of a photodiode with high speed, large dynamic range and extended wavelength12,14,15. Firstly, imaging under dim light or noisy environments is demanded yet difficult for a large number of important application contexts. Dealing with both weak and strong illuminated regions in the same image calls for sensors with a large linear dynamic range (LDR). Unfortunately, the LDR in most sensors is limited to no more than 150 dB, although a few works reported higher LDR by sacrificing the imaging speed16,17. Secondly, a neuromorphic visual system, such as for autonomous vehicles and robotics, needs to capture dynamic images. As a fundamental prerequisite, a photodiode must have an operation speed down to the nanosecond level. However, response time is always compromised by power efficiency or detection sensitivity. And finally, it is also necessary to expand the response to ultraviolet or infrared light to capture information unavailable in the visible spectrum. For example, biomedical imaging is often operated at the infrared range.

Organic–inorganic hybrid perovskites, with high absorption coefficients and long carrier diffusion lengths, show great promise for optoelectronics. Recent advances have demonstrated the fabrication of a thin film photodetector with better performance than crystalline Si18–21. Tin alloying narrows the bandgap and extends spectral responsivity into the near-infrared (NIR) while reducing lead-based perovskite toxicity22,23. However, oxidation of Sn2+ to Sn4+ induces self-p-doping and deep traps, elevating dark current and noise as well as undermining stability24. Even though sophisticated 2D/3D heterojunctions can partially suppress Sn2+ oxidation, the intrinsically low conductivity of 2D perovskites (~10−5 S cm−1) limits the photoresponse efficiency25,26. Accordingly, realizing scalable, high-quality, monolithically integratable perovskite units for practical in-sensor computing has remained an open challenge.

Here, we introduce a gradient composition engineering strategy that provides a protective layer for oxidation suppression of Sn2+. By this approach, we fabricate stable lead–tin (Pb–Sn) alloyed perovskite films via a fully vapor-deposition process. And based on these advancements, we demonstrate a scalable broadband bipolar programmable perovskite unit (BPPU). The core device comprises two sets of back-to-back cascaded perovskite photodiodes. This architecture enables rapid, stable, and precise control of photoresponse purely through circuit‑level biasing, avoiding trade‑offs in hysteresis, speed, or reliability. The uniform vapor-phase deposition ensures symmetric bipolar response tuning under low bias (±200 mV), fast response time of 33.0/37.4 ns, and a large LDR of 230 dB. By integrating the BPPU into wafer-scale arrays, we achieve diverse in-sensor computing functions such as adaptive background suppression, biomedical sensing, and spatiotemporal trajectory encoding.

Results

Design of Pb–Sn perovskite graded heterojunction photodiode

A fully vapor-deposition process is used for sequential layer-by-layer stacking of functional layers, which meets the requirements for future scalable, CMOS-compatible, and high-precision fabrication. The resulting device architecture is a vertical stack of FTO/Spiro-TTB/perovskite/C60/BCP/Ag (Fig. 1a). A high-quality Pb-Sn alloyed perovskite graded heterojunction is fabricated using a synergistic strategy combining compositional engineering and self-encapsulation, as shown in Fig. 1b: First, co-evaporate SnI2 and PbI2 to form a homogeneous (SnI2:PbI2) mixing layer. Second, keep depositing PbI2 while shutting off the SnI2 source to deposit a thin pure PbI2 capping layer, forming a (SnI2:PbI2)/PbI2 heterojunction. The PbI2 capping layer acts as an encapsulation layer for the underlying SnI2. Finally, reacting the (SnI2:PbI2)/PbI2 heterojunction with vaporized methylamine iodide (MAI) at 180 °C converts it into MAPbxSn1−xI3/MAPbI3 perovskite thin film. Subsequent annealing activates thermal diffusion, promotes crystallization, and establishes a Pb–Sn ratio gradient across the film.

Fig. 1. Self-encapsulated Pb–Sn alloyed perovskite graded heterojunction photodiode.

Fig. 1

a Schematic diagram of the device structure with fully evaporated layer stacking. b Schematic diagram of the dual-source co-evaporation process for the graded Pb–Sn alloyed perovskite thin films. It highlights the gradually changed composition ratio perpendicular to the basal plane. c, d SEM micrographs of the perovskite films with the c homogeneous structure and d graded heterojunction structure (Δd = 80 nm). Scale bar: 500 nm. e, f PL intensity stability test under continuous 532 nm laser excitation (200 μW) for the perovskite sample with e homogeneous structure and f graded heterojunction structure (Δd = 80 nm). g Schematic energy diagram of the photodiode with gradient structure. HTL hole transport layer, ETL electron transport layer. h EQE of the homogeneous and the graded heterojunction perovskite photodiodes.

The effectiveness of the component engineering by the top PbI2 layer is supported by X-ray diffraction (XRD), optical absorption, and emission shifting in Supplementary Fig. 1 and Supplementary Fig. 2. Scanning electron microscopy (SEM) analysis verifies that PbI2 capping profoundly optimizes perovskite thin film morphology (Supplementary Fig. 3). While homogeneous structure perovskite films show a porous morphology with pinhole defects (Fig. 1c), introducing an 80 nm PbI2 capping layer on Pb–Sn alloyed precursor films yields dense perovskite grains with reduced inter crystalline voids (Fig. 1d). This microstructural densification effectively suppresses leakage currents from 8.5 × 10−6 A to 5.6 × 10−8 A at −0.5 V bias for the device (Supplementary Fig. 4).

Effective prevention of Sn2+ oxidation in the graded structure is supported by the time evolution of photoluminescence (PL) (Fig. 1e, f, Supplementary Fig. 5). In homogeneous perovskite structure, the primary PL peak at 923 nm (Pb–Sn alloyed perovskite phase) suffers 50% intensity loss within 200 s (79% within 750 s), accompanied by an anomalous 702 nm emission peak emerging after 200 s, a signature of photoinduced Sn2+ oxidation forming MA2SnI6 phases27,28. In stark contrast, the sample pre-covered 80 nm PbI2 maintains >91% PL intensity of Pb–Sn alloyed perovskite over 750 s without secondary peak formation, demonstrating exceptional photostability. The effective encapsulation and protection of Sn2+ oxidation were further confirmed through femtosecond laser ablation XPS depth profiling of the aged samples (Supplementary Fig. 6). In device characterization, devices based on the pre-covered 80 nm PbI2 layer show improved operational stability compared to the homogeneous control sample, with on-off switching characteristics remaining virtually unchanged after long-term continuous operation exceeding 700 h (Supplementary Fig. 7) and demonstrating remarkable photostability even under strong light irradiation (Supplementary Fig. 8).

To verify the formation of compositional and band-structure gradient in the perovskite film, in-depth X-ray photoelectron spectroscopy (XPS) analysis is first employed, revealing that the Sn:Pb ratio evolves gradually from 0.05:0.95 at the surface to 0.4:0.6 in the bulk (Supplementary Fig. 9). Ultraviolet photoelectron spectroscopy (UPS) measurement in Supplementary Fig. 10 is then employed to reveal the band structure, giving the detailed band alignment in Fig. 1g. It shows a type-II heterojunction between the Pb–Sn alloy region with band gap around 1.33 eV and Pb-rich surface layer with band gap around 1.50 eV. This continuous gradient results in a progressive spatial tilting of both the conduction band minimum (CBM) and valence band maximum (VBM) across the entire active layer, effectively generating a built-in electric field. The Mott-Schottky analysis in Supplementary Fig. 11 further reveals an enhancement of built-in potential from 0.58 V in the homogeneous film to 0.66 V in the gradient film. This built-in field actively drives photo-generated electrons towards the lead-rich region (orange arrow) and holes towards the tin-rich region (blue arrow) via directional drift, thereby transitioning carrier transport from diffusion-dominated to efficient drift-dominated. As a result, acceleration of charge separation and transport, substantially shortening carrier transit and residence time within the active layer, can be expected. The observation of faster rise and fall times in the photoresponse of the graded heterojunction (Supplementary Fig. 12) provides evidence for the improved carrier transport kinetics.

The thickness of the pre-covered PbI2 layer (Δd = 20–110 nm) is a critical parameter for the compromise of device operational stability, carrier transport efficiency, and NIR sensitivity. The 80 nm PbI2 pre-covered layer provides an optimized NIR response. When the PbI2 thickness exceeds 80 nm, the Pb–Sn balanced region, which serves as the primary infrared absorber, is too short to preserve photoresponse beyond 850 nm. This attenuation is directly evidenced by a 33% responsivity decrease at 850 nm in Δd = 110 nm devices (0.28 A W−1 versus 0.42 A W−1 for 80 nm devices, Supplementary Fig. 13). Conversely, sub-80-nm pre-covered layers fail to adequately suppress oxidation-induced degradation, leading to deteriorated response. With the optimized structure, the gradient Pb–Sn alloyed perovskite film achieves a zero-bias external quantum efficiency (EQE) of 61.07% at 850 nm (Fig. 1h). This wavelength is crucial for NIR applications such as vein imaging that rely on the characteristic absorption of hemoglobin in the 760–850 nm spectral range. Although the PbI2 coating weakens the device’s short-wave infrared response above 850 nm, the high sensitivity maintained within the key spectral window fully meets the physical requirements of the targeted biomedical applications. This structure simultaneously satisfies essential intelligent vision system requirements, including multi-wavelength adaptability, environmental stability, and rapid response capabilities.

Bipolar photoresponse perovskite in-sensor computing unit

In a machine vision system, the convolution of input optical signals and weights relies on programmable photoresponse characteristics. As shown in Fig. 2a, the designed BPPU integrates two vertically stacked photodiodes comprising a shared functional layer but adjacent electrically-isolated Ag electrodes. Detailed photocurrent-voltage characteristic of BPPU is shown in Supplementary Fig. 14. Figure 2b shows the typical bias-dependent bipolar photoresponse that is understood by the equivalent circuit in the inset. Under uniform illumination intensity P, the photocurrent of BPPU is described by Itotal=ID1+ID2. This relationship is verified by the photoresponse characteristic of an individual photodiode by separately illuminating each diode. It is found that the photodiode D1 contributed to the positive photoresponse and D2 contributed to the negative photoresponse. Figure 2c maps the reconfigurable photoresponse as a function of incident power across a 400 mV window (−200 to +200 mV). The net responsivity can be continuously tuned from negative to positive. This enables optoelectronic analog multiplication and accumulation (MAC) for in-sensor computing applications (see below). Notably, the low operating voltage indicates the device is operated with ultra-low power consumption.

Fig. 2. Design and performance of BPPU.

Fig. 2

a Schematic structure of a single BPPU. b The photocurrent-bias voltage curves and responsivity-bias voltage curves of illumination on photodiode D1, photodiode D2, and photodiodes D1 with D2 simultaneously, respectively. An 860 nm laser with 5.7 mW cm−2 is used as the light source. Inset: The BPPU equivalent circuit. c Reconfigurable photoresponse mapping. Two-dimensional current matrix as a function of incident power (0.01–1 mW cm−2) and bias voltage (−200 to +200 mV). d The noise current spectra of the BPPU at 0 V bias. e The photocurrent response for each photodiode in BPPU with respect to power intensity at 860 nm under 0 V. The red line is the linear fitting of the LDR. These LDR measurements were conducted by illuminating a sub-diode within the BPPU to assess its intrinsic photoresponse performance. f The bipolar switching photoresponse time of the BPPU, measured at 0 V bias under 660 nm laser illumination with a light intensity of 1 mW cm−2 and a modulation frequency of 1 MHz. g Background (BG) suppression capability of the extended BPPU under VA = VB = 0 V, measured under background illumination from an 860 nm LED array. Error bars are the standard deviation. h Response to a moving 860 nm laser spot with intensities of 5.62 nW, 1.01 nW, and 146 pW under dark background illumination. i Response to the same moving laser spot (1 mm spot size) under strong background illumination provided by an 860 nm LED array (42.18 mW), with spot intensities of 1.19 μW, 719 nW, and 530 nW. The colored shading represents the spatial responsivity profile across the extended BPPU array.

Building upon this back-to-back cascading configuration, leakage currents are self-canceled as shown in Supplementary Fig. 15, suppressing the noise current to 7.44 × 10−14 A Hz−0.5 under 1 Hz as shown in Fig. 2d. The photodiode exhibits exceptional 230 dB LDR from 4.75 pW cm−2 to 1.50 W cm−2 under 860 nm in the BPPU at zero bias (Fig. 2e, Supplementary Fig. 16). Our device demonstrates competitive advantages over recently reported broadband (visible–NIR) photodetectors, as detailed in Supplementary Table 1. The BPPU achieves an ultrafast bipolar photoresponse speed of 33.0 ns rise time and 37.4 ns fall time (Fig. 2f). It results from the cascaded architecture. The back-to-back connected diodes’ equivalent capacitance (Ceq=C1C2C1+C2) reduces by 50% compared to single-photodiode configurations. The comparative data in Supplementary Fig. 17 provide direct experimental validation for this capacitance reduction effect.

This design establishes a new architecture for in-sensor computing devices, simultaneously addressing the longstanding trade-off between detection speed, sensitivity, and power consumption in conventional photonic systems. Remarkably, our device accomplishes adjustable photoresponse with an unprecedentedly low programming voltage of ±0.2 V—a figure significantly lower than state-of-the-art bipolar programmable photodetectors (Supplementary Table 2). The 230 dB dynamic range allows unified processing of vision with both low-light and high-flux parts without any gain switching/adapting. It overcomes the critical bottleneck of saturation-induced feature loss in existing neuromorphic vision sensors.

In-sensor computing core

Under zero bias, the BPPU readily functions as a computing kernel for hardware-level background (BG) suppression, as demonstrated in Fig. 2g. The photocurrent fluctuations are constrained within <12.5 nA despite global BG illumination increasing from dark to 19.1 mW cm−2. This stability arises from responsivity cancellation (R1=−R2) between neighboring diodes (D1 and D2 in Fig. 2b). It creates a hardware differential connection that effectively subtracts the common-mode BG. But the total current is still able to sensitively respond to locally illuminated signals. For example, a moving light spot induces a negative (positive) signal when it goes through D1 (D2) zones. Our measurements suggest that under dark BG, the array can resolve a motion signal as dim as 146 pW (Fig. 2h). Even under an intense BG illumination of 42.18 mW, a target signal down to 530 nW can still be successfully extracted (Fig. 2i), which corresponds to an interference level 98 dB stronger than the target signal. This robust performance is corroborated by the dynamic range measurements under strong background illumination (Supplementary Fig. 18). The BPPU achieves sub-microsecond fast BG suppression by directly performing analog photocurrent subtraction within the sensor hardware. This ability is not only promising for high-contrast scenes but also bypasses conventional analog-to-digital conversion and digital signal processing. It definitely saves power and prevents precision loss. It is important to note that the excellent background suppression of the BPPU relies on uniform illumination across its two sub-pixels. In practical scenarios, spatial gradients or local shadows in background illumination may reduce the suppression efficiency and introduce low-frequency spatial artifacts. These effects can be mitigated by subsequent signal processing or system-level calibration strategies.

To further demonstrate the in-sensor computing capabilities, we also designed an extended BPPU array by integrating two fundamental units through a shared Ag current output terminal, as illustrated in Fig. 3a. Figure 3b shows the equivalent circuit of this enhanced design. It provides independent bias terminals (VA, VB) to program the responsivity of two branches and sum the photocurrent at the output terminal. Therefore, it is easy to understand that each extended BPPU array serves as a minimum in-pixel MAC core for the input light intensity and weights defined by the bias voltage:

Ioutput=[R(VA),R(VB)]PAPB 1

Fig. 3. Configuration of the extended BPPU array.

Fig. 3

a Extended BPPU structure of functional extension. b Equivalent circuit diagram of the extended BPPU. c Optical images of a 4-in. wafer containing 404 photodiodes (101 BPPUs). d The PL mapping of the emission peak position of perovskite film at 17 substrate locations on the 4-in. wafer. Scale bar: 1 cm. e Magnified views of a 6 × 6 array. Scale bar: 500 mm. f Responsivity mapping of the 6 × 6 extended BPPU array. Left panel: initial responsivity matrix; right panel: functionalized responsivity matrix after separate voltage programming of each BPPU.

The MAC core can be further scaled up to form a convolution kernel. We demonstrated a chip-level implementation of 2 × 2 and 6 × 6 extended BPPU arrays on a 4-in. wafer (Fig. 3c). Quantitative verification of film uniformity was achieved by measuring PL peak positions across 17 positions (Fig. 3d, Supplementary Fig. 19), revealing a standard deviation of only 2.21 nm. To further confirm the reliability of our deposition technique, the uniformity and reproducibility of the Sn/Pb gradient structure were assessed via XPS profiling, which shows high consistency over batches (Supplementary Fig. 20). Such exceptional homogeneity ensures high device-to-device consistency (Supplementary Fig. 21). The arrays can be programmed as arbitrary matrices for convolution operation. Figure 3e, f gives an instance. Based on the aforementioned reconfigurability, extensibility, and scalability, we next demonstrate the application of BPPU in intelligent vision tasks, from biomedical imaging/processing to real-time motion tracking.

In-sensor imaging processing for biomedical applications

BPPU-based biological feature extraction was demonstrated using a home-built galvanometer-based scanner (Supplementary Fig. 22) for acquisition of both surface topography and subsurface vascular structures. For fingerprint biometrics, high-precision epidermal topography is captured under −0.2 V bias. It resolves ridge-valley structures (200–400 μm spacing) and sweat pore distributions (40–100 μm diameter, Fig. 4a). Switching to 0 V bias enables horizontal edge detection, where only the ridge boundaries are resolved as distinct intensity transitions (Fig. 4b) due to the differential output eliminating background signals. As shown in Fig. 4c, this operation manages to suppress nonlinear background variations and enables direct hardware-level extraction of Level 2 biometric features (bifurcations, ridge endings) and Level 3 identifiers (sweat pores)29,30. Notably, the resulting discretized edge map shows a 101% improvement in edge-specific signal-to-noise ratio, alongside 95.5% agreement with conventional digital processing outputs and higher contrast than conventional Sobel or Laplacian digital filters (Supplementary Fig. 23).

Fig. 4. In-sensor imaging and processing.

Fig. 4

a Conventional imaging mode at −0.2 V with the responsivity matrix of −10. The fingerprint is illuminated by a single white light LED. b Edge detection mode at 0 V with a differential responsivity of −1+1. c Cross-sectional intensity profiles. d Photograph of a hand with an inset showing the imaging part in (e, f). e, f Vein imaging via NIR: e conventional imaging, where the veins in shadow are fully blurred by the bright part; f edge detection, where the veins are clear in the same condition as (e). The dashed lines outline the localized subcutaneous veins. g Schematic of the PWV measurement method based on BPPU differential signals. h Differential time-domain signals between two sub-photodiodes in a BPPU. i Normalized PWV and heart rate during post-exercise recovery. Shaded areas are SD.

We also extended this in-sensor edge processing paradigm to deeper tissue diagnostics through NIR absorption contrast. Hemoglobin in veins exhibits stronger absorption of NIR illumination than the surrounding tissues, such as skin and subcutaneous fat. NIR is thus very suitable for vein imaging. However, post-image processing techniques such as contrast-limited adaptive histogram equalization and multi-scale filtering are required to address the weak contrast between the vein and surrounding tissues31–33. As shown in Fig. 4d, a photograph of a hand is provided with an inset highlighting the specific region used for imaging (Fig. 4e, f). A transmission image acquired using conventional imaging mode shows that a high-intensity signal is detected between the fingers, while minimal venous detail is discernible (Fig. 4e), demonstrating the significant dynamic range challenge in conventional subcutaneous imaging. In contrast, under edge detection mode (Fig. 4f), the vein edges are clearly resolved due to abrupt transitions in hemoglobin concentration at vessel boundaries. This approach significantly enhances vein-to-tissue contrast, enabling clear visualization of vessels through differential absorption.

The device’s advantages for achieving this high-quality image are twofold. The intrinsically high LDR together with the differential architecture accommodates high-intensity background illumination from the gap between fingers with tissue scattering and weak additive absorption signals from hemoglobin. Conventional photodetectors would otherwise saturate under high surface background intensity or lose vein-specific absorption variations in quantization noise. Consequently, the BPPU enables direct extraction of venous boundaries from raw NIR matrices without dynamic range compression. Notably, in contrast to conventional imaging with separate post-computation, our in-sensor computing approach operates at 0 V, approaching nearly zero-power data processing. Furthermore, the bipolar response characteristics of the extended BPPU array, in principle, allow it to be programmed to perform arbitrary two-dimensional linear convolution operations, effectively functioning as a versatile image processing kernel for various in-sensor computational imaging effects.

Beyond static in-sensor imaging applications, the BPPU architecture also enables dynamic physiological monitoring through time-resolved differential sensing. Pulse wave velocity (PWV) is a critical parameter for assessing arterial stiffness, which has been linked to various cardiovascular diseases34. Traditional PWV (v) measurement requires multiple sensors and complex signal processing to analyze the time delay between pulse waves at different measurement sites35–37. However, this out-of-sensor and multi-sensor data processing can be simplified by utilizing BPPU in-sensor computing. Here, we verify it through the local measurement of the fingers.

Figure 4g schematically shows the in-sensor processing of the photoplethysmographic (PPG) signal when NIR light passes through tissues. The spatial separation (D = 2.5 mm) between the two sub-photodiodes introduces a small time lag (ΔT=Dv, typically <0.5 ms for v > 5 m s−1) in the pulse wave arriving times. This results in phase-shifted PPG signals (Pt and Pt−ΔT) with distinct temporal characteristics. The BPPU computes the differential-delay current as Idifft=I1t−I2t=α[Pt−Pt−ΔT], where α is the optoelectrical-related coefficient. Since the ΔT is significantly shorter than the PPG pulse wave’s characteristic timescale, the peak differential current at the maximum pulse slope (dPdtmax) is approximated by first-order Taylor expansion:

Idiff,max≈αdPdtmax⋅ΔT=αdPdtmax⋅Dv 2

This yields the fundamental relationship between peak magnitude (Idiff,max) and PWV:

v=kIdiff,max 3

where the calibration constant k=α⋅DdPdtmax incorporates optoelectronic and individual hemodynamic parameters. As experimentally confirmed in Fig. 4h, this inverse proportionality enables the direct translation of differential current peaks into PWV values. Figure 4i demonstrates synchronized decreasing trends in both BPPU-derived normalized PWV and heart rate during post-exercise recovery. Physiological validation of our measurements is established through covariation with heart rate, which exhibits a known correlation with PWV dynamics. Detailed signal processing is provided in Supplementary Fig. 24. Our approach thus enables efficient PWV monitoring through simple differential current measurement, offering a practical alternative to conventional multi-sensor systems.

Robust motion trajectory recognition

Finally, we use a dynamic spatiotemporal pattern recognition task to explore the potential of BPPU for intelligent vision. The task involves identifying the motion trajectory mode (32 kinds of distinct trajectories shown in Fig. 5a) of a specific target. The BPPU was scaled up to a 6 × 6 array. The trajectory-specific time-domain signals are generated via a convolution operation: Ioutput(t)=∑i=1NRiϕit, where Ri denotes the programmable responsivity of the i th pixel (Fig. 3f, right), ϕi represents the time-dependent incident optical signal, and N = 36 corresponds to the 6 × 6 array configuration. It enables the extended BPPU array to directly encode the moving objects’ spatiotemporal signatures into discriminative neuromorphic information. Or, in other words, the BPPU sensor array naturally supports artificial neural network vision processing as it plays the role of the first layer of a neural network. The comprehensive system and detailed recognition process are established in Supplementary Fig. 25 and “Methods”, and schematically illustrated in Fig. 5b. The original sensor output current signals for each BPPU in time-domain are shown in Fig. 5c and Supplementary Fig. 26. They were directly encoded into machine-readable features and sequentially fed into a long short-term memory (LSTM) network for robust classification38,39. This workflow eliminates redundancy in conventional sensory systems (including data converters, digital edge detection, digital filtering, and optical flow calculation). Within the motion trajectory simulation platform measurements, the system achieves 100% classification accuracy across training, validation, and test sets (Fig. 5d) under noise-free conditions (Supplementary Fig. 27).

Fig. 5. Robust motion trajectory recognition.

Fig. 5

a Thirty-two kinds of trajectories for validation, including noise-free paths (horizontal, vertical, diagonal, and corresponding reverse motions), and with-noise variants (4–20% random walk noise, 4–20% gaussian noise). b Schematic of the BPPU trajectory recognition system. c Distinctive time-domain signals for all noise-free trajectories. d Confusion matrix for noise-free trajectories on the test set. e LSTM network classification accuracy for with-noise trajectories under increasing noise levels. f Confusion matrix for with-noise trajectories on the test set.

Robustness against noise is another main challenge for machine vision. We validate the system rigorously by examining its performance under perturbations. Specifically, we purposely introduced two distinct types of noise into the real trajectories: Gaussian noise and random walk noise. These were selected to simulate uncorrelated and temporally correlated interference common in real-world scenarios, as shown in Supplementary Fig. 28.

Briefly, the noises are coupled to the motion target by:

xti=x0ti+α⋅Nx(0,σ2)yti=y0ti+α⋅Ny(0,σ2) 4

for gaussian noise, and

xti=x0ti+α10∑k=1iNxk(0,σ2)yti=y0ti+α10∑k=1iNy(k)(0,σ2) 5

for random walk noise, where x0ti and y0ti denote noise-free positions, α is the noise level (α = 4%, 8%, 12%, 16%, 20%), N(0,σ2) represents independent Gaussian variables with 0 mean and σ2σ=1 variance, and k indexes discrete time steps.

Figure 5e summarizes the identification accuracy for signals subjected to a single kind of noise. The Gaussian noise in our experiments models common uncorrelated, high-frequency disturbances in real-world scenarios, such as electronic readout noise in sensors and circuits, as well as photon shot noise, which independently affects each measurement point. In this case, the system demonstrates exceptional resilience: test accuracy maintains 95.32% at 20% noise intensity, representing a marginal 4.68% degradation from baseline. This robustness stems from the uncorrelated nature of Gaussian noise. The BPPU-based system can effectively filter out this kind of transient perturbation. The random walk noise is selected to simulate cumulative, low-frequency interference, including mechanical drift or vibration and slow sensor baseline drift. Its accumulated effect introduces time-correlated deviations that distort the intended motion trajectory, thereby testing the system’s robustness against shape errors. These disturbances alter key shape features of the path and increase classification complexity. Nevertheless, the system maintains a test accuracy registers at 99.19% for 4% noise intensity and remains measurable at 81.71% under 20% intensity. This performance demonstrates robust tolerance to trajectory distortions. And finally, we also performed a comprehensive evaluation by integrating training across all noise types and intensities, which yields a 90.87% classification accuracy (Fig. 5f and Supplementary Fig. 29). These results confirm the system’s robust discrimination capability, even for perceptually similar motion patterns under challenging conditions. Fundamentally limited by a 33‑ns temporal resolution, the BPPU-based system can directly encode fast motion. The corresponding theoretical maximum detectable velocity of 7.6 × 104 m s−1 (discussed in Supplementary Fig. 30), allowing the system to capture and classify rapid trajectories that would otherwise be blurred or missed by standard imaging systems.

Discussion

We have developed perovskite optoelectronic devices and arrays with both high performance and versatile scalability through graded vapor-phase deposition. The developed BPPU is broadband responsive, has a large LDR, and has a fast response. We also used the BPPU to implement a programmable image filter kernel for biomedical imaging and an optoelectronic convolution processor for real-time machine vision. These properties facilitate advanced in-sensor computing and processing for future artificial intelligence technology.

Methods

Materials

FTO glasses, Lead (II) iodide (PbI2), 2,2’7,7’tetra(N,N-di-tolyl)amino-9,9-spiro-bifluorene (Spiro-TTB), and C60 were purchased from Advanced Election Technology CO., Ltd. Tin (II) iodide SnI2 (99.999%) was purchased from 3AMaterials. Methylammonium iodide (CH3NH3I, MAI) (99.8%) was purchased from TCI. 2,9-dimethyl-4,7-diphenyl-1,10-phenanthroline (BCP) was purchased from Xi’an Polymer Light Technology Corp. All of the chemicals were used as received.

Perovskite photodiode and BPPU fabrication

The device structure was configured with a vertically stacked structure. Prepatterned FTO substrates were cleaned, treated with oxygen plasma, and then deposited with a 6 nm Spiro-TTB layer via thermal evaporation (~0.1 Å s−1). The graded perovskite heterojunction was fabricated through a sequential vapor-deposition process wherein SnI2 and PbI2 were first co-evaporated at a 1:1 molar ratio to form a homogeneous underlying layer with a total fixed thickness of 180 nm. The SnI2 source was then terminated at a stage corresponding to a PbI2 capping thickness (varied from 0 to 110 nm), depositing a pure PbI2 overlayer. Finally, the stacked precursor film was converted into a compositionally graded perovskite structure via reaction with vaporized MAI in a 180 °C vacuum oven. After cooling, the perovskite film was IPA-spin cleaned and annealed (100 °C, 10 min). Subsequent layers included thermally evaporated C60 (23 nm, ~0.1 Å s−1) and BCP (8 nm, ~0.08 Å s−1). The Ag electrode was finally deposited by thermal evaporation through a patterned shadow mask. For optoelectronic characterization, imaging, and trajectory recognition, the sub-photodiode areas of the BPPUs are 0.04 cm2, 4 × 10−4 cm2, and 0.01 cm2, respectively.

Film characterization

Ultraviolet-visible absorption spectra were measured using a SHIMADZU UV-2600. The PL spectrum was measured using a confocal Raman microscope (WITec, Alpha300R) with a 532 nm laser as the excitation source. SEM images were acquired through a FEI Quanta 450 FEG field emission scanning electron microscope. XRD spectra were acquired using a BRUKER D8-Advance equipped with Cu Kα1 irradiation (λ = 1.5406 Å). UPS characterizations were performed using a Thermo Fisher Scientific K-Alpha+ equipped with a He I (21.22 eV) excitation source. XPS for Pb–Sn ratio characterizations was acquired on the same instrument (Al Kα radiation source). Femtosecond laser ablation (fs-LA) XPS depth profiling for Sn2+ oxidation analysis was performed using a Thermo Fisher Scientific Hypulse XPS system40,41. Single femtosecond laser pulses of 40 μJ per level were employed, delivered as a horizontally linearly polarized Gaussian beam with a wavelength of 1030 nm and a pulse duration of 160 fs.

Device characterization

The electrical characterization of the photodiode and BPPU devices was conducted in a dark metal box to avoid interference from ambient light. Current–voltage characteristics were measured using a source-measure unit (Keithley 2612A Source Meters).

The LDR measurement was referred to the methodology outlined in the literature42,43. The device was illuminated by a modulated laser, and the resulting photocurrent was detected with a lock‑in amplifier (Guangzhou Sine Scientific Instrument Co., Ltd., Model OE2031) under zero bias. The frequency spectral response was obtained by scanning the reference frequency and standardized according to the equivalent noise bandwidth determined by the lock-in amplifier’s filter order and time constant. During the experiment, the incident optical power was calibrated with an optical power meter (Daheng Optics, GCI-080302) and attenuated using a series of neutral density filters (Thorlabs).

Noise current measurements were conducted at room temperature under dark conditions, also utilizing the lock-in amplifier. EQE spectra were acquired at zero bias using an Enlitech QE-C system. The response time was acquired by an oscilloscope (Tektronix, TDS2024C) through a trans-impedance amplifier.

The BPPU array was tested using a home-built multi-channel scanning system. A Keithley 3706A Switch/Multimeter with a plug-in card (Keithley 3730 matrix card) was used to select rows and columns to determine the read-out terminal to be tested.

Imaging processing demonstration

Our home-built galvanometer scanning imager utilizes a dual-axis galvanometer driven by XY-voltage inputs for rapid, predefined trajectory scanning. The system directs reflected or transmitted scene light through a camera lens onto the photodetector. Real-time voltage programming dynamically reconfigures BPPU’s image processing functions, with processed signals acquired via TIA and lock-in amplification for subsequent image reconstruction.

Motion trajectory experimental platform

An 850 nm laser serves as the light source, with its beam dynamically steered across the BPPU device following a preset trajectory via a dual-axis galvanometer scanner. The multi-channel digital-to-analog converter provides 18 independent biases, pre-programming the 6 × 6 BPPU array to the target response matrix. A TIA and a lock-in amplifier are used to acquire the resulting time-series current signals generated by the BPPU under dynamic laser spot stimulation.

The acquired noise-free trajectories and with-noise variants were used to construct different datasets. For evaluating the impact of each noise intensity level, a dedicated dataset was assembled per intensity, consisting of 256 noise-free samples and 320 with-noise variants samples, yielding 576 samples in total. For the comprehensive evaluation involving integrated training across all noise types and intensities, a combined dataset was created by merging the noise-free data with all noisy samples, resulting in 3232 samples in total. Each dataset was split into 60% for training, 20% for validation, and 20% for testing. The BPPU-generated time-series features were fed into an LSTM network comprising a 128 hidden unit LSTM layer, a fully connected layer, and a softmax output layer, which was trained with the Adam optimizer (initial learning rate: 0.001) for up to 100 epochs.

Supplementary information

Source data

Source Data (5.7MB, xlsx)

Acknowledgements

This work was financially supported by the National Natural Science Foundation of China (Grant Nos. 62325404 and 62174072) and the National Key Research and Development Program of China (Grant No. 2022YFA1203500). The authors are very grateful to Dr. Qingqin Ge and Dr. Paul Mack at Thermo Fisher Scientific (China) Co., Ltd. for the XPS measurements and the helpful discussions. The authors gratefully acknowledge the assistance of Lin Wang from the Analytical and Testing Center of Jinan University for the XPS analysis.

Author contributions

Z.Z. and W.X. conceived the concept. T.S., W.X., and X.W. supervised the project. Z.Z. designed, fabricated, and measured the devices and circuits. Y.L. characterized the films, and W.L. conducted the XPS characterization. Z.Z. and Y.L. developed the imaging system and motion trajectory experimental platform. Y.Z. (Yongjian Zheng), N.P., Y.Z. (Yujian Zheng), D.L., H.L., and J.C. analyzed the data. Z.Z., T.S., X.W., and W.X. wrote the paper. All the authors discussed the results and implications and reviewed the paper.

Peer review

Peer review information

Nature Communications thanks Su-Ting Han, Xiangyue Meng and Ye Zhou for their contribution to the peer review of this work. A peer review file is available.

Data availability

The source data that support the plots within this paper are provided with this paper. Other data that support the findings of this paper are available from the corresponding author upon request. Source data are provided with this paper.

Code availability

The codes used for LSTM network training are available from the corresponding authors upon request.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

These authors contributed equally: Zhenye Zhan, Yueheng Lu.

Contributor Information

Tingting Shi, Email: ttshi@jnu.edu.cn.

Xiaomu Wang, Email: xiaomu.wang@nju.edu.cn.

Weiguang Xie, wgxie@email.jnu.edu.cn.

Supplementary information

The online version contains supplementary material available at 10.1038/s41467-026-71638-y.

References

  • 1.Wan, T. et al. In-sensor computing: materials, devices, and integration technologies. Adv. Mater.35, e2203830 (2023). [DOI] [PubMed] [Google Scholar]
  • 2.Sangwan, V. K. & Hersam, M. C. Neuromorphic nanoelectronic materials. Nat. Nanotechnol.15, 517–528 (2020). [DOI] [PubMed] [Google Scholar]
  • 3.Cho, S. W., Jo, C., Kim, Y.-H. & Park, S. K. Progress of materials and devices for neuromorphic vision sensors. Nano-Micro Lett.14, 203 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Zhou, F. & Chai, Y. Near-sensor and in-sensor computing. Nat. Electron.3, 664–671 (2020). [Google Scholar]
  • 5.Xiong, Z. et al. Parallelizing analog in-sensor visual processing with arrays of gate-tunable silicon photodetectors. Nat. Commun.16, 4728 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Li, T. et al. Reconfigurable, non-volatile neuromorphic photovoltaics. Nat. Nanotechnol.18, 1303–1310 (2023). [DOI] [PubMed] [Google Scholar]
  • 7.Cui, B. et al. Ferroelectric photosensor network: an advanced hardware solution to real-time machine vision. Nat. Commun.13, 2022 (1707). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Cai, Y. et al. 8-bit states in 2D floating-gate memories using gate-injection mode for large-scale convolutional neural networks. Nat. Commun.16, 2649 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Ouyang, B. et al. Bioinspired in-sensor spectral adaptation for perceiving spectrally distinctive features. Nat. Electron.7, 705–713 (2024). [Google Scholar]
  • 10.Pan, X. et al. Parallel perception of visual motion using light-tunable memory matrix. Sci. Adv.9, eadi4083 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Mennel, L. et al. Ultrafast machine vision with 2D material neural network image sensors. Nature579, 62–66 (2020). [DOI] [PubMed] [Google Scholar]
  • 12.Pi, L. et al. Broadband convolutional processing using band-alignment-tunable heterostructures. Nat. Electron.5, 248–254 (2022). [Google Scholar]
  • 13.Huang, H. et al. In-sensor compressing via programmable optoelectronic sensors based on van der Waals heterostructures for intelligent machine vision. Nat. Commun. 16, 3836 (2025). [DOI] [PMC free article] [PubMed]
  • 14.Jiang, T. et al. Tetrachromatic vision-inspired neuromorphic sensors with ultraweak ultraviolet detection. Nat. Commun.14, 2281 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Jang, H. et al. In-sensor optoelectronic computing using electrostatically doped silicon. Nat. Electron.5, 519–525 (2022). [Google Scholar]
  • 16.Zhou, S. et al. Dual-mode photodetectors mimicking retinal rod and cone cells for high dynamic range image sensor. Laser Photonics Rev. 19, 2402192 (2025).
  • 17.Liao, F. et al. Bioinspired in-sensor visual adaptation for accurate perception. Nat. Electron.5, 84–91 (2022). [Google Scholar]
  • 18.Morteza Najarian, A. et al. Sub-millimetre light detection and ranging using perovskites. Nat. Electron.5, 511–518 (2022). [Google Scholar]
  • 19.Zhou, Y. et al. Self-powered perovskite photon-counting detectors. Nature616, 712–718 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Tsarev, S. et al. Vertically stacked monolithic perovskite colour photodetectors. Nature642, 592–598 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Ollearo, R. et al. Ultralow dark current in near-infrared perovskite photodiodes by reducing charge injection and interfacial charge generation. Nat. Commun.12, 7277 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Ma, Y. et al. Day-Night imaging without Infrared Cutfilter removal based on metal-gradient perovskite single crystal photodetector. Nat. Commun.15, 7516 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.Im, J., Stoumpos, C. C., Jin, H., Freeman, A. J. & Kanatzidis, M. G. Antagonism between spin–orbit coupling and steric effects causes anomalous band gap evolution in the perovskite photovoltaic materials CH3NH3Sn1–xPbxI3. J. Phys. Chem. Lett.6, 3503–3509 (2015). [DOI] [PubMed] [Google Scholar]
  • 24.Reo, Y. et al. Vapour-deposited high-performance tin perovskite transistors. Nat. Electron. 8, 403–410 (2025).
  • 25.Chen, X. et al. Improved conductivity of 2D perovskite capping layer for realizing high-performance 3D/2D heterostructured hole transport layer-free perovskite photovoltaics. ACS Nano19, 4299–4308 (2025). [DOI] [PubMed] [Google Scholar]
  • 26.Ortiz-Cervantes, C., Román-Román, P. I., Vazquez-Chavez, J., Hernández-Rodríguez, M. & Solis-Ibarra, D. Thousand-fold conductivity increase in 2D perovskites by polydiacetylene incorporation and doping. Angew. Chem. Int. Ed. Engl.130, 14078–14082 (2018). [DOI] [PubMed] [Google Scholar]
  • 27.Xu, P. & Liu, F. First-principles investigation on the photovoltaic properties of lead free earth abundant (CH3NH3)2SnI6 perovskite. J. Appl. Phys. 129, 125701 (2021).
  • 28.Funabiki, F., Toda, Y. & Hosono, H. Optical and electrical properties of perovskite variant (CH3NH3)2SnI6. J. Phys. Chem. C122, 10749–10754 (2018). [Google Scholar]
  • 29.Derbel, N. & Kanoun, O. (eds.). Advanced Methods for Human Biometrics (Springer, Cham, 2021).
  • 30.FAULDS, H. Poroscopy: the Scrutiny of Sweat-pores for Identification. Nature91, 635–636 (1913). [Google Scholar]
  • 31.Sheng, W., Zheng, Z. & Zhu, H. A novel approach to palm vein image segmentation combining multi-scale convolution and swin-transformer networks. Sci. Rep.15, 17539 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Ren, H., Sun, L., Fan, X., Cao, Y. & Ye, Q. IIS-FVIQA: finger vein image quality assessment with intra-class and inter-class similarity. Pattern Recognit.158, 111056 (2025). [Google Scholar]
  • 33.Hou, B., Zhang, H. & Yan, R. Finger-vein biometric recognition: a review. IEEE Trans. Instrum. Meas.71, 1–26 (2022). [Google Scholar]
  • 34.Kim, H.-L. & Kim, S.-H. Pulse wave velocity in atherosclerosis. Front. Cardiovasc. Med.6, 41 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Pereira, T., Correia, C. & Cardoso, J. Novel methods for pulse wave velocity measurement. J. Med. Biol. Eng.35, 555–565 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.McCombie, D. B., Reisner, A. T. & Asada, H. H. Adaptive blood pressure estimation from wearable PPG sensors using peripheral artery pulse wave velocity measurements and multi-channel blind identification of local arterial dynamics. In 2006 International Conference of the IEEE Engineering in Medicine and Biology Society, pp 3521–3524. [DOI] [PubMed]
  • 37.PM, N., Karthik, S., Joseph, J. & Sivaprakasam, M. Experimental validation of dual PPG local pulse wave velocity probe. In IEEE International Symposium on Medical Measurements and Applications (MeMeA). pp 408–413 (2017).
  • 38.Hochreiter, S. & Schmidhuber, J. Long short-term memory. Neural Comput.9, 1735–1780 (1997). [DOI] [PubMed] [Google Scholar]
  • 39.van Houdt, G., Mosquera, C. & Nápoles, G. A review on the long short-term memory model. Artif. Intell. Rev.53, 5929–5955 (2020). [Google Scholar]
  • 40.Baker, M. A. et al. Femtosecond laser ablation (fs-LA) XPS—a novel XPS depth profiling technique for thin films, coatings and multi-layered structures. Appl. Surf. Sci.654, 159405 (2024). [Google Scholar]
  • 41.Chandler, C. W. et al. Femtosecond laser ablation (fs-LA) XPS depth profiling of lead halide perovskite thin film solar cells. Surf. Interface Anal.57, 246–252 (2025). [Google Scholar]
  • 42.Fang, Y., Armin, A., Meredith, P. & Huang, J. Accurate characterization of next-generation thin-film photodetectors. Nat. Photon.13, 1–4 (2019). [Google Scholar]
  • 43.Pecunia, V. et al. Guidelines for accurate evaluation of photodetectors based on emerging semiconductor technologies. Nat. Photon.19, 1178–1188 (2025). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Source Data (5.7MB, xlsx)

Data Availability Statement

The source data that support the plots within this paper are provided with this paper. Other data that support the findings of this paper are available from the corresponding author upon request. Source data are provided with this paper.

The codes used for LSTM network training are available from the corresponding authors upon request.


Articles from Nature Communications are provided here courtesy of Nature Publishing Group

RESOURCES