This technology proposes a novel 3D endoscopic imaging system through the joint design of optics and AI, enabling single-shot depth reconstruction using a deep learning-optimized phase mask. It offers smaller form factor, faster imaging, and superior 3D reconstruction compared to current stereoscopic or video-based methods.