Out-of-Distribution-Aware Contrastive Learning for Trajectory-Based Threat Identification (Journal of the Korea Institute of Military Science and Technology)