Trajectory outlier detection is a crucial task in trajectory data mining and has received significant attention. However, the distribution of trajectories is tied to social activities, resulting in extreme unevenness among regions. While existing methods have demonstrated excellent performance in regions with sufficient historical trajectories, they frequently struggle to detect outliers in regions with limited trajectories. Unfortunately, this issue has not received much attention, leaving a gap in the current understanding of trajectory mining. To deal with this problem, we in this paper propose a model called TTOD that can effectively detect outliers in regions with sparse data by transferring knowledge among regions. The main idea is to learn a feature mapping function that maps the global feature space of auxiliary regions to the target region's specific feature space. To achieve this, we adopt a VAE-based model called the Global VAE to learn the global feature space in auxiliary regions by modeling the trajectory patterns with Gaussian distributions. Then, we propose a Specific-region VAE that serves as the mapping function to learn the target feature space. Additionally, considering the data drift of feature distributions among regions, we introduced an additional pattern synthesis layer, named the De-drift Layer, to diversify the target feature space, thus addressing the pattern missing issue caused by the gap of feature distributions between the auxiliary regions and the target regions. Then the target feature space can be well studied and applied to detect outliers. Finally, we conduct extensive experiments on two real taxi trajectory datasets and the results show that TTOD achieves state-ofthe-art performance compared with the baselines.INDEX TERMS trajectory outlier detection, transfer learning, VAE, spatial-temporal data, trajectory data mining.