In the rapidly evolving field of semiconductor manufacturing, the productivity and reliability of advanced semiconductor equipment, especially Extreme Ultraviolet (EUV) and Deep Ultraviolet (DUV) lithography systems, are of paramount importance. This research introduces a cutting-edge methodology that employs the analysis of the rarity of event logs to preemptively identify potential failures and their root causes within such equipment. By establishing an optimized threshold that delineates the normal from the rare, this approach effectively flags those rare logs that exceed this threshold as indicators of potential failures. Subsequent analysis of these logs reveals the underlying mechanisms of failure, allowing for timely intervention. The application of this methodology to EUV/DUV equipment has demonstrated a significant increase in predictive accuracy, with a recall of 97.6%, and the potential to realize annual savings of nearly $2 million by reducing equipment downtime and maintenance costs.