Researchers showcase a deep learning-designed diffractive terahertz sensor that rapidly detects hidden defects within 3D samples based on the output spectrum measured by a single-pixel detector, eliminating sample scanning or image formation/processing.