This article delves into machine learning-based cryptocurrency price prediction models, with a focus on the application and comparison of LSTM and Transformer. It also covers the integration of on-chain data, community sentiment, and macroeconomic factors, while exploring the impact of black swan events.