In offshore drilling, accidents such as gas invasion, overflow, and kicks are inevitable, and they can escalate into blowouts and other catastrophic events that result in casualties and substantial economic losses. Therefore, maintaining drilling safety requires accurate monitoring of gas invasion and overflow. The majority of overflow monitoring methods currently utilized at drilling sites are threshold-based. However, monitoring parameters acquired during actual drilling operations frequently contain noise signals, making it difficult for threshold-based methods to strike a balance between improving accuracy and minimizing false positives. In this paper, Pattern Recognition-based Kick Detection (PRKD) is proposed as a novel method for diagnosing overflow in offshore drilling. This method utilizes the overflow evolution process by integrating multi-phase flow calculations, data filtering theory, pattern recognition theory, the Bayesian framework, and other theoretical models. The PRKD effectively detects and monitors gas intrusion and overflow based on single parameters by analyzing the shape and wave characteristics of the curves. The case analysis demonstrates that the proposed method for monitoring drilling overflow achieves high precision while maintaining a low false positive rate. By combining advanced computational techniques with pattern recognition algorithms, the PRKD improves the accuracy and reliability of kick detection, enabling proactive responses to potential risks, protecting the environment and human lives, and optimizing drilling operations.