Skip to main content

Subwavelength imaging using a solid-immersion diffractive optical processor

Abstract

Phase imaging is widely used in biomedical imaging, sensing, and material characterization, among other fields. However, direct imaging of phase objects with subwavelength resolution remains a challenge. Here, we demonstrate subwavelength imaging of phase and amplitude objects based on all-optical diffractive encoding and decoding. To resolve subwavelength features of an object, the diffractive imager uses a thin, high-index solid-immersion layer to transmit high-frequency information of the object to a spatially-optimized diffractive encoder, which converts/encodes high-frequency information of the input into low-frequency spatial modes for transmission through air. The subsequent diffractive decoder layers (in air) are jointly designed with the encoder using deep-learning-based optimization, and communicate with the encoder layer to create magnified images of input objects at its output, revealing subwavelength features that would otherwise be washed away due to diffraction limit. We demonstrate that this all-optical collaboration between a diffractive solid-immersion encoder and the following decoder layers in air can resolve subwavelength phase and amplitude features of input objects in a highly compact design. To experimentally demonstrate its proof-of-concept, we used terahertz radiation and developed a fabrication method for creating monolithic multi-layer diffractive processors. Through these monolithically fabricated diffractive encoder-decoder pairs, we demonstrated phase-to-intensity \(({\varvec{P}}\to {\varvec{I}})\) transformations and all-optically reconstructed subwavelength phase features of input objects (with linewidths of ~ λ/3.4, where λ is the illumination wavelength) by directly transforming them into magnified intensity features at the output. This solid-immersion-based diffractive imager, with its compact and cost-effective design, can find wide-ranging applications in bioimaging, endoscopy, sensing and materials characterization.

1 Introduction

The ability to extract the phase information from an input optical wavefront with high spatial resolution is critical for various applications ranging from holographic displays [1] to bioimaging [2,3,4,5] and materials characterization [6]. Phase imaging of weakly scattering objects such as cells and tissue, for example, plays a key role in fundamental studies of biological systems [7] as well as medical applications, including disease diagnosis [4, 8]. Motivated by these applications, various phase imaging methods, such as phase contrast imaging [9] and differential interference contrast (DIC) microscopy [10], have been developed. Phase imaging techniques through scattering media have also been demonstrated by solving the inverse-scattering problem via transmission-matrix-based approaches [11,12,13,14]. However, the digital reconstruction algorithms behind these phase imaging techniques are, in general, computationally expensive and take relatively long, even with graphics processing unit-accelerated computing [11]. In addition, these methods typically cannot capture quantitative phase information of specimens [15]. To address this limitation, quantitative phase imaging (QPI) techniques have been developed to provide accurate phase information based on a variety of phase-retrieval techniques, including, e.g., digital holography [16,17,18,19,20,21] and iterative multi-frame reconstruction methods such as ptychography [22, 23]. These techniques, however, need intensive post-processing using a computer, which makes the imaging process time-consuming. Moreover, resolving subwavelength phase features is, in general, a challenge for these approaches due to the limited numerical aperture (NA) of such interferometric systems.

To improve the NA of an imaging system, the solid-immersion principle [24,25,26,27] can be used to achieve single-shot imaging with subwavelength resolution by placing a high-index material between the object/specimen and the objective lens [28,29,30]. However, despite their advanced set-up, solid-immersion microscopy systems have not yet realized subwavelength phase imaging. Oil/water immersion-based microscopy systems [31,32,33] that use high-index liquids around the object/specimen were also demonstrated. However, these techniques either exhibit limited phase-imaging resolution despite using structured illumination [34, 35] or require off-axis illumination with relatively intensive digital post-processing using a computer, which makes the imaging process time-consuming [36].

Here, we report a compact, solid-immersion imaging framework to achieve subwavelength resolution using all-optical diffractive processors that can realize phase-to-intensity (\({\varvec{P}}\to {\varvec{I}}\)) and intensity-to-intensity (\({\varvec{I}}\to {\varvec{I}}\)) transformations at the subwavelength scale. The encoder layer of this optical processor is designed to transform/encode the high-frequency information received from the object via a high-index medium (refractive index n > 1) into lower frequency spatial modes that propagate in air. The subsequent diffractive decoder, which is jointly trained with the encoder surface, processes the encoded spatial information through the air to synthesize at its output plane a magnified image of the input object, revealing subwavelength features that would normally be washed out due to the limited NA in air. When blindly tested with various objects, including subwavelength phase and amplitude structures, this encoder-decoder pair successfully resolved spatial features with a linewidth of ~ λ/2n, which could not be achieved without the solid-immersion frequency encoder. Notably, the trained subwavelength diffractive imager generalized not only to previously unseen objects from the same distribution as the objects used in training (internal generalization), but also to new types of objects from completely different datasets, demonstrating external generalization capability.

To experimentally demonstrate the feasibility of this subwavelength diffractive imaging platform, we fabricated a multi-layer monolithic design that operates at the terahertz part of the spectrum. We tested this monolithic diffractive encoder-decoder pair with a customized high-resolution terahertz imaging system using a microprobe-based time-domain spectroscopy (TDS) system. Our experimental results confirmed that this 3D-fabricated solid-immersion diffractive imager can resolve phase objects (directly performing \({\varvec{P}}\to {\varvec{I}}\) transformations through the diffractive encoder-decoder pair), revealing subwavelength phase features corresponding to linewidths of ~ λ/3.4 that would normally be lost due to the limited NA in air.

There are several important aspects of this work: the presented solid-immersion diffractive imager has a very compact design that axially spans less than 100λ; this compact design demonstrates \({\varvec{P}}\to {\varvec{I}}\) transformations, performing direct (all-optical) quantitative phase retrieval at the subwavelength scale through the encoding of higher spatial frequencies that travel in a high index dielectric medium. Furthermore, these solid-immersion diffractive processor-based subwavelength imagers can operate at different parts of the electromagnetic spectrum by physically scaling (i.e., expanding or shrinking) the optimized diffractive features of the encoder/decoder surfaces in proportion to the illumination wavelength, λ, and this is achieved without the need for redesigning the diffractive features. We believe that solid-immersion diffractive optical processors, with their subwavelength imaging and high spatial frequency processing capabilities, would provide highly compact and cost-effective solutions for various applications in, e.g., bioimaging, sensing, and material inspection, among many others.

2 Results and discussion

2.1 Subwavelength imaging using solid-immersion diffractive optical processors

We first established a numerical model of our solid-immersion subwavelength imager as a diffractive network [37] that is designed via a deep-learning-based training process. Figure 1 shows the operational principles and the building blocks of our diffractive subwavelength imager based on the solid-immersion principle. As depicted in Fig. 1a, the input object with subwavelength features is placed on a high-index dielectric slab positioned in front of the diffractive encoder surface. The function of this diffractive optical encoder is to transform/encode the high-frequency information (f > 1/λ) of the object into low-frequency representations (f ≤ 1/λ) that can transmit in air, where \(f\) represents the spatial frequencies that make up the object information, as depicted in Fig. 1b. These encoded optical fields propagate in air and are subsequently processed by a series of all-optical diffractive decoders positioned in air to recover the subwavelength features of the input object with a magnification factor of M (at the output plane). During the design process of this diffractive solid-immersion imager, these decoder diffractive layers that pass information through the air were jointly trained with the solid-immersion encoder layer, enabling the system to learn an effective encoding–decoding transformation to defeat the bottleneck of the diffraction limit in air. For optimal imaging performance, the axial distance in air between the diffractive encoder and the first decoder layer and between any two consecutive decoder layers were empirically set to ~ 12λ; the axial distance between the last diffractive layer and the output plane was empirically set to ~ 16λ. Each encoder/decoder layer has 120 × 120 diffractive neurons/features, each with a lateral size of ~ 0.53λ and a trainable transmission phase coefficient covering 0-2π (Fig. 2a). This feature size was selected to match the diffraction-limited lateral resolution in free-space (~ λ/2) as our imaging system utilizes only the propagating/traveling electromagnetic waves while ignoring the evanescent fields due to the large propagation distances (\(\ge\) λ) [37]. The diffractive encoder and decoder layers were jointly optimized using a deep-learning-based training process using datasets composed of custom-designed gratings and EMNIST digits/letters (see the Sect. 3 for details). The two separate designs of the optimized phase structures of the encoder-decoder layers for the \({\varvec{I}}\to {\varvec{I}}\) and \({\varvec{P}}\to {\varvec{I}}\) imaging tasks are presented in Fig. 2b. For both designs, the axial thickness of the high-index (n = 1.72) immersion material between the object and the all-optical encoder was set to be 1λ (Fig. 2a).

Fig. 1
figure 1

Subwavelength imaging using a solid-immersion diffractive optical processor. a Scheme showing the design of the subwavelength imager consisting of a diffractive solid-immersion encoder and successive decoder layers that axially span < 100λ between the sample and the output image plane. b Frequency-domain diagram illustrating the transformation of high frequency information (f > 1/λ, which can only propagate in a high-index medium, n > 1) towards lower frequency points (f ≤ 1/λ, which can propagate in air). The high-index solid-immersion medium (n > 1) in a is between the object and the diffractive encoder. The diffractive decoder reconstructs an output image, magnified compared to the original image by a factor of M

Fig. 2
figure 2

Design and performance analysis of solid-immersion diffractive optical processors for intensity- and phase-encoded input objects. a Scheme depicting a diffractive imager with a magnification factor of M = 3 using L = 5 diffractive decoder layers. b Phase profiles of the diffractive encoder and decoder layers optimized via a deep-learning training process for (upper) intensity- and (lower) phase-encoded objects, respectively. c Performance analysis of solid-immersion diffractive optical imagers for intensity- and phase-encoded resolution test targets with different linewidths ranging from ~ 0.253λ to ~ 0.333λ using mean squared error (MSE) and structural similarity index measure (SSIM). The results in c are also compared to baseline designs, where the decoder layers were trained without an encoder (also see Supplementary Fig. S1)

After the training process, we first numerically demonstrated the performance of the solid-immersion-based encoder-decoder pair for subwavelength imaging of various input test objects, including e.g., gratings and EMNIST letters that were never seen before during the training process. Figure 2c demonstrates the performance (blind testing results) of two diffractive processors, each with 5 phase-only decoder layers, trained to image amplitude and phase objects with a magnification factor of M = 3, through \({\varvec{I}}\to {\varvec{I}}\) and \({\varvec{P}}\to {\varvec{I}}\) transformations, respectively. Furthermore, we quantitatively evaluated the performance of these solid-immersion diffractive optical processors by comparing their output images with the ground truth by calculating the mean squared error (MSE) and the structural similarity index measure (SSIM) used as image quality metrics. Through these metrics, in Fig. 2c, we report the overall imaging performance for both \({\varvec{I}}\to {\varvec{I}}\) and \({\varvec{P}}\to {\varvec{I}}\) tasks using resolution test targets (with various linewidths) that were not used during the training. Limited by the input numerical aperture (NA = n = 1.72), the imaging performance for both the amplitude and phase objects decreased when the linewidths of the test objects were reduced to less than λ/2n, indicated with the vertical dashed lines in Fig. 2c. Interestingly, the \({\varvec{P}}\to {\varvec{I}}\) solid-immersion diffractive imager provided slightly better output MSE and SSIM values compared to the \({\varvec{I}}\to {\varvec{I}}\) diffractive imager, highlighting the capabilities of the diffractive network on phase imaging; this \({\varvec{P}}\to {\varvec{I}}\) diffractive imager directly transforms subwavelength phase structures of the input objects into output intensity patterns, performing a form of all-optical phase retrieval at the subwavelength level.

To verify the essential role of the diffractive solid-immersion encoder surface in these subwavelength imaging results, we also compared the performances of the presented encoder-decoder systems against decoder-only diffractive imagers, i.e., without the solid-immersion encoder (see Fig. 2c, dashed lines). To make this comparison fair, the arrangement of the diffractive decoder layers in air is kept the same (see Supplementary Fig. S1 for details). The dashed lines in Fig. 2c that quantify the performance of the diffractive imagers optimized without the encoder layer reveal a significant sacrifice in the output imaging performance of the system, clearly emphasizing the importance of the solid-immersion encoder layer for subwavelength imaging. To further elucidate the mechanism of the diffractive encoder surface, we also visualized the distribution of the spatial frequencies before and after the diffractive encoding process, which clearly indicate the increased density of the modulated spatial modes within the free-space cut-off frequency (f ≤ 1/λ), enabling effective transmission of spatial information in air (see Supplementary Fig. S2). This frequency-mixing process is conceptually similar to what is used in structured illumination microscopy methods [38, 39], but with two key differences: (1) our diffractive encoding process simultaneously implements a deep learning-optimized modulation through a broad range of 2D frequencies instead of a single mode; and (2) an all-optical analog decoder that is jointly optimized with the encoder surface is used instead of a digital image reconstruction algorithm, all-optically synthesizing the higher resolution image at the output plane through the constructive and destructive interferences of the propagating modes through the decoder layers in air.

We also performed an additional test to confirm the critical role of the subsequent decoder layers in our diffractive imager designs by comparing the performance of a solid-immersion encoder layer that is trained without any decoder (see Supplementary Fig. S3a, b). This comparison clearly revealed that a deep learning-optimized encoder layer alone, despite the presence of the same solid-immersion layer with n = 1.72, failed to perform subwavelength imaging, once again confirming the essential role of the optimized collaboration between the diffractive encoder and decoder layers (see Supplementary Fig. S3ab).

As another comparative analysis, we designed a hybrid subwavelength imager consisting of a diffractive encoder surface that is jointly trained with an electronic decoder based on a deep convolutional neural network (CNN) [40]. Despite using > 50,000 training objects, the reconstructions performed by the CNN-based digital decoder exhibit signs of distortions and aberrations in the line shapes of the digitally reconstructed test objects, which is inferior in its imaging performance compared to our all-optical decoder layers (see Supplementary Fig. S3c). These aberrations/artifacts observed in the reconstructed images by the CNN-based digital decoder might be due to overfitting, and could be potentially improved by training it using larger datasets. If even this could be achieved with more diverse training of the digital decoder CNN, an all-optical diffractive decoder has several major advantages, including almost instantaneous image reconstruction and inference with low power consumption since the entire decoding process occurs through passive light-matter interactions within a thin diffractive volume; these advantages of an all-optical decoder are especially critical for high-throughput imaging applications.

Figure 3a reports some additional examples of the blind testing results of our solid-immersion diffractive imager design, performing \({\varvec{P}}\to {\varvec{I}}\) transformations using new resolution test targets and EMNIST handwritten digits/letters that were not used in the training process. The line patterns of the original phase images were resolved up to a linewidth ~ 0.25λ although the contrast of the output image decreased as the linewidth decreased below λ/3.4 (Fig. 3a). We also verified that the same solid-immersion diffractive imager design can successfully reconstruct new letters and digits from the EMNIST test dataset (see Fig. 3b). We obtained similar subwavelength imaging results for intensity-encoded input objects by the diffractive encoder-decoder design shown in the upper panel of Fig. 2b which was trained for \({\varvec{I}}\to {\varvec{I}}\) imaging task (see Supplementary Fig. S4). We should also note that, although the reported diffractive imagers were designed for \({\varvec{P}}\to {\varvec{I}}\) or \({\varvec{I}}\to {\varvec{I}}\) imaging tasks, diffractive imaging of complex fields (including subwavelength features of both amplitude and phase distributions) can also be achieved by combining this diffractive encoding/decoding method with spatial and/or wavelength multiplexing strategies [41], enabling the simultaneous reconstruction of both intensity and phase information at the subwavelength scale, which is left as future work.

Fig. 3
figure 3

Internal generalization of the solid-immersion diffractive imager to unknown phase-encoded objects (\({\varvec{P}}\to {\varvec{I}}\) transformations). (a) Imaging results using (a) resolution-test targets with linewidths ranging from ~ 0.253λ to ~ 0.293λ and (b) EMNIST handwritten letters/digits. The diffractive processor consists of 1 encoder layer and L = 5 decoder layers, all jointly optimized (see Fig. 2)

To demonstrate the external generalization capability of our solid-immersion diffractive imagers, we further numerically tested the trained diffractive encoder-decoder system with additional datasets such as the Fashion-MNIST [42] and QuickDraw [43] in performing \({\varvec{P}}\to {\varvec{I}}\) imaging tasks with new types of objects (see Fig. 4). Our analyses revealed that, despite the slightly larger background noise and blurring of some of the finer features, the contours of the Fashion-MNIST images were well reconstructed by our all-optical decoder as shown in Fig. 4a. The reconstructed images from the QuickDraw test dataset also correctly revealed various subwavelength features of the input objects (see Fig. 4b). These blind-testing results demonstrated the external generalization of our diffractive solid-immersion imagers, highlighting their capabilities for general purpose subwavelength imaging. We also validated that our diffractive solid-immersion designs showed the same external generalization capability for \({\varvec{I}}\to {\varvec{I}}\) imaging tasks, covering new types of intensity-encoded objects never seen before, as illustrated in Supplementary Fig. S5.

Fig. 4
figure 4

External generalization of the solid-immersion diffractive imager to new types of objects from unknown image datasets for \({\varvec{P}}\to {\varvec{I}}\) transformations. Blind testing results using (a) Fashion-MNIST and (b) Quick-Draw image datasets. The diffractive processor consists of 1 encoder layer and L = 5 decoder layers, all jointly optimized (see Fig. 2). The diffractive model was trained with various gratings and EMNIST images

These analyses reveal that within the input field-of-view defined by the input aperture of the solid-immersion diffractive processor, we can faithfully recover various subwavelength features of the input objects at different locations and orientations as long as they remain in the imaging field-of-view. We should also emphasize that, different from near-field imaging systems [44,45,46], our diffractive imager does not process evanescent waves due to the long axial propagation lengths (≥ λ). However, this also means that our subwavelength imager designs do not suffer from some of the restrictions of near-field systems as we do not need to precisely position the encoder surface in the near-field of a sample. Also, the ability to perform single-shot sub-wavelength phase imaging without processing by digital algorithms is a unique advantage of our diffractive encoding/decoding approach.

2.2 Impact of the object-to-encoder distance (d 1) and the distance between diffractive layers

The encoder surface plays a key role in our solid-immersion diffractive imager designs by transforming the high-frequency information of the object within the high-index dielectric material to low-frequency modes that can propagate in air. Since the encoder surface converts the propagating modes within the dielectric material into propagating modes in air (to be processed by the successive diffractive decoder layers for all-optical image reconstruction), we expect that its utility and function should be, by and large, independent of the axial distance between the object and encoder surface, as well as the axial distance between the diffractive layers/surfaces. To confirm this hypothesis, we studied the imaging performance of the diffractive solid-immersion imager with a range of object-to-encoder distances (d1) (determined by the axial thickness of the dielectric material; see Supplementary Fig. S6) as well as the axial distance (d) between the diffractive layers (see Supplementary Fig. S7). Firstly, we trained a series of diffractive imagers with d1 = 1 − 16λ and evaluated their imaging performance with various resolution test targets (see Supplementary Fig. S6a). As expected, the SSIM values calculated for the reconstructions of the resolution test targets with various linewidths covering w = 0.253–0.333λ showed no strong dependence on d1 since the optimized encoder surface transforms the traveling waves within the dielectric solid-immersion material (see Supplementary Fig. S6b). However, one can observe a slight improvement in the output image quality for all the resolution test targets as d1 is increased from 1λ to ~ 8λ. The main reason for this slight improvement is the better utilization and optimization of the diffractive features and the degrees of freedom at the encoder surface: for a very small d1, the object plane communicates inefficiently with the optimizable diffractive features located at the edges of the encoder surface, which effectively reduces the trainable degrees of freedom at the encoder (see Supplementary Fig. S6c). Further increase of d1 to ~ 16λ caused a relative degradation of the output image quality since the NA of the encoder accordingly decreased. We also trained a separate set of diffractive imagers with a fixed d1 but a range of axial distances between the diffractive decoder layers (i.e., d = 4–24λ, see Supplementary Fig. S7a). As desired, the SSIM values calculated for the reconstructions of resolution test targets with various linewidths covering w = 0.267–0.333λ showed no strong dependence on d (see Supplementary Fig. S7b).

2.3 Impact of the number (L) of diffractive decoder layers

Previous theoretical analysis and empirical studies showed that deeper diffractive processors can perform an arbitrarily selected complex-valued linear transformation more accurately and exhibit improved generalization capability for various all-optical statistical inference tasks [47, 48]. To shed more light on this depth feature of a diffractive optical processor, here we analyze the impact of the number (L) of trainable decoder layers of a solid-immersion diffractive imager on its subwavelength imaging performance. Figure 5 presents our quantitative performance analysis for the imaging output of solid-immersion diffractive imagers composed of different numbers of decoder layers (L = 1–6) optimized for performing \({\varvec{P}}\to {\varvec{I}}\) imaging tasks; all the rest of the design features were kept the same as before. Figure 5b shows the SSIM values calculated for the output images reconstructed from phase-only resolution test targets with linewidths of w = 0.253–0.333λ using L = 1–6 decoder layers. These results reveal the depth advantages of the diffractive decoder system, providing better resolution and image quality with a larger number of diffractive layers; for example, the sub-wavelength imaging performance of the encoder-decoder pair decreased dramatically when L < 3, indicating the importance of the diffractive network’s depth for the all-optical decoding of subwavelength information. Figure 5c further reports sample resolution test target images that were all-optically reconstructed by the diffractive decoders composed of different numbers of layers. As shown in Fig. 5c, the single-layer decoder (L = 1) achieved poor image reconstruction quality where the phase features were barely recovered for the smaller linewidths (w =  ~ 0.253–0.333λ). This single-layer decoder was able to partially reconstruct the features of the resolution targets with linewidths between 0.273–0.293λ, but completely failed to image gratings that are easier to reconstruct (e.g., w =  ~ 0.333λ). This relatively poor imaging performance of a single-layer decoder is due to the insufficient degrees of freedom that it has, and therefore, it could not effectively learn the imaging process to generalize to test targets with various spatial frequencies. With the addition of a second decoder layer (L = 2), the sub-wavelength imaging quality improved significantly, but still it showed degradation in the image contrast for finer features, corresponding to linewidths of e.g., w =  ~ 0.267λ. The reconstruction quality continued to improve with the increasing number of decoder diffractive layers (L > 2), as summarized in Fig. 5b. We should also note that minor coherence artifacts (such as the spots in Fig. 5c for L = 1, 2) are observed, caused by the interference of the diffracted fields within the decoder volume. These artifacts only cover a small fraction of the pixels of the reconstructed output image field of view (FOV), and therefore, their random appearance caused a negligible increase in the loss functions that we employed in our deep learning-based training process. If necessary, these unwanted features could be specifically suppressed in their intensity or pushed/moved outside of the imaging FOV by selectively penalizing these features in the training loss function.

Fig. 5
figure 5

Resolution tests for solid-immersion diffractive imagers designed with different numbers of decoder layers. a Scheme depicting the general design of the diffractive subwavelength imager network with an arbitrary number (L) of diffractive decoder layers. b Quantitative analysis and (c) output images showing the all-optical reconstructions for resolution test targets achieved by diffractive imagers with L = 1 − 5 decoder layers

We also tested the generalization capability of these solid-immersion diffractive imagers that were optimized with different L using new test images from internal datasets (EMNIST) and external datasets (Fashion-MNIST and QuickDraw). For high-quality reconstruction of phase objects that were sampled from these datasets, L > 2 decoder layers were required (see Supplementary Fig. S8), similar to our earlier results reported in Fig. 5c, once again highlighting the importance of architectural depth for ensuring the generalization capability of solid-immersion diffractive optical imagers.

2.4 Solid-immersion diffractive imager designs with different magnification factors (M)

To demonstrate the versatility of the presented solid-immersion diffractive imager, we also performed a quantitative evaluation of the output imaging quality for \({\varvec{P}}\to {\varvec{I}}\) diffractive imager designs that cover different magnification factors, M = 1.2–5; we used the same architectural design with 1 diffractive encoder layer and L = 5 diffractive decoder layers, collectively performing \({\varvec{P}}\to {\varvec{I}}\) imaging tasks (see Supplementary Fig. S9a). As depicted in Supplementary Fig. S9b, c, the SSIM values of the outputs were lower at M = 1.2 since the targeted output images had relatively smaller linewidths for a smaller M value of 1.2, which could not be effectively resolved in air. As expected, the output SSIM values evaluated for all the resolution test targets improved as the magnification factor M increased from 1.2 to 2 since the feature sizes of the output/magnified images increased above the diffraction limit in air ~ λ/2. However, a further increase of the magnification factor to M = 5 caused a gradual decrease in output SSIM values for all the resolution test targets with w =  ~ 0.253–0.333λ linewidths; this performance degradation is mainly due to the significant area increase at the output field-of-view for M = 5, which caused aberrations because of the spatially-varying effective numerical aperture of the output image plane (see Supplementary Fig. S9c). We also performed a numerical study of the imaging performance at different magnification factors, M = 1–5, for resolution test targets with w =  ~ 0.4–0.53λ. As summarized in Supplementary Fig. S10, output image SSIM values of > 0.9 were realized for M = 1.0, with a slight decrease in performance as M increased.

Despite some limitations in performance, these analyses confirm that our solid-immersion diffractive processors could successfully resolve linewidths of ~ λ/3.4 for magnification factors of M =  ~ 1.7–5, demonstrating the versatility of our diffractive encoder-decoder designs in reconstructing output images with different magnification factors.

2.5 Trade-off between output diffraction efficiency (η) and imaging performance

Another critical metric to evaluate for a solid-immersion diffractive imager is the output power efficiency η, defined as the ratio of the total power distributed at the detector pixels divided by the total input power. Our forward propagation model assumes that the diffractive encoder/decoder layers are composed of transmissive dielectric materials with negligible optical absorption, which is a fair approximation considering the small axial thickness of our designs (also see Sect. 2.8). The diffraction efficiency of our solid-immersion imager designs can be optimized and accordingly enhanced by adding a diffractive efficiency-related loss term during the training stage (see the Sect. 3 for details). This additional loss term that is in favor of improved diffraction efficiency, however, creates an imaging performance trade-off. Figure 6a summarizes the SSIM values calculated for \({\varvec{P}}\to {\varvec{I}}\) image reconstructions of various resolution test targets performed by solid-immersion diffractive imagers, composed of 1 encoder and L = 5 decoder layers, jointly trained to achieve different output diffraction efficiencies, covering η = 1.9−20.3%. Notably, the average diffraction efficiency of the encoder-decoder system was increased by more than fivefold (from η = 1.9% to η = 10.5%) with a negligible compromise in imaging resolution and contrast, highlighting the capability of our solid-immersion diffractive imager in achieving power-efficient sub-wavelength imaging. Figure 6b further shows the output images of various resolution test targets, which confirm the decent sub-wavelength imaging performance of the diffractive design with η = 10.5%. As reported in the last column of Fig. 6b, a further increase in the diffraction efficiency to η > 20% caused degradation in the imaging quality.

Fig. 6
figure 6

Trade-off between the output diffraction efficiency (η) and the imaging performance. a Calculated SSIM values and (b) selected blind testing results evaluated using phase-encoded resolution test targets with linewidths ranging from ~ 0.253λ to ~ 0.333λ for diffractive imagers trained to exhibit different output diffraction efficiencies. The diffractive processor consisted of 1 encoder layer and 5 decoder layers. The diffractive model was trained with images of phase gratings (linewidths ~ 0.2–0.53λ) and EMNIST images that excluded the test images used in a, b

2.6 Impact of solid-immersion refractive index (n) on the imaging resolution

To investigate the impact of the refractive index of the dielectric material between the object and the encoder surface, we performed additional numerical testing of phase-encoded resolution test targets with a large range of n = 1.1–3.0; the architecture of the solid-immersion diffractive imager remained the same, consisting of 1 encoder and L = 5 decoder diffractive layers (see Supplementary Fig. S11). As expected, our analyses revealed a significant improvement in the imaging resolution with higher n: initially resolving linewidths of ~ 0.333λ at n < 1.3, we were able to resolve a linewidth of ~ 0.253λ at n = 2.0, as shown in Supplementary Fig. S11a. However, a further increase in the refractive index to n = 2.4 and n = 3.0 did not result in better spatial resolution (see Supplementary Fig. S11b). We attribute this bottleneck to the relatively large lateral size of the encoder diffractive features (~ 0.53λ), which cannot effectively process all the propagating high-spatial frequencies that are supported at n = 2.4 or n = 3.0. In fact, the output imaging resolution can be further improved by reducing the lateral feature size of the trainable encoder layer to ~ 0.27λ: in this case, using a solid-immersion dielectric material of n = 2.4, the encoder-decoder design could resolve linewidths of ~ 0.21λ as illustrated in Supplementary Fig. S12. Therefore, by adopting appropriate design parameters and diffractive feature sizes for the encoder-decoder pair, the imaging resolution of our solid-immersion diffractive imager can be further improved using dielectric materials with even higher refractive index values, making the presented approach a promising technique for super-resolution imaging of deeply subwavelength structures.

2.7 Multiwavelength phase imaging

While the majority of our presented diffractive imagers were designed to perform subwavelength imaging at a single illumination wavelength, one can also extend the design principles of diffractive encoder-decoder pairs to operate at multiple wavelengths for potential applications in multispectral subwavelength information processing [49,50,51]. To demonstrate this capability, we designed a solid-immersion diffractive imager for color (RGB) imaging at three wavelengths in the visible spectrum (λB = 464 nm, λG = 536 nm, λR = 604 nm) and selected the dielectric properties of a 3D printing material, i.e., IP-Dip [52], for our numerical model. Each encoder/decoder layer had 160 × 160 diffractive neurons/features, each with a lateral size of 200 nm and a trainable height profile from 0 to 2 μm, as shown in Supplementary Fig. S13. A diffractive imager, consisting of 1 encoder layer and 5 decoder layers, was designed to simultaneously perform the imaging task at the RGB wavelengths (λB, λG, λR). As shown in Supplementary Fig. S13c, a different resolution test target (w = 150 nm) was selected randomly at each wavelength to construct the input color images, which were clearly resolved by the solid-immersion diffractive imager, demonstrating a sub-wavelength resolution at all three wavelengths. Similarly, the diffractive imager was able to perform achromatic imaging at all three wavelengths, where the same phase image was used as the input for all three wavelengths and reconstructed successfully by the diffractive imager (see Supplementary Fig. S13d). These numerical results reveal the potential of our solid-immersion diffractive imager design framework to perform high-resolution imaging of sub-wavelength color objects, potentially enabling diverse applications ranging from material science to biomedical imaging and sensing.

2.8 Experimental demonstration of subwavelength phase imaging (\({\varvec{P}}\to {\varvec{I}}\))

We experimentally demonstrated the subwavelength imaging capability of the solid-immersion diffractive imager framework using a fabricated encoder-decoder pair designed for \({\varvec{P}}\to {\varvec{I}}\) imaging at 0.4 THz (λ = 0.75 mm). This proof-of-concept diffractive optical processor was composed of 1 encoder layer and L = 2 decoder layers that were jointly trained using a hybrid dataset composed of resolution test targets and MNIST [53] handwritten digits (see the Sect. 3 for details). To physically create this diffractive imager, we developed a fabrication method that produced a monolithic design of the multi-layered diffractive encoder-decoder pair via a single 3D-printing session, followed by a clean-up of the support materials between the diffractive layers with a combination of mechanical and chemical processes (see the Sect. 3 and Supplementary Fig. S14 for details). This monolithic fabrication method, by and large, eliminated undesirable misalignments in both the axial and lateral directions between the diffractive layers, which could otherwise cause severe degradation of performance [54]. Figure 7a shows the design of the subwavelength imager consisting of a solid-immersion diffractive encoder and a two-layer diffractive decoder in air. Starting from the phase-delay distributions optimized for each encoder/decoder layer, we calculated the corresponding height profiles to be fabricated (for producing the needed phase distributions). After their 3D printing and the subsequent cleaning processes (see Supplementary Fig. S14), we obtained the solid-immersion diffractive imager in a monolithic design where the encoder/decoder layers were well-aligned in all directions (see Fig. 7b). A comparison between the optimized phase profiles of the encoder/decoder layers shown in Fig. 7c and the photos of 3D-printed layers in Fig. 7d reveal the decent quality of our monolithic fabrication process, confirming that the diffractive layers were not damaged by the cleaning process (Supplementary Fig. S14).

Fig. 7
figure 7

Fabrication method for solid-immersion diffractive imagers and the experimental setup. a Design of the multi-layered subwavelength imager consisting of a diffractive encoder and two decoder layers and their CAD design. b The 3D-printed monolithic imager after the cleaning process. c Trained phase profiles of the encoder and decoder layers of the subwavelength diffractive imager. d Fabricated layers of the diffractive encoder and decoder layers. e Photograph of the THz-TDS experimental setup. f Top: schematic of the THz-TDS setup. Red lines represent the optical path of the femtosecond pulses (central wavelength: 800 nm). Green lines represent the optical path of the terahertz wave (peak frequency, ~ 500 GHz, observable bandwidth, ~ 5 THz). Bottom: an optical image of the THz microprobe with a photoconductive gap size (at tip of the microprobe) of 2 μm

To experimentally test our 3D-printed solid-immersion diffractive imager, we built a customized high-resolution terahertz imaging system based on a microprobe (TeraSpike TD-800-X-HRS, Protemics GmbH, Germany) and a TDS system using a plasmonic nanoantenna array-based terahertz source [55]. The photograph and schematics of the experimental set-up are shown in Fig. 7e, f. Each sample to be imaged was mounted on a 3-axis electric motor stage to perform the scanning process, while the signal of each scanned point was detected by a stationary terahertz microprobe with a small tip size of ~ 2 μm. The combination of the microprobe and the plasmonic nanoantenna array source exhibited a high sensitivity with a signal noise ratio (SNR) of ~ 90 dB at 0.4 THz (see Supplementary Fig. S15), ensuring high-resolution imaging of the output field of view of the diffractive imager.

To experimentally validate the imaging resolution of our subwavelength imager for \({\varvec{P}}\to {\varvec{I}}\) tasks, we first tested the fabricated monolithic diffractive processor using phase-only input objects with periodic line patterns. Figure 8 shows the \({\varvec{P}}\to {\varvec{I}}\) experimental imaging results of the reconstructed horizontal and vertical gratings corresponding to phase-encoded lines with linewidths of ~ 0.333\(\lambda\) and ~ 0.293\(\lambda\). Importantly, all the line patterns were reconstructed with good quality, confirming the subwavelength resolution of our solid-immersion diffractive processor that is 3D-printed. These results also experimentally confirm direct phase retrieval of subwavelength features through \({\varvec{P}}\to {\varvec{I}}\) transformations all-optically performed by the diffractive encoder-decoder pair. Some of the deviations observed between the measurement results and the ground truth might be attributed to the experimental errors introduced by 3D fabrication imperfections and potential misalignments, especially in the axial direction of the output/image plane (see Supplementary Figs. S16, S17 for details). Additional experimental results for successful imaging of various phase-encoded resolution test targets with broader linewidths (~ 0.4\(\lambda\) and ~ 0.367\(\lambda\)) are also shown in Supplementary Fig. S18, demonstrating the outstanding \({\varvec{P}}\to {\varvec{I}}\) imaging quality of the solid-immersion diffractive processor for features of different sizes.

Fig. 8
figure 8

Experimental demonstrations of (\({\varvec{P}}\to {\varvec{I}}\)) transformations corresponding to phase-encoded resolution test targets with subwavelength resolution. (Upper left) Input phase images, (upper middle) ground truth, (upper right) simulated imaging results, (lower left) measured intensity images at the output plane, and (lower right) the corresponding line profiles of the resolution-test targets with a linewidth of ~ 0.333\(\lambda\) oriented in (a) x and (b) y directions as well as the resolution-test targets with a linewidth of ~ 0.293\(\lambda\) oriented in (c) x and (d) y directions

We also selected some oblique and curved gratings to further demonstrate the performance of the 3D-printed subwavelength diffractive imager for imaging objects with more complex shapes, which are shown in Fig. 9a. Although a slight decrease in the imaging contrast was observed, the diffractive system was still able to image and distinguish each line of the test gratings clearly. Because of the limited SNR of the terahertz imaging setup and the losses from the 3D-printed diffractive network, we used a coded-aperture design around the input object FOV to increase the photon flux in the system. Compared to simply opening up a flat, transparent aperture with the same fixed phase values around the input FOV, we employed a jointly optimized phase-modulation pattern around the object FOV, which improved the contrast of the reconstructed images at the output image plane (see Supplementary Fig. S19). To further demonstrate the external generalization capability of our \({\varvec{P}}\to {\varvec{I}}\) design, we tested it with phase-encoded objects selected from the EMNIST test dataset, never used during our training stage; we selected handwritten capital letters “U”, “C”, “L”, “A”, which were successfully imaged by our 3D-printed solid-immersion diffractive imager as demonstrated in Fig. 9b. The measurement results showed high consistency with both the input phase images and the simulation results, further validating the ability of our solid-immersion diffractive imager to perform subwavelength imaging tasks for general objects. One interesting observation that is particularly visible in Fig. 9b is that some of the subwavelength features of the objects are better resolved in our experimental results compared to their numerical counterparts (see, e.g., the opening of the handwritten ‘A’ in Fig. 9b). This behavior can potentially be due to the nonlinear interaction of the subwavelength photoconductive microprobe system (Fig. 7) with the local field distribution at the output plane that we experimentally imaged.

Fig. 9
figure 9

Experimental demonstrations of (\({\varvec{P}}\to {\varvec{I}}\)) transformations corresponding to phase-encoded gratings and EMNIST handwritten letters with subwavelength resolution. a Imaging results of different gratings with a linewidth of ~ 0.293\(\lambda\); b imaging results of EMNIST handwritten letters “U”, “C”, “L”, “A”, demonstrating the ability of the diffractive processor to image new types of objects never seen before (external generalization). (Upper left) Input phase images, (upper right) simulated intensity images, and (lower) the experimentally measured output images

Overall, our experiments confirmed the subwavelength imaging capabilities of our solid-immersion diffractive imager, successfully resolving linewidths of 0.293λ (~ λ/2n) while also performing direct (all-optical) phase retrieval of subwavelength features through \({\varvec{P}}\to {\varvec{I}}\) transformations. We should note that, because the forward model of our diffractive imager approximates input objects as thin layers with negligible thickness, it cannot reconstruct phase structures of 3D objects with large height differences that result in phase wrapping events. Lastly, we want to point out that deeper diffractive architectures were not used for our experimental demonstration because the 2-layer decoder design showed sufficient sub-wavelength image reconstruction performance for a proof-of-concept demonstration—both numerically and experimentally; furthermore, the 3D printing of deeper diffractive decoders and the associated cleaning process (as shown in supplementary Figure S14) can be relatively challenging. In addition to these, the fabrication of multiple encoder layers requires the tuning of the refractive index for diffractive features/neurons within the solid immersion medium, which can be achieved by emerging nanofabrication methods such as implosion fabrication [56]. The realization of deeper encoder/decoder architectures is certainly beneficial for further improving imaging performance and can be achieved in the future with the development of faster and more accurate 3D printing techniques that can process materials with lower optical losses and wider tunability in refractive indices.

3 Methods

3.1 Forward-propagation model of solid-immersion diffractive imagers

A solid-immersion diffractive imager consists of a single diffractive encoder layer and L diffractive decoder layers. A dielectric slab of index n is placed between the diffractive encoder layer and the object, which allows the transmission of high-frequency information from the object toward the encoder surface. Forward propagation of the complex electromagnetic field can be modeled as a sequence of (1) free-space propagation between the lth and (l + 1)th diffractive layers (where l = 0, 1, 2,..., L + 1) including the input plane (l = 0), the encoder layer (l = 1), the decoder layers (l = 2,..., L + 1) and the image plane (l = L + 2), and (2) the modulation of the optical field by the diffractive encoder/decoder layers (l = 1,..., L + 1). The propagation of the complex optical field in the air and the dielectric medium is modeled by the angular spectrum method [57]. The 2D complex optical field profile \({u}^{l}\left(x,y\right)\) processed by the lth diffractive layer after propagation over an axial distance of d in a medium with a refractive index n can be calculated by:

$${P}_{{\varvec{d}}}{u}^{l}\left(x,y\right)={\mathcal{F}}^{-1}\left\{\mathcal{F}\left\{{u}^{l}\left(x,y\right)\right\}H({f}_{x},{f}_{y};d;n)\right\},$$
(1)

where the operator \({P}_{{\varvec{d}}}\) represents the free-space propagation, operator \(\mathcal{F}\) (\({\mathcal{F}}^{-1}\)) is the two-dimensional (inverse) Fourier transform, and \(H({f}_{x},{f}_{y};d;n)\) is the transfer function of free space (n = 1) or the dielectric medium (n > 1):

$$H\left( {f_{x} ,f_{y} ;d;n} \right) = \left\{ \begin{gathered} 0,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,f_{x} ^{2} + f_{y} ^{2} > \frac{{n^{2} }}{{\lambda ^{2} }}\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\, \hfill \\ \exp \left\{ {jkd\sqrt {1 - \left( {\frac{{2\pi f_{x} }}{{nk}}} \right)^{2} - \left( {\frac{{2\pi f_{y} }}{{nk}}} \right)^{2} } } \right\},\,\,\,\,\,\,\,\,\,\,\,\,\,f_{x} ^{2} + f_{y} ^{2} \le \frac{{n^{2} }}{{\lambda ^{2} }}\,\,\,\,\,\,\,\,\,\,\,\, \hfill \\ \end{gathered} \right.$$
(2)

where \(j=\sqrt{-1}\), \(\lambda\) is the illumination wavelength, \(k= \frac{2\pi }{\lambda }\) is the wavevector, and \({f}_{x}\), \({f}_{y}\) are the spatial frequencies on the x–y plane, orthogonal to the direction of the wave propagation.

We modeled both the diffractive solid-immersion encoder and decoder layers as phase-only modulators of the complex incident fields, where the complex transmittance coefficient tl of the lth diffractive layer can be written as:

$$\begin{array}{c}{t}^{l}\left(x,y\right)={\text{exp}}\left(j{\phi }^{l}\left(x,y\right)\right),\end{array}$$
(3)

\({\phi }^{l}\left(x,y\right)\) represents the phase delay values of the diffractive features on the lth diffractive layer. The 2D complex optical fields at the output/image plane can be derived by combining Eqs. (1) and (3):

$$o\left( {x,y} \right) = P_{{{\mathbf{d}}_{{\user2{L} + 1,\user2{L} + 2}} }} \left[ {\mathop \prod \limits_{{l = 1}}^{{L + 1}} t^{l} \left( {x,y} \right) \cdot P_{{{\mathbf{d}}_{{\user2{l} - 1,\user2{~~l}}} }} } \right]i\left( {x,y} \right),$$
(4)

where \({d}_{l-1,l}\) represents the axial distance between the (l–1)th and the lth layers, \(i\left(x,y\right)\) is the input optical field in the x–y plane.

3.2 Training loss functions

The reported computational solid-immersion networks were optimized using a deep learning-based training process [47, 48, 58, 59] that adjusted the network structure to minimize a loss function calculated based on the comparison between the ground-truth phase/intensity images and the diffractive output images. Consistent with our previous equations, the intensity image of the ground truth (\(G\)) and the all-optical reconstruction intensity at the output (\(O\)) can be defined as:

$$\begin{array}{c}G\left(x,y\right)={\left|g\left(x,y\right)\right|}^{2},\end{array}$$
(5)
$$\begin{array}{c}O\left(x,y\right)={\left|o\left(x,y\right)\right|}^{2},\end{array}$$
(6)

where \(o\left(x,y\right)\) is the optical field at the output plane calculated by using Eq. (4) and \(g\) is defined as:

$$g\left(x,y\right)=\left\{\begin{array}{l}{\varvec{M}}\left(\left|i(x,y)\right|\right), \quad \,\, \, for \,\,{\mathbf{I}}\,\,\to {\mathbf{I}} \,transformations\\ {\varvec{M}}\left(\mathrm{\measuredangle }\left(i\left(x,y\right)\right)\right), \, for\,\, {\mathbf{P}}\,\,\to {\mathbf{I}} \, transformations\end{array}\right.$$
(7)

where \(\mathrm{\measuredangle }\) is the phase operator that calculates the phase values from a complex tensor and \({\varvec{M}}\) is a geometrical transformation that magnifies the input image by a factor of M in each lateral direction.

As our loss function, we used the normalized mean squared error (NMSE) between the output and ground truth intensity patterns, defined as:

$$\begin{array}{c}Loss\left(O,G\right)=NMSE\left(O, G\right),\end{array}$$
(8)

where \(O\) and G represent the output and ground-truth intensity images, respectively, defined in Eqs. (56), and the NMSE is calculated as:

$$\begin{array}{c}NMSE\left(O,G\right)=\frac{1}{MN}\sum_{m,n}{\left(\frac{{O}_{m,n}}{{\text{max}}(O)}-{G}_{m,n}\right)}^{2},\end{array}$$
(9)

where \(m\) and \(n\) are the indices of the image pixels in x and y axes, respectively, and \(MN\) represents the total number of pixels in each image. The diffractive processor’s output intensity image \(O\) is normalized based on its maximum intensity, \({\text{max}}(O)\), to avoid penalizing the network based on its diffraction efficiency but emphasize on the reconstruction quality.

3.3 Implementation details and training of solid-immersion diffractive imagers

In the numerical and experimental demonstrations of this work, the diffractive imagers were trained with a hybrid dataset of (1) grating images as resolution test targets and (2) handwritten letters/digits from the EMNIST (for numerical tests) or the MNIST dataset (for experimental demonstrations). All diffractive encoder/decoder layers had a lateral pixel/neuron size of 0.4 mm and used λ = 0.75 mm. Unless otherwise stated, the axial distance between the input image/object and the diffractive encoder layer, the distances between successive encoder/decoder layers, and the axial distance between the last diffractive decoder layer and the output plane were set to 0.75 mm (1λ), 9 mm (12λ), and 12 mm (16λ), respectively.

Each diffractive layer contained 120 × 120 phase-valued diffractive features (64λ × 64λ) in the x–y plane for both numerical and experimental demonstrations. The input sizes of the resolution test targets and other images from various datasets, including MNIST, EMINST, FASHION-MNIST, and QuickDraw were set to 24 × 24 and 12 × 12 pixels for solid-immersion diffractive imagers trained for numerical testing and experimental validation, respectively. During the training, each raw image was linearly up-sampled in both x and y directions by a factor of 2. To model the field propagation process accurately, we also up-sampled the diffractive surfaces by 4 times, i.e., from 120 × 120 to 480 × 480 pixels, so that a lateral grid size of 0.1 mm was consistently used for all the calculations in the forward model. Lastly, the input images and the diffractive encoder/decoder layers were zero-padded to 520 × 520 pixels (in the x–y plane) for forward model calculations.

The resolution test target image datasets were created as images of straight and curved lines, where the height profile follows a sine function ranging from 0 to 1. For the training and validation datasets, we used 8000 and 2000 images of lines with randomly defined curvature and linewidths (w = 0.15–0.4 mm), respectively. For blind testing, the test image dataset size corresponding to each linewidth/resolution was selected as 100 images. The images of EMNIST (for numerical tests) or MNIST (for experimental tests) datasets were each divided into training, validation, and testing datasets without overlap, with each set containing 48,000, 12,000, and 10,000 images, respectively. During the training process, hybrid datasets combining the resolution test targets with the EMNIST (for numerical tests) or MNIST (for experimental demonstrations) datasets were created by merging the corresponding training and validation datasets.

The diffractive models were optimized via a stochastic gradient-based error back-propagation process using the Adam optimizer [60] to minimize the user-defined loss function, Eq. (8), with a learning rate of 0.002. The batch size was selected as 30. The diffractive models were trained and tested using PyTorch 1.12 or 1.13 with a single GeForce RTX 3080/3090 graphical processing unit (GPU, from Nvidia Inc.). The typical training time of a solid-immersion diffractive imager for 1000 epochs is ~ 8 h.

3.4 Fabrication of monolithic solid-immersion diffractive imagers

The transmissive layer designs of subwavelength diffractive imagers were converted into an STL file with MATLAB. The monolithic design of this multi-layered structure was obtained in a single printing session by a 3D printer (Objet30 Pro, Stratasys Ltd.) using the ultraviolet curable material (VeroBlackPlus RGD875, Stratasys Ltd.) as the ink/printing material and the PolyJet’s gel-like support material (SUP705B, Stratasys Ltd) as the support between the diffractive layers. The support materials were removed with a combination of mechanical rubbing and chemical washing (see Supplementary Fig. S14 for details). First, we mechanically removed the majority of the support materials between the layers with a metallic stick and flushed the layers with waterjet for 3 min. Then, the sample was placed in 500 mL of 5% KOH solution for 5 h to soften the residual support materials and then rinsed with excess DI water for 10 min to fully remove the KOH. Lastly, the softened residual support materials were removed by another waterjet, and the cleaned diffractive imager was air-dried.

3.5 Experimental set-up

After the in silico training and numerical testing of the diffractive models, we validated the performance of the all-optical solid-immersion diffractive imager by measuring the output images using a terahertz scanning system. To mount the monolithic diffractive imager on the stage for experimental measurements, a layer holder that sets the positions of the input plane, output plane, and the diffractive layers was 3D printed (Objet30 Pro, Stratasys) and assembled with the fabricated monolithic diffractive encoder-decoder pair with test objects fabricated by another 3D printer (Pr 110, CADworks3D). In this terahertz-TDS measurement system (see Fig. 7e, f for details), a femtosecond pulsed laser (Coherent Mira 900, center wavelength: λ = 800 nm, pulse length: 120 fs, repetition rate: 76 MHz) was used to generate an ultrafast optical beam that was split into two beams by a 50/50 beam splitter. One of these two beams was used to pump the terahertz source to generate broadband terahertz radiation by a high-power plasmonic nanoantenna array-based terahertz source [55]. A parabolic mirror (focal length 9′′) was used to collimate and expand the generated terahertz radiation to reach a lateral beam size of ~ 45 mm (FWHM), which ensured that the input test object was uniformly illuminated during the imaging/scanning process. The other optical beam from the beam splitter was focused to pump a high-sensitivity terahertz microprobe (TeraSpike TD-800-X-HRS, Protemics GmbH) with a photoconductive gap size of 2 μm and a spatial resolution of 20 μm. The combination of the plasmonic nanoantenna array terahertz source and microprobe provides an SNR of ~ 90 dB at 0.4 THz (see Supplementary Fig. S15 for details). An optical delay stage was used to actively tune the optical path length difference between the optical pump and the incident terahertz beam on the probe. The terahertz time-domain signal was obtained by measuring the photocurrent of the microprobe as a function of the optical delay and it was sampled by a lock-in amplifier (MFLI, Zurich Instruments) connected to a computer for post-processing. Each time-domain signal was obtained by averaging 10 traces captured over 5 s. These multispectral intensity images (including the target frequency of 0.4 THz) at the output plane of the diffractive imager were obtained by taking the Fourier transform of the time-domain data of the terahertz signal collected by the microprobe. During the imaging process for each test object, the tip position of the microprobe was fixed at the output plane of the diffractive imager, while the diffractive imager was raster-scanned by a 3-axis electrically-controlled translational stage. For each tested input object, we performed a 100 × 100-point scan with a lateral step size of 60 μm to cover a total area of 6 mm × 6 mm on the output plane of the diffractive imager to measure the intensity image produced by the 3D fabricated solid-immersion diffractive imager. For the resolution-test targets, the cross-sectional line-profiles were obtained by averaging the measured image of the line patterns over a distance of 3.6 mm (or 60 pixels) in the x direction for Fig. 8a, c and Supplementary Fig. S18a, c as well as in the y direction for Fig. 8b, d and Supplementary Fig. S18b, d.

To improve the output diffraction efficiency of solid-immersion diffractive imagers (see Figs. 7, 8, 9), we used an additional loss term (\({{\text{L}}}_{{\text{E}}})\) that was added to the training loss function previously defined in Eq. (8), i.e.,

$$\begin{array}{c}Loss\left(O,G\right)={\alpha }_{1}\times NMSE\left(O, G\right)+ {\alpha }_{2}\times {{\text{L}}}_{{\text{E}}}\left(O, I\right),\end{array}$$
(10)

where \(I\left(x,y\right)={\left|i(x,y)\right|}^{2}\) is the intensity of the input field. In our experimental design, we empirically selected \({\alpha }_{1}=\) 5 and \({\alpha }_{2}=\) 0.8 to balance the performance trade-off between the output image quality and the diffraction efficiency of the imager. \({{\text{L}}}_{{\text{E}}}\) was defined as:

$${\text{L}}_{{\text{E}}} \left( {O,~I} \right) = \left\{ \begin{array}{ll} 0, & \eta > ~\eta _{{target}} \hfill \\ \frac{{\eta _{{target}} - \eta \left( {O,~I} \right)}}{{\eta _{{target}} }}, & \eta \le ~\eta _{{target}} \hfill \\ \end{array} \right.$$
(11)

where \({\eta }_{target}\) is the targeted diffraction efficiency, and \(\eta \left(O, I\right)\) is the output diffraction efficiency calculated as:

$$\begin{array}{c}\eta \left(O, I\right)=\frac{\sum_{xy}O(x,y)}{\sum_{xy}I(x,y)}.\end{array}$$
(12)

The target diffraction efficiency was set to \({\eta }_{target}=\) 0.05 in the training of the solid-immersion diffractive imager used for the experimental demonstration; in our numerical simulations, we used a wider range of values covering \({\eta }_{target}=\) 0.015–0.3 to better evaluate the performance trade-off between the diffraction efficiency and the imaging resolution/quality (see Fig. 6 for details).

Availability of data and materials

The data that support the findings of this study are available from the corresponding author upon reasonable request. The Supporting Information is available free of charge via Springer.

References

  1. P. Chakravarthula et al., Learned hardware-in-the-loop phase retrieval for holographic near-eye displays. J ACM Trans. Graph. 39(6), 186 (2020)

    Google Scholar 

  2. Y. Jo et al., Quantitative phase imaging and artificial intelligence: a review. IEEE J. Sel. Top. Quantum Electron. 25(1), 1–14 (2019)

    Article  Google Scholar 

  3. H. Majeed et al., Quantitative phase imaging for medical diagnosis. J. Biophotonics 10(2), 177–205 (2017)

    Article  Google Scholar 

  4. Y. Park, C. Depeursinge, G. Popescu, Quantitative phase imaging in biomedicine. Nat. Photonics 12(10), 578–589 (2018)

    Article  ADS  Google Scholar 

  5. U.S. Kamilov et al., Learning approach to optical tomography. Optica 2(6), 517–522 (2015)

    Article  ADS  Google Scholar 

  6. M.A. Beltran, D.M. Paganin, K. Uesugi, M.J. Kitchen, 2d and 3d x-ray phase retrieval of multi-material objects using a single defocus distance. Opt. Express 18(7), 6423–6436 (2010)

    Article  ADS  Google Scholar 

  7. A. Descloux et al., Combined multi-plane phase retrieval and super-resolution optical fluctuation imaging for 4d cell microscopy. Nat. Photonics 12(3), 165–172 (2018)

    Article  ADS  Google Scholar 

  8. M. Wan, J.J. Healy, J.T. Sheridan, Terahertz phase imaging and biomedical applications. Opt. Laser Technol. 122, 105859 (2020)

    Article  Google Scholar 

  9. F. Zernike, How i discovered phase contrast. Science 121(3141), 345–349 (1955)

    Article  ADS  Google Scholar 

  10. W. Lang, Nomarski differential interference-contrast microscopy. Carl Zeiss Oberkochen: 1982.

  11. M. K. Sharma, et al., Inverse scattering via transmission matrices: broadband illumination and fast phase retrieval algorithms. IEEE Trans. Comput. Imag. 695–108 (2020)

  12. R.K. Singh, A.M. Sharma, B. Das, Quantitative phase-contrast imaging through a scattering media. Opt. Lett. 39(17), 5054–5057 (2014)

    Article  ADS  Google Scholar 

  13. T. Wu, J. Dong, S. Gigan, Non-invasive single-shot recovery of a point-spread function of a memory effect based scattering imaging system. Opt. Lett. 45(19), 5397–5400 (2020)

    Article  ADS  Google Scholar 

  14. S. Yoon et al., Deep optical imaging within complex scattering media. Nat. Rev. Phys. 2(3), 141–158 (2020)

    Article  Google Scholar 

  15. C.W. Mccutchen, Superresolution in microscopy and the abbe resolution limit. J. Opt. Soc. Am. 57(10), 1190–1192 (1967)

    Article  ADS  Google Scholar 

  16. J. Gass, A. Dakoff, M.K. Kim, Phase imaging without 2π ambiguity by multiwavelength digital holography. Opt. Lett. 28(13), 1141–1143 (2003)

    Article  ADS  Google Scholar 

  17. C.J. Mann, P.R. Bingham, V.C. Paquit, K.W. Tobin, Quantitative phase imaging by three-wavelength digital holography. Opt. Express 16(13), 9753–9764 (2008)

    Article  ADS  Google Scholar 

  18. C.J. Mann, L. Yu, C.-M. Lo, M.K. Kim, High-resolution quantitative phase-contrast microscopy by digital holography. Opt. Express 13(22), 8693–8698 (2005)

    Article  ADS  Google Scholar 

  19. J. Park et al., Artificial intelligence-enabled quantitative phase imaging methods for life sciences. Nat. Methods 20(11), 1645–1660 (2023)

    Article  Google Scholar 

  20. B. Javidi et al., Roadmap on digital holography. Opt. Express 29(22), 35078–35118 (2021)

    Article  ADS  Google Scholar 

  21. Y. Rivenson, Y. Wu, A. Ozcan, Deep learning in holography and coherent imaging. Light Sci. Appl. 8(1), 85 (2019)

    Article  ADS  Google Scholar 

  22. G. Zheng, R. Horstmeyer, C. Yang, Wide-field, high-resolution Fourier ptychographic microscopy. Nat. Photonics 7(9), 739–745 (2013)

    Article  ADS  Google Scholar 

  23. L. Tian, L. Waller, 3d intensity and phase imaging from light field measurements in an led array microscope. Optica 2(2), 104–111 (2015)

    Article  ADS  Google Scholar 

  24. N. V. Chernomyrdin, et al., Reflection-mode continuous-wave 0.15λ-resolution terahertz solid immersion microscopy of soft biological tissues. Appl. Phys. Lett. 113(11), (2018)

  25. A. Darafsheh, et al., Advantages of microsphere-assisted super-resolution imaging technique over solid immersion lens and confocal microscopies. Appl. Phys. Lett. 104(6), (2014)

  26. L. Sapienza, M. Davanço, A. Badolato, K. Srinivasan, Nanoscale optical positioning of single quantum dots for bright and pure single-photon emission. Nat. Commun. 6(1), 7833 (2015)

    Article  ADS  Google Scholar 

  27. M. Totzeck, W. Ulrich, A. Göhnermeier, W. Kaiser, Pushing deep ultraviolet lithography to its limits. Nat. Photonics 1(11), 629–631 (2007)

    Article  ADS  Google Scholar 

  28. S.M. Mansfield, G.S. Kino, Solid immersion microscope. Appl. Phys. Lett. 57(24), 2615–2616 (1990)

    Article  ADS  Google Scholar 

  29. B.D. Terris et al., Near-field optical data storage using a solid immersion lens. Appl. Phys. Lett. 65(4), 388–390 (1994)

    Article  ADS  Google Scholar 

  30. Q. Wu, G.D. Feke, R.D. Grober, L.P. Ghislain, Realization of numerical aperture 2.0 using a gallium phosphide solid immersion lens. Appl. Phys. Lett. 75(26), 4064–4066 (1999)

    Article  ADS  Google Scholar 

  31. G.J. Brakenhoff, P. Blom, P. Barends, Confocal scanning light microscopy with high aperture immersion lenses. J. Microsc. 117(2), 219–232 (1979)

    Article  Google Scholar 

  32. W.T. Chen et al., Immersion meta-lenses at visible wavelengths for nanoscale imaging. Nano Lett. 17(5), 3188–3194 (2017)

    Article  ADS  Google Scholar 

  33. P. Marquet et al., Digital holographic microscopy: a noninvasive contrast imaging technique allowing quantitative visualization of living cells with subwavelength axial accuracy. Opt. Lett. 30(5), 468–470 (2005)

    Article  ADS  Google Scholar 

  34. S. Chowdhury, W.J. Eldridge, A. Wax, J.A. Izatt, Structured illumination multimodal 3d-resolved quantitative phase and fluorescence sub-diffraction microscopy. Biomed. Opt. Express 8(5), 2496–2518 (2017)

    Article  Google Scholar 

  35. C. Zuo et al., High-resolution transport-of-intensity quantitative phase microscopy with annular illumination. Sci. Rep. 7(1), 7654 (2017)

    Article  ADS  Google Scholar 

  36. C. Zheng et al., High spatial and temporal resolution synthetic aperture phase microscopy. Adv. Photon. 2(6), 065002 (2020)

    Article  ADS  Google Scholar 

  37. J. Hu et al., Diffractive optical computing in free space. Nat. Commun. 15(1), 1525 (2024)

    Article  Google Scholar 

  38. A. Lal, C. Shan, P. Xi, Structured illumination microscopy image reconstruction algorithm. IEEE J. Sel. Top. Quantum Electron. 22(4), 50–63 (2016)

    Article  ADS  Google Scholar 

  39. R. Heintzmann, T. Huser, Super-resolution structured illumination microscopy. Chem. Rev. 117(23), 13890–13908 (2017)

    Article  Google Scholar 

  40. O. Ronneberger, P. Fischer, T. Brox In U-net: Convolutional networks for biomedical image segmentation, Medical image computing and computer-assisted intervention—MICCAI 2015: 18th international conference, Munich, Germany, October 5–9, 2015, proceedings, part III 18, Springer: 2015; pp 234–241.

  41. J. Li, et al., All-optical complex field imaging using diffractive processors. arXiv preprint, arXiv:2401.16779 (2024)

  42. H. Xiao, K. Rasul, R. Vollgraf, Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747 (2017)

  43. J. Jongejan, et al., The quick, draw!-ai experiment. Mount View, CA, accessed Feb, 17(2018), 4 (2016)

  44. J.Y. Lee et al., Near-field focusing and magnification through self-assembled nanoscale spherical lenses. Nature 460(7254), 498–501 (2009)

    Article  ADS  Google Scholar 

  45. H. Li, L. Fu, K. Frenner, W. Osten, Cascaded plasmonic superlens for far-field imaging with magnification at visible wavelength. Opt. Express 26(8), 10888–10897 (2018)

    Article  ADS  Google Scholar 

  46. A. Tuniz, B.T. Kuhlmey, Subwavelength terahertz imaging via virtual superlensing in the radiating near field. Nat. Commun. 14(1), 6393 (2023)

    Article  ADS  Google Scholar 

  47. X. Lin et al., All-optical machine learning using diffractive deep neural networks. Science 361(6406), 1004–1008 (2018)

    Article  ADS  MathSciNet  Google Scholar 

  48. D. Mengu, Y. Luo, Y. Rivenson, A. Ozcan, Analysis of diffractive optical neural networks and their integration with electronic neural networks. IEEE J. Sel. Top. Quantum Electron. 26(1), 1–14 (2019)

    Article  Google Scholar 

  49. M. Khorasaninejad et al., Multispectral chiral imaging with a metalens. Nano Lett. 16(7), 4595–4600 (2016)

    Article  ADS  Google Scholar 

  50. C.-Y. Shen, J. Li, D. Mengu, A. Ozcan, Multispectral quantitative phase imaging using a diffractive optical network. Adv. Intell. Syst. 5(11), 2300300 (2023)

    Article  Google Scholar 

  51. Y. Li et al., Recent progress on structural coloration. Photon. Insights 3(2), R03 (2024)

    Article  Google Scholar 

  52. M. Schmid, D. Ludescher, H. Giessen, Optical properties of photoresists for femtosecond 3d printing: Refractive index, extinction, luminescence-dose dependence, aging, heat treatment and comparison between 1-photon and 2-photon exposure. Opt. Mater. Express 9(12), 4564–4577 (2019)

    Article  ADS  Google Scholar 

  53. E. Kussul, T. Baidyk, Improved method of handwritten digit recognition tested on mnist database. Image Vis. Comput. 22(12), 971–981 (2004)

    Article  Google Scholar 

  54. D. Mengu et al., Misalignment resilient diffractive optical networks. Nanophotonics 9(13), 4207–4219 (2020)

    Article  Google Scholar 

  55. N.T. Yardimci, S.H. Yang, C.W. Berry, M. Jarrahi, High-power terahertz generation using large-area plasmonic photoconductive emitters. IEEE Trans. Terahertz Sci. Technol. 5(2), 223–229 (2015)

    Article  ADS  Google Scholar 

  56. D. Oran et al., 3d nanofabrication by volumetric deposition and controlled shrinkage of patterned scaffolds. Science 362(6420), 1281–1285 (2018)

    Article  ADS  Google Scholar 

  57. E. Wolf, Electromagnetic diffraction in optical systems-i. An integral representation of the image field. Proc. R. Soc. London Ser. A Math. 253(1274), 349–357 (1959)

    Article  ADS  MathSciNet  Google Scholar 

  58. D. Mengu et al., At the intersection of optics and deep learning: statistical inference, computing, and inverse design. Adv. Opt. Photon. 14(2), 209–290 (2022)

    Article  Google Scholar 

  59. N.U. Dinc et al., Computer generated optical volume elements by additive manufacturing. Nanophotonics 9(13), 4173–4181 (2020)

    Article  Google Scholar 

  60. D. P. Kingma, J. Ba, Adam: a method for stochastic optimization. arXiv preprint, arXiv: 1412.6980 (2014)

Download references

Funding

The Ozcan Research Group at UCLA acknowledges the support of Fujikura Inc. The Jarrahi Group at UCLA acknowledges the support of the Harvey Engineering Research Prize from the Institution of Engineering and Technology.

Author information

Authors and Affiliations

Authors

Contributions

A.O. conceived the initial idea. J.H. performed the design and training of the model-assisted by K.L., B.B, H.C, X.Y, Y.L. C.I, M.S.S.R. and J.L. J.H., N.U.D., and C.G. worked on the analysis of the resulting models. J.H., K.L., and X.Y. fabricated the device. K.L., T.G., and X.L. conducted the imaging test. All the authors contributed to the preparation of the manuscript. A.O. M. J., and D.P. supervised the research.

Corresponding author

Correspondence to Aydogan Ozcan.

Ethics declarations

Competing interests

Aydogan Ozcan, Demetri Psaltis and Mona Jarrahi serve as Editors for the Journal, no other author has reported any competing interests.

Supplementary Information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Hu, J., Liao, K., Dinç, N.U. et al. Subwavelength imaging using a solid-immersion diffractive optical processor. eLight 4, 8 (2024). https://doi.org/10.1186/s43593-024-00067-5

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s43593-024-00067-5

Keywords