Spin-multiplexed metasurface inverse-design based on a bi-directional deep neural network for terahertz wavefront control | Synapse