This study proposed an effective machine learning (ML)-based fault diagnosis method for demagnetization faults, including "healthy, 30% unipolar demagnetization, 50% multi magnet demagnetization, 100% adjacent pole demagnetization, and 40% uniform demagnetization", in a 25-kW permanent magnet synchronous generator (PMSG) that considers algorithm accuracy and signal processing technique efficiency, top informative features, and training time of the ML algorithm. Our research involves developing a 3D finite element PMSG model in ANSYS Maxwell and conducting an industrial experiment to capture stator current and flux data. We employ advanced feature extraction techniques such as matching pursuit and discrete wavelet transform, assessing their accuracy using Ensemble, SVM, and KNN algorithms. Additionally, we optimize and rank features using ReliefF, mRMR, Chi2, ANOVA, and Kruskal‒Wallis filters, evaluating their impact on ML algorithms. The investigation extends to the evaluation of eight ML classifiers—ensemble, SVM, KNN, neural network, kernel, discriminant analysis, and naive Bayes—along with 31 subclassifiers to identify the most effective output signal, signal processing technique, informative features, suitable filters, and the optimal ML algorithm for diagnosing demagnetization faults in PMSGs. Our findings reveal that using flux signals in conjunction with the discrete wavelet transform, alongside the ANOVA feature ranking filter and fine Gaussian SVM algorithm, achieves 100% fault classification accuracy with a training time of 0.961 seconds. This approach proves highly effective for the early detection of demagnetization faults in PMSGs.