Introduction

The advent of machine vision has fundamentally changed human life1,2,3,4, and proven technologies are merging and leading the transition to Industry 4.05. During the transition, extensive unprocessed images are emerging, posing significant challenges to the image processing systems6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22. In typical designs of processing systems, the sensory units are physically separated from memory and computing units. Visual information is first sent to binary memory via high-power analogue-to-digital conversion (ADC) and then processed by computing units. A large amount of data shuffling between units renders severe speed incongruity and the power-consumption dilemma23,24,25,26. To efficiently address the proliferation of visual information, approaches must be developed to integrate module functions that can reduce the redundant data shuffle from sensing to computing units.

To date, much work has been devoted to integrating multiple functions in one device and developing a data-centric approach. Neuromorphic photonics for vision sensing is now widely developing, including optoelectronic synapse27, metasurface15,19,26, integrated photonics21,28, electric memory array20, etc. Among them, a promising solution, optoelectronic memory, has been proposed, which can be programmed by optical stimuli and read out by electrical operations29,30,31,32. Technologies based on photogating and the Fowler–Nordheim tunnelling mechanism may be suitable. However, the ambiguous trap energy level locations and high barrier lead to a limited response speed and a high operating voltage33,34,35,36.

Here, band-to-band-tunnelling (BTBT)-based optoelectronic memory is realized based on black phosphorus (BP) and indium selenium (InSe). With deliberate band alignment, our device satisfies the critical BTBT condition, exhibiting cumulative photomemory current and a low operating voltage. Due to the infinitesimal barrier, the operating wavelength of the critical BTBT memory, i.e., BP on the InSe device, is extended to the near-infra-red region (940 nm). In addition, the calculated dual negative differential resistance (NDR) points are consistent with the experimental results, demonstrating the emergence of the BTBT process. The corresponding hole memory and electron tunnelling processes are elaborated through time evolution simulation results. Finally, noticing that a poor memory speed leads to severe motion blur, we evaluate its impact on motion detection based on a comparison. With motion blur eliminated, the critical BTBT memory significantly improves both moving target tracking and recognition. The critical BTBT memory, embedded with sensing, integration and memory functions, proposes a better solution for achieving a sub-microsecond photomemory speed, showcasing superiority in intelligent perception (Fig. S1).

Results

Device structure and critical BTBT mechanisms

Figure 1a shows a schematic of the three-terminal critical BTBT memory with source and drain contacts on the BP channel, while the InSe layer is floating and covered by the BP channel as a gate. p++ Si serves as the back gate (Vg). InSe is chosen as the gate because the current of InSe-based heterojunctions is limited by the interface carrier blocking effect29,30,37,38,39,40, increasing the RC time constant (Supplementary Sections 3 and 4). With an enlarged RC time constant, the memory window is remarkably extended, as shown in Fig. 1b. The memory window of the critical BTBT memory reaches 25 V in a counterclockwise direction; in contrast, the memory window of individual BP transistors is relatively narrow. In addition, when the channel material BP is replaced with other materials, such as WSe2 and MoTe2, with similar bipolar characteristics to BP, the memory window is similarly enlarged (Supplementary Section 5), demonstrating the potential for memory applications.

Fig. 1
figure 1

Critical BTBT in BP on InSe devices. a Schematic diagram of the critical BTBT memory. b Transfer characteristics of the critical BTBT memory (red line) and a BP transistor (blue line). c Negative photomemory characteristics of the critical BTBT memory in response to multiple 520 nm laser pulses with a duration of 500 ns. Inset: Demonstration of the 500 ns laser pulse width. In d–g, band alignments are depicted at Vg < 0 with a constant Vd. d Photoresponse mechanism under the critical BTBT condition. Photo-injected electron-hole pairs are separated by a tilted energy band in InSe, and electrons further tunnel into BP, preventing recombination. e Mechanism of hole recombination suppression under the critical BTBT condition. The region where electrons in BP can tunnel to InSe is separated in space from the region where holes are stored, avoiding the recombination with stored holes in InSe. f Schematic of the photoresponse mechanism when the valence band in the channel is below the critical BTBT condition. Electrons in the conduction band in the gate have no final state to tunnel to. Both electrons and holes are stored in the gate, resulting in severe recombination. g Recombination mechanism of stored holes when the valence band in the channel is above the critical BTBT condition. A higher valence band in the channel allows the tunnelling of electrons to deep into the gate. The tunnelling region overlaps with the region occupied by stored holes, causing recombination. f and g refer to the energy band diagrams of other heterogeneous interfaces that do not satisfy critical BTBT conditions

However, there is a substantial difference in the photoresponse behaviours of these devices. With a negative Vg and the application of sub-microsecond level optical stimuli in fixed intervals, only the critical BTBT memory (BP on InSe device) anomalously generates a cumulative and negative photocurrent and preserves it even in the dark state, as shown in Fig. 1c, which is defined as the photomemory current (the performances under different Vg values and different wavelengths are shown in Supplementary Section 6). Conversely, the photoresponses of the MoTe2 on InSe and WSe2 on InSe devices are all positive and stable with no memory characteristics. After the exclusion of the interface defect artefact (Fig. S14), based on the band alignment calculation, the critical BTBT mechanism is proposed to interpret the unique optoelectronic memory characteristics of the critical BTBT memory. Critical BTBT satisfies the two prerequisites for realizing InSe-based optoelectronic memory: (1) fast photocarrier separation and (2) recombination suppression. To reduce the tunnelling of equilibrium carriers, the types of quasiparticles in the bands of the initial and final states should be different. Take the case of hole storage as an example. First, accelerating the photocarrier separation through established channels is crucial in the light state. Note that the interface-blocking effect significantly suppressed the diffusion and drift currents across the interface. A promising channel to cross the interface is BTBT, which enables photogenerated carriers to separate rapidly into adjacent materials under an electric field. Considering the final states to be tunnelled to (Fig. 1d, f), the valence band maximum of the channel \({E}_{{\rm{v}}({\rm{c}}{\rm{h}}{\rm{a}}{\rm{n}}{\rm{n}}{\rm{e}}{\rm{l}})}\) should be above the conduction band minimum of the gate \({E}_{{\rm{c}}({\rm{g}}{\rm{a}}{\rm{t}}{\rm{e}})}\), i.e., \({E}_{{\rm{v}}({\rm{c}}{\rm{h}}{\rm{a}}{\rm{n}}{\rm{n}}{\rm{e}}{\rm{l}})} > {E}_{{\rm{c}}({\rm{g}}{\rm{a}}{\rm{t}}{\rm{e}})}\). Meanwhile, regarding the dark state, as tunnelling is a time-reversal symmetric process, the key is to suppress the undesired recombination caused by reverse BTBT. In an extremely thin gate (InSe layer), the spatial overlap between the electron tunnelling region and the hole storage region must be minimized. Given that the deepest tunnelling region for reverse tunnelling is mainly determined by \({E}_{{\rm{v}}({\rm{c}}{\rm{h}}{\rm{a}}{\rm{n}}{\rm{n}}{\rm{e}}{\rm{l}})}-{E}_{{\rm{c}}({\rm{g}}{\rm{a}}{\rm{t}}{\rm{e}})}\) (Fig. 1e, g and Supplementary Section 15), \({E}_{v({\rm{c}}{\rm{h}}{\rm{a}}{\rm{n}}{\rm{n}}{\rm{e}}{\rm{l}})}\) should be slightly higher than \({E}_{{\rm{c}}({\rm{g}}{\rm{a}}{\rm{t}}{\rm{e}})}\). Therefore, the optimal conditions to achieve both excellent photomemory efficiency and a long retention time should be

$$\Delta E={E}_{{\rm{v}}({\rm{c}}{\rm{h}}{\rm{a}}{\rm{n}}{\rm{n}}{\rm{e}}{\rm{l}})}-{E}_{{\rm{c}}({\rm{g}}{\rm{a}}{\rm{t}}{\rm{e}})}\to {0}^{+}$$

which we denote as the critical BTBT condition. From the Kelvin probe force microscopy (KPFM) characterizations in Fig. S2, the critical BTBT condition is consistent with the band alignment of the critical BTBT memory.

Photomemory characteristics

High-resolution scanning transmission electron microscopy (STEM) confirms a clear and sharp interface at the BP/InSe junction in Fig. 2a. With the critical BTBT condition satisfied, critical BTBT memory exhibits negative photomemory characteristics when Vg is below VNDR, which is the gate voltage when negative differential resistance (NDR) occurs. The holes are stored in the valence band potential wall, which is accompanied by negative gate voltage, rendering a non-volatile photomemory. While the memory characteristics are constrained when Vg is above VNDR, the BTBT pathway is closed with no final states to tunnel to (Supplementary Section 15). Thus, as long as the gate voltage is appropriate, the BTBT channel opens, and the infinitesimal barrier facilitates photogenerated electron tunnelling. Figure 2c shows that when a fixed Vg = −5 V is applied, accompanied by laser stimuli, the negative photomemory current progressively varies with the multiple applied laser stimuli. The device shows a sub-microlevel second negative photomemory current (Supplementary Sections 9, 10). Figure 2d shows the high linearity in multiple dimensions by fitting the formula \(I={P}^{\alpha }\). The extracted values for α are close to 1, demonstrating that the photomemory current can be linearly varied by both the power intensity and pulse width. Furthermore, as shown in Fig. 2e and f, the device shows a broadband response to near-infra-red rays (NIR) and a high dynamic range. The endurance and time stability are shown in Supplementary Sections 11 and 12.

Fig. 2
figure 2

Photomemory characteristics of critical BTBT memory. a Cross-sectional TEM images of the overlapped region, showing a clean interface with an atomic sharpness, and the scale bar is 2 nm. b Corresponding band alignment of critical BTBT memory under different gate voltage. Red arrows represent the direction of BTBT, and black arrows represent the direction of photogenerated holes. c Negative photomemory current in response to 520 nm laser pulses, which are 500–1000 ns in duration with a 0.2 s interval. The photocurrent exhibits multiple states under cumulative laser pulse modulation. The critical BTBT memory works at Vd = 1 V and Vg = -5 V. d Modulation of the photomemory current by the laser pulse width under different intensities. Inset image: Statistical distribution of the light intensity dependence of the photomemory current for different pulse widths. e Linear variation in the negative photomemory current under cumulative NIR laser pulses with a 100 μs duration and a 1 s interval. The linear fit for the blue line (830 nm) is y = a × x + b, where a is −29, b is −38.5, and R12 = 0.9891; the linear fit for the red line (940 nm) is y = c × x + d, where c is −47.9, d is −28.2, and R22 = 0.9889. f Photomemory characteristics of the critical BTBT memory in response to 520 nm laser pulses. Red points indicate the initial state Ioff, and orange points represent the final state Ion, which is read at 0.5 s after the laser pulse. The blue columns represent the ratio of Ioff and Ion. g Replace BP with other materials. The red square represents whether the photo response is positive or negative with memory characteristics. The blue column indicates the difference between EC(InSe) and EV(X), where X represents different materials. Inset image: For the device without the BTBT pathway, the photogenerated electrons will be recombined after light illumination, showing a positive response. h Comparison of the memorable pulse width and corresponding wavelength among reported optoelectronic memories. The references for the selected work can be found in Supplementary Table 1

In contrast, when an arbitrary prerequisite of the critical BTBT condition is violated, the photomemory current disappears. We conducted a series of comparative experiments with the same device structures but different materials, the corresponding detailed discussions are provided in Supplementary Section 7. Only the band alignment of BP/InSe exhibits broken gap configuration; the others demonstrate staggered gap configuration. First, for the devices with different channel materials (InSe still working as the gate), the drift and diffusion currents across the interface are significantly suppressed, and the first prerequisite of fast carrier separation is violated due to the lack of a BTBT channel. Unseparated electron-hole pairs are recombined in InSe under dark states, and the positive photoresponse is only attributed to the channel materials, as shown in Fig. 2g. Second, for the devices with different gate materials (BP still working as the channel), the drift and diffusion currents are, in contrast, unignorable41, contrary to the second prerequisite of recombination suppression. Thus, although driven by the built-in electric field of the PN junction, photogenerated holes remain in the gate, leading to a negative photoresponse in the light states; the inevitably elevated dark current prohibits the photoresponse from being memorized in the dark states. In addition, as b-AsP/InSe demonstrates similar band alignment with BP/InSe, it also exhibits negative photomemory current, as shown in Fig. 2g and Supplementary Section 5. The figures-of-merits of various optoelectronic memory devices are compared in Fig. 2e, showing that the critical BTBT memory has an outstanding photomemory speed and a broadband response.

Experimental observation of dual NDR points

The photoresponse of the critical BTBT memory can be described by the transient behaviour of the quasi-Fermi level and the temporal evolution of the BP/InSe/SiO2/Si structure (Fig. 3a, b and Supplementary Section 13, the fitting parameters are all illustrated in the “Method” section). In the ultrathin InSe layer, photoexcitation induces the quasi-Fermi level of holes to shift approximately parallel to the valence band. Simultaneously, under the modulation of Vg, the holes redistribute inside InSe to reach a quasi-equilibrium, satisfying the Poisson equation. When the quasi-Fermi level is horizontal, the hole storage process is completed. Owing to the extremely short moving distance (nm) and high mobility in the InSe layer, the transition from the light injection state with a tilted quasi-Fermi level to the horizontal storage state occurs within 100 ps42, and prominent photomemory characteristics are achieved. Note that the curve of the density of holes with the photogeneration density (Fig. 3c) resembles the IDVD characteristics of a junction field-effect transistor (JFET); thus, the linear characteristics and accumulated effect can be explained using the JFET model. With increasing photogeneration density, the number of holes stored under different gate voltages almost coincides with the ideal linear curve until the pinch-off point, where a JFET transitions from the linear region to the saturation region, predicting a wide linearity range. When the saturation region is entered, the saturation value of hole storage is determined by the geometry of the triangular potential well formed by the InSe valence band and SiO2. The depth and width of the triangular potential well are equal to the potential drop in and thickness of the InSe layer, respectively, which coincide with the model of the saturation current for a JFET. \({V}_{{\rm{p}}}=2.2\,\text{V}\) can be derived from \({I}_{{\rm{D}}{\rm{S}}}/{I}_{{\rm{D}}{\rm{S}}{\rm{S}}}={(1-{V}_{{\rm{g}}}/{V}_{{\rm{P}}})}^{2}\) for a JFET when the energy band is horizontal, where \({I}_{{\rm{D}}{\rm{S}}}\) and \({I}_{{\rm{D}}{\rm{S}}{\rm{S}}}\) are the drain–source current and saturation current at zero gate–source voltage, respectively. It is noted that the thickness of InSe, which is related to the formation of the triangular potential well, significantly impacts the detection limitation.

Fig. 3
figure 3

Photomemory characteristics and dual NDR mechanism analysis of the critical BTBT memory. a and b Transient behaviour of the hole quasi-Fermi levels near the rising and falling edges of a signal light pulse injected into the InSe/BP heterojunction energy bands. The signal light pulse is a square wave with a duration of 0.1 ns. The times of the rising and falling edges of the pulse are ton and toff = ton + 0.1 ns, respectively. c Linear and saturation behaviour of the number density of stored holes in InSe with absorbed photogeneration density at toff + 4 ms under different gate voltages Vg from −1 to −5 V. The signal light pulse is a square wave with a 1 ns duration. The dashed curve is the boundary between the linear and saturated regions. The dashed-dotted line shows the ideal curve when all the photogenerated holes are stored. d Experimental results show dual NDR in the hysteresis curve of the gate current when the gate voltage is swept from −20 to 20 V (red curve) and back (grey). The positive direction of the hysteresis current is defined as the direction from InSe to BP. The dashed line shows the flat band condition extracted from the saturation behaviour in (c). e The outflow of excess holes due to the decreasing potential well, resulting in an NDR in the hysteresis curves. f Calculated distribution of hole flow \({\rm{d}}{Q}_{{\rm{h}}}/{\rm{d}}V\) with gate voltage Vg and the total number of holes Qh in InSe. g The tunnelling current is strongest when the energy band alignment is flat and decreases sharply when crossing over VNDR. h Calculated electron BTBT flow \({\rm{d}}{Q}_{{\rm{e}}}/{\rm{d}}V\) with gate voltage Vg and the total number of electrons Qe in InSe. Blue dots are time-dependent simulation results of the variation in Qh and Qe, with the gate voltage Vg showing hole outflow near Vhp = −1 V and electron BTBT near VBTBT = 2.2 V, respectively. Purple lines are the hole outflow current \({I}_{{\rm{h}}{\rm{p}}}=({\rm{d}}{Q}_{{\rm{h}}}/{\rm{d}}V)({\rm{d}}V/{\rm{d}}t)\) and electron BTBT current \({I}_{{\rm{B}}{\rm{T}}{\rm{B}}{\rm{T}}}=({\rm{d}}{Q}_{{\rm{e}}}/{\rm{d}}V)({\rm{d}}V/{\rm{d}}t)\). The time-dependent simulation results show that the positions of the peaks of the hole outflow current and BTBT current coincide with the two NDR peaks in (d)

The most direct evidence of BTBT is the NDR point in the Id–Vd curve in the horizontal direction in previous research; however, NDR in the horizontal direction cannot verify the detailed process in the vertical direction. In order to figure out the electron tunnelling in the memory process, we demonstrate the Ig–Vg hysteresis curve and observe dual NDR points in Fig. 3d. The dual NDR points are located at \({V}_{{\rm{g}}}=-1\,\text{V}\) and \({V}_{{\rm{g}}}=2.2\,\text{V}\) in the forward voltage sweeping (Fig. 3d, Supplementary Sections 14, 15). The first NDR point represents the outflow of stored holes, as shown in Fig. 3e. When the voltage is sweeping, the holes are stored in the triangular potential well formed by InSe/SiO2. In contrast, the potential well is narrowing by decreasing Vg, resulting in a current spike due to the excess hole outflow. As the diffusion current of holes varies with the gate voltage \({V}_{{\rm{g}}}\) and the density of holes \({Q}_{{\rm{p}}}\) in InSe, the detailed hole pouring process is demonstrated in Fig. 3f. Under any definite equivalent mobility \({\mathop{\mu }\limits^{ \sim }}_{{\rm{p}}}\), different \({Q}_{{\rm{p}}}\) values correspond to different peak positions, indicating that the memory-induced hole outflow process is history-dependent. The second NDR point represents the electron BTBT process, and the peak position is determined. When the energy band alignment reaches flat with the gate voltage sweeping, there is a strong tunnelling current at VNDR. When the gate voltage crosses over VNDR, the current decreases sharply for no final states to tunnel to, as shown in Fig. 3g, which is also consistent with the large PVR (peak valley ratio) in Fig. 3d. Similarly, the detailed electron tunnelling process is demonstrated in Fig. 3h, showing that the BTBT-induced NDR matches the experimental peak position of the NDR in Fig. 3d at \({V}_{{\rm{g}}}=2.2\,\text{V}\).

Moving target tracking and recognition

A motion process can be regarded as image streaming across different frames, which can be memorized in optoelectronic memory devices. When combined with an interframe algorithm, the movement trajectory is exclusively defined35,43. The critical BTBT memory, with photomemory characteristics, exhibits the potential for motion detection. The optical characterization of critical BTBT memory is shown in Supplementary Section 16. The absorption and quantum efficiency are decisive factors in the application scope of the demonstrated device. Although the infinitesimal barrier facilitates the tunnelling process and exhibits high quantum efficiency, the limitation in absorption still requires further improvement.

Figure 4a shows a schematic diagram of reflective image scanning in a proof-of-concept demonstration. A customized letter “I”-shaped metal pattern on a movable platform is utilized to simulate the moving target across frames (the schematic diagram of the imaging system is shown in Supplementary Section 17). The experimental imaging results in Fig. 4c–e show that even with a short exposure time, the information of the different frames is precisely memorized by our device and remains stable until the readout process. Figure 4f, based on the simulation results, presents the visualized results comparing the tracking ability of the critical BTBT memory and reported optoelectronic memory devices. The limited photomemory speed is set to 10 ms for comparison. To track the moving target, the feature points of frames at t0 are supposed to be detected by a Harris corner detector (Supplementary Section 18) and matched by optical flow across frames sequentially. For optoelectronic memory devices with a low memory speed, motion blur renders matching of feature points across frames difficult (only 1 feature point is matched). In contrast, for the critical BTBT memory, the clear and sharp profile contributes to the precise matching of 17 feature points, and the movement trajectory is exclusively distinguished. In addition, Fig. 4g presents the quantified results of the photomemory speed impact on motion blur. With a limited memory speed, the imaging results of the optoelectronic memory devices demonstrate varying degrees of motion blur. In contrast, for the proof-of-concept fabricated critical BTBT memory array, the 100 μs photomemory speed and exposure time guarantee a clear, sharp profile with motion blur eliminated. Figure 4h intuitively quantifies the influence of motion blur on the recognition accuracy of neural networks. At the 100th training epoch, the accuracy of our device-based neural network exceeds that of the optoelectronic memory-based neural network by more than 16% and finally stabilizes at 91.5%, proving a reliable motion recognition ability.

Fig. 4
figure 4

Comparison between the critical BTBT memory and reported optoelectronic memories in terms of proof-of-concept moving target tracking and recognition. a Reflective imaging using the customized “I”-shaped metal pattern, which can move in the 2D plane for image scanning. The laser pulse is 520 nm with a 200 μs duration. b The red arrow penetrates the same feature point across frames, representing its temporal movement. c–e Photocurrent mapping data scanned at different frames. p represents the same point of the customized “I”-shaped metal pattern, and the red dashed line contains feature point p and its neighbouring pixels. The feature point p, has the same movement trajectory as the whole, and target tracking is simplified to tracking the same points across frames, which is the basis of optical flow. f Double sets of moving trolley datasets obtained by the critical BTBT memory and other optoelectronic memories with an exposure time of 10 ms. The feature points in the two sets of time series images are detected by Harris corner detection and matched through the optical flow method. g The motion blur ratio is defined as the distance covered by the moving target during the exposure time divided by the length of the moving target. Relationship between the motion blur ratio and exposure time (also photomemory speed); different curves represent different trolley speeds. Motion blur exists when the exposure time is 10 ms, while almost no motion blur exists at 100 μs. Inset image: SEM view of the 4 × 4 critical BTBT memory and corresponding photomemory current in response to a 520 nm laser with different pulse widths, with red columns for 50 μs and blue for 100 μs. The solid lines are the results of fitting via a normal distribution. The preparation of arrays is shown in Supplementary Section 19. h The comparison of the accuracy between different neural networks, in which the training database is constructed by the critical BTBT memory and optoelectronic memories. Inset image: Loss function of the critical BTBT memory-based neural network and optoelectronic memory-based neural network

Discussion

In conclusion, we have demonstrated a critical BTBT-based device with photomemory characteristics and a nearly infinitesimal barrier; under the elaborately designed triangular tunnelling region, recombination is suppressed, which leads to a sub-microsecond level response speed and non-volatile memory characteristics. The critical BTBT memory exhibits highly linear and NIR photomemory characteristics to cope with complex and dynamic environments. Furthermore, the dual NDR points observed in the hysteresis curve elucidate the memory and BTBT process, and the theoretical results are consistent with the experimental results. Finally, the comparison between the critical BTBT memory and optoelectronic memory also demonstrates that the photomemory speed (or exposure time) remarkably impacts the moving target tracking and recognition ability. In addition, considering future practical applications, while critical BTBT memory accelerates image processing, it also imposes higher demands on array uniformity. Significant device-to-device variability can degrade the accuracy of tracking and recognition. Therefore, reducing defective states and non-uniformities introduced during material growth and chip processing will be crucial for future research.

Materials and methods

Device fabrication

2D thin films are obtained by mechanical exfoliation from bulk materials supplied by HQ Graphene. A dry fixed-point transfer technology is utilized to transfer BP flakes onto InSe flakes. The substrate consists of highly p-doped silicon and 285 nm SiO2. The electrode patterns are fabricated by standard electron-beam photolithography (EBL). Then, after the thermal evaporation and lift-off processes, the source and drain electrodes, consisting of Cr/Au (10/30 nm), are deposited. After annealing in a nitrogen environment, the device is successfully fabricated.

Characterization and measurements

A Keysight B1500A is utilized to measure the electronic characteristics of a Lake Shore probe station. All the operating environments are under a high vacuum (lower than 1 × 10−3 Pa). Additionally, because both water and oxygen are involved in the degradation of BP, thus extending the oxidation area, double dehumidifiers are in operation during the whole experiment to maintain a dry environment. Laser pulses of 633, 830, and 940 nm are obtained with an ITC4001 Benchtop Laser Diode (Thor Labs). Sub-microsecond light pulses are first generated by a Rigol DG 5071 in the form of a digital electrical signal. Then, this signal controls a Coherent OBIS to generate 520 nm laser pulses. The laser performance is calibrated by a commercial Si-based photodetector, and the output signal is captured by a Tektronix MDO34 oscilloscope. The laser pulse is directed at the device via a reflective optical path. The device is located at the centre of the laser spot. Considering the protective layer doping effect44, there is no protective layer. In contrast, the operating environment is taken seriously to avoid degradation. The critical BTBT memory is preserved in a nitrogen glove box with low water and oxygen contents (both below 0.01 ppm). The long-term stability demonstration is shown in Supplementary Section 11.

Imaging system and analysis

The customized “I”-shaped metal pattern is sequentially fabricated by EBL, thermal evaporation and lift-off processes, and Cr/Au (5/25 nm) is deposited onto the SiO2/Si substrate. The “I”-shaped pattern is placed on a mobile platform as a moving target. A 633 nm laser with a 200 μs pulse width is focused on the surface of the “I”-shaped pattern through an objective lens. After being reflected, the laser pulse irradiates the critical BTBT memory through an optical pathway consisting of an objective lens, a half mirror and a focusing lens. Finally, an Agilent 2902A semiconductor parameter analyser is utilized to perform time-dependent photocurrent measurements, and the current is read out after 0.5 s of optical stimulus. In this active, reflective imaging system, the scanning imaging principle is based on the different reflections of various substrates (Au and SiO2/Si substrates), resulting in different laser intensities. Through the negative photomemory current of the device at different positions, the shape of the moving target (“I”-shaped pattern) can be reconstructed.

Numerical simulation of the photomemory performance and dual NDR

We adopt COMSOL Multiphysics to perform the finite element method (FEM) simulation of the energy band profile and temporal evolution of the BP/InSe/SiO2/Si structure. The material properties of SiO2 and Si are taken from the material library. The bandgaps29, affinities29, electron and hole mobilities34,45,46,47, electron and hole masses48,49, and dielectric constants50,51 of BP and InSe are taken from published articles and our KPFM measurement results (Fig. S4). The solution process includes a semiconductor equilibrium step solving only Poisson’s equation, a semiconductor stationary step, and a series of time-dependent steps with iteration parameters finely optimized. BTBT between the valence band of BP and the conduction band of InSe is realized by a customized generation and recombination process, with the explicit form of the current given in Supplementary Section 15. The calculations of the hole outflow current and BTBT current are based on Supplementary Section 14 and are performed using custom scripts written in MathWorks MATLAB. A MATLAB implementation of the Runge–Kutta method is adopted to perform the time-dependent simulation of the density of holes and electrons and the two corresponding NDR points in the hysteresis curve.