Abstract
Multispectral features across visible (Vis), near-infrared (NIR) and mid-infrared (MIR) provide complementary information for intelligent vision in challenging environments. Precise extraction of multispectral features within the sensor level becomes increasingly critical, yet remains elusive for next-generation vision systems. Here we report a multispectral sensor constructed by a MoTe2/BP heterojunction with gate-tunable band alignments between type-Ⅰ and type-Ⅱ, enabling bipolar Vis/NIR (473 ~ 1064 nm) and unipolar MIR (3.7 and 4.6 μm) responses under zero bias for in-sensor Vis/NIR convolution and MIR target recognition. Beyond single-device operation, a 9×1 linear array validates device uniformity and preliminary array-level feasibility. Furthermore, the multispectral sensor extracts crosstalk-free Vis/NIR and MIR features under co-illumination of 980-nm and 3.7-μm light, increasing recognition accuracy from 28% to 84% in reconstructed system-level demonstrations. By fully leveraging the tunable 2D-material band structure, this work demonstrates a universal sensor configuration for multispectral perception with in-sensor processing functions.
Subject terms: Mid-infrared photonics, Optical sensors, Two-dimensional materials
Achieving precise extraction of multispectral features is a critical bottleneck for next-generation vision systems. Fang et al. report a multispectral sensor that distinguishes input light in the visible/near-infrared ranges from that in the mid-infrared range at the sensor level, enabling in-sensor multispectral processing.
Introduction
The light spectrum in natural visual environments spans a broad range of wavelengths, including the visible (Vis), near-infrared (NIR), and mid-infrared (MIR) regions. Each spectral band carries fundamentally distinct physical information and contributes complementary modes of visual perception. Among them, Vis and NIR light primarily convey rich static spatial and dynamic spatiotemporal features, forming the basis of most state-of-the-art intelligent photodetectors for in-sensor visual perception1–7 In addition, MIR light encodes intrinsic thermal radiation and molecular fingerprint features, which not only enable penetration through visual obstructions but also facilitate material identification and enhanced target discrimination under challenging conditions8–15 Collectively, the complementary information carried by Vis, NIR, and MIR bands establishes multispectral perception as a critical foundation for next-generation intelligent vision systems.
To meet the demands of Vis-to-MIR multispectral sensing, conventional vision systems typically rely on bulky optical filters and physically separated photodetectors dedicated to different spectral bands, such as silicon-based cameras for Vis/NIR and thermal cameras for MIR sensing16–18. These architectures increase system complexity and hinder device miniaturization and integration. In contrast, recent advances in narrow-bandgap materials have enabled intrinsically broadband photoresponse spanning from Vis to MIR region19–23. However, their strong broadband sensitivity to both Vis/NIR and MIR light inevitably induces spectral crosstalk, making it difficult to extract spectral features independently at the sensor level. Despite rapid progress in intelligent vision sensors with multifunctional in-sensor operations6,7,24,25, achieving low-crosstalk, spectrally distinguishable Vis-to-MIR multispectral intelligent sensing within a single device remains elusive.
In this work, we report a Vis/NIR- and MIR-distinguishable multispectral vision sensor based on a gate-tunable bipolar heterojunction. A heterojunction formed by bipolar molybdenum ditelluride (MoTe2) and narrow-bandgap black phosphorus (BP) enables gate-controlled switching between type-I and type-II band alignments with opposite built-in potentials under negative and positive gate voltages, respectively. In the type-I configuration, Vis/NIR-generated carriers are separated on the MoTe2 side, producing positive photocurrents due to the built-in electric field from BP to MoTe2. In contrast, the MIR photocurrent is negligible because MIR-generated carriers are confined within the BP side by interfacial barriers for both electrons and holes arising from the straddling band alignment. In the type-II configuration, both Vis/NIR- and MIR-generated carriers are separated by the built-in electric field from MoTe2 to BP enabled by the staggered band alignment, yielding negative photocurrents. This non-trivial, spectrally selective response to Vis/NIR and MIR lays the foundation for independent extraction of Vis/NIR and MIR features. Consequently, the heterojunction demonstrates bipolar photoresponses to Vis/NIR illumination (473–1064 nm) and unipolar photoresponses to 3.7 and 4.6 μm MIR light, enabling in-sensor Vis/NIR convolution and MIR target recognition. Beyond single-device operation, a 9 × 1 linear device array further verifies the device-to-device uniformity and suggests the potential of array-level implementation. Furthermore, under co-illumination with 980-nm and 3.7-μm light, the sensor performs in-sensor multispectral perception by separating representative Vis/NIR and MIR features, improving recognition accuracy from 28 to 84% in reconstructed system-level demonstrations of a complex lighting environment. This work highlights the application potential of intelligent vision sensors with in-sensor multispectral perception across the Vis-to-MIR range, with prospects for extended spectral coverage in future implementations.
Results
Design of multispectral vision sensors
Complex lighting conditions in real-world environments present major challenges for vision sensors trying to extract features across different spectral bands. When sensing is extended into the MIR range, in conditions without using bulky optical filters, shorter-wavelength Vis/NIR radiation can introduce spectral crosstalk that degrades MIR measurements. Figure 1a shows a schematic of nighttime vision in rainy weather, where conventional Vis/NIR sensors suffer severe interference due to scattering and attenuation by rain and fog26. In this scenario, a multispectral sensor must recognize three representative targets, including cars, traffic signs and pedestrians, where MIR thermal signals can penetrate through rain and fog, providing an important complement to Vis/NIR features. Commercial driving assistance systems combine Vis/NIR cameras with separate thermal detectors to cover both bands, which require bulky optics and increase system complexity17,27,28. Here, we propose to integrate multispectral sensing and processing in a single sensor, combining Vis/NIR convolution with MIR-enhanced vision functions. In the schematic, cars exemplify Vis/NIR features, whereas pedestrians exemplify MIR thermal signatures. Embedded with Vis/NIR kernel operation and tunable MIR responsivity, the multispectral vision sensor can extract the car’s edge feature and pedestrians’ clear profile (Fig. 1b). To achieve broadband vision from Vis/NIR to MIR together with spectral selectivity, we designed a gate-tunable MoTe2/BP heterojunction with rationally designed band alignment. The bandgap of MoTe2 (~1.0 eV) and BP ( ~ 0.3 eV) corresponds to the intrinsic absorption of Vis/NIR and MIR light, respectively. By tuning the Fermi level of the bipolar MoTe2 to enable either p-type or n-type conduction, the heterojunction can be switched between type-Ⅰ and type-Ⅱ band alignments under negative and positive gate voltages (-Vg and +Vg), respectively (Fig. 1c). In the switch between these two band alignments, the photogenerated carriers in MoTe2 are supposed to generate bipolar photovoltaic response due to the reversal of built-in electric field, as indicated by the upwards and downwards band bending of MoTe2 near the interface. In contrast, photogenerated carriers in BP encounter barriers in both the conduction and valence bands under type-I alignment, which hinders charge extraction. Under type-II alignment, the staggered band offset promotes carrier separation and yields a unipolar photovoltaic response (detailed mechanisms are illustrated in Fig. 2a–c). Based on this understanding, the response characteristics can be proposed and schematically shown in Fig. 1d, demonstrating gate-tunable bipolar Vis/NIR and unipolar MIR photoresponses.
Fig. 1. Design of the multispectral vision sensors.

a Schematic of the multispectral in-sensor vision architecture, where a 2D-material-based photodetector array directly performs sensing and in-sensor computing. b Corresponding in-sensor computing process of Vis/NIR convolution and MIR-enhanced vision, where the edge of a car and the pedestrian silhouette are highlighted. c Band-alignment switching of the MoTe2/BP junction between type-Ⅰ and type-Ⅱ modulated by gate voltage (Vg). d Response characteristics showing the bipolar Vis/NIR and tunable MIR photoresponse. Source data are provided as a Source Data file.
Fig. 2. Gate-tunable bipolar NIR and unipolar MIR photoresponses.

a Energy-band diagram of the MoTe2/BP junction at zero bias, showing the gate-tunable Fermi level of MoTe2. b,c Corresponding photoresponse mechanism under 633-/980-nm Vis/NIR and 3.7-μm MIR lights, respectively, demonstrating different photoresponse behaviors of 633/980 nm and 3.7 μm in the switching between type-Ⅱ and type-Ⅰ band alignment. d,g Zero-bias photovoltage measurements under d 980 nm and g 3.7-µm illumination, respectively, where the polarity of the photovoltage indicates the direction of the built-in electric field and carrier separation behaviors, consistent with the mechanisms illustrated in b and c. e,h Gate-tunable photocurrents under e 980-nm and h 3.7-μm illumination. f,i Photocurrents as a function of power density for f 980-nm and i 3.7-μm light, showing linear relationship under different gate voltages. Source data are provided as a Source Data file.
Gate-tunable visible/near-infrared and mid-infrared response
Leveraging the spectrally selective photoresponse to Vis/NIR and MIR illumination, the MoTe2/BP heterojunction provides a platform for multispectral sensing with in-sensor spectral feature extraction. The devices are fabricated using mechanical exfoliation and dry transfer. Firstly, isolated MoTe2 and BP transistors are fabricated to confirm the efficient contact between materials and metal contact, as well as the bipolar transfer characteristics of MoTe2 (Supplementary Fig. 1). Then the optical microscopy image of the fabricated MoTe2/BP heterojunction is shown in Supplementary Fig. 2a. The detailed gate-tuning working mechanism is shown in Fig. 2a–c, where 633/980 nm and 3.7 μm lasers are used as representative sources for Vis/NIR and MIR tests, respectively. Figure 2a shows the band alignment of MoTe2 and BP before equilibrium, where the MoTe2 with bandgap of around 1.0 eV absorbs Vis/NIR light and narrow-bandgap BP (0.3 eV) absorbs Vis/NIR/MIR light11,29. Note that both MoTe2 and BP exhibit above-bandgap optical absorption in the visible range, leading to response characteristics similar to those at 980 nm (verified in Supplementary Fig. 8 and Fig. 13d). Therefore, the 980-nm NIR response characteristics is hereafter used as a representative of the Vis/NIR response. The Fermi level of MoTe2 can be tuned upwards and downwards by applying positive and negative gate voltages, respectively. After equilibrium, the intrinsic MoTe2-BP forms a type-Ⅰ junction, exhibiting rectifying characteristics under forward bias when MoTe2 is grounded, as shown by the I-V curve (Supplementary Fig. 2b). The transfer curve (Supplementary Fig. 2c) confirms the bipolar transport characteristics of the heterojunction, enabling well-tuned band alignment from type-Ⅰ to type-Ⅱ in the MoTe2-BP heterojunction, and thus establishing spectral-selective photoresponse under NIR and MIR illumination. As shown in Fig. 2b, c, MoTe2-BP forms type-Ⅱ and type-Ⅰ heterojunctions at large positive Vg (blue rectangle) and negative Vg (red rectangle), respectively. Under 980-nm NIR light, charge carriers are generated in both MoTe2 and BP and then separated near the depletion region (Fig. 2b). In the staggered type-Ⅱ junction, photogenerated carriers in both MoTe2 and BP can be collected and yield a negative photocurrent (Fig. 2b, top). In the straddling type-Ⅰ junction, only carriers generated in MoTe2 can be extracted, while those in BP encounter prominent barriers and are effectively blocked (Fig. 2b, bottom). In parallel, 3.7 μm MIR illumination excites carriers only in BP, producing a negative photocurrent in the type-Ⅱ junction (Fig. 2c, top), while the photovoltaic response in the type-I junction remains near zero (Fig. 2c, bottom). Notably, under 980 nm illumination, the temperature rise is typically negligible and thus the photothermoelectric (PTE) contribution can be ignored, whereas MIR radiation is more prone to induce local heating and yield a detectable negative PTE component11, details are discussed in Supplementary Note 1.
The following gate-tuning I-V tests (Supplementary Fig. 2d) confirm the band configurations illustrated in Fig. 2b, c, showing distinct rectifying behaviors of the PN and PP+ junctions4,30 In addition, the open-circuit photovoltage measurements provide key insights into the electron-hole separation enabled by the built-in electric field in different junctions31,32. As shown in Fig. 2d, the photovoltages under 980-nm NIR light exhibit a clear bipolar behavior, averaging −0.10 V at Vg = −20 V and +0.05 V at Vg = +40 V. In contrast, under 3.7-μm MIR illumination, the photovoltage at Vg = −20 V is almost negligible compared to that at Vg = +40 V (Fig. 2g), verifying that MIR-generated carriers are inefficiently separated in the type-Ⅰ junction. Gate-tunable photocurrents and a linear dependence on incident power are critical for achieving the in-sensor computing functions24, while the capability of bias-free detection further ensures energy-efficient operation. Thus, all photoresponse measurements in this work are taken at zero bias. Under 980 nm illumination, the device shows pronounced gate-tunable bipolar photocurrents over a Vg range from negative to positive (Fig. 2e), which is the key device performance for in-sensor convolution operations5,33. In contrast, the photocurrents at 3.7 μm exhibit unipolar behavior, with near-zero response at Vg = 0 V and −20 V, and a monotonically increasing negative response from Vg = +15 V to +35 V (Fig. 2h). The photocurrent results are consistent with the photovoltage measurements, confirming the distinct NIR and MIR response characteristics in the gate-tunable type-Ⅱ and type-Ⅰ heterojunctions. The in-sensor multiply-accumulate operations rely on linear photoresponse to the incident light inputs7,24 In our device, the photocurrents for both 980-nm and 3.7-μm light exhibit a linear dependence on incident light power (Fig. 2f, i and Supplementary Fig. 3). In addition, the linear dependence of the device on a broader range of 980 nm light intensities is demonstrated, with a linear dynamic range of 62.5 dB (Supplementary Fig. 4), which is crucial for in-sensor computing in practical complex illumination scenarios34. It is worth noting that the 3.7-μm responses from Vg = −20 V to 0 V are almost negligible, ensuring that the response at negative Vg originates solely from 980-nm light and enabling a high spectral rejection ratio, which is crucial for the switchable detection between NIR and MIR bands. The device also exhibits strong polarization sensitivity, with an extinction ratio of approximately 50: 1 under linearly polarized 3.7-μm illumination (Supplementary Fig. 5). Moreover, the response speed is shown in Supplementary Fig. 6, demonstrating a fast response time ranging from 40 to 60 μs under NIR and MIR illumination. The noise spectra at different gate voltages are measured, and the corresponding 980-nm detectivities are calculated as shown in Supplementary Fig. 7, suggesting that the detectivity is mainly dominated by the gate-tuned responsivity in this device. The full-spectral response is further measured at 473, 532, 633, 980 and 1064 nm for Vis/NIR detection and 3.7 and 4.6 μm for MIR detection (Supplementary Fig. 8), showing spectral-selective response between Vis/NIR and MIR.
In-sensor image convolution and letter recognition
Beyond single-device characterization, we further fabricated a 9 × 1 MoTe2/BP linear device array to evaluate the device-to-device uniformity and array-level feasibility. As shown in Fig. 3a, the linear array consists of nine MoTe2/BP heterojunction units contacted by metal electrodes. The I-V characteristics of the nine devices exhibit similar output behaviors (Fig. 3b), indicating reliable electrical contact and consistent junction transport across the array. In addition, the gate-dependent photocurrent under 980-nm illumination shows reproducible bipolar modulation among different devices, confirming stable gate control and good uniformity of the photoresponse (Fig. 3c). These results suggest that the MoTe2/BP heterojunction devices exhibit reasonable uniformity and stability for preliminary array-scale validation. To implement the in-sensor convolution functions, the uniform bipolar photoresponse states of the nine devices were then programmed as positive and negative convolution weights. As shown in Figs. 3d and 3e, a representative edge-extraction convolution kernel consisting of −1 at the edges and 8 at the center is constructed by the nine devices5,33. Based on experimentally measured response, this numerical implementation uses photocurrents of +40 nA at Vg1 = −15 V and −5 nA at Vg2 = +14 V for kernel element 8 and −1, respectively. The detailed gate-tuned responsivities of a single device under various power intensities are shown in Supplementary Fig. 9. Figure 3f shows the input and output images of the edge-extraction processing, where the outlines of three typical objects of a roundabout traffic sign, a left-turn arrow marking and a car, can be clearly discerned from the background (Fig. 3g). In addition, other common convolution functions, including Emboss and Sharpen, are further enabled by the multi-value bipolar states. As shown in Supplementary Fig. 10a, an Emboss kernel is used to enhance edges in specific directions and simulate the bright and dark surfaces under lighting through the differences in adjacent pixels. And a Sharpen kernel enhances image details and edges by increasing contrast in areas of transition, transforming a blurred image into a clearer one (Supplementary Fig. 10b). These operations provide a numerically constructed proof-of-concept demonstration of versatile in-sensor NIR image convolution functions enabled by the experimentally measured photoresponses.
Fig. 3. In-sensor NIR image convolution based on 9 × 1 MoTe2/BP linear array and letter recognition implemented with MIR responsivities.

a Optical microscopy image of the fabricated 9 × 1 MoTe2/BP linear array. Scale bar, 40 μm. b I–V characteristics and c gate-dependent 980-nm photocurrent of the nine devices in the array, showing good device-to-device consistency and reliable gate modulation. d Implementation of bipolar 980-nm response states for edge-extraction convolution Kernel. e Photocurrent distribution from device1 to device9 (D1 to D9) under the two programmed states at Vg1 and Vg2. f Numerical demonstration of in-sensor convolution of a nighttime image using the Kernel constructed by the array in d and e. g Extracted edge-enhanced features, including a Roundabout traffic sign, a Left-turn road marking, and a car. h Representative input images of three N T U letters in 9 × 9 pixels. i Training process of the in-sensor neural network, which consists of an input layer and an output layer, with 3.7-μm responsivity states employed as synaptic weights. j Normalized in-sensor outputs f1, f2 and f3 of the corresponding N, T and U classifier, respectively, as functions of training epochs. A larger output indicates higher in-sensor recognition confidence of each letter. k Weight distribution after 10 epochs of training. Source data are provided as a Source Data file.
Moreover, to illustrate the potential of the device for in-sensor computing with MIR optical inputs, we build a two-layer neural network using experimentally measured reconfigurable 3.7-μm responsivity states as shown in Supplementary Fig. 9d–f. The training dataset is made of 9 × 9-pixel images including three letters of N, T and U with different noise levels (Fig. 3h and Supplementary Fig. 11). The image vectors of three letters are separately mapped in the input layer with 9 × 9 × 3 input neurons and fully connected to the three output neurons for N-, T-, U-classifiers (Fig. 3i). Each output neuron applies an activation function to its weighted sum to produce normalized outputs f1, f2 and f3 ranging from 0 to 1. During training, these outputs are compared with their target values to calculate the output errors, which are then backpropagated through the network to update the weights (details see Methods). Figure 3j shows the normalized outputs of each classifier with different inputs, which simulate the total output currents of the device when conducting in-sensor classification of N T U images, and the input image can be classified by simply comparing the three output currents1,33 In the ten epochs of training, the output f1 which corresponds to N-classifier is gradually enhanced when inputting the N letter images while rapidly suppressed when inputting T and U images, and the T-classifier and U-classifier also exhibit similar recognition capabilities for their target letter (Fig. 3j). The average recognition accuracy of the three classifiers reaches 100% in ten epochs, with target-to-distractor output ratio gradually increasing with training epochs and finally exceeding two orders of magnitude (Supplementary Fig. 12a, b). Figure 3k shows the weight distribution of final training, displaying distinct features of the respective letters and exhibiting effective learning progress compared to initial training (Supplementary Fig. 12c, d).
Multispectral feature extraction
The above results suggest the potential for reconfigurable in-sensor image processing for both NIR and MIR under individual illuminations. However, in practical scenarios, vision sensors must process multispectral inputs simultaneously, where different bands encode complementary features essential for precise perception under diverse environmental conditions35–37. Here we demonstrate a proof-of-concept street scenario where vision sensors in the drone receive substantial information across different spectral bands, as illustrated in Fig. 4a. The Vis/NIR features include cars, traffic signs (such as numbers on speed limit signs), and pedestrians are here employed as representative MIR targets for illustrative purposes although the MIR radiation from human body is at longer wavelengths (9-10 µm) than we experimentally tested at 3.7 μm. The detection ability of MoTe2/BP heterojunction for 9-10 µm is limited by the weak absorption of BP, which could be improved by using materials with smaller bandgap (detailed discussion see Supplementary Note 2). To effectively detect both Vis/NIR and MIR signals, vision sensors require broadband detection capability. However, the complex spectral information carried by diverse targets can introduce spectral crosstalk when distinguishing Vis/NIR and MIR targets, thereby degrading the recognition performance of the vision system. To suppress the spectral crosstalk between Vis/NIR and MIR optical inputs, we fully exploit the distinct gate-tunable response of Vis/NIR and MIR. As shown in Fig. 4b, we tested the gate-tuning photocurrents under individual illumination of 980-nm NIR, 3.7-μm MIR and co-illumination by the two wavelengths. The photocurrents of co-illumination are almost equal to the sum of their respective responses across the gate voltage range from −20 V to +30 V, as shown by blue line and black line in Fig. 4b. The individual response of 980-nm light shows bipolar characteristics with reversal point at +5 V gate voltage while 3.7-μm response is near zero from −20 to 0 V, which provides a large spectral rejection ratio (R980 nm/R3.7 μm) of more than four levels of magnitude at −20 V (Supplementary Fig. 13). Benefit from this distinct response between NIR and MIR illumination, the net NIR features can be extracted with positive photocurrents by switching the gate voltage to −5 V (Frame 1), as represented by a car in blue. Then switching gate voltage to +25 V (Frame 2), both NIR and MIR features are captured with negative photocurrents, as represented by a car and a pedestrian in red. Due to that the 980-nm responses at −5 V and +25 V are equal with opposite polarity, the net MIR features can be captured by adding Frame 1 and Frame 2. The switchable photocurrents in single pixel are shown in Fig. 4c, where co-illumination photocurrent at −5 V is +36 nA, which is equal to net 980-nm photocurrent, and co-illumination photocurrent at +25 V is −58 nA. In result, adding +36 nA and −58 nA is −22 nA, which is equal to net 3.7-μm photocurrent. For visible light, it has been verified that 633-nm photoresponse varied with gate voltages is consistent with that of 980-nm NIR light within the range of −20 to +30 V (Supplementary Fig. 13d). Therefore, in this process the NIR signal can be used to represent the result of overall Vis/NIR band. Based on the experimentally measured Vis/NIR and MIR characteristics, the operation of the switchable Vis/NIR and MIR vision is further numerically reconstructed and schematically illustrated in Fig. 4d, where Frame 1 contains net Vis/NIR features with positive outputs (blue car), while Frame 2 comprises both Vis/NIR and MIR features with negative outputs (red car and pedestrian overlapped). By summing up the outputs of Framews 1 and 2, the Vis/NIR outputs are canceled by the opposite photocurrents with same intensity, yielding an isolated MIR image of the pedestrian. Subsequently, this switchable photoresponse enables selective extraction of Vis/NIR and MIR signals, thereby suppressing spectral crosstalk, which is hard to avoid in broadband photodetectors at the sensor level. In addition to the two-frame operation mode, a subpixel-array architecture could be adopted, where different subpixels within one pixel are programmed into distinct operating states1, enabling simultaneous acquisition of Vis/NIR and MIR information within a single exposure, as discussed in Supplementary Fig. 19 and Note 3.
Fig. 4. Application demonstration of Vis/NIR and MIR distinguishable vision sensor.

a Schematic illustration of an application scenario incorporating complementary Vis/NIR (car, digit) and MIR (human) features. b Gate-tunable photocurrents under individual illumination and co-illumination of 980-nm NIR and 3.7-μm MIR light. The photocurrents under simultaneous illumination equals the sum of the individual 980-nm and 3.7-µm photocurrents, enabling extraction of pure Vis/NIR and mixed Vis/NIR + MIR features, as represented by a blue car image and a red car+human image, respectively. c Corresponding I-t tests showing the gate-switching operation for extracting Vis/NIR and MIR features. At Vg1 = −5 V, the sensor only responds to Vis/NIR features with positive photocurrent (I1 = +36 nA). At Vg2 = +25 V, the sensor response to both NIR and MIR features, with negative photocurrent (I2 = −58 nA). The MIR features can be isolated by adding I1 and I2. d Proof-of-concept illustration of multispectral vision sensor operated in two frames, showing crosstalk-free Vis/NIR (car) and MIR (human) features. The input images are numerically constructed based on the spectral noise extracted from experimentally measured device responses, as shown in Supplementary Figs. 14–17. e Three-layer artificial neural network for classifying multiple targets, including cars, humans, and digits from 0 to 9. f Comparison of the classifying accuracy among multispectral, broadband and narrowband vision sensors. Source data are provided as a Source Data file.
As illustrated in Fig. 4a, when multispectral signals enter the vision sensor, the sensor must separate target features from complex backgrounds while suppressing spectral crosstalk. Conventional approaches rely on separate Vis/NIR cameras and MIR thermal imaging cameras, along with bulky optical filters, mechanical switching components and complex backend algorithms to achieve spectral separation16,17,38. This leads to large system volume, high power consumption, and additional computation latency. For comparison, broadband detectors such as BP-based photodetectors cover a wide spectral range from Vis/NIR to MIR19,20,39, but they suffer from inter-band interference between Vis/NIR and MIR signals under complex illumination conditions. Narrowband photodetectors, on the other hand, provide selective sensitivity to a designated spectral window, yet inherently lack perceptual capability for other bands40,41. Meanwhile, nonlinear upconversion has demonstrated considerable promise as a complementary system-level approach for high-speed and snapshot MIR spectral imaging by transferring MIR signals to wavelengths accessible to mature silicon cameras14,42–44. However, further developments may be needed to enable the simultaneous acquisition of native Vis/NIR and upconverted MIR signals on a common silicon imaging platform while preserving clear spectral discrimination. In our Vis-to-MIR multispectral vision sensor, spectral crosstalk can be suppressed by gate-voltage modulation, enabling in-sensor extraction of Vis/NIR and MIR features. To demonstrate the in-sensor multispectral vision capabilities of the device at a numerically reconstructed system level, we build a customized dataset including cars and digits representing Vis/NIR features and humans representing MIR features (Supplementary Fig. 14)35,45. The demonstration numerically implements a two-channel, three-layer artificial neural network (Fig. 4e) to classify 12 types of Vis/NIR and MIR features including handwriting digits 0 ~ 9, cars and humans.
The Vis/NIR and MIR switchable vision sensors enable clear extraction of both types of spectral features, with MIR-to-Vis/NIR spectral crosstalk suppressed to below 1% in a wide gate voltage range (Supplementary Fig. 15a). And the Vis/NIR-to-MIR spectral crosstalk arises from the residual error due to the incomplete cancellation of the positive and negative Vis/NIR responses, which can be quantitatively represented by the standard deviation of the 980-nm responsivity under varying light intensities. The resulting crosstalk can be suppressed to approximately 3% (Supplementary Fig. 15b). Due to the low spectral crosstalk between Vis/NIR and MIR, the inputs used for network testing are low-noise images of digits, cars and humans (Supplementary Fig. 15c). As a result, the Vis/NIR-MIR switchable vision sensors achieve high overall recognition accuracy of 84% (Fig. 4f, Supplementary Fig. 15d, e and Note 4).
Here broadband vision sensors are compared using the same network, which can be represented by the type-Ⅱ MoTe2-BP junction with gate tuning to +30 V, where the device can respond to both Vis/NIR and MIR lights with relatively large responsivities (Supplementary Note 4). Similarly, we also defined the spectral crosstalk between Vis/NIR and MIR, as shown in Supplementary Fig. 16. According to the noise-to-signal ratio, 50% and 200% Gaussian noise are added to the testing images of digits/cars and humans, respectively. The resulting overall recognition accuracy for the three categories is 67% (Fig. 4f, Supplementary Fig. 16), indicating that the detection and discrimination capability to multispectral features of the broadband detector is significantly affected by spectral crosstalk. For narrowband vision sensors, either narrowband Vis/NIR or MIR sensors exhibit no responsivity to the complementary spectral band, which inevitably results in recognition failure of the associated targets. For instance, when a narrowband MIR sensor is incapable of detecting Vis/NIR signal, the corresponding Vis/NIR channel in the network is input with images made of random noise (Supplementary Fig. 17), resulting in car/digit recognition accuracy equal to zero and an overall accuracy as low as 28%. The comparison of overall recognition accuracy of the three types of devices as a function of training epochs is summarized in Fig. 4f, highlighting the precise perception of the multispectral vision sensors for both Vis/NIR and MIR features. The accurate recognition of Vis/NIR and MIR features may enable more reliable target detection in adverse environments such as fog, rain, and nighttime conditions. By adaptively capturing the most informative spectral cues, multispectral vision sensors are promising to enhance robustness against crosstalk and improve situational awareness in complex application environments, such as autonomous driving, intelligent surveillance, night-time navigation and others.
Discussion
In summary, we have demonstrated a Vis/NIR- and MIR-distinguishable multispectral vision sensor based on a gate-tunable bipolar MoTe2/BP heterojunction, which can be reconfigurably switched between type-Ⅰ and type-Ⅱ band alignments. This spectral-switching detection enables either selective Vis/NIR sensing or broadband Vis/NIR + MIR sensing operated at the sensor level. This distinct spectral response allows the clear extraction of both Vis/NIR and MIR features, suppressing spectral crosstalk and ensuring accurate multispectral perception. Such multispectral sensors hold significant application potential for enhancing machine vision extended to the MIR region in complex environments.
Distinctively, this work underscores the unique value of passive MIR thermal imaging for advanced intelligent sensing. Beyond Vis/NIR detection, MIR encodes intrinsic thermal emission that is especially informative under low-light or low-visibility conditions17,28,46. While MIR imaging is established in specialized fields such as defense, surveillance and advanced driver assistance systems, its integration into general-purpose vision systems remains rare due to detector material constraints, cooling requirements, and cost17,46–48. Of course, the scalable implementation of 2D-material heterojunction detector arrays still faces key challenges in materials growth, CMOS-compatible fabrication, heterogeneous integration, and backend interfacing, as further discussed in the Supplementary Note 3. Nevertheless, our results demonstrate a sensing capability that is both distinctive and underexplored, with significant potential for broader machine-vision applications as MIR technologies advance. Building on this paradigm, similar heterojunction devices with switchable band alignment could be extended to the long-wave infrared regime (detailed discussion in Supplementary Note 2 and Note 5), paving the way toward broader multispectral sensing and advanced intelligent vision systems.
Methods
Fabrication and characterization of devices
The devices reported in this work were fabricated by stacking mechanically exfoliated molybdenum ditelluride (MoTe2) and black phosphorus (BP) flakes to form a van der Waals heterojunction. Bulk MoTe2 and BP crystals were mechanically exfoliated onto polydimethylsiloxane (PDMS) stamps. Flakes with suitable thicknesses were first identified by optical microscopy. The selected MoTe2 flake ( ~ 15 nm) was first transferred onto SiO2 (285 nm) substrate with highly doped Si, followed by the sequential transfer of the BP flake ( ~ 50 nm) using a PDMS-assisted dry transfer. After the transfer, Cr/Au (5/50 nm) metal source and drain electrodes were patterned by a direct-write lithography system and deposited by electron-beam evaporation. After lift-off, the devices were covered by a polymethyl methacrylate (PMMA) layer to protect BP from degradation for subsequent tests. For array fabrication, the MoTe2/BP heterostructure was patterned into individual device units by reactive ion etching (RIE), with the gases of Ar, CHF3 and O2. The highly doped Si substrate served as a back gate to electrostatically tune the Fermi level of MoTe2. Electrical tests were conducted with a precision source/measure unit (Keysight B2912A). Response time was measured by a digital oscilloscope (Keysight DSOX3054T). Light sources were provided by tunable mid-infrared lasers at 3.7 and 4.6 μm (Daylight Solution, MWIRCat), laser diodes at 473 nm, 633 nm, 1064 nm and fiber-coupled lasers at 532 nm and 980 nm. Optical power was monitored with a thermal power meter (Ophir, Nova display-ROHS) and an optical power meter (Thorlabs, PM100D). All experiments were conducted in ambient atmosphere at room temperature.
In-sensor image convolution and classification
In-sensor image convolution was implemented by directly encoding bipolar 980-nm responsivity states as convolution kernel weights. The output photocurrent represented the analog multiply–accumulate (MAC) operation between the optical intensity and the responsivity-encoded weight. For the in-sensor letter classification, Gaussian noise (σ = 0.1, 0.2, and 0.3) was added to the binarized N T U image in 9 × 9 pixel, 1000 images were used for training, and 150 images were used for testing for each letter. The photocurrent outputs were normalized by f = (1 + e-αI)−1 to produce the outputs.
Supplementary information
Source data
Author contributions
Q.W. supervised the project. S.F., F.W., and Q.W. conceptualized the idea. S.F. designed and fabricated the devices. S.F., F.C., and J.H. performed the image classification. W.C., C.H., H.M., J.Y., Z.Z., and C.W. provided testing assistance. S.F., F.W., and Q.W. analyzed the data. S.F. and F.W. drafted the manuscript, and Q.W. revised the manuscript. All authors have discussed the results and commented on the manuscript. S.F. and F.W. contributed equally to this work.
Peer review
Peer review information
Nature Communications thanks Jie Yang and the other anonymous reviewer(s) for their contribution to the peer review of this work. A peer review file is available.
Funding
This work was supported by funding from A*STAR Programmatic Funds (R23I0IR041, M23M2b0056), the National Research Foundation Competitive Research Program (NRF2023-ITC004-001, NRF-CRP29-2022-0003, and NRF-MSG-2023-0002) and Ministry of Education (MOE) funding (MOET32024-0001).
Data availability
Source data are provided with this paper.
Code availability
The codes that support the findings of this study are available from the corresponding author 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: Shi Fang, Fakun Wang.
Supplementary information
The online version contains supplementary material available at https://doi.org/10.1038/s41467-026-77260-2.
References
- 1.Mennel, L. et al. Ultrafast machine vision with 2D material neural network image sensors. Nature579, 62–66 (2020). [DOI] [PubMed] [Google Scholar]
- 2.Zhang, Z. et al. All-in-one two-dimensional retinomorphic hardware device for motion detection and recognition. Nat. Nanotechnol.17, 27–32 (2022). [DOI] [PubMed] [Google Scholar]
- 3.Yang, Y. et al. In-sensor dynamic computing for intelligent machine vision. Nat. Electron.7, 225–233 (2024). [Google Scholar]
- 4.Zhou, Y. et al. Computational event-driven vision sensors for in-sensor spiking neural networks. Nat. Electron.6, 870–878 (2023). [Google Scholar]
- 5.Pi, L. et al. Broadband convolutional processing using band-alignment-tunable heterostructures. Nat. Electron.5, 248–254 (2022). [Google Scholar]
- 6.Yuan, S. et al. Geometric deep optical sensing. Science379, eade1220 (2023). [DOI] [PubMed] [Google Scholar]
- 7.Wang, F., Fang, S., Zhang, Y. & Wang, Q. J. 2D computational photodetectors enabling multidimensional optical information perception. Nat. Commun.16, 6791 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 8.Zhu, Y. et al. Non-volatile 2D MoS2/black phosphorus heterojunction photodiodes in the near- to mid-infrared region. Nat. Commun.15, 6015 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Gao, H. et al. Bio-inspired mid-infrared neuromorphic transistors for dynamic trajectory perception using PdSe2/pentacene heterostructure. Nat. Commun.16, 5241 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 10.Chen, D. et al. Photon-trapping-enhanced avalanche photodiodes for mid-infrared applications. Nat. Photonics17, 594–600 (2023). [Google Scholar]
- 11.Wang, F. et al. A two-dimensional mid-infrared optoelectronic retina enabling simultaneous perception and encoding. Nat. Commun.14, 1938 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Zhang, D. et al. Spectral kernel machines with electrically tunable photodetectors. Science390, eady6571 (2025). [DOI] [PubMed] [Google Scholar]
- 13.Hinkov, B. et al. A mid-infrared lab-on-a-chip for dynamic reaction monitoring. Nat. Commun.13, 4753 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 14.Fang, J. et al. Wide-field mid-infrared hyperspectral imaging beyond video rate. Nat. Commun.15, 1811 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.Dun, G. H. et al. Ultra-wide spectrum photosynapse array with 64k-scale for neuromorphic fusion imaging. Nat. Commun.16, 10699 (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 16.Li, Y., Moreau, J. & Ibanez-Guzman, J. Emergent Visual Sensors for Autonomous Vehicles. IEEE Trans. Intell. Transp. Syst.24, 4716–4737 (2023). [Google Scholar]
- 17.Farooq, M. A., Shariff, W., O’callaghan, D., Merla, A. & Corcoran, P. On the role of thermal imaging in automotive applications: a critical review. IEEE Access11, 25152–25173 (2023). [Google Scholar]
- 18.Li, S. et al. Biomimetic multimodal tactile sensing enables human-like robotic perception. Nat. Sens.1, 52–62 (2026). [Google Scholar]
- 19.Dong, Q. et al. High-performance broadband photodetector based on PdSe2/black phosphorus heterodiode. Appl. Phys. Lett. 120, 231103 (2022).
- 20.Lee, S., Peng, R., Wu, C. & Li, M. Programmable black phosphorus image sensor for broadband optoelectronic edge computing. Nat. Commun.13, 1485 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Wu, L. et al. Visible-to-mid-infrared in-sensor computing with a reconfigurable black phosphorus photodiode. IEEE Electron Device Lett.45, 1217–1220 (2024). [Google Scholar]
- 22.Zhu, Y. et al. Non-volatile 2D MoS(2)/black phosphorus heterojunction photodiodes in the near- to mid-infrared region. Nat. Commun.15, 6015 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Jiao, H. et al. HgCdTe/black phosphorus van der Waals heterojunction for high-performance polarization-sensitive midwave infrared photodetector. Sci. Adv.8, eabn1811 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 24.Wang, Z., Wan, T., Ma, S. & Chai, Y. Multidimensional vision sensors for information processing. Nat. Nanotechnol.19, 919–930 (2024). [DOI] [PubMed] [Google Scholar]
- 25.Long, Z. et al. Biomimetic optoelectronics with nanomaterials for artificial vision. Nat. Rev. Mater.10, 128–146 (2024). [Google Scholar]
- 26.Li, H. et al. The research on infrared radiation affected by smoke or fog in different environmental temperatures. Sci. Rep.14, 14410 (2024). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Bao, F. et al. Heat-assisted detection and ranging. Nature619, 743–748 (2023). [DOI] [PubMed] [Google Scholar]
- 28.Wilson, A. N. et al. Recent advances in thermal imaging and its applications using machine learning: a review. IEEE Sens. J.23, 3395–3407 (2023). [Google Scholar]
- 29.Flory, N. et al. Waveguide-integrated van der Waals heterostructure photodetector at telecom wavelengths with high speed and high responsivity. Nat. Nanotechnol.15, 118–124 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 30.Zubair, M. et al. Gate-tunable van der waals photodiodes with an ultrahigh peak-to-valley current ratio. Small19, e2300010 (2023). [DOI] [PubMed] [Google Scholar]
- 31.Adinolfi, V. & Sargent, E. H. Photovoltage field-effect transistors. Nature542, 324–327 (2017). [DOI] [PubMed] [Google Scholar]
- 32.Buscema, M., Groenendijk, D. J., Steele, G. A., van der Zant, H. S. & Castellanos-Gomez, A. Photovoltaic effect in few-layer black phosphorus PN junctions defined by local electrostatic gating. Nat. Commun.5, 4651 (2014). [DOI] [PubMed] [Google Scholar]
- 33.Wang, C. Y. et al. Gate-tunable van der Waals heterostructure for reconfigurable neural network vision sensor. Sci. Adv.6, eaba6173 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 34.Liao, F. et al. Bioinspired in-sensor visual adaptation for accurate perception. Nat. Electron.5, 84–91 (2022). [Google Scholar]
- 35.Ouyang, B. et al. Bioinspired in-sensor spectral adaptation for perceiving spectrally distinctive features. Nat. Electron.7, 705–713 (2024). [Google Scholar]
- 36.Zhong, Z. et al. Ionic-electronic photodetector for vision assistance with in-sensor image processing. Nat. Commun.16, 7096 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 37.Tang, Y. et al. Dual-mode narrowband organic photodetectors for self-aligned imaging in NIR-I and NIR-II. Nat. Commun.16, 7144 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 38.Meng, L. et al. Investigation and evaluation of algorithms for unmanned aerial vehicle multispectral image registration. Int. J. Appl. Earth Obs. Geoinf. 102, 102403 (2021).
- 39.Wu, J. et al. High-sensitivity, high-speed, broadband mid-infrared photodetector enabled by a van der Waals heterostructure with a vertical transport channel. Nat. Commun.16, 564 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 40.Dai, M. et al. Long-wave infrared photothermoelectric detectors with ultrahigh polarization sensitivity. Nat. Commun.14, 3421 (2023). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 41.Dai, M. et al. On-chip mid-infrared photothermoelectric detectors for full-Stokes detection. Nat. Commun.13, 4560 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 42.Fang, J., Huang, K., Qin, R., Zhang, J. & Zeng, H. Mid-infrared snapshot spectral imaging via nonlinear radial dispersion. Nat. Commun. 10.1038/s41467-026-74263-x (2026). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 43.Liang, L., Wang, C., Chen, J., Wang, Q. J. & Liu, X. Incoherent broadband mid-infrared detection with lanthanide nanotransducers. Nat. Photonics16, 712–717 (2022). [Google Scholar]
- 44.Wang, C. W. et al. Mid-infrared detection through ligand-driven local heating in lanthanide-doped nanoparticles. Nat. Commun. 17, 4306 (2026). [DOI] [PMC free article] [PubMed]
- 45.LeCun, Y. C., Corinna; Burges, Christopher J. C. The MNIST Database (1998); http://yann.lecun.com/exdb/mnist/.
- 46.Nguyen, T. X. B., Rosser, K. & Chahl, J. A review of modern thermal imaging sensor technology and applications for autonomous aerial navigation. J. Imaging7, 217 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 47.Lin, Y.-C., Chiang, P.-Y. & Miaou, S.-G. Enhancing deep-learning object detection performance based on fusion of infrared and visible images in advanced driver assistance systems. IEEE Access10, 105214–105231 (2022). [Google Scholar]
- 48.Zhang, S. et al. Rational design of a vision fusion system with visible and near-infrared spectral integration for improved environmental perception. Natl. Sci. Rev.12, nwaf204 (2025). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
Source data are provided with this paper.
The codes that support the findings of this study are available from the corresponding author upon request.
