This study introduces a new diagnostic framework that combines improved particle swarm optimization, K-means clustering algorithms, support vector machine (SVM), and learning vector quantization neural networks to provide a comprehensive fault diagnosis and pre-diction model. This study introduces a new diagnostic framework that combines improved particle swarm optimization, K-means clustering algorithms, support vector machine (SVM), and learning vector quantization neural networks to provide a comprehensive fault diagnosis and pre-diction model. This study introduces a new diagnostic framework that combines improved particle swarm optimization, K-means clustering algorithms, support vector machine (SVM), and learning vector quantization neural networks to provide a comprehensive fault diagnosis and pre-diction model for relay protection. To promptly detect the faults of the relay protection system and the circuit breakers in time and to ensure the operational reliability of these protective devices, this paper proposes a fault tracing method for a relay protection system–circuit breaker based on improved Random Forest. Firstly, an. Abstract: In today's increasingly complex power system, microcomputer relay protection device plays a very important role in ensuring the safety and stability of power grid.