terahertz imaging; single-pixel detectors; spatial light modulation; time-domain spectroscopy; neural networks