Classification of faults in rotary machines using machine learning is gaining attention in the field of science and engineering. In rotating machinery, misalignment is a common fault. This type of fault has been extensively studied in the literature using the vibration signals produced by rotary machines. This study proposes an approach based on machine learning techniques to diagnose misalignments in rotary machines under various conditions. A personalized diagnostic fault approach is proposed to detect misalignment faults. The approach includes three steps. First, the data acquisition model is developed to obtain signals (fault samples). The rotor vibration signals in stationary rotation conditions were obtained by two inductive proximity sensors with analog output, and the data were collected by a data acquisition device. Then, to generate the faulty training samples, each data acquisition signal is transformed to the frequency domain using Fast Fourier Transform (FFT). Finally, using the samples obtained through the feature selection techniques, machine learning algorithms Random Forest, Naïve Bayes and SVM were evaluated, resulting in classifications with different efficiencies. The results show that the SVM algorithm outperforms the Naïve Bayes and Random Forest algorithms when the same number of features is used. The proposed personalized diagnostic approach was applied to detect faults of rotating electrical machines misalignment with success.